Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
352 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
352 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.utils;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
352 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class HelperService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
352 ashish 26
 
764 rajveer 27
    /**
3206 mandeep.dh 28
     * Save email details, to be sent later; Also returns its identifier.
2779 chandransh 29
     * 
30
     * @param emailTo
31
     * @param emailFrom
32
     * @param subject
33
     * @param body
34
     * @param source
35
     * @param emailType
5864 rajveer 36
     * @param cc
37
     * @param bcc
2779 chandransh 38
     */
5864 rajveer 39
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 40
 
2779 chandransh 41
    /**
42
     * Retreives all the emails pending for dispatch
43
     */
3430 rajveer 44
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 45
 
2779 chandransh 46
    /**
47
     * Marks email as sent after successful dispatch
48
     * 
49
     * @param emailId
50
     */
3430 rajveer 51
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 52
 
3430 rajveer 53
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 54
 
3430 rajveer 55
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 56
 
3430 rajveer 57
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 58
 
3430 rajveer 59
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 60
 
3430 rajveer 61
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 62
 
3430 rajveer 63
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 64
 
3430 rajveer 65
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 66
 
3430 rajveer 67
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 68
 
750 chandransh 69
    /**
2443 chandransh 70
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
71
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 72
     * 
73
     * @param username
74
     * @param password
75
     */
3430 rajveer 76
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 77
 
2443 chandransh 78
    /**
79
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
80
     * 
81
     * @param username
82
     * @param oldPassword
83
     * @param newPassword
84
     */
3430 rajveer 85
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 86
 
750 chandransh 87
    /**
88
     * Returns the LogisticsUser struct associated with the given username and password if they match.
89
     * Throws an exception otherwise.
90
     * 
91
     * @param username
92
     * @param password
93
     */
3430 rajveer 94
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 95
 
1611 ankur.sing 96
    /**
97
     * Returns the StatisticsUser struct associated with the given username and password if they match.
98
     * Throws an exception otherwise.
99
     * 
100
     * @param username
101
     * @param password
102
     */
3430 rajveer 103
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 104
 
1891 ankur.sing 105
    /**
106
     * Returns the ReportUser struct associated with the given username and password if they match.
107
     * Throws an exception otherwise.
108
     * 
109
     * @param username
110
     * @param password
111
     */
3430 rajveer 112
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 113
 
114
    /**
115
     * Returns list of reports which are configured for the given role.
116
     * 
117
     * @param role
118
     */
3430 rajveer 119
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 120
 
2024 ankur.sing 121
    /**
2357 ankur.sing 122
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 123
     * Throws an exception otherwise.
124
     * 
125
     * @param username
126
     * @param password
127
     */
6788 rajveer 128
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 129
 
4544 varun.gupt 130
    /**
131
     * Saves the list of entity Ids to be shared with an email address
132
     * 
133
     * @param entityIds
134
     * @param email
135
     */
136
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
137
 
4693 mandeep.dh 138
    public List<Agent> getAgents() throws org.apache.thrift.TException;
139
 
140
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
141
 
142
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
143
 
144
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
145
 
146
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
147
 
4806 varun.gupt 148
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
149
 
150
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
151
 
4996 varun.gupt 152
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
153
 
5055 varun.gupt 154
    /**
155
     * Returns a list of emails to which product notifications have been sent in a given date range
156
     * 
157
     * @param startDatetime
158
     * @param endDatetime
159
     */
160
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
161
 
6322 amar.kumar 162
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;
163
 
7221 kshitij.so 164
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException;
165
 
7410 amar.kumar 166
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException;
167
 
352 ashish 168
  }
169
 
3430 rajveer 170
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
171
 
5864 rajveer 172
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 173
 
174
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
175
 
176
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
177
 
178
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
179
 
180
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
181
 
182
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
183
 
184
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
185
 
186
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
187
 
188
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
189
 
190
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
191
 
192
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
193
 
194
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
195
 
196
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
197
 
198
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
199
 
200
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
201
 
202
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
203
 
204
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
205
 
6788 rajveer 206
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 207
 
4544 varun.gupt 208
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
209
 
4693 mandeep.dh 210
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
211
 
212
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
213
 
214
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
215
 
216
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
217
 
218
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
219
 
4806 varun.gupt 220
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
221
 
222
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
223
 
4996 varun.gupt 224
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
225
 
5055 varun.gupt 226
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
227
 
6322 amar.kumar 228
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
229
 
7221 kshitij.so 230
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;
231
 
7410 amar.kumar 232
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException;
233
 
3430 rajveer 234
  }
235
 
3374 rajveer 236
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 237
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
238
      public Factory() {}
239
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
240
        return new Client(prot);
241
      }
242
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
243
        return new Client(iprot, oprot);
244
      }
245
    }
246
 
247
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 248
    {
3430 rajveer 249
      super(prot, prot);
352 ashish 250
    }
251
 
3430 rajveer 252
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 253
      super(iprot, oprot);
352 ashish 254
    }
255
 
5864 rajveer 256
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 257
    {
5864 rajveer 258
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc);
3206 mandeep.dh 259
      return recv_saveUserEmailForSending();
1395 varun.gupt 260
    }
261
 
5864 rajveer 262
    public void send_saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc) throws org.apache.thrift.TException
1395 varun.gupt 263
    {
264
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 265
      args.setEmailTo(emailTo);
266
      args.setEmailFrom(emailFrom);
267
      args.setSubject(subject);
268
      args.setBody(body);
269
      args.setSource(source);
270
      args.setEmailType(emailType);
5864 rajveer 271
      args.setCc(cc);
272
      args.setBcc(bcc);
3430 rajveer 273
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 274
    }
275
 
3430 rajveer 276
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 277
    {
278
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 279
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 280
      if (result.isSetSuccess()) {
281
        return result.success;
282
      }
1395 varun.gupt 283
      if (result.se != null) {
284
        throw result.se;
285
      }
3430 rajveer 286
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 287
    }
288
 
3430 rajveer 289
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 290
    {
3086 rajveer 291
      send_getEmailsToBeSent();
1422 varun.gupt 292
      return recv_getEmailsToBeSent();
293
    }
294
 
3430 rajveer 295
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 296
    {
297
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 298
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 299
    }
300
 
3430 rajveer 301
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 302
    {
303
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 304
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 305
      if (result.isSetSuccess()) {
306
        return result.success;
307
      }
308
      if (result.se != null) {
309
        throw result.se;
310
      }
3430 rajveer 311
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 312
    }
313
 
3430 rajveer 314
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 315
    {
316
      send_markEmailAsSent(emailId);
317
      recv_markEmailAsSent();
318
    }
319
 
3430 rajveer 320
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 321
    {
322
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 323
      args.setEmailId(emailId);
324
      sendBase("markEmailAsSent", args);
1422 varun.gupt 325
    }
326
 
3430 rajveer 327
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 328
    {
329
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 330
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 331
      if (result.se != null) {
332
        throw result.se;
333
      }
334
      return;
335
    }
336
 
3430 rajveer 337
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 338
    {
339
      send_sendMail(mail);
340
      recv_sendMail();
341
    }
342
 
3430 rajveer 343
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 344
    {
345
      sendMail_args args = new sendMail_args();
3430 rajveer 346
      args.setMail(mail);
347
      sendBase("sendMail", args);
352 ashish 348
    }
349
 
3430 rajveer 350
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 351
    {
352
      sendMail_result result = new sendMail_result();
3430 rajveer 353
      receiveBase(result, "sendMail");
352 ashish 354
      if (result.se != null) {
355
        throw result.se;
356
      }
357
      return;
358
    }
359
 
3430 rajveer 360
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 361
    {
362
      send_sendText(message);
363
      recv_sendText();
364
    }
365
 
3430 rajveer 366
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 367
    {
368
      sendText_args args = new sendText_args();
3430 rajveer 369
      args.setMessage(message);
370
      sendBase("sendText", args);
352 ashish 371
    }
372
 
3430 rajveer 373
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 374
    {
375
      sendText_result result = new sendText_result();
3430 rajveer 376
      receiveBase(result, "sendText");
352 ashish 377
      if (result.se != null) {
378
        throw result.se;
379
      }
380
      return;
381
    }
382
 
3430 rajveer 383
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 384
    {
385
      send_addMessage(message);
386
      recv_addMessage();
387
    }
388
 
3430 rajveer 389
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 390
    {
391
      addMessage_args args = new addMessage_args();
3430 rajveer 392
      args.setMessage(message);
393
      sendBase("addMessage", args);
352 ashish 394
    }
395
 
3430 rajveer 396
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 397
    {
398
      addMessage_result result = new addMessage_result();
3430 rajveer 399
      receiveBase(result, "addMessage");
352 ashish 400
      if (result.se != null) {
401
        throw result.se;
402
      }
403
      return;
404
    }
405
 
3430 rajveer 406
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 407
    {
408
      send_updateMessage(id, message);
409
      recv_updateMessage();
410
    }
411
 
3430 rajveer 412
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 413
    {
414
      updateMessage_args args = new updateMessage_args();
3430 rajveer 415
      args.setId(id);
416
      args.setMessage(message);
417
      sendBase("updateMessage", args);
352 ashish 418
    }
419
 
3430 rajveer 420
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 421
    {
422
      updateMessage_result result = new updateMessage_result();
3430 rajveer 423
      receiveBase(result, "updateMessage");
352 ashish 424
      if (result.se != null) {
425
        throw result.se;
426
      }
427
      return;
428
    }
429
 
3430 rajveer 430
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 431
    {
432
      send_getMessage(id);
433
      return recv_getMessage();
434
    }
435
 
3430 rajveer 436
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 437
    {
438
      getMessage_args args = new getMessage_args();
3430 rajveer 439
      args.setId(id);
440
      sendBase("getMessage", args);
352 ashish 441
    }
442
 
3430 rajveer 443
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 444
    {
445
      getMessage_result result = new getMessage_result();
3430 rajveer 446
      receiveBase(result, "getMessage");
352 ashish 447
      if (result.isSetSuccess()) {
448
        return result.success;
449
      }
450
      if (result.se != null) {
451
        throw result.se;
452
      }
3430 rajveer 453
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 454
    }
455
 
3430 rajveer 456
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 457
    {
458
      send_getSubstitutedMessage(id, params);
459
      return recv_getSubstitutedMessage();
460
    }
461
 
3430 rajveer 462
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 463
    {
464
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 465
      args.setId(id);
466
      args.setParams(params);
467
      sendBase("getSubstitutedMessage", args);
352 ashish 468
    }
469
 
3430 rajveer 470
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 471
    {
472
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 473
      receiveBase(result, "getSubstitutedMessage");
352 ashish 474
      if (result.isSetSuccess()) {
475
        return result.success;
476
      }
477
      if (result.se != null) {
478
        throw result.se;
479
      }
3430 rajveer 480
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 481
    }
482
 
3430 rajveer 483
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 484
    {
485
      send_addUser(username, password, warehouseId);
486
      return recv_addUser();
487
    }
488
 
3430 rajveer 489
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 490
    {
491
      addUser_args args = new addUser_args();
3430 rajveer 492
      args.setUsername(username);
493
      args.setPassword(password);
494
      args.setWarehouseId(warehouseId);
495
      sendBase("addUser", args);
495 rajveer 496
    }
497
 
3430 rajveer 498
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 499
    {
500
      addUser_result result = new addUser_result();
3430 rajveer 501
      receiveBase(result, "addUser");
495 rajveer 502
      if (result.isSetSuccess()) {
503
        return result.success;
504
      }
505
      if (result.se != null) {
506
        throw result.se;
507
      }
3430 rajveer 508
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 509
    }
510
 
3430 rajveer 511
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 512
    {
513
      send_deleteUser(username);
514
      return recv_deleteUser();
515
    }
516
 
3430 rajveer 517
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 518
    {
519
      deleteUser_args args = new deleteUser_args();
3430 rajveer 520
      args.setUsername(username);
521
      sendBase("deleteUser", args);
495 rajveer 522
    }
523
 
3430 rajveer 524
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 525
    {
526
      deleteUser_result result = new deleteUser_result();
3430 rajveer 527
      receiveBase(result, "deleteUser");
495 rajveer 528
      if (result.isSetSuccess()) {
529
        return result.success;
530
      }
531
      if (result.se != null) {
532
        throw result.se;
533
      }
3430 rajveer 534
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 535
    }
536
 
3430 rajveer 537
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 538
    {
2443 chandransh 539
      send_authenticateDashboardUser(username, password);
540
      return recv_authenticateDashboardUser();
495 rajveer 541
    }
542
 
3430 rajveer 543
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 544
    {
2443 chandransh 545
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 546
      args.setUsername(username);
547
      args.setPassword(password);
548
      sendBase("authenticateDashboardUser", args);
495 rajveer 549
    }
550
 
3430 rajveer 551
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 552
    {
2443 chandransh 553
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 554
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 555
      if (result.isSetSuccess()) {
556
        return result.success;
557
      }
558
      if (result.se != null) {
559
        throw result.se;
560
      }
3430 rajveer 561
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 562
    }
563
 
3430 rajveer 564
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 565
    {
566
      send_updatePassword(username, oldPassword, newPassword);
567
      return recv_updatePassword();
568
    }
569
 
3430 rajveer 570
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 571
    {
572
      updatePassword_args args = new updatePassword_args();
3430 rajveer 573
      args.setUsername(username);
574
      args.setOldPassword(oldPassword);
575
      args.setNewPassword(newPassword);
576
      sendBase("updatePassword", args);
495 rajveer 577
    }
578
 
3430 rajveer 579
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 580
    {
581
      updatePassword_result result = new updatePassword_result();
3430 rajveer 582
      receiveBase(result, "updatePassword");
495 rajveer 583
      if (result.isSetSuccess()) {
584
        return result.success;
585
      }
586
      if (result.se != null) {
587
        throw result.se;
588
      }
3430 rajveer 589
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 590
    }
591
 
3430 rajveer 592
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 593
    {
594
      send_authenticateLogisticsUser(username, password);
595
      return recv_authenticateLogisticsUser();
596
    }
597
 
3430 rajveer 598
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 599
    {
600
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 601
      args.setUsername(username);
602
      args.setPassword(password);
603
      sendBase("authenticateLogisticsUser", args);
750 chandransh 604
    }
605
 
3430 rajveer 606
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 607
    {
608
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 609
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 610
      if (result.isSetSuccess()) {
611
        return result.success;
612
      }
613
      if (result.hse != null) {
614
        throw result.hse;
615
      }
3430 rajveer 616
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 617
    }
618
 
3430 rajveer 619
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 620
    {
621
      send_authenticateStatisticsUser(username, password);
622
      return recv_authenticateStatisticsUser();
623
    }
624
 
3430 rajveer 625
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 626
    {
627
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 628
      args.setUsername(username);
629
      args.setPassword(password);
630
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 631
    }
632
 
3430 rajveer 633
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 634
    {
635
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 636
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 637
      if (result.isSetSuccess()) {
638
        return result.success;
639
      }
640
      if (result.hse != null) {
641
        throw result.hse;
642
      }
3430 rajveer 643
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 644
    }
645
 
3430 rajveer 646
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 647
    {
648
      send_authenticateReportUser(username, password);
649
      return recv_authenticateReportUser();
650
    }
651
 
3430 rajveer 652
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 653
    {
654
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 655
      args.setUsername(username);
656
      args.setPassword(password);
657
      sendBase("authenticateReportUser", args);
1891 ankur.sing 658
    }
659
 
3430 rajveer 660
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 661
    {
662
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 663
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 664
      if (result.isSetSuccess()) {
665
        return result.success;
666
      }
667
      if (result.hse != null) {
668
        throw result.hse;
669
      }
3430 rajveer 670
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 671
    }
672
 
3430 rajveer 673
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 674
    {
675
      send_getReports(role);
676
      return recv_getReports();
677
    }
678
 
3430 rajveer 679
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 680
    {
681
      getReports_args args = new getReports_args();
3430 rajveer 682
      args.setRole(role);
683
      sendBase("getReports", args);
1891 ankur.sing 684
    }
685
 
3430 rajveer 686
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 687
    {
688
      getReports_result result = new getReports_result();
3430 rajveer 689
      receiveBase(result, "getReports");
1891 ankur.sing 690
      if (result.isSetSuccess()) {
691
        return result.success;
692
      }
3430 rajveer 693
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 694
    }
695
 
6788 rajveer 696
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 697
    {
6788 rajveer 698
      send_authenticateCatalogUser(username, password);
2024 ankur.sing 699
      return recv_authenticateCatalogUser();
700
    }
701
 
6788 rajveer 702
    public void send_authenticateCatalogUser(String username, String password) throws org.apache.thrift.TException
2024 ankur.sing 703
    {
704
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 705
      args.setUsername(username);
706
      args.setPassword(password);
707
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 708
    }
709
 
3430 rajveer 710
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 711
    {
712
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 713
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 714
      if (result.isSetSuccess()) {
715
        return result.success;
716
      }
717
      if (result.hse != null) {
718
        throw result.hse;
719
      }
3430 rajveer 720
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 721
    }
722
 
4544 varun.gupt 723
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
724
    {
725
      send_shareEntities(entityIds, email);
726
      recv_shareEntities();
727
    }
728
 
729
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
730
    {
731
      shareEntities_args args = new shareEntities_args();
732
      args.setEntityIds(entityIds);
733
      args.setEmail(email);
734
      sendBase("shareEntities", args);
735
    }
736
 
737
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
738
    {
739
      shareEntities_result result = new shareEntities_result();
740
      receiveBase(result, "shareEntities");
741
      if (result.hse != null) {
742
        throw result.hse;
743
      }
744
      return;
745
    }
746
 
4693 mandeep.dh 747
    public List<Agent> getAgents() throws org.apache.thrift.TException
748
    {
749
      send_getAgents();
750
      return recv_getAgents();
751
    }
752
 
753
    public void send_getAgents() throws org.apache.thrift.TException
754
    {
755
      getAgents_args args = new getAgents_args();
756
      sendBase("getAgents", args);
757
    }
758
 
759
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
760
    {
761
      getAgents_result result = new getAgents_result();
762
      receiveBase(result, "getAgents");
763
      if (result.isSetSuccess()) {
764
        return result.success;
765
      }
766
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
767
    }
768
 
769
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
770
    {
771
      send_validateLogIn(emailId, password);
772
      return recv_validateLogIn();
773
    }
774
 
775
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
776
    {
777
      validateLogIn_args args = new validateLogIn_args();
778
      args.setEmailId(emailId);
779
      args.setPassword(password);
780
      sendBase("validateLogIn", args);
781
    }
782
 
783
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
784
    {
785
      validateLogIn_result result = new validateLogIn_result();
786
      receiveBase(result, "validateLogIn");
787
      if (result.isSetSuccess()) {
788
        return result.success;
789
      }
790
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
791
    }
792
 
793
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
794
    {
795
      send_updatePasswordForAgent(agentEmailId, password);
796
      recv_updatePasswordForAgent();
797
    }
798
 
799
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
800
    {
801
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
802
      args.setAgentEmailId(agentEmailId);
803
      args.setPassword(password);
804
      sendBase("updatePasswordForAgent", args);
805
    }
806
 
807
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
808
    {
809
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
810
      receiveBase(result, "updatePasswordForAgent");
811
      return;
812
    }
813
 
814
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
815
    {
816
      send_getRoleNamesForAgent(agentEmailId);
817
      return recv_getRoleNamesForAgent();
818
    }
819
 
820
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
821
    {
822
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
823
      args.setAgentEmailId(agentEmailId);
824
      sendBase("getRoleNamesForAgent", args);
825
    }
826
 
827
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
828
    {
829
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
830
      receiveBase(result, "getRoleNamesForAgent");
831
      if (result.isSetSuccess()) {
832
        return result.success;
833
      }
834
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
835
    }
836
 
837
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
838
    {
839
      send_getPermissionsForRoleName(roleName);
840
      return recv_getPermissionsForRoleName();
841
    }
842
 
843
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
844
    {
845
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
846
      args.setRoleName(roleName);
847
      sendBase("getPermissionsForRoleName", args);
848
    }
849
 
850
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
851
    {
852
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
853
      receiveBase(result, "getPermissionsForRoleName");
854
      if (result.isSetSuccess()) {
855
        return result.success;
856
      }
857
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
858
    }
859
 
4806 varun.gupt 860
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
861
    {
862
      send_saveQuickLink(url, text);
863
      recv_saveQuickLink();
864
    }
865
 
866
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
867
    {
868
      saveQuickLink_args args = new saveQuickLink_args();
869
      args.setUrl(url);
870
      args.setText(text);
871
      sendBase("saveQuickLink", args);
872
    }
873
 
874
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
875
    {
876
      saveQuickLink_result result = new saveQuickLink_result();
877
      receiveBase(result, "saveQuickLink");
878
      if (result.hse != null) {
879
        throw result.hse;
880
      }
881
      return;
882
    }
883
 
884
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
885
    {
886
      send_getQuickLinks();
887
      return recv_getQuickLinks();
888
    }
889
 
890
    public void send_getQuickLinks() throws org.apache.thrift.TException
891
    {
892
      getQuickLinks_args args = new getQuickLinks_args();
893
      sendBase("getQuickLinks", args);
894
    }
895
 
896
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
897
    {
898
      getQuickLinks_result result = new getQuickLinks_result();
899
      receiveBase(result, "getQuickLinks");
900
      if (result.isSetSuccess()) {
901
        return result.success;
902
      }
903
      if (result.hse != null) {
904
        throw result.hse;
905
      }
906
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
907
    }
908
 
4996 varun.gupt 909
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
910
    {
911
      send_updateQuickLink(id, url, text);
912
      recv_updateQuickLink();
913
    }
914
 
915
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
916
    {
917
      updateQuickLink_args args = new updateQuickLink_args();
918
      args.setId(id);
919
      args.setUrl(url);
920
      args.setText(text);
921
      sendBase("updateQuickLink", args);
922
    }
923
 
924
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
925
    {
926
      updateQuickLink_result result = new updateQuickLink_result();
927
      receiveBase(result, "updateQuickLink");
928
      if (result.hse != null) {
929
        throw result.hse;
930
      }
931
      return;
932
    }
933
 
5055 varun.gupt 934
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
935
    {
936
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
937
      return recv_getEmailsForNotificationsSent();
938
    }
939
 
940
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
941
    {
942
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
943
      args.setStartDatetime(startDatetime);
944
      args.setEndDatetime(endDatetime);
945
      sendBase("getEmailsForNotificationsSent", args);
946
    }
947
 
948
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
949
    {
950
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
951
      receiveBase(result, "getEmailsForNotificationsSent");
952
      if (result.isSetSuccess()) {
953
        return result.success;
954
      }
955
      if (result.hse != null) {
956
        throw result.hse;
957
      }
958
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
959
    }
960
 
6322 amar.kumar 961
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
962
    {
963
      send_getOrderConfirmationMail(orderId);
964
      return recv_getOrderConfirmationMail();
965
    }
966
 
967
    public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
968
    {
969
      getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
970
      args.setOrderId(orderId);
971
      sendBase("getOrderConfirmationMail", args);
972
    }
973
 
974
    public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException
975
    {
976
      getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
977
      receiveBase(result, "getOrderConfirmationMail");
978
      if (result.isSetSuccess()) {
979
        return result.success;
980
      }
981
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
982
    }
983
 
7221 kshitij.so 984
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
985
    {
986
      send_getOrderDeliveryMail(orderId);
987
      return recv_getOrderDeliveryMail();
988
    }
989
 
990
    public void send_getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
991
    {
992
      getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
993
      args.setOrderId(orderId);
994
      sendBase("getOrderDeliveryMail", args);
995
    }
996
 
997
    public String recv_getOrderDeliveryMail() throws org.apache.thrift.TException
998
    {
999
      getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
1000
      receiveBase(result, "getOrderDeliveryMail");
1001
      if (result.isSetSuccess()) {
1002
        return result.success;
1003
      }
1004
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1005
    }
1006
 
7410 amar.kumar 1007
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1008
    {
1009
      send_getWarehouseIdsForAgent(agentEmailId);
1010
      return recv_getWarehouseIdsForAgent();
1011
    }
1012
 
1013
    public void send_getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1014
    {
1015
      getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
1016
      args.setAgentEmailId(agentEmailId);
1017
      sendBase("getWarehouseIdsForAgent", args);
1018
    }
1019
 
1020
    public List<Long> recv_getWarehouseIdsForAgent() throws org.apache.thrift.TException
1021
    {
1022
      getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
1023
      receiveBase(result, "getWarehouseIdsForAgent");
1024
      if (result.isSetSuccess()) {
1025
        return result.success;
1026
      }
1027
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
1028
    }
1029
 
352 ashish 1030
  }
3430 rajveer 1031
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1032
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1033
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1034
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1035
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1036
        this.clientManager = clientManager;
1037
        this.protocolFactory = protocolFactory;
1038
      }
1039
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1040
        return new AsyncClient(protocolFactory, clientManager, transport);
1041
      }
352 ashish 1042
    }
1043
 
3430 rajveer 1044
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1045
      super(protocolFactory, clientManager, transport);
1046
    }
352 ashish 1047
 
5864 rajveer 1048
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1049
      checkReady();
5864 rajveer 1050
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1051
      this.___currentMethod = method_call;
1052
      ___manager.call(method_call);
1053
    }
1054
 
1055
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
5864 rajveer 1056
      private List<String> emailTo;
3430 rajveer 1057
      private String emailFrom;
1058
      private String subject;
1059
      private String body;
1060
      private String source;
1061
      private String emailType;
5864 rajveer 1062
      private List<String> cc;
1063
      private List<String> bcc;
1064
      public saveUserEmailForSending_call(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1065
        super(client, protocolFactory, transport, resultHandler, false);
1066
        this.emailTo = emailTo;
1067
        this.emailFrom = emailFrom;
1068
        this.subject = subject;
1069
        this.body = body;
1070
        this.source = source;
1071
        this.emailType = emailType;
5864 rajveer 1072
        this.cc = cc;
1073
        this.bcc = bcc;
352 ashish 1074
      }
3430 rajveer 1075
 
1076
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1077
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
1078
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
1079
        args.setEmailTo(emailTo);
1080
        args.setEmailFrom(emailFrom);
1081
        args.setSubject(subject);
1082
        args.setBody(body);
1083
        args.setSource(source);
1084
        args.setEmailType(emailType);
5864 rajveer 1085
        args.setCc(cc);
1086
        args.setBcc(bcc);
3430 rajveer 1087
        args.write(prot);
1088
        prot.writeMessageEnd();
1089
      }
1090
 
1091
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1092
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1093
          throw new IllegalStateException("Method call not finished!");
1094
        }
1095
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1096
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1097
        return (new Client(prot)).recv_saveUserEmailForSending();
1098
      }
352 ashish 1099
    }
1100
 
3430 rajveer 1101
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1102
      checkReady();
1103
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1104
      this.___currentMethod = method_call;
1105
      ___manager.call(method_call);
1106
    }
1107
 
1108
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1109
      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 {
1110
        super(client, protocolFactory, transport, resultHandler, false);
1111
      }
1112
 
1113
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1114
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1115
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1116
        args.write(prot);
1117
        prot.writeMessageEnd();
1118
      }
1119
 
1120
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
1121
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1122
          throw new IllegalStateException("Method call not finished!");
1123
        }
1124
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1125
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1126
        return (new Client(prot)).recv_getEmailsToBeSent();
1127
      }
1128
    }
1129
 
1130
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1131
      checkReady();
1132
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1133
      this.___currentMethod = method_call;
1134
      ___manager.call(method_call);
1135
    }
1136
 
1137
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1138
      private long emailId;
1139
      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 {
1140
        super(client, protocolFactory, transport, resultHandler, false);
1141
        this.emailId = emailId;
1142
      }
1143
 
1144
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1145
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1146
        markEmailAsSent_args args = new markEmailAsSent_args();
1147
        args.setEmailId(emailId);
1148
        args.write(prot);
1149
        prot.writeMessageEnd();
1150
      }
1151
 
1152
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1153
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1154
          throw new IllegalStateException("Method call not finished!");
1155
        }
1156
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1157
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1158
        (new Client(prot)).recv_markEmailAsSent();
1159
      }
1160
    }
1161
 
1162
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1163
      checkReady();
1164
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1165
      this.___currentMethod = method_call;
1166
      ___manager.call(method_call);
1167
    }
1168
 
1169
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1170
      private Mail mail;
1171
      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 {
1172
        super(client, protocolFactory, transport, resultHandler, false);
1173
        this.mail = mail;
1174
      }
1175
 
1176
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1177
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1178
        sendMail_args args = new sendMail_args();
1179
        args.setMail(mail);
1180
        args.write(prot);
1181
        prot.writeMessageEnd();
1182
      }
1183
 
1184
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1185
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1186
          throw new IllegalStateException("Method call not finished!");
1187
        }
1188
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1189
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1190
        (new Client(prot)).recv_sendMail();
1191
      }
1192
    }
1193
 
1194
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1195
      checkReady();
1196
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1197
      this.___currentMethod = method_call;
1198
      ___manager.call(method_call);
1199
    }
1200
 
1201
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1202
      private TextMessage message;
1203
      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 {
1204
        super(client, protocolFactory, transport, resultHandler, false);
1205
        this.message = message;
1206
      }
1207
 
1208
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1209
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1210
        sendText_args args = new sendText_args();
1211
        args.setMessage(message);
1212
        args.write(prot);
1213
        prot.writeMessageEnd();
1214
      }
1215
 
1216
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1217
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1218
          throw new IllegalStateException("Method call not finished!");
1219
        }
1220
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1221
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1222
        (new Client(prot)).recv_sendText();
1223
      }
1224
    }
1225
 
1226
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1227
      checkReady();
1228
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1229
      this.___currentMethod = method_call;
1230
      ___manager.call(method_call);
1231
    }
1232
 
1233
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1234
      private Message message;
1235
      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 {
1236
        super(client, protocolFactory, transport, resultHandler, false);
1237
        this.message = message;
1238
      }
1239
 
1240
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1241
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1242
        addMessage_args args = new addMessage_args();
1243
        args.setMessage(message);
1244
        args.write(prot);
1245
        prot.writeMessageEnd();
1246
      }
1247
 
1248
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1249
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1250
          throw new IllegalStateException("Method call not finished!");
1251
        }
1252
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1253
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1254
        (new Client(prot)).recv_addMessage();
1255
      }
1256
    }
1257
 
1258
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1259
      checkReady();
1260
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1261
      this.___currentMethod = method_call;
1262
      ___manager.call(method_call);
1263
    }
1264
 
1265
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1266
      private long id;
1267
      private String message;
1268
      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 {
1269
        super(client, protocolFactory, transport, resultHandler, false);
1270
        this.id = id;
1271
        this.message = message;
1272
      }
1273
 
1274
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1275
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1276
        updateMessage_args args = new updateMessage_args();
1277
        args.setId(id);
1278
        args.setMessage(message);
1279
        args.write(prot);
1280
        prot.writeMessageEnd();
1281
      }
1282
 
1283
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1284
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1285
          throw new IllegalStateException("Method call not finished!");
1286
        }
1287
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1288
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1289
        (new Client(prot)).recv_updateMessage();
1290
      }
1291
    }
1292
 
1293
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1294
      checkReady();
1295
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1296
      this.___currentMethod = method_call;
1297
      ___manager.call(method_call);
1298
    }
1299
 
1300
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1301
      private long id;
1302
      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 {
1303
        super(client, protocolFactory, transport, resultHandler, false);
1304
        this.id = id;
1305
      }
1306
 
1307
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1308
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1309
        getMessage_args args = new getMessage_args();
1310
        args.setId(id);
1311
        args.write(prot);
1312
        prot.writeMessageEnd();
1313
      }
1314
 
1315
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1316
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1317
          throw new IllegalStateException("Method call not finished!");
1318
        }
1319
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1320
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1321
        return (new Client(prot)).recv_getMessage();
1322
      }
1323
    }
1324
 
1325
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1326
      checkReady();
1327
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1328
      this.___currentMethod = method_call;
1329
      ___manager.call(method_call);
1330
    }
1331
 
1332
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1333
      private long id;
1334
      private Map<String,String> params;
1335
      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 {
1336
        super(client, protocolFactory, transport, resultHandler, false);
1337
        this.id = id;
1338
        this.params = params;
1339
      }
1340
 
1341
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1342
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1343
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1344
        args.setId(id);
1345
        args.setParams(params);
1346
        args.write(prot);
1347
        prot.writeMessageEnd();
1348
      }
1349
 
1350
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1351
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1352
          throw new IllegalStateException("Method call not finished!");
1353
        }
1354
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1355
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1356
        return (new Client(prot)).recv_getSubstitutedMessage();
1357
      }
1358
    }
1359
 
1360
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1361
      checkReady();
1362
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1363
      this.___currentMethod = method_call;
1364
      ___manager.call(method_call);
1365
    }
1366
 
1367
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1368
      private String username;
1369
      private String password;
1370
      private long warehouseId;
1371
      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 {
1372
        super(client, protocolFactory, transport, resultHandler, false);
1373
        this.username = username;
1374
        this.password = password;
1375
        this.warehouseId = warehouseId;
1376
      }
1377
 
1378
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1379
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1380
        addUser_args args = new addUser_args();
1381
        args.setUsername(username);
1382
        args.setPassword(password);
1383
        args.setWarehouseId(warehouseId);
1384
        args.write(prot);
1385
        prot.writeMessageEnd();
1386
      }
1387
 
1388
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1389
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1390
          throw new IllegalStateException("Method call not finished!");
1391
        }
1392
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1393
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1394
        return (new Client(prot)).recv_addUser();
1395
      }
1396
    }
1397
 
1398
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1399
      checkReady();
1400
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1401
      this.___currentMethod = method_call;
1402
      ___manager.call(method_call);
1403
    }
1404
 
1405
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1406
      private String username;
1407
      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 {
1408
        super(client, protocolFactory, transport, resultHandler, false);
1409
        this.username = username;
1410
      }
1411
 
1412
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1413
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1414
        deleteUser_args args = new deleteUser_args();
1415
        args.setUsername(username);
1416
        args.write(prot);
1417
        prot.writeMessageEnd();
1418
      }
1419
 
1420
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1421
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1422
          throw new IllegalStateException("Method call not finished!");
1423
        }
1424
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1425
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1426
        return (new Client(prot)).recv_deleteUser();
1427
      }
1428
    }
1429
 
1430
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1431
      checkReady();
1432
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1433
      this.___currentMethod = method_call;
1434
      ___manager.call(method_call);
1435
    }
1436
 
1437
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1438
      private String username;
1439
      private String password;
1440
      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 {
1441
        super(client, protocolFactory, transport, resultHandler, false);
1442
        this.username = username;
1443
        this.password = password;
1444
      }
1445
 
1446
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1447
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1448
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1449
        args.setUsername(username);
1450
        args.setPassword(password);
1451
        args.write(prot);
1452
        prot.writeMessageEnd();
1453
      }
1454
 
1455
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1456
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1457
          throw new IllegalStateException("Method call not finished!");
1458
        }
1459
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1460
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1461
        return (new Client(prot)).recv_authenticateDashboardUser();
1462
      }
1463
    }
1464
 
1465
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1466
      checkReady();
1467
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1468
      this.___currentMethod = method_call;
1469
      ___manager.call(method_call);
1470
    }
1471
 
1472
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1473
      private String username;
1474
      private String oldPassword;
1475
      private String newPassword;
1476
      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 {
1477
        super(client, protocolFactory, transport, resultHandler, false);
1478
        this.username = username;
1479
        this.oldPassword = oldPassword;
1480
        this.newPassword = newPassword;
1481
      }
1482
 
1483
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1484
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1485
        updatePassword_args args = new updatePassword_args();
1486
        args.setUsername(username);
1487
        args.setOldPassword(oldPassword);
1488
        args.setNewPassword(newPassword);
1489
        args.write(prot);
1490
        prot.writeMessageEnd();
1491
      }
1492
 
1493
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1494
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1495
          throw new IllegalStateException("Method call not finished!");
1496
        }
1497
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1498
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1499
        return (new Client(prot)).recv_updatePassword();
1500
      }
1501
    }
1502
 
1503
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1504
      checkReady();
1505
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1506
      this.___currentMethod = method_call;
1507
      ___manager.call(method_call);
1508
    }
1509
 
1510
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1511
      private String username;
1512
      private String password;
1513
      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 {
1514
        super(client, protocolFactory, transport, resultHandler, false);
1515
        this.username = username;
1516
        this.password = password;
1517
      }
1518
 
1519
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1520
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1521
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1522
        args.setUsername(username);
1523
        args.setPassword(password);
1524
        args.write(prot);
1525
        prot.writeMessageEnd();
1526
      }
1527
 
1528
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1529
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1530
          throw new IllegalStateException("Method call not finished!");
1531
        }
1532
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1533
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1534
        return (new Client(prot)).recv_authenticateLogisticsUser();
1535
      }
1536
    }
1537
 
1538
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1539
      checkReady();
1540
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1541
      this.___currentMethod = method_call;
1542
      ___manager.call(method_call);
1543
    }
1544
 
1545
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1546
      private String username;
1547
      private String password;
1548
      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 {
1549
        super(client, protocolFactory, transport, resultHandler, false);
1550
        this.username = username;
1551
        this.password = password;
1552
      }
1553
 
1554
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1555
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1556
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1557
        args.setUsername(username);
1558
        args.setPassword(password);
1559
        args.write(prot);
1560
        prot.writeMessageEnd();
1561
      }
1562
 
1563
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1564
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1565
          throw new IllegalStateException("Method call not finished!");
1566
        }
1567
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1568
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1569
        return (new Client(prot)).recv_authenticateStatisticsUser();
1570
      }
1571
    }
1572
 
1573
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1574
      checkReady();
1575
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1576
      this.___currentMethod = method_call;
1577
      ___manager.call(method_call);
1578
    }
1579
 
1580
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1581
      private String username;
1582
      private String password;
1583
      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 {
1584
        super(client, protocolFactory, transport, resultHandler, false);
1585
        this.username = username;
1586
        this.password = password;
1587
      }
1588
 
1589
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1590
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1591
        authenticateReportUser_args args = new authenticateReportUser_args();
1592
        args.setUsername(username);
1593
        args.setPassword(password);
1594
        args.write(prot);
1595
        prot.writeMessageEnd();
1596
      }
1597
 
1598
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1599
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1600
          throw new IllegalStateException("Method call not finished!");
1601
        }
1602
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1603
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1604
        return (new Client(prot)).recv_authenticateReportUser();
1605
      }
1606
    }
1607
 
1608
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1609
      checkReady();
1610
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1611
      this.___currentMethod = method_call;
1612
      ___manager.call(method_call);
1613
    }
1614
 
1615
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1616
      private long role;
1617
      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 {
1618
        super(client, protocolFactory, transport, resultHandler, false);
1619
        this.role = role;
1620
      }
1621
 
1622
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1623
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1624
        getReports_args args = new getReports_args();
1625
        args.setRole(role);
1626
        args.write(prot);
1627
        prot.writeMessageEnd();
1628
      }
1629
 
1630
      public List<Report> getResult() throws org.apache.thrift.TException {
1631
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1632
          throw new IllegalStateException("Method call not finished!");
1633
        }
1634
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1635
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1636
        return (new Client(prot)).recv_getReports();
1637
      }
1638
    }
1639
 
6788 rajveer 1640
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1641
      checkReady();
6788 rajveer 1642
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1643
      this.___currentMethod = method_call;
1644
      ___manager.call(method_call);
1645
    }
1646
 
1647
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1648
      private String username;
1649
      private String password;
6788 rajveer 1650
      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 1651
        super(client, protocolFactory, transport, resultHandler, false);
1652
        this.username = username;
1653
        this.password = password;
1654
      }
1655
 
1656
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1657
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1658
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1659
        args.setUsername(username);
1660
        args.setPassword(password);
1661
        args.write(prot);
1662
        prot.writeMessageEnd();
1663
      }
1664
 
1665
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1666
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1667
          throw new IllegalStateException("Method call not finished!");
1668
        }
1669
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1670
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1671
        return (new Client(prot)).recv_authenticateCatalogUser();
1672
      }
1673
    }
1674
 
4544 varun.gupt 1675
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1676
      checkReady();
1677
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
1678
      this.___currentMethod = method_call;
1679
      ___manager.call(method_call);
1680
    }
1681
 
1682
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
1683
      private List<Long> entityIds;
1684
      private String email;
1685
      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 {
1686
        super(client, protocolFactory, transport, resultHandler, false);
1687
        this.entityIds = entityIds;
1688
        this.email = email;
1689
      }
1690
 
1691
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1692
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
1693
        shareEntities_args args = new shareEntities_args();
1694
        args.setEntityIds(entityIds);
1695
        args.setEmail(email);
1696
        args.write(prot);
1697
        prot.writeMessageEnd();
1698
      }
1699
 
1700
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1701
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1702
          throw new IllegalStateException("Method call not finished!");
1703
        }
1704
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1705
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1706
        (new Client(prot)).recv_shareEntities();
1707
      }
1708
    }
1709
 
4693 mandeep.dh 1710
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
1711
      checkReady();
1712
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
1713
      this.___currentMethod = method_call;
1714
      ___manager.call(method_call);
1715
    }
1716
 
1717
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
1718
      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 {
1719
        super(client, protocolFactory, transport, resultHandler, false);
1720
      }
1721
 
1722
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1723
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
1724
        getAgents_args args = new getAgents_args();
1725
        args.write(prot);
1726
        prot.writeMessageEnd();
1727
      }
1728
 
1729
      public List<Agent> getResult() throws org.apache.thrift.TException {
1730
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1731
          throw new IllegalStateException("Method call not finished!");
1732
        }
1733
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1734
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1735
        return (new Client(prot)).recv_getAgents();
1736
      }
1737
    }
1738
 
1739
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
1740
      checkReady();
1741
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
1742
      this.___currentMethod = method_call;
1743
      ___manager.call(method_call);
1744
    }
1745
 
1746
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
1747
      private String emailId;
1748
      private String password;
1749
      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 {
1750
        super(client, protocolFactory, transport, resultHandler, false);
1751
        this.emailId = emailId;
1752
        this.password = password;
1753
      }
1754
 
1755
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1756
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
1757
        validateLogIn_args args = new validateLogIn_args();
1758
        args.setEmailId(emailId);
1759
        args.setPassword(password);
1760
        args.write(prot);
1761
        prot.writeMessageEnd();
1762
      }
1763
 
1764
      public boolean getResult() throws org.apache.thrift.TException {
1765
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1766
          throw new IllegalStateException("Method call not finished!");
1767
        }
1768
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1769
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1770
        return (new Client(prot)).recv_validateLogIn();
1771
      }
1772
    }
1773
 
1774
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
1775
      checkReady();
1776
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
1777
      this.___currentMethod = method_call;
1778
      ___manager.call(method_call);
1779
    }
1780
 
1781
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1782
      private String agentEmailId;
1783
      private String password;
1784
      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 {
1785
        super(client, protocolFactory, transport, resultHandler, false);
1786
        this.agentEmailId = agentEmailId;
1787
        this.password = password;
1788
      }
1789
 
1790
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1791
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1792
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
1793
        args.setAgentEmailId(agentEmailId);
1794
        args.setPassword(password);
1795
        args.write(prot);
1796
        prot.writeMessageEnd();
1797
      }
1798
 
1799
      public void getResult() throws org.apache.thrift.TException {
1800
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1801
          throw new IllegalStateException("Method call not finished!");
1802
        }
1803
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1804
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1805
        (new Client(prot)).recv_updatePasswordForAgent();
1806
      }
1807
    }
1808
 
1809
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
1810
      checkReady();
1811
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
1812
      this.___currentMethod = method_call;
1813
      ___manager.call(method_call);
1814
    }
1815
 
1816
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1817
      private String agentEmailId;
1818
      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 {
1819
        super(client, protocolFactory, transport, resultHandler, false);
1820
        this.agentEmailId = agentEmailId;
1821
      }
1822
 
1823
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1824
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1825
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
1826
        args.setAgentEmailId(agentEmailId);
1827
        args.write(prot);
1828
        prot.writeMessageEnd();
1829
      }
1830
 
1831
      public List<String> getResult() throws org.apache.thrift.TException {
1832
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1833
          throw new IllegalStateException("Method call not finished!");
1834
        }
1835
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1836
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1837
        return (new Client(prot)).recv_getRoleNamesForAgent();
1838
      }
1839
    }
1840
 
1841
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1842
      checkReady();
1843
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1844
      this.___currentMethod = method_call;
1845
      ___manager.call(method_call);
1846
    }
1847
 
1848
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1849
      private String roleName;
1850
      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 {
1851
        super(client, protocolFactory, transport, resultHandler, false);
1852
        this.roleName = roleName;
1853
      }
1854
 
1855
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1856
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
1857
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
1858
        args.setRoleName(roleName);
1859
        args.write(prot);
1860
        prot.writeMessageEnd();
1861
      }
1862
 
1863
      public List<String> getResult() throws org.apache.thrift.TException {
1864
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1865
          throw new IllegalStateException("Method call not finished!");
1866
        }
1867
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1868
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1869
        return (new Client(prot)).recv_getPermissionsForRoleName();
1870
      }
1871
    }
1872
 
4806 varun.gupt 1873
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1874
      checkReady();
1875
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
1876
      this.___currentMethod = method_call;
1877
      ___manager.call(method_call);
1878
    }
1879
 
1880
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1881
      private String url;
1882
      private String text;
1883
      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 {
1884
        super(client, protocolFactory, transport, resultHandler, false);
1885
        this.url = url;
1886
        this.text = text;
1887
      }
1888
 
1889
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1890
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1891
        saveQuickLink_args args = new saveQuickLink_args();
1892
        args.setUrl(url);
1893
        args.setText(text);
1894
        args.write(prot);
1895
        prot.writeMessageEnd();
1896
      }
1897
 
1898
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1899
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1900
          throw new IllegalStateException("Method call not finished!");
1901
        }
1902
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1903
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1904
        (new Client(prot)).recv_saveQuickLink();
1905
      }
1906
    }
1907
 
1908
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
1909
      checkReady();
1910
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
1911
      this.___currentMethod = method_call;
1912
      ___manager.call(method_call);
1913
    }
1914
 
1915
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
1916
      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 {
1917
        super(client, protocolFactory, transport, resultHandler, false);
1918
      }
1919
 
1920
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1921
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
1922
        getQuickLinks_args args = new getQuickLinks_args();
1923
        args.write(prot);
1924
        prot.writeMessageEnd();
1925
      }
1926
 
1927
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
1928
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1929
          throw new IllegalStateException("Method call not finished!");
1930
        }
1931
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1932
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1933
        return (new Client(prot)).recv_getQuickLinks();
1934
      }
1935
    }
1936
 
4996 varun.gupt 1937
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
1938
      checkReady();
1939
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
1940
      this.___currentMethod = method_call;
1941
      ___manager.call(method_call);
1942
    }
1943
 
1944
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
1945
      private long id;
1946
      private String url;
1947
      private String text;
1948
      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 {
1949
        super(client, protocolFactory, transport, resultHandler, false);
1950
        this.id = id;
1951
        this.url = url;
1952
        this.text = text;
1953
      }
1954
 
1955
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1956
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
1957
        updateQuickLink_args args = new updateQuickLink_args();
1958
        args.setId(id);
1959
        args.setUrl(url);
1960
        args.setText(text);
1961
        args.write(prot);
1962
        prot.writeMessageEnd();
1963
      }
1964
 
1965
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1966
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1967
          throw new IllegalStateException("Method call not finished!");
1968
        }
1969
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1970
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1971
        (new Client(prot)).recv_updateQuickLink();
1972
      }
1973
    }
1974
 
5055 varun.gupt 1975
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
1976
      checkReady();
1977
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
1978
      this.___currentMethod = method_call;
1979
      ___manager.call(method_call);
1980
    }
1981
 
1982
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1983
      private long startDatetime;
1984
      private long endDatetime;
1985
      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 {
1986
        super(client, protocolFactory, transport, resultHandler, false);
1987
        this.startDatetime = startDatetime;
1988
        this.endDatetime = endDatetime;
1989
      }
1990
 
1991
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1992
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1993
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
1994
        args.setStartDatetime(startDatetime);
1995
        args.setEndDatetime(endDatetime);
1996
        args.write(prot);
1997
        prot.writeMessageEnd();
1998
      }
1999
 
2000
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
2001
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2002
          throw new IllegalStateException("Method call not finished!");
2003
        }
2004
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2005
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2006
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
2007
      }
2008
    }
2009
 
6322 amar.kumar 2010
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {
2011
      checkReady();
2012
      getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2013
      this.___currentMethod = method_call;
2014
      ___manager.call(method_call);
2015
    }
2016
 
2017
    public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2018
      private long orderId;
2019
      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 {
2020
        super(client, protocolFactory, transport, resultHandler, false);
2021
        this.orderId = orderId;
2022
      }
2023
 
2024
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2025
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2026
        getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
2027
        args.setOrderId(orderId);
2028
        args.write(prot);
2029
        prot.writeMessageEnd();
2030
      }
2031
 
2032
      public String getResult() throws org.apache.thrift.TException {
2033
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2034
          throw new IllegalStateException("Method call not finished!");
2035
        }
2036
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2037
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2038
        return (new Client(prot)).recv_getOrderConfirmationMail();
2039
      }
2040
    }
2041
 
7221 kshitij.so 2042
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException {
2043
      checkReady();
2044
      getOrderDeliveryMail_call method_call = new getOrderDeliveryMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2045
      this.___currentMethod = method_call;
2046
      ___manager.call(method_call);
2047
    }
2048
 
2049
    public static class getOrderDeliveryMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2050
      private long orderId;
2051
      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 {
2052
        super(client, protocolFactory, transport, resultHandler, false);
2053
        this.orderId = orderId;
2054
      }
2055
 
2056
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2057
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderDeliveryMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2058
        getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
2059
        args.setOrderId(orderId);
2060
        args.write(prot);
2061
        prot.writeMessageEnd();
2062
      }
2063
 
2064
      public String getResult() throws org.apache.thrift.TException {
2065
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2066
          throw new IllegalStateException("Method call not finished!");
2067
        }
2068
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2069
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2070
        return (new Client(prot)).recv_getOrderDeliveryMail();
2071
      }
2072
    }
2073
 
7410 amar.kumar 2074
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException {
2075
      checkReady();
2076
      getWarehouseIdsForAgent_call method_call = new getWarehouseIdsForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
2077
      this.___currentMethod = method_call;
2078
      ___manager.call(method_call);
2079
    }
2080
 
2081
    public static class getWarehouseIdsForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2082
      private String agentEmailId;
2083
      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 {
2084
        super(client, protocolFactory, transport, resultHandler, false);
2085
        this.agentEmailId = agentEmailId;
2086
      }
2087
 
2088
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2089
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseIdsForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2090
        getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
2091
        args.setAgentEmailId(agentEmailId);
2092
        args.write(prot);
2093
        prot.writeMessageEnd();
2094
      }
2095
 
2096
      public List<Long> getResult() throws org.apache.thrift.TException {
2097
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2098
          throw new IllegalStateException("Method call not finished!");
2099
        }
2100
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2101
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2102
        return (new Client(prot)).recv_getWarehouseIdsForAgent();
2103
      }
2104
    }
2105
 
3430 rajveer 2106
  }
2107
 
2108
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2109
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2110
    public Processor(I iface) {
2111
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2112
    }
2113
 
2114
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2115
      super(iface, getProcessMap(processMap));
2116
    }
2117
 
2118
    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) {
2119
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
2120
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
2121
      processMap.put("markEmailAsSent", new markEmailAsSent());
2122
      processMap.put("sendMail", new sendMail());
2123
      processMap.put("sendText", new sendText());
2124
      processMap.put("addMessage", new addMessage());
2125
      processMap.put("updateMessage", new updateMessage());
2126
      processMap.put("getMessage", new getMessage());
2127
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
2128
      processMap.put("addUser", new addUser());
2129
      processMap.put("deleteUser", new deleteUser());
2130
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
2131
      processMap.put("updatePassword", new updatePassword());
2132
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
2133
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
2134
      processMap.put("authenticateReportUser", new authenticateReportUser());
2135
      processMap.put("getReports", new getReports());
2136
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 2137
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 2138
      processMap.put("getAgents", new getAgents());
2139
      processMap.put("validateLogIn", new validateLogIn());
2140
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
2141
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
2142
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 2143
      processMap.put("saveQuickLink", new saveQuickLink());
2144
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 2145
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 2146
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
6322 amar.kumar 2147
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
7221 kshitij.so 2148
      processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());
7410 amar.kumar 2149
      processMap.put("getWarehouseIdsForAgent", new getWarehouseIdsForAgent());
3430 rajveer 2150
      return processMap;
2151
    }
2152
 
2153
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2154
      public saveUserEmailForSending() {
2155
        super("saveUserEmailForSending");
2156
      }
2157
 
2158
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
2159
        return new saveUserEmailForSending_args();
2160
      }
2161
 
2162
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 2163
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
2164
        try {
5864 rajveer 2165
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc);
3206 mandeep.dh 2166
          result.setSuccessIsSet(true);
1395 varun.gupt 2167
        } catch (HelperServiceException se) {
2168
          result.se = se;
2169
        }
3430 rajveer 2170
        return result;
1395 varun.gupt 2171
      }
2172
    }
2173
 
3430 rajveer 2174
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
2175
      public getEmailsToBeSent() {
2176
        super("getEmailsToBeSent");
2177
      }
2178
 
2179
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
2180
        return new getEmailsToBeSent_args();
2181
      }
2182
 
2183
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2184
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
2185
        try {
3430 rajveer 2186
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 2187
        } catch (HelperServiceException se) {
2188
          result.se = se;
2189
        }
3430 rajveer 2190
        return result;
1422 varun.gupt 2191
      }
2192
    }
2193
 
3430 rajveer 2194
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
2195
      public markEmailAsSent() {
2196
        super("markEmailAsSent");
2197
      }
2198
 
2199
      protected markEmailAsSent_args getEmptyArgsInstance() {
2200
        return new markEmailAsSent_args();
2201
      }
2202
 
2203
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2204
        markEmailAsSent_result result = new markEmailAsSent_result();
2205
        try {
3430 rajveer 2206
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 2207
        } catch (HelperServiceException se) {
2208
          result.se = se;
2209
        }
3430 rajveer 2210
        return result;
1422 varun.gupt 2211
      }
2212
    }
2213
 
3430 rajveer 2214
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
2215
      public sendMail() {
2216
        super("sendMail");
2217
      }
2218
 
2219
      protected sendMail_args getEmptyArgsInstance() {
2220
        return new sendMail_args();
2221
      }
2222
 
2223
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 2224
        sendMail_result result = new sendMail_result();
2225
        try {
3430 rajveer 2226
          iface.sendMail(args.mail);
352 ashish 2227
        } catch (HelperServiceException se) {
2228
          result.se = se;
2229
        }
3430 rajveer 2230
        return result;
352 ashish 2231
      }
2232
    }
2233
 
3430 rajveer 2234
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
2235
      public sendText() {
2236
        super("sendText");
2237
      }
2238
 
2239
      protected sendText_args getEmptyArgsInstance() {
2240
        return new sendText_args();
2241
      }
2242
 
2243
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 2244
        sendText_result result = new sendText_result();
2245
        try {
3430 rajveer 2246
          iface.sendText(args.message);
352 ashish 2247
        } catch (HelperServiceException se) {
2248
          result.se = se;
2249
        }
3430 rajveer 2250
        return result;
352 ashish 2251
      }
2252
    }
2253
 
3430 rajveer 2254
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
2255
      public addMessage() {
2256
        super("addMessage");
2257
      }
2258
 
2259
      protected addMessage_args getEmptyArgsInstance() {
2260
        return new addMessage_args();
2261
      }
2262
 
2263
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 2264
        addMessage_result result = new addMessage_result();
2265
        try {
3430 rajveer 2266
          iface.addMessage(args.message);
352 ashish 2267
        } catch (HelperServiceException se) {
2268
          result.se = se;
2269
        }
3430 rajveer 2270
        return result;
352 ashish 2271
      }
2272
    }
2273
 
3430 rajveer 2274
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
2275
      public updateMessage() {
2276
        super("updateMessage");
2277
      }
2278
 
2279
      protected updateMessage_args getEmptyArgsInstance() {
2280
        return new updateMessage_args();
2281
      }
2282
 
2283
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 2284
        updateMessage_result result = new updateMessage_result();
2285
        try {
3430 rajveer 2286
          iface.updateMessage(args.id, args.message);
352 ashish 2287
        } catch (HelperServiceException se) {
2288
          result.se = se;
2289
        }
3430 rajveer 2290
        return result;
352 ashish 2291
      }
2292
    }
2293
 
3430 rajveer 2294
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
2295
      public getMessage() {
2296
        super("getMessage");
2297
      }
2298
 
2299
      protected getMessage_args getEmptyArgsInstance() {
2300
        return new getMessage_args();
2301
      }
2302
 
2303
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 2304
        getMessage_result result = new getMessage_result();
2305
        try {
3430 rajveer 2306
          result.success = iface.getMessage(args.id);
352 ashish 2307
        } catch (HelperServiceException se) {
2308
          result.se = se;
2309
        }
3430 rajveer 2310
        return result;
352 ashish 2311
      }
2312
    }
2313
 
3430 rajveer 2314
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
2315
      public getSubstitutedMessage() {
2316
        super("getSubstitutedMessage");
2317
      }
2318
 
2319
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
2320
        return new getSubstitutedMessage_args();
2321
      }
2322
 
2323
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 2324
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
2325
        try {
3430 rajveer 2326
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 2327
        } catch (HelperServiceException se) {
2328
          result.se = se;
2329
        }
3430 rajveer 2330
        return result;
352 ashish 2331
      }
2332
    }
2333
 
3430 rajveer 2334
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
2335
      public addUser() {
2336
        super("addUser");
2337
      }
2338
 
2339
      protected addUser_args getEmptyArgsInstance() {
2340
        return new addUser_args();
2341
      }
2342
 
2343
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 2344
        addUser_result result = new addUser_result();
2345
        try {
3430 rajveer 2346
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 2347
          result.setSuccessIsSet(true);
2348
        } catch (HelperServiceException se) {
2349
          result.se = se;
2350
        }
3430 rajveer 2351
        return result;
495 rajveer 2352
      }
2353
    }
2354
 
3430 rajveer 2355
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
2356
      public deleteUser() {
2357
        super("deleteUser");
2358
      }
2359
 
2360
      protected deleteUser_args getEmptyArgsInstance() {
2361
        return new deleteUser_args();
2362
      }
2363
 
2364
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 2365
        deleteUser_result result = new deleteUser_result();
2366
        try {
3430 rajveer 2367
          result.success = iface.deleteUser(args.username);
495 rajveer 2368
          result.setSuccessIsSet(true);
2369
        } catch (HelperServiceException se) {
2370
          result.se = se;
2371
        }
3430 rajveer 2372
        return result;
495 rajveer 2373
      }
2374
    }
2375
 
3430 rajveer 2376
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
2377
      public authenticateDashboardUser() {
2378
        super("authenticateDashboardUser");
2379
      }
2380
 
2381
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
2382
        return new authenticateDashboardUser_args();
2383
      }
2384
 
2385
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 2386
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 2387
        try {
3430 rajveer 2388
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 2389
        } catch (HelperServiceException se) {
2390
          result.se = se;
2391
        }
3430 rajveer 2392
        return result;
495 rajveer 2393
      }
2394
    }
2395
 
3430 rajveer 2396
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
2397
      public updatePassword() {
2398
        super("updatePassword");
2399
      }
2400
 
2401
      protected updatePassword_args getEmptyArgsInstance() {
2402
        return new updatePassword_args();
2403
      }
2404
 
2405
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 2406
        updatePassword_result result = new updatePassword_result();
2407
        try {
3430 rajveer 2408
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 2409
          result.setSuccessIsSet(true);
2410
        } catch (HelperServiceException se) {
2411
          result.se = se;
2412
        }
3430 rajveer 2413
        return result;
495 rajveer 2414
      }
2415
    }
2416
 
3430 rajveer 2417
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
2418
      public authenticateLogisticsUser() {
2419
        super("authenticateLogisticsUser");
2420
      }
2421
 
2422
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
2423
        return new authenticateLogisticsUser_args();
2424
      }
2425
 
2426
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 2427
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
2428
        try {
3430 rajveer 2429
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 2430
        } catch (HelperServiceException hse) {
2431
          result.hse = hse;
2432
        }
3430 rajveer 2433
        return result;
750 chandransh 2434
      }
2435
    }
2436
 
3430 rajveer 2437
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
2438
      public authenticateStatisticsUser() {
2439
        super("authenticateStatisticsUser");
2440
      }
2441
 
2442
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
2443
        return new authenticateStatisticsUser_args();
2444
      }
2445
 
2446
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 2447
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
2448
        try {
3430 rajveer 2449
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 2450
        } catch (HelperServiceException hse) {
2451
          result.hse = hse;
2452
        }
3430 rajveer 2453
        return result;
1611 ankur.sing 2454
      }
2455
    }
2456
 
3430 rajveer 2457
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
2458
      public authenticateReportUser() {
2459
        super("authenticateReportUser");
2460
      }
2461
 
2462
      protected authenticateReportUser_args getEmptyArgsInstance() {
2463
        return new authenticateReportUser_args();
2464
      }
2465
 
2466
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2467
        authenticateReportUser_result result = new authenticateReportUser_result();
2468
        try {
3430 rajveer 2469
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 2470
        } catch (HelperServiceException hse) {
2471
          result.hse = hse;
2472
        }
3430 rajveer 2473
        return result;
1891 ankur.sing 2474
      }
2475
    }
2476
 
3430 rajveer 2477
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
2478
      public getReports() {
2479
        super("getReports");
2480
      }
2481
 
2482
      protected getReports_args getEmptyArgsInstance() {
2483
        return new getReports_args();
2484
      }
2485
 
2486
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 2487
        getReports_result result = new getReports_result();
3430 rajveer 2488
        result.success = iface.getReports(args.role);
2489
        return result;
1891 ankur.sing 2490
      }
2491
    }
2492
 
3430 rajveer 2493
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
2494
      public authenticateCatalogUser() {
2495
        super("authenticateCatalogUser");
2496
      }
2497
 
2498
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
2499
        return new authenticateCatalogUser_args();
2500
      }
2501
 
2502
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 2503
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
2504
        try {
6788 rajveer 2505
          result.success = iface.authenticateCatalogUser(args.username, args.password);
2024 ankur.sing 2506
        } catch (HelperServiceException hse) {
2507
          result.hse = hse;
2508
        }
3430 rajveer 2509
        return result;
2024 ankur.sing 2510
      }
2511
    }
2512
 
4544 varun.gupt 2513
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
2514
      public shareEntities() {
2515
        super("shareEntities");
2516
      }
2517
 
2518
      protected shareEntities_args getEmptyArgsInstance() {
2519
        return new shareEntities_args();
2520
      }
2521
 
2522
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
2523
        shareEntities_result result = new shareEntities_result();
2524
        try {
2525
          iface.shareEntities(args.entityIds, args.email);
2526
        } catch (HelperServiceException hse) {
2527
          result.hse = hse;
2528
        }
2529
        return result;
2530
      }
2531
    }
2532
 
4693 mandeep.dh 2533
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
2534
      public getAgents() {
2535
        super("getAgents");
2536
      }
2537
 
2538
      protected getAgents_args getEmptyArgsInstance() {
2539
        return new getAgents_args();
2540
      }
2541
 
2542
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
2543
        getAgents_result result = new getAgents_result();
2544
        result.success = iface.getAgents();
2545
        return result;
2546
      }
2547
    }
2548
 
2549
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
2550
      public validateLogIn() {
2551
        super("validateLogIn");
2552
      }
2553
 
2554
      protected validateLogIn_args getEmptyArgsInstance() {
2555
        return new validateLogIn_args();
2556
      }
2557
 
2558
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
2559
        validateLogIn_result result = new validateLogIn_result();
2560
        result.success = iface.validateLogIn(args.emailId, args.password);
2561
        result.setSuccessIsSet(true);
2562
        return result;
2563
      }
2564
    }
2565
 
2566
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
2567
      public updatePasswordForAgent() {
2568
        super("updatePasswordForAgent");
2569
      }
2570
 
2571
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
2572
        return new updatePasswordForAgent_args();
2573
      }
2574
 
2575
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
2576
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
2577
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
2578
        return result;
2579
      }
2580
    }
2581
 
2582
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
2583
      public getRoleNamesForAgent() {
2584
        super("getRoleNamesForAgent");
2585
      }
2586
 
2587
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
2588
        return new getRoleNamesForAgent_args();
2589
      }
2590
 
2591
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
2592
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
2593
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
2594
        return result;
2595
      }
2596
    }
2597
 
2598
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
2599
      public getPermissionsForRoleName() {
2600
        super("getPermissionsForRoleName");
2601
      }
2602
 
2603
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
2604
        return new getPermissionsForRoleName_args();
2605
      }
2606
 
2607
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
2608
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
2609
        result.success = iface.getPermissionsForRoleName(args.roleName);
2610
        return result;
2611
      }
2612
    }
2613
 
4806 varun.gupt 2614
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
2615
      public saveQuickLink() {
2616
        super("saveQuickLink");
2617
      }
2618
 
2619
      protected saveQuickLink_args getEmptyArgsInstance() {
2620
        return new saveQuickLink_args();
2621
      }
2622
 
2623
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
2624
        saveQuickLink_result result = new saveQuickLink_result();
2625
        try {
2626
          iface.saveQuickLink(args.url, args.text);
2627
        } catch (HelperServiceException hse) {
2628
          result.hse = hse;
2629
        }
2630
        return result;
2631
      }
2632
    }
2633
 
2634
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
2635
      public getQuickLinks() {
2636
        super("getQuickLinks");
2637
      }
2638
 
2639
      protected getQuickLinks_args getEmptyArgsInstance() {
2640
        return new getQuickLinks_args();
2641
      }
2642
 
2643
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
2644
        getQuickLinks_result result = new getQuickLinks_result();
2645
        try {
2646
          result.success = iface.getQuickLinks();
2647
        } catch (HelperServiceException hse) {
2648
          result.hse = hse;
2649
        }
2650
        return result;
2651
      }
2652
    }
2653
 
4996 varun.gupt 2654
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
2655
      public updateQuickLink() {
2656
        super("updateQuickLink");
2657
      }
2658
 
2659
      protected updateQuickLink_args getEmptyArgsInstance() {
2660
        return new updateQuickLink_args();
2661
      }
2662
 
2663
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
2664
        updateQuickLink_result result = new updateQuickLink_result();
2665
        try {
2666
          iface.updateQuickLink(args.id, args.url, args.text);
2667
        } catch (HelperServiceException hse) {
2668
          result.hse = hse;
2669
        }
2670
        return result;
2671
      }
2672
    }
2673
 
5055 varun.gupt 2674
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
2675
      public getEmailsForNotificationsSent() {
2676
        super("getEmailsForNotificationsSent");
2677
      }
2678
 
2679
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
2680
        return new getEmailsForNotificationsSent_args();
2681
      }
2682
 
2683
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
2684
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
2685
        try {
2686
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
2687
        } catch (HelperServiceException hse) {
2688
          result.hse = hse;
2689
        }
2690
        return result;
2691
      }
2692
    }
2693
 
6322 amar.kumar 2694
    private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {
2695
      public getOrderConfirmationMail() {
2696
        super("getOrderConfirmationMail");
2697
      }
2698
 
2699
      protected getOrderConfirmationMail_args getEmptyArgsInstance() {
2700
        return new getOrderConfirmationMail_args();
2701
      }
2702
 
2703
      protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {
2704
        getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
2705
        result.success = iface.getOrderConfirmationMail(args.orderId);
2706
        return result;
2707
      }
2708
    }
2709
 
7221 kshitij.so 2710
    private static class getOrderDeliveryMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderDeliveryMail_args> {
2711
      public getOrderDeliveryMail() {
2712
        super("getOrderDeliveryMail");
2713
      }
2714
 
2715
      protected getOrderDeliveryMail_args getEmptyArgsInstance() {
2716
        return new getOrderDeliveryMail_args();
2717
      }
2718
 
2719
      protected getOrderDeliveryMail_result getResult(I iface, getOrderDeliveryMail_args args) throws org.apache.thrift.TException {
2720
        getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
2721
        result.success = iface.getOrderDeliveryMail(args.orderId);
2722
        return result;
2723
      }
2724
    }
2725
 
7410 amar.kumar 2726
    private static class getWarehouseIdsForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseIdsForAgent_args> {
2727
      public getWarehouseIdsForAgent() {
2728
        super("getWarehouseIdsForAgent");
2729
      }
2730
 
2731
      protected getWarehouseIdsForAgent_args getEmptyArgsInstance() {
2732
        return new getWarehouseIdsForAgent_args();
2733
      }
2734
 
2735
      protected getWarehouseIdsForAgent_result getResult(I iface, getWarehouseIdsForAgent_args args) throws org.apache.thrift.TException {
2736
        getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
2737
        result.success = iface.getWarehouseIdsForAgent(args.agentEmailId);
2738
        return result;
2739
      }
2740
    }
2741
 
352 ashish 2742
  }
2743
 
3430 rajveer 2744
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
2745
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 2746
 
5864 rajveer 2747
    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 2748
    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);
2749
    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);
2750
    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);
2751
    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);
2752
    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 2753
    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);
2754
    private static final org.apache.thrift.protocol.TField BCC_FIELD_DESC = new org.apache.thrift.protocol.TField("bcc", org.apache.thrift.protocol.TType.LIST, (short)8);
1395 varun.gupt 2755
 
5864 rajveer 2756
    private List<String> emailTo; // required
3430 rajveer 2757
    private String emailFrom; // required
2758
    private String subject; // required
2759
    private String body; // required
2760
    private String source; // required
2761
    private String emailType; // required
5864 rajveer 2762
    private List<String> cc; // required
2763
    private List<String> bcc; // required
1395 varun.gupt 2764
 
2765
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2766
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 2767
      EMAIL_TO((short)1, "emailTo"),
2768
      EMAIL_FROM((short)2, "emailFrom"),
2769
      SUBJECT((short)3, "subject"),
2770
      BODY((short)4, "body"),
2771
      SOURCE((short)5, "source"),
5864 rajveer 2772
      EMAIL_TYPE((short)6, "emailType"),
2773
      CC((short)7, "cc"),
2774
      BCC((short)8, "bcc");
1395 varun.gupt 2775
 
2776
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2777
 
2778
      static {
2779
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2780
          byName.put(field.getFieldName(), field);
2781
        }
2782
      }
2783
 
2784
      /**
2785
       * Find the _Fields constant that matches fieldId, or null if its not found.
2786
       */
2787
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2788
        switch(fieldId) {
2789
          case 1: // EMAIL_TO
2790
            return EMAIL_TO;
2791
          case 2: // EMAIL_FROM
2792
            return EMAIL_FROM;
2793
          case 3: // SUBJECT
2794
            return SUBJECT;
2795
          case 4: // BODY
2796
            return BODY;
2797
          case 5: // SOURCE
2798
            return SOURCE;
2799
          case 6: // EMAIL_TYPE
2800
            return EMAIL_TYPE;
5864 rajveer 2801
          case 7: // CC
2802
            return CC;
2803
          case 8: // BCC
2804
            return BCC;
3430 rajveer 2805
          default:
2806
            return null;
2807
        }
1395 varun.gupt 2808
      }
2809
 
2810
      /**
2811
       * Find the _Fields constant that matches fieldId, throwing an exception
2812
       * if it is not found.
2813
       */
2814
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2815
        _Fields fields = findByThriftId(fieldId);
2816
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2817
        return fields;
2818
      }
2819
 
2820
      /**
2821
       * Find the _Fields constant that matches name, or null if its not found.
2822
       */
2823
      public static _Fields findByName(String name) {
2824
        return byName.get(name);
2825
      }
2826
 
2827
      private final short _thriftId;
2828
      private final String _fieldName;
2829
 
2830
      _Fields(short thriftId, String fieldName) {
2831
        _thriftId = thriftId;
2832
        _fieldName = fieldName;
2833
      }
2834
 
2835
      public short getThriftFieldId() {
2836
        return _thriftId;
2837
      }
2838
 
2839
      public String getFieldName() {
2840
        return _fieldName;
2841
      }
2842
    }
2843
 
2844
    // isset id assignments
2845
 
3430 rajveer 2846
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 2847
    static {
3430 rajveer 2848
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2849
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 2850
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2851
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2852
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2854
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2855
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2856
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2857
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2858
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2859
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
2860
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2861
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5864 rajveer 2862
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2863
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2864
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
2865
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2866
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2867
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 2868
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2869
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 2870
    }
2871
 
2872
    public saveUserEmailForSending_args() {
2873
    }
2874
 
2875
    public saveUserEmailForSending_args(
5864 rajveer 2876
      List<String> emailTo,
1395 varun.gupt 2877
      String emailFrom,
2878
      String subject,
2879
      String body,
2880
      String source,
5864 rajveer 2881
      String emailType,
2882
      List<String> cc,
2883
      List<String> bcc)
1395 varun.gupt 2884
    {
2885
      this();
2886
      this.emailTo = emailTo;
2887
      this.emailFrom = emailFrom;
2888
      this.subject = subject;
2889
      this.body = body;
2890
      this.source = source;
2891
      this.emailType = emailType;
5864 rajveer 2892
      this.cc = cc;
2893
      this.bcc = bcc;
1395 varun.gupt 2894
    }
2895
 
2896
    /**
2897
     * Performs a deep copy on <i>other</i>.
2898
     */
2899
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
2900
      if (other.isSetEmailTo()) {
5864 rajveer 2901
        List<String> __this__emailTo = new ArrayList<String>();
2902
        for (String other_element : other.emailTo) {
2903
          __this__emailTo.add(other_element);
2904
        }
2905
        this.emailTo = __this__emailTo;
1395 varun.gupt 2906
      }
2907
      if (other.isSetEmailFrom()) {
2908
        this.emailFrom = other.emailFrom;
2909
      }
2910
      if (other.isSetSubject()) {
2911
        this.subject = other.subject;
2912
      }
2913
      if (other.isSetBody()) {
2914
        this.body = other.body;
2915
      }
2916
      if (other.isSetSource()) {
2917
        this.source = other.source;
2918
      }
2919
      if (other.isSetEmailType()) {
2920
        this.emailType = other.emailType;
2921
      }
5864 rajveer 2922
      if (other.isSetCc()) {
2923
        List<String> __this__cc = new ArrayList<String>();
2924
        for (String other_element : other.cc) {
2925
          __this__cc.add(other_element);
2926
        }
2927
        this.cc = __this__cc;
2928
      }
2929
      if (other.isSetBcc()) {
2930
        List<String> __this__bcc = new ArrayList<String>();
2931
        for (String other_element : other.bcc) {
2932
          __this__bcc.add(other_element);
2933
        }
2934
        this.bcc = __this__bcc;
2935
      }
1395 varun.gupt 2936
    }
2937
 
2938
    public saveUserEmailForSending_args deepCopy() {
2939
      return new saveUserEmailForSending_args(this);
2940
    }
2941
 
3430 rajveer 2942
    @Override
2943
    public void clear() {
2944
      this.emailTo = null;
2945
      this.emailFrom = null;
2946
      this.subject = null;
2947
      this.body = null;
2948
      this.source = null;
2949
      this.emailType = null;
5864 rajveer 2950
      this.cc = null;
2951
      this.bcc = null;
1395 varun.gupt 2952
    }
2953
 
5864 rajveer 2954
    public int getEmailToSize() {
2955
      return (this.emailTo == null) ? 0 : this.emailTo.size();
2956
    }
2957
 
2958
    public java.util.Iterator<String> getEmailToIterator() {
2959
      return (this.emailTo == null) ? null : this.emailTo.iterator();
2960
    }
2961
 
2962
    public void addToEmailTo(String elem) {
2963
      if (this.emailTo == null) {
2964
        this.emailTo = new ArrayList<String>();
2965
      }
2966
      this.emailTo.add(elem);
2967
    }
2968
 
2969
    public List<String> getEmailTo() {
1395 varun.gupt 2970
      return this.emailTo;
2971
    }
2972
 
5864 rajveer 2973
    public void setEmailTo(List<String> emailTo) {
1395 varun.gupt 2974
      this.emailTo = emailTo;
2975
    }
2976
 
2977
    public void unsetEmailTo() {
2978
      this.emailTo = null;
2979
    }
2980
 
3430 rajveer 2981
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 2982
    public boolean isSetEmailTo() {
2983
      return this.emailTo != null;
2984
    }
2985
 
2986
    public void setEmailToIsSet(boolean value) {
2987
      if (!value) {
2988
        this.emailTo = null;
2989
      }
2990
    }
2991
 
2992
    public String getEmailFrom() {
2993
      return this.emailFrom;
2994
    }
2995
 
3430 rajveer 2996
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 2997
      this.emailFrom = emailFrom;
2998
    }
2999
 
3000
    public void unsetEmailFrom() {
3001
      this.emailFrom = null;
3002
    }
3003
 
3430 rajveer 3004
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3005
    public boolean isSetEmailFrom() {
3006
      return this.emailFrom != null;
3007
    }
3008
 
3009
    public void setEmailFromIsSet(boolean value) {
3010
      if (!value) {
3011
        this.emailFrom = null;
3012
      }
3013
    }
3014
 
3015
    public String getSubject() {
3016
      return this.subject;
3017
    }
3018
 
3430 rajveer 3019
    public void setSubject(String subject) {
1395 varun.gupt 3020
      this.subject = subject;
3021
    }
3022
 
3023
    public void unsetSubject() {
3024
      this.subject = null;
3025
    }
3026
 
3430 rajveer 3027
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3028
    public boolean isSetSubject() {
3029
      return this.subject != null;
3030
    }
3031
 
3032
    public void setSubjectIsSet(boolean value) {
3033
      if (!value) {
3034
        this.subject = null;
3035
      }
3036
    }
3037
 
3038
    public String getBody() {
3039
      return this.body;
3040
    }
3041
 
3430 rajveer 3042
    public void setBody(String body) {
1395 varun.gupt 3043
      this.body = body;
3044
    }
3045
 
3046
    public void unsetBody() {
3047
      this.body = null;
3048
    }
3049
 
3430 rajveer 3050
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3051
    public boolean isSetBody() {
3052
      return this.body != null;
3053
    }
3054
 
3055
    public void setBodyIsSet(boolean value) {
3056
      if (!value) {
3057
        this.body = null;
3058
      }
3059
    }
3060
 
3061
    public String getSource() {
3062
      return this.source;
3063
    }
3064
 
3430 rajveer 3065
    public void setSource(String source) {
1395 varun.gupt 3066
      this.source = source;
3067
    }
3068
 
3069
    public void unsetSource() {
3070
      this.source = null;
3071
    }
3072
 
3430 rajveer 3073
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3074
    public boolean isSetSource() {
3075
      return this.source != null;
3076
    }
3077
 
3078
    public void setSourceIsSet(boolean value) {
3079
      if (!value) {
3080
        this.source = null;
3081
      }
3082
    }
3083
 
3084
    public String getEmailType() {
3085
      return this.emailType;
3086
    }
3087
 
3430 rajveer 3088
    public void setEmailType(String emailType) {
1395 varun.gupt 3089
      this.emailType = emailType;
3090
    }
3091
 
3092
    public void unsetEmailType() {
3093
      this.emailType = null;
3094
    }
3095
 
3430 rajveer 3096
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3097
    public boolean isSetEmailType() {
3098
      return this.emailType != null;
3099
    }
3100
 
3101
    public void setEmailTypeIsSet(boolean value) {
3102
      if (!value) {
3103
        this.emailType = null;
3104
      }
3105
    }
3106
 
5864 rajveer 3107
    public int getCcSize() {
3108
      return (this.cc == null) ? 0 : this.cc.size();
3109
    }
3110
 
3111
    public java.util.Iterator<String> getCcIterator() {
3112
      return (this.cc == null) ? null : this.cc.iterator();
3113
    }
3114
 
3115
    public void addToCc(String elem) {
3116
      if (this.cc == null) {
3117
        this.cc = new ArrayList<String>();
3118
      }
3119
      this.cc.add(elem);
3120
    }
3121
 
3122
    public List<String> getCc() {
3123
      return this.cc;
3124
    }
3125
 
3126
    public void setCc(List<String> cc) {
3127
      this.cc = cc;
3128
    }
3129
 
3130
    public void unsetCc() {
3131
      this.cc = null;
3132
    }
3133
 
3134
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
3135
    public boolean isSetCc() {
3136
      return this.cc != null;
3137
    }
3138
 
3139
    public void setCcIsSet(boolean value) {
3140
      if (!value) {
3141
        this.cc = null;
3142
      }
3143
    }
3144
 
3145
    public int getBccSize() {
3146
      return (this.bcc == null) ? 0 : this.bcc.size();
3147
    }
3148
 
3149
    public java.util.Iterator<String> getBccIterator() {
3150
      return (this.bcc == null) ? null : this.bcc.iterator();
3151
    }
3152
 
3153
    public void addToBcc(String elem) {
3154
      if (this.bcc == null) {
3155
        this.bcc = new ArrayList<String>();
3156
      }
3157
      this.bcc.add(elem);
3158
    }
3159
 
3160
    public List<String> getBcc() {
3161
      return this.bcc;
3162
    }
3163
 
3164
    public void setBcc(List<String> bcc) {
3165
      this.bcc = bcc;
3166
    }
3167
 
3168
    public void unsetBcc() {
3169
      this.bcc = null;
3170
    }
3171
 
3172
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
3173
    public boolean isSetBcc() {
3174
      return this.bcc != null;
3175
    }
3176
 
3177
    public void setBccIsSet(boolean value) {
3178
      if (!value) {
3179
        this.bcc = null;
3180
      }
3181
    }
3182
 
1395 varun.gupt 3183
    public void setFieldValue(_Fields field, Object value) {
3184
      switch (field) {
3185
      case EMAIL_TO:
3186
        if (value == null) {
3187
          unsetEmailTo();
3188
        } else {
5864 rajveer 3189
          setEmailTo((List<String>)value);
1395 varun.gupt 3190
        }
3191
        break;
3192
 
3193
      case EMAIL_FROM:
3194
        if (value == null) {
3195
          unsetEmailFrom();
3196
        } else {
3197
          setEmailFrom((String)value);
3198
        }
3199
        break;
3200
 
3201
      case SUBJECT:
3202
        if (value == null) {
3203
          unsetSubject();
3204
        } else {
3205
          setSubject((String)value);
3206
        }
3207
        break;
3208
 
3209
      case BODY:
3210
        if (value == null) {
3211
          unsetBody();
3212
        } else {
3213
          setBody((String)value);
3214
        }
3215
        break;
3216
 
3217
      case SOURCE:
3218
        if (value == null) {
3219
          unsetSource();
3220
        } else {
3221
          setSource((String)value);
3222
        }
3223
        break;
3224
 
3225
      case EMAIL_TYPE:
3226
        if (value == null) {
3227
          unsetEmailType();
3228
        } else {
3229
          setEmailType((String)value);
3230
        }
3231
        break;
3232
 
5864 rajveer 3233
      case CC:
3234
        if (value == null) {
3235
          unsetCc();
3236
        } else {
3237
          setCc((List<String>)value);
3238
        }
3239
        break;
3240
 
3241
      case BCC:
3242
        if (value == null) {
3243
          unsetBcc();
3244
        } else {
3245
          setBcc((List<String>)value);
3246
        }
3247
        break;
3248
 
1395 varun.gupt 3249
      }
3250
    }
3251
 
3252
    public Object getFieldValue(_Fields field) {
3253
      switch (field) {
3254
      case EMAIL_TO:
3255
        return getEmailTo();
3256
 
3257
      case EMAIL_FROM:
3258
        return getEmailFrom();
3259
 
3260
      case SUBJECT:
3261
        return getSubject();
3262
 
3263
      case BODY:
3264
        return getBody();
3265
 
3266
      case SOURCE:
3267
        return getSource();
3268
 
3269
      case EMAIL_TYPE:
3270
        return getEmailType();
3271
 
5864 rajveer 3272
      case CC:
3273
        return getCc();
3274
 
3275
      case BCC:
3276
        return getBcc();
3277
 
1395 varun.gupt 3278
      }
3279
      throw new IllegalStateException();
3280
    }
3281
 
3430 rajveer 3282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3283
    public boolean isSet(_Fields field) {
3284
      if (field == null) {
3285
        throw new IllegalArgumentException();
3286
      }
1395 varun.gupt 3287
 
3288
      switch (field) {
3289
      case EMAIL_TO:
3290
        return isSetEmailTo();
3291
      case EMAIL_FROM:
3292
        return isSetEmailFrom();
3293
      case SUBJECT:
3294
        return isSetSubject();
3295
      case BODY:
3296
        return isSetBody();
3297
      case SOURCE:
3298
        return isSetSource();
3299
      case EMAIL_TYPE:
3300
        return isSetEmailType();
5864 rajveer 3301
      case CC:
3302
        return isSetCc();
3303
      case BCC:
3304
        return isSetBcc();
1395 varun.gupt 3305
      }
3306
      throw new IllegalStateException();
3307
    }
3308
 
3309
    @Override
3310
    public boolean equals(Object that) {
3311
      if (that == null)
3312
        return false;
3313
      if (that instanceof saveUserEmailForSending_args)
3314
        return this.equals((saveUserEmailForSending_args)that);
3315
      return false;
3316
    }
3317
 
3318
    public boolean equals(saveUserEmailForSending_args that) {
3319
      if (that == null)
3320
        return false;
3321
 
3322
      boolean this_present_emailTo = true && this.isSetEmailTo();
3323
      boolean that_present_emailTo = true && that.isSetEmailTo();
3324
      if (this_present_emailTo || that_present_emailTo) {
3325
        if (!(this_present_emailTo && that_present_emailTo))
3326
          return false;
3327
        if (!this.emailTo.equals(that.emailTo))
3328
          return false;
3329
      }
3330
 
3331
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
3332
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
3333
      if (this_present_emailFrom || that_present_emailFrom) {
3334
        if (!(this_present_emailFrom && that_present_emailFrom))
3335
          return false;
3336
        if (!this.emailFrom.equals(that.emailFrom))
3337
          return false;
3338
      }
3339
 
3340
      boolean this_present_subject = true && this.isSetSubject();
3341
      boolean that_present_subject = true && that.isSetSubject();
3342
      if (this_present_subject || that_present_subject) {
3343
        if (!(this_present_subject && that_present_subject))
3344
          return false;
3345
        if (!this.subject.equals(that.subject))
3346
          return false;
3347
      }
3348
 
3349
      boolean this_present_body = true && this.isSetBody();
3350
      boolean that_present_body = true && that.isSetBody();
3351
      if (this_present_body || that_present_body) {
3352
        if (!(this_present_body && that_present_body))
3353
          return false;
3354
        if (!this.body.equals(that.body))
3355
          return false;
3356
      }
3357
 
3358
      boolean this_present_source = true && this.isSetSource();
3359
      boolean that_present_source = true && that.isSetSource();
3360
      if (this_present_source || that_present_source) {
3361
        if (!(this_present_source && that_present_source))
3362
          return false;
3363
        if (!this.source.equals(that.source))
3364
          return false;
3365
      }
3366
 
3367
      boolean this_present_emailType = true && this.isSetEmailType();
3368
      boolean that_present_emailType = true && that.isSetEmailType();
3369
      if (this_present_emailType || that_present_emailType) {
3370
        if (!(this_present_emailType && that_present_emailType))
3371
          return false;
3372
        if (!this.emailType.equals(that.emailType))
3373
          return false;
3374
      }
3375
 
5864 rajveer 3376
      boolean this_present_cc = true && this.isSetCc();
3377
      boolean that_present_cc = true && that.isSetCc();
3378
      if (this_present_cc || that_present_cc) {
3379
        if (!(this_present_cc && that_present_cc))
3380
          return false;
3381
        if (!this.cc.equals(that.cc))
3382
          return false;
3383
      }
3384
 
3385
      boolean this_present_bcc = true && this.isSetBcc();
3386
      boolean that_present_bcc = true && that.isSetBcc();
3387
      if (this_present_bcc || that_present_bcc) {
3388
        if (!(this_present_bcc && that_present_bcc))
3389
          return false;
3390
        if (!this.bcc.equals(that.bcc))
3391
          return false;
3392
      }
3393
 
1395 varun.gupt 3394
      return true;
3395
    }
3396
 
3397
    @Override
3398
    public int hashCode() {
3399
      return 0;
3400
    }
3401
 
3402
    public int compareTo(saveUserEmailForSending_args other) {
3403
      if (!getClass().equals(other.getClass())) {
3404
        return getClass().getName().compareTo(other.getClass().getName());
3405
      }
3406
 
3407
      int lastComparison = 0;
3408
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
3409
 
3430 rajveer 3410
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 3411
      if (lastComparison != 0) {
3412
        return lastComparison;
3413
      }
3430 rajveer 3414
      if (isSetEmailTo()) {
3415
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
3416
        if (lastComparison != 0) {
3417
          return lastComparison;
3418
        }
1395 varun.gupt 3419
      }
3430 rajveer 3420
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 3421
      if (lastComparison != 0) {
3422
        return lastComparison;
3423
      }
3430 rajveer 3424
      if (isSetEmailFrom()) {
3425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
3426
        if (lastComparison != 0) {
3427
          return lastComparison;
3428
        }
1395 varun.gupt 3429
      }
3430 rajveer 3430
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 3431
      if (lastComparison != 0) {
3432
        return lastComparison;
3433
      }
3430 rajveer 3434
      if (isSetSubject()) {
3435
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
3436
        if (lastComparison != 0) {
3437
          return lastComparison;
3438
        }
1395 varun.gupt 3439
      }
3430 rajveer 3440
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 3441
      if (lastComparison != 0) {
3442
        return lastComparison;
3443
      }
3430 rajveer 3444
      if (isSetBody()) {
3445
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
3446
        if (lastComparison != 0) {
3447
          return lastComparison;
3448
        }
1395 varun.gupt 3449
      }
3430 rajveer 3450
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 3451
      if (lastComparison != 0) {
3452
        return lastComparison;
3453
      }
3430 rajveer 3454
      if (isSetSource()) {
3455
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
3456
        if (lastComparison != 0) {
3457
          return lastComparison;
3458
        }
1395 varun.gupt 3459
      }
3430 rajveer 3460
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 3461
      if (lastComparison != 0) {
3462
        return lastComparison;
3463
      }
3430 rajveer 3464
      if (isSetEmailType()) {
3465
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
3466
        if (lastComparison != 0) {
3467
          return lastComparison;
3468
        }
1395 varun.gupt 3469
      }
5864 rajveer 3470
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
3471
      if (lastComparison != 0) {
3472
        return lastComparison;
3473
      }
3474
      if (isSetCc()) {
3475
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
3476
        if (lastComparison != 0) {
3477
          return lastComparison;
3478
        }
3479
      }
3480
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
3481
      if (lastComparison != 0) {
3482
        return lastComparison;
3483
      }
3484
      if (isSetBcc()) {
3485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
3486
        if (lastComparison != 0) {
3487
          return lastComparison;
3488
        }
3489
      }
1395 varun.gupt 3490
      return 0;
3491
    }
3492
 
3430 rajveer 3493
    public _Fields fieldForId(int fieldId) {
3494
      return _Fields.findByThriftId(fieldId);
3495
    }
3496
 
3497
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3498
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 3499
      iprot.readStructBegin();
3500
      while (true)
3501
      {
3502
        field = iprot.readFieldBegin();
3430 rajveer 3503
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 3504
          break;
3505
        }
3430 rajveer 3506
        switch (field.id) {
3507
          case 1: // EMAIL_TO
5864 rajveer 3508
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3509
              {
3510
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
3511
                this.emailTo = new ArrayList<String>(_list20.size);
3512
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
3513
                {
3514
                  String _elem22; // required
3515
                  _elem22 = iprot.readString();
3516
                  this.emailTo.add(_elem22);
3517
                }
3518
                iprot.readListEnd();
3519
              }
3430 rajveer 3520
            } else { 
3521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3522
            }
3523
            break;
3524
          case 2: // EMAIL_FROM
3525
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3526
              this.emailFrom = iprot.readString();
3527
            } else { 
3528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3529
            }
3530
            break;
3531
          case 3: // SUBJECT
3532
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3533
              this.subject = iprot.readString();
3534
            } else { 
3535
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3536
            }
3537
            break;
3538
          case 4: // BODY
3539
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3540
              this.body = iprot.readString();
3541
            } else { 
3542
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3543
            }
3544
            break;
3545
          case 5: // SOURCE
3546
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3547
              this.source = iprot.readString();
3548
            } else { 
3549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3550
            }
3551
            break;
3552
          case 6: // EMAIL_TYPE
3553
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3554
              this.emailType = iprot.readString();
3555
            } else { 
3556
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3557
            }
3558
            break;
5864 rajveer 3559
          case 7: // CC
3560
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3561
              {
3562
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
3563
                this.cc = new ArrayList<String>(_list23.size);
3564
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
3565
                {
3566
                  String _elem25; // required
3567
                  _elem25 = iprot.readString();
3568
                  this.cc.add(_elem25);
3569
                }
3570
                iprot.readListEnd();
3571
              }
3572
            } else { 
3573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3574
            }
3575
            break;
3576
          case 8: // BCC
3577
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3578
              {
3579
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
3580
                this.bcc = new ArrayList<String>(_list26.size);
3581
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
3582
                {
3583
                  String _elem28; // required
3584
                  _elem28 = iprot.readString();
3585
                  this.bcc.add(_elem28);
3586
                }
3587
                iprot.readListEnd();
3588
              }
3589
            } else { 
3590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3591
            }
3592
            break;
3430 rajveer 3593
          default:
3594
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 3595
        }
3430 rajveer 3596
        iprot.readFieldEnd();
1395 varun.gupt 3597
      }
3598
      iprot.readStructEnd();
3599
      validate();
3600
    }
3601
 
3430 rajveer 3602
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 3603
      validate();
3604
 
3605
      oprot.writeStructBegin(STRUCT_DESC);
3606
      if (this.emailTo != null) {
3607
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 3608
        {
3609
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
3610
          for (String _iter29 : this.emailTo)
3611
          {
3612
            oprot.writeString(_iter29);
3613
          }
3614
          oprot.writeListEnd();
3615
        }
1395 varun.gupt 3616
        oprot.writeFieldEnd();
3617
      }
3618
      if (this.emailFrom != null) {
3619
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
3620
        oprot.writeString(this.emailFrom);
3621
        oprot.writeFieldEnd();
3622
      }
3623
      if (this.subject != null) {
3624
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
3625
        oprot.writeString(this.subject);
3626
        oprot.writeFieldEnd();
3627
      }
3628
      if (this.body != null) {
3629
        oprot.writeFieldBegin(BODY_FIELD_DESC);
3630
        oprot.writeString(this.body);
3631
        oprot.writeFieldEnd();
3632
      }
3633
      if (this.source != null) {
3634
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
3635
        oprot.writeString(this.source);
3636
        oprot.writeFieldEnd();
3637
      }
3638
      if (this.emailType != null) {
3639
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
3640
        oprot.writeString(this.emailType);
3641
        oprot.writeFieldEnd();
3642
      }
5864 rajveer 3643
      if (this.cc != null) {
3644
        oprot.writeFieldBegin(CC_FIELD_DESC);
3645
        {
3646
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
3647
          for (String _iter30 : this.cc)
3648
          {
3649
            oprot.writeString(_iter30);
3650
          }
3651
          oprot.writeListEnd();
3652
        }
3653
        oprot.writeFieldEnd();
3654
      }
3655
      if (this.bcc != null) {
3656
        oprot.writeFieldBegin(BCC_FIELD_DESC);
3657
        {
3658
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
3659
          for (String _iter31 : this.bcc)
3660
          {
3661
            oprot.writeString(_iter31);
3662
          }
3663
          oprot.writeListEnd();
3664
        }
3665
        oprot.writeFieldEnd();
3666
      }
1395 varun.gupt 3667
      oprot.writeFieldStop();
3668
      oprot.writeStructEnd();
3669
    }
3670
 
3671
    @Override
3672
    public String toString() {
3673
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
3674
      boolean first = true;
3675
 
3676
      sb.append("emailTo:");
3677
      if (this.emailTo == null) {
3678
        sb.append("null");
3679
      } else {
3680
        sb.append(this.emailTo);
3681
      }
3682
      first = false;
3683
      if (!first) sb.append(", ");
3684
      sb.append("emailFrom:");
3685
      if (this.emailFrom == null) {
3686
        sb.append("null");
3687
      } else {
3688
        sb.append(this.emailFrom);
3689
      }
3690
      first = false;
3691
      if (!first) sb.append(", ");
3692
      sb.append("subject:");
3693
      if (this.subject == null) {
3694
        sb.append("null");
3695
      } else {
3696
        sb.append(this.subject);
3697
      }
3698
      first = false;
3699
      if (!first) sb.append(", ");
3700
      sb.append("body:");
3701
      if (this.body == null) {
3702
        sb.append("null");
3703
      } else {
3704
        sb.append(this.body);
3705
      }
3706
      first = false;
3707
      if (!first) sb.append(", ");
3708
      sb.append("source:");
3709
      if (this.source == null) {
3710
        sb.append("null");
3711
      } else {
3712
        sb.append(this.source);
3713
      }
3714
      first = false;
3715
      if (!first) sb.append(", ");
3716
      sb.append("emailType:");
3717
      if (this.emailType == null) {
3718
        sb.append("null");
3719
      } else {
3720
        sb.append(this.emailType);
3721
      }
3722
      first = false;
5864 rajveer 3723
      if (!first) sb.append(", ");
3724
      sb.append("cc:");
3725
      if (this.cc == null) {
3726
        sb.append("null");
3727
      } else {
3728
        sb.append(this.cc);
3729
      }
3730
      first = false;
3731
      if (!first) sb.append(", ");
3732
      sb.append("bcc:");
3733
      if (this.bcc == null) {
3734
        sb.append("null");
3735
      } else {
3736
        sb.append(this.bcc);
3737
      }
3738
      first = false;
1395 varun.gupt 3739
      sb.append(")");
3740
      return sb.toString();
3741
    }
3742
 
3430 rajveer 3743
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 3744
      // check for required fields
3745
    }
3746
 
3430 rajveer 3747
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3748
      try {
3749
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3750
      } catch (org.apache.thrift.TException te) {
3751
        throw new java.io.IOException(te);
3752
      }
3753
    }
3754
 
3755
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3756
      try {
3757
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3758
      } catch (org.apache.thrift.TException te) {
3759
        throw new java.io.IOException(te);
3760
      }
3761
    }
3762
 
1395 varun.gupt 3763
  }
3764
 
3430 rajveer 3765
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
3766
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 3767
 
3430 rajveer 3768
    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);
3769
    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 3770
 
3430 rajveer 3771
    private long success; // required
3772
    private HelperServiceException se; // required
1395 varun.gupt 3773
 
3774
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3775
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3776
      SUCCESS((short)0, "success"),
1395 varun.gupt 3777
      SE((short)1, "se");
3778
 
3779
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3780
 
3781
      static {
3782
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3783
          byName.put(field.getFieldName(), field);
3784
        }
3785
      }
3786
 
3787
      /**
3788
       * Find the _Fields constant that matches fieldId, or null if its not found.
3789
       */
3790
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3791
        switch(fieldId) {
3792
          case 0: // SUCCESS
3793
            return SUCCESS;
3794
          case 1: // SE
3795
            return SE;
3796
          default:
3797
            return null;
3798
        }
1395 varun.gupt 3799
      }
3800
 
3801
      /**
3802
       * Find the _Fields constant that matches fieldId, throwing an exception
3803
       * if it is not found.
3804
       */
3805
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3806
        _Fields fields = findByThriftId(fieldId);
3807
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3808
        return fields;
3809
      }
3810
 
3811
      /**
3812
       * Find the _Fields constant that matches name, or null if its not found.
3813
       */
3814
      public static _Fields findByName(String name) {
3815
        return byName.get(name);
3816
      }
3817
 
3818
      private final short _thriftId;
3819
      private final String _fieldName;
3820
 
3821
      _Fields(short thriftId, String fieldName) {
3822
        _thriftId = thriftId;
3823
        _fieldName = fieldName;
3824
      }
3825
 
3826
      public short getThriftFieldId() {
3827
        return _thriftId;
3828
      }
3829
 
3830
      public String getFieldName() {
3831
        return _fieldName;
3832
      }
3833
    }
3834
 
3835
    // isset id assignments
3206 mandeep.dh 3836
    private static final int __SUCCESS_ISSET_ID = 0;
3837
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3838
 
3430 rajveer 3839
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3840
    static {
3430 rajveer 3841
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3842
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3844
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3845
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
3846
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3847
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 3848
    }
3849
 
3850
    public saveUserEmailForSending_result() {
3851
    }
3852
 
3853
    public saveUserEmailForSending_result(
3206 mandeep.dh 3854
      long success,
1395 varun.gupt 3855
      HelperServiceException se)
3856
    {
3857
      this();
3206 mandeep.dh 3858
      this.success = success;
3859
      setSuccessIsSet(true);
1395 varun.gupt 3860
      this.se = se;
3861
    }
3862
 
3863
    /**
3864
     * Performs a deep copy on <i>other</i>.
3865
     */
3866
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 3867
      __isset_bit_vector.clear();
3868
      __isset_bit_vector.or(other.__isset_bit_vector);
3869
      this.success = other.success;
1395 varun.gupt 3870
      if (other.isSetSe()) {
3871
        this.se = new HelperServiceException(other.se);
3872
      }
3873
    }
3874
 
3875
    public saveUserEmailForSending_result deepCopy() {
3876
      return new saveUserEmailForSending_result(this);
3877
    }
3878
 
3430 rajveer 3879
    @Override
3880
    public void clear() {
3881
      setSuccessIsSet(false);
3882
      this.success = 0;
3883
      this.se = null;
1395 varun.gupt 3884
    }
3885
 
3206 mandeep.dh 3886
    public long getSuccess() {
3887
      return this.success;
3888
    }
3889
 
3430 rajveer 3890
    public void setSuccess(long success) {
3206 mandeep.dh 3891
      this.success = success;
3892
      setSuccessIsSet(true);
3893
    }
3894
 
3895
    public void unsetSuccess() {
3896
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3897
    }
3898
 
3430 rajveer 3899
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3900
    public boolean isSetSuccess() {
3901
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3902
    }
3903
 
3904
    public void setSuccessIsSet(boolean value) {
3905
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3906
    }
3907
 
1395 varun.gupt 3908
    public HelperServiceException getSe() {
3909
      return this.se;
3910
    }
3911
 
3430 rajveer 3912
    public void setSe(HelperServiceException se) {
1395 varun.gupt 3913
      this.se = se;
3914
    }
3915
 
3916
    public void unsetSe() {
3917
      this.se = null;
3918
    }
3919
 
3430 rajveer 3920
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3921
    public boolean isSetSe() {
3922
      return this.se != null;
3923
    }
3924
 
3925
    public void setSeIsSet(boolean value) {
3926
      if (!value) {
3927
        this.se = null;
3928
      }
3929
    }
3930
 
3931
    public void setFieldValue(_Fields field, Object value) {
3932
      switch (field) {
3206 mandeep.dh 3933
      case SUCCESS:
3934
        if (value == null) {
3935
          unsetSuccess();
3936
        } else {
3937
          setSuccess((Long)value);
3938
        }
3939
        break;
3940
 
1395 varun.gupt 3941
      case SE:
3942
        if (value == null) {
3943
          unsetSe();
3944
        } else {
3945
          setSe((HelperServiceException)value);
3946
        }
3947
        break;
3948
 
3949
      }
3950
    }
3951
 
3952
    public Object getFieldValue(_Fields field) {
3953
      switch (field) {
3206 mandeep.dh 3954
      case SUCCESS:
3430 rajveer 3955
        return Long.valueOf(getSuccess());
3206 mandeep.dh 3956
 
1395 varun.gupt 3957
      case SE:
3958
        return getSe();
3959
 
3960
      }
3961
      throw new IllegalStateException();
3962
    }
3963
 
3430 rajveer 3964
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3965
    public boolean isSet(_Fields field) {
3966
      if (field == null) {
3967
        throw new IllegalArgumentException();
3968
      }
1395 varun.gupt 3969
 
3970
      switch (field) {
3206 mandeep.dh 3971
      case SUCCESS:
3972
        return isSetSuccess();
1395 varun.gupt 3973
      case SE:
3974
        return isSetSe();
3975
      }
3976
      throw new IllegalStateException();
3977
    }
3978
 
3979
    @Override
3980
    public boolean equals(Object that) {
3981
      if (that == null)
3982
        return false;
3983
      if (that instanceof saveUserEmailForSending_result)
3984
        return this.equals((saveUserEmailForSending_result)that);
3985
      return false;
3986
    }
3987
 
3988
    public boolean equals(saveUserEmailForSending_result that) {
3989
      if (that == null)
3990
        return false;
3991
 
3206 mandeep.dh 3992
      boolean this_present_success = true;
3993
      boolean that_present_success = true;
3994
      if (this_present_success || that_present_success) {
3995
        if (!(this_present_success && that_present_success))
3996
          return false;
3997
        if (this.success != that.success)
3998
          return false;
3999
      }
4000
 
1395 varun.gupt 4001
      boolean this_present_se = true && this.isSetSe();
4002
      boolean that_present_se = true && that.isSetSe();
4003
      if (this_present_se || that_present_se) {
4004
        if (!(this_present_se && that_present_se))
4005
          return false;
4006
        if (!this.se.equals(that.se))
4007
          return false;
4008
      }
4009
 
4010
      return true;
4011
    }
4012
 
4013
    @Override
4014
    public int hashCode() {
4015
      return 0;
4016
    }
4017
 
4018
    public int compareTo(saveUserEmailForSending_result other) {
4019
      if (!getClass().equals(other.getClass())) {
4020
        return getClass().getName().compareTo(other.getClass().getName());
4021
      }
4022
 
4023
      int lastComparison = 0;
4024
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
4025
 
3430 rajveer 4026
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 4027
      if (lastComparison != 0) {
4028
        return lastComparison;
4029
      }
3430 rajveer 4030
      if (isSetSuccess()) {
4031
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4032
        if (lastComparison != 0) {
4033
          return lastComparison;
4034
        }
3206 mandeep.dh 4035
      }
3430 rajveer 4036
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 4037
      if (lastComparison != 0) {
4038
        return lastComparison;
4039
      }
3430 rajveer 4040
      if (isSetSe()) {
4041
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4042
        if (lastComparison != 0) {
4043
          return lastComparison;
4044
        }
1395 varun.gupt 4045
      }
4046
      return 0;
4047
    }
4048
 
3430 rajveer 4049
    public _Fields fieldForId(int fieldId) {
4050
      return _Fields.findByThriftId(fieldId);
4051
    }
4052
 
4053
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4054
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 4055
      iprot.readStructBegin();
4056
      while (true)
4057
      {
4058
        field = iprot.readFieldBegin();
3430 rajveer 4059
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 4060
          break;
4061
        }
3430 rajveer 4062
        switch (field.id) {
4063
          case 0: // SUCCESS
4064
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4065
              this.success = iprot.readI64();
4066
              setSuccessIsSet(true);
4067
            } else { 
4068
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4069
            }
4070
            break;
4071
          case 1: // SE
4072
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4073
              this.se = new HelperServiceException();
4074
              this.se.read(iprot);
4075
            } else { 
4076
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4077
            }
4078
            break;
4079
          default:
4080
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 4081
        }
3430 rajveer 4082
        iprot.readFieldEnd();
1395 varun.gupt 4083
      }
4084
      iprot.readStructEnd();
4085
      validate();
4086
    }
4087
 
3430 rajveer 4088
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 4089
      oprot.writeStructBegin(STRUCT_DESC);
4090
 
3206 mandeep.dh 4091
      if (this.isSetSuccess()) {
4092
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4093
        oprot.writeI64(this.success);
4094
        oprot.writeFieldEnd();
4095
      } else if (this.isSetSe()) {
1395 varun.gupt 4096
        oprot.writeFieldBegin(SE_FIELD_DESC);
4097
        this.se.write(oprot);
4098
        oprot.writeFieldEnd();
4099
      }
4100
      oprot.writeFieldStop();
4101
      oprot.writeStructEnd();
4102
    }
4103
 
4104
    @Override
4105
    public String toString() {
4106
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
4107
      boolean first = true;
4108
 
3206 mandeep.dh 4109
      sb.append("success:");
4110
      sb.append(this.success);
4111
      first = false;
4112
      if (!first) sb.append(", ");
1395 varun.gupt 4113
      sb.append("se:");
4114
      if (this.se == null) {
4115
        sb.append("null");
4116
      } else {
4117
        sb.append(this.se);
4118
      }
4119
      first = false;
4120
      sb.append(")");
4121
      return sb.toString();
4122
    }
4123
 
3430 rajveer 4124
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 4125
      // check for required fields
4126
    }
4127
 
3430 rajveer 4128
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4129
      try {
4130
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4131
      } catch (org.apache.thrift.TException te) {
4132
        throw new java.io.IOException(te);
4133
      }
4134
    }
4135
 
4136
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4137
      try {
4138
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4139
      } catch (org.apache.thrift.TException te) {
4140
        throw new java.io.IOException(te);
4141
      }
4142
    }
4143
 
1395 varun.gupt 4144
  }
4145
 
3430 rajveer 4146
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
4147
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 4148
 
4149
 
4150
 
4151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4152
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 4153
;
1422 varun.gupt 4154
 
4155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4156
 
4157
      static {
4158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4159
          byName.put(field.getFieldName(), field);
4160
        }
4161
      }
4162
 
4163
      /**
4164
       * Find the _Fields constant that matches fieldId, or null if its not found.
4165
       */
4166
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4167
        switch(fieldId) {
4168
          default:
4169
            return null;
4170
        }
1422 varun.gupt 4171
      }
4172
 
4173
      /**
4174
       * Find the _Fields constant that matches fieldId, throwing an exception
4175
       * if it is not found.
4176
       */
4177
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4178
        _Fields fields = findByThriftId(fieldId);
4179
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4180
        return fields;
4181
      }
4182
 
4183
      /**
4184
       * Find the _Fields constant that matches name, or null if its not found.
4185
       */
4186
      public static _Fields findByName(String name) {
4187
        return byName.get(name);
4188
      }
4189
 
4190
      private final short _thriftId;
4191
      private final String _fieldName;
4192
 
4193
      _Fields(short thriftId, String fieldName) {
4194
        _thriftId = thriftId;
4195
        _fieldName = fieldName;
4196
      }
4197
 
4198
      public short getThriftFieldId() {
4199
        return _thriftId;
4200
      }
4201
 
4202
      public String getFieldName() {
4203
        return _fieldName;
4204
      }
4205
    }
3430 rajveer 4206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4207
    static {
3430 rajveer 4208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4209
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4210
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 4211
    }
4212
 
4213
    public getEmailsToBeSent_args() {
4214
    }
4215
 
4216
    /**
4217
     * Performs a deep copy on <i>other</i>.
4218
     */
4219
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
4220
    }
4221
 
4222
    public getEmailsToBeSent_args deepCopy() {
4223
      return new getEmailsToBeSent_args(this);
4224
    }
4225
 
3430 rajveer 4226
    @Override
4227
    public void clear() {
1422 varun.gupt 4228
    }
4229
 
4230
    public void setFieldValue(_Fields field, Object value) {
4231
      switch (field) {
4232
      }
4233
    }
4234
 
4235
    public Object getFieldValue(_Fields field) {
4236
      switch (field) {
4237
      }
4238
      throw new IllegalStateException();
4239
    }
4240
 
3430 rajveer 4241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4242
    public boolean isSet(_Fields field) {
4243
      if (field == null) {
4244
        throw new IllegalArgumentException();
4245
      }
1422 varun.gupt 4246
 
4247
      switch (field) {
4248
      }
4249
      throw new IllegalStateException();
4250
    }
4251
 
4252
    @Override
4253
    public boolean equals(Object that) {
4254
      if (that == null)
4255
        return false;
4256
      if (that instanceof getEmailsToBeSent_args)
4257
        return this.equals((getEmailsToBeSent_args)that);
4258
      return false;
4259
    }
4260
 
4261
    public boolean equals(getEmailsToBeSent_args that) {
4262
      if (that == null)
4263
        return false;
4264
 
4265
      return true;
4266
    }
4267
 
4268
    @Override
4269
    public int hashCode() {
4270
      return 0;
4271
    }
4272
 
4273
    public int compareTo(getEmailsToBeSent_args other) {
4274
      if (!getClass().equals(other.getClass())) {
4275
        return getClass().getName().compareTo(other.getClass().getName());
4276
      }
4277
 
4278
      int lastComparison = 0;
4279
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
4280
 
4281
      return 0;
4282
    }
4283
 
3430 rajveer 4284
    public _Fields fieldForId(int fieldId) {
4285
      return _Fields.findByThriftId(fieldId);
4286
    }
4287
 
4288
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4289
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4290
      iprot.readStructBegin();
4291
      while (true)
4292
      {
4293
        field = iprot.readFieldBegin();
3430 rajveer 4294
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4295
          break;
4296
        }
3430 rajveer 4297
        switch (field.id) {
4298
          default:
4299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4300
        }
3430 rajveer 4301
        iprot.readFieldEnd();
1422 varun.gupt 4302
      }
4303
      iprot.readStructEnd();
4304
      validate();
4305
    }
4306
 
3430 rajveer 4307
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4308
      validate();
4309
 
4310
      oprot.writeStructBegin(STRUCT_DESC);
4311
      oprot.writeFieldStop();
4312
      oprot.writeStructEnd();
4313
    }
4314
 
4315
    @Override
4316
    public String toString() {
4317
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
4318
      boolean first = true;
4319
 
4320
      sb.append(")");
4321
      return sb.toString();
4322
    }
4323
 
3430 rajveer 4324
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4325
      // check for required fields
4326
    }
4327
 
3430 rajveer 4328
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4329
      try {
4330
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4331
      } catch (org.apache.thrift.TException te) {
4332
        throw new java.io.IOException(te);
4333
      }
4334
    }
4335
 
4336
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4337
      try {
4338
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4339
      } catch (org.apache.thrift.TException te) {
4340
        throw new java.io.IOException(te);
4341
      }
4342
    }
4343
 
1422 varun.gupt 4344
  }
4345
 
3430 rajveer 4346
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
4347
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 4348
 
3430 rajveer 4349
    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);
4350
    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 4351
 
3430 rajveer 4352
    private List<UserEmail> success; // required
4353
    private HelperServiceException se; // required
1422 varun.gupt 4354
 
4355
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4356
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4357
      SUCCESS((short)0, "success"),
4358
      SE((short)1, "se");
4359
 
4360
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4361
 
4362
      static {
4363
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4364
          byName.put(field.getFieldName(), field);
4365
        }
4366
      }
4367
 
4368
      /**
4369
       * Find the _Fields constant that matches fieldId, or null if its not found.
4370
       */
4371
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4372
        switch(fieldId) {
4373
          case 0: // SUCCESS
4374
            return SUCCESS;
4375
          case 1: // SE
4376
            return SE;
4377
          default:
4378
            return null;
4379
        }
1422 varun.gupt 4380
      }
4381
 
4382
      /**
4383
       * Find the _Fields constant that matches fieldId, throwing an exception
4384
       * if it is not found.
4385
       */
4386
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4387
        _Fields fields = findByThriftId(fieldId);
4388
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4389
        return fields;
4390
      }
4391
 
4392
      /**
4393
       * Find the _Fields constant that matches name, or null if its not found.
4394
       */
4395
      public static _Fields findByName(String name) {
4396
        return byName.get(name);
4397
      }
4398
 
4399
      private final short _thriftId;
4400
      private final String _fieldName;
4401
 
4402
      _Fields(short thriftId, String fieldName) {
4403
        _thriftId = thriftId;
4404
        _fieldName = fieldName;
4405
      }
4406
 
4407
      public short getThriftFieldId() {
4408
        return _thriftId;
4409
      }
4410
 
4411
      public String getFieldName() {
4412
        return _fieldName;
4413
      }
4414
    }
4415
 
4416
    // isset id assignments
4417
 
3430 rajveer 4418
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4419
    static {
3430 rajveer 4420
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4421
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4422
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4423
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
4424
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 4428
    }
4429
 
4430
    public getEmailsToBeSent_result() {
4431
    }
4432
 
4433
    public getEmailsToBeSent_result(
4434
      List<UserEmail> success,
4435
      HelperServiceException se)
4436
    {
4437
      this();
4438
      this.success = success;
4439
      this.se = se;
4440
    }
4441
 
4442
    /**
4443
     * Performs a deep copy on <i>other</i>.
4444
     */
4445
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
4446
      if (other.isSetSuccess()) {
4447
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
4448
        for (UserEmail other_element : other.success) {
4449
          __this__success.add(new UserEmail(other_element));
4450
        }
4451
        this.success = __this__success;
4452
      }
4453
      if (other.isSetSe()) {
4454
        this.se = new HelperServiceException(other.se);
4455
      }
4456
    }
4457
 
4458
    public getEmailsToBeSent_result deepCopy() {
4459
      return new getEmailsToBeSent_result(this);
4460
    }
4461
 
3430 rajveer 4462
    @Override
4463
    public void clear() {
4464
      this.success = null;
4465
      this.se = null;
1422 varun.gupt 4466
    }
4467
 
4468
    public int getSuccessSize() {
4469
      return (this.success == null) ? 0 : this.success.size();
4470
    }
4471
 
4472
    public java.util.Iterator<UserEmail> getSuccessIterator() {
4473
      return (this.success == null) ? null : this.success.iterator();
4474
    }
4475
 
4476
    public void addToSuccess(UserEmail elem) {
4477
      if (this.success == null) {
4478
        this.success = new ArrayList<UserEmail>();
4479
      }
4480
      this.success.add(elem);
4481
    }
4482
 
4483
    public List<UserEmail> getSuccess() {
4484
      return this.success;
4485
    }
4486
 
3430 rajveer 4487
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 4488
      this.success = success;
4489
    }
4490
 
4491
    public void unsetSuccess() {
4492
      this.success = null;
4493
    }
4494
 
3430 rajveer 4495
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4496
    public boolean isSetSuccess() {
4497
      return this.success != null;
4498
    }
4499
 
4500
    public void setSuccessIsSet(boolean value) {
4501
      if (!value) {
4502
        this.success = null;
4503
      }
4504
    }
4505
 
4506
    public HelperServiceException getSe() {
4507
      return this.se;
4508
    }
4509
 
3430 rajveer 4510
    public void setSe(HelperServiceException se) {
1422 varun.gupt 4511
      this.se = se;
4512
    }
4513
 
4514
    public void unsetSe() {
4515
      this.se = null;
4516
    }
4517
 
3430 rajveer 4518
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4519
    public boolean isSetSe() {
4520
      return this.se != null;
4521
    }
4522
 
4523
    public void setSeIsSet(boolean value) {
4524
      if (!value) {
4525
        this.se = null;
4526
      }
4527
    }
4528
 
4529
    public void setFieldValue(_Fields field, Object value) {
4530
      switch (field) {
4531
      case SUCCESS:
4532
        if (value == null) {
4533
          unsetSuccess();
4534
        } else {
4535
          setSuccess((List<UserEmail>)value);
4536
        }
4537
        break;
4538
 
4539
      case SE:
4540
        if (value == null) {
4541
          unsetSe();
4542
        } else {
4543
          setSe((HelperServiceException)value);
4544
        }
4545
        break;
4546
 
4547
      }
4548
    }
4549
 
4550
    public Object getFieldValue(_Fields field) {
4551
      switch (field) {
4552
      case SUCCESS:
4553
        return getSuccess();
4554
 
4555
      case SE:
4556
        return getSe();
4557
 
4558
      }
4559
      throw new IllegalStateException();
4560
    }
4561
 
3430 rajveer 4562
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4563
    public boolean isSet(_Fields field) {
4564
      if (field == null) {
4565
        throw new IllegalArgumentException();
4566
      }
1422 varun.gupt 4567
 
4568
      switch (field) {
4569
      case SUCCESS:
4570
        return isSetSuccess();
4571
      case SE:
4572
        return isSetSe();
4573
      }
4574
      throw new IllegalStateException();
4575
    }
4576
 
4577
    @Override
4578
    public boolean equals(Object that) {
4579
      if (that == null)
4580
        return false;
4581
      if (that instanceof getEmailsToBeSent_result)
4582
        return this.equals((getEmailsToBeSent_result)that);
4583
      return false;
4584
    }
4585
 
4586
    public boolean equals(getEmailsToBeSent_result that) {
4587
      if (that == null)
4588
        return false;
4589
 
4590
      boolean this_present_success = true && this.isSetSuccess();
4591
      boolean that_present_success = true && that.isSetSuccess();
4592
      if (this_present_success || that_present_success) {
4593
        if (!(this_present_success && that_present_success))
4594
          return false;
4595
        if (!this.success.equals(that.success))
4596
          return false;
4597
      }
4598
 
4599
      boolean this_present_se = true && this.isSetSe();
4600
      boolean that_present_se = true && that.isSetSe();
4601
      if (this_present_se || that_present_se) {
4602
        if (!(this_present_se && that_present_se))
4603
          return false;
4604
        if (!this.se.equals(that.se))
4605
          return false;
4606
      }
4607
 
4608
      return true;
4609
    }
4610
 
4611
    @Override
4612
    public int hashCode() {
4613
      return 0;
4614
    }
4615
 
4616
    public int compareTo(getEmailsToBeSent_result other) {
4617
      if (!getClass().equals(other.getClass())) {
4618
        return getClass().getName().compareTo(other.getClass().getName());
4619
      }
4620
 
4621
      int lastComparison = 0;
4622
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
4623
 
3430 rajveer 4624
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 4625
      if (lastComparison != 0) {
4626
        return lastComparison;
4627
      }
3430 rajveer 4628
      if (isSetSuccess()) {
4629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4630
        if (lastComparison != 0) {
4631
          return lastComparison;
4632
        }
1422 varun.gupt 4633
      }
3430 rajveer 4634
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 4635
      if (lastComparison != 0) {
4636
        return lastComparison;
4637
      }
3430 rajveer 4638
      if (isSetSe()) {
4639
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4640
        if (lastComparison != 0) {
4641
          return lastComparison;
4642
        }
1422 varun.gupt 4643
      }
4644
      return 0;
4645
    }
4646
 
3430 rajveer 4647
    public _Fields fieldForId(int fieldId) {
4648
      return _Fields.findByThriftId(fieldId);
4649
    }
4650
 
4651
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4652
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4653
      iprot.readStructBegin();
4654
      while (true)
4655
      {
4656
        field = iprot.readFieldBegin();
3430 rajveer 4657
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4658
          break;
4659
        }
3430 rajveer 4660
        switch (field.id) {
4661
          case 0: // SUCCESS
4662
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4663
              {
5864 rajveer 4664
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
4665
                this.success = new ArrayList<UserEmail>(_list32.size);
4666
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1422 varun.gupt 4667
                {
5864 rajveer 4668
                  UserEmail _elem34; // required
4669
                  _elem34 = new UserEmail();
4670
                  _elem34.read(iprot);
4671
                  this.success.add(_elem34);
1422 varun.gupt 4672
                }
3430 rajveer 4673
                iprot.readListEnd();
1422 varun.gupt 4674
              }
3430 rajveer 4675
            } else { 
4676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4677
            }
4678
            break;
4679
          case 1: // SE
4680
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4681
              this.se = new HelperServiceException();
4682
              this.se.read(iprot);
4683
            } else { 
4684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4685
            }
4686
            break;
4687
          default:
4688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 4689
        }
3430 rajveer 4690
        iprot.readFieldEnd();
1422 varun.gupt 4691
      }
4692
      iprot.readStructEnd();
4693
      validate();
4694
    }
4695
 
3430 rajveer 4696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 4697
      oprot.writeStructBegin(STRUCT_DESC);
4698
 
4699
      if (this.isSetSuccess()) {
4700
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4701
        {
3430 rajveer 4702
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 4703
          for (UserEmail _iter35 : this.success)
1422 varun.gupt 4704
          {
5864 rajveer 4705
            _iter35.write(oprot);
1422 varun.gupt 4706
          }
4707
          oprot.writeListEnd();
4708
        }
4709
        oprot.writeFieldEnd();
4710
      } else if (this.isSetSe()) {
4711
        oprot.writeFieldBegin(SE_FIELD_DESC);
4712
        this.se.write(oprot);
4713
        oprot.writeFieldEnd();
4714
      }
4715
      oprot.writeFieldStop();
4716
      oprot.writeStructEnd();
4717
    }
4718
 
4719
    @Override
4720
    public String toString() {
4721
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
4722
      boolean first = true;
4723
 
4724
      sb.append("success:");
4725
      if (this.success == null) {
4726
        sb.append("null");
4727
      } else {
4728
        sb.append(this.success);
4729
      }
4730
      first = false;
4731
      if (!first) sb.append(", ");
4732
      sb.append("se:");
4733
      if (this.se == null) {
4734
        sb.append("null");
4735
      } else {
4736
        sb.append(this.se);
4737
      }
4738
      first = false;
4739
      sb.append(")");
4740
      return sb.toString();
4741
    }
4742
 
3430 rajveer 4743
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 4744
      // check for required fields
4745
    }
4746
 
3430 rajveer 4747
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4748
      try {
4749
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4750
      } catch (org.apache.thrift.TException te) {
4751
        throw new java.io.IOException(te);
4752
      }
4753
    }
4754
 
4755
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4756
      try {
4757
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4758
      } catch (org.apache.thrift.TException te) {
4759
        throw new java.io.IOException(te);
4760
      }
4761
    }
4762
 
1422 varun.gupt 4763
  }
4764
 
3430 rajveer 4765
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
4766
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 4767
 
3430 rajveer 4768
    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 4769
 
3430 rajveer 4770
    private long emailId; // required
1422 varun.gupt 4771
 
4772
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4773
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 4774
      EMAIL_ID((short)1, "emailId");
4775
 
4776
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4777
 
4778
      static {
4779
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4780
          byName.put(field.getFieldName(), field);
4781
        }
4782
      }
4783
 
4784
      /**
4785
       * Find the _Fields constant that matches fieldId, or null if its not found.
4786
       */
4787
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4788
        switch(fieldId) {
4789
          case 1: // EMAIL_ID
4790
            return EMAIL_ID;
4791
          default:
4792
            return null;
4793
        }
1422 varun.gupt 4794
      }
4795
 
4796
      /**
4797
       * Find the _Fields constant that matches fieldId, throwing an exception
4798
       * if it is not found.
4799
       */
4800
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4801
        _Fields fields = findByThriftId(fieldId);
4802
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4803
        return fields;
4804
      }
4805
 
4806
      /**
4807
       * Find the _Fields constant that matches name, or null if its not found.
4808
       */
4809
      public static _Fields findByName(String name) {
4810
        return byName.get(name);
4811
      }
4812
 
4813
      private final short _thriftId;
4814
      private final String _fieldName;
4815
 
4816
      _Fields(short thriftId, String fieldName) {
4817
        _thriftId = thriftId;
4818
        _fieldName = fieldName;
4819
      }
4820
 
4821
      public short getThriftFieldId() {
4822
        return _thriftId;
4823
      }
4824
 
4825
      public String getFieldName() {
4826
        return _fieldName;
4827
      }
4828
    }
4829
 
4830
    // isset id assignments
4831
    private static final int __EMAILID_ISSET_ID = 0;
4832
    private BitSet __isset_bit_vector = new BitSet(1);
4833
 
3430 rajveer 4834
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 4835
    static {
3430 rajveer 4836
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4837
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4838
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4839
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4840
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 4841
    }
4842
 
4843
    public markEmailAsSent_args() {
4844
    }
4845
 
4846
    public markEmailAsSent_args(
4847
      long emailId)
4848
    {
4849
      this();
4850
      this.emailId = emailId;
4851
      setEmailIdIsSet(true);
4852
    }
4853
 
4854
    /**
4855
     * Performs a deep copy on <i>other</i>.
4856
     */
4857
    public markEmailAsSent_args(markEmailAsSent_args other) {
4858
      __isset_bit_vector.clear();
4859
      __isset_bit_vector.or(other.__isset_bit_vector);
4860
      this.emailId = other.emailId;
4861
    }
4862
 
4863
    public markEmailAsSent_args deepCopy() {
4864
      return new markEmailAsSent_args(this);
4865
    }
4866
 
3430 rajveer 4867
    @Override
4868
    public void clear() {
4869
      setEmailIdIsSet(false);
4870
      this.emailId = 0;
1422 varun.gupt 4871
    }
4872
 
4873
    public long getEmailId() {
4874
      return this.emailId;
4875
    }
4876
 
3430 rajveer 4877
    public void setEmailId(long emailId) {
1422 varun.gupt 4878
      this.emailId = emailId;
4879
      setEmailIdIsSet(true);
4880
    }
4881
 
4882
    public void unsetEmailId() {
4883
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
4884
    }
4885
 
3430 rajveer 4886
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 4887
    public boolean isSetEmailId() {
4888
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
4889
    }
4890
 
4891
    public void setEmailIdIsSet(boolean value) {
4892
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
4893
    }
4894
 
4895
    public void setFieldValue(_Fields field, Object value) {
4896
      switch (field) {
4897
      case EMAIL_ID:
4898
        if (value == null) {
4899
          unsetEmailId();
4900
        } else {
4901
          setEmailId((Long)value);
4902
        }
4903
        break;
4904
 
4905
      }
4906
    }
4907
 
4908
    public Object getFieldValue(_Fields field) {
4909
      switch (field) {
4910
      case EMAIL_ID:
3430 rajveer 4911
        return Long.valueOf(getEmailId());
1422 varun.gupt 4912
 
4913
      }
4914
      throw new IllegalStateException();
4915
    }
4916
 
3430 rajveer 4917
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4918
    public boolean isSet(_Fields field) {
4919
      if (field == null) {
4920
        throw new IllegalArgumentException();
4921
      }
1422 varun.gupt 4922
 
4923
      switch (field) {
4924
      case EMAIL_ID:
4925
        return isSetEmailId();
4926
      }
4927
      throw new IllegalStateException();
4928
    }
4929
 
4930
    @Override
4931
    public boolean equals(Object that) {
4932
      if (that == null)
4933
        return false;
4934
      if (that instanceof markEmailAsSent_args)
4935
        return this.equals((markEmailAsSent_args)that);
4936
      return false;
4937
    }
4938
 
4939
    public boolean equals(markEmailAsSent_args that) {
4940
      if (that == null)
4941
        return false;
4942
 
4943
      boolean this_present_emailId = true;
4944
      boolean that_present_emailId = true;
4945
      if (this_present_emailId || that_present_emailId) {
4946
        if (!(this_present_emailId && that_present_emailId))
4947
          return false;
4948
        if (this.emailId != that.emailId)
4949
          return false;
4950
      }
4951
 
4952
      return true;
4953
    }
4954
 
4955
    @Override
4956
    public int hashCode() {
4957
      return 0;
4958
    }
4959
 
4960
    public int compareTo(markEmailAsSent_args other) {
4961
      if (!getClass().equals(other.getClass())) {
4962
        return getClass().getName().compareTo(other.getClass().getName());
4963
      }
4964
 
4965
      int lastComparison = 0;
4966
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
4967
 
3430 rajveer 4968
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 4969
      if (lastComparison != 0) {
4970
        return lastComparison;
4971
      }
3430 rajveer 4972
      if (isSetEmailId()) {
4973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
4974
        if (lastComparison != 0) {
4975
          return lastComparison;
4976
        }
1422 varun.gupt 4977
      }
4978
      return 0;
4979
    }
4980
 
3430 rajveer 4981
    public _Fields fieldForId(int fieldId) {
4982
      return _Fields.findByThriftId(fieldId);
4983
    }
4984
 
4985
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4986
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 4987
      iprot.readStructBegin();
4988
      while (true)
4989
      {
4990
        field = iprot.readFieldBegin();
3430 rajveer 4991
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 4992
          break;
4993
        }
3430 rajveer 4994
        switch (field.id) {
4995
          case 1: // EMAIL_ID
4996
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4997
              this.emailId = iprot.readI64();
4998
              setEmailIdIsSet(true);
4999
            } else { 
5000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5001
            }
5002
            break;
5003
          default:
5004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5005
        }
3430 rajveer 5006
        iprot.readFieldEnd();
1422 varun.gupt 5007
      }
5008
      iprot.readStructEnd();
5009
      validate();
5010
    }
5011
 
3430 rajveer 5012
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5013
      validate();
5014
 
5015
      oprot.writeStructBegin(STRUCT_DESC);
5016
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
5017
      oprot.writeI64(this.emailId);
5018
      oprot.writeFieldEnd();
5019
      oprot.writeFieldStop();
5020
      oprot.writeStructEnd();
5021
    }
5022
 
5023
    @Override
5024
    public String toString() {
5025
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
5026
      boolean first = true;
5027
 
5028
      sb.append("emailId:");
5029
      sb.append(this.emailId);
5030
      first = false;
5031
      sb.append(")");
5032
      return sb.toString();
5033
    }
5034
 
3430 rajveer 5035
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5036
      // check for required fields
5037
    }
5038
 
3430 rajveer 5039
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5040
      try {
5041
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5042
      } catch (org.apache.thrift.TException te) {
5043
        throw new java.io.IOException(te);
5044
      }
5045
    }
5046
 
5047
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5048
      try {
5049
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5050
      } catch (org.apache.thrift.TException te) {
5051
        throw new java.io.IOException(te);
5052
      }
5053
    }
5054
 
1422 varun.gupt 5055
  }
5056
 
3430 rajveer 5057
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
5058
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 5059
 
3430 rajveer 5060
    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 5061
 
3430 rajveer 5062
    private HelperServiceException se; // required
1422 varun.gupt 5063
 
5064
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5065
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 5066
      SE((short)1, "se");
5067
 
5068
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5069
 
5070
      static {
5071
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5072
          byName.put(field.getFieldName(), field);
5073
        }
5074
      }
5075
 
5076
      /**
5077
       * Find the _Fields constant that matches fieldId, or null if its not found.
5078
       */
5079
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5080
        switch(fieldId) {
5081
          case 1: // SE
5082
            return SE;
5083
          default:
5084
            return null;
5085
        }
1422 varun.gupt 5086
      }
5087
 
5088
      /**
5089
       * Find the _Fields constant that matches fieldId, throwing an exception
5090
       * if it is not found.
5091
       */
5092
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5093
        _Fields fields = findByThriftId(fieldId);
5094
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5095
        return fields;
5096
      }
5097
 
5098
      /**
5099
       * Find the _Fields constant that matches name, or null if its not found.
5100
       */
5101
      public static _Fields findByName(String name) {
5102
        return byName.get(name);
5103
      }
5104
 
5105
      private final short _thriftId;
5106
      private final String _fieldName;
5107
 
5108
      _Fields(short thriftId, String fieldName) {
5109
        _thriftId = thriftId;
5110
        _fieldName = fieldName;
5111
      }
5112
 
5113
      public short getThriftFieldId() {
5114
        return _thriftId;
5115
      }
5116
 
5117
      public String getFieldName() {
5118
        return _fieldName;
5119
      }
5120
    }
5121
 
5122
    // isset id assignments
5123
 
3430 rajveer 5124
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5125
    static {
3430 rajveer 5126
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5127
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5128
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5129
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5130
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 5131
    }
5132
 
5133
    public markEmailAsSent_result() {
5134
    }
5135
 
5136
    public markEmailAsSent_result(
5137
      HelperServiceException se)
5138
    {
5139
      this();
5140
      this.se = se;
5141
    }
5142
 
5143
    /**
5144
     * Performs a deep copy on <i>other</i>.
5145
     */
5146
    public markEmailAsSent_result(markEmailAsSent_result other) {
5147
      if (other.isSetSe()) {
5148
        this.se = new HelperServiceException(other.se);
5149
      }
5150
    }
5151
 
5152
    public markEmailAsSent_result deepCopy() {
5153
      return new markEmailAsSent_result(this);
5154
    }
5155
 
3430 rajveer 5156
    @Override
5157
    public void clear() {
5158
      this.se = null;
1422 varun.gupt 5159
    }
5160
 
5161
    public HelperServiceException getSe() {
5162
      return this.se;
5163
    }
5164
 
3430 rajveer 5165
    public void setSe(HelperServiceException se) {
1422 varun.gupt 5166
      this.se = se;
5167
    }
5168
 
5169
    public void unsetSe() {
5170
      this.se = null;
5171
    }
5172
 
3430 rajveer 5173
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5174
    public boolean isSetSe() {
5175
      return this.se != null;
5176
    }
5177
 
5178
    public void setSeIsSet(boolean value) {
5179
      if (!value) {
5180
        this.se = null;
5181
      }
5182
    }
5183
 
5184
    public void setFieldValue(_Fields field, Object value) {
5185
      switch (field) {
5186
      case SE:
5187
        if (value == null) {
5188
          unsetSe();
5189
        } else {
5190
          setSe((HelperServiceException)value);
5191
        }
5192
        break;
5193
 
5194
      }
5195
    }
5196
 
5197
    public Object getFieldValue(_Fields field) {
5198
      switch (field) {
5199
      case SE:
5200
        return getSe();
5201
 
5202
      }
5203
      throw new IllegalStateException();
5204
    }
5205
 
3430 rajveer 5206
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5207
    public boolean isSet(_Fields field) {
5208
      if (field == null) {
5209
        throw new IllegalArgumentException();
5210
      }
1422 varun.gupt 5211
 
5212
      switch (field) {
5213
      case SE:
5214
        return isSetSe();
5215
      }
5216
      throw new IllegalStateException();
5217
    }
5218
 
5219
    @Override
5220
    public boolean equals(Object that) {
5221
      if (that == null)
5222
        return false;
5223
      if (that instanceof markEmailAsSent_result)
5224
        return this.equals((markEmailAsSent_result)that);
5225
      return false;
5226
    }
5227
 
5228
    public boolean equals(markEmailAsSent_result that) {
5229
      if (that == null)
5230
        return false;
5231
 
5232
      boolean this_present_se = true && this.isSetSe();
5233
      boolean that_present_se = true && that.isSetSe();
5234
      if (this_present_se || that_present_se) {
5235
        if (!(this_present_se && that_present_se))
5236
          return false;
5237
        if (!this.se.equals(that.se))
5238
          return false;
5239
      }
5240
 
5241
      return true;
5242
    }
5243
 
5244
    @Override
5245
    public int hashCode() {
5246
      return 0;
5247
    }
5248
 
5249
    public int compareTo(markEmailAsSent_result other) {
5250
      if (!getClass().equals(other.getClass())) {
5251
        return getClass().getName().compareTo(other.getClass().getName());
5252
      }
5253
 
5254
      int lastComparison = 0;
5255
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
5256
 
3430 rajveer 5257
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5258
      if (lastComparison != 0) {
5259
        return lastComparison;
5260
      }
3430 rajveer 5261
      if (isSetSe()) {
5262
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5263
        if (lastComparison != 0) {
5264
          return lastComparison;
5265
        }
1422 varun.gupt 5266
      }
5267
      return 0;
5268
    }
5269
 
3430 rajveer 5270
    public _Fields fieldForId(int fieldId) {
5271
      return _Fields.findByThriftId(fieldId);
5272
    }
5273
 
5274
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5275
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5276
      iprot.readStructBegin();
5277
      while (true)
5278
      {
5279
        field = iprot.readFieldBegin();
3430 rajveer 5280
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5281
          break;
5282
        }
3430 rajveer 5283
        switch (field.id) {
5284
          case 1: // SE
5285
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5286
              this.se = new HelperServiceException();
5287
              this.se.read(iprot);
5288
            } else { 
5289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5290
            }
5291
            break;
5292
          default:
5293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5294
        }
3430 rajveer 5295
        iprot.readFieldEnd();
1422 varun.gupt 5296
      }
5297
      iprot.readStructEnd();
5298
      validate();
5299
    }
5300
 
3430 rajveer 5301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5302
      oprot.writeStructBegin(STRUCT_DESC);
5303
 
5304
      if (this.isSetSe()) {
5305
        oprot.writeFieldBegin(SE_FIELD_DESC);
5306
        this.se.write(oprot);
5307
        oprot.writeFieldEnd();
5308
      }
5309
      oprot.writeFieldStop();
5310
      oprot.writeStructEnd();
5311
    }
5312
 
5313
    @Override
5314
    public String toString() {
5315
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
5316
      boolean first = true;
5317
 
5318
      sb.append("se:");
5319
      if (this.se == null) {
5320
        sb.append("null");
5321
      } else {
5322
        sb.append(this.se);
5323
      }
5324
      first = false;
5325
      sb.append(")");
5326
      return sb.toString();
5327
    }
5328
 
3430 rajveer 5329
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5330
      // check for required fields
5331
    }
5332
 
3430 rajveer 5333
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5334
      try {
5335
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5336
      } catch (org.apache.thrift.TException te) {
5337
        throw new java.io.IOException(te);
5338
      }
5339
    }
5340
 
5341
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5342
      try {
5343
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5344
      } catch (org.apache.thrift.TException te) {
5345
        throw new java.io.IOException(te);
5346
      }
5347
    }
5348
 
1422 varun.gupt 5349
  }
5350
 
3430 rajveer 5351
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
5352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 5353
 
3430 rajveer 5354
    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 5355
 
3430 rajveer 5356
    private Mail mail; // required
352 ashish 5357
 
5358
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5359
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5360
      MAIL((short)1, "mail");
5361
 
5362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5363
 
5364
      static {
5365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5366
          byName.put(field.getFieldName(), field);
5367
        }
5368
      }
5369
 
5370
      /**
5371
       * Find the _Fields constant that matches fieldId, or null if its not found.
5372
       */
5373
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5374
        switch(fieldId) {
5375
          case 1: // MAIL
5376
            return MAIL;
5377
          default:
5378
            return null;
5379
        }
352 ashish 5380
      }
5381
 
5382
      /**
5383
       * Find the _Fields constant that matches fieldId, throwing an exception
5384
       * if it is not found.
5385
       */
5386
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5387
        _Fields fields = findByThriftId(fieldId);
5388
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5389
        return fields;
5390
      }
5391
 
5392
      /**
5393
       * Find the _Fields constant that matches name, or null if its not found.
5394
       */
5395
      public static _Fields findByName(String name) {
5396
        return byName.get(name);
5397
      }
5398
 
5399
      private final short _thriftId;
5400
      private final String _fieldName;
5401
 
5402
      _Fields(short thriftId, String fieldName) {
5403
        _thriftId = thriftId;
5404
        _fieldName = fieldName;
5405
      }
5406
 
5407
      public short getThriftFieldId() {
5408
        return _thriftId;
5409
      }
5410
 
5411
      public String getFieldName() {
5412
        return _fieldName;
5413
      }
5414
    }
5415
 
5416
    // isset id assignments
5417
 
3430 rajveer 5418
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5419
    static {
3430 rajveer 5420
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5421
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5422
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
5423
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5424
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 5425
    }
5426
 
5427
    public sendMail_args() {
5428
    }
5429
 
5430
    public sendMail_args(
5431
      Mail mail)
5432
    {
5433
      this();
5434
      this.mail = mail;
5435
    }
5436
 
5437
    /**
5438
     * Performs a deep copy on <i>other</i>.
5439
     */
5440
    public sendMail_args(sendMail_args other) {
5441
      if (other.isSetMail()) {
5442
        this.mail = new Mail(other.mail);
5443
      }
5444
    }
5445
 
5446
    public sendMail_args deepCopy() {
5447
      return new sendMail_args(this);
5448
    }
5449
 
3430 rajveer 5450
    @Override
5451
    public void clear() {
5452
      this.mail = null;
352 ashish 5453
    }
5454
 
5455
    public Mail getMail() {
5456
      return this.mail;
5457
    }
5458
 
3430 rajveer 5459
    public void setMail(Mail mail) {
352 ashish 5460
      this.mail = mail;
5461
    }
5462
 
5463
    public void unsetMail() {
5464
      this.mail = null;
5465
    }
5466
 
3430 rajveer 5467
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 5468
    public boolean isSetMail() {
5469
      return this.mail != null;
5470
    }
5471
 
5472
    public void setMailIsSet(boolean value) {
5473
      if (!value) {
5474
        this.mail = null;
5475
      }
5476
    }
5477
 
5478
    public void setFieldValue(_Fields field, Object value) {
5479
      switch (field) {
5480
      case MAIL:
5481
        if (value == null) {
5482
          unsetMail();
5483
        } else {
5484
          setMail((Mail)value);
5485
        }
5486
        break;
5487
 
5488
      }
5489
    }
5490
 
5491
    public Object getFieldValue(_Fields field) {
5492
      switch (field) {
5493
      case MAIL:
5494
        return getMail();
5495
 
5496
      }
5497
      throw new IllegalStateException();
5498
    }
5499
 
3430 rajveer 5500
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5501
    public boolean isSet(_Fields field) {
5502
      if (field == null) {
5503
        throw new IllegalArgumentException();
5504
      }
352 ashish 5505
 
5506
      switch (field) {
5507
      case MAIL:
5508
        return isSetMail();
5509
      }
5510
      throw new IllegalStateException();
5511
    }
5512
 
5513
    @Override
5514
    public boolean equals(Object that) {
5515
      if (that == null)
5516
        return false;
5517
      if (that instanceof sendMail_args)
5518
        return this.equals((sendMail_args)that);
5519
      return false;
5520
    }
5521
 
5522
    public boolean equals(sendMail_args that) {
5523
      if (that == null)
5524
        return false;
5525
 
5526
      boolean this_present_mail = true && this.isSetMail();
5527
      boolean that_present_mail = true && that.isSetMail();
5528
      if (this_present_mail || that_present_mail) {
5529
        if (!(this_present_mail && that_present_mail))
5530
          return false;
5531
        if (!this.mail.equals(that.mail))
5532
          return false;
5533
      }
5534
 
5535
      return true;
5536
    }
5537
 
5538
    @Override
5539
    public int hashCode() {
5540
      return 0;
5541
    }
5542
 
5543
    public int compareTo(sendMail_args other) {
5544
      if (!getClass().equals(other.getClass())) {
5545
        return getClass().getName().compareTo(other.getClass().getName());
5546
      }
5547
 
5548
      int lastComparison = 0;
5549
      sendMail_args typedOther = (sendMail_args)other;
5550
 
3430 rajveer 5551
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 5552
      if (lastComparison != 0) {
5553
        return lastComparison;
5554
      }
3430 rajveer 5555
      if (isSetMail()) {
5556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
5557
        if (lastComparison != 0) {
5558
          return lastComparison;
5559
        }
352 ashish 5560
      }
5561
      return 0;
5562
    }
5563
 
3430 rajveer 5564
    public _Fields fieldForId(int fieldId) {
5565
      return _Fields.findByThriftId(fieldId);
5566
    }
5567
 
5568
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5569
      org.apache.thrift.protocol.TField field;
352 ashish 5570
      iprot.readStructBegin();
5571
      while (true)
5572
      {
5573
        field = iprot.readFieldBegin();
3430 rajveer 5574
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5575
          break;
5576
        }
3430 rajveer 5577
        switch (field.id) {
5578
          case 1: // MAIL
5579
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5580
              this.mail = new Mail();
5581
              this.mail.read(iprot);
5582
            } else { 
5583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5584
            }
5585
            break;
5586
          default:
5587
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5588
        }
3430 rajveer 5589
        iprot.readFieldEnd();
352 ashish 5590
      }
5591
      iprot.readStructEnd();
5592
      validate();
5593
    }
5594
 
3430 rajveer 5595
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5596
      validate();
5597
 
5598
      oprot.writeStructBegin(STRUCT_DESC);
5599
      if (this.mail != null) {
5600
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
5601
        this.mail.write(oprot);
5602
        oprot.writeFieldEnd();
5603
      }
5604
      oprot.writeFieldStop();
5605
      oprot.writeStructEnd();
5606
    }
5607
 
5608
    @Override
5609
    public String toString() {
5610
      StringBuilder sb = new StringBuilder("sendMail_args(");
5611
      boolean first = true;
5612
 
5613
      sb.append("mail:");
5614
      if (this.mail == null) {
5615
        sb.append("null");
5616
      } else {
5617
        sb.append(this.mail);
5618
      }
5619
      first = false;
5620
      sb.append(")");
5621
      return sb.toString();
5622
    }
5623
 
3430 rajveer 5624
    public void validate() throws org.apache.thrift.TException {
352 ashish 5625
      // check for required fields
5626
    }
5627
 
3430 rajveer 5628
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5629
      try {
5630
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5631
      } catch (org.apache.thrift.TException te) {
5632
        throw new java.io.IOException(te);
5633
      }
5634
    }
5635
 
5636
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5637
      try {
5638
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5639
      } catch (org.apache.thrift.TException te) {
5640
        throw new java.io.IOException(te);
5641
      }
5642
    }
5643
 
352 ashish 5644
  }
5645
 
3430 rajveer 5646
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
5647
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 5648
 
3430 rajveer 5649
    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 5650
 
3430 rajveer 5651
    private HelperServiceException se; // required
352 ashish 5652
 
5653
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5654
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5655
      SE((short)1, "se");
5656
 
5657
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5658
 
5659
      static {
5660
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5661
          byName.put(field.getFieldName(), field);
5662
        }
5663
      }
5664
 
5665
      /**
5666
       * Find the _Fields constant that matches fieldId, or null if its not found.
5667
       */
5668
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5669
        switch(fieldId) {
5670
          case 1: // SE
5671
            return SE;
5672
          default:
5673
            return null;
5674
        }
352 ashish 5675
      }
5676
 
5677
      /**
5678
       * Find the _Fields constant that matches fieldId, throwing an exception
5679
       * if it is not found.
5680
       */
5681
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5682
        _Fields fields = findByThriftId(fieldId);
5683
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5684
        return fields;
5685
      }
5686
 
5687
      /**
5688
       * Find the _Fields constant that matches name, or null if its not found.
5689
       */
5690
      public static _Fields findByName(String name) {
5691
        return byName.get(name);
5692
      }
5693
 
5694
      private final short _thriftId;
5695
      private final String _fieldName;
5696
 
5697
      _Fields(short thriftId, String fieldName) {
5698
        _thriftId = thriftId;
5699
        _fieldName = fieldName;
5700
      }
5701
 
5702
      public short getThriftFieldId() {
5703
        return _thriftId;
5704
      }
5705
 
5706
      public String getFieldName() {
5707
        return _fieldName;
5708
      }
5709
    }
5710
 
5711
    // isset id assignments
5712
 
3430 rajveer 5713
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 5714
    static {
3430 rajveer 5715
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5716
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5717
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 5720
    }
5721
 
5722
    public sendMail_result() {
5723
    }
5724
 
5725
    public sendMail_result(
5726
      HelperServiceException se)
5727
    {
5728
      this();
5729
      this.se = se;
5730
    }
5731
 
5732
    /**
5733
     * Performs a deep copy on <i>other</i>.
5734
     */
5735
    public sendMail_result(sendMail_result other) {
5736
      if (other.isSetSe()) {
5737
        this.se = new HelperServiceException(other.se);
5738
      }
5739
    }
5740
 
5741
    public sendMail_result deepCopy() {
5742
      return new sendMail_result(this);
5743
    }
5744
 
3430 rajveer 5745
    @Override
5746
    public void clear() {
5747
      this.se = null;
352 ashish 5748
    }
5749
 
5750
    public HelperServiceException getSe() {
5751
      return this.se;
5752
    }
5753
 
3430 rajveer 5754
    public void setSe(HelperServiceException se) {
352 ashish 5755
      this.se = se;
5756
    }
5757
 
5758
    public void unsetSe() {
5759
      this.se = null;
5760
    }
5761
 
3430 rajveer 5762
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 5763
    public boolean isSetSe() {
5764
      return this.se != null;
5765
    }
5766
 
5767
    public void setSeIsSet(boolean value) {
5768
      if (!value) {
5769
        this.se = null;
5770
      }
5771
    }
5772
 
5773
    public void setFieldValue(_Fields field, Object value) {
5774
      switch (field) {
5775
      case SE:
5776
        if (value == null) {
5777
          unsetSe();
5778
        } else {
5779
          setSe((HelperServiceException)value);
5780
        }
5781
        break;
5782
 
5783
      }
5784
    }
5785
 
5786
    public Object getFieldValue(_Fields field) {
5787
      switch (field) {
5788
      case SE:
5789
        return getSe();
5790
 
5791
      }
5792
      throw new IllegalStateException();
5793
    }
5794
 
3430 rajveer 5795
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5796
    public boolean isSet(_Fields field) {
5797
      if (field == null) {
5798
        throw new IllegalArgumentException();
5799
      }
352 ashish 5800
 
5801
      switch (field) {
5802
      case SE:
5803
        return isSetSe();
5804
      }
5805
      throw new IllegalStateException();
5806
    }
5807
 
5808
    @Override
5809
    public boolean equals(Object that) {
5810
      if (that == null)
5811
        return false;
5812
      if (that instanceof sendMail_result)
5813
        return this.equals((sendMail_result)that);
5814
      return false;
5815
    }
5816
 
5817
    public boolean equals(sendMail_result that) {
5818
      if (that == null)
5819
        return false;
5820
 
5821
      boolean this_present_se = true && this.isSetSe();
5822
      boolean that_present_se = true && that.isSetSe();
5823
      if (this_present_se || that_present_se) {
5824
        if (!(this_present_se && that_present_se))
5825
          return false;
5826
        if (!this.se.equals(that.se))
5827
          return false;
5828
      }
5829
 
5830
      return true;
5831
    }
5832
 
5833
    @Override
5834
    public int hashCode() {
5835
      return 0;
5836
    }
5837
 
5838
    public int compareTo(sendMail_result other) {
5839
      if (!getClass().equals(other.getClass())) {
5840
        return getClass().getName().compareTo(other.getClass().getName());
5841
      }
5842
 
5843
      int lastComparison = 0;
5844
      sendMail_result typedOther = (sendMail_result)other;
5845
 
3430 rajveer 5846
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 5847
      if (lastComparison != 0) {
5848
        return lastComparison;
5849
      }
3430 rajveer 5850
      if (isSetSe()) {
5851
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5852
        if (lastComparison != 0) {
5853
          return lastComparison;
5854
        }
352 ashish 5855
      }
5856
      return 0;
5857
    }
5858
 
3430 rajveer 5859
    public _Fields fieldForId(int fieldId) {
5860
      return _Fields.findByThriftId(fieldId);
5861
    }
5862
 
5863
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5864
      org.apache.thrift.protocol.TField field;
352 ashish 5865
      iprot.readStructBegin();
5866
      while (true)
5867
      {
5868
        field = iprot.readFieldBegin();
3430 rajveer 5869
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 5870
          break;
5871
        }
3430 rajveer 5872
        switch (field.id) {
5873
          case 1: // SE
5874
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5875
              this.se = new HelperServiceException();
5876
              this.se.read(iprot);
5877
            } else { 
5878
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5879
            }
5880
            break;
5881
          default:
5882
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 5883
        }
3430 rajveer 5884
        iprot.readFieldEnd();
352 ashish 5885
      }
5886
      iprot.readStructEnd();
5887
      validate();
5888
    }
5889
 
3430 rajveer 5890
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 5891
      oprot.writeStructBegin(STRUCT_DESC);
5892
 
5893
      if (this.isSetSe()) {
5894
        oprot.writeFieldBegin(SE_FIELD_DESC);
5895
        this.se.write(oprot);
5896
        oprot.writeFieldEnd();
5897
      }
5898
      oprot.writeFieldStop();
5899
      oprot.writeStructEnd();
5900
    }
5901
 
5902
    @Override
5903
    public String toString() {
5904
      StringBuilder sb = new StringBuilder("sendMail_result(");
5905
      boolean first = true;
5906
 
5907
      sb.append("se:");
5908
      if (this.se == null) {
5909
        sb.append("null");
5910
      } else {
5911
        sb.append(this.se);
5912
      }
5913
      first = false;
5914
      sb.append(")");
5915
      return sb.toString();
5916
    }
5917
 
3430 rajveer 5918
    public void validate() throws org.apache.thrift.TException {
352 ashish 5919
      // check for required fields
5920
    }
5921
 
3430 rajveer 5922
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5923
      try {
5924
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5925
      } catch (org.apache.thrift.TException te) {
5926
        throw new java.io.IOException(te);
5927
      }
5928
    }
5929
 
5930
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5931
      try {
5932
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5933
      } catch (org.apache.thrift.TException te) {
5934
        throw new java.io.IOException(te);
5935
      }
5936
    }
5937
 
352 ashish 5938
  }
5939
 
3430 rajveer 5940
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
5941
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 5942
 
3430 rajveer 5943
    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 5944
 
3430 rajveer 5945
    private TextMessage message; // required
352 ashish 5946
 
5947
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5948
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 5949
      MESSAGE((short)1, "message");
5950
 
5951
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5952
 
5953
      static {
5954
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5955
          byName.put(field.getFieldName(), field);
5956
        }
5957
      }
5958
 
5959
      /**
5960
       * Find the _Fields constant that matches fieldId, or null if its not found.
5961
       */
5962
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5963
        switch(fieldId) {
5964
          case 1: // MESSAGE
5965
            return MESSAGE;
5966
          default:
5967
            return null;
5968
        }
352 ashish 5969
      }
5970
 
5971
      /**
5972
       * Find the _Fields constant that matches fieldId, throwing an exception
5973
       * if it is not found.
5974
       */
5975
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5976
        _Fields fields = findByThriftId(fieldId);
5977
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5978
        return fields;
5979
      }
5980
 
5981
      /**
5982
       * Find the _Fields constant that matches name, or null if its not found.
5983
       */
5984
      public static _Fields findByName(String name) {
5985
        return byName.get(name);
5986
      }
5987
 
5988
      private final short _thriftId;
5989
      private final String _fieldName;
5990
 
5991
      _Fields(short thriftId, String fieldName) {
5992
        _thriftId = thriftId;
5993
        _fieldName = fieldName;
5994
      }
5995
 
5996
      public short getThriftFieldId() {
5997
        return _thriftId;
5998
      }
5999
 
6000
      public String getFieldName() {
6001
        return _fieldName;
6002
      }
6003
    }
6004
 
6005
    // isset id assignments
6006
 
3430 rajveer 6007
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6008
    static {
3430 rajveer 6009
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6010
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6011
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
6012
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6013
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 6014
    }
6015
 
6016
    public sendText_args() {
6017
    }
6018
 
6019
    public sendText_args(
6020
      TextMessage message)
6021
    {
6022
      this();
6023
      this.message = message;
6024
    }
6025
 
6026
    /**
6027
     * Performs a deep copy on <i>other</i>.
6028
     */
6029
    public sendText_args(sendText_args other) {
6030
      if (other.isSetMessage()) {
6031
        this.message = new TextMessage(other.message);
6032
      }
6033
    }
6034
 
6035
    public sendText_args deepCopy() {
6036
      return new sendText_args(this);
6037
    }
6038
 
3430 rajveer 6039
    @Override
6040
    public void clear() {
6041
      this.message = null;
352 ashish 6042
    }
6043
 
6044
    public TextMessage getMessage() {
6045
      return this.message;
6046
    }
6047
 
3430 rajveer 6048
    public void setMessage(TextMessage message) {
352 ashish 6049
      this.message = message;
6050
    }
6051
 
6052
    public void unsetMessage() {
6053
      this.message = null;
6054
    }
6055
 
3430 rajveer 6056
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6057
    public boolean isSetMessage() {
6058
      return this.message != null;
6059
    }
6060
 
6061
    public void setMessageIsSet(boolean value) {
6062
      if (!value) {
6063
        this.message = null;
6064
      }
6065
    }
6066
 
6067
    public void setFieldValue(_Fields field, Object value) {
6068
      switch (field) {
6069
      case MESSAGE:
6070
        if (value == null) {
6071
          unsetMessage();
6072
        } else {
6073
          setMessage((TextMessage)value);
6074
        }
6075
        break;
6076
 
6077
      }
6078
    }
6079
 
6080
    public Object getFieldValue(_Fields field) {
6081
      switch (field) {
6082
      case MESSAGE:
6083
        return getMessage();
6084
 
6085
      }
6086
      throw new IllegalStateException();
6087
    }
6088
 
3430 rajveer 6089
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6090
    public boolean isSet(_Fields field) {
6091
      if (field == null) {
6092
        throw new IllegalArgumentException();
6093
      }
352 ashish 6094
 
6095
      switch (field) {
6096
      case MESSAGE:
6097
        return isSetMessage();
6098
      }
6099
      throw new IllegalStateException();
6100
    }
6101
 
6102
    @Override
6103
    public boolean equals(Object that) {
6104
      if (that == null)
6105
        return false;
6106
      if (that instanceof sendText_args)
6107
        return this.equals((sendText_args)that);
6108
      return false;
6109
    }
6110
 
6111
    public boolean equals(sendText_args that) {
6112
      if (that == null)
6113
        return false;
6114
 
6115
      boolean this_present_message = true && this.isSetMessage();
6116
      boolean that_present_message = true && that.isSetMessage();
6117
      if (this_present_message || that_present_message) {
6118
        if (!(this_present_message && that_present_message))
6119
          return false;
6120
        if (!this.message.equals(that.message))
6121
          return false;
6122
      }
6123
 
6124
      return true;
6125
    }
6126
 
6127
    @Override
6128
    public int hashCode() {
6129
      return 0;
6130
    }
6131
 
6132
    public int compareTo(sendText_args other) {
6133
      if (!getClass().equals(other.getClass())) {
6134
        return getClass().getName().compareTo(other.getClass().getName());
6135
      }
6136
 
6137
      int lastComparison = 0;
6138
      sendText_args typedOther = (sendText_args)other;
6139
 
3430 rajveer 6140
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6141
      if (lastComparison != 0) {
6142
        return lastComparison;
6143
      }
3430 rajveer 6144
      if (isSetMessage()) {
6145
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6146
        if (lastComparison != 0) {
6147
          return lastComparison;
6148
        }
352 ashish 6149
      }
6150
      return 0;
6151
    }
6152
 
3430 rajveer 6153
    public _Fields fieldForId(int fieldId) {
6154
      return _Fields.findByThriftId(fieldId);
6155
    }
6156
 
6157
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6158
      org.apache.thrift.protocol.TField field;
352 ashish 6159
      iprot.readStructBegin();
6160
      while (true)
6161
      {
6162
        field = iprot.readFieldBegin();
3430 rajveer 6163
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6164
          break;
6165
        }
3430 rajveer 6166
        switch (field.id) {
6167
          case 1: // MESSAGE
6168
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6169
              this.message = new TextMessage();
6170
              this.message.read(iprot);
6171
            } else { 
6172
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6173
            }
6174
            break;
6175
          default:
6176
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6177
        }
3430 rajveer 6178
        iprot.readFieldEnd();
352 ashish 6179
      }
6180
      iprot.readStructEnd();
6181
      validate();
6182
    }
6183
 
3430 rajveer 6184
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6185
      validate();
6186
 
6187
      oprot.writeStructBegin(STRUCT_DESC);
6188
      if (this.message != null) {
6189
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6190
        this.message.write(oprot);
6191
        oprot.writeFieldEnd();
6192
      }
6193
      oprot.writeFieldStop();
6194
      oprot.writeStructEnd();
6195
    }
6196
 
6197
    @Override
6198
    public String toString() {
6199
      StringBuilder sb = new StringBuilder("sendText_args(");
6200
      boolean first = true;
6201
 
6202
      sb.append("message:");
6203
      if (this.message == null) {
6204
        sb.append("null");
6205
      } else {
6206
        sb.append(this.message);
6207
      }
6208
      first = false;
6209
      sb.append(")");
6210
      return sb.toString();
6211
    }
6212
 
3430 rajveer 6213
    public void validate() throws org.apache.thrift.TException {
352 ashish 6214
      // check for required fields
6215
    }
6216
 
3430 rajveer 6217
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6218
      try {
6219
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6220
      } catch (org.apache.thrift.TException te) {
6221
        throw new java.io.IOException(te);
6222
      }
6223
    }
6224
 
6225
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6226
      try {
6227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6228
      } catch (org.apache.thrift.TException te) {
6229
        throw new java.io.IOException(te);
6230
      }
6231
    }
6232
 
352 ashish 6233
  }
6234
 
3430 rajveer 6235
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
6236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 6237
 
3430 rajveer 6238
    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 6239
 
3430 rajveer 6240
    private HelperServiceException se; // required
352 ashish 6241
 
6242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6243
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6244
      SE((short)1, "se");
6245
 
6246
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6247
 
6248
      static {
6249
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6250
          byName.put(field.getFieldName(), field);
6251
        }
6252
      }
6253
 
6254
      /**
6255
       * Find the _Fields constant that matches fieldId, or null if its not found.
6256
       */
6257
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6258
        switch(fieldId) {
6259
          case 1: // SE
6260
            return SE;
6261
          default:
6262
            return null;
6263
        }
352 ashish 6264
      }
6265
 
6266
      /**
6267
       * Find the _Fields constant that matches fieldId, throwing an exception
6268
       * if it is not found.
6269
       */
6270
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6271
        _Fields fields = findByThriftId(fieldId);
6272
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6273
        return fields;
6274
      }
6275
 
6276
      /**
6277
       * Find the _Fields constant that matches name, or null if its not found.
6278
       */
6279
      public static _Fields findByName(String name) {
6280
        return byName.get(name);
6281
      }
6282
 
6283
      private final short _thriftId;
6284
      private final String _fieldName;
6285
 
6286
      _Fields(short thriftId, String fieldName) {
6287
        _thriftId = thriftId;
6288
        _fieldName = fieldName;
6289
      }
6290
 
6291
      public short getThriftFieldId() {
6292
        return _thriftId;
6293
      }
6294
 
6295
      public String getFieldName() {
6296
        return _fieldName;
6297
      }
6298
    }
6299
 
6300
    // isset id assignments
6301
 
3430 rajveer 6302
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6303
    static {
3430 rajveer 6304
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6305
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6306
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6307
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6308
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 6309
    }
6310
 
6311
    public sendText_result() {
6312
    }
6313
 
6314
    public sendText_result(
6315
      HelperServiceException se)
6316
    {
6317
      this();
6318
      this.se = se;
6319
    }
6320
 
6321
    /**
6322
     * Performs a deep copy on <i>other</i>.
6323
     */
6324
    public sendText_result(sendText_result other) {
6325
      if (other.isSetSe()) {
6326
        this.se = new HelperServiceException(other.se);
6327
      }
6328
    }
6329
 
6330
    public sendText_result deepCopy() {
6331
      return new sendText_result(this);
6332
    }
6333
 
3430 rajveer 6334
    @Override
6335
    public void clear() {
6336
      this.se = null;
352 ashish 6337
    }
6338
 
6339
    public HelperServiceException getSe() {
6340
      return this.se;
6341
    }
6342
 
3430 rajveer 6343
    public void setSe(HelperServiceException se) {
352 ashish 6344
      this.se = se;
6345
    }
6346
 
6347
    public void unsetSe() {
6348
      this.se = null;
6349
    }
6350
 
3430 rajveer 6351
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6352
    public boolean isSetSe() {
6353
      return this.se != null;
6354
    }
6355
 
6356
    public void setSeIsSet(boolean value) {
6357
      if (!value) {
6358
        this.se = null;
6359
      }
6360
    }
6361
 
6362
    public void setFieldValue(_Fields field, Object value) {
6363
      switch (field) {
6364
      case SE:
6365
        if (value == null) {
6366
          unsetSe();
6367
        } else {
6368
          setSe((HelperServiceException)value);
6369
        }
6370
        break;
6371
 
6372
      }
6373
    }
6374
 
6375
    public Object getFieldValue(_Fields field) {
6376
      switch (field) {
6377
      case SE:
6378
        return getSe();
6379
 
6380
      }
6381
      throw new IllegalStateException();
6382
    }
6383
 
3430 rajveer 6384
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6385
    public boolean isSet(_Fields field) {
6386
      if (field == null) {
6387
        throw new IllegalArgumentException();
6388
      }
352 ashish 6389
 
6390
      switch (field) {
6391
      case SE:
6392
        return isSetSe();
6393
      }
6394
      throw new IllegalStateException();
6395
    }
6396
 
6397
    @Override
6398
    public boolean equals(Object that) {
6399
      if (that == null)
6400
        return false;
6401
      if (that instanceof sendText_result)
6402
        return this.equals((sendText_result)that);
6403
      return false;
6404
    }
6405
 
6406
    public boolean equals(sendText_result that) {
6407
      if (that == null)
6408
        return false;
6409
 
6410
      boolean this_present_se = true && this.isSetSe();
6411
      boolean that_present_se = true && that.isSetSe();
6412
      if (this_present_se || that_present_se) {
6413
        if (!(this_present_se && that_present_se))
6414
          return false;
6415
        if (!this.se.equals(that.se))
6416
          return false;
6417
      }
6418
 
6419
      return true;
6420
    }
6421
 
6422
    @Override
6423
    public int hashCode() {
6424
      return 0;
6425
    }
6426
 
6427
    public int compareTo(sendText_result other) {
6428
      if (!getClass().equals(other.getClass())) {
6429
        return getClass().getName().compareTo(other.getClass().getName());
6430
      }
6431
 
6432
      int lastComparison = 0;
6433
      sendText_result typedOther = (sendText_result)other;
6434
 
3430 rajveer 6435
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6436
      if (lastComparison != 0) {
6437
        return lastComparison;
6438
      }
3430 rajveer 6439
      if (isSetSe()) {
6440
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6441
        if (lastComparison != 0) {
6442
          return lastComparison;
6443
        }
352 ashish 6444
      }
6445
      return 0;
6446
    }
6447
 
3430 rajveer 6448
    public _Fields fieldForId(int fieldId) {
6449
      return _Fields.findByThriftId(fieldId);
6450
    }
6451
 
6452
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6453
      org.apache.thrift.protocol.TField field;
352 ashish 6454
      iprot.readStructBegin();
6455
      while (true)
6456
      {
6457
        field = iprot.readFieldBegin();
3430 rajveer 6458
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6459
          break;
6460
        }
3430 rajveer 6461
        switch (field.id) {
6462
          case 1: // SE
6463
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6464
              this.se = new HelperServiceException();
6465
              this.se.read(iprot);
6466
            } else { 
6467
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6468
            }
6469
            break;
6470
          default:
6471
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6472
        }
3430 rajveer 6473
        iprot.readFieldEnd();
352 ashish 6474
      }
6475
      iprot.readStructEnd();
6476
      validate();
6477
    }
6478
 
3430 rajveer 6479
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6480
      oprot.writeStructBegin(STRUCT_DESC);
6481
 
6482
      if (this.isSetSe()) {
6483
        oprot.writeFieldBegin(SE_FIELD_DESC);
6484
        this.se.write(oprot);
6485
        oprot.writeFieldEnd();
6486
      }
6487
      oprot.writeFieldStop();
6488
      oprot.writeStructEnd();
6489
    }
6490
 
6491
    @Override
6492
    public String toString() {
6493
      StringBuilder sb = new StringBuilder("sendText_result(");
6494
      boolean first = true;
6495
 
6496
      sb.append("se:");
6497
      if (this.se == null) {
6498
        sb.append("null");
6499
      } else {
6500
        sb.append(this.se);
6501
      }
6502
      first = false;
6503
      sb.append(")");
6504
      return sb.toString();
6505
    }
6506
 
3430 rajveer 6507
    public void validate() throws org.apache.thrift.TException {
352 ashish 6508
      // check for required fields
6509
    }
6510
 
3430 rajveer 6511
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6512
      try {
6513
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6514
      } catch (org.apache.thrift.TException te) {
6515
        throw new java.io.IOException(te);
6516
      }
6517
    }
6518
 
6519
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6520
      try {
6521
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6522
      } catch (org.apache.thrift.TException te) {
6523
        throw new java.io.IOException(te);
6524
      }
6525
    }
6526
 
352 ashish 6527
  }
6528
 
3430 rajveer 6529
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
6530
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 6531
 
3430 rajveer 6532
    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 6533
 
3430 rajveer 6534
    private Message message; // required
352 ashish 6535
 
6536
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6537
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6538
      MESSAGE((short)1, "message");
6539
 
6540
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6541
 
6542
      static {
6543
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6544
          byName.put(field.getFieldName(), field);
6545
        }
6546
      }
6547
 
6548
      /**
6549
       * Find the _Fields constant that matches fieldId, or null if its not found.
6550
       */
6551
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6552
        switch(fieldId) {
6553
          case 1: // MESSAGE
6554
            return MESSAGE;
6555
          default:
6556
            return null;
6557
        }
352 ashish 6558
      }
6559
 
6560
      /**
6561
       * Find the _Fields constant that matches fieldId, throwing an exception
6562
       * if it is not found.
6563
       */
6564
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6565
        _Fields fields = findByThriftId(fieldId);
6566
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6567
        return fields;
6568
      }
6569
 
6570
      /**
6571
       * Find the _Fields constant that matches name, or null if its not found.
6572
       */
6573
      public static _Fields findByName(String name) {
6574
        return byName.get(name);
6575
      }
6576
 
6577
      private final short _thriftId;
6578
      private final String _fieldName;
6579
 
6580
      _Fields(short thriftId, String fieldName) {
6581
        _thriftId = thriftId;
6582
        _fieldName = fieldName;
6583
      }
6584
 
6585
      public short getThriftFieldId() {
6586
        return _thriftId;
6587
      }
6588
 
6589
      public String getFieldName() {
6590
        return _fieldName;
6591
      }
6592
    }
6593
 
6594
    // isset id assignments
6595
 
3430 rajveer 6596
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6597
    static {
3430 rajveer 6598
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6599
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6600
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
6601
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6602
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 6603
    }
6604
 
6605
    public addMessage_args() {
6606
    }
6607
 
6608
    public addMessage_args(
6609
      Message message)
6610
    {
6611
      this();
6612
      this.message = message;
6613
    }
6614
 
6615
    /**
6616
     * Performs a deep copy on <i>other</i>.
6617
     */
6618
    public addMessage_args(addMessage_args other) {
6619
      if (other.isSetMessage()) {
6620
        this.message = new Message(other.message);
6621
      }
6622
    }
6623
 
6624
    public addMessage_args deepCopy() {
6625
      return new addMessage_args(this);
6626
    }
6627
 
3430 rajveer 6628
    @Override
6629
    public void clear() {
6630
      this.message = null;
352 ashish 6631
    }
6632
 
6633
    public Message getMessage() {
6634
      return this.message;
6635
    }
6636
 
3430 rajveer 6637
    public void setMessage(Message message) {
352 ashish 6638
      this.message = message;
6639
    }
6640
 
6641
    public void unsetMessage() {
6642
      this.message = null;
6643
    }
6644
 
3430 rajveer 6645
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 6646
    public boolean isSetMessage() {
6647
      return this.message != null;
6648
    }
6649
 
6650
    public void setMessageIsSet(boolean value) {
6651
      if (!value) {
6652
        this.message = null;
6653
      }
6654
    }
6655
 
6656
    public void setFieldValue(_Fields field, Object value) {
6657
      switch (field) {
6658
      case MESSAGE:
6659
        if (value == null) {
6660
          unsetMessage();
6661
        } else {
6662
          setMessage((Message)value);
6663
        }
6664
        break;
6665
 
6666
      }
6667
    }
6668
 
6669
    public Object getFieldValue(_Fields field) {
6670
      switch (field) {
6671
      case MESSAGE:
6672
        return getMessage();
6673
 
6674
      }
6675
      throw new IllegalStateException();
6676
    }
6677
 
3430 rajveer 6678
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6679
    public boolean isSet(_Fields field) {
6680
      if (field == null) {
6681
        throw new IllegalArgumentException();
6682
      }
352 ashish 6683
 
6684
      switch (field) {
6685
      case MESSAGE:
6686
        return isSetMessage();
6687
      }
6688
      throw new IllegalStateException();
6689
    }
6690
 
6691
    @Override
6692
    public boolean equals(Object that) {
6693
      if (that == null)
6694
        return false;
6695
      if (that instanceof addMessage_args)
6696
        return this.equals((addMessage_args)that);
6697
      return false;
6698
    }
6699
 
6700
    public boolean equals(addMessage_args that) {
6701
      if (that == null)
6702
        return false;
6703
 
6704
      boolean this_present_message = true && this.isSetMessage();
6705
      boolean that_present_message = true && that.isSetMessage();
6706
      if (this_present_message || that_present_message) {
6707
        if (!(this_present_message && that_present_message))
6708
          return false;
6709
        if (!this.message.equals(that.message))
6710
          return false;
6711
      }
6712
 
6713
      return true;
6714
    }
6715
 
6716
    @Override
6717
    public int hashCode() {
6718
      return 0;
6719
    }
6720
 
6721
    public int compareTo(addMessage_args other) {
6722
      if (!getClass().equals(other.getClass())) {
6723
        return getClass().getName().compareTo(other.getClass().getName());
6724
      }
6725
 
6726
      int lastComparison = 0;
6727
      addMessage_args typedOther = (addMessage_args)other;
6728
 
3430 rajveer 6729
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 6730
      if (lastComparison != 0) {
6731
        return lastComparison;
6732
      }
3430 rajveer 6733
      if (isSetMessage()) {
6734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
6735
        if (lastComparison != 0) {
6736
          return lastComparison;
6737
        }
352 ashish 6738
      }
6739
      return 0;
6740
    }
6741
 
3430 rajveer 6742
    public _Fields fieldForId(int fieldId) {
6743
      return _Fields.findByThriftId(fieldId);
6744
    }
6745
 
6746
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6747
      org.apache.thrift.protocol.TField field;
352 ashish 6748
      iprot.readStructBegin();
6749
      while (true)
6750
      {
6751
        field = iprot.readFieldBegin();
3430 rajveer 6752
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6753
          break;
6754
        }
3430 rajveer 6755
        switch (field.id) {
6756
          case 1: // MESSAGE
6757
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6758
              this.message = new Message();
6759
              this.message.read(iprot);
6760
            } else { 
6761
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6762
            }
6763
            break;
6764
          default:
6765
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6766
        }
3430 rajveer 6767
        iprot.readFieldEnd();
352 ashish 6768
      }
6769
      iprot.readStructEnd();
6770
      validate();
6771
    }
6772
 
3430 rajveer 6773
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6774
      validate();
6775
 
6776
      oprot.writeStructBegin(STRUCT_DESC);
6777
      if (this.message != null) {
6778
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
6779
        this.message.write(oprot);
6780
        oprot.writeFieldEnd();
6781
      }
6782
      oprot.writeFieldStop();
6783
      oprot.writeStructEnd();
6784
    }
6785
 
6786
    @Override
6787
    public String toString() {
6788
      StringBuilder sb = new StringBuilder("addMessage_args(");
6789
      boolean first = true;
6790
 
6791
      sb.append("message:");
6792
      if (this.message == null) {
6793
        sb.append("null");
6794
      } else {
6795
        sb.append(this.message);
6796
      }
6797
      first = false;
6798
      sb.append(")");
6799
      return sb.toString();
6800
    }
6801
 
3430 rajveer 6802
    public void validate() throws org.apache.thrift.TException {
352 ashish 6803
      // check for required fields
6804
    }
6805
 
3430 rajveer 6806
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6807
      try {
6808
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6809
      } catch (org.apache.thrift.TException te) {
6810
        throw new java.io.IOException(te);
6811
      }
6812
    }
6813
 
6814
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6815
      try {
6816
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6817
      } catch (org.apache.thrift.TException te) {
6818
        throw new java.io.IOException(te);
6819
      }
6820
    }
6821
 
352 ashish 6822
  }
6823
 
3430 rajveer 6824
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
6825
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 6826
 
3430 rajveer 6827
    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 6828
 
3430 rajveer 6829
    private HelperServiceException se; // required
352 ashish 6830
 
6831
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6832
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6833
      SE((short)1, "se");
6834
 
6835
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6836
 
6837
      static {
6838
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6839
          byName.put(field.getFieldName(), field);
6840
        }
6841
      }
6842
 
6843
      /**
6844
       * Find the _Fields constant that matches fieldId, or null if its not found.
6845
       */
6846
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6847
        switch(fieldId) {
6848
          case 1: // SE
6849
            return SE;
6850
          default:
6851
            return null;
6852
        }
352 ashish 6853
      }
6854
 
6855
      /**
6856
       * Find the _Fields constant that matches fieldId, throwing an exception
6857
       * if it is not found.
6858
       */
6859
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6860
        _Fields fields = findByThriftId(fieldId);
6861
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6862
        return fields;
6863
      }
6864
 
6865
      /**
6866
       * Find the _Fields constant that matches name, or null if its not found.
6867
       */
6868
      public static _Fields findByName(String name) {
6869
        return byName.get(name);
6870
      }
6871
 
6872
      private final short _thriftId;
6873
      private final String _fieldName;
6874
 
6875
      _Fields(short thriftId, String fieldName) {
6876
        _thriftId = thriftId;
6877
        _fieldName = fieldName;
6878
      }
6879
 
6880
      public short getThriftFieldId() {
6881
        return _thriftId;
6882
      }
6883
 
6884
      public String getFieldName() {
6885
        return _fieldName;
6886
      }
6887
    }
6888
 
6889
    // isset id assignments
6890
 
3430 rajveer 6891
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6892
    static {
3430 rajveer 6893
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6894
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6895
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6896
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6897
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 6898
    }
6899
 
6900
    public addMessage_result() {
6901
    }
6902
 
6903
    public addMessage_result(
6904
      HelperServiceException se)
6905
    {
6906
      this();
6907
      this.se = se;
6908
    }
6909
 
6910
    /**
6911
     * Performs a deep copy on <i>other</i>.
6912
     */
6913
    public addMessage_result(addMessage_result other) {
6914
      if (other.isSetSe()) {
6915
        this.se = new HelperServiceException(other.se);
6916
      }
6917
    }
6918
 
6919
    public addMessage_result deepCopy() {
6920
      return new addMessage_result(this);
6921
    }
6922
 
3430 rajveer 6923
    @Override
6924
    public void clear() {
6925
      this.se = null;
352 ashish 6926
    }
6927
 
6928
    public HelperServiceException getSe() {
6929
      return this.se;
6930
    }
6931
 
3430 rajveer 6932
    public void setSe(HelperServiceException se) {
352 ashish 6933
      this.se = se;
6934
    }
6935
 
6936
    public void unsetSe() {
6937
      this.se = null;
6938
    }
6939
 
3430 rajveer 6940
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6941
    public boolean isSetSe() {
6942
      return this.se != null;
6943
    }
6944
 
6945
    public void setSeIsSet(boolean value) {
6946
      if (!value) {
6947
        this.se = null;
6948
      }
6949
    }
6950
 
6951
    public void setFieldValue(_Fields field, Object value) {
6952
      switch (field) {
6953
      case SE:
6954
        if (value == null) {
6955
          unsetSe();
6956
        } else {
6957
          setSe((HelperServiceException)value);
6958
        }
6959
        break;
6960
 
6961
      }
6962
    }
6963
 
6964
    public Object getFieldValue(_Fields field) {
6965
      switch (field) {
6966
      case SE:
6967
        return getSe();
6968
 
6969
      }
6970
      throw new IllegalStateException();
6971
    }
6972
 
3430 rajveer 6973
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6974
    public boolean isSet(_Fields field) {
6975
      if (field == null) {
6976
        throw new IllegalArgumentException();
6977
      }
352 ashish 6978
 
6979
      switch (field) {
6980
      case SE:
6981
        return isSetSe();
6982
      }
6983
      throw new IllegalStateException();
6984
    }
6985
 
6986
    @Override
6987
    public boolean equals(Object that) {
6988
      if (that == null)
6989
        return false;
6990
      if (that instanceof addMessage_result)
6991
        return this.equals((addMessage_result)that);
6992
      return false;
6993
    }
6994
 
6995
    public boolean equals(addMessage_result that) {
6996
      if (that == null)
6997
        return false;
6998
 
6999
      boolean this_present_se = true && this.isSetSe();
7000
      boolean that_present_se = true && that.isSetSe();
7001
      if (this_present_se || that_present_se) {
7002
        if (!(this_present_se && that_present_se))
7003
          return false;
7004
        if (!this.se.equals(that.se))
7005
          return false;
7006
      }
7007
 
7008
      return true;
7009
    }
7010
 
7011
    @Override
7012
    public int hashCode() {
7013
      return 0;
7014
    }
7015
 
7016
    public int compareTo(addMessage_result other) {
7017
      if (!getClass().equals(other.getClass())) {
7018
        return getClass().getName().compareTo(other.getClass().getName());
7019
      }
7020
 
7021
      int lastComparison = 0;
7022
      addMessage_result typedOther = (addMessage_result)other;
7023
 
3430 rajveer 7024
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7025
      if (lastComparison != 0) {
7026
        return lastComparison;
7027
      }
3430 rajveer 7028
      if (isSetSe()) {
7029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7030
        if (lastComparison != 0) {
7031
          return lastComparison;
7032
        }
352 ashish 7033
      }
7034
      return 0;
7035
    }
7036
 
3430 rajveer 7037
    public _Fields fieldForId(int fieldId) {
7038
      return _Fields.findByThriftId(fieldId);
7039
    }
7040
 
7041
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7042
      org.apache.thrift.protocol.TField field;
352 ashish 7043
      iprot.readStructBegin();
7044
      while (true)
7045
      {
7046
        field = iprot.readFieldBegin();
3430 rajveer 7047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7048
          break;
7049
        }
3430 rajveer 7050
        switch (field.id) {
7051
          case 1: // SE
7052
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7053
              this.se = new HelperServiceException();
7054
              this.se.read(iprot);
7055
            } else { 
7056
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7057
            }
7058
            break;
7059
          default:
7060
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7061
        }
3430 rajveer 7062
        iprot.readFieldEnd();
352 ashish 7063
      }
7064
      iprot.readStructEnd();
7065
      validate();
7066
    }
7067
 
3430 rajveer 7068
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7069
      oprot.writeStructBegin(STRUCT_DESC);
7070
 
7071
      if (this.isSetSe()) {
7072
        oprot.writeFieldBegin(SE_FIELD_DESC);
7073
        this.se.write(oprot);
7074
        oprot.writeFieldEnd();
7075
      }
7076
      oprot.writeFieldStop();
7077
      oprot.writeStructEnd();
7078
    }
7079
 
7080
    @Override
7081
    public String toString() {
7082
      StringBuilder sb = new StringBuilder("addMessage_result(");
7083
      boolean first = true;
7084
 
7085
      sb.append("se:");
7086
      if (this.se == null) {
7087
        sb.append("null");
7088
      } else {
7089
        sb.append(this.se);
7090
      }
7091
      first = false;
7092
      sb.append(")");
7093
      return sb.toString();
7094
    }
7095
 
3430 rajveer 7096
    public void validate() throws org.apache.thrift.TException {
352 ashish 7097
      // check for required fields
7098
    }
7099
 
3430 rajveer 7100
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7101
      try {
7102
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7103
      } catch (org.apache.thrift.TException te) {
7104
        throw new java.io.IOException(te);
7105
      }
7106
    }
7107
 
7108
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7109
      try {
7110
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7111
      } catch (org.apache.thrift.TException te) {
7112
        throw new java.io.IOException(te);
7113
      }
7114
    }
7115
 
352 ashish 7116
  }
7117
 
3430 rajveer 7118
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
7119
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 7120
 
3430 rajveer 7121
    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);
7122
    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 7123
 
3430 rajveer 7124
    private long id; // required
7125
    private String message; // required
352 ashish 7126
 
7127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7129
      ID((short)1, "id"),
7130
      MESSAGE((short)2, "message");
7131
 
7132
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7133
 
7134
      static {
7135
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7136
          byName.put(field.getFieldName(), field);
7137
        }
7138
      }
7139
 
7140
      /**
7141
       * Find the _Fields constant that matches fieldId, or null if its not found.
7142
       */
7143
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7144
        switch(fieldId) {
7145
          case 1: // ID
7146
            return ID;
7147
          case 2: // MESSAGE
7148
            return MESSAGE;
7149
          default:
7150
            return null;
7151
        }
352 ashish 7152
      }
7153
 
7154
      /**
7155
       * Find the _Fields constant that matches fieldId, throwing an exception
7156
       * if it is not found.
7157
       */
7158
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7159
        _Fields fields = findByThriftId(fieldId);
7160
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7161
        return fields;
7162
      }
7163
 
7164
      /**
7165
       * Find the _Fields constant that matches name, or null if its not found.
7166
       */
7167
      public static _Fields findByName(String name) {
7168
        return byName.get(name);
7169
      }
7170
 
7171
      private final short _thriftId;
7172
      private final String _fieldName;
7173
 
7174
      _Fields(short thriftId, String fieldName) {
7175
        _thriftId = thriftId;
7176
        _fieldName = fieldName;
7177
      }
7178
 
7179
      public short getThriftFieldId() {
7180
        return _thriftId;
7181
      }
7182
 
7183
      public String getFieldName() {
7184
        return _fieldName;
7185
      }
7186
    }
7187
 
7188
    // isset id assignments
7189
    private static final int __ID_ISSET_ID = 0;
7190
    private BitSet __isset_bit_vector = new BitSet(1);
7191
 
3430 rajveer 7192
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7193
    static {
3430 rajveer 7194
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7195
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7196
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7197
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7198
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7199
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7200
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 7201
    }
7202
 
7203
    public updateMessage_args() {
7204
    }
7205
 
7206
    public updateMessage_args(
7207
      long id,
7208
      String message)
7209
    {
7210
      this();
7211
      this.id = id;
7212
      setIdIsSet(true);
7213
      this.message = message;
7214
    }
7215
 
7216
    /**
7217
     * Performs a deep copy on <i>other</i>.
7218
     */
7219
    public updateMessage_args(updateMessage_args other) {
7220
      __isset_bit_vector.clear();
7221
      __isset_bit_vector.or(other.__isset_bit_vector);
7222
      this.id = other.id;
7223
      if (other.isSetMessage()) {
7224
        this.message = other.message;
7225
      }
7226
    }
7227
 
7228
    public updateMessage_args deepCopy() {
7229
      return new updateMessage_args(this);
7230
    }
7231
 
3430 rajveer 7232
    @Override
7233
    public void clear() {
7234
      setIdIsSet(false);
7235
      this.id = 0;
7236
      this.message = null;
352 ashish 7237
    }
7238
 
7239
    public long getId() {
7240
      return this.id;
7241
    }
7242
 
3430 rajveer 7243
    public void setId(long id) {
352 ashish 7244
      this.id = id;
7245
      setIdIsSet(true);
7246
    }
7247
 
7248
    public void unsetId() {
7249
      __isset_bit_vector.clear(__ID_ISSET_ID);
7250
    }
7251
 
3430 rajveer 7252
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7253
    public boolean isSetId() {
7254
      return __isset_bit_vector.get(__ID_ISSET_ID);
7255
    }
7256
 
7257
    public void setIdIsSet(boolean value) {
7258
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7259
    }
7260
 
7261
    public String getMessage() {
7262
      return this.message;
7263
    }
7264
 
3430 rajveer 7265
    public void setMessage(String message) {
352 ashish 7266
      this.message = message;
7267
    }
7268
 
7269
    public void unsetMessage() {
7270
      this.message = null;
7271
    }
7272
 
3430 rajveer 7273
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7274
    public boolean isSetMessage() {
7275
      return this.message != null;
7276
    }
7277
 
7278
    public void setMessageIsSet(boolean value) {
7279
      if (!value) {
7280
        this.message = null;
7281
      }
7282
    }
7283
 
7284
    public void setFieldValue(_Fields field, Object value) {
7285
      switch (field) {
7286
      case ID:
7287
        if (value == null) {
7288
          unsetId();
7289
        } else {
7290
          setId((Long)value);
7291
        }
7292
        break;
7293
 
7294
      case MESSAGE:
7295
        if (value == null) {
7296
          unsetMessage();
7297
        } else {
7298
          setMessage((String)value);
7299
        }
7300
        break;
7301
 
7302
      }
7303
    }
7304
 
7305
    public Object getFieldValue(_Fields field) {
7306
      switch (field) {
7307
      case ID:
3430 rajveer 7308
        return Long.valueOf(getId());
352 ashish 7309
 
7310
      case MESSAGE:
7311
        return getMessage();
7312
 
7313
      }
7314
      throw new IllegalStateException();
7315
    }
7316
 
3430 rajveer 7317
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7318
    public boolean isSet(_Fields field) {
7319
      if (field == null) {
7320
        throw new IllegalArgumentException();
7321
      }
352 ashish 7322
 
7323
      switch (field) {
7324
      case ID:
7325
        return isSetId();
7326
      case MESSAGE:
7327
        return isSetMessage();
7328
      }
7329
      throw new IllegalStateException();
7330
    }
7331
 
7332
    @Override
7333
    public boolean equals(Object that) {
7334
      if (that == null)
7335
        return false;
7336
      if (that instanceof updateMessage_args)
7337
        return this.equals((updateMessage_args)that);
7338
      return false;
7339
    }
7340
 
7341
    public boolean equals(updateMessage_args that) {
7342
      if (that == null)
7343
        return false;
7344
 
7345
      boolean this_present_id = true;
7346
      boolean that_present_id = true;
7347
      if (this_present_id || that_present_id) {
7348
        if (!(this_present_id && that_present_id))
7349
          return false;
7350
        if (this.id != that.id)
7351
          return false;
7352
      }
7353
 
7354
      boolean this_present_message = true && this.isSetMessage();
7355
      boolean that_present_message = true && that.isSetMessage();
7356
      if (this_present_message || that_present_message) {
7357
        if (!(this_present_message && that_present_message))
7358
          return false;
7359
        if (!this.message.equals(that.message))
7360
          return false;
7361
      }
7362
 
7363
      return true;
7364
    }
7365
 
7366
    @Override
7367
    public int hashCode() {
7368
      return 0;
7369
    }
7370
 
7371
    public int compareTo(updateMessage_args other) {
7372
      if (!getClass().equals(other.getClass())) {
7373
        return getClass().getName().compareTo(other.getClass().getName());
7374
      }
7375
 
7376
      int lastComparison = 0;
7377
      updateMessage_args typedOther = (updateMessage_args)other;
7378
 
3430 rajveer 7379
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7380
      if (lastComparison != 0) {
7381
        return lastComparison;
7382
      }
3430 rajveer 7383
      if (isSetId()) {
7384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
7385
        if (lastComparison != 0) {
7386
          return lastComparison;
7387
        }
352 ashish 7388
      }
3430 rajveer 7389
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7390
      if (lastComparison != 0) {
7391
        return lastComparison;
7392
      }
3430 rajveer 7393
      if (isSetMessage()) {
7394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7395
        if (lastComparison != 0) {
7396
          return lastComparison;
7397
        }
352 ashish 7398
      }
7399
      return 0;
7400
    }
7401
 
3430 rajveer 7402
    public _Fields fieldForId(int fieldId) {
7403
      return _Fields.findByThriftId(fieldId);
7404
    }
7405
 
7406
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7407
      org.apache.thrift.protocol.TField field;
352 ashish 7408
      iprot.readStructBegin();
7409
      while (true)
7410
      {
7411
        field = iprot.readFieldBegin();
3430 rajveer 7412
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7413
          break;
7414
        }
3430 rajveer 7415
        switch (field.id) {
7416
          case 1: // ID
7417
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7418
              this.id = iprot.readI64();
7419
              setIdIsSet(true);
7420
            } else { 
7421
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7422
            }
7423
            break;
7424
          case 2: // MESSAGE
7425
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7426
              this.message = iprot.readString();
7427
            } else { 
7428
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7429
            }
7430
            break;
7431
          default:
7432
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7433
        }
3430 rajveer 7434
        iprot.readFieldEnd();
352 ashish 7435
      }
7436
      iprot.readStructEnd();
7437
      validate();
7438
    }
7439
 
3430 rajveer 7440
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7441
      validate();
7442
 
7443
      oprot.writeStructBegin(STRUCT_DESC);
7444
      oprot.writeFieldBegin(ID_FIELD_DESC);
7445
      oprot.writeI64(this.id);
7446
      oprot.writeFieldEnd();
7447
      if (this.message != null) {
7448
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7449
        oprot.writeString(this.message);
7450
        oprot.writeFieldEnd();
7451
      }
7452
      oprot.writeFieldStop();
7453
      oprot.writeStructEnd();
7454
    }
7455
 
7456
    @Override
7457
    public String toString() {
7458
      StringBuilder sb = new StringBuilder("updateMessage_args(");
7459
      boolean first = true;
7460
 
7461
      sb.append("id:");
7462
      sb.append(this.id);
7463
      first = false;
7464
      if (!first) sb.append(", ");
7465
      sb.append("message:");
7466
      if (this.message == null) {
7467
        sb.append("null");
7468
      } else {
7469
        sb.append(this.message);
7470
      }
7471
      first = false;
7472
      sb.append(")");
7473
      return sb.toString();
7474
    }
7475
 
3430 rajveer 7476
    public void validate() throws org.apache.thrift.TException {
352 ashish 7477
      // check for required fields
7478
    }
7479
 
3430 rajveer 7480
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7481
      try {
7482
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7483
      } catch (org.apache.thrift.TException te) {
7484
        throw new java.io.IOException(te);
7485
      }
7486
    }
7487
 
7488
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7489
      try {
7490
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
7491
        __isset_bit_vector = new BitSet(1);
7492
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7493
      } catch (org.apache.thrift.TException te) {
7494
        throw new java.io.IOException(te);
7495
      }
7496
    }
7497
 
352 ashish 7498
  }
7499
 
3430 rajveer 7500
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
7501
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 7502
 
3430 rajveer 7503
    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 7504
 
3430 rajveer 7505
    private HelperServiceException se; // required
352 ashish 7506
 
7507
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7508
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7509
      SE((short)1, "se");
7510
 
7511
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7512
 
7513
      static {
7514
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7515
          byName.put(field.getFieldName(), field);
7516
        }
7517
      }
7518
 
7519
      /**
7520
       * Find the _Fields constant that matches fieldId, or null if its not found.
7521
       */
7522
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7523
        switch(fieldId) {
7524
          case 1: // SE
7525
            return SE;
7526
          default:
7527
            return null;
7528
        }
352 ashish 7529
      }
7530
 
7531
      /**
7532
       * Find the _Fields constant that matches fieldId, throwing an exception
7533
       * if it is not found.
7534
       */
7535
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7536
        _Fields fields = findByThriftId(fieldId);
7537
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7538
        return fields;
7539
      }
7540
 
7541
      /**
7542
       * Find the _Fields constant that matches name, or null if its not found.
7543
       */
7544
      public static _Fields findByName(String name) {
7545
        return byName.get(name);
7546
      }
7547
 
7548
      private final short _thriftId;
7549
      private final String _fieldName;
7550
 
7551
      _Fields(short thriftId, String fieldName) {
7552
        _thriftId = thriftId;
7553
        _fieldName = fieldName;
7554
      }
7555
 
7556
      public short getThriftFieldId() {
7557
        return _thriftId;
7558
      }
7559
 
7560
      public String getFieldName() {
7561
        return _fieldName;
7562
      }
7563
    }
7564
 
7565
    // isset id assignments
7566
 
3430 rajveer 7567
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7568
    static {
3430 rajveer 7569
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7570
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7571
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7572
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7573
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 7574
    }
7575
 
7576
    public updateMessage_result() {
7577
    }
7578
 
7579
    public updateMessage_result(
7580
      HelperServiceException se)
7581
    {
7582
      this();
7583
      this.se = se;
7584
    }
7585
 
7586
    /**
7587
     * Performs a deep copy on <i>other</i>.
7588
     */
7589
    public updateMessage_result(updateMessage_result other) {
7590
      if (other.isSetSe()) {
7591
        this.se = new HelperServiceException(other.se);
7592
      }
7593
    }
7594
 
7595
    public updateMessage_result deepCopy() {
7596
      return new updateMessage_result(this);
7597
    }
7598
 
3430 rajveer 7599
    @Override
7600
    public void clear() {
7601
      this.se = null;
352 ashish 7602
    }
7603
 
7604
    public HelperServiceException getSe() {
7605
      return this.se;
7606
    }
7607
 
3430 rajveer 7608
    public void setSe(HelperServiceException se) {
352 ashish 7609
      this.se = se;
7610
    }
7611
 
7612
    public void unsetSe() {
7613
      this.se = null;
7614
    }
7615
 
3430 rajveer 7616
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7617
    public boolean isSetSe() {
7618
      return this.se != null;
7619
    }
7620
 
7621
    public void setSeIsSet(boolean value) {
7622
      if (!value) {
7623
        this.se = null;
7624
      }
7625
    }
7626
 
7627
    public void setFieldValue(_Fields field, Object value) {
7628
      switch (field) {
7629
      case SE:
7630
        if (value == null) {
7631
          unsetSe();
7632
        } else {
7633
          setSe((HelperServiceException)value);
7634
        }
7635
        break;
7636
 
7637
      }
7638
    }
7639
 
7640
    public Object getFieldValue(_Fields field) {
7641
      switch (field) {
7642
      case SE:
7643
        return getSe();
7644
 
7645
      }
7646
      throw new IllegalStateException();
7647
    }
7648
 
3430 rajveer 7649
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7650
    public boolean isSet(_Fields field) {
7651
      if (field == null) {
7652
        throw new IllegalArgumentException();
7653
      }
352 ashish 7654
 
7655
      switch (field) {
7656
      case SE:
7657
        return isSetSe();
7658
      }
7659
      throw new IllegalStateException();
7660
    }
7661
 
7662
    @Override
7663
    public boolean equals(Object that) {
7664
      if (that == null)
7665
        return false;
7666
      if (that instanceof updateMessage_result)
7667
        return this.equals((updateMessage_result)that);
7668
      return false;
7669
    }
7670
 
7671
    public boolean equals(updateMessage_result that) {
7672
      if (that == null)
7673
        return false;
7674
 
7675
      boolean this_present_se = true && this.isSetSe();
7676
      boolean that_present_se = true && that.isSetSe();
7677
      if (this_present_se || that_present_se) {
7678
        if (!(this_present_se && that_present_se))
7679
          return false;
7680
        if (!this.se.equals(that.se))
7681
          return false;
7682
      }
7683
 
7684
      return true;
7685
    }
7686
 
7687
    @Override
7688
    public int hashCode() {
7689
      return 0;
7690
    }
7691
 
7692
    public int compareTo(updateMessage_result other) {
7693
      if (!getClass().equals(other.getClass())) {
7694
        return getClass().getName().compareTo(other.getClass().getName());
7695
      }
7696
 
7697
      int lastComparison = 0;
7698
      updateMessage_result typedOther = (updateMessage_result)other;
7699
 
3430 rajveer 7700
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7701
      if (lastComparison != 0) {
7702
        return lastComparison;
7703
      }
3430 rajveer 7704
      if (isSetSe()) {
7705
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7706
        if (lastComparison != 0) {
7707
          return lastComparison;
7708
        }
352 ashish 7709
      }
7710
      return 0;
7711
    }
7712
 
3430 rajveer 7713
    public _Fields fieldForId(int fieldId) {
7714
      return _Fields.findByThriftId(fieldId);
7715
    }
7716
 
7717
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7718
      org.apache.thrift.protocol.TField field;
352 ashish 7719
      iprot.readStructBegin();
7720
      while (true)
7721
      {
7722
        field = iprot.readFieldBegin();
3430 rajveer 7723
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7724
          break;
7725
        }
3430 rajveer 7726
        switch (field.id) {
7727
          case 1: // SE
7728
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7729
              this.se = new HelperServiceException();
7730
              this.se.read(iprot);
7731
            } else { 
7732
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7733
            }
7734
            break;
7735
          default:
7736
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7737
        }
3430 rajveer 7738
        iprot.readFieldEnd();
352 ashish 7739
      }
7740
      iprot.readStructEnd();
7741
      validate();
7742
    }
7743
 
3430 rajveer 7744
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7745
      oprot.writeStructBegin(STRUCT_DESC);
7746
 
7747
      if (this.isSetSe()) {
7748
        oprot.writeFieldBegin(SE_FIELD_DESC);
7749
        this.se.write(oprot);
7750
        oprot.writeFieldEnd();
7751
      }
7752
      oprot.writeFieldStop();
7753
      oprot.writeStructEnd();
7754
    }
7755
 
7756
    @Override
7757
    public String toString() {
7758
      StringBuilder sb = new StringBuilder("updateMessage_result(");
7759
      boolean first = true;
7760
 
7761
      sb.append("se:");
7762
      if (this.se == null) {
7763
        sb.append("null");
7764
      } else {
7765
        sb.append(this.se);
7766
      }
7767
      first = false;
7768
      sb.append(")");
7769
      return sb.toString();
7770
    }
7771
 
3430 rajveer 7772
    public void validate() throws org.apache.thrift.TException {
352 ashish 7773
      // check for required fields
7774
    }
7775
 
3430 rajveer 7776
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7777
      try {
7778
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7779
      } catch (org.apache.thrift.TException te) {
7780
        throw new java.io.IOException(te);
7781
      }
7782
    }
7783
 
7784
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7785
      try {
7786
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7787
      } catch (org.apache.thrift.TException te) {
7788
        throw new java.io.IOException(te);
7789
      }
7790
    }
7791
 
352 ashish 7792
  }
7793
 
3430 rajveer 7794
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
7795
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 7796
 
3430 rajveer 7797
    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 7798
 
3430 rajveer 7799
    private long id; // required
352 ashish 7800
 
7801
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7802
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7803
      ID((short)1, "id");
7804
 
7805
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7806
 
7807
      static {
7808
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7809
          byName.put(field.getFieldName(), field);
7810
        }
7811
      }
7812
 
7813
      /**
7814
       * Find the _Fields constant that matches fieldId, or null if its not found.
7815
       */
7816
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7817
        switch(fieldId) {
7818
          case 1: // ID
7819
            return ID;
7820
          default:
7821
            return null;
7822
        }
352 ashish 7823
      }
7824
 
7825
      /**
7826
       * Find the _Fields constant that matches fieldId, throwing an exception
7827
       * if it is not found.
7828
       */
7829
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7830
        _Fields fields = findByThriftId(fieldId);
7831
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7832
        return fields;
7833
      }
7834
 
7835
      /**
7836
       * Find the _Fields constant that matches name, or null if its not found.
7837
       */
7838
      public static _Fields findByName(String name) {
7839
        return byName.get(name);
7840
      }
7841
 
7842
      private final short _thriftId;
7843
      private final String _fieldName;
7844
 
7845
      _Fields(short thriftId, String fieldName) {
7846
        _thriftId = thriftId;
7847
        _fieldName = fieldName;
7848
      }
7849
 
7850
      public short getThriftFieldId() {
7851
        return _thriftId;
7852
      }
7853
 
7854
      public String getFieldName() {
7855
        return _fieldName;
7856
      }
7857
    }
7858
 
7859
    // isset id assignments
7860
    private static final int __ID_ISSET_ID = 0;
7861
    private BitSet __isset_bit_vector = new BitSet(1);
7862
 
3430 rajveer 7863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7864
    static {
3430 rajveer 7865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7866
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
7868
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7869
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 7870
    }
7871
 
7872
    public getMessage_args() {
7873
    }
7874
 
7875
    public getMessage_args(
7876
      long id)
7877
    {
7878
      this();
7879
      this.id = id;
7880
      setIdIsSet(true);
7881
    }
7882
 
7883
    /**
7884
     * Performs a deep copy on <i>other</i>.
7885
     */
7886
    public getMessage_args(getMessage_args other) {
7887
      __isset_bit_vector.clear();
7888
      __isset_bit_vector.or(other.__isset_bit_vector);
7889
      this.id = other.id;
7890
    }
7891
 
7892
    public getMessage_args deepCopy() {
7893
      return new getMessage_args(this);
7894
    }
7895
 
3430 rajveer 7896
    @Override
7897
    public void clear() {
7898
      setIdIsSet(false);
7899
      this.id = 0;
352 ashish 7900
    }
7901
 
7902
    public long getId() {
7903
      return this.id;
7904
    }
7905
 
3430 rajveer 7906
    public void setId(long id) {
352 ashish 7907
      this.id = id;
7908
      setIdIsSet(true);
7909
    }
7910
 
7911
    public void unsetId() {
7912
      __isset_bit_vector.clear(__ID_ISSET_ID);
7913
    }
7914
 
3430 rajveer 7915
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 7916
    public boolean isSetId() {
7917
      return __isset_bit_vector.get(__ID_ISSET_ID);
7918
    }
7919
 
7920
    public void setIdIsSet(boolean value) {
7921
      __isset_bit_vector.set(__ID_ISSET_ID, value);
7922
    }
7923
 
7924
    public void setFieldValue(_Fields field, Object value) {
7925
      switch (field) {
7926
      case ID:
7927
        if (value == null) {
7928
          unsetId();
7929
        } else {
7930
          setId((Long)value);
7931
        }
7932
        break;
7933
 
7934
      }
7935
    }
7936
 
7937
    public Object getFieldValue(_Fields field) {
7938
      switch (field) {
7939
      case ID:
3430 rajveer 7940
        return Long.valueOf(getId());
352 ashish 7941
 
7942
      }
7943
      throw new IllegalStateException();
7944
    }
7945
 
3430 rajveer 7946
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7947
    public boolean isSet(_Fields field) {
7948
      if (field == null) {
7949
        throw new IllegalArgumentException();
7950
      }
352 ashish 7951
 
7952
      switch (field) {
7953
      case ID:
7954
        return isSetId();
7955
      }
7956
      throw new IllegalStateException();
7957
    }
7958
 
7959
    @Override
7960
    public boolean equals(Object that) {
7961
      if (that == null)
7962
        return false;
7963
      if (that instanceof getMessage_args)
7964
        return this.equals((getMessage_args)that);
7965
      return false;
7966
    }
7967
 
7968
    public boolean equals(getMessage_args that) {
7969
      if (that == null)
7970
        return false;
7971
 
7972
      boolean this_present_id = true;
7973
      boolean that_present_id = true;
7974
      if (this_present_id || that_present_id) {
7975
        if (!(this_present_id && that_present_id))
7976
          return false;
7977
        if (this.id != that.id)
7978
          return false;
7979
      }
7980
 
7981
      return true;
7982
    }
7983
 
7984
    @Override
7985
    public int hashCode() {
7986
      return 0;
7987
    }
7988
 
7989
    public int compareTo(getMessage_args other) {
7990
      if (!getClass().equals(other.getClass())) {
7991
        return getClass().getName().compareTo(other.getClass().getName());
7992
      }
7993
 
7994
      int lastComparison = 0;
7995
      getMessage_args typedOther = (getMessage_args)other;
7996
 
3430 rajveer 7997
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 7998
      if (lastComparison != 0) {
7999
        return lastComparison;
8000
      }
3430 rajveer 8001
      if (isSetId()) {
8002
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8003
        if (lastComparison != 0) {
8004
          return lastComparison;
8005
        }
352 ashish 8006
      }
8007
      return 0;
8008
    }
8009
 
3430 rajveer 8010
    public _Fields fieldForId(int fieldId) {
8011
      return _Fields.findByThriftId(fieldId);
8012
    }
8013
 
8014
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8015
      org.apache.thrift.protocol.TField field;
352 ashish 8016
      iprot.readStructBegin();
8017
      while (true)
8018
      {
8019
        field = iprot.readFieldBegin();
3430 rajveer 8020
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8021
          break;
8022
        }
3430 rajveer 8023
        switch (field.id) {
8024
          case 1: // ID
8025
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8026
              this.id = iprot.readI64();
8027
              setIdIsSet(true);
8028
            } else { 
8029
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8030
            }
8031
            break;
8032
          default:
8033
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8034
        }
3430 rajveer 8035
        iprot.readFieldEnd();
352 ashish 8036
      }
8037
      iprot.readStructEnd();
8038
      validate();
8039
    }
8040
 
3430 rajveer 8041
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8042
      validate();
8043
 
8044
      oprot.writeStructBegin(STRUCT_DESC);
8045
      oprot.writeFieldBegin(ID_FIELD_DESC);
8046
      oprot.writeI64(this.id);
8047
      oprot.writeFieldEnd();
8048
      oprot.writeFieldStop();
8049
      oprot.writeStructEnd();
8050
    }
8051
 
8052
    @Override
8053
    public String toString() {
8054
      StringBuilder sb = new StringBuilder("getMessage_args(");
8055
      boolean first = true;
8056
 
8057
      sb.append("id:");
8058
      sb.append(this.id);
8059
      first = false;
8060
      sb.append(")");
8061
      return sb.toString();
8062
    }
8063
 
3430 rajveer 8064
    public void validate() throws org.apache.thrift.TException {
352 ashish 8065
      // check for required fields
8066
    }
8067
 
3430 rajveer 8068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8069
      try {
8070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8071
      } catch (org.apache.thrift.TException te) {
8072
        throw new java.io.IOException(te);
8073
      }
8074
    }
8075
 
8076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8077
      try {
8078
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8079
        __isset_bit_vector = new BitSet(1);
8080
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8081
      } catch (org.apache.thrift.TException te) {
8082
        throw new java.io.IOException(te);
8083
      }
8084
    }
8085
 
352 ashish 8086
  }
8087
 
3430 rajveer 8088
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
8089
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 8090
 
3430 rajveer 8091
    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);
8092
    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 8093
 
3430 rajveer 8094
    private Message success; // required
8095
    private HelperServiceException se; // required
352 ashish 8096
 
8097
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8098
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8099
      SUCCESS((short)0, "success"),
8100
      SE((short)1, "se");
8101
 
8102
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8103
 
8104
      static {
8105
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8106
          byName.put(field.getFieldName(), field);
8107
        }
8108
      }
8109
 
8110
      /**
8111
       * Find the _Fields constant that matches fieldId, or null if its not found.
8112
       */
8113
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8114
        switch(fieldId) {
8115
          case 0: // SUCCESS
8116
            return SUCCESS;
8117
          case 1: // SE
8118
            return SE;
8119
          default:
8120
            return null;
8121
        }
352 ashish 8122
      }
8123
 
8124
      /**
8125
       * Find the _Fields constant that matches fieldId, throwing an exception
8126
       * if it is not found.
8127
       */
8128
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8129
        _Fields fields = findByThriftId(fieldId);
8130
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8131
        return fields;
8132
      }
8133
 
8134
      /**
8135
       * Find the _Fields constant that matches name, or null if its not found.
8136
       */
8137
      public static _Fields findByName(String name) {
8138
        return byName.get(name);
8139
      }
8140
 
8141
      private final short _thriftId;
8142
      private final String _fieldName;
8143
 
8144
      _Fields(short thriftId, String fieldName) {
8145
        _thriftId = thriftId;
8146
        _fieldName = fieldName;
8147
      }
8148
 
8149
      public short getThriftFieldId() {
8150
        return _thriftId;
8151
      }
8152
 
8153
      public String getFieldName() {
8154
        return _fieldName;
8155
      }
8156
    }
8157
 
8158
    // isset id assignments
8159
 
3430 rajveer 8160
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8161
    static {
3430 rajveer 8162
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8163
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8164
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8165
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8166
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8167
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8168
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 8169
    }
8170
 
8171
    public getMessage_result() {
8172
    }
8173
 
8174
    public getMessage_result(
8175
      Message success,
8176
      HelperServiceException se)
8177
    {
8178
      this();
8179
      this.success = success;
8180
      this.se = se;
8181
    }
8182
 
8183
    /**
8184
     * Performs a deep copy on <i>other</i>.
8185
     */
8186
    public getMessage_result(getMessage_result other) {
8187
      if (other.isSetSuccess()) {
8188
        this.success = new Message(other.success);
8189
      }
8190
      if (other.isSetSe()) {
8191
        this.se = new HelperServiceException(other.se);
8192
      }
8193
    }
8194
 
8195
    public getMessage_result deepCopy() {
8196
      return new getMessage_result(this);
8197
    }
8198
 
3430 rajveer 8199
    @Override
8200
    public void clear() {
8201
      this.success = null;
8202
      this.se = null;
352 ashish 8203
    }
8204
 
8205
    public Message getSuccess() {
8206
      return this.success;
8207
    }
8208
 
3430 rajveer 8209
    public void setSuccess(Message success) {
352 ashish 8210
      this.success = success;
8211
    }
8212
 
8213
    public void unsetSuccess() {
8214
      this.success = null;
8215
    }
8216
 
3430 rajveer 8217
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 8218
    public boolean isSetSuccess() {
8219
      return this.success != null;
8220
    }
8221
 
8222
    public void setSuccessIsSet(boolean value) {
8223
      if (!value) {
8224
        this.success = null;
8225
      }
8226
    }
8227
 
8228
    public HelperServiceException getSe() {
8229
      return this.se;
8230
    }
8231
 
3430 rajveer 8232
    public void setSe(HelperServiceException se) {
352 ashish 8233
      this.se = se;
8234
    }
8235
 
8236
    public void unsetSe() {
8237
      this.se = null;
8238
    }
8239
 
3430 rajveer 8240
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8241
    public boolean isSetSe() {
8242
      return this.se != null;
8243
    }
8244
 
8245
    public void setSeIsSet(boolean value) {
8246
      if (!value) {
8247
        this.se = null;
8248
      }
8249
    }
8250
 
8251
    public void setFieldValue(_Fields field, Object value) {
8252
      switch (field) {
8253
      case SUCCESS:
8254
        if (value == null) {
8255
          unsetSuccess();
8256
        } else {
8257
          setSuccess((Message)value);
8258
        }
8259
        break;
8260
 
8261
      case SE:
8262
        if (value == null) {
8263
          unsetSe();
8264
        } else {
8265
          setSe((HelperServiceException)value);
8266
        }
8267
        break;
8268
 
8269
      }
8270
    }
8271
 
8272
    public Object getFieldValue(_Fields field) {
8273
      switch (field) {
8274
      case SUCCESS:
8275
        return getSuccess();
8276
 
8277
      case SE:
8278
        return getSe();
8279
 
8280
      }
8281
      throw new IllegalStateException();
8282
    }
8283
 
3430 rajveer 8284
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8285
    public boolean isSet(_Fields field) {
8286
      if (field == null) {
8287
        throw new IllegalArgumentException();
8288
      }
352 ashish 8289
 
8290
      switch (field) {
8291
      case SUCCESS:
8292
        return isSetSuccess();
8293
      case SE:
8294
        return isSetSe();
8295
      }
8296
      throw new IllegalStateException();
8297
    }
8298
 
8299
    @Override
8300
    public boolean equals(Object that) {
8301
      if (that == null)
8302
        return false;
8303
      if (that instanceof getMessage_result)
8304
        return this.equals((getMessage_result)that);
8305
      return false;
8306
    }
8307
 
8308
    public boolean equals(getMessage_result that) {
8309
      if (that == null)
8310
        return false;
8311
 
8312
      boolean this_present_success = true && this.isSetSuccess();
8313
      boolean that_present_success = true && that.isSetSuccess();
8314
      if (this_present_success || that_present_success) {
8315
        if (!(this_present_success && that_present_success))
8316
          return false;
8317
        if (!this.success.equals(that.success))
8318
          return false;
8319
      }
8320
 
8321
      boolean this_present_se = true && this.isSetSe();
8322
      boolean that_present_se = true && that.isSetSe();
8323
      if (this_present_se || that_present_se) {
8324
        if (!(this_present_se && that_present_se))
8325
          return false;
8326
        if (!this.se.equals(that.se))
8327
          return false;
8328
      }
8329
 
8330
      return true;
8331
    }
8332
 
8333
    @Override
8334
    public int hashCode() {
8335
      return 0;
8336
    }
8337
 
8338
    public int compareTo(getMessage_result other) {
8339
      if (!getClass().equals(other.getClass())) {
8340
        return getClass().getName().compareTo(other.getClass().getName());
8341
      }
8342
 
8343
      int lastComparison = 0;
8344
      getMessage_result typedOther = (getMessage_result)other;
8345
 
3430 rajveer 8346
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 8347
      if (lastComparison != 0) {
8348
        return lastComparison;
8349
      }
3430 rajveer 8350
      if (isSetSuccess()) {
8351
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8352
        if (lastComparison != 0) {
8353
          return lastComparison;
8354
        }
352 ashish 8355
      }
3430 rajveer 8356
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8357
      if (lastComparison != 0) {
8358
        return lastComparison;
8359
      }
3430 rajveer 8360
      if (isSetSe()) {
8361
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8362
        if (lastComparison != 0) {
8363
          return lastComparison;
8364
        }
352 ashish 8365
      }
8366
      return 0;
8367
    }
8368
 
3430 rajveer 8369
    public _Fields fieldForId(int fieldId) {
8370
      return _Fields.findByThriftId(fieldId);
8371
    }
8372
 
8373
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8374
      org.apache.thrift.protocol.TField field;
352 ashish 8375
      iprot.readStructBegin();
8376
      while (true)
8377
      {
8378
        field = iprot.readFieldBegin();
3430 rajveer 8379
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8380
          break;
8381
        }
3430 rajveer 8382
        switch (field.id) {
8383
          case 0: // SUCCESS
8384
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8385
              this.success = new Message();
8386
              this.success.read(iprot);
8387
            } else { 
8388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8389
            }
8390
            break;
8391
          case 1: // SE
8392
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8393
              this.se = new HelperServiceException();
8394
              this.se.read(iprot);
8395
            } else { 
8396
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8397
            }
8398
            break;
8399
          default:
8400
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8401
        }
3430 rajveer 8402
        iprot.readFieldEnd();
352 ashish 8403
      }
8404
      iprot.readStructEnd();
8405
      validate();
8406
    }
8407
 
3430 rajveer 8408
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8409
      oprot.writeStructBegin(STRUCT_DESC);
8410
 
8411
      if (this.isSetSuccess()) {
8412
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8413
        this.success.write(oprot);
8414
        oprot.writeFieldEnd();
8415
      } else if (this.isSetSe()) {
8416
        oprot.writeFieldBegin(SE_FIELD_DESC);
8417
        this.se.write(oprot);
8418
        oprot.writeFieldEnd();
8419
      }
8420
      oprot.writeFieldStop();
8421
      oprot.writeStructEnd();
8422
    }
8423
 
8424
    @Override
8425
    public String toString() {
8426
      StringBuilder sb = new StringBuilder("getMessage_result(");
8427
      boolean first = true;
8428
 
8429
      sb.append("success:");
8430
      if (this.success == null) {
8431
        sb.append("null");
8432
      } else {
8433
        sb.append(this.success);
8434
      }
8435
      first = false;
8436
      if (!first) sb.append(", ");
8437
      sb.append("se:");
8438
      if (this.se == null) {
8439
        sb.append("null");
8440
      } else {
8441
        sb.append(this.se);
8442
      }
8443
      first = false;
8444
      sb.append(")");
8445
      return sb.toString();
8446
    }
8447
 
3430 rajveer 8448
    public void validate() throws org.apache.thrift.TException {
352 ashish 8449
      // check for required fields
8450
    }
8451
 
3430 rajveer 8452
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8453
      try {
8454
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8455
      } catch (org.apache.thrift.TException te) {
8456
        throw new java.io.IOException(te);
8457
      }
8458
    }
8459
 
8460
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8461
      try {
8462
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8463
      } catch (org.apache.thrift.TException te) {
8464
        throw new java.io.IOException(te);
8465
      }
8466
    }
8467
 
352 ashish 8468
  }
8469
 
3430 rajveer 8470
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
8471
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 8472
 
3430 rajveer 8473
    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);
8474
    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 8475
 
3430 rajveer 8476
    private long id; // required
8477
    private Map<String,String> params; // required
352 ashish 8478
 
8479
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8480
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8481
      ID((short)1, "id"),
8482
      PARAMS((short)2, "params");
8483
 
8484
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8485
 
8486
      static {
8487
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8488
          byName.put(field.getFieldName(), field);
8489
        }
8490
      }
8491
 
8492
      /**
8493
       * Find the _Fields constant that matches fieldId, or null if its not found.
8494
       */
8495
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8496
        switch(fieldId) {
8497
          case 1: // ID
8498
            return ID;
8499
          case 2: // PARAMS
8500
            return PARAMS;
8501
          default:
8502
            return null;
8503
        }
352 ashish 8504
      }
8505
 
8506
      /**
8507
       * Find the _Fields constant that matches fieldId, throwing an exception
8508
       * if it is not found.
8509
       */
8510
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8511
        _Fields fields = findByThriftId(fieldId);
8512
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8513
        return fields;
8514
      }
8515
 
8516
      /**
8517
       * Find the _Fields constant that matches name, or null if its not found.
8518
       */
8519
      public static _Fields findByName(String name) {
8520
        return byName.get(name);
8521
      }
8522
 
8523
      private final short _thriftId;
8524
      private final String _fieldName;
8525
 
8526
      _Fields(short thriftId, String fieldName) {
8527
        _thriftId = thriftId;
8528
        _fieldName = fieldName;
8529
      }
8530
 
8531
      public short getThriftFieldId() {
8532
        return _thriftId;
8533
      }
8534
 
8535
      public String getFieldName() {
8536
        return _fieldName;
8537
      }
8538
    }
8539
 
8540
    // isset id assignments
8541
    private static final int __ID_ISSET_ID = 0;
8542
    private BitSet __isset_bit_vector = new BitSet(1);
8543
 
3430 rajveer 8544
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8545
    static {
3430 rajveer 8546
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8547
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8548
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8549
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8550
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
8551
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
8552
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8553
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8554
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 8555
    }
8556
 
8557
    public getSubstitutedMessage_args() {
8558
    }
8559
 
8560
    public getSubstitutedMessage_args(
8561
      long id,
8562
      Map<String,String> params)
8563
    {
8564
      this();
8565
      this.id = id;
8566
      setIdIsSet(true);
8567
      this.params = params;
8568
    }
8569
 
8570
    /**
8571
     * Performs a deep copy on <i>other</i>.
8572
     */
8573
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
8574
      __isset_bit_vector.clear();
8575
      __isset_bit_vector.or(other.__isset_bit_vector);
8576
      this.id = other.id;
8577
      if (other.isSetParams()) {
8578
        Map<String,String> __this__params = new HashMap<String,String>();
8579
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
8580
 
8581
          String other_element_key = other_element.getKey();
8582
          String other_element_value = other_element.getValue();
8583
 
8584
          String __this__params_copy_key = other_element_key;
8585
 
8586
          String __this__params_copy_value = other_element_value;
8587
 
8588
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
8589
        }
8590
        this.params = __this__params;
8591
      }
8592
    }
8593
 
8594
    public getSubstitutedMessage_args deepCopy() {
8595
      return new getSubstitutedMessage_args(this);
8596
    }
8597
 
3430 rajveer 8598
    @Override
8599
    public void clear() {
8600
      setIdIsSet(false);
8601
      this.id = 0;
8602
      this.params = null;
352 ashish 8603
    }
8604
 
8605
    public long getId() {
8606
      return this.id;
8607
    }
8608
 
3430 rajveer 8609
    public void setId(long id) {
352 ashish 8610
      this.id = id;
8611
      setIdIsSet(true);
8612
    }
8613
 
8614
    public void unsetId() {
8615
      __isset_bit_vector.clear(__ID_ISSET_ID);
8616
    }
8617
 
3430 rajveer 8618
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8619
    public boolean isSetId() {
8620
      return __isset_bit_vector.get(__ID_ISSET_ID);
8621
    }
8622
 
8623
    public void setIdIsSet(boolean value) {
8624
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8625
    }
8626
 
8627
    public int getParamsSize() {
8628
      return (this.params == null) ? 0 : this.params.size();
8629
    }
8630
 
8631
    public void putToParams(String key, String val) {
8632
      if (this.params == null) {
8633
        this.params = new HashMap<String,String>();
8634
      }
8635
      this.params.put(key, val);
8636
    }
8637
 
8638
    public Map<String,String> getParams() {
8639
      return this.params;
8640
    }
8641
 
3430 rajveer 8642
    public void setParams(Map<String,String> params) {
352 ashish 8643
      this.params = params;
8644
    }
8645
 
8646
    public void unsetParams() {
8647
      this.params = null;
8648
    }
8649
 
3430 rajveer 8650
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 8651
    public boolean isSetParams() {
8652
      return this.params != null;
8653
    }
8654
 
8655
    public void setParamsIsSet(boolean value) {
8656
      if (!value) {
8657
        this.params = null;
8658
      }
8659
    }
8660
 
8661
    public void setFieldValue(_Fields field, Object value) {
8662
      switch (field) {
8663
      case ID:
8664
        if (value == null) {
8665
          unsetId();
8666
        } else {
8667
          setId((Long)value);
8668
        }
8669
        break;
8670
 
8671
      case PARAMS:
8672
        if (value == null) {
8673
          unsetParams();
8674
        } else {
8675
          setParams((Map<String,String>)value);
8676
        }
8677
        break;
8678
 
8679
      }
8680
    }
8681
 
8682
    public Object getFieldValue(_Fields field) {
8683
      switch (field) {
8684
      case ID:
3430 rajveer 8685
        return Long.valueOf(getId());
352 ashish 8686
 
8687
      case PARAMS:
8688
        return getParams();
8689
 
8690
      }
8691
      throw new IllegalStateException();
8692
    }
8693
 
3430 rajveer 8694
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8695
    public boolean isSet(_Fields field) {
8696
      if (field == null) {
8697
        throw new IllegalArgumentException();
8698
      }
352 ashish 8699
 
8700
      switch (field) {
8701
      case ID:
8702
        return isSetId();
8703
      case PARAMS:
8704
        return isSetParams();
8705
      }
8706
      throw new IllegalStateException();
8707
    }
8708
 
8709
    @Override
8710
    public boolean equals(Object that) {
8711
      if (that == null)
8712
        return false;
8713
      if (that instanceof getSubstitutedMessage_args)
8714
        return this.equals((getSubstitutedMessage_args)that);
8715
      return false;
8716
    }
8717
 
8718
    public boolean equals(getSubstitutedMessage_args that) {
8719
      if (that == null)
8720
        return false;
8721
 
8722
      boolean this_present_id = true;
8723
      boolean that_present_id = true;
8724
      if (this_present_id || that_present_id) {
8725
        if (!(this_present_id && that_present_id))
8726
          return false;
8727
        if (this.id != that.id)
8728
          return false;
8729
      }
8730
 
8731
      boolean this_present_params = true && this.isSetParams();
8732
      boolean that_present_params = true && that.isSetParams();
8733
      if (this_present_params || that_present_params) {
8734
        if (!(this_present_params && that_present_params))
8735
          return false;
8736
        if (!this.params.equals(that.params))
8737
          return false;
8738
      }
8739
 
8740
      return true;
8741
    }
8742
 
8743
    @Override
8744
    public int hashCode() {
8745
      return 0;
8746
    }
8747
 
3430 rajveer 8748
    public int compareTo(getSubstitutedMessage_args other) {
8749
      if (!getClass().equals(other.getClass())) {
8750
        return getClass().getName().compareTo(other.getClass().getName());
8751
      }
8752
 
8753
      int lastComparison = 0;
8754
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
8755
 
8756
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
8757
      if (lastComparison != 0) {
8758
        return lastComparison;
8759
      }
8760
      if (isSetId()) {
8761
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8762
        if (lastComparison != 0) {
8763
          return lastComparison;
8764
        }
8765
      }
8766
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
8767
      if (lastComparison != 0) {
8768
        return lastComparison;
8769
      }
8770
      if (isSetParams()) {
8771
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
8772
        if (lastComparison != 0) {
8773
          return lastComparison;
8774
        }
8775
      }
8776
      return 0;
8777
    }
8778
 
8779
    public _Fields fieldForId(int fieldId) {
8780
      return _Fields.findByThriftId(fieldId);
8781
    }
8782
 
8783
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8784
      org.apache.thrift.protocol.TField field;
352 ashish 8785
      iprot.readStructBegin();
8786
      while (true)
8787
      {
8788
        field = iprot.readFieldBegin();
3430 rajveer 8789
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8790
          break;
8791
        }
3430 rajveer 8792
        switch (field.id) {
8793
          case 1: // ID
8794
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8795
              this.id = iprot.readI64();
8796
              setIdIsSet(true);
8797
            } else { 
8798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8799
            }
8800
            break;
8801
          case 2: // PARAMS
8802
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
8803
              {
5864 rajveer 8804
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
8805
                this.params = new HashMap<String,String>(2*_map36.size);
8806
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 8807
                {
5864 rajveer 8808
                  String _key38; // required
8809
                  String _val39; // required
8810
                  _key38 = iprot.readString();
8811
                  _val39 = iprot.readString();
8812
                  this.params.put(_key38, _val39);
352 ashish 8813
                }
3430 rajveer 8814
                iprot.readMapEnd();
352 ashish 8815
              }
3430 rajveer 8816
            } else { 
8817
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8818
            }
8819
            break;
8820
          default:
8821
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8822
        }
3430 rajveer 8823
        iprot.readFieldEnd();
352 ashish 8824
      }
8825
      iprot.readStructEnd();
8826
      validate();
8827
    }
8828
 
3430 rajveer 8829
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8830
      validate();
8831
 
8832
      oprot.writeStructBegin(STRUCT_DESC);
8833
      oprot.writeFieldBegin(ID_FIELD_DESC);
8834
      oprot.writeI64(this.id);
8835
      oprot.writeFieldEnd();
8836
      if (this.params != null) {
8837
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
8838
        {
3430 rajveer 8839
          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 8840
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 8841
          {
5864 rajveer 8842
            oprot.writeString(_iter40.getKey());
8843
            oprot.writeString(_iter40.getValue());
352 ashish 8844
          }
8845
          oprot.writeMapEnd();
8846
        }
8847
        oprot.writeFieldEnd();
8848
      }
8849
      oprot.writeFieldStop();
8850
      oprot.writeStructEnd();
8851
    }
8852
 
8853
    @Override
8854
    public String toString() {
8855
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
8856
      boolean first = true;
8857
 
8858
      sb.append("id:");
8859
      sb.append(this.id);
8860
      first = false;
8861
      if (!first) sb.append(", ");
8862
      sb.append("params:");
8863
      if (this.params == null) {
8864
        sb.append("null");
8865
      } else {
8866
        sb.append(this.params);
8867
      }
8868
      first = false;
8869
      sb.append(")");
8870
      return sb.toString();
8871
    }
8872
 
3430 rajveer 8873
    public void validate() throws org.apache.thrift.TException {
352 ashish 8874
      // check for required fields
8875
    }
8876
 
3430 rajveer 8877
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8878
      try {
8879
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8880
      } catch (org.apache.thrift.TException te) {
8881
        throw new java.io.IOException(te);
8882
      }
8883
    }
8884
 
8885
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8886
      try {
8887
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8888
        __isset_bit_vector = new BitSet(1);
8889
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8890
      } catch (org.apache.thrift.TException te) {
8891
        throw new java.io.IOException(te);
8892
      }
8893
    }
8894
 
352 ashish 8895
  }
8896
 
3430 rajveer 8897
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
8898
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 8899
 
3430 rajveer 8900
    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);
8901
    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 8902
 
3430 rajveer 8903
    private Message success; // required
8904
    private HelperServiceException se; // required
352 ashish 8905
 
8906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8907
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8908
      SUCCESS((short)0, "success"),
8909
      SE((short)1, "se");
8910
 
8911
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8912
 
8913
      static {
8914
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8915
          byName.put(field.getFieldName(), field);
8916
        }
8917
      }
8918
 
8919
      /**
8920
       * Find the _Fields constant that matches fieldId, or null if its not found.
8921
       */
8922
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8923
        switch(fieldId) {
8924
          case 0: // SUCCESS
8925
            return SUCCESS;
8926
          case 1: // SE
8927
            return SE;
8928
          default:
8929
            return null;
8930
        }
352 ashish 8931
      }
8932
 
8933
      /**
8934
       * Find the _Fields constant that matches fieldId, throwing an exception
8935
       * if it is not found.
8936
       */
8937
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8938
        _Fields fields = findByThriftId(fieldId);
8939
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8940
        return fields;
8941
      }
8942
 
8943
      /**
8944
       * Find the _Fields constant that matches name, or null if its not found.
8945
       */
8946
      public static _Fields findByName(String name) {
8947
        return byName.get(name);
8948
      }
8949
 
8950
      private final short _thriftId;
8951
      private final String _fieldName;
8952
 
8953
      _Fields(short thriftId, String fieldName) {
8954
        _thriftId = thriftId;
8955
        _fieldName = fieldName;
8956
      }
8957
 
8958
      public short getThriftFieldId() {
8959
        return _thriftId;
8960
      }
8961
 
8962
      public String getFieldName() {
8963
        return _fieldName;
8964
      }
8965
    }
8966
 
8967
    // isset id assignments
8968
 
3430 rajveer 8969
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8970
    static {
3430 rajveer 8971
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8972
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8973
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
8974
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8975
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8976
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8977
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 8978
    }
8979
 
8980
    public getSubstitutedMessage_result() {
8981
    }
8982
 
8983
    public getSubstitutedMessage_result(
8984
      Message success,
8985
      HelperServiceException se)
8986
    {
8987
      this();
8988
      this.success = success;
8989
      this.se = se;
8990
    }
8991
 
8992
    /**
8993
     * Performs a deep copy on <i>other</i>.
8994
     */
8995
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
8996
      if (other.isSetSuccess()) {
8997
        this.success = new Message(other.success);
8998
      }
8999
      if (other.isSetSe()) {
9000
        this.se = new HelperServiceException(other.se);
9001
      }
9002
    }
9003
 
9004
    public getSubstitutedMessage_result deepCopy() {
9005
      return new getSubstitutedMessage_result(this);
9006
    }
9007
 
3430 rajveer 9008
    @Override
9009
    public void clear() {
9010
      this.success = null;
9011
      this.se = null;
352 ashish 9012
    }
9013
 
9014
    public Message getSuccess() {
9015
      return this.success;
9016
    }
9017
 
3430 rajveer 9018
    public void setSuccess(Message success) {
352 ashish 9019
      this.success = success;
9020
    }
9021
 
9022
    public void unsetSuccess() {
9023
      this.success = null;
9024
    }
9025
 
3430 rajveer 9026
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 9027
    public boolean isSetSuccess() {
9028
      return this.success != null;
9029
    }
9030
 
9031
    public void setSuccessIsSet(boolean value) {
9032
      if (!value) {
9033
        this.success = null;
9034
      }
9035
    }
9036
 
9037
    public HelperServiceException getSe() {
9038
      return this.se;
9039
    }
9040
 
3430 rajveer 9041
    public void setSe(HelperServiceException se) {
352 ashish 9042
      this.se = se;
9043
    }
9044
 
9045
    public void unsetSe() {
9046
      this.se = null;
9047
    }
9048
 
3430 rajveer 9049
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 9050
    public boolean isSetSe() {
9051
      return this.se != null;
9052
    }
9053
 
9054
    public void setSeIsSet(boolean value) {
9055
      if (!value) {
9056
        this.se = null;
9057
      }
9058
    }
9059
 
9060
    public void setFieldValue(_Fields field, Object value) {
9061
      switch (field) {
9062
      case SUCCESS:
9063
        if (value == null) {
9064
          unsetSuccess();
9065
        } else {
9066
          setSuccess((Message)value);
9067
        }
9068
        break;
9069
 
9070
      case SE:
9071
        if (value == null) {
9072
          unsetSe();
9073
        } else {
9074
          setSe((HelperServiceException)value);
9075
        }
9076
        break;
9077
 
9078
      }
9079
    }
9080
 
9081
    public Object getFieldValue(_Fields field) {
9082
      switch (field) {
9083
      case SUCCESS:
9084
        return getSuccess();
9085
 
9086
      case SE:
9087
        return getSe();
9088
 
9089
      }
9090
      throw new IllegalStateException();
9091
    }
9092
 
3430 rajveer 9093
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9094
    public boolean isSet(_Fields field) {
9095
      if (field == null) {
9096
        throw new IllegalArgumentException();
9097
      }
352 ashish 9098
 
9099
      switch (field) {
9100
      case SUCCESS:
9101
        return isSetSuccess();
9102
      case SE:
9103
        return isSetSe();
9104
      }
9105
      throw new IllegalStateException();
9106
    }
9107
 
9108
    @Override
9109
    public boolean equals(Object that) {
9110
      if (that == null)
9111
        return false;
9112
      if (that instanceof getSubstitutedMessage_result)
9113
        return this.equals((getSubstitutedMessage_result)that);
9114
      return false;
9115
    }
9116
 
9117
    public boolean equals(getSubstitutedMessage_result that) {
9118
      if (that == null)
9119
        return false;
9120
 
9121
      boolean this_present_success = true && this.isSetSuccess();
9122
      boolean that_present_success = true && that.isSetSuccess();
9123
      if (this_present_success || that_present_success) {
9124
        if (!(this_present_success && that_present_success))
9125
          return false;
9126
        if (!this.success.equals(that.success))
9127
          return false;
9128
      }
9129
 
9130
      boolean this_present_se = true && this.isSetSe();
9131
      boolean that_present_se = true && that.isSetSe();
9132
      if (this_present_se || that_present_se) {
9133
        if (!(this_present_se && that_present_se))
9134
          return false;
9135
        if (!this.se.equals(that.se))
9136
          return false;
9137
      }
9138
 
9139
      return true;
9140
    }
9141
 
9142
    @Override
9143
    public int hashCode() {
9144
      return 0;
9145
    }
9146
 
9147
    public int compareTo(getSubstitutedMessage_result other) {
9148
      if (!getClass().equals(other.getClass())) {
9149
        return getClass().getName().compareTo(other.getClass().getName());
9150
      }
9151
 
9152
      int lastComparison = 0;
9153
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
9154
 
3430 rajveer 9155
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 9156
      if (lastComparison != 0) {
9157
        return lastComparison;
9158
      }
3430 rajveer 9159
      if (isSetSuccess()) {
9160
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9161
        if (lastComparison != 0) {
9162
          return lastComparison;
9163
        }
352 ashish 9164
      }
3430 rajveer 9165
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 9166
      if (lastComparison != 0) {
9167
        return lastComparison;
9168
      }
3430 rajveer 9169
      if (isSetSe()) {
9170
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9171
        if (lastComparison != 0) {
9172
          return lastComparison;
9173
        }
352 ashish 9174
      }
9175
      return 0;
9176
    }
9177
 
3430 rajveer 9178
    public _Fields fieldForId(int fieldId) {
9179
      return _Fields.findByThriftId(fieldId);
9180
    }
9181
 
9182
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9183
      org.apache.thrift.protocol.TField field;
352 ashish 9184
      iprot.readStructBegin();
9185
      while (true)
9186
      {
9187
        field = iprot.readFieldBegin();
3430 rajveer 9188
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9189
          break;
9190
        }
3430 rajveer 9191
        switch (field.id) {
9192
          case 0: // SUCCESS
9193
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9194
              this.success = new Message();
9195
              this.success.read(iprot);
9196
            } else { 
9197
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9198
            }
9199
            break;
9200
          case 1: // SE
9201
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9202
              this.se = new HelperServiceException();
9203
              this.se.read(iprot);
9204
            } else { 
9205
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9206
            }
9207
            break;
9208
          default:
9209
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9210
        }
3430 rajveer 9211
        iprot.readFieldEnd();
352 ashish 9212
      }
9213
      iprot.readStructEnd();
9214
      validate();
9215
    }
9216
 
3430 rajveer 9217
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9218
      oprot.writeStructBegin(STRUCT_DESC);
9219
 
9220
      if (this.isSetSuccess()) {
9221
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9222
        this.success.write(oprot);
9223
        oprot.writeFieldEnd();
9224
      } else if (this.isSetSe()) {
9225
        oprot.writeFieldBegin(SE_FIELD_DESC);
9226
        this.se.write(oprot);
9227
        oprot.writeFieldEnd();
9228
      }
9229
      oprot.writeFieldStop();
9230
      oprot.writeStructEnd();
9231
    }
9232
 
9233
    @Override
9234
    public String toString() {
9235
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
9236
      boolean first = true;
9237
 
9238
      sb.append("success:");
9239
      if (this.success == null) {
9240
        sb.append("null");
9241
      } else {
9242
        sb.append(this.success);
9243
      }
9244
      first = false;
9245
      if (!first) sb.append(", ");
9246
      sb.append("se:");
9247
      if (this.se == null) {
9248
        sb.append("null");
9249
      } else {
9250
        sb.append(this.se);
9251
      }
9252
      first = false;
9253
      sb.append(")");
9254
      return sb.toString();
9255
    }
9256
 
3430 rajveer 9257
    public void validate() throws org.apache.thrift.TException {
352 ashish 9258
      // check for required fields
9259
    }
9260
 
3430 rajveer 9261
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9262
      try {
9263
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9264
      } catch (org.apache.thrift.TException te) {
9265
        throw new java.io.IOException(te);
9266
      }
9267
    }
9268
 
9269
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9270
      try {
9271
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9272
      } catch (org.apache.thrift.TException te) {
9273
        throw new java.io.IOException(te);
9274
      }
9275
    }
9276
 
352 ashish 9277
  }
9278
 
3430 rajveer 9279
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
9280
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 9281
 
3430 rajveer 9282
    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);
9283
    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);
9284
    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 9285
 
3430 rajveer 9286
    private String username; // required
9287
    private String password; // required
9288
    private long warehouseId; // required
495 rajveer 9289
 
9290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9292
      USERNAME((short)1, "username"),
9293
      PASSWORD((short)2, "password"),
9294
      WAREHOUSE_ID((short)3, "warehouseId");
9295
 
9296
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9297
 
9298
      static {
9299
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9300
          byName.put(field.getFieldName(), field);
9301
        }
9302
      }
9303
 
9304
      /**
9305
       * Find the _Fields constant that matches fieldId, or null if its not found.
9306
       */
9307
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9308
        switch(fieldId) {
9309
          case 1: // USERNAME
9310
            return USERNAME;
9311
          case 2: // PASSWORD
9312
            return PASSWORD;
9313
          case 3: // WAREHOUSE_ID
9314
            return WAREHOUSE_ID;
9315
          default:
9316
            return null;
9317
        }
495 rajveer 9318
      }
9319
 
9320
      /**
9321
       * Find the _Fields constant that matches fieldId, throwing an exception
9322
       * if it is not found.
9323
       */
9324
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9325
        _Fields fields = findByThriftId(fieldId);
9326
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9327
        return fields;
9328
      }
9329
 
9330
      /**
9331
       * Find the _Fields constant that matches name, or null if its not found.
9332
       */
9333
      public static _Fields findByName(String name) {
9334
        return byName.get(name);
9335
      }
9336
 
9337
      private final short _thriftId;
9338
      private final String _fieldName;
9339
 
9340
      _Fields(short thriftId, String fieldName) {
9341
        _thriftId = thriftId;
9342
        _fieldName = fieldName;
9343
      }
9344
 
9345
      public short getThriftFieldId() {
9346
        return _thriftId;
9347
      }
9348
 
9349
      public String getFieldName() {
9350
        return _fieldName;
9351
      }
9352
    }
9353
 
9354
    // isset id assignments
9355
    private static final int __WAREHOUSEID_ISSET_ID = 0;
9356
    private BitSet __isset_bit_vector = new BitSet(1);
9357
 
3430 rajveer 9358
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9359
    static {
3430 rajveer 9360
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9361
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9363
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9364
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
9365
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9366
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9367
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9368
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 9369
    }
9370
 
9371
    public addUser_args() {
9372
    }
9373
 
9374
    public addUser_args(
9375
      String username,
9376
      String password,
9377
      long warehouseId)
9378
    {
9379
      this();
9380
      this.username = username;
9381
      this.password = password;
9382
      this.warehouseId = warehouseId;
9383
      setWarehouseIdIsSet(true);
9384
    }
9385
 
9386
    /**
9387
     * Performs a deep copy on <i>other</i>.
9388
     */
9389
    public addUser_args(addUser_args other) {
9390
      __isset_bit_vector.clear();
9391
      __isset_bit_vector.or(other.__isset_bit_vector);
9392
      if (other.isSetUsername()) {
9393
        this.username = other.username;
9394
      }
9395
      if (other.isSetPassword()) {
9396
        this.password = other.password;
9397
      }
9398
      this.warehouseId = other.warehouseId;
9399
    }
9400
 
9401
    public addUser_args deepCopy() {
9402
      return new addUser_args(this);
9403
    }
9404
 
3430 rajveer 9405
    @Override
9406
    public void clear() {
9407
      this.username = null;
9408
      this.password = null;
9409
      setWarehouseIdIsSet(false);
9410
      this.warehouseId = 0;
495 rajveer 9411
    }
9412
 
9413
    public String getUsername() {
9414
      return this.username;
9415
    }
9416
 
3430 rajveer 9417
    public void setUsername(String username) {
495 rajveer 9418
      this.username = username;
9419
    }
9420
 
9421
    public void unsetUsername() {
9422
      this.username = null;
9423
    }
9424
 
3430 rajveer 9425
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 9426
    public boolean isSetUsername() {
9427
      return this.username != null;
9428
    }
9429
 
9430
    public void setUsernameIsSet(boolean value) {
9431
      if (!value) {
9432
        this.username = null;
9433
      }
9434
    }
9435
 
9436
    public String getPassword() {
9437
      return this.password;
9438
    }
9439
 
3430 rajveer 9440
    public void setPassword(String password) {
495 rajveer 9441
      this.password = password;
9442
    }
9443
 
9444
    public void unsetPassword() {
9445
      this.password = null;
9446
    }
9447
 
3430 rajveer 9448
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 9449
    public boolean isSetPassword() {
9450
      return this.password != null;
9451
    }
9452
 
9453
    public void setPasswordIsSet(boolean value) {
9454
      if (!value) {
9455
        this.password = null;
9456
      }
9457
    }
9458
 
9459
    public long getWarehouseId() {
9460
      return this.warehouseId;
9461
    }
9462
 
3430 rajveer 9463
    public void setWarehouseId(long warehouseId) {
495 rajveer 9464
      this.warehouseId = warehouseId;
9465
      setWarehouseIdIsSet(true);
9466
    }
9467
 
9468
    public void unsetWarehouseId() {
9469
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
9470
    }
9471
 
3430 rajveer 9472
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 9473
    public boolean isSetWarehouseId() {
9474
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
9475
    }
9476
 
9477
    public void setWarehouseIdIsSet(boolean value) {
9478
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
9479
    }
9480
 
9481
    public void setFieldValue(_Fields field, Object value) {
9482
      switch (field) {
9483
      case USERNAME:
9484
        if (value == null) {
9485
          unsetUsername();
9486
        } else {
9487
          setUsername((String)value);
9488
        }
9489
        break;
9490
 
9491
      case PASSWORD:
9492
        if (value == null) {
9493
          unsetPassword();
9494
        } else {
9495
          setPassword((String)value);
9496
        }
9497
        break;
9498
 
9499
      case WAREHOUSE_ID:
9500
        if (value == null) {
9501
          unsetWarehouseId();
9502
        } else {
9503
          setWarehouseId((Long)value);
9504
        }
9505
        break;
9506
 
9507
      }
9508
    }
9509
 
9510
    public Object getFieldValue(_Fields field) {
9511
      switch (field) {
9512
      case USERNAME:
9513
        return getUsername();
9514
 
9515
      case PASSWORD:
9516
        return getPassword();
9517
 
9518
      case WAREHOUSE_ID:
3430 rajveer 9519
        return Long.valueOf(getWarehouseId());
495 rajveer 9520
 
9521
      }
9522
      throw new IllegalStateException();
9523
    }
9524
 
3430 rajveer 9525
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9526
    public boolean isSet(_Fields field) {
9527
      if (field == null) {
9528
        throw new IllegalArgumentException();
9529
      }
495 rajveer 9530
 
9531
      switch (field) {
9532
      case USERNAME:
9533
        return isSetUsername();
9534
      case PASSWORD:
9535
        return isSetPassword();
9536
      case WAREHOUSE_ID:
9537
        return isSetWarehouseId();
9538
      }
9539
      throw new IllegalStateException();
9540
    }
9541
 
9542
    @Override
9543
    public boolean equals(Object that) {
9544
      if (that == null)
9545
        return false;
9546
      if (that instanceof addUser_args)
9547
        return this.equals((addUser_args)that);
9548
      return false;
9549
    }
9550
 
9551
    public boolean equals(addUser_args that) {
9552
      if (that == null)
9553
        return false;
9554
 
9555
      boolean this_present_username = true && this.isSetUsername();
9556
      boolean that_present_username = true && that.isSetUsername();
9557
      if (this_present_username || that_present_username) {
9558
        if (!(this_present_username && that_present_username))
9559
          return false;
9560
        if (!this.username.equals(that.username))
9561
          return false;
9562
      }
9563
 
9564
      boolean this_present_password = true && this.isSetPassword();
9565
      boolean that_present_password = true && that.isSetPassword();
9566
      if (this_present_password || that_present_password) {
9567
        if (!(this_present_password && that_present_password))
9568
          return false;
9569
        if (!this.password.equals(that.password))
9570
          return false;
9571
      }
9572
 
9573
      boolean this_present_warehouseId = true;
9574
      boolean that_present_warehouseId = true;
9575
      if (this_present_warehouseId || that_present_warehouseId) {
9576
        if (!(this_present_warehouseId && that_present_warehouseId))
9577
          return false;
9578
        if (this.warehouseId != that.warehouseId)
9579
          return false;
9580
      }
9581
 
9582
      return true;
9583
    }
9584
 
9585
    @Override
9586
    public int hashCode() {
9587
      return 0;
9588
    }
9589
 
9590
    public int compareTo(addUser_args other) {
9591
      if (!getClass().equals(other.getClass())) {
9592
        return getClass().getName().compareTo(other.getClass().getName());
9593
      }
9594
 
9595
      int lastComparison = 0;
9596
      addUser_args typedOther = (addUser_args)other;
9597
 
3430 rajveer 9598
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 9599
      if (lastComparison != 0) {
9600
        return lastComparison;
9601
      }
3430 rajveer 9602
      if (isSetUsername()) {
9603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9604
        if (lastComparison != 0) {
9605
          return lastComparison;
9606
        }
495 rajveer 9607
      }
3430 rajveer 9608
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 9609
      if (lastComparison != 0) {
9610
        return lastComparison;
9611
      }
3430 rajveer 9612
      if (isSetPassword()) {
9613
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9614
        if (lastComparison != 0) {
9615
          return lastComparison;
9616
        }
495 rajveer 9617
      }
3430 rajveer 9618
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 9619
      if (lastComparison != 0) {
9620
        return lastComparison;
9621
      }
3430 rajveer 9622
      if (isSetWarehouseId()) {
9623
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
9624
        if (lastComparison != 0) {
9625
          return lastComparison;
9626
        }
495 rajveer 9627
      }
9628
      return 0;
9629
    }
9630
 
3430 rajveer 9631
    public _Fields fieldForId(int fieldId) {
9632
      return _Fields.findByThriftId(fieldId);
9633
    }
9634
 
9635
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9636
      org.apache.thrift.protocol.TField field;
495 rajveer 9637
      iprot.readStructBegin();
9638
      while (true)
9639
      {
9640
        field = iprot.readFieldBegin();
3430 rajveer 9641
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 9642
          break;
9643
        }
3430 rajveer 9644
        switch (field.id) {
9645
          case 1: // USERNAME
9646
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9647
              this.username = iprot.readString();
9648
            } else { 
9649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9650
            }
9651
            break;
9652
          case 2: // PASSWORD
9653
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9654
              this.password = iprot.readString();
9655
            } else { 
9656
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9657
            }
9658
            break;
9659
          case 3: // WAREHOUSE_ID
9660
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9661
              this.warehouseId = iprot.readI64();
9662
              setWarehouseIdIsSet(true);
9663
            } else { 
9664
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9665
            }
9666
            break;
9667
          default:
9668
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 9669
        }
3430 rajveer 9670
        iprot.readFieldEnd();
495 rajveer 9671
      }
9672
      iprot.readStructEnd();
9673
      validate();
9674
    }
9675
 
3430 rajveer 9676
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 9677
      validate();
9678
 
9679
      oprot.writeStructBegin(STRUCT_DESC);
9680
      if (this.username != null) {
9681
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9682
        oprot.writeString(this.username);
9683
        oprot.writeFieldEnd();
9684
      }
9685
      if (this.password != null) {
9686
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
9687
        oprot.writeString(this.password);
9688
        oprot.writeFieldEnd();
9689
      }
9690
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
9691
      oprot.writeI64(this.warehouseId);
9692
      oprot.writeFieldEnd();
9693
      oprot.writeFieldStop();
9694
      oprot.writeStructEnd();
9695
    }
9696
 
9697
    @Override
9698
    public String toString() {
9699
      StringBuilder sb = new StringBuilder("addUser_args(");
9700
      boolean first = true;
9701
 
9702
      sb.append("username:");
9703
      if (this.username == null) {
9704
        sb.append("null");
9705
      } else {
9706
        sb.append(this.username);
9707
      }
9708
      first = false;
9709
      if (!first) sb.append(", ");
9710
      sb.append("password:");
9711
      if (this.password == null) {
9712
        sb.append("null");
9713
      } else {
9714
        sb.append(this.password);
9715
      }
9716
      first = false;
9717
      if (!first) sb.append(", ");
9718
      sb.append("warehouseId:");
9719
      sb.append(this.warehouseId);
9720
      first = false;
9721
      sb.append(")");
9722
      return sb.toString();
9723
    }
9724
 
3430 rajveer 9725
    public void validate() throws org.apache.thrift.TException {
495 rajveer 9726
      // check for required fields
9727
    }
9728
 
3430 rajveer 9729
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9730
      try {
9731
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9732
      } catch (org.apache.thrift.TException te) {
9733
        throw new java.io.IOException(te);
9734
      }
9735
    }
9736
 
9737
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9738
      try {
9739
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9740
        __isset_bit_vector = new BitSet(1);
9741
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9742
      } catch (org.apache.thrift.TException te) {
9743
        throw new java.io.IOException(te);
9744
      }
9745
    }
9746
 
495 rajveer 9747
  }
9748
 
3430 rajveer 9749
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
9750
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 9751
 
3430 rajveer 9752
    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);
9753
    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 9754
 
3430 rajveer 9755
    private boolean success; // required
9756
    private HelperServiceException se; // required
495 rajveer 9757
 
9758
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9759
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 9760
      SUCCESS((short)0, "success"),
9761
      SE((short)1, "se");
9762
 
9763
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9764
 
9765
      static {
9766
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9767
          byName.put(field.getFieldName(), field);
9768
        }
9769
      }
9770
 
9771
      /**
9772
       * Find the _Fields constant that matches fieldId, or null if its not found.
9773
       */
9774
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9775
        switch(fieldId) {
9776
          case 0: // SUCCESS
9777
            return SUCCESS;
9778
          case 1: // SE
9779
            return SE;
9780
          default:
9781
            return null;
9782
        }
495 rajveer 9783
      }
9784
 
9785
      /**
9786
       * Find the _Fields constant that matches fieldId, throwing an exception
9787
       * if it is not found.
9788
       */
9789
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9790
        _Fields fields = findByThriftId(fieldId);
9791
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9792
        return fields;
9793
      }
9794
 
9795
      /**
9796
       * Find the _Fields constant that matches name, or null if its not found.
9797
       */
9798
      public static _Fields findByName(String name) {
9799
        return byName.get(name);
9800
      }
9801
 
9802
      private final short _thriftId;
9803
      private final String _fieldName;
9804
 
9805
      _Fields(short thriftId, String fieldName) {
9806
        _thriftId = thriftId;
9807
        _fieldName = fieldName;
9808
      }
9809
 
9810
      public short getThriftFieldId() {
9811
        return _thriftId;
9812
      }
9813
 
9814
      public String getFieldName() {
9815
        return _fieldName;
9816
      }
9817
    }
9818
 
9819
    // isset id assignments
9820
    private static final int __SUCCESS_ISSET_ID = 0;
9821
    private BitSet __isset_bit_vector = new BitSet(1);
9822
 
3430 rajveer 9823
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 9824
    static {
3430 rajveer 9825
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9826
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9827
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
9828
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9829
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9830
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9831
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 9832
    }
9833
 
9834
    public addUser_result() {
9835
    }
9836
 
9837
    public addUser_result(
9838
      boolean success,
9839
      HelperServiceException se)
9840
    {
9841
      this();
9842
      this.success = success;
9843
      setSuccessIsSet(true);
9844
      this.se = se;
9845
    }
9846
 
9847
    /**
9848
     * Performs a deep copy on <i>other</i>.
9849
     */
9850
    public addUser_result(addUser_result other) {
9851
      __isset_bit_vector.clear();
9852
      __isset_bit_vector.or(other.__isset_bit_vector);
9853
      this.success = other.success;
9854
      if (other.isSetSe()) {
9855
        this.se = new HelperServiceException(other.se);
9856
      }
9857
    }
9858
 
9859
    public addUser_result deepCopy() {
9860
      return new addUser_result(this);
9861
    }
9862
 
3430 rajveer 9863
    @Override
9864
    public void clear() {
9865
      setSuccessIsSet(false);
9866
      this.success = false;
9867
      this.se = null;
495 rajveer 9868
    }
9869
 
9870
    public boolean isSuccess() {
9871
      return this.success;
9872
    }
9873
 
3430 rajveer 9874
    public void setSuccess(boolean success) {
495 rajveer 9875
      this.success = success;
9876
      setSuccessIsSet(true);
9877
    }
9878
 
9879
    public void unsetSuccess() {
9880
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9881
    }
9882
 
3430 rajveer 9883
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 9884
    public boolean isSetSuccess() {
9885
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9886
    }
9887
 
9888
    public void setSuccessIsSet(boolean value) {
9889
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9890
    }
9891
 
9892
    public HelperServiceException getSe() {
9893
      return this.se;
9894
    }
9895
 
3430 rajveer 9896
    public void setSe(HelperServiceException se) {
495 rajveer 9897
      this.se = se;
9898
    }
9899
 
9900
    public void unsetSe() {
9901
      this.se = null;
9902
    }
9903
 
3430 rajveer 9904
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 9905
    public boolean isSetSe() {
9906
      return this.se != null;
9907
    }
9908
 
9909
    public void setSeIsSet(boolean value) {
9910
      if (!value) {
9911
        this.se = null;
9912
      }
9913
    }
9914
 
9915
    public void setFieldValue(_Fields field, Object value) {
9916
      switch (field) {
9917
      case SUCCESS:
9918
        if (value == null) {
9919
          unsetSuccess();
9920
        } else {
9921
          setSuccess((Boolean)value);
9922
        }
9923
        break;
9924
 
9925
      case SE:
9926
        if (value == null) {
9927
          unsetSe();
9928
        } else {
9929
          setSe((HelperServiceException)value);
9930
        }
9931
        break;
9932
 
9933
      }
9934
    }
9935
 
9936
    public Object getFieldValue(_Fields field) {
9937
      switch (field) {
9938
      case SUCCESS:
3430 rajveer 9939
        return Boolean.valueOf(isSuccess());
495 rajveer 9940
 
9941
      case SE:
9942
        return getSe();
9943
 
9944
      }
9945
      throw new IllegalStateException();
9946
    }
9947
 
3430 rajveer 9948
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9949
    public boolean isSet(_Fields field) {
9950
      if (field == null) {
9951
        throw new IllegalArgumentException();
9952
      }
495 rajveer 9953
 
9954
      switch (field) {
9955
      case SUCCESS:
9956
        return isSetSuccess();
9957
      case SE:
9958
        return isSetSe();
9959
      }
9960
      throw new IllegalStateException();
9961
    }
9962
 
9963
    @Override
9964
    public boolean equals(Object that) {
9965
      if (that == null)
9966
        return false;
9967
      if (that instanceof addUser_result)
9968
        return this.equals((addUser_result)that);
9969
      return false;
9970
    }
9971
 
9972
    public boolean equals(addUser_result that) {
9973
      if (that == null)
9974
        return false;
9975
 
9976
      boolean this_present_success = true;
9977
      boolean that_present_success = true;
9978
      if (this_present_success || that_present_success) {
9979
        if (!(this_present_success && that_present_success))
9980
          return false;
9981
        if (this.success != that.success)
9982
          return false;
9983
      }
9984
 
9985
      boolean this_present_se = true && this.isSetSe();
9986
      boolean that_present_se = true && that.isSetSe();
9987
      if (this_present_se || that_present_se) {
9988
        if (!(this_present_se && that_present_se))
9989
          return false;
9990
        if (!this.se.equals(that.se))
9991
          return false;
9992
      }
9993
 
9994
      return true;
9995
    }
9996
 
9997
    @Override
9998
    public int hashCode() {
9999
      return 0;
10000
    }
10001
 
10002
    public int compareTo(addUser_result other) {
10003
      if (!getClass().equals(other.getClass())) {
10004
        return getClass().getName().compareTo(other.getClass().getName());
10005
      }
10006
 
10007
      int lastComparison = 0;
10008
      addUser_result typedOther = (addUser_result)other;
10009
 
3430 rajveer 10010
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10011
      if (lastComparison != 0) {
10012
        return lastComparison;
10013
      }
3430 rajveer 10014
      if (isSetSuccess()) {
10015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10016
        if (lastComparison != 0) {
10017
          return lastComparison;
10018
        }
495 rajveer 10019
      }
3430 rajveer 10020
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10021
      if (lastComparison != 0) {
10022
        return lastComparison;
10023
      }
3430 rajveer 10024
      if (isSetSe()) {
10025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10026
        if (lastComparison != 0) {
10027
          return lastComparison;
10028
        }
495 rajveer 10029
      }
10030
      return 0;
10031
    }
10032
 
3430 rajveer 10033
    public _Fields fieldForId(int fieldId) {
10034
      return _Fields.findByThriftId(fieldId);
10035
    }
10036
 
10037
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10038
      org.apache.thrift.protocol.TField field;
495 rajveer 10039
      iprot.readStructBegin();
10040
      while (true)
10041
      {
10042
        field = iprot.readFieldBegin();
3430 rajveer 10043
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10044
          break;
10045
        }
3430 rajveer 10046
        switch (field.id) {
10047
          case 0: // SUCCESS
10048
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10049
              this.success = iprot.readBool();
10050
              setSuccessIsSet(true);
10051
            } else { 
10052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10053
            }
10054
            break;
10055
          case 1: // SE
10056
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10057
              this.se = new HelperServiceException();
10058
              this.se.read(iprot);
10059
            } else { 
10060
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10061
            }
10062
            break;
10063
          default:
10064
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10065
        }
3430 rajveer 10066
        iprot.readFieldEnd();
495 rajveer 10067
      }
10068
      iprot.readStructEnd();
10069
      validate();
10070
    }
10071
 
3430 rajveer 10072
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10073
      oprot.writeStructBegin(STRUCT_DESC);
10074
 
10075
      if (this.isSetSuccess()) {
10076
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10077
        oprot.writeBool(this.success);
10078
        oprot.writeFieldEnd();
10079
      } else if (this.isSetSe()) {
10080
        oprot.writeFieldBegin(SE_FIELD_DESC);
10081
        this.se.write(oprot);
10082
        oprot.writeFieldEnd();
10083
      }
10084
      oprot.writeFieldStop();
10085
      oprot.writeStructEnd();
10086
    }
10087
 
10088
    @Override
10089
    public String toString() {
10090
      StringBuilder sb = new StringBuilder("addUser_result(");
10091
      boolean first = true;
10092
 
10093
      sb.append("success:");
10094
      sb.append(this.success);
10095
      first = false;
10096
      if (!first) sb.append(", ");
10097
      sb.append("se:");
10098
      if (this.se == null) {
10099
        sb.append("null");
10100
      } else {
10101
        sb.append(this.se);
10102
      }
10103
      first = false;
10104
      sb.append(")");
10105
      return sb.toString();
10106
    }
10107
 
3430 rajveer 10108
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10109
      // check for required fields
10110
    }
10111
 
3430 rajveer 10112
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10113
      try {
10114
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10115
      } catch (org.apache.thrift.TException te) {
10116
        throw new java.io.IOException(te);
10117
      }
10118
    }
10119
 
10120
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10121
      try {
10122
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10123
      } catch (org.apache.thrift.TException te) {
10124
        throw new java.io.IOException(te);
10125
      }
10126
    }
10127
 
495 rajveer 10128
  }
10129
 
3430 rajveer 10130
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
10131
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 10132
 
3430 rajveer 10133
    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 10134
 
3430 rajveer 10135
    private String username; // required
495 rajveer 10136
 
10137
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10138
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10139
      USERNAME((short)1, "username");
10140
 
10141
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10142
 
10143
      static {
10144
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10145
          byName.put(field.getFieldName(), field);
10146
        }
10147
      }
10148
 
10149
      /**
10150
       * Find the _Fields constant that matches fieldId, or null if its not found.
10151
       */
10152
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10153
        switch(fieldId) {
10154
          case 1: // USERNAME
10155
            return USERNAME;
10156
          default:
10157
            return null;
10158
        }
495 rajveer 10159
      }
10160
 
10161
      /**
10162
       * Find the _Fields constant that matches fieldId, throwing an exception
10163
       * if it is not found.
10164
       */
10165
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10166
        _Fields fields = findByThriftId(fieldId);
10167
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10168
        return fields;
10169
      }
10170
 
10171
      /**
10172
       * Find the _Fields constant that matches name, or null if its not found.
10173
       */
10174
      public static _Fields findByName(String name) {
10175
        return byName.get(name);
10176
      }
10177
 
10178
      private final short _thriftId;
10179
      private final String _fieldName;
10180
 
10181
      _Fields(short thriftId, String fieldName) {
10182
        _thriftId = thriftId;
10183
        _fieldName = fieldName;
10184
      }
10185
 
10186
      public short getThriftFieldId() {
10187
        return _thriftId;
10188
      }
10189
 
10190
      public String getFieldName() {
10191
        return _fieldName;
10192
      }
10193
    }
10194
 
10195
    // isset id assignments
10196
 
3430 rajveer 10197
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10198
    static {
3430 rajveer 10199
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10200
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10201
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10202
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10203
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 10204
    }
10205
 
10206
    public deleteUser_args() {
10207
    }
10208
 
10209
    public deleteUser_args(
10210
      String username)
10211
    {
10212
      this();
10213
      this.username = username;
10214
    }
10215
 
10216
    /**
10217
     * Performs a deep copy on <i>other</i>.
10218
     */
10219
    public deleteUser_args(deleteUser_args other) {
10220
      if (other.isSetUsername()) {
10221
        this.username = other.username;
10222
      }
10223
    }
10224
 
10225
    public deleteUser_args deepCopy() {
10226
      return new deleteUser_args(this);
10227
    }
10228
 
3430 rajveer 10229
    @Override
10230
    public void clear() {
10231
      this.username = null;
495 rajveer 10232
    }
10233
 
10234
    public String getUsername() {
10235
      return this.username;
10236
    }
10237
 
3430 rajveer 10238
    public void setUsername(String username) {
495 rajveer 10239
      this.username = username;
10240
    }
10241
 
10242
    public void unsetUsername() {
10243
      this.username = null;
10244
    }
10245
 
3430 rajveer 10246
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10247
    public boolean isSetUsername() {
10248
      return this.username != null;
10249
    }
10250
 
10251
    public void setUsernameIsSet(boolean value) {
10252
      if (!value) {
10253
        this.username = null;
10254
      }
10255
    }
10256
 
10257
    public void setFieldValue(_Fields field, Object value) {
10258
      switch (field) {
10259
      case USERNAME:
10260
        if (value == null) {
10261
          unsetUsername();
10262
        } else {
10263
          setUsername((String)value);
10264
        }
10265
        break;
10266
 
10267
      }
10268
    }
10269
 
10270
    public Object getFieldValue(_Fields field) {
10271
      switch (field) {
10272
      case USERNAME:
10273
        return getUsername();
10274
 
10275
      }
10276
      throw new IllegalStateException();
10277
    }
10278
 
3430 rajveer 10279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10280
    public boolean isSet(_Fields field) {
10281
      if (field == null) {
10282
        throw new IllegalArgumentException();
10283
      }
495 rajveer 10284
 
10285
      switch (field) {
10286
      case USERNAME:
10287
        return isSetUsername();
10288
      }
10289
      throw new IllegalStateException();
10290
    }
10291
 
10292
    @Override
10293
    public boolean equals(Object that) {
10294
      if (that == null)
10295
        return false;
10296
      if (that instanceof deleteUser_args)
10297
        return this.equals((deleteUser_args)that);
10298
      return false;
10299
    }
10300
 
10301
    public boolean equals(deleteUser_args that) {
10302
      if (that == null)
10303
        return false;
10304
 
10305
      boolean this_present_username = true && this.isSetUsername();
10306
      boolean that_present_username = true && that.isSetUsername();
10307
      if (this_present_username || that_present_username) {
10308
        if (!(this_present_username && that_present_username))
10309
          return false;
10310
        if (!this.username.equals(that.username))
10311
          return false;
10312
      }
10313
 
10314
      return true;
10315
    }
10316
 
10317
    @Override
10318
    public int hashCode() {
10319
      return 0;
10320
    }
10321
 
10322
    public int compareTo(deleteUser_args other) {
10323
      if (!getClass().equals(other.getClass())) {
10324
        return getClass().getName().compareTo(other.getClass().getName());
10325
      }
10326
 
10327
      int lastComparison = 0;
10328
      deleteUser_args typedOther = (deleteUser_args)other;
10329
 
3430 rajveer 10330
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10331
      if (lastComparison != 0) {
10332
        return lastComparison;
10333
      }
3430 rajveer 10334
      if (isSetUsername()) {
10335
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10336
        if (lastComparison != 0) {
10337
          return lastComparison;
10338
        }
495 rajveer 10339
      }
10340
      return 0;
10341
    }
10342
 
3430 rajveer 10343
    public _Fields fieldForId(int fieldId) {
10344
      return _Fields.findByThriftId(fieldId);
10345
    }
10346
 
10347
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10348
      org.apache.thrift.protocol.TField field;
495 rajveer 10349
      iprot.readStructBegin();
10350
      while (true)
10351
      {
10352
        field = iprot.readFieldBegin();
3430 rajveer 10353
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10354
          break;
10355
        }
3430 rajveer 10356
        switch (field.id) {
10357
          case 1: // USERNAME
10358
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10359
              this.username = iprot.readString();
10360
            } else { 
10361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10362
            }
10363
            break;
10364
          default:
10365
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10366
        }
3430 rajveer 10367
        iprot.readFieldEnd();
495 rajveer 10368
      }
10369
      iprot.readStructEnd();
10370
      validate();
10371
    }
10372
 
3430 rajveer 10373
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10374
      validate();
10375
 
10376
      oprot.writeStructBegin(STRUCT_DESC);
10377
      if (this.username != null) {
10378
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10379
        oprot.writeString(this.username);
10380
        oprot.writeFieldEnd();
10381
      }
10382
      oprot.writeFieldStop();
10383
      oprot.writeStructEnd();
10384
    }
10385
 
10386
    @Override
10387
    public String toString() {
10388
      StringBuilder sb = new StringBuilder("deleteUser_args(");
10389
      boolean first = true;
10390
 
10391
      sb.append("username:");
10392
      if (this.username == null) {
10393
        sb.append("null");
10394
      } else {
10395
        sb.append(this.username);
10396
      }
10397
      first = false;
10398
      sb.append(")");
10399
      return sb.toString();
10400
    }
10401
 
3430 rajveer 10402
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10403
      // check for required fields
10404
    }
10405
 
3430 rajveer 10406
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10407
      try {
10408
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10409
      } catch (org.apache.thrift.TException te) {
10410
        throw new java.io.IOException(te);
10411
      }
10412
    }
10413
 
10414
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10415
      try {
10416
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10417
      } catch (org.apache.thrift.TException te) {
10418
        throw new java.io.IOException(te);
10419
      }
10420
    }
10421
 
495 rajveer 10422
  }
10423
 
3430 rajveer 10424
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
10425
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 10426
 
3430 rajveer 10427
    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);
10428
    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 10429
 
3430 rajveer 10430
    private boolean success; // required
10431
    private HelperServiceException se; // required
495 rajveer 10432
 
10433
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10434
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10435
      SUCCESS((short)0, "success"),
10436
      SE((short)1, "se");
10437
 
10438
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10439
 
10440
      static {
10441
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10442
          byName.put(field.getFieldName(), field);
10443
        }
10444
      }
10445
 
10446
      /**
10447
       * Find the _Fields constant that matches fieldId, or null if its not found.
10448
       */
10449
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10450
        switch(fieldId) {
10451
          case 0: // SUCCESS
10452
            return SUCCESS;
10453
          case 1: // SE
10454
            return SE;
10455
          default:
10456
            return null;
10457
        }
495 rajveer 10458
      }
10459
 
10460
      /**
10461
       * Find the _Fields constant that matches fieldId, throwing an exception
10462
       * if it is not found.
10463
       */
10464
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10465
        _Fields fields = findByThriftId(fieldId);
10466
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10467
        return fields;
10468
      }
10469
 
10470
      /**
10471
       * Find the _Fields constant that matches name, or null if its not found.
10472
       */
10473
      public static _Fields findByName(String name) {
10474
        return byName.get(name);
10475
      }
10476
 
10477
      private final short _thriftId;
10478
      private final String _fieldName;
10479
 
10480
      _Fields(short thriftId, String fieldName) {
10481
        _thriftId = thriftId;
10482
        _fieldName = fieldName;
10483
      }
10484
 
10485
      public short getThriftFieldId() {
10486
        return _thriftId;
10487
      }
10488
 
10489
      public String getFieldName() {
10490
        return _fieldName;
10491
      }
10492
    }
10493
 
10494
    // isset id assignments
10495
    private static final int __SUCCESS_ISSET_ID = 0;
10496
    private BitSet __isset_bit_vector = new BitSet(1);
10497
 
3430 rajveer 10498
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10499
    static {
3430 rajveer 10500
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10501
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10503
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10504
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10505
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10506
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 10507
    }
10508
 
10509
    public deleteUser_result() {
10510
    }
10511
 
10512
    public deleteUser_result(
10513
      boolean success,
10514
      HelperServiceException se)
10515
    {
10516
      this();
10517
      this.success = success;
10518
      setSuccessIsSet(true);
10519
      this.se = se;
10520
    }
10521
 
10522
    /**
10523
     * Performs a deep copy on <i>other</i>.
10524
     */
10525
    public deleteUser_result(deleteUser_result other) {
10526
      __isset_bit_vector.clear();
10527
      __isset_bit_vector.or(other.__isset_bit_vector);
10528
      this.success = other.success;
10529
      if (other.isSetSe()) {
10530
        this.se = new HelperServiceException(other.se);
10531
      }
10532
    }
10533
 
10534
    public deleteUser_result deepCopy() {
10535
      return new deleteUser_result(this);
10536
    }
10537
 
3430 rajveer 10538
    @Override
10539
    public void clear() {
10540
      setSuccessIsSet(false);
10541
      this.success = false;
10542
      this.se = null;
495 rajveer 10543
    }
10544
 
10545
    public boolean isSuccess() {
10546
      return this.success;
10547
    }
10548
 
3430 rajveer 10549
    public void setSuccess(boolean success) {
495 rajveer 10550
      this.success = success;
10551
      setSuccessIsSet(true);
10552
    }
10553
 
10554
    public void unsetSuccess() {
10555
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10556
    }
10557
 
3430 rajveer 10558
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10559
    public boolean isSetSuccess() {
10560
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10561
    }
10562
 
10563
    public void setSuccessIsSet(boolean value) {
10564
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10565
    }
10566
 
10567
    public HelperServiceException getSe() {
10568
      return this.se;
10569
    }
10570
 
3430 rajveer 10571
    public void setSe(HelperServiceException se) {
495 rajveer 10572
      this.se = se;
10573
    }
10574
 
10575
    public void unsetSe() {
10576
      this.se = null;
10577
    }
10578
 
3430 rajveer 10579
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10580
    public boolean isSetSe() {
10581
      return this.se != null;
10582
    }
10583
 
10584
    public void setSeIsSet(boolean value) {
10585
      if (!value) {
10586
        this.se = null;
10587
      }
10588
    }
10589
 
10590
    public void setFieldValue(_Fields field, Object value) {
10591
      switch (field) {
10592
      case SUCCESS:
10593
        if (value == null) {
10594
          unsetSuccess();
10595
        } else {
10596
          setSuccess((Boolean)value);
10597
        }
10598
        break;
10599
 
10600
      case SE:
10601
        if (value == null) {
10602
          unsetSe();
10603
        } else {
10604
          setSe((HelperServiceException)value);
10605
        }
10606
        break;
10607
 
10608
      }
10609
    }
10610
 
10611
    public Object getFieldValue(_Fields field) {
10612
      switch (field) {
10613
      case SUCCESS:
3430 rajveer 10614
        return Boolean.valueOf(isSuccess());
495 rajveer 10615
 
10616
      case SE:
10617
        return getSe();
10618
 
10619
      }
10620
      throw new IllegalStateException();
10621
    }
10622
 
3430 rajveer 10623
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10624
    public boolean isSet(_Fields field) {
10625
      if (field == null) {
10626
        throw new IllegalArgumentException();
10627
      }
495 rajveer 10628
 
10629
      switch (field) {
10630
      case SUCCESS:
10631
        return isSetSuccess();
10632
      case SE:
10633
        return isSetSe();
10634
      }
10635
      throw new IllegalStateException();
10636
    }
10637
 
10638
    @Override
10639
    public boolean equals(Object that) {
10640
      if (that == null)
10641
        return false;
10642
      if (that instanceof deleteUser_result)
10643
        return this.equals((deleteUser_result)that);
10644
      return false;
10645
    }
10646
 
10647
    public boolean equals(deleteUser_result that) {
10648
      if (that == null)
10649
        return false;
10650
 
10651
      boolean this_present_success = true;
10652
      boolean that_present_success = true;
10653
      if (this_present_success || that_present_success) {
10654
        if (!(this_present_success && that_present_success))
10655
          return false;
10656
        if (this.success != that.success)
10657
          return false;
10658
      }
10659
 
10660
      boolean this_present_se = true && this.isSetSe();
10661
      boolean that_present_se = true && that.isSetSe();
10662
      if (this_present_se || that_present_se) {
10663
        if (!(this_present_se && that_present_se))
10664
          return false;
10665
        if (!this.se.equals(that.se))
10666
          return false;
10667
      }
10668
 
10669
      return true;
10670
    }
10671
 
10672
    @Override
10673
    public int hashCode() {
10674
      return 0;
10675
    }
10676
 
10677
    public int compareTo(deleteUser_result other) {
10678
      if (!getClass().equals(other.getClass())) {
10679
        return getClass().getName().compareTo(other.getClass().getName());
10680
      }
10681
 
10682
      int lastComparison = 0;
10683
      deleteUser_result typedOther = (deleteUser_result)other;
10684
 
3430 rajveer 10685
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 10686
      if (lastComparison != 0) {
10687
        return lastComparison;
10688
      }
3430 rajveer 10689
      if (isSetSuccess()) {
10690
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10691
        if (lastComparison != 0) {
10692
          return lastComparison;
10693
        }
495 rajveer 10694
      }
3430 rajveer 10695
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 10696
      if (lastComparison != 0) {
10697
        return lastComparison;
10698
      }
3430 rajveer 10699
      if (isSetSe()) {
10700
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10701
        if (lastComparison != 0) {
10702
          return lastComparison;
10703
        }
495 rajveer 10704
      }
10705
      return 0;
10706
    }
10707
 
3430 rajveer 10708
    public _Fields fieldForId(int fieldId) {
10709
      return _Fields.findByThriftId(fieldId);
10710
    }
10711
 
10712
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10713
      org.apache.thrift.protocol.TField field;
495 rajveer 10714
      iprot.readStructBegin();
10715
      while (true)
10716
      {
10717
        field = iprot.readFieldBegin();
3430 rajveer 10718
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10719
          break;
10720
        }
3430 rajveer 10721
        switch (field.id) {
10722
          case 0: // SUCCESS
10723
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10724
              this.success = iprot.readBool();
10725
              setSuccessIsSet(true);
10726
            } else { 
10727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10728
            }
10729
            break;
10730
          case 1: // SE
10731
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10732
              this.se = new HelperServiceException();
10733
              this.se.read(iprot);
10734
            } else { 
10735
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10736
            }
10737
            break;
10738
          default:
10739
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10740
        }
3430 rajveer 10741
        iprot.readFieldEnd();
495 rajveer 10742
      }
10743
      iprot.readStructEnd();
10744
      validate();
10745
    }
10746
 
3430 rajveer 10747
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10748
      oprot.writeStructBegin(STRUCT_DESC);
10749
 
10750
      if (this.isSetSuccess()) {
10751
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10752
        oprot.writeBool(this.success);
10753
        oprot.writeFieldEnd();
10754
      } else if (this.isSetSe()) {
10755
        oprot.writeFieldBegin(SE_FIELD_DESC);
10756
        this.se.write(oprot);
10757
        oprot.writeFieldEnd();
10758
      }
10759
      oprot.writeFieldStop();
10760
      oprot.writeStructEnd();
10761
    }
10762
 
10763
    @Override
10764
    public String toString() {
10765
      StringBuilder sb = new StringBuilder("deleteUser_result(");
10766
      boolean first = true;
10767
 
10768
      sb.append("success:");
10769
      sb.append(this.success);
10770
      first = false;
10771
      if (!first) sb.append(", ");
10772
      sb.append("se:");
10773
      if (this.se == null) {
10774
        sb.append("null");
10775
      } else {
10776
        sb.append(this.se);
10777
      }
10778
      first = false;
10779
      sb.append(")");
10780
      return sb.toString();
10781
    }
10782
 
3430 rajveer 10783
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10784
      // check for required fields
10785
    }
10786
 
3430 rajveer 10787
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10788
      try {
10789
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10790
      } catch (org.apache.thrift.TException te) {
10791
        throw new java.io.IOException(te);
10792
      }
10793
    }
10794
 
10795
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10796
      try {
10797
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10798
      } catch (org.apache.thrift.TException te) {
10799
        throw new java.io.IOException(te);
10800
      }
10801
    }
10802
 
495 rajveer 10803
  }
10804
 
3430 rajveer 10805
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
10806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 10807
 
3430 rajveer 10808
    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);
10809
    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 10810
 
3430 rajveer 10811
    private String username; // required
10812
    private String password; // required
495 rajveer 10813
 
10814
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10815
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10816
      USERNAME((short)1, "username"),
10817
      PASSWORD((short)2, "password");
10818
 
10819
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10820
 
10821
      static {
10822
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10823
          byName.put(field.getFieldName(), field);
10824
        }
10825
      }
10826
 
10827
      /**
10828
       * Find the _Fields constant that matches fieldId, or null if its not found.
10829
       */
10830
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10831
        switch(fieldId) {
10832
          case 1: // USERNAME
10833
            return USERNAME;
10834
          case 2: // PASSWORD
10835
            return PASSWORD;
10836
          default:
10837
            return null;
10838
        }
495 rajveer 10839
      }
10840
 
10841
      /**
10842
       * Find the _Fields constant that matches fieldId, throwing an exception
10843
       * if it is not found.
10844
       */
10845
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10846
        _Fields fields = findByThriftId(fieldId);
10847
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10848
        return fields;
10849
      }
10850
 
10851
      /**
10852
       * Find the _Fields constant that matches name, or null if its not found.
10853
       */
10854
      public static _Fields findByName(String name) {
10855
        return byName.get(name);
10856
      }
10857
 
10858
      private final short _thriftId;
10859
      private final String _fieldName;
10860
 
10861
      _Fields(short thriftId, String fieldName) {
10862
        _thriftId = thriftId;
10863
        _fieldName = fieldName;
10864
      }
10865
 
10866
      public short getThriftFieldId() {
10867
        return _thriftId;
10868
      }
10869
 
10870
      public String getFieldName() {
10871
        return _fieldName;
10872
      }
10873
    }
10874
 
10875
    // isset id assignments
10876
 
3430 rajveer 10877
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10878
    static {
3430 rajveer 10879
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10880
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10881
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10882
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10883
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10884
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10885
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 10886
    }
10887
 
2443 chandransh 10888
    public authenticateDashboardUser_args() {
495 rajveer 10889
    }
10890
 
2443 chandransh 10891
    public authenticateDashboardUser_args(
495 rajveer 10892
      String username,
10893
      String password)
10894
    {
10895
      this();
10896
      this.username = username;
10897
      this.password = password;
10898
    }
10899
 
10900
    /**
10901
     * Performs a deep copy on <i>other</i>.
10902
     */
2443 chandransh 10903
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 10904
      if (other.isSetUsername()) {
10905
        this.username = other.username;
10906
      }
10907
      if (other.isSetPassword()) {
10908
        this.password = other.password;
10909
      }
10910
    }
10911
 
2443 chandransh 10912
    public authenticateDashboardUser_args deepCopy() {
10913
      return new authenticateDashboardUser_args(this);
495 rajveer 10914
    }
10915
 
3430 rajveer 10916
    @Override
10917
    public void clear() {
10918
      this.username = null;
10919
      this.password = null;
495 rajveer 10920
    }
10921
 
10922
    public String getUsername() {
10923
      return this.username;
10924
    }
10925
 
3430 rajveer 10926
    public void setUsername(String username) {
495 rajveer 10927
      this.username = username;
10928
    }
10929
 
10930
    public void unsetUsername() {
10931
      this.username = null;
10932
    }
10933
 
3430 rajveer 10934
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10935
    public boolean isSetUsername() {
10936
      return this.username != null;
10937
    }
10938
 
10939
    public void setUsernameIsSet(boolean value) {
10940
      if (!value) {
10941
        this.username = null;
10942
      }
10943
    }
10944
 
10945
    public String getPassword() {
10946
      return this.password;
10947
    }
10948
 
3430 rajveer 10949
    public void setPassword(String password) {
495 rajveer 10950
      this.password = password;
10951
    }
10952
 
10953
    public void unsetPassword() {
10954
      this.password = null;
10955
    }
10956
 
3430 rajveer 10957
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10958
    public boolean isSetPassword() {
10959
      return this.password != null;
10960
    }
10961
 
10962
    public void setPasswordIsSet(boolean value) {
10963
      if (!value) {
10964
        this.password = null;
10965
      }
10966
    }
10967
 
10968
    public void setFieldValue(_Fields field, Object value) {
10969
      switch (field) {
10970
      case USERNAME:
10971
        if (value == null) {
10972
          unsetUsername();
10973
        } else {
10974
          setUsername((String)value);
10975
        }
10976
        break;
10977
 
10978
      case PASSWORD:
10979
        if (value == null) {
10980
          unsetPassword();
10981
        } else {
10982
          setPassword((String)value);
10983
        }
10984
        break;
10985
 
10986
      }
10987
    }
10988
 
10989
    public Object getFieldValue(_Fields field) {
10990
      switch (field) {
10991
      case USERNAME:
10992
        return getUsername();
10993
 
10994
      case PASSWORD:
10995
        return getPassword();
10996
 
10997
      }
10998
      throw new IllegalStateException();
10999
    }
11000
 
3430 rajveer 11001
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11002
    public boolean isSet(_Fields field) {
11003
      if (field == null) {
11004
        throw new IllegalArgumentException();
11005
      }
495 rajveer 11006
 
11007
      switch (field) {
11008
      case USERNAME:
11009
        return isSetUsername();
11010
      case PASSWORD:
11011
        return isSetPassword();
11012
      }
11013
      throw new IllegalStateException();
11014
    }
11015
 
11016
    @Override
11017
    public boolean equals(Object that) {
11018
      if (that == null)
11019
        return false;
2443 chandransh 11020
      if (that instanceof authenticateDashboardUser_args)
11021
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 11022
      return false;
11023
    }
11024
 
2443 chandransh 11025
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 11026
      if (that == null)
11027
        return false;
11028
 
11029
      boolean this_present_username = true && this.isSetUsername();
11030
      boolean that_present_username = true && that.isSetUsername();
11031
      if (this_present_username || that_present_username) {
11032
        if (!(this_present_username && that_present_username))
11033
          return false;
11034
        if (!this.username.equals(that.username))
11035
          return false;
11036
      }
11037
 
11038
      boolean this_present_password = true && this.isSetPassword();
11039
      boolean that_present_password = true && that.isSetPassword();
11040
      if (this_present_password || that_present_password) {
11041
        if (!(this_present_password && that_present_password))
11042
          return false;
11043
        if (!this.password.equals(that.password))
11044
          return false;
11045
      }
11046
 
11047
      return true;
11048
    }
11049
 
11050
    @Override
11051
    public int hashCode() {
11052
      return 0;
11053
    }
11054
 
2443 chandransh 11055
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 11056
      if (!getClass().equals(other.getClass())) {
11057
        return getClass().getName().compareTo(other.getClass().getName());
11058
      }
11059
 
11060
      int lastComparison = 0;
2443 chandransh 11061
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 11062
 
3430 rajveer 11063
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11064
      if (lastComparison != 0) {
11065
        return lastComparison;
11066
      }
3430 rajveer 11067
      if (isSetUsername()) {
11068
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11069
        if (lastComparison != 0) {
11070
          return lastComparison;
11071
        }
495 rajveer 11072
      }
3430 rajveer 11073
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 11074
      if (lastComparison != 0) {
11075
        return lastComparison;
11076
      }
3430 rajveer 11077
      if (isSetPassword()) {
11078
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11079
        if (lastComparison != 0) {
11080
          return lastComparison;
11081
        }
495 rajveer 11082
      }
11083
      return 0;
11084
    }
11085
 
3430 rajveer 11086
    public _Fields fieldForId(int fieldId) {
11087
      return _Fields.findByThriftId(fieldId);
11088
    }
11089
 
11090
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11091
      org.apache.thrift.protocol.TField field;
495 rajveer 11092
      iprot.readStructBegin();
11093
      while (true)
11094
      {
11095
        field = iprot.readFieldBegin();
3430 rajveer 11096
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11097
          break;
11098
        }
3430 rajveer 11099
        switch (field.id) {
11100
          case 1: // USERNAME
11101
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11102
              this.username = iprot.readString();
11103
            } else { 
11104
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11105
            }
11106
            break;
11107
          case 2: // PASSWORD
11108
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11109
              this.password = iprot.readString();
11110
            } else { 
11111
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11112
            }
11113
            break;
11114
          default:
11115
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11116
        }
3430 rajveer 11117
        iprot.readFieldEnd();
495 rajveer 11118
      }
11119
      iprot.readStructEnd();
11120
      validate();
11121
    }
11122
 
3430 rajveer 11123
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11124
      validate();
11125
 
11126
      oprot.writeStructBegin(STRUCT_DESC);
11127
      if (this.username != null) {
11128
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11129
        oprot.writeString(this.username);
11130
        oprot.writeFieldEnd();
11131
      }
11132
      if (this.password != null) {
11133
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
11134
        oprot.writeString(this.password);
11135
        oprot.writeFieldEnd();
11136
      }
11137
      oprot.writeFieldStop();
11138
      oprot.writeStructEnd();
11139
    }
11140
 
11141
    @Override
11142
    public String toString() {
2443 chandransh 11143
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 11144
      boolean first = true;
11145
 
11146
      sb.append("username:");
11147
      if (this.username == null) {
11148
        sb.append("null");
11149
      } else {
11150
        sb.append(this.username);
11151
      }
11152
      first = false;
11153
      if (!first) sb.append(", ");
11154
      sb.append("password:");
11155
      if (this.password == null) {
11156
        sb.append("null");
11157
      } else {
11158
        sb.append(this.password);
11159
      }
11160
      first = false;
11161
      sb.append(")");
11162
      return sb.toString();
11163
    }
11164
 
3430 rajveer 11165
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11166
      // check for required fields
11167
    }
11168
 
3430 rajveer 11169
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11170
      try {
11171
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11172
      } catch (org.apache.thrift.TException te) {
11173
        throw new java.io.IOException(te);
11174
      }
11175
    }
11176
 
11177
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11178
      try {
11179
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11180
      } catch (org.apache.thrift.TException te) {
11181
        throw new java.io.IOException(te);
11182
      }
11183
    }
11184
 
495 rajveer 11185
  }
11186
 
3430 rajveer 11187
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
11188
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 11189
 
3430 rajveer 11190
    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);
11191
    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 11192
 
3430 rajveer 11193
    private DashboardUser success; // required
11194
    private HelperServiceException se; // required
495 rajveer 11195
 
11196
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11197
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11198
      SUCCESS((short)0, "success"),
11199
      SE((short)1, "se");
11200
 
11201
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11202
 
11203
      static {
11204
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11205
          byName.put(field.getFieldName(), field);
11206
        }
11207
      }
11208
 
11209
      /**
11210
       * Find the _Fields constant that matches fieldId, or null if its not found.
11211
       */
11212
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11213
        switch(fieldId) {
11214
          case 0: // SUCCESS
11215
            return SUCCESS;
11216
          case 1: // SE
11217
            return SE;
11218
          default:
11219
            return null;
11220
        }
495 rajveer 11221
      }
11222
 
11223
      /**
11224
       * Find the _Fields constant that matches fieldId, throwing an exception
11225
       * if it is not found.
11226
       */
11227
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11228
        _Fields fields = findByThriftId(fieldId);
11229
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11230
        return fields;
11231
      }
11232
 
11233
      /**
11234
       * Find the _Fields constant that matches name, or null if its not found.
11235
       */
11236
      public static _Fields findByName(String name) {
11237
        return byName.get(name);
11238
      }
11239
 
11240
      private final short _thriftId;
11241
      private final String _fieldName;
11242
 
11243
      _Fields(short thriftId, String fieldName) {
11244
        _thriftId = thriftId;
11245
        _fieldName = fieldName;
11246
      }
11247
 
11248
      public short getThriftFieldId() {
11249
        return _thriftId;
11250
      }
11251
 
11252
      public String getFieldName() {
11253
        return _fieldName;
11254
      }
11255
    }
11256
 
11257
    // isset id assignments
11258
 
3430 rajveer 11259
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11260
    static {
3430 rajveer 11261
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11262
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11263
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
11264
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11265
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11266
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11267
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 11268
    }
11269
 
2443 chandransh 11270
    public authenticateDashboardUser_result() {
495 rajveer 11271
    }
11272
 
2443 chandransh 11273
    public authenticateDashboardUser_result(
11274
      DashboardUser success,
495 rajveer 11275
      HelperServiceException se)
11276
    {
11277
      this();
11278
      this.success = success;
11279
      this.se = se;
11280
    }
11281
 
11282
    /**
11283
     * Performs a deep copy on <i>other</i>.
11284
     */
2443 chandransh 11285
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
11286
      if (other.isSetSuccess()) {
11287
        this.success = new DashboardUser(other.success);
11288
      }
495 rajveer 11289
      if (other.isSetSe()) {
11290
        this.se = new HelperServiceException(other.se);
11291
      }
11292
    }
11293
 
2443 chandransh 11294
    public authenticateDashboardUser_result deepCopy() {
11295
      return new authenticateDashboardUser_result(this);
495 rajveer 11296
    }
11297
 
3430 rajveer 11298
    @Override
11299
    public void clear() {
11300
      this.success = null;
11301
      this.se = null;
495 rajveer 11302
    }
11303
 
2443 chandransh 11304
    public DashboardUser getSuccess() {
495 rajveer 11305
      return this.success;
11306
    }
11307
 
3430 rajveer 11308
    public void setSuccess(DashboardUser success) {
495 rajveer 11309
      this.success = success;
11310
    }
11311
 
11312
    public void unsetSuccess() {
2443 chandransh 11313
      this.success = null;
495 rajveer 11314
    }
11315
 
3430 rajveer 11316
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11317
    public boolean isSetSuccess() {
2443 chandransh 11318
      return this.success != null;
495 rajveer 11319
    }
11320
 
11321
    public void setSuccessIsSet(boolean value) {
2443 chandransh 11322
      if (!value) {
11323
        this.success = null;
11324
      }
495 rajveer 11325
    }
11326
 
11327
    public HelperServiceException getSe() {
11328
      return this.se;
11329
    }
11330
 
3430 rajveer 11331
    public void setSe(HelperServiceException se) {
495 rajveer 11332
      this.se = se;
11333
    }
11334
 
11335
    public void unsetSe() {
11336
      this.se = null;
11337
    }
11338
 
3430 rajveer 11339
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11340
    public boolean isSetSe() {
11341
      return this.se != null;
11342
    }
11343
 
11344
    public void setSeIsSet(boolean value) {
11345
      if (!value) {
11346
        this.se = null;
11347
      }
11348
    }
11349
 
11350
    public void setFieldValue(_Fields field, Object value) {
11351
      switch (field) {
11352
      case SUCCESS:
11353
        if (value == null) {
11354
          unsetSuccess();
11355
        } else {
2443 chandransh 11356
          setSuccess((DashboardUser)value);
495 rajveer 11357
        }
11358
        break;
11359
 
11360
      case SE:
11361
        if (value == null) {
11362
          unsetSe();
11363
        } else {
11364
          setSe((HelperServiceException)value);
11365
        }
11366
        break;
11367
 
11368
      }
11369
    }
11370
 
11371
    public Object getFieldValue(_Fields field) {
11372
      switch (field) {
11373
      case SUCCESS:
2443 chandransh 11374
        return getSuccess();
495 rajveer 11375
 
11376
      case SE:
11377
        return getSe();
11378
 
11379
      }
11380
      throw new IllegalStateException();
11381
    }
11382
 
3430 rajveer 11383
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11384
    public boolean isSet(_Fields field) {
11385
      if (field == null) {
11386
        throw new IllegalArgumentException();
11387
      }
495 rajveer 11388
 
11389
      switch (field) {
11390
      case SUCCESS:
11391
        return isSetSuccess();
11392
      case SE:
11393
        return isSetSe();
11394
      }
11395
      throw new IllegalStateException();
11396
    }
11397
 
11398
    @Override
11399
    public boolean equals(Object that) {
11400
      if (that == null)
11401
        return false;
2443 chandransh 11402
      if (that instanceof authenticateDashboardUser_result)
11403
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 11404
      return false;
11405
    }
11406
 
2443 chandransh 11407
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 11408
      if (that == null)
11409
        return false;
11410
 
2443 chandransh 11411
      boolean this_present_success = true && this.isSetSuccess();
11412
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 11413
      if (this_present_success || that_present_success) {
11414
        if (!(this_present_success && that_present_success))
11415
          return false;
2443 chandransh 11416
        if (!this.success.equals(that.success))
495 rajveer 11417
          return false;
11418
      }
11419
 
11420
      boolean this_present_se = true && this.isSetSe();
11421
      boolean that_present_se = true && that.isSetSe();
11422
      if (this_present_se || that_present_se) {
11423
        if (!(this_present_se && that_present_se))
11424
          return false;
11425
        if (!this.se.equals(that.se))
11426
          return false;
11427
      }
11428
 
11429
      return true;
11430
    }
11431
 
11432
    @Override
11433
    public int hashCode() {
11434
      return 0;
11435
    }
11436
 
2443 chandransh 11437
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 11438
      if (!getClass().equals(other.getClass())) {
11439
        return getClass().getName().compareTo(other.getClass().getName());
11440
      }
11441
 
11442
      int lastComparison = 0;
2443 chandransh 11443
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 11444
 
3430 rajveer 11445
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11446
      if (lastComparison != 0) {
11447
        return lastComparison;
11448
      }
3430 rajveer 11449
      if (isSetSuccess()) {
11450
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11451
        if (lastComparison != 0) {
11452
          return lastComparison;
11453
        }
495 rajveer 11454
      }
3430 rajveer 11455
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11456
      if (lastComparison != 0) {
11457
        return lastComparison;
11458
      }
3430 rajveer 11459
      if (isSetSe()) {
11460
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11461
        if (lastComparison != 0) {
11462
          return lastComparison;
11463
        }
495 rajveer 11464
      }
11465
      return 0;
11466
    }
11467
 
3430 rajveer 11468
    public _Fields fieldForId(int fieldId) {
11469
      return _Fields.findByThriftId(fieldId);
11470
    }
11471
 
11472
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11473
      org.apache.thrift.protocol.TField field;
495 rajveer 11474
      iprot.readStructBegin();
11475
      while (true)
11476
      {
11477
        field = iprot.readFieldBegin();
3430 rajveer 11478
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11479
          break;
11480
        }
3430 rajveer 11481
        switch (field.id) {
11482
          case 0: // SUCCESS
11483
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11484
              this.success = new DashboardUser();
11485
              this.success.read(iprot);
11486
            } else { 
11487
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11488
            }
11489
            break;
11490
          case 1: // SE
11491
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11492
              this.se = new HelperServiceException();
11493
              this.se.read(iprot);
11494
            } else { 
11495
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11496
            }
11497
            break;
11498
          default:
11499
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11500
        }
3430 rajveer 11501
        iprot.readFieldEnd();
495 rajveer 11502
      }
11503
      iprot.readStructEnd();
11504
      validate();
11505
    }
11506
 
3430 rajveer 11507
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11508
      oprot.writeStructBegin(STRUCT_DESC);
11509
 
11510
      if (this.isSetSuccess()) {
11511
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 11512
        this.success.write(oprot);
495 rajveer 11513
        oprot.writeFieldEnd();
11514
      } else if (this.isSetSe()) {
11515
        oprot.writeFieldBegin(SE_FIELD_DESC);
11516
        this.se.write(oprot);
11517
        oprot.writeFieldEnd();
11518
      }
11519
      oprot.writeFieldStop();
11520
      oprot.writeStructEnd();
11521
    }
11522
 
11523
    @Override
11524
    public String toString() {
2443 chandransh 11525
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 11526
      boolean first = true;
11527
 
11528
      sb.append("success:");
2443 chandransh 11529
      if (this.success == null) {
11530
        sb.append("null");
11531
      } else {
11532
        sb.append(this.success);
11533
      }
495 rajveer 11534
      first = false;
11535
      if (!first) sb.append(", ");
11536
      sb.append("se:");
11537
      if (this.se == null) {
11538
        sb.append("null");
11539
      } else {
11540
        sb.append(this.se);
11541
      }
11542
      first = false;
11543
      sb.append(")");
11544
      return sb.toString();
11545
    }
11546
 
3430 rajveer 11547
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11548
      // check for required fields
11549
    }
11550
 
3430 rajveer 11551
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11552
      try {
11553
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11554
      } catch (org.apache.thrift.TException te) {
11555
        throw new java.io.IOException(te);
11556
      }
11557
    }
11558
 
11559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11560
      try {
11561
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11562
      } catch (org.apache.thrift.TException te) {
11563
        throw new java.io.IOException(te);
11564
      }
11565
    }
11566
 
495 rajveer 11567
  }
11568
 
3430 rajveer 11569
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
11570
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 11571
 
3430 rajveer 11572
    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);
11573
    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);
11574
    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 11575
 
3430 rajveer 11576
    private String username; // required
11577
    private String oldPassword; // required
11578
    private String newPassword; // required
495 rajveer 11579
 
11580
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11581
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11582
      USERNAME((short)1, "username"),
11583
      OLD_PASSWORD((short)2, "oldPassword"),
11584
      NEW_PASSWORD((short)3, "newPassword");
11585
 
11586
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11587
 
11588
      static {
11589
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11590
          byName.put(field.getFieldName(), field);
11591
        }
11592
      }
11593
 
11594
      /**
11595
       * Find the _Fields constant that matches fieldId, or null if its not found.
11596
       */
11597
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11598
        switch(fieldId) {
11599
          case 1: // USERNAME
11600
            return USERNAME;
11601
          case 2: // OLD_PASSWORD
11602
            return OLD_PASSWORD;
11603
          case 3: // NEW_PASSWORD
11604
            return NEW_PASSWORD;
11605
          default:
11606
            return null;
11607
        }
495 rajveer 11608
      }
11609
 
11610
      /**
11611
       * Find the _Fields constant that matches fieldId, throwing an exception
11612
       * if it is not found.
11613
       */
11614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11615
        _Fields fields = findByThriftId(fieldId);
11616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11617
        return fields;
11618
      }
11619
 
11620
      /**
11621
       * Find the _Fields constant that matches name, or null if its not found.
11622
       */
11623
      public static _Fields findByName(String name) {
11624
        return byName.get(name);
11625
      }
11626
 
11627
      private final short _thriftId;
11628
      private final String _fieldName;
11629
 
11630
      _Fields(short thriftId, String fieldName) {
11631
        _thriftId = thriftId;
11632
        _fieldName = fieldName;
11633
      }
11634
 
11635
      public short getThriftFieldId() {
11636
        return _thriftId;
11637
      }
11638
 
11639
      public String getFieldName() {
11640
        return _fieldName;
11641
      }
11642
    }
11643
 
11644
    // isset id assignments
11645
 
3430 rajveer 11646
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11647
    static {
3430 rajveer 11648
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11649
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11651
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11653
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 11657
    }
11658
 
11659
    public updatePassword_args() {
11660
    }
11661
 
11662
    public updatePassword_args(
11663
      String username,
11664
      String oldPassword,
11665
      String newPassword)
11666
    {
11667
      this();
11668
      this.username = username;
11669
      this.oldPassword = oldPassword;
11670
      this.newPassword = newPassword;
11671
    }
11672
 
11673
    /**
11674
     * Performs a deep copy on <i>other</i>.
11675
     */
11676
    public updatePassword_args(updatePassword_args other) {
11677
      if (other.isSetUsername()) {
11678
        this.username = other.username;
11679
      }
11680
      if (other.isSetOldPassword()) {
11681
        this.oldPassword = other.oldPassword;
11682
      }
11683
      if (other.isSetNewPassword()) {
11684
        this.newPassword = other.newPassword;
11685
      }
11686
    }
11687
 
11688
    public updatePassword_args deepCopy() {
11689
      return new updatePassword_args(this);
11690
    }
11691
 
3430 rajveer 11692
    @Override
11693
    public void clear() {
11694
      this.username = null;
11695
      this.oldPassword = null;
11696
      this.newPassword = null;
495 rajveer 11697
    }
11698
 
11699
    public String getUsername() {
11700
      return this.username;
11701
    }
11702
 
3430 rajveer 11703
    public void setUsername(String username) {
495 rajveer 11704
      this.username = username;
11705
    }
11706
 
11707
    public void unsetUsername() {
11708
      this.username = null;
11709
    }
11710
 
3430 rajveer 11711
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11712
    public boolean isSetUsername() {
11713
      return this.username != null;
11714
    }
11715
 
11716
    public void setUsernameIsSet(boolean value) {
11717
      if (!value) {
11718
        this.username = null;
11719
      }
11720
    }
11721
 
11722
    public String getOldPassword() {
11723
      return this.oldPassword;
11724
    }
11725
 
3430 rajveer 11726
    public void setOldPassword(String oldPassword) {
495 rajveer 11727
      this.oldPassword = oldPassword;
11728
    }
11729
 
11730
    public void unsetOldPassword() {
11731
      this.oldPassword = null;
11732
    }
11733
 
3430 rajveer 11734
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11735
    public boolean isSetOldPassword() {
11736
      return this.oldPassword != null;
11737
    }
11738
 
11739
    public void setOldPasswordIsSet(boolean value) {
11740
      if (!value) {
11741
        this.oldPassword = null;
11742
      }
11743
    }
11744
 
11745
    public String getNewPassword() {
11746
      return this.newPassword;
11747
    }
11748
 
3430 rajveer 11749
    public void setNewPassword(String newPassword) {
495 rajveer 11750
      this.newPassword = newPassword;
11751
    }
11752
 
11753
    public void unsetNewPassword() {
11754
      this.newPassword = null;
11755
    }
11756
 
3430 rajveer 11757
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 11758
    public boolean isSetNewPassword() {
11759
      return this.newPassword != null;
11760
    }
11761
 
11762
    public void setNewPasswordIsSet(boolean value) {
11763
      if (!value) {
11764
        this.newPassword = null;
11765
      }
11766
    }
11767
 
11768
    public void setFieldValue(_Fields field, Object value) {
11769
      switch (field) {
11770
      case USERNAME:
11771
        if (value == null) {
11772
          unsetUsername();
11773
        } else {
11774
          setUsername((String)value);
11775
        }
11776
        break;
11777
 
11778
      case OLD_PASSWORD:
11779
        if (value == null) {
11780
          unsetOldPassword();
11781
        } else {
11782
          setOldPassword((String)value);
11783
        }
11784
        break;
11785
 
11786
      case NEW_PASSWORD:
11787
        if (value == null) {
11788
          unsetNewPassword();
11789
        } else {
11790
          setNewPassword((String)value);
11791
        }
11792
        break;
11793
 
11794
      }
11795
    }
11796
 
11797
    public Object getFieldValue(_Fields field) {
11798
      switch (field) {
11799
      case USERNAME:
11800
        return getUsername();
11801
 
11802
      case OLD_PASSWORD:
11803
        return getOldPassword();
11804
 
11805
      case NEW_PASSWORD:
11806
        return getNewPassword();
11807
 
11808
      }
11809
      throw new IllegalStateException();
11810
    }
11811
 
3430 rajveer 11812
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11813
    public boolean isSet(_Fields field) {
11814
      if (field == null) {
11815
        throw new IllegalArgumentException();
11816
      }
495 rajveer 11817
 
11818
      switch (field) {
11819
      case USERNAME:
11820
        return isSetUsername();
11821
      case OLD_PASSWORD:
11822
        return isSetOldPassword();
11823
      case NEW_PASSWORD:
11824
        return isSetNewPassword();
11825
      }
11826
      throw new IllegalStateException();
11827
    }
11828
 
11829
    @Override
11830
    public boolean equals(Object that) {
11831
      if (that == null)
11832
        return false;
11833
      if (that instanceof updatePassword_args)
11834
        return this.equals((updatePassword_args)that);
11835
      return false;
11836
    }
11837
 
11838
    public boolean equals(updatePassword_args that) {
11839
      if (that == null)
11840
        return false;
11841
 
11842
      boolean this_present_username = true && this.isSetUsername();
11843
      boolean that_present_username = true && that.isSetUsername();
11844
      if (this_present_username || that_present_username) {
11845
        if (!(this_present_username && that_present_username))
11846
          return false;
11847
        if (!this.username.equals(that.username))
11848
          return false;
11849
      }
11850
 
11851
      boolean this_present_oldPassword = true && this.isSetOldPassword();
11852
      boolean that_present_oldPassword = true && that.isSetOldPassword();
11853
      if (this_present_oldPassword || that_present_oldPassword) {
11854
        if (!(this_present_oldPassword && that_present_oldPassword))
11855
          return false;
11856
        if (!this.oldPassword.equals(that.oldPassword))
11857
          return false;
11858
      }
11859
 
11860
      boolean this_present_newPassword = true && this.isSetNewPassword();
11861
      boolean that_present_newPassword = true && that.isSetNewPassword();
11862
      if (this_present_newPassword || that_present_newPassword) {
11863
        if (!(this_present_newPassword && that_present_newPassword))
11864
          return false;
11865
        if (!this.newPassword.equals(that.newPassword))
11866
          return false;
11867
      }
11868
 
11869
      return true;
11870
    }
11871
 
11872
    @Override
11873
    public int hashCode() {
11874
      return 0;
11875
    }
11876
 
11877
    public int compareTo(updatePassword_args other) {
11878
      if (!getClass().equals(other.getClass())) {
11879
        return getClass().getName().compareTo(other.getClass().getName());
11880
      }
11881
 
11882
      int lastComparison = 0;
11883
      updatePassword_args typedOther = (updatePassword_args)other;
11884
 
3430 rajveer 11885
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11886
      if (lastComparison != 0) {
11887
        return lastComparison;
11888
      }
3430 rajveer 11889
      if (isSetUsername()) {
11890
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11891
        if (lastComparison != 0) {
11892
          return lastComparison;
11893
        }
495 rajveer 11894
      }
3430 rajveer 11895
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 11896
      if (lastComparison != 0) {
11897
        return lastComparison;
11898
      }
3430 rajveer 11899
      if (isSetOldPassword()) {
11900
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
11901
        if (lastComparison != 0) {
11902
          return lastComparison;
11903
        }
495 rajveer 11904
      }
3430 rajveer 11905
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 11906
      if (lastComparison != 0) {
11907
        return lastComparison;
11908
      }
3430 rajveer 11909
      if (isSetNewPassword()) {
11910
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
11911
        if (lastComparison != 0) {
11912
          return lastComparison;
11913
        }
495 rajveer 11914
      }
11915
      return 0;
11916
    }
11917
 
3430 rajveer 11918
    public _Fields fieldForId(int fieldId) {
11919
      return _Fields.findByThriftId(fieldId);
11920
    }
11921
 
11922
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11923
      org.apache.thrift.protocol.TField field;
495 rajveer 11924
      iprot.readStructBegin();
11925
      while (true)
11926
      {
11927
        field = iprot.readFieldBegin();
3430 rajveer 11928
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11929
          break;
11930
        }
3430 rajveer 11931
        switch (field.id) {
11932
          case 1: // USERNAME
11933
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11934
              this.username = iprot.readString();
11935
            } else { 
11936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11937
            }
11938
            break;
11939
          case 2: // OLD_PASSWORD
11940
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11941
              this.oldPassword = iprot.readString();
11942
            } else { 
11943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11944
            }
11945
            break;
11946
          case 3: // NEW_PASSWORD
11947
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11948
              this.newPassword = iprot.readString();
11949
            } else { 
11950
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11951
            }
11952
            break;
11953
          default:
11954
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11955
        }
3430 rajveer 11956
        iprot.readFieldEnd();
495 rajveer 11957
      }
11958
      iprot.readStructEnd();
11959
      validate();
11960
    }
11961
 
3430 rajveer 11962
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11963
      validate();
11964
 
11965
      oprot.writeStructBegin(STRUCT_DESC);
11966
      if (this.username != null) {
11967
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11968
        oprot.writeString(this.username);
11969
        oprot.writeFieldEnd();
11970
      }
11971
      if (this.oldPassword != null) {
11972
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
11973
        oprot.writeString(this.oldPassword);
11974
        oprot.writeFieldEnd();
11975
      }
11976
      if (this.newPassword != null) {
11977
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
11978
        oprot.writeString(this.newPassword);
11979
        oprot.writeFieldEnd();
11980
      }
11981
      oprot.writeFieldStop();
11982
      oprot.writeStructEnd();
11983
    }
11984
 
11985
    @Override
11986
    public String toString() {
11987
      StringBuilder sb = new StringBuilder("updatePassword_args(");
11988
      boolean first = true;
11989
 
11990
      sb.append("username:");
11991
      if (this.username == null) {
11992
        sb.append("null");
11993
      } else {
11994
        sb.append(this.username);
11995
      }
11996
      first = false;
11997
      if (!first) sb.append(", ");
11998
      sb.append("oldPassword:");
11999
      if (this.oldPassword == null) {
12000
        sb.append("null");
12001
      } else {
12002
        sb.append(this.oldPassword);
12003
      }
12004
      first = false;
12005
      if (!first) sb.append(", ");
12006
      sb.append("newPassword:");
12007
      if (this.newPassword == null) {
12008
        sb.append("null");
12009
      } else {
12010
        sb.append(this.newPassword);
12011
      }
12012
      first = false;
12013
      sb.append(")");
12014
      return sb.toString();
12015
    }
12016
 
3430 rajveer 12017
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12018
      // check for required fields
12019
    }
12020
 
3430 rajveer 12021
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12022
      try {
12023
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12024
      } catch (org.apache.thrift.TException te) {
12025
        throw new java.io.IOException(te);
12026
      }
12027
    }
12028
 
12029
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12030
      try {
12031
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12032
      } catch (org.apache.thrift.TException te) {
12033
        throw new java.io.IOException(te);
12034
      }
12035
    }
12036
 
495 rajveer 12037
  }
12038
 
3430 rajveer 12039
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
12040
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 12041
 
3430 rajveer 12042
    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);
12043
    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 12044
 
3430 rajveer 12045
    private boolean success; // required
12046
    private HelperServiceException se; // required
495 rajveer 12047
 
12048
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12049
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 12050
      SUCCESS((short)0, "success"),
12051
      SE((short)1, "se");
12052
 
12053
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12054
 
12055
      static {
12056
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12057
          byName.put(field.getFieldName(), field);
12058
        }
12059
      }
12060
 
12061
      /**
12062
       * Find the _Fields constant that matches fieldId, or null if its not found.
12063
       */
12064
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12065
        switch(fieldId) {
12066
          case 0: // SUCCESS
12067
            return SUCCESS;
12068
          case 1: // SE
12069
            return SE;
12070
          default:
12071
            return null;
12072
        }
495 rajveer 12073
      }
12074
 
12075
      /**
12076
       * Find the _Fields constant that matches fieldId, throwing an exception
12077
       * if it is not found.
12078
       */
12079
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12080
        _Fields fields = findByThriftId(fieldId);
12081
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12082
        return fields;
12083
      }
12084
 
12085
      /**
12086
       * Find the _Fields constant that matches name, or null if its not found.
12087
       */
12088
      public static _Fields findByName(String name) {
12089
        return byName.get(name);
12090
      }
12091
 
12092
      private final short _thriftId;
12093
      private final String _fieldName;
12094
 
12095
      _Fields(short thriftId, String fieldName) {
12096
        _thriftId = thriftId;
12097
        _fieldName = fieldName;
12098
      }
12099
 
12100
      public short getThriftFieldId() {
12101
        return _thriftId;
12102
      }
12103
 
12104
      public String getFieldName() {
12105
        return _fieldName;
12106
      }
12107
    }
12108
 
12109
    // isset id assignments
12110
    private static final int __SUCCESS_ISSET_ID = 0;
12111
    private BitSet __isset_bit_vector = new BitSet(1);
12112
 
3430 rajveer 12113
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12114
    static {
3430 rajveer 12115
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12116
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
12118
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12119
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12120
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12121
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 12122
    }
12123
 
12124
    public updatePassword_result() {
12125
    }
12126
 
12127
    public updatePassword_result(
12128
      boolean success,
12129
      HelperServiceException se)
12130
    {
12131
      this();
12132
      this.success = success;
12133
      setSuccessIsSet(true);
12134
      this.se = se;
12135
    }
12136
 
12137
    /**
12138
     * Performs a deep copy on <i>other</i>.
12139
     */
12140
    public updatePassword_result(updatePassword_result other) {
12141
      __isset_bit_vector.clear();
12142
      __isset_bit_vector.or(other.__isset_bit_vector);
12143
      this.success = other.success;
12144
      if (other.isSetSe()) {
12145
        this.se = new HelperServiceException(other.se);
12146
      }
12147
    }
12148
 
12149
    public updatePassword_result deepCopy() {
12150
      return new updatePassword_result(this);
12151
    }
12152
 
3430 rajveer 12153
    @Override
12154
    public void clear() {
12155
      setSuccessIsSet(false);
12156
      this.success = false;
12157
      this.se = null;
495 rajveer 12158
    }
12159
 
12160
    public boolean isSuccess() {
12161
      return this.success;
12162
    }
12163
 
3430 rajveer 12164
    public void setSuccess(boolean success) {
495 rajveer 12165
      this.success = success;
12166
      setSuccessIsSet(true);
12167
    }
12168
 
12169
    public void unsetSuccess() {
12170
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12171
    }
12172
 
3430 rajveer 12173
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 12174
    public boolean isSetSuccess() {
12175
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12176
    }
12177
 
12178
    public void setSuccessIsSet(boolean value) {
12179
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12180
    }
12181
 
12182
    public HelperServiceException getSe() {
12183
      return this.se;
12184
    }
12185
 
3430 rajveer 12186
    public void setSe(HelperServiceException se) {
495 rajveer 12187
      this.se = se;
12188
    }
12189
 
12190
    public void unsetSe() {
12191
      this.se = null;
12192
    }
12193
 
3430 rajveer 12194
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 12195
    public boolean isSetSe() {
12196
      return this.se != null;
12197
    }
12198
 
12199
    public void setSeIsSet(boolean value) {
12200
      if (!value) {
12201
        this.se = null;
12202
      }
12203
    }
12204
 
12205
    public void setFieldValue(_Fields field, Object value) {
12206
      switch (field) {
12207
      case SUCCESS:
12208
        if (value == null) {
12209
          unsetSuccess();
12210
        } else {
12211
          setSuccess((Boolean)value);
12212
        }
12213
        break;
12214
 
12215
      case SE:
12216
        if (value == null) {
12217
          unsetSe();
12218
        } else {
12219
          setSe((HelperServiceException)value);
12220
        }
12221
        break;
12222
 
12223
      }
12224
    }
12225
 
12226
    public Object getFieldValue(_Fields field) {
12227
      switch (field) {
12228
      case SUCCESS:
3430 rajveer 12229
        return Boolean.valueOf(isSuccess());
495 rajveer 12230
 
12231
      case SE:
12232
        return getSe();
12233
 
12234
      }
12235
      throw new IllegalStateException();
12236
    }
12237
 
3430 rajveer 12238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12239
    public boolean isSet(_Fields field) {
12240
      if (field == null) {
12241
        throw new IllegalArgumentException();
12242
      }
495 rajveer 12243
 
12244
      switch (field) {
12245
      case SUCCESS:
12246
        return isSetSuccess();
12247
      case SE:
12248
        return isSetSe();
12249
      }
12250
      throw new IllegalStateException();
12251
    }
12252
 
12253
    @Override
12254
    public boolean equals(Object that) {
12255
      if (that == null)
12256
        return false;
12257
      if (that instanceof updatePassword_result)
12258
        return this.equals((updatePassword_result)that);
12259
      return false;
12260
    }
12261
 
12262
    public boolean equals(updatePassword_result that) {
12263
      if (that == null)
12264
        return false;
12265
 
12266
      boolean this_present_success = true;
12267
      boolean that_present_success = true;
12268
      if (this_present_success || that_present_success) {
12269
        if (!(this_present_success && that_present_success))
12270
          return false;
12271
        if (this.success != that.success)
12272
          return false;
12273
      }
12274
 
12275
      boolean this_present_se = true && this.isSetSe();
12276
      boolean that_present_se = true && that.isSetSe();
12277
      if (this_present_se || that_present_se) {
12278
        if (!(this_present_se && that_present_se))
12279
          return false;
12280
        if (!this.se.equals(that.se))
12281
          return false;
12282
      }
12283
 
12284
      return true;
12285
    }
12286
 
12287
    @Override
12288
    public int hashCode() {
12289
      return 0;
12290
    }
12291
 
12292
    public int compareTo(updatePassword_result other) {
12293
      if (!getClass().equals(other.getClass())) {
12294
        return getClass().getName().compareTo(other.getClass().getName());
12295
      }
12296
 
12297
      int lastComparison = 0;
12298
      updatePassword_result typedOther = (updatePassword_result)other;
12299
 
3430 rajveer 12300
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12301
      if (lastComparison != 0) {
12302
        return lastComparison;
12303
      }
3430 rajveer 12304
      if (isSetSuccess()) {
12305
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12306
        if (lastComparison != 0) {
12307
          return lastComparison;
12308
        }
495 rajveer 12309
      }
3430 rajveer 12310
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12311
      if (lastComparison != 0) {
12312
        return lastComparison;
12313
      }
3430 rajveer 12314
      if (isSetSe()) {
12315
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12316
        if (lastComparison != 0) {
12317
          return lastComparison;
12318
        }
495 rajveer 12319
      }
12320
      return 0;
12321
    }
12322
 
3430 rajveer 12323
    public _Fields fieldForId(int fieldId) {
12324
      return _Fields.findByThriftId(fieldId);
12325
    }
12326
 
12327
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12328
      org.apache.thrift.protocol.TField field;
495 rajveer 12329
      iprot.readStructBegin();
12330
      while (true)
12331
      {
12332
        field = iprot.readFieldBegin();
3430 rajveer 12333
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12334
          break;
12335
        }
3430 rajveer 12336
        switch (field.id) {
12337
          case 0: // SUCCESS
12338
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
12339
              this.success = iprot.readBool();
12340
              setSuccessIsSet(true);
12341
            } else { 
12342
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12343
            }
12344
            break;
12345
          case 1: // SE
12346
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12347
              this.se = new HelperServiceException();
12348
              this.se.read(iprot);
12349
            } else { 
12350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12351
            }
12352
            break;
12353
          default:
12354
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12355
        }
3430 rajveer 12356
        iprot.readFieldEnd();
495 rajveer 12357
      }
12358
      iprot.readStructEnd();
12359
      validate();
12360
    }
12361
 
3430 rajveer 12362
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12363
      oprot.writeStructBegin(STRUCT_DESC);
12364
 
12365
      if (this.isSetSuccess()) {
12366
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12367
        oprot.writeBool(this.success);
12368
        oprot.writeFieldEnd();
12369
      } else if (this.isSetSe()) {
12370
        oprot.writeFieldBegin(SE_FIELD_DESC);
12371
        this.se.write(oprot);
12372
        oprot.writeFieldEnd();
12373
      }
12374
      oprot.writeFieldStop();
12375
      oprot.writeStructEnd();
12376
    }
12377
 
12378
    @Override
12379
    public String toString() {
12380
      StringBuilder sb = new StringBuilder("updatePassword_result(");
12381
      boolean first = true;
12382
 
12383
      sb.append("success:");
12384
      sb.append(this.success);
12385
      first = false;
12386
      if (!first) sb.append(", ");
12387
      sb.append("se:");
12388
      if (this.se == null) {
12389
        sb.append("null");
12390
      } else {
12391
        sb.append(this.se);
12392
      }
12393
      first = false;
12394
      sb.append(")");
12395
      return sb.toString();
12396
    }
12397
 
3430 rajveer 12398
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12399
      // check for required fields
12400
    }
12401
 
3430 rajveer 12402
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12403
      try {
12404
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12405
      } catch (org.apache.thrift.TException te) {
12406
        throw new java.io.IOException(te);
12407
      }
12408
    }
12409
 
12410
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12411
      try {
12412
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12413
      } catch (org.apache.thrift.TException te) {
12414
        throw new java.io.IOException(te);
12415
      }
12416
    }
12417
 
495 rajveer 12418
  }
12419
 
3430 rajveer 12420
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
12421
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 12422
 
3430 rajveer 12423
    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);
12424
    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 12425
 
3430 rajveer 12426
    private String username; // required
12427
    private String password; // required
750 chandransh 12428
 
12429
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12430
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12431
      USERNAME((short)1, "username"),
12432
      PASSWORD((short)2, "password");
12433
 
12434
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12435
 
12436
      static {
12437
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12438
          byName.put(field.getFieldName(), field);
12439
        }
12440
      }
12441
 
12442
      /**
12443
       * Find the _Fields constant that matches fieldId, or null if its not found.
12444
       */
12445
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12446
        switch(fieldId) {
12447
          case 1: // USERNAME
12448
            return USERNAME;
12449
          case 2: // PASSWORD
12450
            return PASSWORD;
12451
          default:
12452
            return null;
12453
        }
750 chandransh 12454
      }
12455
 
12456
      /**
12457
       * Find the _Fields constant that matches fieldId, throwing an exception
12458
       * if it is not found.
12459
       */
12460
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12461
        _Fields fields = findByThriftId(fieldId);
12462
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12463
        return fields;
12464
      }
12465
 
12466
      /**
12467
       * Find the _Fields constant that matches name, or null if its not found.
12468
       */
12469
      public static _Fields findByName(String name) {
12470
        return byName.get(name);
12471
      }
12472
 
12473
      private final short _thriftId;
12474
      private final String _fieldName;
12475
 
12476
      _Fields(short thriftId, String fieldName) {
12477
        _thriftId = thriftId;
12478
        _fieldName = fieldName;
12479
      }
12480
 
12481
      public short getThriftFieldId() {
12482
        return _thriftId;
12483
      }
12484
 
12485
      public String getFieldName() {
12486
        return _fieldName;
12487
      }
12488
    }
12489
 
12490
    // isset id assignments
12491
 
3430 rajveer 12492
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12493
    static {
3430 rajveer 12494
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12495
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12496
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12497
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12498
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12499
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12500
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 12501
    }
12502
 
12503
    public authenticateLogisticsUser_args() {
12504
    }
12505
 
12506
    public authenticateLogisticsUser_args(
12507
      String username,
12508
      String password)
12509
    {
12510
      this();
12511
      this.username = username;
12512
      this.password = password;
12513
    }
12514
 
12515
    /**
12516
     * Performs a deep copy on <i>other</i>.
12517
     */
12518
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
12519
      if (other.isSetUsername()) {
12520
        this.username = other.username;
12521
      }
12522
      if (other.isSetPassword()) {
12523
        this.password = other.password;
12524
      }
12525
    }
12526
 
12527
    public authenticateLogisticsUser_args deepCopy() {
12528
      return new authenticateLogisticsUser_args(this);
12529
    }
12530
 
3430 rajveer 12531
    @Override
12532
    public void clear() {
12533
      this.username = null;
12534
      this.password = null;
750 chandransh 12535
    }
12536
 
12537
    public String getUsername() {
12538
      return this.username;
12539
    }
12540
 
3430 rajveer 12541
    public void setUsername(String username) {
750 chandransh 12542
      this.username = username;
12543
    }
12544
 
12545
    public void unsetUsername() {
12546
      this.username = null;
12547
    }
12548
 
3430 rajveer 12549
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 12550
    public boolean isSetUsername() {
12551
      return this.username != null;
12552
    }
12553
 
12554
    public void setUsernameIsSet(boolean value) {
12555
      if (!value) {
12556
        this.username = null;
12557
      }
12558
    }
12559
 
12560
    public String getPassword() {
12561
      return this.password;
12562
    }
12563
 
3430 rajveer 12564
    public void setPassword(String password) {
750 chandransh 12565
      this.password = password;
12566
    }
12567
 
12568
    public void unsetPassword() {
12569
      this.password = null;
12570
    }
12571
 
3430 rajveer 12572
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 12573
    public boolean isSetPassword() {
12574
      return this.password != null;
12575
    }
12576
 
12577
    public void setPasswordIsSet(boolean value) {
12578
      if (!value) {
12579
        this.password = null;
12580
      }
12581
    }
12582
 
12583
    public void setFieldValue(_Fields field, Object value) {
12584
      switch (field) {
12585
      case USERNAME:
12586
        if (value == null) {
12587
          unsetUsername();
12588
        } else {
12589
          setUsername((String)value);
12590
        }
12591
        break;
12592
 
12593
      case PASSWORD:
12594
        if (value == null) {
12595
          unsetPassword();
12596
        } else {
12597
          setPassword((String)value);
12598
        }
12599
        break;
12600
 
12601
      }
12602
    }
12603
 
12604
    public Object getFieldValue(_Fields field) {
12605
      switch (field) {
12606
      case USERNAME:
12607
        return getUsername();
12608
 
12609
      case PASSWORD:
12610
        return getPassword();
12611
 
12612
      }
12613
      throw new IllegalStateException();
12614
    }
12615
 
3430 rajveer 12616
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12617
    public boolean isSet(_Fields field) {
12618
      if (field == null) {
12619
        throw new IllegalArgumentException();
12620
      }
750 chandransh 12621
 
12622
      switch (field) {
12623
      case USERNAME:
12624
        return isSetUsername();
12625
      case PASSWORD:
12626
        return isSetPassword();
12627
      }
12628
      throw new IllegalStateException();
12629
    }
12630
 
12631
    @Override
12632
    public boolean equals(Object that) {
12633
      if (that == null)
12634
        return false;
12635
      if (that instanceof authenticateLogisticsUser_args)
12636
        return this.equals((authenticateLogisticsUser_args)that);
12637
      return false;
12638
    }
12639
 
12640
    public boolean equals(authenticateLogisticsUser_args that) {
12641
      if (that == null)
12642
        return false;
12643
 
12644
      boolean this_present_username = true && this.isSetUsername();
12645
      boolean that_present_username = true && that.isSetUsername();
12646
      if (this_present_username || that_present_username) {
12647
        if (!(this_present_username && that_present_username))
12648
          return false;
12649
        if (!this.username.equals(that.username))
12650
          return false;
12651
      }
12652
 
12653
      boolean this_present_password = true && this.isSetPassword();
12654
      boolean that_present_password = true && that.isSetPassword();
12655
      if (this_present_password || that_present_password) {
12656
        if (!(this_present_password && that_present_password))
12657
          return false;
12658
        if (!this.password.equals(that.password))
12659
          return false;
12660
      }
12661
 
12662
      return true;
12663
    }
12664
 
12665
    @Override
12666
    public int hashCode() {
12667
      return 0;
12668
    }
12669
 
12670
    public int compareTo(authenticateLogisticsUser_args other) {
12671
      if (!getClass().equals(other.getClass())) {
12672
        return getClass().getName().compareTo(other.getClass().getName());
12673
      }
12674
 
12675
      int lastComparison = 0;
12676
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
12677
 
3430 rajveer 12678
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 12679
      if (lastComparison != 0) {
12680
        return lastComparison;
12681
      }
3430 rajveer 12682
      if (isSetUsername()) {
12683
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12684
        if (lastComparison != 0) {
12685
          return lastComparison;
12686
        }
750 chandransh 12687
      }
3430 rajveer 12688
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 12689
      if (lastComparison != 0) {
12690
        return lastComparison;
12691
      }
3430 rajveer 12692
      if (isSetPassword()) {
12693
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12694
        if (lastComparison != 0) {
12695
          return lastComparison;
12696
        }
750 chandransh 12697
      }
12698
      return 0;
12699
    }
12700
 
3430 rajveer 12701
    public _Fields fieldForId(int fieldId) {
12702
      return _Fields.findByThriftId(fieldId);
12703
    }
12704
 
12705
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12706
      org.apache.thrift.protocol.TField field;
750 chandransh 12707
      iprot.readStructBegin();
12708
      while (true)
12709
      {
12710
        field = iprot.readFieldBegin();
3430 rajveer 12711
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 12712
          break;
12713
        }
3430 rajveer 12714
        switch (field.id) {
12715
          case 1: // USERNAME
12716
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12717
              this.username = iprot.readString();
12718
            } else { 
12719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12720
            }
12721
            break;
12722
          case 2: // PASSWORD
12723
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12724
              this.password = iprot.readString();
12725
            } else { 
12726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12727
            }
12728
            break;
12729
          default:
12730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 12731
        }
3430 rajveer 12732
        iprot.readFieldEnd();
750 chandransh 12733
      }
12734
      iprot.readStructEnd();
12735
      validate();
12736
    }
12737
 
3430 rajveer 12738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 12739
      validate();
12740
 
12741
      oprot.writeStructBegin(STRUCT_DESC);
12742
      if (this.username != null) {
12743
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12744
        oprot.writeString(this.username);
12745
        oprot.writeFieldEnd();
12746
      }
12747
      if (this.password != null) {
12748
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12749
        oprot.writeString(this.password);
12750
        oprot.writeFieldEnd();
12751
      }
12752
      oprot.writeFieldStop();
12753
      oprot.writeStructEnd();
12754
    }
12755
 
12756
    @Override
12757
    public String toString() {
12758
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
12759
      boolean first = true;
12760
 
12761
      sb.append("username:");
12762
      if (this.username == null) {
12763
        sb.append("null");
12764
      } else {
12765
        sb.append(this.username);
12766
      }
12767
      first = false;
12768
      if (!first) sb.append(", ");
12769
      sb.append("password:");
12770
      if (this.password == null) {
12771
        sb.append("null");
12772
      } else {
12773
        sb.append(this.password);
12774
      }
12775
      first = false;
12776
      sb.append(")");
12777
      return sb.toString();
12778
    }
12779
 
3430 rajveer 12780
    public void validate() throws org.apache.thrift.TException {
750 chandransh 12781
      // check for required fields
12782
    }
12783
 
3430 rajveer 12784
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12785
      try {
12786
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12787
      } catch (org.apache.thrift.TException te) {
12788
        throw new java.io.IOException(te);
12789
      }
12790
    }
12791
 
12792
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12793
      try {
12794
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12795
      } catch (org.apache.thrift.TException te) {
12796
        throw new java.io.IOException(te);
12797
      }
12798
    }
12799
 
750 chandransh 12800
  }
12801
 
3430 rajveer 12802
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
12803
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 12804
 
3430 rajveer 12805
    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);
12806
    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 12807
 
3430 rajveer 12808
    private LogisticsUser success; // required
12809
    private HelperServiceException hse; // required
750 chandransh 12810
 
12811
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12812
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 12813
      SUCCESS((short)0, "success"),
12814
      HSE((short)1, "hse");
12815
 
12816
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12817
 
12818
      static {
12819
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12820
          byName.put(field.getFieldName(), field);
12821
        }
12822
      }
12823
 
12824
      /**
12825
       * Find the _Fields constant that matches fieldId, or null if its not found.
12826
       */
12827
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12828
        switch(fieldId) {
12829
          case 0: // SUCCESS
12830
            return SUCCESS;
12831
          case 1: // HSE
12832
            return HSE;
12833
          default:
12834
            return null;
12835
        }
750 chandransh 12836
      }
12837
 
12838
      /**
12839
       * Find the _Fields constant that matches fieldId, throwing an exception
12840
       * if it is not found.
12841
       */
12842
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12843
        _Fields fields = findByThriftId(fieldId);
12844
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12845
        return fields;
12846
      }
12847
 
12848
      /**
12849
       * Find the _Fields constant that matches name, or null if its not found.
12850
       */
12851
      public static _Fields findByName(String name) {
12852
        return byName.get(name);
12853
      }
12854
 
12855
      private final short _thriftId;
12856
      private final String _fieldName;
12857
 
12858
      _Fields(short thriftId, String fieldName) {
12859
        _thriftId = thriftId;
12860
        _fieldName = fieldName;
12861
      }
12862
 
12863
      public short getThriftFieldId() {
12864
        return _thriftId;
12865
      }
12866
 
12867
      public String getFieldName() {
12868
        return _fieldName;
12869
      }
12870
    }
12871
 
12872
    // isset id assignments
12873
 
3430 rajveer 12874
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 12875
    static {
3430 rajveer 12876
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12877
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12878
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
12879
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 12883
    }
12884
 
12885
    public authenticateLogisticsUser_result() {
12886
    }
12887
 
12888
    public authenticateLogisticsUser_result(
12889
      LogisticsUser success,
12890
      HelperServiceException hse)
12891
    {
12892
      this();
12893
      this.success = success;
12894
      this.hse = hse;
12895
    }
12896
 
12897
    /**
12898
     * Performs a deep copy on <i>other</i>.
12899
     */
12900
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
12901
      if (other.isSetSuccess()) {
12902
        this.success = new LogisticsUser(other.success);
12903
      }
12904
      if (other.isSetHse()) {
12905
        this.hse = new HelperServiceException(other.hse);
12906
      }
12907
    }
12908
 
12909
    public authenticateLogisticsUser_result deepCopy() {
12910
      return new authenticateLogisticsUser_result(this);
12911
    }
12912
 
3430 rajveer 12913
    @Override
12914
    public void clear() {
12915
      this.success = null;
12916
      this.hse = null;
750 chandransh 12917
    }
12918
 
12919
    public LogisticsUser getSuccess() {
12920
      return this.success;
12921
    }
12922
 
3430 rajveer 12923
    public void setSuccess(LogisticsUser success) {
750 chandransh 12924
      this.success = success;
12925
    }
12926
 
12927
    public void unsetSuccess() {
12928
      this.success = null;
12929
    }
12930
 
3430 rajveer 12931
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 12932
    public boolean isSetSuccess() {
12933
      return this.success != null;
12934
    }
12935
 
12936
    public void setSuccessIsSet(boolean value) {
12937
      if (!value) {
12938
        this.success = null;
12939
      }
12940
    }
12941
 
12942
    public HelperServiceException getHse() {
12943
      return this.hse;
12944
    }
12945
 
3430 rajveer 12946
    public void setHse(HelperServiceException hse) {
750 chandransh 12947
      this.hse = hse;
12948
    }
12949
 
12950
    public void unsetHse() {
12951
      this.hse = null;
12952
    }
12953
 
3430 rajveer 12954
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 12955
    public boolean isSetHse() {
12956
      return this.hse != null;
12957
    }
12958
 
12959
    public void setHseIsSet(boolean value) {
12960
      if (!value) {
12961
        this.hse = null;
12962
      }
12963
    }
12964
 
12965
    public void setFieldValue(_Fields field, Object value) {
12966
      switch (field) {
12967
      case SUCCESS:
12968
        if (value == null) {
12969
          unsetSuccess();
12970
        } else {
12971
          setSuccess((LogisticsUser)value);
12972
        }
12973
        break;
12974
 
12975
      case HSE:
12976
        if (value == null) {
12977
          unsetHse();
12978
        } else {
12979
          setHse((HelperServiceException)value);
12980
        }
12981
        break;
12982
 
12983
      }
12984
    }
12985
 
12986
    public Object getFieldValue(_Fields field) {
12987
      switch (field) {
12988
      case SUCCESS:
12989
        return getSuccess();
12990
 
12991
      case HSE:
12992
        return getHse();
12993
 
12994
      }
12995
      throw new IllegalStateException();
12996
    }
12997
 
3430 rajveer 12998
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12999
    public boolean isSet(_Fields field) {
13000
      if (field == null) {
13001
        throw new IllegalArgumentException();
13002
      }
750 chandransh 13003
 
13004
      switch (field) {
13005
      case SUCCESS:
13006
        return isSetSuccess();
13007
      case HSE:
13008
        return isSetHse();
13009
      }
13010
      throw new IllegalStateException();
13011
    }
13012
 
13013
    @Override
13014
    public boolean equals(Object that) {
13015
      if (that == null)
13016
        return false;
13017
      if (that instanceof authenticateLogisticsUser_result)
13018
        return this.equals((authenticateLogisticsUser_result)that);
13019
      return false;
13020
    }
13021
 
13022
    public boolean equals(authenticateLogisticsUser_result that) {
13023
      if (that == null)
13024
        return false;
13025
 
13026
      boolean this_present_success = true && this.isSetSuccess();
13027
      boolean that_present_success = true && that.isSetSuccess();
13028
      if (this_present_success || that_present_success) {
13029
        if (!(this_present_success && that_present_success))
13030
          return false;
13031
        if (!this.success.equals(that.success))
13032
          return false;
13033
      }
13034
 
13035
      boolean this_present_hse = true && this.isSetHse();
13036
      boolean that_present_hse = true && that.isSetHse();
13037
      if (this_present_hse || that_present_hse) {
13038
        if (!(this_present_hse && that_present_hse))
13039
          return false;
13040
        if (!this.hse.equals(that.hse))
13041
          return false;
13042
      }
13043
 
13044
      return true;
13045
    }
13046
 
13047
    @Override
13048
    public int hashCode() {
13049
      return 0;
13050
    }
13051
 
13052
    public int compareTo(authenticateLogisticsUser_result other) {
13053
      if (!getClass().equals(other.getClass())) {
13054
        return getClass().getName().compareTo(other.getClass().getName());
13055
      }
13056
 
13057
      int lastComparison = 0;
13058
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
13059
 
3430 rajveer 13060
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 13061
      if (lastComparison != 0) {
13062
        return lastComparison;
13063
      }
3430 rajveer 13064
      if (isSetSuccess()) {
13065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13066
        if (lastComparison != 0) {
13067
          return lastComparison;
13068
        }
750 chandransh 13069
      }
3430 rajveer 13070
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 13071
      if (lastComparison != 0) {
13072
        return lastComparison;
13073
      }
3430 rajveer 13074
      if (isSetHse()) {
13075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13076
        if (lastComparison != 0) {
13077
          return lastComparison;
13078
        }
750 chandransh 13079
      }
13080
      return 0;
13081
    }
13082
 
3430 rajveer 13083
    public _Fields fieldForId(int fieldId) {
13084
      return _Fields.findByThriftId(fieldId);
13085
    }
13086
 
13087
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13088
      org.apache.thrift.protocol.TField field;
750 chandransh 13089
      iprot.readStructBegin();
13090
      while (true)
13091
      {
13092
        field = iprot.readFieldBegin();
3430 rajveer 13093
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 13094
          break;
13095
        }
3430 rajveer 13096
        switch (field.id) {
13097
          case 0: // SUCCESS
13098
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13099
              this.success = new LogisticsUser();
13100
              this.success.read(iprot);
13101
            } else { 
13102
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13103
            }
13104
            break;
13105
          case 1: // HSE
13106
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13107
              this.hse = new HelperServiceException();
13108
              this.hse.read(iprot);
13109
            } else { 
13110
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13111
            }
13112
            break;
13113
          default:
13114
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 13115
        }
3430 rajveer 13116
        iprot.readFieldEnd();
750 chandransh 13117
      }
13118
      iprot.readStructEnd();
13119
      validate();
13120
    }
13121
 
3430 rajveer 13122
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 13123
      oprot.writeStructBegin(STRUCT_DESC);
13124
 
13125
      if (this.isSetSuccess()) {
13126
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13127
        this.success.write(oprot);
13128
        oprot.writeFieldEnd();
13129
      } else if (this.isSetHse()) {
13130
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13131
        this.hse.write(oprot);
13132
        oprot.writeFieldEnd();
13133
      }
13134
      oprot.writeFieldStop();
13135
      oprot.writeStructEnd();
13136
    }
13137
 
13138
    @Override
13139
    public String toString() {
13140
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
13141
      boolean first = true;
13142
 
13143
      sb.append("success:");
13144
      if (this.success == null) {
13145
        sb.append("null");
13146
      } else {
13147
        sb.append(this.success);
13148
      }
13149
      first = false;
13150
      if (!first) sb.append(", ");
13151
      sb.append("hse:");
13152
      if (this.hse == null) {
13153
        sb.append("null");
13154
      } else {
13155
        sb.append(this.hse);
13156
      }
13157
      first = false;
13158
      sb.append(")");
13159
      return sb.toString();
13160
    }
13161
 
3430 rajveer 13162
    public void validate() throws org.apache.thrift.TException {
750 chandransh 13163
      // check for required fields
13164
    }
13165
 
3430 rajveer 13166
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13167
      try {
13168
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13169
      } catch (org.apache.thrift.TException te) {
13170
        throw new java.io.IOException(te);
13171
      }
13172
    }
13173
 
13174
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13175
      try {
13176
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13177
      } catch (org.apache.thrift.TException te) {
13178
        throw new java.io.IOException(te);
13179
      }
13180
    }
13181
 
750 chandransh 13182
  }
13183
 
3430 rajveer 13184
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
13185
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 13186
 
3430 rajveer 13187
    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);
13188
    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 13189
 
3430 rajveer 13190
    private String username; // required
13191
    private String password; // required
1611 ankur.sing 13192
 
13193
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13194
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13195
      USERNAME((short)1, "username"),
13196
      PASSWORD((short)2, "password");
13197
 
13198
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13199
 
13200
      static {
13201
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13202
          byName.put(field.getFieldName(), field);
13203
        }
13204
      }
13205
 
13206
      /**
13207
       * Find the _Fields constant that matches fieldId, or null if its not found.
13208
       */
13209
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13210
        switch(fieldId) {
13211
          case 1: // USERNAME
13212
            return USERNAME;
13213
          case 2: // PASSWORD
13214
            return PASSWORD;
13215
          default:
13216
            return null;
13217
        }
1611 ankur.sing 13218
      }
13219
 
13220
      /**
13221
       * Find the _Fields constant that matches fieldId, throwing an exception
13222
       * if it is not found.
13223
       */
13224
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13225
        _Fields fields = findByThriftId(fieldId);
13226
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13227
        return fields;
13228
      }
13229
 
13230
      /**
13231
       * Find the _Fields constant that matches name, or null if its not found.
13232
       */
13233
      public static _Fields findByName(String name) {
13234
        return byName.get(name);
13235
      }
13236
 
13237
      private final short _thriftId;
13238
      private final String _fieldName;
13239
 
13240
      _Fields(short thriftId, String fieldName) {
13241
        _thriftId = thriftId;
13242
        _fieldName = fieldName;
13243
      }
13244
 
13245
      public short getThriftFieldId() {
13246
        return _thriftId;
13247
      }
13248
 
13249
      public String getFieldName() {
13250
        return _fieldName;
13251
      }
13252
    }
13253
 
13254
    // isset id assignments
13255
 
3430 rajveer 13256
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13257
    static {
3430 rajveer 13258
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13259
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13260
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13261
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13262
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13263
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13264
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 13265
    }
13266
 
13267
    public authenticateStatisticsUser_args() {
13268
    }
13269
 
13270
    public authenticateStatisticsUser_args(
13271
      String username,
13272
      String password)
13273
    {
13274
      this();
13275
      this.username = username;
13276
      this.password = password;
13277
    }
13278
 
13279
    /**
13280
     * Performs a deep copy on <i>other</i>.
13281
     */
13282
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
13283
      if (other.isSetUsername()) {
13284
        this.username = other.username;
13285
      }
13286
      if (other.isSetPassword()) {
13287
        this.password = other.password;
13288
      }
13289
    }
13290
 
13291
    public authenticateStatisticsUser_args deepCopy() {
13292
      return new authenticateStatisticsUser_args(this);
13293
    }
13294
 
3430 rajveer 13295
    @Override
13296
    public void clear() {
13297
      this.username = null;
13298
      this.password = null;
1611 ankur.sing 13299
    }
13300
 
13301
    public String getUsername() {
13302
      return this.username;
13303
    }
13304
 
3430 rajveer 13305
    public void setUsername(String username) {
1611 ankur.sing 13306
      this.username = username;
13307
    }
13308
 
13309
    public void unsetUsername() {
13310
      this.username = null;
13311
    }
13312
 
3430 rajveer 13313
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13314
    public boolean isSetUsername() {
13315
      return this.username != null;
13316
    }
13317
 
13318
    public void setUsernameIsSet(boolean value) {
13319
      if (!value) {
13320
        this.username = null;
13321
      }
13322
    }
13323
 
13324
    public String getPassword() {
13325
      return this.password;
13326
    }
13327
 
3430 rajveer 13328
    public void setPassword(String password) {
1611 ankur.sing 13329
      this.password = password;
13330
    }
13331
 
13332
    public void unsetPassword() {
13333
      this.password = null;
13334
    }
13335
 
3430 rajveer 13336
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13337
    public boolean isSetPassword() {
13338
      return this.password != null;
13339
    }
13340
 
13341
    public void setPasswordIsSet(boolean value) {
13342
      if (!value) {
13343
        this.password = null;
13344
      }
13345
    }
13346
 
13347
    public void setFieldValue(_Fields field, Object value) {
13348
      switch (field) {
13349
      case USERNAME:
13350
        if (value == null) {
13351
          unsetUsername();
13352
        } else {
13353
          setUsername((String)value);
13354
        }
13355
        break;
13356
 
13357
      case PASSWORD:
13358
        if (value == null) {
13359
          unsetPassword();
13360
        } else {
13361
          setPassword((String)value);
13362
        }
13363
        break;
13364
 
13365
      }
13366
    }
13367
 
13368
    public Object getFieldValue(_Fields field) {
13369
      switch (field) {
13370
      case USERNAME:
13371
        return getUsername();
13372
 
13373
      case PASSWORD:
13374
        return getPassword();
13375
 
13376
      }
13377
      throw new IllegalStateException();
13378
    }
13379
 
3430 rajveer 13380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13381
    public boolean isSet(_Fields field) {
13382
      if (field == null) {
13383
        throw new IllegalArgumentException();
13384
      }
1611 ankur.sing 13385
 
13386
      switch (field) {
13387
      case USERNAME:
13388
        return isSetUsername();
13389
      case PASSWORD:
13390
        return isSetPassword();
13391
      }
13392
      throw new IllegalStateException();
13393
    }
13394
 
13395
    @Override
13396
    public boolean equals(Object that) {
13397
      if (that == null)
13398
        return false;
13399
      if (that instanceof authenticateStatisticsUser_args)
13400
        return this.equals((authenticateStatisticsUser_args)that);
13401
      return false;
13402
    }
13403
 
13404
    public boolean equals(authenticateStatisticsUser_args that) {
13405
      if (that == null)
13406
        return false;
13407
 
13408
      boolean this_present_username = true && this.isSetUsername();
13409
      boolean that_present_username = true && that.isSetUsername();
13410
      if (this_present_username || that_present_username) {
13411
        if (!(this_present_username && that_present_username))
13412
          return false;
13413
        if (!this.username.equals(that.username))
13414
          return false;
13415
      }
13416
 
13417
      boolean this_present_password = true && this.isSetPassword();
13418
      boolean that_present_password = true && that.isSetPassword();
13419
      if (this_present_password || that_present_password) {
13420
        if (!(this_present_password && that_present_password))
13421
          return false;
13422
        if (!this.password.equals(that.password))
13423
          return false;
13424
      }
13425
 
13426
      return true;
13427
    }
13428
 
13429
    @Override
13430
    public int hashCode() {
13431
      return 0;
13432
    }
13433
 
13434
    public int compareTo(authenticateStatisticsUser_args other) {
13435
      if (!getClass().equals(other.getClass())) {
13436
        return getClass().getName().compareTo(other.getClass().getName());
13437
      }
13438
 
13439
      int lastComparison = 0;
13440
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
13441
 
3430 rajveer 13442
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 13443
      if (lastComparison != 0) {
13444
        return lastComparison;
13445
      }
3430 rajveer 13446
      if (isSetUsername()) {
13447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13448
        if (lastComparison != 0) {
13449
          return lastComparison;
13450
        }
1611 ankur.sing 13451
      }
3430 rajveer 13452
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 13453
      if (lastComparison != 0) {
13454
        return lastComparison;
13455
      }
3430 rajveer 13456
      if (isSetPassword()) {
13457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13458
        if (lastComparison != 0) {
13459
          return lastComparison;
13460
        }
1611 ankur.sing 13461
      }
13462
      return 0;
13463
    }
13464
 
3430 rajveer 13465
    public _Fields fieldForId(int fieldId) {
13466
      return _Fields.findByThriftId(fieldId);
13467
    }
13468
 
13469
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13470
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13471
      iprot.readStructBegin();
13472
      while (true)
13473
      {
13474
        field = iprot.readFieldBegin();
3430 rajveer 13475
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13476
          break;
13477
        }
3430 rajveer 13478
        switch (field.id) {
13479
          case 1: // USERNAME
13480
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13481
              this.username = iprot.readString();
13482
            } else { 
13483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13484
            }
13485
            break;
13486
          case 2: // PASSWORD
13487
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13488
              this.password = iprot.readString();
13489
            } else { 
13490
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13491
            }
13492
            break;
13493
          default:
13494
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13495
        }
3430 rajveer 13496
        iprot.readFieldEnd();
1611 ankur.sing 13497
      }
13498
      iprot.readStructEnd();
13499
      validate();
13500
    }
13501
 
3430 rajveer 13502
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13503
      validate();
13504
 
13505
      oprot.writeStructBegin(STRUCT_DESC);
13506
      if (this.username != null) {
13507
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13508
        oprot.writeString(this.username);
13509
        oprot.writeFieldEnd();
13510
      }
13511
      if (this.password != null) {
13512
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13513
        oprot.writeString(this.password);
13514
        oprot.writeFieldEnd();
13515
      }
13516
      oprot.writeFieldStop();
13517
      oprot.writeStructEnd();
13518
    }
13519
 
13520
    @Override
13521
    public String toString() {
13522
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
13523
      boolean first = true;
13524
 
13525
      sb.append("username:");
13526
      if (this.username == null) {
13527
        sb.append("null");
13528
      } else {
13529
        sb.append(this.username);
13530
      }
13531
      first = false;
13532
      if (!first) sb.append(", ");
13533
      sb.append("password:");
13534
      if (this.password == null) {
13535
        sb.append("null");
13536
      } else {
13537
        sb.append(this.password);
13538
      }
13539
      first = false;
13540
      sb.append(")");
13541
      return sb.toString();
13542
    }
13543
 
3430 rajveer 13544
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13545
      // check for required fields
13546
    }
13547
 
3430 rajveer 13548
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13549
      try {
13550
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13551
      } catch (org.apache.thrift.TException te) {
13552
        throw new java.io.IOException(te);
13553
      }
13554
    }
13555
 
13556
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13557
      try {
13558
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13559
      } catch (org.apache.thrift.TException te) {
13560
        throw new java.io.IOException(te);
13561
      }
13562
    }
13563
 
1611 ankur.sing 13564
  }
13565
 
3430 rajveer 13566
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13567
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 13568
 
3430 rajveer 13569
    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);
13570
    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 13571
 
3430 rajveer 13572
    private StatisticsUser success; // required
13573
    private HelperServiceException hse; // required
1611 ankur.sing 13574
 
13575
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13576
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 13577
      SUCCESS((short)0, "success"),
13578
      HSE((short)1, "hse");
13579
 
13580
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13581
 
13582
      static {
13583
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13584
          byName.put(field.getFieldName(), field);
13585
        }
13586
      }
13587
 
13588
      /**
13589
       * Find the _Fields constant that matches fieldId, or null if its not found.
13590
       */
13591
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13592
        switch(fieldId) {
13593
          case 0: // SUCCESS
13594
            return SUCCESS;
13595
          case 1: // HSE
13596
            return HSE;
13597
          default:
13598
            return null;
13599
        }
1611 ankur.sing 13600
      }
13601
 
13602
      /**
13603
       * Find the _Fields constant that matches fieldId, throwing an exception
13604
       * if it is not found.
13605
       */
13606
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13607
        _Fields fields = findByThriftId(fieldId);
13608
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13609
        return fields;
13610
      }
13611
 
13612
      /**
13613
       * Find the _Fields constant that matches name, or null if its not found.
13614
       */
13615
      public static _Fields findByName(String name) {
13616
        return byName.get(name);
13617
      }
13618
 
13619
      private final short _thriftId;
13620
      private final String _fieldName;
13621
 
13622
      _Fields(short thriftId, String fieldName) {
13623
        _thriftId = thriftId;
13624
        _fieldName = fieldName;
13625
      }
13626
 
13627
      public short getThriftFieldId() {
13628
        return _thriftId;
13629
      }
13630
 
13631
      public String getFieldName() {
13632
        return _fieldName;
13633
      }
13634
    }
13635
 
13636
    // isset id assignments
13637
 
3430 rajveer 13638
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 13639
    static {
3430 rajveer 13640
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13641
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13642
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
13643
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13644
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13645
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13646
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 13647
    }
13648
 
13649
    public authenticateStatisticsUser_result() {
13650
    }
13651
 
13652
    public authenticateStatisticsUser_result(
13653
      StatisticsUser success,
13654
      HelperServiceException hse)
13655
    {
13656
      this();
13657
      this.success = success;
13658
      this.hse = hse;
13659
    }
13660
 
13661
    /**
13662
     * Performs a deep copy on <i>other</i>.
13663
     */
13664
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
13665
      if (other.isSetSuccess()) {
13666
        this.success = new StatisticsUser(other.success);
13667
      }
13668
      if (other.isSetHse()) {
13669
        this.hse = new HelperServiceException(other.hse);
13670
      }
13671
    }
13672
 
13673
    public authenticateStatisticsUser_result deepCopy() {
13674
      return new authenticateStatisticsUser_result(this);
13675
    }
13676
 
3430 rajveer 13677
    @Override
13678
    public void clear() {
13679
      this.success = null;
13680
      this.hse = null;
1611 ankur.sing 13681
    }
13682
 
13683
    public StatisticsUser getSuccess() {
13684
      return this.success;
13685
    }
13686
 
3430 rajveer 13687
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 13688
      this.success = success;
13689
    }
13690
 
13691
    public void unsetSuccess() {
13692
      this.success = null;
13693
    }
13694
 
3430 rajveer 13695
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13696
    public boolean isSetSuccess() {
13697
      return this.success != null;
13698
    }
13699
 
13700
    public void setSuccessIsSet(boolean value) {
13701
      if (!value) {
13702
        this.success = null;
13703
      }
13704
    }
13705
 
13706
    public HelperServiceException getHse() {
13707
      return this.hse;
13708
    }
13709
 
3430 rajveer 13710
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 13711
      this.hse = hse;
13712
    }
13713
 
13714
    public void unsetHse() {
13715
      this.hse = null;
13716
    }
13717
 
3430 rajveer 13718
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 13719
    public boolean isSetHse() {
13720
      return this.hse != null;
13721
    }
13722
 
13723
    public void setHseIsSet(boolean value) {
13724
      if (!value) {
13725
        this.hse = null;
13726
      }
13727
    }
13728
 
13729
    public void setFieldValue(_Fields field, Object value) {
13730
      switch (field) {
13731
      case SUCCESS:
13732
        if (value == null) {
13733
          unsetSuccess();
13734
        } else {
13735
          setSuccess((StatisticsUser)value);
13736
        }
13737
        break;
13738
 
13739
      case HSE:
13740
        if (value == null) {
13741
          unsetHse();
13742
        } else {
13743
          setHse((HelperServiceException)value);
13744
        }
13745
        break;
13746
 
13747
      }
13748
    }
13749
 
13750
    public Object getFieldValue(_Fields field) {
13751
      switch (field) {
13752
      case SUCCESS:
13753
        return getSuccess();
13754
 
13755
      case HSE:
13756
        return getHse();
13757
 
13758
      }
13759
      throw new IllegalStateException();
13760
    }
13761
 
3430 rajveer 13762
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13763
    public boolean isSet(_Fields field) {
13764
      if (field == null) {
13765
        throw new IllegalArgumentException();
13766
      }
1611 ankur.sing 13767
 
13768
      switch (field) {
13769
      case SUCCESS:
13770
        return isSetSuccess();
13771
      case HSE:
13772
        return isSetHse();
13773
      }
13774
      throw new IllegalStateException();
13775
    }
13776
 
13777
    @Override
13778
    public boolean equals(Object that) {
13779
      if (that == null)
13780
        return false;
13781
      if (that instanceof authenticateStatisticsUser_result)
13782
        return this.equals((authenticateStatisticsUser_result)that);
13783
      return false;
13784
    }
13785
 
13786
    public boolean equals(authenticateStatisticsUser_result that) {
13787
      if (that == null)
13788
        return false;
13789
 
13790
      boolean this_present_success = true && this.isSetSuccess();
13791
      boolean that_present_success = true && that.isSetSuccess();
13792
      if (this_present_success || that_present_success) {
13793
        if (!(this_present_success && that_present_success))
13794
          return false;
13795
        if (!this.success.equals(that.success))
13796
          return false;
13797
      }
13798
 
13799
      boolean this_present_hse = true && this.isSetHse();
13800
      boolean that_present_hse = true && that.isSetHse();
13801
      if (this_present_hse || that_present_hse) {
13802
        if (!(this_present_hse && that_present_hse))
13803
          return false;
13804
        if (!this.hse.equals(that.hse))
13805
          return false;
13806
      }
13807
 
13808
      return true;
13809
    }
13810
 
13811
    @Override
13812
    public int hashCode() {
13813
      return 0;
13814
    }
13815
 
13816
    public int compareTo(authenticateStatisticsUser_result other) {
13817
      if (!getClass().equals(other.getClass())) {
13818
        return getClass().getName().compareTo(other.getClass().getName());
13819
      }
13820
 
13821
      int lastComparison = 0;
13822
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
13823
 
3430 rajveer 13824
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 13825
      if (lastComparison != 0) {
13826
        return lastComparison;
13827
      }
3430 rajveer 13828
      if (isSetSuccess()) {
13829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13830
        if (lastComparison != 0) {
13831
          return lastComparison;
13832
        }
1611 ankur.sing 13833
      }
3430 rajveer 13834
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 13835
      if (lastComparison != 0) {
13836
        return lastComparison;
13837
      }
3430 rajveer 13838
      if (isSetHse()) {
13839
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13840
        if (lastComparison != 0) {
13841
          return lastComparison;
13842
        }
1611 ankur.sing 13843
      }
13844
      return 0;
13845
    }
13846
 
3430 rajveer 13847
    public _Fields fieldForId(int fieldId) {
13848
      return _Fields.findByThriftId(fieldId);
13849
    }
13850
 
13851
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13852
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 13853
      iprot.readStructBegin();
13854
      while (true)
13855
      {
13856
        field = iprot.readFieldBegin();
3430 rajveer 13857
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 13858
          break;
13859
        }
3430 rajveer 13860
        switch (field.id) {
13861
          case 0: // SUCCESS
13862
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13863
              this.success = new StatisticsUser();
13864
              this.success.read(iprot);
13865
            } else { 
13866
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13867
            }
13868
            break;
13869
          case 1: // HSE
13870
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13871
              this.hse = new HelperServiceException();
13872
              this.hse.read(iprot);
13873
            } else { 
13874
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13875
            }
13876
            break;
13877
          default:
13878
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 13879
        }
3430 rajveer 13880
        iprot.readFieldEnd();
1611 ankur.sing 13881
      }
13882
      iprot.readStructEnd();
13883
      validate();
13884
    }
13885
 
3430 rajveer 13886
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 13887
      oprot.writeStructBegin(STRUCT_DESC);
13888
 
13889
      if (this.isSetSuccess()) {
13890
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13891
        this.success.write(oprot);
13892
        oprot.writeFieldEnd();
13893
      } else if (this.isSetHse()) {
13894
        oprot.writeFieldBegin(HSE_FIELD_DESC);
13895
        this.hse.write(oprot);
13896
        oprot.writeFieldEnd();
13897
      }
13898
      oprot.writeFieldStop();
13899
      oprot.writeStructEnd();
13900
    }
13901
 
13902
    @Override
13903
    public String toString() {
13904
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
13905
      boolean first = true;
13906
 
13907
      sb.append("success:");
13908
      if (this.success == null) {
13909
        sb.append("null");
13910
      } else {
13911
        sb.append(this.success);
13912
      }
13913
      first = false;
13914
      if (!first) sb.append(", ");
13915
      sb.append("hse:");
13916
      if (this.hse == null) {
13917
        sb.append("null");
13918
      } else {
13919
        sb.append(this.hse);
13920
      }
13921
      first = false;
13922
      sb.append(")");
13923
      return sb.toString();
13924
    }
13925
 
3430 rajveer 13926
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 13927
      // check for required fields
13928
    }
13929
 
3430 rajveer 13930
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13931
      try {
13932
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13933
      } catch (org.apache.thrift.TException te) {
13934
        throw new java.io.IOException(te);
13935
      }
13936
    }
13937
 
13938
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13939
      try {
13940
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13941
      } catch (org.apache.thrift.TException te) {
13942
        throw new java.io.IOException(te);
13943
      }
13944
    }
13945
 
1611 ankur.sing 13946
  }
13947
 
3430 rajveer 13948
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
13949
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 13950
 
3430 rajveer 13951
    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);
13952
    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 13953
 
3430 rajveer 13954
    private String username; // required
13955
    private String password; // required
1891 ankur.sing 13956
 
13957
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13958
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 13959
      USERNAME((short)1, "username"),
13960
      PASSWORD((short)2, "password");
13961
 
13962
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13963
 
13964
      static {
13965
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13966
          byName.put(field.getFieldName(), field);
13967
        }
13968
      }
13969
 
13970
      /**
13971
       * Find the _Fields constant that matches fieldId, or null if its not found.
13972
       */
13973
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13974
        switch(fieldId) {
13975
          case 1: // USERNAME
13976
            return USERNAME;
13977
          case 2: // PASSWORD
13978
            return PASSWORD;
13979
          default:
13980
            return null;
13981
        }
1891 ankur.sing 13982
      }
13983
 
13984
      /**
13985
       * Find the _Fields constant that matches fieldId, throwing an exception
13986
       * if it is not found.
13987
       */
13988
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13989
        _Fields fields = findByThriftId(fieldId);
13990
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13991
        return fields;
13992
      }
13993
 
13994
      /**
13995
       * Find the _Fields constant that matches name, or null if its not found.
13996
       */
13997
      public static _Fields findByName(String name) {
13998
        return byName.get(name);
13999
      }
14000
 
14001
      private final short _thriftId;
14002
      private final String _fieldName;
14003
 
14004
      _Fields(short thriftId, String fieldName) {
14005
        _thriftId = thriftId;
14006
        _fieldName = fieldName;
14007
      }
14008
 
14009
      public short getThriftFieldId() {
14010
        return _thriftId;
14011
      }
14012
 
14013
      public String getFieldName() {
14014
        return _fieldName;
14015
      }
14016
    }
14017
 
14018
    // isset id assignments
14019
 
3430 rajveer 14020
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14021
    static {
3430 rajveer 14022
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14023
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14024
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14025
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14026
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14027
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14028
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 14029
    }
14030
 
14031
    public authenticateReportUser_args() {
14032
    }
14033
 
14034
    public authenticateReportUser_args(
14035
      String username,
14036
      String password)
14037
    {
14038
      this();
14039
      this.username = username;
14040
      this.password = password;
14041
    }
14042
 
14043
    /**
14044
     * Performs a deep copy on <i>other</i>.
14045
     */
14046
    public authenticateReportUser_args(authenticateReportUser_args other) {
14047
      if (other.isSetUsername()) {
14048
        this.username = other.username;
14049
      }
14050
      if (other.isSetPassword()) {
14051
        this.password = other.password;
14052
      }
14053
    }
14054
 
14055
    public authenticateReportUser_args deepCopy() {
14056
      return new authenticateReportUser_args(this);
14057
    }
14058
 
3430 rajveer 14059
    @Override
14060
    public void clear() {
14061
      this.username = null;
14062
      this.password = null;
1891 ankur.sing 14063
    }
14064
 
14065
    public String getUsername() {
14066
      return this.username;
14067
    }
14068
 
3430 rajveer 14069
    public void setUsername(String username) {
1891 ankur.sing 14070
      this.username = username;
14071
    }
14072
 
14073
    public void unsetUsername() {
14074
      this.username = null;
14075
    }
14076
 
3430 rajveer 14077
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14078
    public boolean isSetUsername() {
14079
      return this.username != null;
14080
    }
14081
 
14082
    public void setUsernameIsSet(boolean value) {
14083
      if (!value) {
14084
        this.username = null;
14085
      }
14086
    }
14087
 
14088
    public String getPassword() {
14089
      return this.password;
14090
    }
14091
 
3430 rajveer 14092
    public void setPassword(String password) {
1891 ankur.sing 14093
      this.password = password;
14094
    }
14095
 
14096
    public void unsetPassword() {
14097
      this.password = null;
14098
    }
14099
 
3430 rajveer 14100
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14101
    public boolean isSetPassword() {
14102
      return this.password != null;
14103
    }
14104
 
14105
    public void setPasswordIsSet(boolean value) {
14106
      if (!value) {
14107
        this.password = null;
14108
      }
14109
    }
14110
 
14111
    public void setFieldValue(_Fields field, Object value) {
14112
      switch (field) {
14113
      case USERNAME:
14114
        if (value == null) {
14115
          unsetUsername();
14116
        } else {
14117
          setUsername((String)value);
14118
        }
14119
        break;
14120
 
14121
      case PASSWORD:
14122
        if (value == null) {
14123
          unsetPassword();
14124
        } else {
14125
          setPassword((String)value);
14126
        }
14127
        break;
14128
 
14129
      }
14130
    }
14131
 
14132
    public Object getFieldValue(_Fields field) {
14133
      switch (field) {
14134
      case USERNAME:
14135
        return getUsername();
14136
 
14137
      case PASSWORD:
14138
        return getPassword();
14139
 
14140
      }
14141
      throw new IllegalStateException();
14142
    }
14143
 
3430 rajveer 14144
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14145
    public boolean isSet(_Fields field) {
14146
      if (field == null) {
14147
        throw new IllegalArgumentException();
14148
      }
1891 ankur.sing 14149
 
14150
      switch (field) {
14151
      case USERNAME:
14152
        return isSetUsername();
14153
      case PASSWORD:
14154
        return isSetPassword();
14155
      }
14156
      throw new IllegalStateException();
14157
    }
14158
 
14159
    @Override
14160
    public boolean equals(Object that) {
14161
      if (that == null)
14162
        return false;
14163
      if (that instanceof authenticateReportUser_args)
14164
        return this.equals((authenticateReportUser_args)that);
14165
      return false;
14166
    }
14167
 
14168
    public boolean equals(authenticateReportUser_args that) {
14169
      if (that == null)
14170
        return false;
14171
 
14172
      boolean this_present_username = true && this.isSetUsername();
14173
      boolean that_present_username = true && that.isSetUsername();
14174
      if (this_present_username || that_present_username) {
14175
        if (!(this_present_username && that_present_username))
14176
          return false;
14177
        if (!this.username.equals(that.username))
14178
          return false;
14179
      }
14180
 
14181
      boolean this_present_password = true && this.isSetPassword();
14182
      boolean that_present_password = true && that.isSetPassword();
14183
      if (this_present_password || that_present_password) {
14184
        if (!(this_present_password && that_present_password))
14185
          return false;
14186
        if (!this.password.equals(that.password))
14187
          return false;
14188
      }
14189
 
14190
      return true;
14191
    }
14192
 
14193
    @Override
14194
    public int hashCode() {
14195
      return 0;
14196
    }
14197
 
14198
    public int compareTo(authenticateReportUser_args other) {
14199
      if (!getClass().equals(other.getClass())) {
14200
        return getClass().getName().compareTo(other.getClass().getName());
14201
      }
14202
 
14203
      int lastComparison = 0;
14204
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
14205
 
3430 rajveer 14206
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 14207
      if (lastComparison != 0) {
14208
        return lastComparison;
14209
      }
3430 rajveer 14210
      if (isSetUsername()) {
14211
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14212
        if (lastComparison != 0) {
14213
          return lastComparison;
14214
        }
1891 ankur.sing 14215
      }
3430 rajveer 14216
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 14217
      if (lastComparison != 0) {
14218
        return lastComparison;
14219
      }
3430 rajveer 14220
      if (isSetPassword()) {
14221
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14222
        if (lastComparison != 0) {
14223
          return lastComparison;
14224
        }
1891 ankur.sing 14225
      }
14226
      return 0;
14227
    }
14228
 
3430 rajveer 14229
    public _Fields fieldForId(int fieldId) {
14230
      return _Fields.findByThriftId(fieldId);
14231
    }
14232
 
14233
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14234
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14235
      iprot.readStructBegin();
14236
      while (true)
14237
      {
14238
        field = iprot.readFieldBegin();
3430 rajveer 14239
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14240
          break;
14241
        }
3430 rajveer 14242
        switch (field.id) {
14243
          case 1: // USERNAME
14244
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14245
              this.username = iprot.readString();
14246
            } else { 
14247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14248
            }
14249
            break;
14250
          case 2: // PASSWORD
14251
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14252
              this.password = iprot.readString();
14253
            } else { 
14254
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14255
            }
14256
            break;
14257
          default:
14258
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14259
        }
3430 rajveer 14260
        iprot.readFieldEnd();
1891 ankur.sing 14261
      }
14262
      iprot.readStructEnd();
14263
      validate();
14264
    }
14265
 
3430 rajveer 14266
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14267
      validate();
14268
 
14269
      oprot.writeStructBegin(STRUCT_DESC);
14270
      if (this.username != null) {
14271
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14272
        oprot.writeString(this.username);
14273
        oprot.writeFieldEnd();
14274
      }
14275
      if (this.password != null) {
14276
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14277
        oprot.writeString(this.password);
14278
        oprot.writeFieldEnd();
14279
      }
14280
      oprot.writeFieldStop();
14281
      oprot.writeStructEnd();
14282
    }
14283
 
14284
    @Override
14285
    public String toString() {
14286
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
14287
      boolean first = true;
14288
 
14289
      sb.append("username:");
14290
      if (this.username == null) {
14291
        sb.append("null");
14292
      } else {
14293
        sb.append(this.username);
14294
      }
14295
      first = false;
14296
      if (!first) sb.append(", ");
14297
      sb.append("password:");
14298
      if (this.password == null) {
14299
        sb.append("null");
14300
      } else {
14301
        sb.append(this.password);
14302
      }
14303
      first = false;
14304
      sb.append(")");
14305
      return sb.toString();
14306
    }
14307
 
3430 rajveer 14308
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14309
      // check for required fields
14310
    }
14311
 
3430 rajveer 14312
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14313
      try {
14314
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14315
      } catch (org.apache.thrift.TException te) {
14316
        throw new java.io.IOException(te);
14317
      }
14318
    }
14319
 
14320
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14321
      try {
14322
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14323
      } catch (org.apache.thrift.TException te) {
14324
        throw new java.io.IOException(te);
14325
      }
14326
    }
14327
 
1891 ankur.sing 14328
  }
14329
 
3430 rajveer 14330
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
14331
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 14332
 
3430 rajveer 14333
    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);
14334
    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 14335
 
3430 rajveer 14336
    private ReportUser success; // required
14337
    private HelperServiceException hse; // required
1891 ankur.sing 14338
 
14339
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14340
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14341
      SUCCESS((short)0, "success"),
14342
      HSE((short)1, "hse");
14343
 
14344
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14345
 
14346
      static {
14347
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14348
          byName.put(field.getFieldName(), field);
14349
        }
14350
      }
14351
 
14352
      /**
14353
       * Find the _Fields constant that matches fieldId, or null if its not found.
14354
       */
14355
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14356
        switch(fieldId) {
14357
          case 0: // SUCCESS
14358
            return SUCCESS;
14359
          case 1: // HSE
14360
            return HSE;
14361
          default:
14362
            return null;
14363
        }
1891 ankur.sing 14364
      }
14365
 
14366
      /**
14367
       * Find the _Fields constant that matches fieldId, throwing an exception
14368
       * if it is not found.
14369
       */
14370
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14371
        _Fields fields = findByThriftId(fieldId);
14372
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14373
        return fields;
14374
      }
14375
 
14376
      /**
14377
       * Find the _Fields constant that matches name, or null if its not found.
14378
       */
14379
      public static _Fields findByName(String name) {
14380
        return byName.get(name);
14381
      }
14382
 
14383
      private final short _thriftId;
14384
      private final String _fieldName;
14385
 
14386
      _Fields(short thriftId, String fieldName) {
14387
        _thriftId = thriftId;
14388
        _fieldName = fieldName;
14389
      }
14390
 
14391
      public short getThriftFieldId() {
14392
        return _thriftId;
14393
      }
14394
 
14395
      public String getFieldName() {
14396
        return _fieldName;
14397
      }
14398
    }
14399
 
14400
    // isset id assignments
14401
 
3430 rajveer 14402
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14403
    static {
3430 rajveer 14404
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14405
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14406
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
14407
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14408
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14409
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14410
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 14411
    }
14412
 
14413
    public authenticateReportUser_result() {
14414
    }
14415
 
14416
    public authenticateReportUser_result(
14417
      ReportUser success,
14418
      HelperServiceException hse)
14419
    {
14420
      this();
14421
      this.success = success;
14422
      this.hse = hse;
14423
    }
14424
 
14425
    /**
14426
     * Performs a deep copy on <i>other</i>.
14427
     */
14428
    public authenticateReportUser_result(authenticateReportUser_result other) {
14429
      if (other.isSetSuccess()) {
14430
        this.success = new ReportUser(other.success);
14431
      }
14432
      if (other.isSetHse()) {
14433
        this.hse = new HelperServiceException(other.hse);
14434
      }
14435
    }
14436
 
14437
    public authenticateReportUser_result deepCopy() {
14438
      return new authenticateReportUser_result(this);
14439
    }
14440
 
3430 rajveer 14441
    @Override
14442
    public void clear() {
14443
      this.success = null;
14444
      this.hse = null;
1891 ankur.sing 14445
    }
14446
 
14447
    public ReportUser getSuccess() {
14448
      return this.success;
14449
    }
14450
 
3430 rajveer 14451
    public void setSuccess(ReportUser success) {
1891 ankur.sing 14452
      this.success = success;
14453
    }
14454
 
14455
    public void unsetSuccess() {
14456
      this.success = null;
14457
    }
14458
 
3430 rajveer 14459
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14460
    public boolean isSetSuccess() {
14461
      return this.success != null;
14462
    }
14463
 
14464
    public void setSuccessIsSet(boolean value) {
14465
      if (!value) {
14466
        this.success = null;
14467
      }
14468
    }
14469
 
14470
    public HelperServiceException getHse() {
14471
      return this.hse;
14472
    }
14473
 
3430 rajveer 14474
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 14475
      this.hse = hse;
14476
    }
14477
 
14478
    public void unsetHse() {
14479
      this.hse = null;
14480
    }
14481
 
3430 rajveer 14482
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14483
    public boolean isSetHse() {
14484
      return this.hse != null;
14485
    }
14486
 
14487
    public void setHseIsSet(boolean value) {
14488
      if (!value) {
14489
        this.hse = null;
14490
      }
14491
    }
14492
 
14493
    public void setFieldValue(_Fields field, Object value) {
14494
      switch (field) {
14495
      case SUCCESS:
14496
        if (value == null) {
14497
          unsetSuccess();
14498
        } else {
14499
          setSuccess((ReportUser)value);
14500
        }
14501
        break;
14502
 
14503
      case HSE:
14504
        if (value == null) {
14505
          unsetHse();
14506
        } else {
14507
          setHse((HelperServiceException)value);
14508
        }
14509
        break;
14510
 
14511
      }
14512
    }
14513
 
14514
    public Object getFieldValue(_Fields field) {
14515
      switch (field) {
14516
      case SUCCESS:
14517
        return getSuccess();
14518
 
14519
      case HSE:
14520
        return getHse();
14521
 
14522
      }
14523
      throw new IllegalStateException();
14524
    }
14525
 
3430 rajveer 14526
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14527
    public boolean isSet(_Fields field) {
14528
      if (field == null) {
14529
        throw new IllegalArgumentException();
14530
      }
1891 ankur.sing 14531
 
14532
      switch (field) {
14533
      case SUCCESS:
14534
        return isSetSuccess();
14535
      case HSE:
14536
        return isSetHse();
14537
      }
14538
      throw new IllegalStateException();
14539
    }
14540
 
14541
    @Override
14542
    public boolean equals(Object that) {
14543
      if (that == null)
14544
        return false;
14545
      if (that instanceof authenticateReportUser_result)
14546
        return this.equals((authenticateReportUser_result)that);
14547
      return false;
14548
    }
14549
 
14550
    public boolean equals(authenticateReportUser_result that) {
14551
      if (that == null)
14552
        return false;
14553
 
14554
      boolean this_present_success = true && this.isSetSuccess();
14555
      boolean that_present_success = true && that.isSetSuccess();
14556
      if (this_present_success || that_present_success) {
14557
        if (!(this_present_success && that_present_success))
14558
          return false;
14559
        if (!this.success.equals(that.success))
14560
          return false;
14561
      }
14562
 
14563
      boolean this_present_hse = true && this.isSetHse();
14564
      boolean that_present_hse = true && that.isSetHse();
14565
      if (this_present_hse || that_present_hse) {
14566
        if (!(this_present_hse && that_present_hse))
14567
          return false;
14568
        if (!this.hse.equals(that.hse))
14569
          return false;
14570
      }
14571
 
14572
      return true;
14573
    }
14574
 
14575
    @Override
14576
    public int hashCode() {
14577
      return 0;
14578
    }
14579
 
14580
    public int compareTo(authenticateReportUser_result other) {
14581
      if (!getClass().equals(other.getClass())) {
14582
        return getClass().getName().compareTo(other.getClass().getName());
14583
      }
14584
 
14585
      int lastComparison = 0;
14586
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
14587
 
3430 rajveer 14588
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 14589
      if (lastComparison != 0) {
14590
        return lastComparison;
14591
      }
3430 rajveer 14592
      if (isSetSuccess()) {
14593
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14594
        if (lastComparison != 0) {
14595
          return lastComparison;
14596
        }
1891 ankur.sing 14597
      }
3430 rajveer 14598
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 14599
      if (lastComparison != 0) {
14600
        return lastComparison;
14601
      }
3430 rajveer 14602
      if (isSetHse()) {
14603
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14604
        if (lastComparison != 0) {
14605
          return lastComparison;
14606
        }
1891 ankur.sing 14607
      }
14608
      return 0;
14609
    }
14610
 
3430 rajveer 14611
    public _Fields fieldForId(int fieldId) {
14612
      return _Fields.findByThriftId(fieldId);
14613
    }
14614
 
14615
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14616
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14617
      iprot.readStructBegin();
14618
      while (true)
14619
      {
14620
        field = iprot.readFieldBegin();
3430 rajveer 14621
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14622
          break;
14623
        }
3430 rajveer 14624
        switch (field.id) {
14625
          case 0: // SUCCESS
14626
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14627
              this.success = new ReportUser();
14628
              this.success.read(iprot);
14629
            } else { 
14630
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14631
            }
14632
            break;
14633
          case 1: // HSE
14634
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14635
              this.hse = new HelperServiceException();
14636
              this.hse.read(iprot);
14637
            } else { 
14638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14639
            }
14640
            break;
14641
          default:
14642
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14643
        }
3430 rajveer 14644
        iprot.readFieldEnd();
1891 ankur.sing 14645
      }
14646
      iprot.readStructEnd();
14647
      validate();
14648
    }
14649
 
3430 rajveer 14650
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14651
      oprot.writeStructBegin(STRUCT_DESC);
14652
 
14653
      if (this.isSetSuccess()) {
14654
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14655
        this.success.write(oprot);
14656
        oprot.writeFieldEnd();
14657
      } else if (this.isSetHse()) {
14658
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14659
        this.hse.write(oprot);
14660
        oprot.writeFieldEnd();
14661
      }
14662
      oprot.writeFieldStop();
14663
      oprot.writeStructEnd();
14664
    }
14665
 
14666
    @Override
14667
    public String toString() {
14668
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
14669
      boolean first = true;
14670
 
14671
      sb.append("success:");
14672
      if (this.success == null) {
14673
        sb.append("null");
14674
      } else {
14675
        sb.append(this.success);
14676
      }
14677
      first = false;
14678
      if (!first) sb.append(", ");
14679
      sb.append("hse:");
14680
      if (this.hse == null) {
14681
        sb.append("null");
14682
      } else {
14683
        sb.append(this.hse);
14684
      }
14685
      first = false;
14686
      sb.append(")");
14687
      return sb.toString();
14688
    }
14689
 
3430 rajveer 14690
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14691
      // check for required fields
14692
    }
14693
 
3430 rajveer 14694
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14695
      try {
14696
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14697
      } catch (org.apache.thrift.TException te) {
14698
        throw new java.io.IOException(te);
14699
      }
14700
    }
14701
 
14702
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14703
      try {
14704
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14705
      } catch (org.apache.thrift.TException te) {
14706
        throw new java.io.IOException(te);
14707
      }
14708
    }
14709
 
1891 ankur.sing 14710
  }
14711
 
3430 rajveer 14712
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
14713
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 14714
 
3430 rajveer 14715
    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 14716
 
3430 rajveer 14717
    private long role; // required
1891 ankur.sing 14718
 
14719
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14720
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14721
      ROLE((short)1, "role");
14722
 
14723
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14724
 
14725
      static {
14726
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14727
          byName.put(field.getFieldName(), field);
14728
        }
14729
      }
14730
 
14731
      /**
14732
       * Find the _Fields constant that matches fieldId, or null if its not found.
14733
       */
14734
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14735
        switch(fieldId) {
14736
          case 1: // ROLE
14737
            return ROLE;
14738
          default:
14739
            return null;
14740
        }
1891 ankur.sing 14741
      }
14742
 
14743
      /**
14744
       * Find the _Fields constant that matches fieldId, throwing an exception
14745
       * if it is not found.
14746
       */
14747
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14748
        _Fields fields = findByThriftId(fieldId);
14749
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14750
        return fields;
14751
      }
14752
 
14753
      /**
14754
       * Find the _Fields constant that matches name, or null if its not found.
14755
       */
14756
      public static _Fields findByName(String name) {
14757
        return byName.get(name);
14758
      }
14759
 
14760
      private final short _thriftId;
14761
      private final String _fieldName;
14762
 
14763
      _Fields(short thriftId, String fieldName) {
14764
        _thriftId = thriftId;
14765
        _fieldName = fieldName;
14766
      }
14767
 
14768
      public short getThriftFieldId() {
14769
        return _thriftId;
14770
      }
14771
 
14772
      public String getFieldName() {
14773
        return _fieldName;
14774
      }
14775
    }
14776
 
14777
    // isset id assignments
14778
    private static final int __ROLE_ISSET_ID = 0;
14779
    private BitSet __isset_bit_vector = new BitSet(1);
14780
 
3430 rajveer 14781
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 14782
    static {
3430 rajveer 14783
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14784
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14785
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
14786
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14787
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 14788
    }
14789
 
14790
    public getReports_args() {
14791
    }
14792
 
14793
    public getReports_args(
14794
      long role)
14795
    {
14796
      this();
14797
      this.role = role;
14798
      setRoleIsSet(true);
14799
    }
14800
 
14801
    /**
14802
     * Performs a deep copy on <i>other</i>.
14803
     */
14804
    public getReports_args(getReports_args other) {
14805
      __isset_bit_vector.clear();
14806
      __isset_bit_vector.or(other.__isset_bit_vector);
14807
      this.role = other.role;
14808
    }
14809
 
14810
    public getReports_args deepCopy() {
14811
      return new getReports_args(this);
14812
    }
14813
 
3430 rajveer 14814
    @Override
14815
    public void clear() {
14816
      setRoleIsSet(false);
14817
      this.role = 0;
1891 ankur.sing 14818
    }
14819
 
14820
    public long getRole() {
14821
      return this.role;
14822
    }
14823
 
3430 rajveer 14824
    public void setRole(long role) {
1891 ankur.sing 14825
      this.role = role;
14826
      setRoleIsSet(true);
14827
    }
14828
 
14829
    public void unsetRole() {
14830
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14831
    }
14832
 
3430 rajveer 14833
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 14834
    public boolean isSetRole() {
14835
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14836
    }
14837
 
14838
    public void setRoleIsSet(boolean value) {
14839
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
14840
    }
14841
 
14842
    public void setFieldValue(_Fields field, Object value) {
14843
      switch (field) {
14844
      case ROLE:
14845
        if (value == null) {
14846
          unsetRole();
14847
        } else {
14848
          setRole((Long)value);
14849
        }
14850
        break;
14851
 
14852
      }
14853
    }
14854
 
14855
    public Object getFieldValue(_Fields field) {
14856
      switch (field) {
14857
      case ROLE:
3430 rajveer 14858
        return Long.valueOf(getRole());
1891 ankur.sing 14859
 
14860
      }
14861
      throw new IllegalStateException();
14862
    }
14863
 
3430 rajveer 14864
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14865
    public boolean isSet(_Fields field) {
14866
      if (field == null) {
14867
        throw new IllegalArgumentException();
14868
      }
1891 ankur.sing 14869
 
14870
      switch (field) {
14871
      case ROLE:
14872
        return isSetRole();
14873
      }
14874
      throw new IllegalStateException();
14875
    }
14876
 
14877
    @Override
14878
    public boolean equals(Object that) {
14879
      if (that == null)
14880
        return false;
14881
      if (that instanceof getReports_args)
14882
        return this.equals((getReports_args)that);
14883
      return false;
14884
    }
14885
 
14886
    public boolean equals(getReports_args that) {
14887
      if (that == null)
14888
        return false;
14889
 
14890
      boolean this_present_role = true;
14891
      boolean that_present_role = true;
14892
      if (this_present_role || that_present_role) {
14893
        if (!(this_present_role && that_present_role))
14894
          return false;
14895
        if (this.role != that.role)
14896
          return false;
14897
      }
14898
 
14899
      return true;
14900
    }
14901
 
14902
    @Override
14903
    public int hashCode() {
14904
      return 0;
14905
    }
14906
 
14907
    public int compareTo(getReports_args other) {
14908
      if (!getClass().equals(other.getClass())) {
14909
        return getClass().getName().compareTo(other.getClass().getName());
14910
      }
14911
 
14912
      int lastComparison = 0;
14913
      getReports_args typedOther = (getReports_args)other;
14914
 
3430 rajveer 14915
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 14916
      if (lastComparison != 0) {
14917
        return lastComparison;
14918
      }
3430 rajveer 14919
      if (isSetRole()) {
14920
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
14921
        if (lastComparison != 0) {
14922
          return lastComparison;
14923
        }
1891 ankur.sing 14924
      }
14925
      return 0;
14926
    }
14927
 
3430 rajveer 14928
    public _Fields fieldForId(int fieldId) {
14929
      return _Fields.findByThriftId(fieldId);
14930
    }
14931
 
14932
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14933
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 14934
      iprot.readStructBegin();
14935
      while (true)
14936
      {
14937
        field = iprot.readFieldBegin();
3430 rajveer 14938
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 14939
          break;
14940
        }
3430 rajveer 14941
        switch (field.id) {
14942
          case 1: // ROLE
14943
            if (field.type == org.apache.thrift.protocol.TType.I64) {
14944
              this.role = iprot.readI64();
14945
              setRoleIsSet(true);
14946
            } else { 
14947
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14948
            }
14949
            break;
14950
          default:
14951
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 14952
        }
3430 rajveer 14953
        iprot.readFieldEnd();
1891 ankur.sing 14954
      }
14955
      iprot.readStructEnd();
14956
      validate();
14957
    }
14958
 
3430 rajveer 14959
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 14960
      validate();
14961
 
14962
      oprot.writeStructBegin(STRUCT_DESC);
14963
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
14964
      oprot.writeI64(this.role);
14965
      oprot.writeFieldEnd();
14966
      oprot.writeFieldStop();
14967
      oprot.writeStructEnd();
14968
    }
14969
 
14970
    @Override
14971
    public String toString() {
14972
      StringBuilder sb = new StringBuilder("getReports_args(");
14973
      boolean first = true;
14974
 
14975
      sb.append("role:");
14976
      sb.append(this.role);
14977
      first = false;
14978
      sb.append(")");
14979
      return sb.toString();
14980
    }
14981
 
3430 rajveer 14982
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 14983
      // check for required fields
14984
    }
14985
 
3430 rajveer 14986
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14987
      try {
14988
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14989
      } catch (org.apache.thrift.TException te) {
14990
        throw new java.io.IOException(te);
14991
      }
14992
    }
14993
 
14994
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14995
      try {
14996
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
14997
        __isset_bit_vector = new BitSet(1);
14998
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14999
      } catch (org.apache.thrift.TException te) {
15000
        throw new java.io.IOException(te);
15001
      }
15002
    }
15003
 
1891 ankur.sing 15004
  }
15005
 
3430 rajveer 15006
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
15007
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 15008
 
3430 rajveer 15009
    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 15010
 
3430 rajveer 15011
    private List<Report> success; // required
1891 ankur.sing 15012
 
15013
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15014
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15015
      SUCCESS((short)0, "success");
15016
 
15017
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15018
 
15019
      static {
15020
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15021
          byName.put(field.getFieldName(), field);
15022
        }
15023
      }
15024
 
15025
      /**
15026
       * Find the _Fields constant that matches fieldId, or null if its not found.
15027
       */
15028
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15029
        switch(fieldId) {
15030
          case 0: // SUCCESS
15031
            return SUCCESS;
15032
          default:
15033
            return null;
15034
        }
1891 ankur.sing 15035
      }
15036
 
15037
      /**
15038
       * Find the _Fields constant that matches fieldId, throwing an exception
15039
       * if it is not found.
15040
       */
15041
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15042
        _Fields fields = findByThriftId(fieldId);
15043
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15044
        return fields;
15045
      }
15046
 
15047
      /**
15048
       * Find the _Fields constant that matches name, or null if its not found.
15049
       */
15050
      public static _Fields findByName(String name) {
15051
        return byName.get(name);
15052
      }
15053
 
15054
      private final short _thriftId;
15055
      private final String _fieldName;
15056
 
15057
      _Fields(short thriftId, String fieldName) {
15058
        _thriftId = thriftId;
15059
        _fieldName = fieldName;
15060
      }
15061
 
15062
      public short getThriftFieldId() {
15063
        return _thriftId;
15064
      }
15065
 
15066
      public String getFieldName() {
15067
        return _fieldName;
15068
      }
15069
    }
15070
 
15071
    // isset id assignments
15072
 
3430 rajveer 15073
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15074
    static {
3430 rajveer 15075
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15076
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15077
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
15078
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
15079
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15080
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 15081
    }
15082
 
15083
    public getReports_result() {
15084
    }
15085
 
15086
    public getReports_result(
15087
      List<Report> success)
15088
    {
15089
      this();
15090
      this.success = success;
15091
    }
15092
 
15093
    /**
15094
     * Performs a deep copy on <i>other</i>.
15095
     */
15096
    public getReports_result(getReports_result other) {
15097
      if (other.isSetSuccess()) {
15098
        List<Report> __this__success = new ArrayList<Report>();
15099
        for (Report other_element : other.success) {
15100
          __this__success.add(new Report(other_element));
15101
        }
15102
        this.success = __this__success;
15103
      }
15104
    }
15105
 
15106
    public getReports_result deepCopy() {
15107
      return new getReports_result(this);
15108
    }
15109
 
3430 rajveer 15110
    @Override
15111
    public void clear() {
15112
      this.success = null;
1891 ankur.sing 15113
    }
15114
 
15115
    public int getSuccessSize() {
15116
      return (this.success == null) ? 0 : this.success.size();
15117
    }
15118
 
15119
    public java.util.Iterator<Report> getSuccessIterator() {
15120
      return (this.success == null) ? null : this.success.iterator();
15121
    }
15122
 
15123
    public void addToSuccess(Report elem) {
15124
      if (this.success == null) {
15125
        this.success = new ArrayList<Report>();
15126
      }
15127
      this.success.add(elem);
15128
    }
15129
 
15130
    public List<Report> getSuccess() {
15131
      return this.success;
15132
    }
15133
 
3430 rajveer 15134
    public void setSuccess(List<Report> success) {
1891 ankur.sing 15135
      this.success = success;
15136
    }
15137
 
15138
    public void unsetSuccess() {
15139
      this.success = null;
15140
    }
15141
 
3430 rajveer 15142
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15143
    public boolean isSetSuccess() {
15144
      return this.success != null;
15145
    }
15146
 
15147
    public void setSuccessIsSet(boolean value) {
15148
      if (!value) {
15149
        this.success = null;
15150
      }
15151
    }
15152
 
15153
    public void setFieldValue(_Fields field, Object value) {
15154
      switch (field) {
15155
      case SUCCESS:
15156
        if (value == null) {
15157
          unsetSuccess();
15158
        } else {
15159
          setSuccess((List<Report>)value);
15160
        }
15161
        break;
15162
 
15163
      }
15164
    }
15165
 
15166
    public Object getFieldValue(_Fields field) {
15167
      switch (field) {
15168
      case SUCCESS:
15169
        return getSuccess();
15170
 
15171
      }
15172
      throw new IllegalStateException();
15173
    }
15174
 
3430 rajveer 15175
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15176
    public boolean isSet(_Fields field) {
15177
      if (field == null) {
15178
        throw new IllegalArgumentException();
15179
      }
1891 ankur.sing 15180
 
15181
      switch (field) {
15182
      case SUCCESS:
15183
        return isSetSuccess();
15184
      }
15185
      throw new IllegalStateException();
15186
    }
15187
 
15188
    @Override
15189
    public boolean equals(Object that) {
15190
      if (that == null)
15191
        return false;
15192
      if (that instanceof getReports_result)
15193
        return this.equals((getReports_result)that);
15194
      return false;
15195
    }
15196
 
15197
    public boolean equals(getReports_result that) {
15198
      if (that == null)
15199
        return false;
15200
 
15201
      boolean this_present_success = true && this.isSetSuccess();
15202
      boolean that_present_success = true && that.isSetSuccess();
15203
      if (this_present_success || that_present_success) {
15204
        if (!(this_present_success && that_present_success))
15205
          return false;
15206
        if (!this.success.equals(that.success))
15207
          return false;
15208
      }
15209
 
15210
      return true;
15211
    }
15212
 
15213
    @Override
15214
    public int hashCode() {
15215
      return 0;
15216
    }
15217
 
15218
    public int compareTo(getReports_result other) {
15219
      if (!getClass().equals(other.getClass())) {
15220
        return getClass().getName().compareTo(other.getClass().getName());
15221
      }
15222
 
15223
      int lastComparison = 0;
15224
      getReports_result typedOther = (getReports_result)other;
15225
 
3430 rajveer 15226
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15227
      if (lastComparison != 0) {
15228
        return lastComparison;
15229
      }
3430 rajveer 15230
      if (isSetSuccess()) {
15231
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15232
        if (lastComparison != 0) {
15233
          return lastComparison;
15234
        }
1891 ankur.sing 15235
      }
15236
      return 0;
15237
    }
15238
 
3430 rajveer 15239
    public _Fields fieldForId(int fieldId) {
15240
      return _Fields.findByThriftId(fieldId);
15241
    }
15242
 
15243
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15244
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15245
      iprot.readStructBegin();
15246
      while (true)
15247
      {
15248
        field = iprot.readFieldBegin();
3430 rajveer 15249
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15250
          break;
15251
        }
3430 rajveer 15252
        switch (field.id) {
15253
          case 0: // SUCCESS
15254
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
15255
              {
5864 rajveer 15256
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
15257
                this.success = new ArrayList<Report>(_list41.size);
15258
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 15259
                {
5864 rajveer 15260
                  Report _elem43; // required
15261
                  _elem43 = new Report();
15262
                  _elem43.read(iprot);
15263
                  this.success.add(_elem43);
1891 ankur.sing 15264
                }
3430 rajveer 15265
                iprot.readListEnd();
1891 ankur.sing 15266
              }
3430 rajveer 15267
            } else { 
15268
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15269
            }
15270
            break;
15271
          default:
15272
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15273
        }
3430 rajveer 15274
        iprot.readFieldEnd();
1891 ankur.sing 15275
      }
15276
      iprot.readStructEnd();
15277
      validate();
15278
    }
15279
 
3430 rajveer 15280
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15281
      oprot.writeStructBegin(STRUCT_DESC);
15282
 
15283
      if (this.isSetSuccess()) {
15284
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15285
        {
3430 rajveer 15286
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 15287
          for (Report _iter44 : this.success)
1891 ankur.sing 15288
          {
5864 rajveer 15289
            _iter44.write(oprot);
1891 ankur.sing 15290
          }
15291
          oprot.writeListEnd();
15292
        }
15293
        oprot.writeFieldEnd();
15294
      }
15295
      oprot.writeFieldStop();
15296
      oprot.writeStructEnd();
15297
    }
15298
 
15299
    @Override
15300
    public String toString() {
15301
      StringBuilder sb = new StringBuilder("getReports_result(");
15302
      boolean first = true;
15303
 
15304
      sb.append("success:");
15305
      if (this.success == null) {
15306
        sb.append("null");
15307
      } else {
15308
        sb.append(this.success);
15309
      }
15310
      first = false;
15311
      sb.append(")");
15312
      return sb.toString();
15313
    }
15314
 
3430 rajveer 15315
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15316
      // check for required fields
15317
    }
15318
 
3430 rajveer 15319
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15320
      try {
15321
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15322
      } catch (org.apache.thrift.TException te) {
15323
        throw new java.io.IOException(te);
15324
      }
15325
    }
15326
 
15327
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15328
      try {
15329
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15330
      } catch (org.apache.thrift.TException te) {
15331
        throw new java.io.IOException(te);
15332
      }
15333
    }
15334
 
1891 ankur.sing 15335
  }
15336
 
3430 rajveer 15337
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
15338
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 15339
 
3430 rajveer 15340
    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);
15341
    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 15342
 
3430 rajveer 15343
    private String username; // required
15344
    private String password; // required
2024 ankur.sing 15345
 
15346
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15347
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15348
      USERNAME((short)1, "username"),
6788 rajveer 15349
      PASSWORD((short)2, "password");
2024 ankur.sing 15350
 
15351
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15352
 
15353
      static {
15354
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15355
          byName.put(field.getFieldName(), field);
15356
        }
15357
      }
15358
 
15359
      /**
15360
       * Find the _Fields constant that matches fieldId, or null if its not found.
15361
       */
15362
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15363
        switch(fieldId) {
15364
          case 1: // USERNAME
15365
            return USERNAME;
15366
          case 2: // PASSWORD
15367
            return PASSWORD;
15368
          default:
15369
            return null;
15370
        }
2024 ankur.sing 15371
      }
15372
 
15373
      /**
15374
       * Find the _Fields constant that matches fieldId, throwing an exception
15375
       * if it is not found.
15376
       */
15377
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15378
        _Fields fields = findByThriftId(fieldId);
15379
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15380
        return fields;
15381
      }
15382
 
15383
      /**
15384
       * Find the _Fields constant that matches name, or null if its not found.
15385
       */
15386
      public static _Fields findByName(String name) {
15387
        return byName.get(name);
15388
      }
15389
 
15390
      private final short _thriftId;
15391
      private final String _fieldName;
15392
 
15393
      _Fields(short thriftId, String fieldName) {
15394
        _thriftId = thriftId;
15395
        _fieldName = fieldName;
15396
      }
15397
 
15398
      public short getThriftFieldId() {
15399
        return _thriftId;
15400
      }
15401
 
15402
      public String getFieldName() {
15403
        return _fieldName;
15404
      }
15405
    }
15406
 
15407
    // isset id assignments
15408
 
3430 rajveer 15409
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15410
    static {
3430 rajveer 15411
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15412
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15413
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15414
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15415
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15416
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15417
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 15418
    }
15419
 
15420
    public authenticateCatalogUser_args() {
15421
    }
15422
 
15423
    public authenticateCatalogUser_args(
15424
      String username,
6788 rajveer 15425
      String password)
2024 ankur.sing 15426
    {
15427
      this();
15428
      this.username = username;
15429
      this.password = password;
15430
    }
15431
 
15432
    /**
15433
     * Performs a deep copy on <i>other</i>.
15434
     */
15435
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
15436
      if (other.isSetUsername()) {
15437
        this.username = other.username;
15438
      }
15439
      if (other.isSetPassword()) {
15440
        this.password = other.password;
15441
      }
15442
    }
15443
 
15444
    public authenticateCatalogUser_args deepCopy() {
15445
      return new authenticateCatalogUser_args(this);
15446
    }
15447
 
3430 rajveer 15448
    @Override
15449
    public void clear() {
15450
      this.username = null;
15451
      this.password = null;
2024 ankur.sing 15452
    }
15453
 
15454
    public String getUsername() {
15455
      return this.username;
15456
    }
15457
 
3430 rajveer 15458
    public void setUsername(String username) {
2024 ankur.sing 15459
      this.username = username;
15460
    }
15461
 
15462
    public void unsetUsername() {
15463
      this.username = null;
15464
    }
15465
 
3430 rajveer 15466
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15467
    public boolean isSetUsername() {
15468
      return this.username != null;
15469
    }
15470
 
15471
    public void setUsernameIsSet(boolean value) {
15472
      if (!value) {
15473
        this.username = null;
15474
      }
15475
    }
15476
 
15477
    public String getPassword() {
15478
      return this.password;
15479
    }
15480
 
3430 rajveer 15481
    public void setPassword(String password) {
2024 ankur.sing 15482
      this.password = password;
15483
    }
15484
 
15485
    public void unsetPassword() {
15486
      this.password = null;
15487
    }
15488
 
3430 rajveer 15489
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15490
    public boolean isSetPassword() {
15491
      return this.password != null;
15492
    }
15493
 
15494
    public void setPasswordIsSet(boolean value) {
15495
      if (!value) {
15496
        this.password = null;
15497
      }
15498
    }
15499
 
15500
    public void setFieldValue(_Fields field, Object value) {
15501
      switch (field) {
15502
      case USERNAME:
15503
        if (value == null) {
15504
          unsetUsername();
15505
        } else {
15506
          setUsername((String)value);
15507
        }
15508
        break;
15509
 
15510
      case PASSWORD:
15511
        if (value == null) {
15512
          unsetPassword();
15513
        } else {
15514
          setPassword((String)value);
15515
        }
15516
        break;
15517
 
15518
      }
15519
    }
15520
 
15521
    public Object getFieldValue(_Fields field) {
15522
      switch (field) {
15523
      case USERNAME:
15524
        return getUsername();
15525
 
15526
      case PASSWORD:
15527
        return getPassword();
15528
 
15529
      }
15530
      throw new IllegalStateException();
15531
    }
15532
 
3430 rajveer 15533
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15534
    public boolean isSet(_Fields field) {
15535
      if (field == null) {
15536
        throw new IllegalArgumentException();
15537
      }
2024 ankur.sing 15538
 
15539
      switch (field) {
15540
      case USERNAME:
15541
        return isSetUsername();
15542
      case PASSWORD:
15543
        return isSetPassword();
15544
      }
15545
      throw new IllegalStateException();
15546
    }
15547
 
15548
    @Override
15549
    public boolean equals(Object that) {
15550
      if (that == null)
15551
        return false;
15552
      if (that instanceof authenticateCatalogUser_args)
15553
        return this.equals((authenticateCatalogUser_args)that);
15554
      return false;
15555
    }
15556
 
15557
    public boolean equals(authenticateCatalogUser_args that) {
15558
      if (that == null)
15559
        return false;
15560
 
15561
      boolean this_present_username = true && this.isSetUsername();
15562
      boolean that_present_username = true && that.isSetUsername();
15563
      if (this_present_username || that_present_username) {
15564
        if (!(this_present_username && that_present_username))
15565
          return false;
15566
        if (!this.username.equals(that.username))
15567
          return false;
15568
      }
15569
 
15570
      boolean this_present_password = true && this.isSetPassword();
15571
      boolean that_present_password = true && that.isSetPassword();
15572
      if (this_present_password || that_present_password) {
15573
        if (!(this_present_password && that_present_password))
15574
          return false;
15575
        if (!this.password.equals(that.password))
15576
          return false;
15577
      }
15578
 
15579
      return true;
15580
    }
15581
 
15582
    @Override
15583
    public int hashCode() {
15584
      return 0;
15585
    }
15586
 
15587
    public int compareTo(authenticateCatalogUser_args other) {
15588
      if (!getClass().equals(other.getClass())) {
15589
        return getClass().getName().compareTo(other.getClass().getName());
15590
      }
15591
 
15592
      int lastComparison = 0;
15593
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
15594
 
3430 rajveer 15595
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 15596
      if (lastComparison != 0) {
15597
        return lastComparison;
15598
      }
3430 rajveer 15599
      if (isSetUsername()) {
15600
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15601
        if (lastComparison != 0) {
15602
          return lastComparison;
15603
        }
2024 ankur.sing 15604
      }
3430 rajveer 15605
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 15606
      if (lastComparison != 0) {
15607
        return lastComparison;
15608
      }
3430 rajveer 15609
      if (isSetPassword()) {
15610
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15611
        if (lastComparison != 0) {
15612
          return lastComparison;
15613
        }
2024 ankur.sing 15614
      }
15615
      return 0;
15616
    }
15617
 
3430 rajveer 15618
    public _Fields fieldForId(int fieldId) {
15619
      return _Fields.findByThriftId(fieldId);
15620
    }
15621
 
15622
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15623
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 15624
      iprot.readStructBegin();
15625
      while (true)
15626
      {
15627
        field = iprot.readFieldBegin();
3430 rajveer 15628
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 15629
          break;
15630
        }
3430 rajveer 15631
        switch (field.id) {
15632
          case 1: // USERNAME
15633
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15634
              this.username = iprot.readString();
15635
            } else { 
15636
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15637
            }
15638
            break;
15639
          case 2: // PASSWORD
15640
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15641
              this.password = iprot.readString();
15642
            } else { 
15643
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15644
            }
15645
            break;
15646
          default:
15647
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 15648
        }
3430 rajveer 15649
        iprot.readFieldEnd();
2024 ankur.sing 15650
      }
15651
      iprot.readStructEnd();
15652
      validate();
15653
    }
15654
 
3430 rajveer 15655
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 15656
      validate();
15657
 
15658
      oprot.writeStructBegin(STRUCT_DESC);
15659
      if (this.username != null) {
15660
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15661
        oprot.writeString(this.username);
15662
        oprot.writeFieldEnd();
15663
      }
15664
      if (this.password != null) {
15665
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15666
        oprot.writeString(this.password);
15667
        oprot.writeFieldEnd();
15668
      }
15669
      oprot.writeFieldStop();
15670
      oprot.writeStructEnd();
15671
    }
15672
 
15673
    @Override
15674
    public String toString() {
15675
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
15676
      boolean first = true;
15677
 
15678
      sb.append("username:");
15679
      if (this.username == null) {
15680
        sb.append("null");
15681
      } else {
15682
        sb.append(this.username);
15683
      }
15684
      first = false;
15685
      if (!first) sb.append(", ");
15686
      sb.append("password:");
15687
      if (this.password == null) {
15688
        sb.append("null");
15689
      } else {
15690
        sb.append(this.password);
15691
      }
15692
      first = false;
15693
      sb.append(")");
15694
      return sb.toString();
15695
    }
15696
 
3430 rajveer 15697
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 15698
      // check for required fields
15699
    }
15700
 
3430 rajveer 15701
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15702
      try {
15703
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15704
      } catch (org.apache.thrift.TException te) {
15705
        throw new java.io.IOException(te);
15706
      }
15707
    }
15708
 
15709
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15710
      try {
15711
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15712
      } catch (org.apache.thrift.TException te) {
15713
        throw new java.io.IOException(te);
15714
      }
15715
    }
15716
 
2024 ankur.sing 15717
  }
15718
 
3430 rajveer 15719
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
15720
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 15721
 
3430 rajveer 15722
    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);
15723
    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 15724
 
3430 rajveer 15725
    private CatalogDashboardUser success; // required
15726
    private HelperServiceException hse; // required
2024 ankur.sing 15727
 
15728
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15729
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 15730
      SUCCESS((short)0, "success"),
15731
      HSE((short)1, "hse");
15732
 
15733
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15734
 
15735
      static {
15736
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15737
          byName.put(field.getFieldName(), field);
15738
        }
15739
      }
15740
 
15741
      /**
15742
       * Find the _Fields constant that matches fieldId, or null if its not found.
15743
       */
15744
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15745
        switch(fieldId) {
15746
          case 0: // SUCCESS
15747
            return SUCCESS;
15748
          case 1: // HSE
15749
            return HSE;
15750
          default:
15751
            return null;
15752
        }
2024 ankur.sing 15753
      }
15754
 
15755
      /**
15756
       * Find the _Fields constant that matches fieldId, throwing an exception
15757
       * if it is not found.
15758
       */
15759
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15760
        _Fields fields = findByThriftId(fieldId);
15761
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15762
        return fields;
15763
      }
15764
 
15765
      /**
15766
       * Find the _Fields constant that matches name, or null if its not found.
15767
       */
15768
      public static _Fields findByName(String name) {
15769
        return byName.get(name);
15770
      }
15771
 
15772
      private final short _thriftId;
15773
      private final String _fieldName;
15774
 
15775
      _Fields(short thriftId, String fieldName) {
15776
        _thriftId = thriftId;
15777
        _fieldName = fieldName;
15778
      }
15779
 
15780
      public short getThriftFieldId() {
15781
        return _thriftId;
15782
      }
15783
 
15784
      public String getFieldName() {
15785
        return _fieldName;
15786
      }
15787
    }
15788
 
15789
    // isset id assignments
15790
 
3430 rajveer 15791
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 15792
    static {
3430 rajveer 15793
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15794
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15795
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
15796
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15798
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15799
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 15800
    }
15801
 
15802
    public authenticateCatalogUser_result() {
15803
    }
15804
 
15805
    public authenticateCatalogUser_result(
15806
      CatalogDashboardUser success,
15807
      HelperServiceException hse)
15808
    {
15809
      this();
15810
      this.success = success;
15811
      this.hse = hse;
15812
    }
15813
 
15814
    /**
15815
     * Performs a deep copy on <i>other</i>.
15816
     */
15817
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
15818
      if (other.isSetSuccess()) {
15819
        this.success = new CatalogDashboardUser(other.success);
15820
      }
15821
      if (other.isSetHse()) {
15822
        this.hse = new HelperServiceException(other.hse);
15823
      }
15824
    }
15825
 
15826
    public authenticateCatalogUser_result deepCopy() {
15827
      return new authenticateCatalogUser_result(this);
15828
    }
15829
 
3430 rajveer 15830
    @Override
15831
    public void clear() {
15832
      this.success = null;
15833
      this.hse = null;
2024 ankur.sing 15834
    }
15835
 
15836
    public CatalogDashboardUser getSuccess() {
15837
      return this.success;
15838
    }
15839
 
3430 rajveer 15840
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 15841
      this.success = success;
15842
    }
15843
 
15844
    public void unsetSuccess() {
15845
      this.success = null;
15846
    }
15847
 
3430 rajveer 15848
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15849
    public boolean isSetSuccess() {
15850
      return this.success != null;
15851
    }
15852
 
15853
    public void setSuccessIsSet(boolean value) {
15854
      if (!value) {
15855
        this.success = null;
15856
      }
15857
    }
15858
 
15859
    public HelperServiceException getHse() {
15860
      return this.hse;
15861
    }
15862
 
3430 rajveer 15863
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 15864
      this.hse = hse;
15865
    }
15866
 
15867
    public void unsetHse() {
15868
      this.hse = null;
15869
    }
15870
 
3430 rajveer 15871
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 15872
    public boolean isSetHse() {
15873
      return this.hse != null;
15874
    }
15875
 
15876
    public void setHseIsSet(boolean value) {
15877
      if (!value) {
15878
        this.hse = null;
15879
      }
15880
    }
15881
 
15882
    public void setFieldValue(_Fields field, Object value) {
15883
      switch (field) {
15884
      case SUCCESS:
15885
        if (value == null) {
15886
          unsetSuccess();
15887
        } else {
15888
          setSuccess((CatalogDashboardUser)value);
15889
        }
15890
        break;
15891
 
15892
      case HSE:
15893
        if (value == null) {
15894
          unsetHse();
15895
        } else {
15896
          setHse((HelperServiceException)value);
15897
        }
15898
        break;
15899
 
15900
      }
15901
    }
15902
 
15903
    public Object getFieldValue(_Fields field) {
15904
      switch (field) {
15905
      case SUCCESS:
15906
        return getSuccess();
15907
 
15908
      case HSE:
15909
        return getHse();
15910
 
15911
      }
15912
      throw new IllegalStateException();
15913
    }
15914
 
3430 rajveer 15915
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15916
    public boolean isSet(_Fields field) {
15917
      if (field == null) {
15918
        throw new IllegalArgumentException();
15919
      }
2024 ankur.sing 15920
 
15921
      switch (field) {
15922
      case SUCCESS:
15923
        return isSetSuccess();
15924
      case HSE:
15925
        return isSetHse();
15926
      }
15927
      throw new IllegalStateException();
15928
    }
15929
 
15930
    @Override
15931
    public boolean equals(Object that) {
15932
      if (that == null)
15933
        return false;
15934
      if (that instanceof authenticateCatalogUser_result)
15935
        return this.equals((authenticateCatalogUser_result)that);
15936
      return false;
15937
    }
15938
 
15939
    public boolean equals(authenticateCatalogUser_result that) {
15940
      if (that == null)
15941
        return false;
15942
 
15943
      boolean this_present_success = true && this.isSetSuccess();
15944
      boolean that_present_success = true && that.isSetSuccess();
15945
      if (this_present_success || that_present_success) {
15946
        if (!(this_present_success && that_present_success))
15947
          return false;
15948
        if (!this.success.equals(that.success))
15949
          return false;
15950
      }
15951
 
15952
      boolean this_present_hse = true && this.isSetHse();
15953
      boolean that_present_hse = true && that.isSetHse();
15954
      if (this_present_hse || that_present_hse) {
15955
        if (!(this_present_hse && that_present_hse))
15956
          return false;
15957
        if (!this.hse.equals(that.hse))
15958
          return false;
15959
      }
15960
 
15961
      return true;
15962
    }
15963
 
15964
    @Override
15965
    public int hashCode() {
15966
      return 0;
15967
    }
15968
 
15969
    public int compareTo(authenticateCatalogUser_result other) {
15970
      if (!getClass().equals(other.getClass())) {
15971
        return getClass().getName().compareTo(other.getClass().getName());
15972
      }
15973
 
15974
      int lastComparison = 0;
15975
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
15976
 
3430 rajveer 15977
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 15978
      if (lastComparison != 0) {
15979
        return lastComparison;
15980
      }
3430 rajveer 15981
      if (isSetSuccess()) {
15982
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15983
        if (lastComparison != 0) {
15984
          return lastComparison;
15985
        }
2024 ankur.sing 15986
      }
3430 rajveer 15987
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 15988
      if (lastComparison != 0) {
15989
        return lastComparison;
15990
      }
3430 rajveer 15991
      if (isSetHse()) {
15992
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15993
        if (lastComparison != 0) {
15994
          return lastComparison;
15995
        }
2024 ankur.sing 15996
      }
15997
      return 0;
15998
    }
15999
 
3430 rajveer 16000
    public _Fields fieldForId(int fieldId) {
16001
      return _Fields.findByThriftId(fieldId);
16002
    }
16003
 
16004
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16005
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 16006
      iprot.readStructBegin();
16007
      while (true)
16008
      {
16009
        field = iprot.readFieldBegin();
3430 rajveer 16010
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 16011
          break;
16012
        }
3430 rajveer 16013
        switch (field.id) {
16014
          case 0: // SUCCESS
16015
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16016
              this.success = new CatalogDashboardUser();
16017
              this.success.read(iprot);
16018
            } else { 
16019
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16020
            }
16021
            break;
16022
          case 1: // HSE
16023
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16024
              this.hse = new HelperServiceException();
16025
              this.hse.read(iprot);
16026
            } else { 
16027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16028
            }
16029
            break;
16030
          default:
16031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 16032
        }
3430 rajveer 16033
        iprot.readFieldEnd();
2024 ankur.sing 16034
      }
16035
      iprot.readStructEnd();
16036
      validate();
16037
    }
16038
 
3430 rajveer 16039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 16040
      oprot.writeStructBegin(STRUCT_DESC);
16041
 
16042
      if (this.isSetSuccess()) {
16043
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16044
        this.success.write(oprot);
16045
        oprot.writeFieldEnd();
16046
      } else if (this.isSetHse()) {
16047
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16048
        this.hse.write(oprot);
16049
        oprot.writeFieldEnd();
16050
      }
16051
      oprot.writeFieldStop();
16052
      oprot.writeStructEnd();
16053
    }
16054
 
16055
    @Override
16056
    public String toString() {
16057
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
16058
      boolean first = true;
16059
 
16060
      sb.append("success:");
16061
      if (this.success == null) {
16062
        sb.append("null");
16063
      } else {
16064
        sb.append(this.success);
16065
      }
16066
      first = false;
16067
      if (!first) sb.append(", ");
16068
      sb.append("hse:");
16069
      if (this.hse == null) {
16070
        sb.append("null");
16071
      } else {
16072
        sb.append(this.hse);
16073
      }
16074
      first = false;
16075
      sb.append(")");
16076
      return sb.toString();
16077
    }
16078
 
3430 rajveer 16079
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 16080
      // check for required fields
16081
    }
16082
 
3430 rajveer 16083
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16084
      try {
16085
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16086
      } catch (org.apache.thrift.TException te) {
16087
        throw new java.io.IOException(te);
16088
      }
16089
    }
16090
 
16091
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16092
      try {
16093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16094
      } catch (org.apache.thrift.TException te) {
16095
        throw new java.io.IOException(te);
16096
      }
16097
    }
16098
 
2024 ankur.sing 16099
  }
16100
 
4544 varun.gupt 16101
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
16102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
16103
 
16104
    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);
16105
    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);
16106
 
16107
    private List<Long> entityIds; // required
16108
    private String email; // required
16109
 
16110
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16111
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16112
      ENTITY_IDS((short)1, "entityIds"),
16113
      EMAIL((short)2, "email");
16114
 
16115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16116
 
16117
      static {
16118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16119
          byName.put(field.getFieldName(), field);
16120
        }
16121
      }
16122
 
16123
      /**
16124
       * Find the _Fields constant that matches fieldId, or null if its not found.
16125
       */
16126
      public static _Fields findByThriftId(int fieldId) {
16127
        switch(fieldId) {
16128
          case 1: // ENTITY_IDS
16129
            return ENTITY_IDS;
16130
          case 2: // EMAIL
16131
            return EMAIL;
16132
          default:
16133
            return null;
16134
        }
16135
      }
16136
 
16137
      /**
16138
       * Find the _Fields constant that matches fieldId, throwing an exception
16139
       * if it is not found.
16140
       */
16141
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16142
        _Fields fields = findByThriftId(fieldId);
16143
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16144
        return fields;
16145
      }
16146
 
16147
      /**
16148
       * Find the _Fields constant that matches name, or null if its not found.
16149
       */
16150
      public static _Fields findByName(String name) {
16151
        return byName.get(name);
16152
      }
16153
 
16154
      private final short _thriftId;
16155
      private final String _fieldName;
16156
 
16157
      _Fields(short thriftId, String fieldName) {
16158
        _thriftId = thriftId;
16159
        _fieldName = fieldName;
16160
      }
16161
 
16162
      public short getThriftFieldId() {
16163
        return _thriftId;
16164
      }
16165
 
16166
      public String getFieldName() {
16167
        return _fieldName;
16168
      }
16169
    }
16170
 
16171
    // isset id assignments
16172
 
16173
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16174
    static {
16175
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16176
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16177
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16178
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
16179
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16181
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16182
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
16183
    }
16184
 
16185
    public shareEntities_args() {
16186
    }
16187
 
16188
    public shareEntities_args(
16189
      List<Long> entityIds,
16190
      String email)
16191
    {
16192
      this();
16193
      this.entityIds = entityIds;
16194
      this.email = email;
16195
    }
16196
 
16197
    /**
16198
     * Performs a deep copy on <i>other</i>.
16199
     */
16200
    public shareEntities_args(shareEntities_args other) {
16201
      if (other.isSetEntityIds()) {
16202
        List<Long> __this__entityIds = new ArrayList<Long>();
16203
        for (Long other_element : other.entityIds) {
16204
          __this__entityIds.add(other_element);
16205
        }
16206
        this.entityIds = __this__entityIds;
16207
      }
16208
      if (other.isSetEmail()) {
16209
        this.email = other.email;
16210
      }
16211
    }
16212
 
16213
    public shareEntities_args deepCopy() {
16214
      return new shareEntities_args(this);
16215
    }
16216
 
16217
    @Override
16218
    public void clear() {
16219
      this.entityIds = null;
16220
      this.email = null;
16221
    }
16222
 
16223
    public int getEntityIdsSize() {
16224
      return (this.entityIds == null) ? 0 : this.entityIds.size();
16225
    }
16226
 
16227
    public java.util.Iterator<Long> getEntityIdsIterator() {
16228
      return (this.entityIds == null) ? null : this.entityIds.iterator();
16229
    }
16230
 
16231
    public void addToEntityIds(long elem) {
16232
      if (this.entityIds == null) {
16233
        this.entityIds = new ArrayList<Long>();
16234
      }
16235
      this.entityIds.add(elem);
16236
    }
16237
 
16238
    public List<Long> getEntityIds() {
16239
      return this.entityIds;
16240
    }
16241
 
16242
    public void setEntityIds(List<Long> entityIds) {
16243
      this.entityIds = entityIds;
16244
    }
16245
 
16246
    public void unsetEntityIds() {
16247
      this.entityIds = null;
16248
    }
16249
 
16250
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
16251
    public boolean isSetEntityIds() {
16252
      return this.entityIds != null;
16253
    }
16254
 
16255
    public void setEntityIdsIsSet(boolean value) {
16256
      if (!value) {
16257
        this.entityIds = null;
16258
      }
16259
    }
16260
 
16261
    public String getEmail() {
16262
      return this.email;
16263
    }
16264
 
16265
    public void setEmail(String email) {
16266
      this.email = email;
16267
    }
16268
 
16269
    public void unsetEmail() {
16270
      this.email = null;
16271
    }
16272
 
16273
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
16274
    public boolean isSetEmail() {
16275
      return this.email != null;
16276
    }
16277
 
16278
    public void setEmailIsSet(boolean value) {
16279
      if (!value) {
16280
        this.email = null;
16281
      }
16282
    }
16283
 
16284
    public void setFieldValue(_Fields field, Object value) {
16285
      switch (field) {
16286
      case ENTITY_IDS:
16287
        if (value == null) {
16288
          unsetEntityIds();
16289
        } else {
16290
          setEntityIds((List<Long>)value);
16291
        }
16292
        break;
16293
 
16294
      case EMAIL:
16295
        if (value == null) {
16296
          unsetEmail();
16297
        } else {
16298
          setEmail((String)value);
16299
        }
16300
        break;
16301
 
16302
      }
16303
    }
16304
 
16305
    public Object getFieldValue(_Fields field) {
16306
      switch (field) {
16307
      case ENTITY_IDS:
16308
        return getEntityIds();
16309
 
16310
      case EMAIL:
16311
        return getEmail();
16312
 
16313
      }
16314
      throw new IllegalStateException();
16315
    }
16316
 
16317
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16318
    public boolean isSet(_Fields field) {
16319
      if (field == null) {
16320
        throw new IllegalArgumentException();
16321
      }
16322
 
16323
      switch (field) {
16324
      case ENTITY_IDS:
16325
        return isSetEntityIds();
16326
      case EMAIL:
16327
        return isSetEmail();
16328
      }
16329
      throw new IllegalStateException();
16330
    }
16331
 
16332
    @Override
16333
    public boolean equals(Object that) {
16334
      if (that == null)
16335
        return false;
16336
      if (that instanceof shareEntities_args)
16337
        return this.equals((shareEntities_args)that);
16338
      return false;
16339
    }
16340
 
16341
    public boolean equals(shareEntities_args that) {
16342
      if (that == null)
16343
        return false;
16344
 
16345
      boolean this_present_entityIds = true && this.isSetEntityIds();
16346
      boolean that_present_entityIds = true && that.isSetEntityIds();
16347
      if (this_present_entityIds || that_present_entityIds) {
16348
        if (!(this_present_entityIds && that_present_entityIds))
16349
          return false;
16350
        if (!this.entityIds.equals(that.entityIds))
16351
          return false;
16352
      }
16353
 
16354
      boolean this_present_email = true && this.isSetEmail();
16355
      boolean that_present_email = true && that.isSetEmail();
16356
      if (this_present_email || that_present_email) {
16357
        if (!(this_present_email && that_present_email))
16358
          return false;
16359
        if (!this.email.equals(that.email))
16360
          return false;
16361
      }
16362
 
16363
      return true;
16364
    }
16365
 
16366
    @Override
16367
    public int hashCode() {
16368
      return 0;
16369
    }
16370
 
16371
    public int compareTo(shareEntities_args other) {
16372
      if (!getClass().equals(other.getClass())) {
16373
        return getClass().getName().compareTo(other.getClass().getName());
16374
      }
16375
 
16376
      int lastComparison = 0;
16377
      shareEntities_args typedOther = (shareEntities_args)other;
16378
 
16379
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
16380
      if (lastComparison != 0) {
16381
        return lastComparison;
16382
      }
16383
      if (isSetEntityIds()) {
16384
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
16385
        if (lastComparison != 0) {
16386
          return lastComparison;
16387
        }
16388
      }
16389
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
16390
      if (lastComparison != 0) {
16391
        return lastComparison;
16392
      }
16393
      if (isSetEmail()) {
16394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
16395
        if (lastComparison != 0) {
16396
          return lastComparison;
16397
        }
16398
      }
16399
      return 0;
16400
    }
16401
 
16402
    public _Fields fieldForId(int fieldId) {
16403
      return _Fields.findByThriftId(fieldId);
16404
    }
16405
 
16406
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16407
      org.apache.thrift.protocol.TField field;
16408
      iprot.readStructBegin();
16409
      while (true)
16410
      {
16411
        field = iprot.readFieldBegin();
16412
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16413
          break;
16414
        }
16415
        switch (field.id) {
16416
          case 1: // ENTITY_IDS
16417
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16418
              {
5864 rajveer 16419
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
16420
                this.entityIds = new ArrayList<Long>(_list45.size);
16421
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 16422
                {
5864 rajveer 16423
                  long _elem47; // required
16424
                  _elem47 = iprot.readI64();
16425
                  this.entityIds.add(_elem47);
4544 varun.gupt 16426
                }
16427
                iprot.readListEnd();
16428
              }
16429
            } else { 
16430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16431
            }
16432
            break;
16433
          case 2: // EMAIL
16434
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16435
              this.email = iprot.readString();
16436
            } else { 
16437
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16438
            }
16439
            break;
16440
          default:
16441
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16442
        }
16443
        iprot.readFieldEnd();
16444
      }
16445
      iprot.readStructEnd();
16446
      validate();
16447
    }
16448
 
16449
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16450
      validate();
16451
 
16452
      oprot.writeStructBegin(STRUCT_DESC);
16453
      if (this.entityIds != null) {
16454
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
16455
        {
16456
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 16457
          for (long _iter48 : this.entityIds)
4544 varun.gupt 16458
          {
5864 rajveer 16459
            oprot.writeI64(_iter48);
4544 varun.gupt 16460
          }
16461
          oprot.writeListEnd();
16462
        }
16463
        oprot.writeFieldEnd();
16464
      }
16465
      if (this.email != null) {
16466
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
16467
        oprot.writeString(this.email);
16468
        oprot.writeFieldEnd();
16469
      }
16470
      oprot.writeFieldStop();
16471
      oprot.writeStructEnd();
16472
    }
16473
 
16474
    @Override
16475
    public String toString() {
16476
      StringBuilder sb = new StringBuilder("shareEntities_args(");
16477
      boolean first = true;
16478
 
16479
      sb.append("entityIds:");
16480
      if (this.entityIds == null) {
16481
        sb.append("null");
16482
      } else {
16483
        sb.append(this.entityIds);
16484
      }
16485
      first = false;
16486
      if (!first) sb.append(", ");
16487
      sb.append("email:");
16488
      if (this.email == null) {
16489
        sb.append("null");
16490
      } else {
16491
        sb.append(this.email);
16492
      }
16493
      first = false;
16494
      sb.append(")");
16495
      return sb.toString();
16496
    }
16497
 
16498
    public void validate() throws org.apache.thrift.TException {
16499
      // check for required fields
16500
    }
16501
 
16502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16503
      try {
16504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16505
      } catch (org.apache.thrift.TException te) {
16506
        throw new java.io.IOException(te);
16507
      }
16508
    }
16509
 
16510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16511
      try {
16512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16513
      } catch (org.apache.thrift.TException te) {
16514
        throw new java.io.IOException(te);
16515
      }
16516
    }
16517
 
16518
  }
16519
 
16520
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
16521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
16522
 
16523
    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);
16524
 
16525
    private HelperServiceException hse; // required
16526
 
16527
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16528
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16529
      HSE((short)1, "hse");
16530
 
16531
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16532
 
16533
      static {
16534
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16535
          byName.put(field.getFieldName(), field);
16536
        }
16537
      }
16538
 
16539
      /**
16540
       * Find the _Fields constant that matches fieldId, or null if its not found.
16541
       */
16542
      public static _Fields findByThriftId(int fieldId) {
16543
        switch(fieldId) {
16544
          case 1: // HSE
16545
            return HSE;
16546
          default:
16547
            return null;
16548
        }
16549
      }
16550
 
16551
      /**
16552
       * Find the _Fields constant that matches fieldId, throwing an exception
16553
       * if it is not found.
16554
       */
16555
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16556
        _Fields fields = findByThriftId(fieldId);
16557
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16558
        return fields;
16559
      }
16560
 
16561
      /**
16562
       * Find the _Fields constant that matches name, or null if its not found.
16563
       */
16564
      public static _Fields findByName(String name) {
16565
        return byName.get(name);
16566
      }
16567
 
16568
      private final short _thriftId;
16569
      private final String _fieldName;
16570
 
16571
      _Fields(short thriftId, String fieldName) {
16572
        _thriftId = thriftId;
16573
        _fieldName = fieldName;
16574
      }
16575
 
16576
      public short getThriftFieldId() {
16577
        return _thriftId;
16578
      }
16579
 
16580
      public String getFieldName() {
16581
        return _fieldName;
16582
      }
16583
    }
16584
 
16585
    // isset id assignments
16586
 
16587
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16588
    static {
16589
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16590
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16591
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16592
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16593
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
16594
    }
16595
 
16596
    public shareEntities_result() {
16597
    }
16598
 
16599
    public shareEntities_result(
16600
      HelperServiceException hse)
16601
    {
16602
      this();
16603
      this.hse = hse;
16604
    }
16605
 
16606
    /**
16607
     * Performs a deep copy on <i>other</i>.
16608
     */
16609
    public shareEntities_result(shareEntities_result other) {
16610
      if (other.isSetHse()) {
16611
        this.hse = new HelperServiceException(other.hse);
16612
      }
16613
    }
16614
 
16615
    public shareEntities_result deepCopy() {
16616
      return new shareEntities_result(this);
16617
    }
16618
 
16619
    @Override
16620
    public void clear() {
16621
      this.hse = null;
16622
    }
16623
 
16624
    public HelperServiceException getHse() {
16625
      return this.hse;
16626
    }
16627
 
16628
    public void setHse(HelperServiceException hse) {
16629
      this.hse = hse;
16630
    }
16631
 
16632
    public void unsetHse() {
16633
      this.hse = null;
16634
    }
16635
 
16636
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
16637
    public boolean isSetHse() {
16638
      return this.hse != null;
16639
    }
16640
 
16641
    public void setHseIsSet(boolean value) {
16642
      if (!value) {
16643
        this.hse = null;
16644
      }
16645
    }
16646
 
16647
    public void setFieldValue(_Fields field, Object value) {
16648
      switch (field) {
16649
      case HSE:
16650
        if (value == null) {
16651
          unsetHse();
16652
        } else {
16653
          setHse((HelperServiceException)value);
16654
        }
16655
        break;
16656
 
16657
      }
16658
    }
16659
 
16660
    public Object getFieldValue(_Fields field) {
16661
      switch (field) {
16662
      case HSE:
16663
        return getHse();
16664
 
16665
      }
16666
      throw new IllegalStateException();
16667
    }
16668
 
16669
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16670
    public boolean isSet(_Fields field) {
16671
      if (field == null) {
16672
        throw new IllegalArgumentException();
16673
      }
16674
 
16675
      switch (field) {
16676
      case HSE:
16677
        return isSetHse();
16678
      }
16679
      throw new IllegalStateException();
16680
    }
16681
 
16682
    @Override
16683
    public boolean equals(Object that) {
16684
      if (that == null)
16685
        return false;
16686
      if (that instanceof shareEntities_result)
16687
        return this.equals((shareEntities_result)that);
16688
      return false;
16689
    }
16690
 
16691
    public boolean equals(shareEntities_result that) {
16692
      if (that == null)
16693
        return false;
16694
 
16695
      boolean this_present_hse = true && this.isSetHse();
16696
      boolean that_present_hse = true && that.isSetHse();
16697
      if (this_present_hse || that_present_hse) {
16698
        if (!(this_present_hse && that_present_hse))
16699
          return false;
16700
        if (!this.hse.equals(that.hse))
16701
          return false;
16702
      }
16703
 
16704
      return true;
16705
    }
16706
 
16707
    @Override
16708
    public int hashCode() {
16709
      return 0;
16710
    }
16711
 
16712
    public int compareTo(shareEntities_result other) {
16713
      if (!getClass().equals(other.getClass())) {
16714
        return getClass().getName().compareTo(other.getClass().getName());
16715
      }
16716
 
16717
      int lastComparison = 0;
16718
      shareEntities_result typedOther = (shareEntities_result)other;
16719
 
16720
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
16721
      if (lastComparison != 0) {
16722
        return lastComparison;
16723
      }
16724
      if (isSetHse()) {
16725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16726
        if (lastComparison != 0) {
16727
          return lastComparison;
16728
        }
16729
      }
16730
      return 0;
16731
    }
16732
 
16733
    public _Fields fieldForId(int fieldId) {
16734
      return _Fields.findByThriftId(fieldId);
16735
    }
16736
 
16737
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16738
      org.apache.thrift.protocol.TField field;
16739
      iprot.readStructBegin();
16740
      while (true)
16741
      {
16742
        field = iprot.readFieldBegin();
16743
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16744
          break;
16745
        }
16746
        switch (field.id) {
16747
          case 1: // HSE
16748
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
16749
              this.hse = new HelperServiceException();
16750
              this.hse.read(iprot);
16751
            } else { 
16752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16753
            }
16754
            break;
16755
          default:
16756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16757
        }
16758
        iprot.readFieldEnd();
16759
      }
16760
      iprot.readStructEnd();
16761
      validate();
16762
    }
16763
 
16764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16765
      oprot.writeStructBegin(STRUCT_DESC);
16766
 
16767
      if (this.isSetHse()) {
16768
        oprot.writeFieldBegin(HSE_FIELD_DESC);
16769
        this.hse.write(oprot);
16770
        oprot.writeFieldEnd();
16771
      }
16772
      oprot.writeFieldStop();
16773
      oprot.writeStructEnd();
16774
    }
16775
 
16776
    @Override
16777
    public String toString() {
16778
      StringBuilder sb = new StringBuilder("shareEntities_result(");
16779
      boolean first = true;
16780
 
16781
      sb.append("hse:");
16782
      if (this.hse == null) {
16783
        sb.append("null");
16784
      } else {
16785
        sb.append(this.hse);
16786
      }
16787
      first = false;
16788
      sb.append(")");
16789
      return sb.toString();
16790
    }
16791
 
16792
    public void validate() throws org.apache.thrift.TException {
16793
      // check for required fields
16794
    }
16795
 
16796
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16797
      try {
16798
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16799
      } catch (org.apache.thrift.TException te) {
16800
        throw new java.io.IOException(te);
16801
      }
16802
    }
16803
 
16804
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16805
      try {
16806
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16807
      } catch (org.apache.thrift.TException te) {
16808
        throw new java.io.IOException(te);
16809
      }
16810
    }
16811
 
16812
  }
16813
 
4693 mandeep.dh 16814
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
16815
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
16816
 
16817
 
16818
 
16819
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
16820
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
16821
;
16822
 
16823
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16824
 
16825
      static {
16826
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16827
          byName.put(field.getFieldName(), field);
16828
        }
16829
      }
16830
 
16831
      /**
16832
       * Find the _Fields constant that matches fieldId, or null if its not found.
16833
       */
16834
      public static _Fields findByThriftId(int fieldId) {
16835
        switch(fieldId) {
16836
          default:
16837
            return null;
16838
        }
16839
      }
16840
 
16841
      /**
16842
       * Find the _Fields constant that matches fieldId, throwing an exception
16843
       * if it is not found.
16844
       */
16845
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16846
        _Fields fields = findByThriftId(fieldId);
16847
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16848
        return fields;
16849
      }
16850
 
16851
      /**
16852
       * Find the _Fields constant that matches name, or null if its not found.
16853
       */
16854
      public static _Fields findByName(String name) {
16855
        return byName.get(name);
16856
      }
16857
 
16858
      private final short _thriftId;
16859
      private final String _fieldName;
16860
 
16861
      _Fields(short thriftId, String fieldName) {
16862
        _thriftId = thriftId;
16863
        _fieldName = fieldName;
16864
      }
16865
 
16866
      public short getThriftFieldId() {
16867
        return _thriftId;
16868
      }
16869
 
16870
      public String getFieldName() {
16871
        return _fieldName;
16872
      }
16873
    }
16874
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
16875
    static {
16876
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16877
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16878
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
16879
    }
16880
 
16881
    public getAgents_args() {
16882
    }
16883
 
16884
    /**
16885
     * Performs a deep copy on <i>other</i>.
16886
     */
16887
    public getAgents_args(getAgents_args other) {
16888
    }
16889
 
16890
    public getAgents_args deepCopy() {
16891
      return new getAgents_args(this);
16892
    }
16893
 
16894
    @Override
16895
    public void clear() {
16896
    }
16897
 
16898
    public void setFieldValue(_Fields field, Object value) {
16899
      switch (field) {
16900
      }
16901
    }
16902
 
16903
    public Object getFieldValue(_Fields field) {
16904
      switch (field) {
16905
      }
16906
      throw new IllegalStateException();
16907
    }
16908
 
16909
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16910
    public boolean isSet(_Fields field) {
16911
      if (field == null) {
16912
        throw new IllegalArgumentException();
16913
      }
16914
 
16915
      switch (field) {
16916
      }
16917
      throw new IllegalStateException();
16918
    }
16919
 
16920
    @Override
16921
    public boolean equals(Object that) {
16922
      if (that == null)
16923
        return false;
16924
      if (that instanceof getAgents_args)
16925
        return this.equals((getAgents_args)that);
16926
      return false;
16927
    }
16928
 
16929
    public boolean equals(getAgents_args that) {
16930
      if (that == null)
16931
        return false;
16932
 
16933
      return true;
16934
    }
16935
 
16936
    @Override
16937
    public int hashCode() {
16938
      return 0;
16939
    }
16940
 
16941
    public int compareTo(getAgents_args other) {
16942
      if (!getClass().equals(other.getClass())) {
16943
        return getClass().getName().compareTo(other.getClass().getName());
16944
      }
16945
 
16946
      int lastComparison = 0;
16947
      getAgents_args typedOther = (getAgents_args)other;
16948
 
16949
      return 0;
16950
    }
16951
 
16952
    public _Fields fieldForId(int fieldId) {
16953
      return _Fields.findByThriftId(fieldId);
16954
    }
16955
 
16956
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16957
      org.apache.thrift.protocol.TField field;
16958
      iprot.readStructBegin();
16959
      while (true)
16960
      {
16961
        field = iprot.readFieldBegin();
16962
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
16963
          break;
16964
        }
16965
        switch (field.id) {
16966
          default:
16967
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16968
        }
16969
        iprot.readFieldEnd();
16970
      }
16971
      iprot.readStructEnd();
16972
      validate();
16973
    }
16974
 
16975
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
16976
      validate();
16977
 
16978
      oprot.writeStructBegin(STRUCT_DESC);
16979
      oprot.writeFieldStop();
16980
      oprot.writeStructEnd();
16981
    }
16982
 
16983
    @Override
16984
    public String toString() {
16985
      StringBuilder sb = new StringBuilder("getAgents_args(");
16986
      boolean first = true;
16987
 
16988
      sb.append(")");
16989
      return sb.toString();
16990
    }
16991
 
16992
    public void validate() throws org.apache.thrift.TException {
16993
      // check for required fields
16994
    }
16995
 
16996
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16997
      try {
16998
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16999
      } catch (org.apache.thrift.TException te) {
17000
        throw new java.io.IOException(te);
17001
      }
17002
    }
17003
 
17004
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17005
      try {
17006
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17007
      } catch (org.apache.thrift.TException te) {
17008
        throw new java.io.IOException(te);
17009
      }
17010
    }
17011
 
17012
  }
17013
 
17014
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
17015
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
17016
 
17017
    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);
17018
 
17019
    private List<Agent> success; // required
17020
 
17021
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17022
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17023
      SUCCESS((short)0, "success");
17024
 
17025
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17026
 
17027
      static {
17028
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17029
          byName.put(field.getFieldName(), field);
17030
        }
17031
      }
17032
 
17033
      /**
17034
       * Find the _Fields constant that matches fieldId, or null if its not found.
17035
       */
17036
      public static _Fields findByThriftId(int fieldId) {
17037
        switch(fieldId) {
17038
          case 0: // SUCCESS
17039
            return SUCCESS;
17040
          default:
17041
            return null;
17042
        }
17043
      }
17044
 
17045
      /**
17046
       * Find the _Fields constant that matches fieldId, throwing an exception
17047
       * if it is not found.
17048
       */
17049
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17050
        _Fields fields = findByThriftId(fieldId);
17051
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17052
        return fields;
17053
      }
17054
 
17055
      /**
17056
       * Find the _Fields constant that matches name, or null if its not found.
17057
       */
17058
      public static _Fields findByName(String name) {
17059
        return byName.get(name);
17060
      }
17061
 
17062
      private final short _thriftId;
17063
      private final String _fieldName;
17064
 
17065
      _Fields(short thriftId, String fieldName) {
17066
        _thriftId = thriftId;
17067
        _fieldName = fieldName;
17068
      }
17069
 
17070
      public short getThriftFieldId() {
17071
        return _thriftId;
17072
      }
17073
 
17074
      public String getFieldName() {
17075
        return _fieldName;
17076
      }
17077
    }
17078
 
17079
    // isset id assignments
17080
 
17081
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17082
    static {
17083
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17084
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17085
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17086
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
17087
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17088
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
17089
    }
17090
 
17091
    public getAgents_result() {
17092
    }
17093
 
17094
    public getAgents_result(
17095
      List<Agent> success)
17096
    {
17097
      this();
17098
      this.success = success;
17099
    }
17100
 
17101
    /**
17102
     * Performs a deep copy on <i>other</i>.
17103
     */
17104
    public getAgents_result(getAgents_result other) {
17105
      if (other.isSetSuccess()) {
17106
        List<Agent> __this__success = new ArrayList<Agent>();
17107
        for (Agent other_element : other.success) {
17108
          __this__success.add(new Agent(other_element));
17109
        }
17110
        this.success = __this__success;
17111
      }
17112
    }
17113
 
17114
    public getAgents_result deepCopy() {
17115
      return new getAgents_result(this);
17116
    }
17117
 
17118
    @Override
17119
    public void clear() {
17120
      this.success = null;
17121
    }
17122
 
17123
    public int getSuccessSize() {
17124
      return (this.success == null) ? 0 : this.success.size();
17125
    }
17126
 
17127
    public java.util.Iterator<Agent> getSuccessIterator() {
17128
      return (this.success == null) ? null : this.success.iterator();
17129
    }
17130
 
17131
    public void addToSuccess(Agent elem) {
17132
      if (this.success == null) {
17133
        this.success = new ArrayList<Agent>();
17134
      }
17135
      this.success.add(elem);
17136
    }
17137
 
17138
    public List<Agent> getSuccess() {
17139
      return this.success;
17140
    }
17141
 
17142
    public void setSuccess(List<Agent> success) {
17143
      this.success = success;
17144
    }
17145
 
17146
    public void unsetSuccess() {
17147
      this.success = null;
17148
    }
17149
 
17150
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17151
    public boolean isSetSuccess() {
17152
      return this.success != null;
17153
    }
17154
 
17155
    public void setSuccessIsSet(boolean value) {
17156
      if (!value) {
17157
        this.success = null;
17158
      }
17159
    }
17160
 
17161
    public void setFieldValue(_Fields field, Object value) {
17162
      switch (field) {
17163
      case SUCCESS:
17164
        if (value == null) {
17165
          unsetSuccess();
17166
        } else {
17167
          setSuccess((List<Agent>)value);
17168
        }
17169
        break;
17170
 
17171
      }
17172
    }
17173
 
17174
    public Object getFieldValue(_Fields field) {
17175
      switch (field) {
17176
      case SUCCESS:
17177
        return getSuccess();
17178
 
17179
      }
17180
      throw new IllegalStateException();
17181
    }
17182
 
17183
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17184
    public boolean isSet(_Fields field) {
17185
      if (field == null) {
17186
        throw new IllegalArgumentException();
17187
      }
17188
 
17189
      switch (field) {
17190
      case SUCCESS:
17191
        return isSetSuccess();
17192
      }
17193
      throw new IllegalStateException();
17194
    }
17195
 
17196
    @Override
17197
    public boolean equals(Object that) {
17198
      if (that == null)
17199
        return false;
17200
      if (that instanceof getAgents_result)
17201
        return this.equals((getAgents_result)that);
17202
      return false;
17203
    }
17204
 
17205
    public boolean equals(getAgents_result that) {
17206
      if (that == null)
17207
        return false;
17208
 
17209
      boolean this_present_success = true && this.isSetSuccess();
17210
      boolean that_present_success = true && that.isSetSuccess();
17211
      if (this_present_success || that_present_success) {
17212
        if (!(this_present_success && that_present_success))
17213
          return false;
17214
        if (!this.success.equals(that.success))
17215
          return false;
17216
      }
17217
 
17218
      return true;
17219
    }
17220
 
17221
    @Override
17222
    public int hashCode() {
17223
      return 0;
17224
    }
17225
 
17226
    public int compareTo(getAgents_result other) {
17227
      if (!getClass().equals(other.getClass())) {
17228
        return getClass().getName().compareTo(other.getClass().getName());
17229
      }
17230
 
17231
      int lastComparison = 0;
17232
      getAgents_result typedOther = (getAgents_result)other;
17233
 
17234
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17235
      if (lastComparison != 0) {
17236
        return lastComparison;
17237
      }
17238
      if (isSetSuccess()) {
17239
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17240
        if (lastComparison != 0) {
17241
          return lastComparison;
17242
        }
17243
      }
17244
      return 0;
17245
    }
17246
 
17247
    public _Fields fieldForId(int fieldId) {
17248
      return _Fields.findByThriftId(fieldId);
17249
    }
17250
 
17251
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17252
      org.apache.thrift.protocol.TField field;
17253
      iprot.readStructBegin();
17254
      while (true)
17255
      {
17256
        field = iprot.readFieldBegin();
17257
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17258
          break;
17259
        }
17260
        switch (field.id) {
17261
          case 0: // SUCCESS
17262
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17263
              {
5864 rajveer 17264
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
17265
                this.success = new ArrayList<Agent>(_list49.size);
17266
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 17267
                {
5864 rajveer 17268
                  Agent _elem51; // required
17269
                  _elem51 = new Agent();
17270
                  _elem51.read(iprot);
17271
                  this.success.add(_elem51);
4693 mandeep.dh 17272
                }
17273
                iprot.readListEnd();
17274
              }
17275
            } else { 
17276
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17277
            }
17278
            break;
17279
          default:
17280
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17281
        }
17282
        iprot.readFieldEnd();
17283
      }
17284
      iprot.readStructEnd();
17285
      validate();
17286
    }
17287
 
17288
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17289
      oprot.writeStructBegin(STRUCT_DESC);
17290
 
17291
      if (this.isSetSuccess()) {
17292
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17293
        {
17294
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 17295
          for (Agent _iter52 : this.success)
4693 mandeep.dh 17296
          {
5864 rajveer 17297
            _iter52.write(oprot);
4693 mandeep.dh 17298
          }
17299
          oprot.writeListEnd();
17300
        }
17301
        oprot.writeFieldEnd();
17302
      }
17303
      oprot.writeFieldStop();
17304
      oprot.writeStructEnd();
17305
    }
17306
 
17307
    @Override
17308
    public String toString() {
17309
      StringBuilder sb = new StringBuilder("getAgents_result(");
17310
      boolean first = true;
17311
 
17312
      sb.append("success:");
17313
      if (this.success == null) {
17314
        sb.append("null");
17315
      } else {
17316
        sb.append(this.success);
17317
      }
17318
      first = false;
17319
      sb.append(")");
17320
      return sb.toString();
17321
    }
17322
 
17323
    public void validate() throws org.apache.thrift.TException {
17324
      // check for required fields
17325
    }
17326
 
17327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17328
      try {
17329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17330
      } catch (org.apache.thrift.TException te) {
17331
        throw new java.io.IOException(te);
17332
      }
17333
    }
17334
 
17335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17336
      try {
17337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17338
      } catch (org.apache.thrift.TException te) {
17339
        throw new java.io.IOException(te);
17340
      }
17341
    }
17342
 
17343
  }
17344
 
17345
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
17346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
17347
 
17348
    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);
17349
    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);
17350
 
17351
    private String emailId; // required
17352
    private String password; // required
17353
 
17354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17356
      EMAIL_ID((short)1, "emailId"),
17357
      PASSWORD((short)2, "password");
17358
 
17359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17360
 
17361
      static {
17362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17363
          byName.put(field.getFieldName(), field);
17364
        }
17365
      }
17366
 
17367
      /**
17368
       * Find the _Fields constant that matches fieldId, or null if its not found.
17369
       */
17370
      public static _Fields findByThriftId(int fieldId) {
17371
        switch(fieldId) {
17372
          case 1: // EMAIL_ID
17373
            return EMAIL_ID;
17374
          case 2: // PASSWORD
17375
            return PASSWORD;
17376
          default:
17377
            return null;
17378
        }
17379
      }
17380
 
17381
      /**
17382
       * Find the _Fields constant that matches fieldId, throwing an exception
17383
       * if it is not found.
17384
       */
17385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17386
        _Fields fields = findByThriftId(fieldId);
17387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17388
        return fields;
17389
      }
17390
 
17391
      /**
17392
       * Find the _Fields constant that matches name, or null if its not found.
17393
       */
17394
      public static _Fields findByName(String name) {
17395
        return byName.get(name);
17396
      }
17397
 
17398
      private final short _thriftId;
17399
      private final String _fieldName;
17400
 
17401
      _Fields(short thriftId, String fieldName) {
17402
        _thriftId = thriftId;
17403
        _fieldName = fieldName;
17404
      }
17405
 
17406
      public short getThriftFieldId() {
17407
        return _thriftId;
17408
      }
17409
 
17410
      public String getFieldName() {
17411
        return _fieldName;
17412
      }
17413
    }
17414
 
17415
    // isset id assignments
17416
 
17417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17418
    static {
17419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17420
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17421
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17422
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17423
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17424
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17425
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
17426
    }
17427
 
17428
    public validateLogIn_args() {
17429
    }
17430
 
17431
    public validateLogIn_args(
17432
      String emailId,
17433
      String password)
17434
    {
17435
      this();
17436
      this.emailId = emailId;
17437
      this.password = password;
17438
    }
17439
 
17440
    /**
17441
     * Performs a deep copy on <i>other</i>.
17442
     */
17443
    public validateLogIn_args(validateLogIn_args other) {
17444
      if (other.isSetEmailId()) {
17445
        this.emailId = other.emailId;
17446
      }
17447
      if (other.isSetPassword()) {
17448
        this.password = other.password;
17449
      }
17450
    }
17451
 
17452
    public validateLogIn_args deepCopy() {
17453
      return new validateLogIn_args(this);
17454
    }
17455
 
17456
    @Override
17457
    public void clear() {
17458
      this.emailId = null;
17459
      this.password = null;
17460
    }
17461
 
17462
    public String getEmailId() {
17463
      return this.emailId;
17464
    }
17465
 
17466
    public void setEmailId(String emailId) {
17467
      this.emailId = emailId;
17468
    }
17469
 
17470
    public void unsetEmailId() {
17471
      this.emailId = null;
17472
    }
17473
 
17474
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
17475
    public boolean isSetEmailId() {
17476
      return this.emailId != null;
17477
    }
17478
 
17479
    public void setEmailIdIsSet(boolean value) {
17480
      if (!value) {
17481
        this.emailId = null;
17482
      }
17483
    }
17484
 
17485
    public String getPassword() {
17486
      return this.password;
17487
    }
17488
 
17489
    public void setPassword(String password) {
17490
      this.password = password;
17491
    }
17492
 
17493
    public void unsetPassword() {
17494
      this.password = null;
17495
    }
17496
 
17497
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
17498
    public boolean isSetPassword() {
17499
      return this.password != null;
17500
    }
17501
 
17502
    public void setPasswordIsSet(boolean value) {
17503
      if (!value) {
17504
        this.password = null;
17505
      }
17506
    }
17507
 
17508
    public void setFieldValue(_Fields field, Object value) {
17509
      switch (field) {
17510
      case EMAIL_ID:
17511
        if (value == null) {
17512
          unsetEmailId();
17513
        } else {
17514
          setEmailId((String)value);
17515
        }
17516
        break;
17517
 
17518
      case PASSWORD:
17519
        if (value == null) {
17520
          unsetPassword();
17521
        } else {
17522
          setPassword((String)value);
17523
        }
17524
        break;
17525
 
17526
      }
17527
    }
17528
 
17529
    public Object getFieldValue(_Fields field) {
17530
      switch (field) {
17531
      case EMAIL_ID:
17532
        return getEmailId();
17533
 
17534
      case PASSWORD:
17535
        return getPassword();
17536
 
17537
      }
17538
      throw new IllegalStateException();
17539
    }
17540
 
17541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17542
    public boolean isSet(_Fields field) {
17543
      if (field == null) {
17544
        throw new IllegalArgumentException();
17545
      }
17546
 
17547
      switch (field) {
17548
      case EMAIL_ID:
17549
        return isSetEmailId();
17550
      case PASSWORD:
17551
        return isSetPassword();
17552
      }
17553
      throw new IllegalStateException();
17554
    }
17555
 
17556
    @Override
17557
    public boolean equals(Object that) {
17558
      if (that == null)
17559
        return false;
17560
      if (that instanceof validateLogIn_args)
17561
        return this.equals((validateLogIn_args)that);
17562
      return false;
17563
    }
17564
 
17565
    public boolean equals(validateLogIn_args that) {
17566
      if (that == null)
17567
        return false;
17568
 
17569
      boolean this_present_emailId = true && this.isSetEmailId();
17570
      boolean that_present_emailId = true && that.isSetEmailId();
17571
      if (this_present_emailId || that_present_emailId) {
17572
        if (!(this_present_emailId && that_present_emailId))
17573
          return false;
17574
        if (!this.emailId.equals(that.emailId))
17575
          return false;
17576
      }
17577
 
17578
      boolean this_present_password = true && this.isSetPassword();
17579
      boolean that_present_password = true && that.isSetPassword();
17580
      if (this_present_password || that_present_password) {
17581
        if (!(this_present_password && that_present_password))
17582
          return false;
17583
        if (!this.password.equals(that.password))
17584
          return false;
17585
      }
17586
 
17587
      return true;
17588
    }
17589
 
17590
    @Override
17591
    public int hashCode() {
17592
      return 0;
17593
    }
17594
 
17595
    public int compareTo(validateLogIn_args other) {
17596
      if (!getClass().equals(other.getClass())) {
17597
        return getClass().getName().compareTo(other.getClass().getName());
17598
      }
17599
 
17600
      int lastComparison = 0;
17601
      validateLogIn_args typedOther = (validateLogIn_args)other;
17602
 
17603
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
17604
      if (lastComparison != 0) {
17605
        return lastComparison;
17606
      }
17607
      if (isSetEmailId()) {
17608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
17609
        if (lastComparison != 0) {
17610
          return lastComparison;
17611
        }
17612
      }
17613
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
17614
      if (lastComparison != 0) {
17615
        return lastComparison;
17616
      }
17617
      if (isSetPassword()) {
17618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
17619
        if (lastComparison != 0) {
17620
          return lastComparison;
17621
        }
17622
      }
17623
      return 0;
17624
    }
17625
 
17626
    public _Fields fieldForId(int fieldId) {
17627
      return _Fields.findByThriftId(fieldId);
17628
    }
17629
 
17630
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17631
      org.apache.thrift.protocol.TField field;
17632
      iprot.readStructBegin();
17633
      while (true)
17634
      {
17635
        field = iprot.readFieldBegin();
17636
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17637
          break;
17638
        }
17639
        switch (field.id) {
17640
          case 1: // EMAIL_ID
17641
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17642
              this.emailId = iprot.readString();
17643
            } else { 
17644
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17645
            }
17646
            break;
17647
          case 2: // PASSWORD
17648
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17649
              this.password = iprot.readString();
17650
            } else { 
17651
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17652
            }
17653
            break;
17654
          default:
17655
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17656
        }
17657
        iprot.readFieldEnd();
17658
      }
17659
      iprot.readStructEnd();
17660
      validate();
17661
    }
17662
 
17663
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17664
      validate();
17665
 
17666
      oprot.writeStructBegin(STRUCT_DESC);
17667
      if (this.emailId != null) {
17668
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
17669
        oprot.writeString(this.emailId);
17670
        oprot.writeFieldEnd();
17671
      }
17672
      if (this.password != null) {
17673
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
17674
        oprot.writeString(this.password);
17675
        oprot.writeFieldEnd();
17676
      }
17677
      oprot.writeFieldStop();
17678
      oprot.writeStructEnd();
17679
    }
17680
 
17681
    @Override
17682
    public String toString() {
17683
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
17684
      boolean first = true;
17685
 
17686
      sb.append("emailId:");
17687
      if (this.emailId == null) {
17688
        sb.append("null");
17689
      } else {
17690
        sb.append(this.emailId);
17691
      }
17692
      first = false;
17693
      if (!first) sb.append(", ");
17694
      sb.append("password:");
17695
      if (this.password == null) {
17696
        sb.append("null");
17697
      } else {
17698
        sb.append(this.password);
17699
      }
17700
      first = false;
17701
      sb.append(")");
17702
      return sb.toString();
17703
    }
17704
 
17705
    public void validate() throws org.apache.thrift.TException {
17706
      // check for required fields
17707
    }
17708
 
17709
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17710
      try {
17711
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17712
      } catch (org.apache.thrift.TException te) {
17713
        throw new java.io.IOException(te);
17714
      }
17715
    }
17716
 
17717
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17718
      try {
17719
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17720
      } catch (org.apache.thrift.TException te) {
17721
        throw new java.io.IOException(te);
17722
      }
17723
    }
17724
 
17725
  }
17726
 
17727
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
17728
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
17729
 
17730
    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);
17731
 
17732
    private boolean success; // required
17733
 
17734
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17735
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17736
      SUCCESS((short)0, "success");
17737
 
17738
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17739
 
17740
      static {
17741
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17742
          byName.put(field.getFieldName(), field);
17743
        }
17744
      }
17745
 
17746
      /**
17747
       * Find the _Fields constant that matches fieldId, or null if its not found.
17748
       */
17749
      public static _Fields findByThriftId(int fieldId) {
17750
        switch(fieldId) {
17751
          case 0: // SUCCESS
17752
            return SUCCESS;
17753
          default:
17754
            return null;
17755
        }
17756
      }
17757
 
17758
      /**
17759
       * Find the _Fields constant that matches fieldId, throwing an exception
17760
       * if it is not found.
17761
       */
17762
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17763
        _Fields fields = findByThriftId(fieldId);
17764
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17765
        return fields;
17766
      }
17767
 
17768
      /**
17769
       * Find the _Fields constant that matches name, or null if its not found.
17770
       */
17771
      public static _Fields findByName(String name) {
17772
        return byName.get(name);
17773
      }
17774
 
17775
      private final short _thriftId;
17776
      private final String _fieldName;
17777
 
17778
      _Fields(short thriftId, String fieldName) {
17779
        _thriftId = thriftId;
17780
        _fieldName = fieldName;
17781
      }
17782
 
17783
      public short getThriftFieldId() {
17784
        return _thriftId;
17785
      }
17786
 
17787
      public String getFieldName() {
17788
        return _fieldName;
17789
      }
17790
    }
17791
 
17792
    // isset id assignments
17793
    private static final int __SUCCESS_ISSET_ID = 0;
17794
    private BitSet __isset_bit_vector = new BitSet(1);
17795
 
17796
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17797
    static {
17798
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17799
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17800
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
17801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
17803
    }
17804
 
17805
    public validateLogIn_result() {
17806
    }
17807
 
17808
    public validateLogIn_result(
17809
      boolean success)
17810
    {
17811
      this();
17812
      this.success = success;
17813
      setSuccessIsSet(true);
17814
    }
17815
 
17816
    /**
17817
     * Performs a deep copy on <i>other</i>.
17818
     */
17819
    public validateLogIn_result(validateLogIn_result other) {
17820
      __isset_bit_vector.clear();
17821
      __isset_bit_vector.or(other.__isset_bit_vector);
17822
      this.success = other.success;
17823
    }
17824
 
17825
    public validateLogIn_result deepCopy() {
17826
      return new validateLogIn_result(this);
17827
    }
17828
 
17829
    @Override
17830
    public void clear() {
17831
      setSuccessIsSet(false);
17832
      this.success = false;
17833
    }
17834
 
17835
    public boolean isSuccess() {
17836
      return this.success;
17837
    }
17838
 
17839
    public void setSuccess(boolean success) {
17840
      this.success = success;
17841
      setSuccessIsSet(true);
17842
    }
17843
 
17844
    public void unsetSuccess() {
17845
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
17846
    }
17847
 
17848
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
17849
    public boolean isSetSuccess() {
17850
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
17851
    }
17852
 
17853
    public void setSuccessIsSet(boolean value) {
17854
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
17855
    }
17856
 
17857
    public void setFieldValue(_Fields field, Object value) {
17858
      switch (field) {
17859
      case SUCCESS:
17860
        if (value == null) {
17861
          unsetSuccess();
17862
        } else {
17863
          setSuccess((Boolean)value);
17864
        }
17865
        break;
17866
 
17867
      }
17868
    }
17869
 
17870
    public Object getFieldValue(_Fields field) {
17871
      switch (field) {
17872
      case SUCCESS:
17873
        return Boolean.valueOf(isSuccess());
17874
 
17875
      }
17876
      throw new IllegalStateException();
17877
    }
17878
 
17879
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17880
    public boolean isSet(_Fields field) {
17881
      if (field == null) {
17882
        throw new IllegalArgumentException();
17883
      }
17884
 
17885
      switch (field) {
17886
      case SUCCESS:
17887
        return isSetSuccess();
17888
      }
17889
      throw new IllegalStateException();
17890
    }
17891
 
17892
    @Override
17893
    public boolean equals(Object that) {
17894
      if (that == null)
17895
        return false;
17896
      if (that instanceof validateLogIn_result)
17897
        return this.equals((validateLogIn_result)that);
17898
      return false;
17899
    }
17900
 
17901
    public boolean equals(validateLogIn_result that) {
17902
      if (that == null)
17903
        return false;
17904
 
17905
      boolean this_present_success = true;
17906
      boolean that_present_success = true;
17907
      if (this_present_success || that_present_success) {
17908
        if (!(this_present_success && that_present_success))
17909
          return false;
17910
        if (this.success != that.success)
17911
          return false;
17912
      }
17913
 
17914
      return true;
17915
    }
17916
 
17917
    @Override
17918
    public int hashCode() {
17919
      return 0;
17920
    }
17921
 
17922
    public int compareTo(validateLogIn_result other) {
17923
      if (!getClass().equals(other.getClass())) {
17924
        return getClass().getName().compareTo(other.getClass().getName());
17925
      }
17926
 
17927
      int lastComparison = 0;
17928
      validateLogIn_result typedOther = (validateLogIn_result)other;
17929
 
17930
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
17931
      if (lastComparison != 0) {
17932
        return lastComparison;
17933
      }
17934
      if (isSetSuccess()) {
17935
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17936
        if (lastComparison != 0) {
17937
          return lastComparison;
17938
        }
17939
      }
17940
      return 0;
17941
    }
17942
 
17943
    public _Fields fieldForId(int fieldId) {
17944
      return _Fields.findByThriftId(fieldId);
17945
    }
17946
 
17947
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17948
      org.apache.thrift.protocol.TField field;
17949
      iprot.readStructBegin();
17950
      while (true)
17951
      {
17952
        field = iprot.readFieldBegin();
17953
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17954
          break;
17955
        }
17956
        switch (field.id) {
17957
          case 0: // SUCCESS
17958
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
17959
              this.success = iprot.readBool();
17960
              setSuccessIsSet(true);
17961
            } else { 
17962
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17963
            }
17964
            break;
17965
          default:
17966
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17967
        }
17968
        iprot.readFieldEnd();
17969
      }
17970
      iprot.readStructEnd();
17971
      validate();
17972
    }
17973
 
17974
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17975
      oprot.writeStructBegin(STRUCT_DESC);
17976
 
17977
      if (this.isSetSuccess()) {
17978
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17979
        oprot.writeBool(this.success);
17980
        oprot.writeFieldEnd();
17981
      }
17982
      oprot.writeFieldStop();
17983
      oprot.writeStructEnd();
17984
    }
17985
 
17986
    @Override
17987
    public String toString() {
17988
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
17989
      boolean first = true;
17990
 
17991
      sb.append("success:");
17992
      sb.append(this.success);
17993
      first = false;
17994
      sb.append(")");
17995
      return sb.toString();
17996
    }
17997
 
17998
    public void validate() throws org.apache.thrift.TException {
17999
      // check for required fields
18000
    }
18001
 
18002
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18003
      try {
18004
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18005
      } catch (org.apache.thrift.TException te) {
18006
        throw new java.io.IOException(te);
18007
      }
18008
    }
18009
 
18010
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18011
      try {
18012
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18013
      } catch (org.apache.thrift.TException te) {
18014
        throw new java.io.IOException(te);
18015
      }
18016
    }
18017
 
18018
  }
18019
 
18020
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18021
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
18022
 
18023
    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);
18024
    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);
18025
 
18026
    private String agentEmailId; // required
18027
    private String password; // required
18028
 
18029
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18030
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18031
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
18032
      PASSWORD((short)2, "password");
18033
 
18034
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18035
 
18036
      static {
18037
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18038
          byName.put(field.getFieldName(), field);
18039
        }
18040
      }
18041
 
18042
      /**
18043
       * Find the _Fields constant that matches fieldId, or null if its not found.
18044
       */
18045
      public static _Fields findByThriftId(int fieldId) {
18046
        switch(fieldId) {
18047
          case 1: // AGENT_EMAIL_ID
18048
            return AGENT_EMAIL_ID;
18049
          case 2: // PASSWORD
18050
            return PASSWORD;
18051
          default:
18052
            return null;
18053
        }
18054
      }
18055
 
18056
      /**
18057
       * Find the _Fields constant that matches fieldId, throwing an exception
18058
       * if it is not found.
18059
       */
18060
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18061
        _Fields fields = findByThriftId(fieldId);
18062
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18063
        return fields;
18064
      }
18065
 
18066
      /**
18067
       * Find the _Fields constant that matches name, or null if its not found.
18068
       */
18069
      public static _Fields findByName(String name) {
18070
        return byName.get(name);
18071
      }
18072
 
18073
      private final short _thriftId;
18074
      private final String _fieldName;
18075
 
18076
      _Fields(short thriftId, String fieldName) {
18077
        _thriftId = thriftId;
18078
        _fieldName = fieldName;
18079
      }
18080
 
18081
      public short getThriftFieldId() {
18082
        return _thriftId;
18083
      }
18084
 
18085
      public String getFieldName() {
18086
        return _fieldName;
18087
      }
18088
    }
18089
 
18090
    // isset id assignments
18091
 
18092
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18093
    static {
18094
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18095
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18096
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18097
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18098
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18099
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18100
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
18101
    }
18102
 
18103
    public updatePasswordForAgent_args() {
18104
    }
18105
 
18106
    public updatePasswordForAgent_args(
18107
      String agentEmailId,
18108
      String password)
18109
    {
18110
      this();
18111
      this.agentEmailId = agentEmailId;
18112
      this.password = password;
18113
    }
18114
 
18115
    /**
18116
     * Performs a deep copy on <i>other</i>.
18117
     */
18118
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
18119
      if (other.isSetAgentEmailId()) {
18120
        this.agentEmailId = other.agentEmailId;
18121
      }
18122
      if (other.isSetPassword()) {
18123
        this.password = other.password;
18124
      }
18125
    }
18126
 
18127
    public updatePasswordForAgent_args deepCopy() {
18128
      return new updatePasswordForAgent_args(this);
18129
    }
18130
 
18131
    @Override
18132
    public void clear() {
18133
      this.agentEmailId = null;
18134
      this.password = null;
18135
    }
18136
 
18137
    public String getAgentEmailId() {
18138
      return this.agentEmailId;
18139
    }
18140
 
18141
    public void setAgentEmailId(String agentEmailId) {
18142
      this.agentEmailId = agentEmailId;
18143
    }
18144
 
18145
    public void unsetAgentEmailId() {
18146
      this.agentEmailId = null;
18147
    }
18148
 
18149
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18150
    public boolean isSetAgentEmailId() {
18151
      return this.agentEmailId != null;
18152
    }
18153
 
18154
    public void setAgentEmailIdIsSet(boolean value) {
18155
      if (!value) {
18156
        this.agentEmailId = null;
18157
      }
18158
    }
18159
 
18160
    public String getPassword() {
18161
      return this.password;
18162
    }
18163
 
18164
    public void setPassword(String password) {
18165
      this.password = password;
18166
    }
18167
 
18168
    public void unsetPassword() {
18169
      this.password = null;
18170
    }
18171
 
18172
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18173
    public boolean isSetPassword() {
18174
      return this.password != null;
18175
    }
18176
 
18177
    public void setPasswordIsSet(boolean value) {
18178
      if (!value) {
18179
        this.password = null;
18180
      }
18181
    }
18182
 
18183
    public void setFieldValue(_Fields field, Object value) {
18184
      switch (field) {
18185
      case AGENT_EMAIL_ID:
18186
        if (value == null) {
18187
          unsetAgentEmailId();
18188
        } else {
18189
          setAgentEmailId((String)value);
18190
        }
18191
        break;
18192
 
18193
      case PASSWORD:
18194
        if (value == null) {
18195
          unsetPassword();
18196
        } else {
18197
          setPassword((String)value);
18198
        }
18199
        break;
18200
 
18201
      }
18202
    }
18203
 
18204
    public Object getFieldValue(_Fields field) {
18205
      switch (field) {
18206
      case AGENT_EMAIL_ID:
18207
        return getAgentEmailId();
18208
 
18209
      case PASSWORD:
18210
        return getPassword();
18211
 
18212
      }
18213
      throw new IllegalStateException();
18214
    }
18215
 
18216
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18217
    public boolean isSet(_Fields field) {
18218
      if (field == null) {
18219
        throw new IllegalArgumentException();
18220
      }
18221
 
18222
      switch (field) {
18223
      case AGENT_EMAIL_ID:
18224
        return isSetAgentEmailId();
18225
      case PASSWORD:
18226
        return isSetPassword();
18227
      }
18228
      throw new IllegalStateException();
18229
    }
18230
 
18231
    @Override
18232
    public boolean equals(Object that) {
18233
      if (that == null)
18234
        return false;
18235
      if (that instanceof updatePasswordForAgent_args)
18236
        return this.equals((updatePasswordForAgent_args)that);
18237
      return false;
18238
    }
18239
 
18240
    public boolean equals(updatePasswordForAgent_args that) {
18241
      if (that == null)
18242
        return false;
18243
 
18244
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18245
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18246
      if (this_present_agentEmailId || that_present_agentEmailId) {
18247
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18248
          return false;
18249
        if (!this.agentEmailId.equals(that.agentEmailId))
18250
          return false;
18251
      }
18252
 
18253
      boolean this_present_password = true && this.isSetPassword();
18254
      boolean that_present_password = true && that.isSetPassword();
18255
      if (this_present_password || that_present_password) {
18256
        if (!(this_present_password && that_present_password))
18257
          return false;
18258
        if (!this.password.equals(that.password))
18259
          return false;
18260
      }
18261
 
18262
      return true;
18263
    }
18264
 
18265
    @Override
18266
    public int hashCode() {
18267
      return 0;
18268
    }
18269
 
18270
    public int compareTo(updatePasswordForAgent_args other) {
18271
      if (!getClass().equals(other.getClass())) {
18272
        return getClass().getName().compareTo(other.getClass().getName());
18273
      }
18274
 
18275
      int lastComparison = 0;
18276
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
18277
 
18278
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18279
      if (lastComparison != 0) {
18280
        return lastComparison;
18281
      }
18282
      if (isSetAgentEmailId()) {
18283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18284
        if (lastComparison != 0) {
18285
          return lastComparison;
18286
        }
18287
      }
18288
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18289
      if (lastComparison != 0) {
18290
        return lastComparison;
18291
      }
18292
      if (isSetPassword()) {
18293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18294
        if (lastComparison != 0) {
18295
          return lastComparison;
18296
        }
18297
      }
18298
      return 0;
18299
    }
18300
 
18301
    public _Fields fieldForId(int fieldId) {
18302
      return _Fields.findByThriftId(fieldId);
18303
    }
18304
 
18305
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18306
      org.apache.thrift.protocol.TField field;
18307
      iprot.readStructBegin();
18308
      while (true)
18309
      {
18310
        field = iprot.readFieldBegin();
18311
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18312
          break;
18313
        }
18314
        switch (field.id) {
18315
          case 1: // AGENT_EMAIL_ID
18316
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18317
              this.agentEmailId = iprot.readString();
18318
            } else { 
18319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18320
            }
18321
            break;
18322
          case 2: // PASSWORD
18323
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18324
              this.password = iprot.readString();
18325
            } else { 
18326
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18327
            }
18328
            break;
18329
          default:
18330
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18331
        }
18332
        iprot.readFieldEnd();
18333
      }
18334
      iprot.readStructEnd();
18335
      validate();
18336
    }
18337
 
18338
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18339
      validate();
18340
 
18341
      oprot.writeStructBegin(STRUCT_DESC);
18342
      if (this.agentEmailId != null) {
18343
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18344
        oprot.writeString(this.agentEmailId);
18345
        oprot.writeFieldEnd();
18346
      }
18347
      if (this.password != null) {
18348
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18349
        oprot.writeString(this.password);
18350
        oprot.writeFieldEnd();
18351
      }
18352
      oprot.writeFieldStop();
18353
      oprot.writeStructEnd();
18354
    }
18355
 
18356
    @Override
18357
    public String toString() {
18358
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
18359
      boolean first = true;
18360
 
18361
      sb.append("agentEmailId:");
18362
      if (this.agentEmailId == null) {
18363
        sb.append("null");
18364
      } else {
18365
        sb.append(this.agentEmailId);
18366
      }
18367
      first = false;
18368
      if (!first) sb.append(", ");
18369
      sb.append("password:");
18370
      if (this.password == null) {
18371
        sb.append("null");
18372
      } else {
18373
        sb.append(this.password);
18374
      }
18375
      first = false;
18376
      sb.append(")");
18377
      return sb.toString();
18378
    }
18379
 
18380
    public void validate() throws org.apache.thrift.TException {
18381
      // check for required fields
18382
    }
18383
 
18384
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18385
      try {
18386
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18387
      } catch (org.apache.thrift.TException te) {
18388
        throw new java.io.IOException(te);
18389
      }
18390
    }
18391
 
18392
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18393
      try {
18394
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18395
      } catch (org.apache.thrift.TException te) {
18396
        throw new java.io.IOException(te);
18397
      }
18398
    }
18399
 
18400
  }
18401
 
18402
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18403
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
18404
 
18405
 
18406
 
18407
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18408
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18409
;
18410
 
18411
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18412
 
18413
      static {
18414
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18415
          byName.put(field.getFieldName(), field);
18416
        }
18417
      }
18418
 
18419
      /**
18420
       * Find the _Fields constant that matches fieldId, or null if its not found.
18421
       */
18422
      public static _Fields findByThriftId(int fieldId) {
18423
        switch(fieldId) {
18424
          default:
18425
            return null;
18426
        }
18427
      }
18428
 
18429
      /**
18430
       * Find the _Fields constant that matches fieldId, throwing an exception
18431
       * if it is not found.
18432
       */
18433
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18434
        _Fields fields = findByThriftId(fieldId);
18435
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18436
        return fields;
18437
      }
18438
 
18439
      /**
18440
       * Find the _Fields constant that matches name, or null if its not found.
18441
       */
18442
      public static _Fields findByName(String name) {
18443
        return byName.get(name);
18444
      }
18445
 
18446
      private final short _thriftId;
18447
      private final String _fieldName;
18448
 
18449
      _Fields(short thriftId, String fieldName) {
18450
        _thriftId = thriftId;
18451
        _fieldName = fieldName;
18452
      }
18453
 
18454
      public short getThriftFieldId() {
18455
        return _thriftId;
18456
      }
18457
 
18458
      public String getFieldName() {
18459
        return _fieldName;
18460
      }
18461
    }
18462
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18463
    static {
18464
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18465
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18466
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
18467
    }
18468
 
18469
    public updatePasswordForAgent_result() {
18470
    }
18471
 
18472
    /**
18473
     * Performs a deep copy on <i>other</i>.
18474
     */
18475
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
18476
    }
18477
 
18478
    public updatePasswordForAgent_result deepCopy() {
18479
      return new updatePasswordForAgent_result(this);
18480
    }
18481
 
18482
    @Override
18483
    public void clear() {
18484
    }
18485
 
18486
    public void setFieldValue(_Fields field, Object value) {
18487
      switch (field) {
18488
      }
18489
    }
18490
 
18491
    public Object getFieldValue(_Fields field) {
18492
      switch (field) {
18493
      }
18494
      throw new IllegalStateException();
18495
    }
18496
 
18497
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18498
    public boolean isSet(_Fields field) {
18499
      if (field == null) {
18500
        throw new IllegalArgumentException();
18501
      }
18502
 
18503
      switch (field) {
18504
      }
18505
      throw new IllegalStateException();
18506
    }
18507
 
18508
    @Override
18509
    public boolean equals(Object that) {
18510
      if (that == null)
18511
        return false;
18512
      if (that instanceof updatePasswordForAgent_result)
18513
        return this.equals((updatePasswordForAgent_result)that);
18514
      return false;
18515
    }
18516
 
18517
    public boolean equals(updatePasswordForAgent_result that) {
18518
      if (that == null)
18519
        return false;
18520
 
18521
      return true;
18522
    }
18523
 
18524
    @Override
18525
    public int hashCode() {
18526
      return 0;
18527
    }
18528
 
18529
    public int compareTo(updatePasswordForAgent_result other) {
18530
      if (!getClass().equals(other.getClass())) {
18531
        return getClass().getName().compareTo(other.getClass().getName());
18532
      }
18533
 
18534
      int lastComparison = 0;
18535
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
18536
 
18537
      return 0;
18538
    }
18539
 
18540
    public _Fields fieldForId(int fieldId) {
18541
      return _Fields.findByThriftId(fieldId);
18542
    }
18543
 
18544
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18545
      org.apache.thrift.protocol.TField field;
18546
      iprot.readStructBegin();
18547
      while (true)
18548
      {
18549
        field = iprot.readFieldBegin();
18550
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18551
          break;
18552
        }
18553
        switch (field.id) {
18554
          default:
18555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18556
        }
18557
        iprot.readFieldEnd();
18558
      }
18559
      iprot.readStructEnd();
18560
      validate();
18561
    }
18562
 
18563
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18564
      oprot.writeStructBegin(STRUCT_DESC);
18565
 
18566
      oprot.writeFieldStop();
18567
      oprot.writeStructEnd();
18568
    }
18569
 
18570
    @Override
18571
    public String toString() {
18572
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
18573
      boolean first = true;
18574
 
18575
      sb.append(")");
18576
      return sb.toString();
18577
    }
18578
 
18579
    public void validate() throws org.apache.thrift.TException {
18580
      // check for required fields
18581
    }
18582
 
18583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18584
      try {
18585
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18586
      } catch (org.apache.thrift.TException te) {
18587
        throw new java.io.IOException(te);
18588
      }
18589
    }
18590
 
18591
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18592
      try {
18593
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18594
      } catch (org.apache.thrift.TException te) {
18595
        throw new java.io.IOException(te);
18596
      }
18597
    }
18598
 
18599
  }
18600
 
18601
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
18602
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
18603
 
18604
    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);
18605
 
18606
    private String agentEmailId; // required
18607
 
18608
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18609
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18610
      AGENT_EMAIL_ID((short)1, "agentEmailId");
18611
 
18612
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18613
 
18614
      static {
18615
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18616
          byName.put(field.getFieldName(), field);
18617
        }
18618
      }
18619
 
18620
      /**
18621
       * Find the _Fields constant that matches fieldId, or null if its not found.
18622
       */
18623
      public static _Fields findByThriftId(int fieldId) {
18624
        switch(fieldId) {
18625
          case 1: // AGENT_EMAIL_ID
18626
            return AGENT_EMAIL_ID;
18627
          default:
18628
            return null;
18629
        }
18630
      }
18631
 
18632
      /**
18633
       * Find the _Fields constant that matches fieldId, throwing an exception
18634
       * if it is not found.
18635
       */
18636
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18637
        _Fields fields = findByThriftId(fieldId);
18638
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18639
        return fields;
18640
      }
18641
 
18642
      /**
18643
       * Find the _Fields constant that matches name, or null if its not found.
18644
       */
18645
      public static _Fields findByName(String name) {
18646
        return byName.get(name);
18647
      }
18648
 
18649
      private final short _thriftId;
18650
      private final String _fieldName;
18651
 
18652
      _Fields(short thriftId, String fieldName) {
18653
        _thriftId = thriftId;
18654
        _fieldName = fieldName;
18655
      }
18656
 
18657
      public short getThriftFieldId() {
18658
        return _thriftId;
18659
      }
18660
 
18661
      public String getFieldName() {
18662
        return _fieldName;
18663
      }
18664
    }
18665
 
18666
    // isset id assignments
18667
 
18668
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18669
    static {
18670
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18671
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18672
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18673
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18674
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
18675
    }
18676
 
18677
    public getRoleNamesForAgent_args() {
18678
    }
18679
 
18680
    public getRoleNamesForAgent_args(
18681
      String agentEmailId)
18682
    {
18683
      this();
18684
      this.agentEmailId = agentEmailId;
18685
    }
18686
 
18687
    /**
18688
     * Performs a deep copy on <i>other</i>.
18689
     */
18690
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
18691
      if (other.isSetAgentEmailId()) {
18692
        this.agentEmailId = other.agentEmailId;
18693
      }
18694
    }
18695
 
18696
    public getRoleNamesForAgent_args deepCopy() {
18697
      return new getRoleNamesForAgent_args(this);
18698
    }
18699
 
18700
    @Override
18701
    public void clear() {
18702
      this.agentEmailId = null;
18703
    }
18704
 
18705
    public String getAgentEmailId() {
18706
      return this.agentEmailId;
18707
    }
18708
 
18709
    public void setAgentEmailId(String agentEmailId) {
18710
      this.agentEmailId = agentEmailId;
18711
    }
18712
 
18713
    public void unsetAgentEmailId() {
18714
      this.agentEmailId = null;
18715
    }
18716
 
18717
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
18718
    public boolean isSetAgentEmailId() {
18719
      return this.agentEmailId != null;
18720
    }
18721
 
18722
    public void setAgentEmailIdIsSet(boolean value) {
18723
      if (!value) {
18724
        this.agentEmailId = null;
18725
      }
18726
    }
18727
 
18728
    public void setFieldValue(_Fields field, Object value) {
18729
      switch (field) {
18730
      case AGENT_EMAIL_ID:
18731
        if (value == null) {
18732
          unsetAgentEmailId();
18733
        } else {
18734
          setAgentEmailId((String)value);
18735
        }
18736
        break;
18737
 
18738
      }
18739
    }
18740
 
18741
    public Object getFieldValue(_Fields field) {
18742
      switch (field) {
18743
      case AGENT_EMAIL_ID:
18744
        return getAgentEmailId();
18745
 
18746
      }
18747
      throw new IllegalStateException();
18748
    }
18749
 
18750
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18751
    public boolean isSet(_Fields field) {
18752
      if (field == null) {
18753
        throw new IllegalArgumentException();
18754
      }
18755
 
18756
      switch (field) {
18757
      case AGENT_EMAIL_ID:
18758
        return isSetAgentEmailId();
18759
      }
18760
      throw new IllegalStateException();
18761
    }
18762
 
18763
    @Override
18764
    public boolean equals(Object that) {
18765
      if (that == null)
18766
        return false;
18767
      if (that instanceof getRoleNamesForAgent_args)
18768
        return this.equals((getRoleNamesForAgent_args)that);
18769
      return false;
18770
    }
18771
 
18772
    public boolean equals(getRoleNamesForAgent_args that) {
18773
      if (that == null)
18774
        return false;
18775
 
18776
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
18777
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
18778
      if (this_present_agentEmailId || that_present_agentEmailId) {
18779
        if (!(this_present_agentEmailId && that_present_agentEmailId))
18780
          return false;
18781
        if (!this.agentEmailId.equals(that.agentEmailId))
18782
          return false;
18783
      }
18784
 
18785
      return true;
18786
    }
18787
 
18788
    @Override
18789
    public int hashCode() {
18790
      return 0;
18791
    }
18792
 
18793
    public int compareTo(getRoleNamesForAgent_args other) {
18794
      if (!getClass().equals(other.getClass())) {
18795
        return getClass().getName().compareTo(other.getClass().getName());
18796
      }
18797
 
18798
      int lastComparison = 0;
18799
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
18800
 
18801
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
18802
      if (lastComparison != 0) {
18803
        return lastComparison;
18804
      }
18805
      if (isSetAgentEmailId()) {
18806
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
18807
        if (lastComparison != 0) {
18808
          return lastComparison;
18809
        }
18810
      }
18811
      return 0;
18812
    }
18813
 
18814
    public _Fields fieldForId(int fieldId) {
18815
      return _Fields.findByThriftId(fieldId);
18816
    }
18817
 
18818
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18819
      org.apache.thrift.protocol.TField field;
18820
      iprot.readStructBegin();
18821
      while (true)
18822
      {
18823
        field = iprot.readFieldBegin();
18824
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18825
          break;
18826
        }
18827
        switch (field.id) {
18828
          case 1: // AGENT_EMAIL_ID
18829
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18830
              this.agentEmailId = iprot.readString();
18831
            } else { 
18832
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18833
            }
18834
            break;
18835
          default:
18836
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18837
        }
18838
        iprot.readFieldEnd();
18839
      }
18840
      iprot.readStructEnd();
18841
      validate();
18842
    }
18843
 
18844
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18845
      validate();
18846
 
18847
      oprot.writeStructBegin(STRUCT_DESC);
18848
      if (this.agentEmailId != null) {
18849
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
18850
        oprot.writeString(this.agentEmailId);
18851
        oprot.writeFieldEnd();
18852
      }
18853
      oprot.writeFieldStop();
18854
      oprot.writeStructEnd();
18855
    }
18856
 
18857
    @Override
18858
    public String toString() {
18859
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
18860
      boolean first = true;
18861
 
18862
      sb.append("agentEmailId:");
18863
      if (this.agentEmailId == null) {
18864
        sb.append("null");
18865
      } else {
18866
        sb.append(this.agentEmailId);
18867
      }
18868
      first = false;
18869
      sb.append(")");
18870
      return sb.toString();
18871
    }
18872
 
18873
    public void validate() throws org.apache.thrift.TException {
18874
      // check for required fields
18875
    }
18876
 
18877
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18878
      try {
18879
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18880
      } catch (org.apache.thrift.TException te) {
18881
        throw new java.io.IOException(te);
18882
      }
18883
    }
18884
 
18885
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18886
      try {
18887
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18888
      } catch (org.apache.thrift.TException te) {
18889
        throw new java.io.IOException(te);
18890
      }
18891
    }
18892
 
18893
  }
18894
 
18895
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
18896
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
18897
 
18898
    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);
18899
 
18900
    private List<String> success; // required
18901
 
18902
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18903
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18904
      SUCCESS((short)0, "success");
18905
 
18906
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18907
 
18908
      static {
18909
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18910
          byName.put(field.getFieldName(), field);
18911
        }
18912
      }
18913
 
18914
      /**
18915
       * Find the _Fields constant that matches fieldId, or null if its not found.
18916
       */
18917
      public static _Fields findByThriftId(int fieldId) {
18918
        switch(fieldId) {
18919
          case 0: // SUCCESS
18920
            return SUCCESS;
18921
          default:
18922
            return null;
18923
        }
18924
      }
18925
 
18926
      /**
18927
       * Find the _Fields constant that matches fieldId, throwing an exception
18928
       * if it is not found.
18929
       */
18930
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18931
        _Fields fields = findByThriftId(fieldId);
18932
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18933
        return fields;
18934
      }
18935
 
18936
      /**
18937
       * Find the _Fields constant that matches name, or null if its not found.
18938
       */
18939
      public static _Fields findByName(String name) {
18940
        return byName.get(name);
18941
      }
18942
 
18943
      private final short _thriftId;
18944
      private final String _fieldName;
18945
 
18946
      _Fields(short thriftId, String fieldName) {
18947
        _thriftId = thriftId;
18948
        _fieldName = fieldName;
18949
      }
18950
 
18951
      public short getThriftFieldId() {
18952
        return _thriftId;
18953
      }
18954
 
18955
      public String getFieldName() {
18956
        return _fieldName;
18957
      }
18958
    }
18959
 
18960
    // isset id assignments
18961
 
18962
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18963
    static {
18964
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18965
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18966
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18967
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
18968
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18969
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
18970
    }
18971
 
18972
    public getRoleNamesForAgent_result() {
18973
    }
18974
 
18975
    public getRoleNamesForAgent_result(
18976
      List<String> success)
18977
    {
18978
      this();
18979
      this.success = success;
18980
    }
18981
 
18982
    /**
18983
     * Performs a deep copy on <i>other</i>.
18984
     */
18985
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
18986
      if (other.isSetSuccess()) {
18987
        List<String> __this__success = new ArrayList<String>();
18988
        for (String other_element : other.success) {
18989
          __this__success.add(other_element);
18990
        }
18991
        this.success = __this__success;
18992
      }
18993
    }
18994
 
18995
    public getRoleNamesForAgent_result deepCopy() {
18996
      return new getRoleNamesForAgent_result(this);
18997
    }
18998
 
18999
    @Override
19000
    public void clear() {
19001
      this.success = null;
19002
    }
19003
 
19004
    public int getSuccessSize() {
19005
      return (this.success == null) ? 0 : this.success.size();
19006
    }
19007
 
19008
    public java.util.Iterator<String> getSuccessIterator() {
19009
      return (this.success == null) ? null : this.success.iterator();
19010
    }
19011
 
19012
    public void addToSuccess(String elem) {
19013
      if (this.success == null) {
19014
        this.success = new ArrayList<String>();
19015
      }
19016
      this.success.add(elem);
19017
    }
19018
 
19019
    public List<String> getSuccess() {
19020
      return this.success;
19021
    }
19022
 
19023
    public void setSuccess(List<String> success) {
19024
      this.success = success;
19025
    }
19026
 
19027
    public void unsetSuccess() {
19028
      this.success = null;
19029
    }
19030
 
19031
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19032
    public boolean isSetSuccess() {
19033
      return this.success != null;
19034
    }
19035
 
19036
    public void setSuccessIsSet(boolean value) {
19037
      if (!value) {
19038
        this.success = null;
19039
      }
19040
    }
19041
 
19042
    public void setFieldValue(_Fields field, Object value) {
19043
      switch (field) {
19044
      case SUCCESS:
19045
        if (value == null) {
19046
          unsetSuccess();
19047
        } else {
19048
          setSuccess((List<String>)value);
19049
        }
19050
        break;
19051
 
19052
      }
19053
    }
19054
 
19055
    public Object getFieldValue(_Fields field) {
19056
      switch (field) {
19057
      case SUCCESS:
19058
        return getSuccess();
19059
 
19060
      }
19061
      throw new IllegalStateException();
19062
    }
19063
 
19064
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19065
    public boolean isSet(_Fields field) {
19066
      if (field == null) {
19067
        throw new IllegalArgumentException();
19068
      }
19069
 
19070
      switch (field) {
19071
      case SUCCESS:
19072
        return isSetSuccess();
19073
      }
19074
      throw new IllegalStateException();
19075
    }
19076
 
19077
    @Override
19078
    public boolean equals(Object that) {
19079
      if (that == null)
19080
        return false;
19081
      if (that instanceof getRoleNamesForAgent_result)
19082
        return this.equals((getRoleNamesForAgent_result)that);
19083
      return false;
19084
    }
19085
 
19086
    public boolean equals(getRoleNamesForAgent_result that) {
19087
      if (that == null)
19088
        return false;
19089
 
19090
      boolean this_present_success = true && this.isSetSuccess();
19091
      boolean that_present_success = true && that.isSetSuccess();
19092
      if (this_present_success || that_present_success) {
19093
        if (!(this_present_success && that_present_success))
19094
          return false;
19095
        if (!this.success.equals(that.success))
19096
          return false;
19097
      }
19098
 
19099
      return true;
19100
    }
19101
 
19102
    @Override
19103
    public int hashCode() {
19104
      return 0;
19105
    }
19106
 
19107
    public int compareTo(getRoleNamesForAgent_result other) {
19108
      if (!getClass().equals(other.getClass())) {
19109
        return getClass().getName().compareTo(other.getClass().getName());
19110
      }
19111
 
19112
      int lastComparison = 0;
19113
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
19114
 
19115
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19116
      if (lastComparison != 0) {
19117
        return lastComparison;
19118
      }
19119
      if (isSetSuccess()) {
19120
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19121
        if (lastComparison != 0) {
19122
          return lastComparison;
19123
        }
19124
      }
19125
      return 0;
19126
    }
19127
 
19128
    public _Fields fieldForId(int fieldId) {
19129
      return _Fields.findByThriftId(fieldId);
19130
    }
19131
 
19132
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19133
      org.apache.thrift.protocol.TField field;
19134
      iprot.readStructBegin();
19135
      while (true)
19136
      {
19137
        field = iprot.readFieldBegin();
19138
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19139
          break;
19140
        }
19141
        switch (field.id) {
19142
          case 0: // SUCCESS
19143
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19144
              {
5864 rajveer 19145
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
19146
                this.success = new ArrayList<String>(_list53.size);
19147
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 19148
                {
5864 rajveer 19149
                  String _elem55; // required
19150
                  _elem55 = iprot.readString();
19151
                  this.success.add(_elem55);
4693 mandeep.dh 19152
                }
19153
                iprot.readListEnd();
19154
              }
19155
            } else { 
19156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19157
            }
19158
            break;
19159
          default:
19160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19161
        }
19162
        iprot.readFieldEnd();
19163
      }
19164
      iprot.readStructEnd();
19165
      validate();
19166
    }
19167
 
19168
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19169
      oprot.writeStructBegin(STRUCT_DESC);
19170
 
19171
      if (this.isSetSuccess()) {
19172
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19173
        {
19174
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19175
          for (String _iter56 : this.success)
4693 mandeep.dh 19176
          {
5864 rajveer 19177
            oprot.writeString(_iter56);
4693 mandeep.dh 19178
          }
19179
          oprot.writeListEnd();
19180
        }
19181
        oprot.writeFieldEnd();
19182
      }
19183
      oprot.writeFieldStop();
19184
      oprot.writeStructEnd();
19185
    }
19186
 
19187
    @Override
19188
    public String toString() {
19189
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
19190
      boolean first = true;
19191
 
19192
      sb.append("success:");
19193
      if (this.success == null) {
19194
        sb.append("null");
19195
      } else {
19196
        sb.append(this.success);
19197
      }
19198
      first = false;
19199
      sb.append(")");
19200
      return sb.toString();
19201
    }
19202
 
19203
    public void validate() throws org.apache.thrift.TException {
19204
      // check for required fields
19205
    }
19206
 
19207
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19208
      try {
19209
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19210
      } catch (org.apache.thrift.TException te) {
19211
        throw new java.io.IOException(te);
19212
      }
19213
    }
19214
 
19215
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19216
      try {
19217
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19218
      } catch (org.apache.thrift.TException te) {
19219
        throw new java.io.IOException(te);
19220
      }
19221
    }
19222
 
19223
  }
19224
 
19225
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
19226
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
19227
 
19228
    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);
19229
 
19230
    private String roleName; // required
19231
 
19232
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19233
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19234
      ROLE_NAME((short)1, "roleName");
19235
 
19236
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19237
 
19238
      static {
19239
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19240
          byName.put(field.getFieldName(), field);
19241
        }
19242
      }
19243
 
19244
      /**
19245
       * Find the _Fields constant that matches fieldId, or null if its not found.
19246
       */
19247
      public static _Fields findByThriftId(int fieldId) {
19248
        switch(fieldId) {
19249
          case 1: // ROLE_NAME
19250
            return ROLE_NAME;
19251
          default:
19252
            return null;
19253
        }
19254
      }
19255
 
19256
      /**
19257
       * Find the _Fields constant that matches fieldId, throwing an exception
19258
       * if it is not found.
19259
       */
19260
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19261
        _Fields fields = findByThriftId(fieldId);
19262
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19263
        return fields;
19264
      }
19265
 
19266
      /**
19267
       * Find the _Fields constant that matches name, or null if its not found.
19268
       */
19269
      public static _Fields findByName(String name) {
19270
        return byName.get(name);
19271
      }
19272
 
19273
      private final short _thriftId;
19274
      private final String _fieldName;
19275
 
19276
      _Fields(short thriftId, String fieldName) {
19277
        _thriftId = thriftId;
19278
        _fieldName = fieldName;
19279
      }
19280
 
19281
      public short getThriftFieldId() {
19282
        return _thriftId;
19283
      }
19284
 
19285
      public String getFieldName() {
19286
        return _fieldName;
19287
      }
19288
    }
19289
 
19290
    // isset id assignments
19291
 
19292
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19293
    static {
19294
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19295
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19296
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19297
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19298
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
19299
    }
19300
 
19301
    public getPermissionsForRoleName_args() {
19302
    }
19303
 
19304
    public getPermissionsForRoleName_args(
19305
      String roleName)
19306
    {
19307
      this();
19308
      this.roleName = roleName;
19309
    }
19310
 
19311
    /**
19312
     * Performs a deep copy on <i>other</i>.
19313
     */
19314
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
19315
      if (other.isSetRoleName()) {
19316
        this.roleName = other.roleName;
19317
      }
19318
    }
19319
 
19320
    public getPermissionsForRoleName_args deepCopy() {
19321
      return new getPermissionsForRoleName_args(this);
19322
    }
19323
 
19324
    @Override
19325
    public void clear() {
19326
      this.roleName = null;
19327
    }
19328
 
19329
    public String getRoleName() {
19330
      return this.roleName;
19331
    }
19332
 
19333
    public void setRoleName(String roleName) {
19334
      this.roleName = roleName;
19335
    }
19336
 
19337
    public void unsetRoleName() {
19338
      this.roleName = null;
19339
    }
19340
 
19341
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
19342
    public boolean isSetRoleName() {
19343
      return this.roleName != null;
19344
    }
19345
 
19346
    public void setRoleNameIsSet(boolean value) {
19347
      if (!value) {
19348
        this.roleName = null;
19349
      }
19350
    }
19351
 
19352
    public void setFieldValue(_Fields field, Object value) {
19353
      switch (field) {
19354
      case ROLE_NAME:
19355
        if (value == null) {
19356
          unsetRoleName();
19357
        } else {
19358
          setRoleName((String)value);
19359
        }
19360
        break;
19361
 
19362
      }
19363
    }
19364
 
19365
    public Object getFieldValue(_Fields field) {
19366
      switch (field) {
19367
      case ROLE_NAME:
19368
        return getRoleName();
19369
 
19370
      }
19371
      throw new IllegalStateException();
19372
    }
19373
 
19374
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19375
    public boolean isSet(_Fields field) {
19376
      if (field == null) {
19377
        throw new IllegalArgumentException();
19378
      }
19379
 
19380
      switch (field) {
19381
      case ROLE_NAME:
19382
        return isSetRoleName();
19383
      }
19384
      throw new IllegalStateException();
19385
    }
19386
 
19387
    @Override
19388
    public boolean equals(Object that) {
19389
      if (that == null)
19390
        return false;
19391
      if (that instanceof getPermissionsForRoleName_args)
19392
        return this.equals((getPermissionsForRoleName_args)that);
19393
      return false;
19394
    }
19395
 
19396
    public boolean equals(getPermissionsForRoleName_args that) {
19397
      if (that == null)
19398
        return false;
19399
 
19400
      boolean this_present_roleName = true && this.isSetRoleName();
19401
      boolean that_present_roleName = true && that.isSetRoleName();
19402
      if (this_present_roleName || that_present_roleName) {
19403
        if (!(this_present_roleName && that_present_roleName))
19404
          return false;
19405
        if (!this.roleName.equals(that.roleName))
19406
          return false;
19407
      }
19408
 
19409
      return true;
19410
    }
19411
 
19412
    @Override
19413
    public int hashCode() {
19414
      return 0;
19415
    }
19416
 
19417
    public int compareTo(getPermissionsForRoleName_args other) {
19418
      if (!getClass().equals(other.getClass())) {
19419
        return getClass().getName().compareTo(other.getClass().getName());
19420
      }
19421
 
19422
      int lastComparison = 0;
19423
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
19424
 
19425
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
19426
      if (lastComparison != 0) {
19427
        return lastComparison;
19428
      }
19429
      if (isSetRoleName()) {
19430
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
19431
        if (lastComparison != 0) {
19432
          return lastComparison;
19433
        }
19434
      }
19435
      return 0;
19436
    }
19437
 
19438
    public _Fields fieldForId(int fieldId) {
19439
      return _Fields.findByThriftId(fieldId);
19440
    }
19441
 
19442
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19443
      org.apache.thrift.protocol.TField field;
19444
      iprot.readStructBegin();
19445
      while (true)
19446
      {
19447
        field = iprot.readFieldBegin();
19448
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19449
          break;
19450
        }
19451
        switch (field.id) {
19452
          case 1: // ROLE_NAME
19453
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19454
              this.roleName = iprot.readString();
19455
            } else { 
19456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19457
            }
19458
            break;
19459
          default:
19460
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19461
        }
19462
        iprot.readFieldEnd();
19463
      }
19464
      iprot.readStructEnd();
19465
      validate();
19466
    }
19467
 
19468
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19469
      validate();
19470
 
19471
      oprot.writeStructBegin(STRUCT_DESC);
19472
      if (this.roleName != null) {
19473
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
19474
        oprot.writeString(this.roleName);
19475
        oprot.writeFieldEnd();
19476
      }
19477
      oprot.writeFieldStop();
19478
      oprot.writeStructEnd();
19479
    }
19480
 
19481
    @Override
19482
    public String toString() {
19483
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
19484
      boolean first = true;
19485
 
19486
      sb.append("roleName:");
19487
      if (this.roleName == null) {
19488
        sb.append("null");
19489
      } else {
19490
        sb.append(this.roleName);
19491
      }
19492
      first = false;
19493
      sb.append(")");
19494
      return sb.toString();
19495
    }
19496
 
19497
    public void validate() throws org.apache.thrift.TException {
19498
      // check for required fields
19499
    }
19500
 
19501
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19502
      try {
19503
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19504
      } catch (org.apache.thrift.TException te) {
19505
        throw new java.io.IOException(te);
19506
      }
19507
    }
19508
 
19509
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19510
      try {
19511
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19512
      } catch (org.apache.thrift.TException te) {
19513
        throw new java.io.IOException(te);
19514
      }
19515
    }
19516
 
19517
  }
19518
 
19519
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
19520
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
19521
 
19522
    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);
19523
 
19524
    private List<String> success; // required
19525
 
19526
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19527
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19528
      SUCCESS((short)0, "success");
19529
 
19530
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19531
 
19532
      static {
19533
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19534
          byName.put(field.getFieldName(), field);
19535
        }
19536
      }
19537
 
19538
      /**
19539
       * Find the _Fields constant that matches fieldId, or null if its not found.
19540
       */
19541
      public static _Fields findByThriftId(int fieldId) {
19542
        switch(fieldId) {
19543
          case 0: // SUCCESS
19544
            return SUCCESS;
19545
          default:
19546
            return null;
19547
        }
19548
      }
19549
 
19550
      /**
19551
       * Find the _Fields constant that matches fieldId, throwing an exception
19552
       * if it is not found.
19553
       */
19554
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19555
        _Fields fields = findByThriftId(fieldId);
19556
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19557
        return fields;
19558
      }
19559
 
19560
      /**
19561
       * Find the _Fields constant that matches name, or null if its not found.
19562
       */
19563
      public static _Fields findByName(String name) {
19564
        return byName.get(name);
19565
      }
19566
 
19567
      private final short _thriftId;
19568
      private final String _fieldName;
19569
 
19570
      _Fields(short thriftId, String fieldName) {
19571
        _thriftId = thriftId;
19572
        _fieldName = fieldName;
19573
      }
19574
 
19575
      public short getThriftFieldId() {
19576
        return _thriftId;
19577
      }
19578
 
19579
      public String getFieldName() {
19580
        return _fieldName;
19581
      }
19582
    }
19583
 
19584
    // isset id assignments
19585
 
19586
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19587
    static {
19588
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19589
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19590
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19591
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19592
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19593
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
19594
    }
19595
 
19596
    public getPermissionsForRoleName_result() {
19597
    }
19598
 
19599
    public getPermissionsForRoleName_result(
19600
      List<String> success)
19601
    {
19602
      this();
19603
      this.success = success;
19604
    }
19605
 
19606
    /**
19607
     * Performs a deep copy on <i>other</i>.
19608
     */
19609
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
19610
      if (other.isSetSuccess()) {
19611
        List<String> __this__success = new ArrayList<String>();
19612
        for (String other_element : other.success) {
19613
          __this__success.add(other_element);
19614
        }
19615
        this.success = __this__success;
19616
      }
19617
    }
19618
 
19619
    public getPermissionsForRoleName_result deepCopy() {
19620
      return new getPermissionsForRoleName_result(this);
19621
    }
19622
 
19623
    @Override
19624
    public void clear() {
19625
      this.success = null;
19626
    }
19627
 
19628
    public int getSuccessSize() {
19629
      return (this.success == null) ? 0 : this.success.size();
19630
    }
19631
 
19632
    public java.util.Iterator<String> getSuccessIterator() {
19633
      return (this.success == null) ? null : this.success.iterator();
19634
    }
19635
 
19636
    public void addToSuccess(String elem) {
19637
      if (this.success == null) {
19638
        this.success = new ArrayList<String>();
19639
      }
19640
      this.success.add(elem);
19641
    }
19642
 
19643
    public List<String> getSuccess() {
19644
      return this.success;
19645
    }
19646
 
19647
    public void setSuccess(List<String> success) {
19648
      this.success = success;
19649
    }
19650
 
19651
    public void unsetSuccess() {
19652
      this.success = null;
19653
    }
19654
 
19655
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
19656
    public boolean isSetSuccess() {
19657
      return this.success != null;
19658
    }
19659
 
19660
    public void setSuccessIsSet(boolean value) {
19661
      if (!value) {
19662
        this.success = null;
19663
      }
19664
    }
19665
 
19666
    public void setFieldValue(_Fields field, Object value) {
19667
      switch (field) {
19668
      case SUCCESS:
19669
        if (value == null) {
19670
          unsetSuccess();
19671
        } else {
19672
          setSuccess((List<String>)value);
19673
        }
19674
        break;
19675
 
19676
      }
19677
    }
19678
 
19679
    public Object getFieldValue(_Fields field) {
19680
      switch (field) {
19681
      case SUCCESS:
19682
        return getSuccess();
19683
 
19684
      }
19685
      throw new IllegalStateException();
19686
    }
19687
 
19688
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19689
    public boolean isSet(_Fields field) {
19690
      if (field == null) {
19691
        throw new IllegalArgumentException();
19692
      }
19693
 
19694
      switch (field) {
19695
      case SUCCESS:
19696
        return isSetSuccess();
19697
      }
19698
      throw new IllegalStateException();
19699
    }
19700
 
19701
    @Override
19702
    public boolean equals(Object that) {
19703
      if (that == null)
19704
        return false;
19705
      if (that instanceof getPermissionsForRoleName_result)
19706
        return this.equals((getPermissionsForRoleName_result)that);
19707
      return false;
19708
    }
19709
 
19710
    public boolean equals(getPermissionsForRoleName_result that) {
19711
      if (that == null)
19712
        return false;
19713
 
19714
      boolean this_present_success = true && this.isSetSuccess();
19715
      boolean that_present_success = true && that.isSetSuccess();
19716
      if (this_present_success || that_present_success) {
19717
        if (!(this_present_success && that_present_success))
19718
          return false;
19719
        if (!this.success.equals(that.success))
19720
          return false;
19721
      }
19722
 
19723
      return true;
19724
    }
19725
 
19726
    @Override
19727
    public int hashCode() {
19728
      return 0;
19729
    }
19730
 
19731
    public int compareTo(getPermissionsForRoleName_result other) {
19732
      if (!getClass().equals(other.getClass())) {
19733
        return getClass().getName().compareTo(other.getClass().getName());
19734
      }
19735
 
19736
      int lastComparison = 0;
19737
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
19738
 
19739
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
19740
      if (lastComparison != 0) {
19741
        return lastComparison;
19742
      }
19743
      if (isSetSuccess()) {
19744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
19745
        if (lastComparison != 0) {
19746
          return lastComparison;
19747
        }
19748
      }
19749
      return 0;
19750
    }
19751
 
19752
    public _Fields fieldForId(int fieldId) {
19753
      return _Fields.findByThriftId(fieldId);
19754
    }
19755
 
19756
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19757
      org.apache.thrift.protocol.TField field;
19758
      iprot.readStructBegin();
19759
      while (true)
19760
      {
19761
        field = iprot.readFieldBegin();
19762
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19763
          break;
19764
        }
19765
        switch (field.id) {
19766
          case 0: // SUCCESS
19767
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
19768
              {
5864 rajveer 19769
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
19770
                this.success = new ArrayList<String>(_list57.size);
19771
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 19772
                {
5864 rajveer 19773
                  String _elem59; // required
19774
                  _elem59 = iprot.readString();
19775
                  this.success.add(_elem59);
4693 mandeep.dh 19776
                }
19777
                iprot.readListEnd();
19778
              }
19779
            } else { 
19780
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19781
            }
19782
            break;
19783
          default:
19784
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19785
        }
19786
        iprot.readFieldEnd();
19787
      }
19788
      iprot.readStructEnd();
19789
      validate();
19790
    }
19791
 
19792
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19793
      oprot.writeStructBegin(STRUCT_DESC);
19794
 
19795
      if (this.isSetSuccess()) {
19796
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19797
        {
19798
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 19799
          for (String _iter60 : this.success)
4693 mandeep.dh 19800
          {
5864 rajveer 19801
            oprot.writeString(_iter60);
4693 mandeep.dh 19802
          }
19803
          oprot.writeListEnd();
19804
        }
19805
        oprot.writeFieldEnd();
19806
      }
19807
      oprot.writeFieldStop();
19808
      oprot.writeStructEnd();
19809
    }
19810
 
19811
    @Override
19812
    public String toString() {
19813
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
19814
      boolean first = true;
19815
 
19816
      sb.append("success:");
19817
      if (this.success == null) {
19818
        sb.append("null");
19819
      } else {
19820
        sb.append(this.success);
19821
      }
19822
      first = false;
19823
      sb.append(")");
19824
      return sb.toString();
19825
    }
19826
 
19827
    public void validate() throws org.apache.thrift.TException {
19828
      // check for required fields
19829
    }
19830
 
19831
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19832
      try {
19833
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19834
      } catch (org.apache.thrift.TException te) {
19835
        throw new java.io.IOException(te);
19836
      }
19837
    }
19838
 
19839
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19840
      try {
19841
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19842
      } catch (org.apache.thrift.TException te) {
19843
        throw new java.io.IOException(te);
19844
      }
19845
    }
19846
 
19847
  }
19848
 
4806 varun.gupt 19849
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
19850
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
19851
 
19852
    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);
19853
    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);
19854
 
19855
    private String url; // required
19856
    private String text; // required
19857
 
19858
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19859
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19860
      URL((short)1, "url"),
19861
      TEXT((short)2, "text");
19862
 
19863
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19864
 
19865
      static {
19866
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19867
          byName.put(field.getFieldName(), field);
19868
        }
19869
      }
19870
 
19871
      /**
19872
       * Find the _Fields constant that matches fieldId, or null if its not found.
19873
       */
19874
      public static _Fields findByThriftId(int fieldId) {
19875
        switch(fieldId) {
19876
          case 1: // URL
19877
            return URL;
19878
          case 2: // TEXT
19879
            return TEXT;
19880
          default:
19881
            return null;
19882
        }
19883
      }
19884
 
19885
      /**
19886
       * Find the _Fields constant that matches fieldId, throwing an exception
19887
       * if it is not found.
19888
       */
19889
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19890
        _Fields fields = findByThriftId(fieldId);
19891
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19892
        return fields;
19893
      }
19894
 
19895
      /**
19896
       * Find the _Fields constant that matches name, or null if its not found.
19897
       */
19898
      public static _Fields findByName(String name) {
19899
        return byName.get(name);
19900
      }
19901
 
19902
      private final short _thriftId;
19903
      private final String _fieldName;
19904
 
19905
      _Fields(short thriftId, String fieldName) {
19906
        _thriftId = thriftId;
19907
        _fieldName = fieldName;
19908
      }
19909
 
19910
      public short getThriftFieldId() {
19911
        return _thriftId;
19912
      }
19913
 
19914
      public String getFieldName() {
19915
        return _fieldName;
19916
      }
19917
    }
19918
 
19919
    // isset id assignments
19920
 
19921
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19922
    static {
19923
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19924
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19925
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19926
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19927
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19928
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19929
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
19930
    }
19931
 
19932
    public saveQuickLink_args() {
19933
    }
19934
 
19935
    public saveQuickLink_args(
19936
      String url,
19937
      String text)
19938
    {
19939
      this();
19940
      this.url = url;
19941
      this.text = text;
19942
    }
19943
 
19944
    /**
19945
     * Performs a deep copy on <i>other</i>.
19946
     */
19947
    public saveQuickLink_args(saveQuickLink_args other) {
19948
      if (other.isSetUrl()) {
19949
        this.url = other.url;
19950
      }
19951
      if (other.isSetText()) {
19952
        this.text = other.text;
19953
      }
19954
    }
19955
 
19956
    public saveQuickLink_args deepCopy() {
19957
      return new saveQuickLink_args(this);
19958
    }
19959
 
19960
    @Override
19961
    public void clear() {
19962
      this.url = null;
19963
      this.text = null;
19964
    }
19965
 
19966
    public String getUrl() {
19967
      return this.url;
19968
    }
19969
 
19970
    public void setUrl(String url) {
19971
      this.url = url;
19972
    }
19973
 
19974
    public void unsetUrl() {
19975
      this.url = null;
19976
    }
19977
 
19978
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
19979
    public boolean isSetUrl() {
19980
      return this.url != null;
19981
    }
19982
 
19983
    public void setUrlIsSet(boolean value) {
19984
      if (!value) {
19985
        this.url = null;
19986
      }
19987
    }
19988
 
19989
    public String getText() {
19990
      return this.text;
19991
    }
19992
 
19993
    public void setText(String text) {
19994
      this.text = text;
19995
    }
19996
 
19997
    public void unsetText() {
19998
      this.text = null;
19999
    }
20000
 
20001
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
20002
    public boolean isSetText() {
20003
      return this.text != null;
20004
    }
20005
 
20006
    public void setTextIsSet(boolean value) {
20007
      if (!value) {
20008
        this.text = null;
20009
      }
20010
    }
20011
 
20012
    public void setFieldValue(_Fields field, Object value) {
20013
      switch (field) {
20014
      case URL:
20015
        if (value == null) {
20016
          unsetUrl();
20017
        } else {
20018
          setUrl((String)value);
20019
        }
20020
        break;
20021
 
20022
      case TEXT:
20023
        if (value == null) {
20024
          unsetText();
20025
        } else {
20026
          setText((String)value);
20027
        }
20028
        break;
20029
 
20030
      }
20031
    }
20032
 
20033
    public Object getFieldValue(_Fields field) {
20034
      switch (field) {
20035
      case URL:
20036
        return getUrl();
20037
 
20038
      case TEXT:
20039
        return getText();
20040
 
20041
      }
20042
      throw new IllegalStateException();
20043
    }
20044
 
20045
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20046
    public boolean isSet(_Fields field) {
20047
      if (field == null) {
20048
        throw new IllegalArgumentException();
20049
      }
20050
 
20051
      switch (field) {
20052
      case URL:
20053
        return isSetUrl();
20054
      case TEXT:
20055
        return isSetText();
20056
      }
20057
      throw new IllegalStateException();
20058
    }
20059
 
20060
    @Override
20061
    public boolean equals(Object that) {
20062
      if (that == null)
20063
        return false;
20064
      if (that instanceof saveQuickLink_args)
20065
        return this.equals((saveQuickLink_args)that);
20066
      return false;
20067
    }
20068
 
20069
    public boolean equals(saveQuickLink_args that) {
20070
      if (that == null)
20071
        return false;
20072
 
20073
      boolean this_present_url = true && this.isSetUrl();
20074
      boolean that_present_url = true && that.isSetUrl();
20075
      if (this_present_url || that_present_url) {
20076
        if (!(this_present_url && that_present_url))
20077
          return false;
20078
        if (!this.url.equals(that.url))
20079
          return false;
20080
      }
20081
 
20082
      boolean this_present_text = true && this.isSetText();
20083
      boolean that_present_text = true && that.isSetText();
20084
      if (this_present_text || that_present_text) {
20085
        if (!(this_present_text && that_present_text))
20086
          return false;
20087
        if (!this.text.equals(that.text))
20088
          return false;
20089
      }
20090
 
20091
      return true;
20092
    }
20093
 
20094
    @Override
20095
    public int hashCode() {
20096
      return 0;
20097
    }
20098
 
20099
    public int compareTo(saveQuickLink_args other) {
20100
      if (!getClass().equals(other.getClass())) {
20101
        return getClass().getName().compareTo(other.getClass().getName());
20102
      }
20103
 
20104
      int lastComparison = 0;
20105
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
20106
 
20107
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
20108
      if (lastComparison != 0) {
20109
        return lastComparison;
20110
      }
20111
      if (isSetUrl()) {
20112
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
20113
        if (lastComparison != 0) {
20114
          return lastComparison;
20115
        }
20116
      }
20117
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
20118
      if (lastComparison != 0) {
20119
        return lastComparison;
20120
      }
20121
      if (isSetText()) {
20122
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
20123
        if (lastComparison != 0) {
20124
          return lastComparison;
20125
        }
20126
      }
20127
      return 0;
20128
    }
20129
 
20130
    public _Fields fieldForId(int fieldId) {
20131
      return _Fields.findByThriftId(fieldId);
20132
    }
20133
 
20134
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20135
      org.apache.thrift.protocol.TField field;
20136
      iprot.readStructBegin();
20137
      while (true)
20138
      {
20139
        field = iprot.readFieldBegin();
20140
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20141
          break;
20142
        }
20143
        switch (field.id) {
20144
          case 1: // URL
20145
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20146
              this.url = iprot.readString();
20147
            } else { 
20148
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20149
            }
20150
            break;
20151
          case 2: // TEXT
20152
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20153
              this.text = iprot.readString();
20154
            } else { 
20155
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20156
            }
20157
            break;
20158
          default:
20159
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20160
        }
20161
        iprot.readFieldEnd();
20162
      }
20163
      iprot.readStructEnd();
20164
      validate();
20165
    }
20166
 
20167
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20168
      validate();
20169
 
20170
      oprot.writeStructBegin(STRUCT_DESC);
20171
      if (this.url != null) {
20172
        oprot.writeFieldBegin(URL_FIELD_DESC);
20173
        oprot.writeString(this.url);
20174
        oprot.writeFieldEnd();
20175
      }
20176
      if (this.text != null) {
20177
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
20178
        oprot.writeString(this.text);
20179
        oprot.writeFieldEnd();
20180
      }
20181
      oprot.writeFieldStop();
20182
      oprot.writeStructEnd();
20183
    }
20184
 
20185
    @Override
20186
    public String toString() {
20187
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
20188
      boolean first = true;
20189
 
20190
      sb.append("url:");
20191
      if (this.url == null) {
20192
        sb.append("null");
20193
      } else {
20194
        sb.append(this.url);
20195
      }
20196
      first = false;
20197
      if (!first) sb.append(", ");
20198
      sb.append("text:");
20199
      if (this.text == null) {
20200
        sb.append("null");
20201
      } else {
20202
        sb.append(this.text);
20203
      }
20204
      first = false;
20205
      sb.append(")");
20206
      return sb.toString();
20207
    }
20208
 
20209
    public void validate() throws org.apache.thrift.TException {
20210
      // check for required fields
20211
    }
20212
 
20213
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20214
      try {
20215
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20216
      } catch (org.apache.thrift.TException te) {
20217
        throw new java.io.IOException(te);
20218
      }
20219
    }
20220
 
20221
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20222
      try {
20223
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20224
      } catch (org.apache.thrift.TException te) {
20225
        throw new java.io.IOException(te);
20226
      }
20227
    }
20228
 
20229
  }
20230
 
20231
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
20232
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
20233
 
20234
    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);
20235
 
20236
    private HelperServiceException hse; // required
20237
 
20238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20240
      HSE((short)1, "hse");
20241
 
20242
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20243
 
20244
      static {
20245
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20246
          byName.put(field.getFieldName(), field);
20247
        }
20248
      }
20249
 
20250
      /**
20251
       * Find the _Fields constant that matches fieldId, or null if its not found.
20252
       */
20253
      public static _Fields findByThriftId(int fieldId) {
20254
        switch(fieldId) {
20255
          case 1: // HSE
20256
            return HSE;
20257
          default:
20258
            return null;
20259
        }
20260
      }
20261
 
20262
      /**
20263
       * Find the _Fields constant that matches fieldId, throwing an exception
20264
       * if it is not found.
20265
       */
20266
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20267
        _Fields fields = findByThriftId(fieldId);
20268
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20269
        return fields;
20270
      }
20271
 
20272
      /**
20273
       * Find the _Fields constant that matches name, or null if its not found.
20274
       */
20275
      public static _Fields findByName(String name) {
20276
        return byName.get(name);
20277
      }
20278
 
20279
      private final short _thriftId;
20280
      private final String _fieldName;
20281
 
20282
      _Fields(short thriftId, String fieldName) {
20283
        _thriftId = thriftId;
20284
        _fieldName = fieldName;
20285
      }
20286
 
20287
      public short getThriftFieldId() {
20288
        return _thriftId;
20289
      }
20290
 
20291
      public String getFieldName() {
20292
        return _fieldName;
20293
      }
20294
    }
20295
 
20296
    // isset id assignments
20297
 
20298
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20299
    static {
20300
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20301
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20302
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20303
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20304
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
20305
    }
20306
 
20307
    public saveQuickLink_result() {
20308
    }
20309
 
20310
    public saveQuickLink_result(
20311
      HelperServiceException hse)
20312
    {
20313
      this();
20314
      this.hse = hse;
20315
    }
20316
 
20317
    /**
20318
     * Performs a deep copy on <i>other</i>.
20319
     */
20320
    public saveQuickLink_result(saveQuickLink_result other) {
20321
      if (other.isSetHse()) {
20322
        this.hse = new HelperServiceException(other.hse);
20323
      }
20324
    }
20325
 
20326
    public saveQuickLink_result deepCopy() {
20327
      return new saveQuickLink_result(this);
20328
    }
20329
 
20330
    @Override
20331
    public void clear() {
20332
      this.hse = null;
20333
    }
20334
 
20335
    public HelperServiceException getHse() {
20336
      return this.hse;
20337
    }
20338
 
20339
    public void setHse(HelperServiceException hse) {
20340
      this.hse = hse;
20341
    }
20342
 
20343
    public void unsetHse() {
20344
      this.hse = null;
20345
    }
20346
 
20347
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20348
    public boolean isSetHse() {
20349
      return this.hse != null;
20350
    }
20351
 
20352
    public void setHseIsSet(boolean value) {
20353
      if (!value) {
20354
        this.hse = null;
20355
      }
20356
    }
20357
 
20358
    public void setFieldValue(_Fields field, Object value) {
20359
      switch (field) {
20360
      case HSE:
20361
        if (value == null) {
20362
          unsetHse();
20363
        } else {
20364
          setHse((HelperServiceException)value);
20365
        }
20366
        break;
20367
 
20368
      }
20369
    }
20370
 
20371
    public Object getFieldValue(_Fields field) {
20372
      switch (field) {
20373
      case HSE:
20374
        return getHse();
20375
 
20376
      }
20377
      throw new IllegalStateException();
20378
    }
20379
 
20380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20381
    public boolean isSet(_Fields field) {
20382
      if (field == null) {
20383
        throw new IllegalArgumentException();
20384
      }
20385
 
20386
      switch (field) {
20387
      case HSE:
20388
        return isSetHse();
20389
      }
20390
      throw new IllegalStateException();
20391
    }
20392
 
20393
    @Override
20394
    public boolean equals(Object that) {
20395
      if (that == null)
20396
        return false;
20397
      if (that instanceof saveQuickLink_result)
20398
        return this.equals((saveQuickLink_result)that);
20399
      return false;
20400
    }
20401
 
20402
    public boolean equals(saveQuickLink_result that) {
20403
      if (that == null)
20404
        return false;
20405
 
20406
      boolean this_present_hse = true && this.isSetHse();
20407
      boolean that_present_hse = true && that.isSetHse();
20408
      if (this_present_hse || that_present_hse) {
20409
        if (!(this_present_hse && that_present_hse))
20410
          return false;
20411
        if (!this.hse.equals(that.hse))
20412
          return false;
20413
      }
20414
 
20415
      return true;
20416
    }
20417
 
20418
    @Override
20419
    public int hashCode() {
20420
      return 0;
20421
    }
20422
 
20423
    public int compareTo(saveQuickLink_result other) {
20424
      if (!getClass().equals(other.getClass())) {
20425
        return getClass().getName().compareTo(other.getClass().getName());
20426
      }
20427
 
20428
      int lastComparison = 0;
20429
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
20430
 
20431
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
20432
      if (lastComparison != 0) {
20433
        return lastComparison;
20434
      }
20435
      if (isSetHse()) {
20436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
20437
        if (lastComparison != 0) {
20438
          return lastComparison;
20439
        }
20440
      }
20441
      return 0;
20442
    }
20443
 
20444
    public _Fields fieldForId(int fieldId) {
20445
      return _Fields.findByThriftId(fieldId);
20446
    }
20447
 
20448
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20449
      org.apache.thrift.protocol.TField field;
20450
      iprot.readStructBegin();
20451
      while (true)
20452
      {
20453
        field = iprot.readFieldBegin();
20454
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20455
          break;
20456
        }
20457
        switch (field.id) {
20458
          case 1: // HSE
20459
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
20460
              this.hse = new HelperServiceException();
20461
              this.hse.read(iprot);
20462
            } else { 
20463
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20464
            }
20465
            break;
20466
          default:
20467
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20468
        }
20469
        iprot.readFieldEnd();
20470
      }
20471
      iprot.readStructEnd();
20472
      validate();
20473
    }
20474
 
20475
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20476
      oprot.writeStructBegin(STRUCT_DESC);
20477
 
20478
      if (this.isSetHse()) {
20479
        oprot.writeFieldBegin(HSE_FIELD_DESC);
20480
        this.hse.write(oprot);
20481
        oprot.writeFieldEnd();
20482
      }
20483
      oprot.writeFieldStop();
20484
      oprot.writeStructEnd();
20485
    }
20486
 
20487
    @Override
20488
    public String toString() {
20489
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
20490
      boolean first = true;
20491
 
20492
      sb.append("hse:");
20493
      if (this.hse == null) {
20494
        sb.append("null");
20495
      } else {
20496
        sb.append(this.hse);
20497
      }
20498
      first = false;
20499
      sb.append(")");
20500
      return sb.toString();
20501
    }
20502
 
20503
    public void validate() throws org.apache.thrift.TException {
20504
      // check for required fields
20505
    }
20506
 
20507
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20508
      try {
20509
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20510
      } catch (org.apache.thrift.TException te) {
20511
        throw new java.io.IOException(te);
20512
      }
20513
    }
20514
 
20515
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20516
      try {
20517
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20518
      } catch (org.apache.thrift.TException te) {
20519
        throw new java.io.IOException(te);
20520
      }
20521
    }
20522
 
20523
  }
20524
 
20525
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
20526
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
20527
 
20528
 
20529
 
20530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20532
;
20533
 
20534
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20535
 
20536
      static {
20537
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20538
          byName.put(field.getFieldName(), field);
20539
        }
20540
      }
20541
 
20542
      /**
20543
       * Find the _Fields constant that matches fieldId, or null if its not found.
20544
       */
20545
      public static _Fields findByThriftId(int fieldId) {
20546
        switch(fieldId) {
20547
          default:
20548
            return null;
20549
        }
20550
      }
20551
 
20552
      /**
20553
       * Find the _Fields constant that matches fieldId, throwing an exception
20554
       * if it is not found.
20555
       */
20556
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20557
        _Fields fields = findByThriftId(fieldId);
20558
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20559
        return fields;
20560
      }
20561
 
20562
      /**
20563
       * Find the _Fields constant that matches name, or null if its not found.
20564
       */
20565
      public static _Fields findByName(String name) {
20566
        return byName.get(name);
20567
      }
20568
 
20569
      private final short _thriftId;
20570
      private final String _fieldName;
20571
 
20572
      _Fields(short thriftId, String fieldName) {
20573
        _thriftId = thriftId;
20574
        _fieldName = fieldName;
20575
      }
20576
 
20577
      public short getThriftFieldId() {
20578
        return _thriftId;
20579
      }
20580
 
20581
      public String getFieldName() {
20582
        return _fieldName;
20583
      }
20584
    }
20585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20586
    static {
20587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
20590
    }
20591
 
20592
    public getQuickLinks_args() {
20593
    }
20594
 
20595
    /**
20596
     * Performs a deep copy on <i>other</i>.
20597
     */
20598
    public getQuickLinks_args(getQuickLinks_args other) {
20599
    }
20600
 
20601
    public getQuickLinks_args deepCopy() {
20602
      return new getQuickLinks_args(this);
20603
    }
20604
 
20605
    @Override
20606
    public void clear() {
20607
    }
20608
 
20609
    public void setFieldValue(_Fields field, Object value) {
20610
      switch (field) {
20611
      }
20612
    }
20613
 
20614
    public Object getFieldValue(_Fields field) {
20615
      switch (field) {
20616
      }
20617
      throw new IllegalStateException();
20618
    }
20619
 
20620
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20621
    public boolean isSet(_Fields field) {
20622
      if (field == null) {
20623
        throw new IllegalArgumentException();
20624
      }
20625
 
20626
      switch (field) {
20627
      }
20628
      throw new IllegalStateException();
20629
    }
20630
 
20631
    @Override
20632
    public boolean equals(Object that) {
20633
      if (that == null)
20634
        return false;
20635
      if (that instanceof getQuickLinks_args)
20636
        return this.equals((getQuickLinks_args)that);
20637
      return false;
20638
    }
20639
 
20640
    public boolean equals(getQuickLinks_args that) {
20641
      if (that == null)
20642
        return false;
20643
 
20644
      return true;
20645
    }
20646
 
20647
    @Override
20648
    public int hashCode() {
20649
      return 0;
20650
    }
20651
 
20652
    public int compareTo(getQuickLinks_args other) {
20653
      if (!getClass().equals(other.getClass())) {
20654
        return getClass().getName().compareTo(other.getClass().getName());
20655
      }
20656
 
20657
      int lastComparison = 0;
20658
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
20659
 
20660
      return 0;
20661
    }
20662
 
20663
    public _Fields fieldForId(int fieldId) {
20664
      return _Fields.findByThriftId(fieldId);
20665
    }
20666
 
20667
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20668
      org.apache.thrift.protocol.TField field;
20669
      iprot.readStructBegin();
20670
      while (true)
20671
      {
20672
        field = iprot.readFieldBegin();
20673
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20674
          break;
20675
        }
20676
        switch (field.id) {
20677
          default:
20678
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20679
        }
20680
        iprot.readFieldEnd();
20681
      }
20682
      iprot.readStructEnd();
20683
      validate();
20684
    }
20685
 
20686
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20687
      validate();
20688
 
20689
      oprot.writeStructBegin(STRUCT_DESC);
20690
      oprot.writeFieldStop();
20691
      oprot.writeStructEnd();
20692
    }
20693
 
20694
    @Override
20695
    public String toString() {
20696
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
20697
      boolean first = true;
20698
 
20699
      sb.append(")");
20700
      return sb.toString();
20701
    }
20702
 
20703
    public void validate() throws org.apache.thrift.TException {
20704
      // check for required fields
20705
    }
20706
 
20707
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20708
      try {
20709
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20710
      } catch (org.apache.thrift.TException te) {
20711
        throw new java.io.IOException(te);
20712
      }
20713
    }
20714
 
20715
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20716
      try {
20717
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20718
      } catch (org.apache.thrift.TException te) {
20719
        throw new java.io.IOException(te);
20720
      }
20721
    }
20722
 
20723
  }
20724
 
20725
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
20726
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
20727
 
20728
    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);
20729
    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);
20730
 
20731
    private List<QuickLink> success; // required
20732
    private HelperServiceException hse; // required
20733
 
20734
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20735
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20736
      SUCCESS((short)0, "success"),
20737
      HSE((short)1, "hse");
20738
 
20739
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20740
 
20741
      static {
20742
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20743
          byName.put(field.getFieldName(), field);
20744
        }
20745
      }
20746
 
20747
      /**
20748
       * Find the _Fields constant that matches fieldId, or null if its not found.
20749
       */
20750
      public static _Fields findByThriftId(int fieldId) {
20751
        switch(fieldId) {
20752
          case 0: // SUCCESS
20753
            return SUCCESS;
20754
          case 1: // HSE
20755
            return HSE;
20756
          default:
20757
            return null;
20758
        }
20759
      }
20760
 
20761
      /**
20762
       * Find the _Fields constant that matches fieldId, throwing an exception
20763
       * if it is not found.
20764
       */
20765
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20766
        _Fields fields = findByThriftId(fieldId);
20767
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20768
        return fields;
20769
      }
20770
 
20771
      /**
20772
       * Find the _Fields constant that matches name, or null if its not found.
20773
       */
20774
      public static _Fields findByName(String name) {
20775
        return byName.get(name);
20776
      }
20777
 
20778
      private final short _thriftId;
20779
      private final String _fieldName;
20780
 
20781
      _Fields(short thriftId, String fieldName) {
20782
        _thriftId = thriftId;
20783
        _fieldName = fieldName;
20784
      }
20785
 
20786
      public short getThriftFieldId() {
20787
        return _thriftId;
20788
      }
20789
 
20790
      public String getFieldName() {
20791
        return _fieldName;
20792
      }
20793
    }
20794
 
20795
    // isset id assignments
20796
 
20797
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20798
    static {
20799
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20800
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20801
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20802
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
20803
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20804
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
20805
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20806
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
20807
    }
20808
 
20809
    public getQuickLinks_result() {
20810
    }
20811
 
20812
    public getQuickLinks_result(
20813
      List<QuickLink> success,
20814
      HelperServiceException hse)
20815
    {
20816
      this();
20817
      this.success = success;
20818
      this.hse = hse;
20819
    }
20820
 
20821
    /**
20822
     * Performs a deep copy on <i>other</i>.
20823
     */
20824
    public getQuickLinks_result(getQuickLinks_result other) {
20825
      if (other.isSetSuccess()) {
20826
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
20827
        for (QuickLink other_element : other.success) {
20828
          __this__success.add(new QuickLink(other_element));
20829
        }
20830
        this.success = __this__success;
20831
      }
20832
      if (other.isSetHse()) {
20833
        this.hse = new HelperServiceException(other.hse);
20834
      }
20835
    }
20836
 
20837
    public getQuickLinks_result deepCopy() {
20838
      return new getQuickLinks_result(this);
20839
    }
20840
 
20841
    @Override
20842
    public void clear() {
20843
      this.success = null;
20844
      this.hse = null;
20845
    }
20846
 
20847
    public int getSuccessSize() {
20848
      return (this.success == null) ? 0 : this.success.size();
20849
    }
20850
 
20851
    public java.util.Iterator<QuickLink> getSuccessIterator() {
20852
      return (this.success == null) ? null : this.success.iterator();
20853
    }
20854
 
20855
    public void addToSuccess(QuickLink elem) {
20856
      if (this.success == null) {
20857
        this.success = new ArrayList<QuickLink>();
20858
      }
20859
      this.success.add(elem);
20860
    }
20861
 
20862
    public List<QuickLink> getSuccess() {
20863
      return this.success;
20864
    }
20865
 
20866
    public void setSuccess(List<QuickLink> success) {
20867
      this.success = success;
20868
    }
20869
 
20870
    public void unsetSuccess() {
20871
      this.success = null;
20872
    }
20873
 
20874
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20875
    public boolean isSetSuccess() {
20876
      return this.success != null;
20877
    }
20878
 
20879
    public void setSuccessIsSet(boolean value) {
20880
      if (!value) {
20881
        this.success = null;
20882
      }
20883
    }
20884
 
20885
    public HelperServiceException getHse() {
20886
      return this.hse;
20887
    }
20888
 
20889
    public void setHse(HelperServiceException hse) {
20890
      this.hse = hse;
20891
    }
20892
 
20893
    public void unsetHse() {
20894
      this.hse = null;
20895
    }
20896
 
20897
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
20898
    public boolean isSetHse() {
20899
      return this.hse != null;
20900
    }
20901
 
20902
    public void setHseIsSet(boolean value) {
20903
      if (!value) {
20904
        this.hse = null;
20905
      }
20906
    }
20907
 
20908
    public void setFieldValue(_Fields field, Object value) {
20909
      switch (field) {
20910
      case SUCCESS:
20911
        if (value == null) {
20912
          unsetSuccess();
20913
        } else {
20914
          setSuccess((List<QuickLink>)value);
20915
        }
20916
        break;
20917
 
20918
      case HSE:
20919
        if (value == null) {
20920
          unsetHse();
20921
        } else {
20922
          setHse((HelperServiceException)value);
20923
        }
20924
        break;
20925
 
20926
      }
20927
    }
20928
 
20929
    public Object getFieldValue(_Fields field) {
20930
      switch (field) {
20931
      case SUCCESS:
20932
        return getSuccess();
20933
 
20934
      case HSE:
20935
        return getHse();
20936
 
20937
      }
20938
      throw new IllegalStateException();
20939
    }
20940
 
20941
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20942
    public boolean isSet(_Fields field) {
20943
      if (field == null) {
20944
        throw new IllegalArgumentException();
20945
      }
20946
 
20947
      switch (field) {
20948
      case SUCCESS:
20949
        return isSetSuccess();
20950
      case HSE:
20951
        return isSetHse();
20952
      }
20953
      throw new IllegalStateException();
20954
    }
20955
 
20956
    @Override
20957
    public boolean equals(Object that) {
20958
      if (that == null)
20959
        return false;
20960
      if (that instanceof getQuickLinks_result)
20961
        return this.equals((getQuickLinks_result)that);
20962
      return false;
20963
    }
20964
 
20965
    public boolean equals(getQuickLinks_result that) {
20966
      if (that == null)
20967
        return false;
20968
 
20969
      boolean this_present_success = true && this.isSetSuccess();
20970
      boolean that_present_success = true && that.isSetSuccess();
20971
      if (this_present_success || that_present_success) {
20972
        if (!(this_present_success && that_present_success))
20973
          return false;
20974
        if (!this.success.equals(that.success))
20975
          return false;
20976
      }
20977
 
20978
      boolean this_present_hse = true && this.isSetHse();
20979
      boolean that_present_hse = true && that.isSetHse();
20980
      if (this_present_hse || that_present_hse) {
20981
        if (!(this_present_hse && that_present_hse))
20982
          return false;
20983
        if (!this.hse.equals(that.hse))
20984
          return false;
20985
      }
20986
 
20987
      return true;
20988
    }
20989
 
20990
    @Override
20991
    public int hashCode() {
20992
      return 0;
20993
    }
20994
 
20995
    public int compareTo(getQuickLinks_result other) {
20996
      if (!getClass().equals(other.getClass())) {
20997
        return getClass().getName().compareTo(other.getClass().getName());
20998
      }
20999
 
21000
      int lastComparison = 0;
21001
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
21002
 
21003
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21004
      if (lastComparison != 0) {
21005
        return lastComparison;
21006
      }
21007
      if (isSetSuccess()) {
21008
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21009
        if (lastComparison != 0) {
21010
          return lastComparison;
21011
        }
21012
      }
21013
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21014
      if (lastComparison != 0) {
21015
        return lastComparison;
21016
      }
21017
      if (isSetHse()) {
21018
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21019
        if (lastComparison != 0) {
21020
          return lastComparison;
21021
        }
21022
      }
21023
      return 0;
21024
    }
21025
 
21026
    public _Fields fieldForId(int fieldId) {
21027
      return _Fields.findByThriftId(fieldId);
21028
    }
21029
 
21030
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21031
      org.apache.thrift.protocol.TField field;
21032
      iprot.readStructBegin();
21033
      while (true)
21034
      {
21035
        field = iprot.readFieldBegin();
21036
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21037
          break;
21038
        }
21039
        switch (field.id) {
21040
          case 0: // SUCCESS
21041
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
21042
              {
5864 rajveer 21043
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
21044
                this.success = new ArrayList<QuickLink>(_list61.size);
21045
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 21046
                {
5864 rajveer 21047
                  QuickLink _elem63; // required
21048
                  _elem63 = new QuickLink();
21049
                  _elem63.read(iprot);
21050
                  this.success.add(_elem63);
4806 varun.gupt 21051
                }
21052
                iprot.readListEnd();
21053
              }
21054
            } else { 
21055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21056
            }
21057
            break;
21058
          case 1: // HSE
21059
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21060
              this.hse = new HelperServiceException();
21061
              this.hse.read(iprot);
21062
            } else { 
21063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21064
            }
21065
            break;
21066
          default:
21067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21068
        }
21069
        iprot.readFieldEnd();
21070
      }
21071
      iprot.readStructEnd();
21072
      validate();
21073
    }
21074
 
21075
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21076
      oprot.writeStructBegin(STRUCT_DESC);
21077
 
21078
      if (this.isSetSuccess()) {
21079
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
21080
        {
21081
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 21082
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 21083
          {
5864 rajveer 21084
            _iter64.write(oprot);
4806 varun.gupt 21085
          }
21086
          oprot.writeListEnd();
21087
        }
21088
        oprot.writeFieldEnd();
21089
      } else if (this.isSetHse()) {
21090
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21091
        this.hse.write(oprot);
21092
        oprot.writeFieldEnd();
21093
      }
21094
      oprot.writeFieldStop();
21095
      oprot.writeStructEnd();
21096
    }
21097
 
21098
    @Override
21099
    public String toString() {
21100
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
21101
      boolean first = true;
21102
 
21103
      sb.append("success:");
21104
      if (this.success == null) {
21105
        sb.append("null");
21106
      } else {
21107
        sb.append(this.success);
21108
      }
21109
      first = false;
21110
      if (!first) sb.append(", ");
21111
      sb.append("hse:");
21112
      if (this.hse == null) {
21113
        sb.append("null");
21114
      } else {
21115
        sb.append(this.hse);
21116
      }
21117
      first = false;
21118
      sb.append(")");
21119
      return sb.toString();
21120
    }
21121
 
21122
    public void validate() throws org.apache.thrift.TException {
21123
      // check for required fields
21124
    }
21125
 
21126
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21127
      try {
21128
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21129
      } catch (org.apache.thrift.TException te) {
21130
        throw new java.io.IOException(te);
21131
      }
21132
    }
21133
 
21134
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21135
      try {
21136
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21137
      } catch (org.apache.thrift.TException te) {
21138
        throw new java.io.IOException(te);
21139
      }
21140
    }
21141
 
21142
  }
21143
 
4996 varun.gupt 21144
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
21145
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
21146
 
21147
    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);
21148
    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);
21149
    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);
21150
 
21151
    private long id; // required
21152
    private String url; // required
21153
    private String text; // required
21154
 
21155
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21156
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21157
      ID((short)1, "id"),
21158
      URL((short)2, "url"),
21159
      TEXT((short)3, "text");
21160
 
21161
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21162
 
21163
      static {
21164
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21165
          byName.put(field.getFieldName(), field);
21166
        }
21167
      }
21168
 
21169
      /**
21170
       * Find the _Fields constant that matches fieldId, or null if its not found.
21171
       */
21172
      public static _Fields findByThriftId(int fieldId) {
21173
        switch(fieldId) {
21174
          case 1: // ID
21175
            return ID;
21176
          case 2: // URL
21177
            return URL;
21178
          case 3: // TEXT
21179
            return TEXT;
21180
          default:
21181
            return null;
21182
        }
21183
      }
21184
 
21185
      /**
21186
       * Find the _Fields constant that matches fieldId, throwing an exception
21187
       * if it is not found.
21188
       */
21189
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21190
        _Fields fields = findByThriftId(fieldId);
21191
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21192
        return fields;
21193
      }
21194
 
21195
      /**
21196
       * Find the _Fields constant that matches name, or null if its not found.
21197
       */
21198
      public static _Fields findByName(String name) {
21199
        return byName.get(name);
21200
      }
21201
 
21202
      private final short _thriftId;
21203
      private final String _fieldName;
21204
 
21205
      _Fields(short thriftId, String fieldName) {
21206
        _thriftId = thriftId;
21207
        _fieldName = fieldName;
21208
      }
21209
 
21210
      public short getThriftFieldId() {
21211
        return _thriftId;
21212
      }
21213
 
21214
      public String getFieldName() {
21215
        return _fieldName;
21216
      }
21217
    }
21218
 
21219
    // isset id assignments
21220
    private static final int __ID_ISSET_ID = 0;
21221
    private BitSet __isset_bit_vector = new BitSet(1);
21222
 
21223
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21224
    static {
21225
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21226
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21227
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21228
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21229
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21230
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21231
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
21232
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21233
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
21234
    }
21235
 
21236
    public updateQuickLink_args() {
21237
    }
21238
 
21239
    public updateQuickLink_args(
21240
      long id,
21241
      String url,
21242
      String text)
21243
    {
21244
      this();
21245
      this.id = id;
21246
      setIdIsSet(true);
21247
      this.url = url;
21248
      this.text = text;
21249
    }
21250
 
21251
    /**
21252
     * Performs a deep copy on <i>other</i>.
21253
     */
21254
    public updateQuickLink_args(updateQuickLink_args other) {
21255
      __isset_bit_vector.clear();
21256
      __isset_bit_vector.or(other.__isset_bit_vector);
21257
      this.id = other.id;
21258
      if (other.isSetUrl()) {
21259
        this.url = other.url;
21260
      }
21261
      if (other.isSetText()) {
21262
        this.text = other.text;
21263
      }
21264
    }
21265
 
21266
    public updateQuickLink_args deepCopy() {
21267
      return new updateQuickLink_args(this);
21268
    }
21269
 
21270
    @Override
21271
    public void clear() {
21272
      setIdIsSet(false);
21273
      this.id = 0;
21274
      this.url = null;
21275
      this.text = null;
21276
    }
21277
 
21278
    public long getId() {
21279
      return this.id;
21280
    }
21281
 
21282
    public void setId(long id) {
21283
      this.id = id;
21284
      setIdIsSet(true);
21285
    }
21286
 
21287
    public void unsetId() {
21288
      __isset_bit_vector.clear(__ID_ISSET_ID);
21289
    }
21290
 
21291
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
21292
    public boolean isSetId() {
21293
      return __isset_bit_vector.get(__ID_ISSET_ID);
21294
    }
21295
 
21296
    public void setIdIsSet(boolean value) {
21297
      __isset_bit_vector.set(__ID_ISSET_ID, value);
21298
    }
21299
 
21300
    public String getUrl() {
21301
      return this.url;
21302
    }
21303
 
21304
    public void setUrl(String url) {
21305
      this.url = url;
21306
    }
21307
 
21308
    public void unsetUrl() {
21309
      this.url = null;
21310
    }
21311
 
21312
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
21313
    public boolean isSetUrl() {
21314
      return this.url != null;
21315
    }
21316
 
21317
    public void setUrlIsSet(boolean value) {
21318
      if (!value) {
21319
        this.url = null;
21320
      }
21321
    }
21322
 
21323
    public String getText() {
21324
      return this.text;
21325
    }
21326
 
21327
    public void setText(String text) {
21328
      this.text = text;
21329
    }
21330
 
21331
    public void unsetText() {
21332
      this.text = null;
21333
    }
21334
 
21335
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
21336
    public boolean isSetText() {
21337
      return this.text != null;
21338
    }
21339
 
21340
    public void setTextIsSet(boolean value) {
21341
      if (!value) {
21342
        this.text = null;
21343
      }
21344
    }
21345
 
21346
    public void setFieldValue(_Fields field, Object value) {
21347
      switch (field) {
21348
      case ID:
21349
        if (value == null) {
21350
          unsetId();
21351
        } else {
21352
          setId((Long)value);
21353
        }
21354
        break;
21355
 
21356
      case URL:
21357
        if (value == null) {
21358
          unsetUrl();
21359
        } else {
21360
          setUrl((String)value);
21361
        }
21362
        break;
21363
 
21364
      case TEXT:
21365
        if (value == null) {
21366
          unsetText();
21367
        } else {
21368
          setText((String)value);
21369
        }
21370
        break;
21371
 
21372
      }
21373
    }
21374
 
21375
    public Object getFieldValue(_Fields field) {
21376
      switch (field) {
21377
      case ID:
21378
        return Long.valueOf(getId());
21379
 
21380
      case URL:
21381
        return getUrl();
21382
 
21383
      case TEXT:
21384
        return getText();
21385
 
21386
      }
21387
      throw new IllegalStateException();
21388
    }
21389
 
21390
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21391
    public boolean isSet(_Fields field) {
21392
      if (field == null) {
21393
        throw new IllegalArgumentException();
21394
      }
21395
 
21396
      switch (field) {
21397
      case ID:
21398
        return isSetId();
21399
      case URL:
21400
        return isSetUrl();
21401
      case TEXT:
21402
        return isSetText();
21403
      }
21404
      throw new IllegalStateException();
21405
    }
21406
 
21407
    @Override
21408
    public boolean equals(Object that) {
21409
      if (that == null)
21410
        return false;
21411
      if (that instanceof updateQuickLink_args)
21412
        return this.equals((updateQuickLink_args)that);
21413
      return false;
21414
    }
21415
 
21416
    public boolean equals(updateQuickLink_args that) {
21417
      if (that == null)
21418
        return false;
21419
 
21420
      boolean this_present_id = true;
21421
      boolean that_present_id = true;
21422
      if (this_present_id || that_present_id) {
21423
        if (!(this_present_id && that_present_id))
21424
          return false;
21425
        if (this.id != that.id)
21426
          return false;
21427
      }
21428
 
21429
      boolean this_present_url = true && this.isSetUrl();
21430
      boolean that_present_url = true && that.isSetUrl();
21431
      if (this_present_url || that_present_url) {
21432
        if (!(this_present_url && that_present_url))
21433
          return false;
21434
        if (!this.url.equals(that.url))
21435
          return false;
21436
      }
21437
 
21438
      boolean this_present_text = true && this.isSetText();
21439
      boolean that_present_text = true && that.isSetText();
21440
      if (this_present_text || that_present_text) {
21441
        if (!(this_present_text && that_present_text))
21442
          return false;
21443
        if (!this.text.equals(that.text))
21444
          return false;
21445
      }
21446
 
21447
      return true;
21448
    }
21449
 
21450
    @Override
21451
    public int hashCode() {
21452
      return 0;
21453
    }
21454
 
21455
    public int compareTo(updateQuickLink_args other) {
21456
      if (!getClass().equals(other.getClass())) {
21457
        return getClass().getName().compareTo(other.getClass().getName());
21458
      }
21459
 
21460
      int lastComparison = 0;
21461
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
21462
 
21463
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
21464
      if (lastComparison != 0) {
21465
        return lastComparison;
21466
      }
21467
      if (isSetId()) {
21468
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
21469
        if (lastComparison != 0) {
21470
          return lastComparison;
21471
        }
21472
      }
21473
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21474
      if (lastComparison != 0) {
21475
        return lastComparison;
21476
      }
21477
      if (isSetUrl()) {
21478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21479
        if (lastComparison != 0) {
21480
          return lastComparison;
21481
        }
21482
      }
21483
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21484
      if (lastComparison != 0) {
21485
        return lastComparison;
21486
      }
21487
      if (isSetText()) {
21488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21489
        if (lastComparison != 0) {
21490
          return lastComparison;
21491
        }
21492
      }
21493
      return 0;
21494
    }
21495
 
21496
    public _Fields fieldForId(int fieldId) {
21497
      return _Fields.findByThriftId(fieldId);
21498
    }
21499
 
21500
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21501
      org.apache.thrift.protocol.TField field;
21502
      iprot.readStructBegin();
21503
      while (true)
21504
      {
21505
        field = iprot.readFieldBegin();
21506
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21507
          break;
21508
        }
21509
        switch (field.id) {
21510
          case 1: // ID
21511
            if (field.type == org.apache.thrift.protocol.TType.I64) {
21512
              this.id = iprot.readI64();
21513
              setIdIsSet(true);
21514
            } else { 
21515
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21516
            }
21517
            break;
21518
          case 2: // URL
21519
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21520
              this.url = iprot.readString();
21521
            } else { 
21522
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21523
            }
21524
            break;
21525
          case 3: // TEXT
21526
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21527
              this.text = iprot.readString();
21528
            } else { 
21529
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21530
            }
21531
            break;
21532
          default:
21533
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21534
        }
21535
        iprot.readFieldEnd();
21536
      }
21537
      iprot.readStructEnd();
21538
      validate();
21539
    }
21540
 
21541
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21542
      validate();
21543
 
21544
      oprot.writeStructBegin(STRUCT_DESC);
21545
      oprot.writeFieldBegin(ID_FIELD_DESC);
21546
      oprot.writeI64(this.id);
21547
      oprot.writeFieldEnd();
21548
      if (this.url != null) {
21549
        oprot.writeFieldBegin(URL_FIELD_DESC);
21550
        oprot.writeString(this.url);
21551
        oprot.writeFieldEnd();
21552
      }
21553
      if (this.text != null) {
21554
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21555
        oprot.writeString(this.text);
21556
        oprot.writeFieldEnd();
21557
      }
21558
      oprot.writeFieldStop();
21559
      oprot.writeStructEnd();
21560
    }
21561
 
21562
    @Override
21563
    public String toString() {
21564
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
21565
      boolean first = true;
21566
 
21567
      sb.append("id:");
21568
      sb.append(this.id);
21569
      first = false;
21570
      if (!first) sb.append(", ");
21571
      sb.append("url:");
21572
      if (this.url == null) {
21573
        sb.append("null");
21574
      } else {
21575
        sb.append(this.url);
21576
      }
21577
      first = false;
21578
      if (!first) sb.append(", ");
21579
      sb.append("text:");
21580
      if (this.text == null) {
21581
        sb.append("null");
21582
      } else {
21583
        sb.append(this.text);
21584
      }
21585
      first = false;
21586
      sb.append(")");
21587
      return sb.toString();
21588
    }
21589
 
21590
    public void validate() throws org.apache.thrift.TException {
21591
      // check for required fields
21592
    }
21593
 
21594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21595
      try {
21596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21597
      } catch (org.apache.thrift.TException te) {
21598
        throw new java.io.IOException(te);
21599
      }
21600
    }
21601
 
21602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21603
      try {
21604
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
21605
        __isset_bit_vector = new BitSet(1);
21606
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21607
      } catch (org.apache.thrift.TException te) {
21608
        throw new java.io.IOException(te);
21609
      }
21610
    }
21611
 
21612
  }
21613
 
21614
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
21616
 
21617
    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);
21618
 
21619
    private HelperServiceException hse; // required
21620
 
21621
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21622
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21623
      HSE((short)1, "hse");
21624
 
21625
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21626
 
21627
      static {
21628
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21629
          byName.put(field.getFieldName(), field);
21630
        }
21631
      }
21632
 
21633
      /**
21634
       * Find the _Fields constant that matches fieldId, or null if its not found.
21635
       */
21636
      public static _Fields findByThriftId(int fieldId) {
21637
        switch(fieldId) {
21638
          case 1: // HSE
21639
            return HSE;
21640
          default:
21641
            return null;
21642
        }
21643
      }
21644
 
21645
      /**
21646
       * Find the _Fields constant that matches fieldId, throwing an exception
21647
       * if it is not found.
21648
       */
21649
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21650
        _Fields fields = findByThriftId(fieldId);
21651
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21652
        return fields;
21653
      }
21654
 
21655
      /**
21656
       * Find the _Fields constant that matches name, or null if its not found.
21657
       */
21658
      public static _Fields findByName(String name) {
21659
        return byName.get(name);
21660
      }
21661
 
21662
      private final short _thriftId;
21663
      private final String _fieldName;
21664
 
21665
      _Fields(short thriftId, String fieldName) {
21666
        _thriftId = thriftId;
21667
        _fieldName = fieldName;
21668
      }
21669
 
21670
      public short getThriftFieldId() {
21671
        return _thriftId;
21672
      }
21673
 
21674
      public String getFieldName() {
21675
        return _fieldName;
21676
      }
21677
    }
21678
 
21679
    // isset id assignments
21680
 
21681
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21682
    static {
21683
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21684
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21685
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21686
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21687
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
21688
    }
21689
 
21690
    public updateQuickLink_result() {
21691
    }
21692
 
21693
    public updateQuickLink_result(
21694
      HelperServiceException hse)
21695
    {
21696
      this();
21697
      this.hse = hse;
21698
    }
21699
 
21700
    /**
21701
     * Performs a deep copy on <i>other</i>.
21702
     */
21703
    public updateQuickLink_result(updateQuickLink_result other) {
21704
      if (other.isSetHse()) {
21705
        this.hse = new HelperServiceException(other.hse);
21706
      }
21707
    }
21708
 
21709
    public updateQuickLink_result deepCopy() {
21710
      return new updateQuickLink_result(this);
21711
    }
21712
 
21713
    @Override
21714
    public void clear() {
21715
      this.hse = null;
21716
    }
21717
 
21718
    public HelperServiceException getHse() {
21719
      return this.hse;
21720
    }
21721
 
21722
    public void setHse(HelperServiceException hse) {
21723
      this.hse = hse;
21724
    }
21725
 
21726
    public void unsetHse() {
21727
      this.hse = null;
21728
    }
21729
 
21730
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21731
    public boolean isSetHse() {
21732
      return this.hse != null;
21733
    }
21734
 
21735
    public void setHseIsSet(boolean value) {
21736
      if (!value) {
21737
        this.hse = null;
21738
      }
21739
    }
21740
 
21741
    public void setFieldValue(_Fields field, Object value) {
21742
      switch (field) {
21743
      case HSE:
21744
        if (value == null) {
21745
          unsetHse();
21746
        } else {
21747
          setHse((HelperServiceException)value);
21748
        }
21749
        break;
21750
 
21751
      }
21752
    }
21753
 
21754
    public Object getFieldValue(_Fields field) {
21755
      switch (field) {
21756
      case HSE:
21757
        return getHse();
21758
 
21759
      }
21760
      throw new IllegalStateException();
21761
    }
21762
 
21763
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21764
    public boolean isSet(_Fields field) {
21765
      if (field == null) {
21766
        throw new IllegalArgumentException();
21767
      }
21768
 
21769
      switch (field) {
21770
      case HSE:
21771
        return isSetHse();
21772
      }
21773
      throw new IllegalStateException();
21774
    }
21775
 
21776
    @Override
21777
    public boolean equals(Object that) {
21778
      if (that == null)
21779
        return false;
21780
      if (that instanceof updateQuickLink_result)
21781
        return this.equals((updateQuickLink_result)that);
21782
      return false;
21783
    }
21784
 
21785
    public boolean equals(updateQuickLink_result that) {
21786
      if (that == null)
21787
        return false;
21788
 
21789
      boolean this_present_hse = true && this.isSetHse();
21790
      boolean that_present_hse = true && that.isSetHse();
21791
      if (this_present_hse || that_present_hse) {
21792
        if (!(this_present_hse && that_present_hse))
21793
          return false;
21794
        if (!this.hse.equals(that.hse))
21795
          return false;
21796
      }
21797
 
21798
      return true;
21799
    }
21800
 
21801
    @Override
21802
    public int hashCode() {
21803
      return 0;
21804
    }
21805
 
21806
    public int compareTo(updateQuickLink_result other) {
21807
      if (!getClass().equals(other.getClass())) {
21808
        return getClass().getName().compareTo(other.getClass().getName());
21809
      }
21810
 
21811
      int lastComparison = 0;
21812
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
21813
 
21814
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21815
      if (lastComparison != 0) {
21816
        return lastComparison;
21817
      }
21818
      if (isSetHse()) {
21819
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21820
        if (lastComparison != 0) {
21821
          return lastComparison;
21822
        }
21823
      }
21824
      return 0;
21825
    }
21826
 
21827
    public _Fields fieldForId(int fieldId) {
21828
      return _Fields.findByThriftId(fieldId);
21829
    }
21830
 
21831
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21832
      org.apache.thrift.protocol.TField field;
21833
      iprot.readStructBegin();
21834
      while (true)
21835
      {
21836
        field = iprot.readFieldBegin();
21837
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21838
          break;
21839
        }
21840
        switch (field.id) {
21841
          case 1: // HSE
21842
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21843
              this.hse = new HelperServiceException();
21844
              this.hse.read(iprot);
21845
            } else { 
21846
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21847
            }
21848
            break;
21849
          default:
21850
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21851
        }
21852
        iprot.readFieldEnd();
21853
      }
21854
      iprot.readStructEnd();
21855
      validate();
21856
    }
21857
 
21858
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21859
      oprot.writeStructBegin(STRUCT_DESC);
21860
 
21861
      if (this.isSetHse()) {
21862
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21863
        this.hse.write(oprot);
21864
        oprot.writeFieldEnd();
21865
      }
21866
      oprot.writeFieldStop();
21867
      oprot.writeStructEnd();
21868
    }
21869
 
21870
    @Override
21871
    public String toString() {
21872
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
21873
      boolean first = true;
21874
 
21875
      sb.append("hse:");
21876
      if (this.hse == null) {
21877
        sb.append("null");
21878
      } else {
21879
        sb.append(this.hse);
21880
      }
21881
      first = false;
21882
      sb.append(")");
21883
      return sb.toString();
21884
    }
21885
 
21886
    public void validate() throws org.apache.thrift.TException {
21887
      // check for required fields
21888
    }
21889
 
21890
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21891
      try {
21892
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21893
      } catch (org.apache.thrift.TException te) {
21894
        throw new java.io.IOException(te);
21895
      }
21896
    }
21897
 
21898
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21899
      try {
21900
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21901
      } catch (org.apache.thrift.TException te) {
21902
        throw new java.io.IOException(te);
21903
      }
21904
    }
21905
 
21906
  }
21907
 
5055 varun.gupt 21908
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
21909
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
21910
 
21911
    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);
21912
    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);
21913
 
21914
    private long startDatetime; // required
21915
    private long endDatetime; // required
21916
 
21917
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21918
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21919
      START_DATETIME((short)1, "startDatetime"),
21920
      END_DATETIME((short)2, "endDatetime");
21921
 
21922
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21923
 
21924
      static {
21925
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21926
          byName.put(field.getFieldName(), field);
21927
        }
21928
      }
21929
 
21930
      /**
21931
       * Find the _Fields constant that matches fieldId, or null if its not found.
21932
       */
21933
      public static _Fields findByThriftId(int fieldId) {
21934
        switch(fieldId) {
21935
          case 1: // START_DATETIME
21936
            return START_DATETIME;
21937
          case 2: // END_DATETIME
21938
            return END_DATETIME;
21939
          default:
21940
            return null;
21941
        }
21942
      }
21943
 
21944
      /**
21945
       * Find the _Fields constant that matches fieldId, throwing an exception
21946
       * if it is not found.
21947
       */
21948
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21949
        _Fields fields = findByThriftId(fieldId);
21950
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21951
        return fields;
21952
      }
21953
 
21954
      /**
21955
       * Find the _Fields constant that matches name, or null if its not found.
21956
       */
21957
      public static _Fields findByName(String name) {
21958
        return byName.get(name);
21959
      }
21960
 
21961
      private final short _thriftId;
21962
      private final String _fieldName;
21963
 
21964
      _Fields(short thriftId, String fieldName) {
21965
        _thriftId = thriftId;
21966
        _fieldName = fieldName;
21967
      }
21968
 
21969
      public short getThriftFieldId() {
21970
        return _thriftId;
21971
      }
21972
 
21973
      public String getFieldName() {
21974
        return _fieldName;
21975
      }
21976
    }
21977
 
21978
    // isset id assignments
21979
    private static final int __STARTDATETIME_ISSET_ID = 0;
21980
    private static final int __ENDDATETIME_ISSET_ID = 1;
21981
    private BitSet __isset_bit_vector = new BitSet(2);
21982
 
21983
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21984
    static {
21985
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21986
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21987
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21988
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21989
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
21990
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21991
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
21992
    }
21993
 
21994
    public getEmailsForNotificationsSent_args() {
21995
    }
21996
 
21997
    public getEmailsForNotificationsSent_args(
21998
      long startDatetime,
21999
      long endDatetime)
22000
    {
22001
      this();
22002
      this.startDatetime = startDatetime;
22003
      setStartDatetimeIsSet(true);
22004
      this.endDatetime = endDatetime;
22005
      setEndDatetimeIsSet(true);
22006
    }
22007
 
22008
    /**
22009
     * Performs a deep copy on <i>other</i>.
22010
     */
22011
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
22012
      __isset_bit_vector.clear();
22013
      __isset_bit_vector.or(other.__isset_bit_vector);
22014
      this.startDatetime = other.startDatetime;
22015
      this.endDatetime = other.endDatetime;
22016
    }
22017
 
22018
    public getEmailsForNotificationsSent_args deepCopy() {
22019
      return new getEmailsForNotificationsSent_args(this);
22020
    }
22021
 
22022
    @Override
22023
    public void clear() {
22024
      setStartDatetimeIsSet(false);
22025
      this.startDatetime = 0;
22026
      setEndDatetimeIsSet(false);
22027
      this.endDatetime = 0;
22028
    }
22029
 
22030
    public long getStartDatetime() {
22031
      return this.startDatetime;
22032
    }
22033
 
22034
    public void setStartDatetime(long startDatetime) {
22035
      this.startDatetime = startDatetime;
22036
      setStartDatetimeIsSet(true);
22037
    }
22038
 
22039
    public void unsetStartDatetime() {
22040
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
22041
    }
22042
 
22043
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
22044
    public boolean isSetStartDatetime() {
22045
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
22046
    }
22047
 
22048
    public void setStartDatetimeIsSet(boolean value) {
22049
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
22050
    }
22051
 
22052
    public long getEndDatetime() {
22053
      return this.endDatetime;
22054
    }
22055
 
22056
    public void setEndDatetime(long endDatetime) {
22057
      this.endDatetime = endDatetime;
22058
      setEndDatetimeIsSet(true);
22059
    }
22060
 
22061
    public void unsetEndDatetime() {
22062
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
22063
    }
22064
 
22065
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
22066
    public boolean isSetEndDatetime() {
22067
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
22068
    }
22069
 
22070
    public void setEndDatetimeIsSet(boolean value) {
22071
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
22072
    }
22073
 
22074
    public void setFieldValue(_Fields field, Object value) {
22075
      switch (field) {
22076
      case START_DATETIME:
22077
        if (value == null) {
22078
          unsetStartDatetime();
22079
        } else {
22080
          setStartDatetime((Long)value);
22081
        }
22082
        break;
22083
 
22084
      case END_DATETIME:
22085
        if (value == null) {
22086
          unsetEndDatetime();
22087
        } else {
22088
          setEndDatetime((Long)value);
22089
        }
22090
        break;
22091
 
22092
      }
22093
    }
22094
 
22095
    public Object getFieldValue(_Fields field) {
22096
      switch (field) {
22097
      case START_DATETIME:
22098
        return Long.valueOf(getStartDatetime());
22099
 
22100
      case END_DATETIME:
22101
        return Long.valueOf(getEndDatetime());
22102
 
22103
      }
22104
      throw new IllegalStateException();
22105
    }
22106
 
22107
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22108
    public boolean isSet(_Fields field) {
22109
      if (field == null) {
22110
        throw new IllegalArgumentException();
22111
      }
22112
 
22113
      switch (field) {
22114
      case START_DATETIME:
22115
        return isSetStartDatetime();
22116
      case END_DATETIME:
22117
        return isSetEndDatetime();
22118
      }
22119
      throw new IllegalStateException();
22120
    }
22121
 
22122
    @Override
22123
    public boolean equals(Object that) {
22124
      if (that == null)
22125
        return false;
22126
      if (that instanceof getEmailsForNotificationsSent_args)
22127
        return this.equals((getEmailsForNotificationsSent_args)that);
22128
      return false;
22129
    }
22130
 
22131
    public boolean equals(getEmailsForNotificationsSent_args that) {
22132
      if (that == null)
22133
        return false;
22134
 
22135
      boolean this_present_startDatetime = true;
22136
      boolean that_present_startDatetime = true;
22137
      if (this_present_startDatetime || that_present_startDatetime) {
22138
        if (!(this_present_startDatetime && that_present_startDatetime))
22139
          return false;
22140
        if (this.startDatetime != that.startDatetime)
22141
          return false;
22142
      }
22143
 
22144
      boolean this_present_endDatetime = true;
22145
      boolean that_present_endDatetime = true;
22146
      if (this_present_endDatetime || that_present_endDatetime) {
22147
        if (!(this_present_endDatetime && that_present_endDatetime))
22148
          return false;
22149
        if (this.endDatetime != that.endDatetime)
22150
          return false;
22151
      }
22152
 
22153
      return true;
22154
    }
22155
 
22156
    @Override
22157
    public int hashCode() {
22158
      return 0;
22159
    }
22160
 
22161
    public int compareTo(getEmailsForNotificationsSent_args other) {
22162
      if (!getClass().equals(other.getClass())) {
22163
        return getClass().getName().compareTo(other.getClass().getName());
22164
      }
22165
 
22166
      int lastComparison = 0;
22167
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
22168
 
22169
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
22170
      if (lastComparison != 0) {
22171
        return lastComparison;
22172
      }
22173
      if (isSetStartDatetime()) {
22174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
22175
        if (lastComparison != 0) {
22176
          return lastComparison;
22177
        }
22178
      }
22179
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
22180
      if (lastComparison != 0) {
22181
        return lastComparison;
22182
      }
22183
      if (isSetEndDatetime()) {
22184
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
22185
        if (lastComparison != 0) {
22186
          return lastComparison;
22187
        }
22188
      }
22189
      return 0;
22190
    }
22191
 
22192
    public _Fields fieldForId(int fieldId) {
22193
      return _Fields.findByThriftId(fieldId);
22194
    }
22195
 
22196
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22197
      org.apache.thrift.protocol.TField field;
22198
      iprot.readStructBegin();
22199
      while (true)
22200
      {
22201
        field = iprot.readFieldBegin();
22202
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22203
          break;
22204
        }
22205
        switch (field.id) {
22206
          case 1: // START_DATETIME
22207
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22208
              this.startDatetime = iprot.readI64();
22209
              setStartDatetimeIsSet(true);
22210
            } else { 
22211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22212
            }
22213
            break;
22214
          case 2: // END_DATETIME
22215
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22216
              this.endDatetime = iprot.readI64();
22217
              setEndDatetimeIsSet(true);
22218
            } else { 
22219
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22220
            }
22221
            break;
22222
          default:
22223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22224
        }
22225
        iprot.readFieldEnd();
22226
      }
22227
      iprot.readStructEnd();
22228
      validate();
22229
    }
22230
 
22231
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22232
      validate();
22233
 
22234
      oprot.writeStructBegin(STRUCT_DESC);
22235
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
22236
      oprot.writeI64(this.startDatetime);
22237
      oprot.writeFieldEnd();
22238
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
22239
      oprot.writeI64(this.endDatetime);
22240
      oprot.writeFieldEnd();
22241
      oprot.writeFieldStop();
22242
      oprot.writeStructEnd();
22243
    }
22244
 
22245
    @Override
22246
    public String toString() {
22247
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
22248
      boolean first = true;
22249
 
22250
      sb.append("startDatetime:");
22251
      sb.append(this.startDatetime);
22252
      first = false;
22253
      if (!first) sb.append(", ");
22254
      sb.append("endDatetime:");
22255
      sb.append(this.endDatetime);
22256
      first = false;
22257
      sb.append(")");
22258
      return sb.toString();
22259
    }
22260
 
22261
    public void validate() throws org.apache.thrift.TException {
22262
      // check for required fields
22263
    }
22264
 
22265
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22266
      try {
22267
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22268
      } catch (org.apache.thrift.TException te) {
22269
        throw new java.io.IOException(te);
22270
      }
22271
    }
22272
 
22273
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22274
      try {
22275
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22276
      } catch (org.apache.thrift.TException te) {
22277
        throw new java.io.IOException(te);
22278
      }
22279
    }
22280
 
22281
  }
22282
 
22283
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
22284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
22285
 
22286
    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);
22287
    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);
22288
 
22289
    private List<String> success; // required
22290
    private HelperServiceException hse; // required
22291
 
22292
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22293
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22294
      SUCCESS((short)0, "success"),
22295
      HSE((short)1, "hse");
22296
 
22297
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22298
 
22299
      static {
22300
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22301
          byName.put(field.getFieldName(), field);
22302
        }
22303
      }
22304
 
22305
      /**
22306
       * Find the _Fields constant that matches fieldId, or null if its not found.
22307
       */
22308
      public static _Fields findByThriftId(int fieldId) {
22309
        switch(fieldId) {
22310
          case 0: // SUCCESS
22311
            return SUCCESS;
22312
          case 1: // HSE
22313
            return HSE;
22314
          default:
22315
            return null;
22316
        }
22317
      }
22318
 
22319
      /**
22320
       * Find the _Fields constant that matches fieldId, throwing an exception
22321
       * if it is not found.
22322
       */
22323
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22324
        _Fields fields = findByThriftId(fieldId);
22325
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22326
        return fields;
22327
      }
22328
 
22329
      /**
22330
       * Find the _Fields constant that matches name, or null if its not found.
22331
       */
22332
      public static _Fields findByName(String name) {
22333
        return byName.get(name);
22334
      }
22335
 
22336
      private final short _thriftId;
22337
      private final String _fieldName;
22338
 
22339
      _Fields(short thriftId, String fieldName) {
22340
        _thriftId = thriftId;
22341
        _fieldName = fieldName;
22342
      }
22343
 
22344
      public short getThriftFieldId() {
22345
        return _thriftId;
22346
      }
22347
 
22348
      public String getFieldName() {
22349
        return _fieldName;
22350
      }
22351
    }
22352
 
22353
    // isset id assignments
22354
 
22355
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22356
    static {
22357
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22358
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22359
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
22360
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
22361
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22362
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22363
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22364
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
22365
    }
22366
 
22367
    public getEmailsForNotificationsSent_result() {
22368
    }
22369
 
22370
    public getEmailsForNotificationsSent_result(
22371
      List<String> success,
22372
      HelperServiceException hse)
22373
    {
22374
      this();
22375
      this.success = success;
22376
      this.hse = hse;
22377
    }
22378
 
22379
    /**
22380
     * Performs a deep copy on <i>other</i>.
22381
     */
22382
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
22383
      if (other.isSetSuccess()) {
22384
        List<String> __this__success = new ArrayList<String>();
22385
        for (String other_element : other.success) {
22386
          __this__success.add(other_element);
22387
        }
22388
        this.success = __this__success;
22389
      }
22390
      if (other.isSetHse()) {
22391
        this.hse = new HelperServiceException(other.hse);
22392
      }
22393
    }
22394
 
22395
    public getEmailsForNotificationsSent_result deepCopy() {
22396
      return new getEmailsForNotificationsSent_result(this);
22397
    }
22398
 
22399
    @Override
22400
    public void clear() {
22401
      this.success = null;
22402
      this.hse = null;
22403
    }
22404
 
22405
    public int getSuccessSize() {
22406
      return (this.success == null) ? 0 : this.success.size();
22407
    }
22408
 
22409
    public java.util.Iterator<String> getSuccessIterator() {
22410
      return (this.success == null) ? null : this.success.iterator();
22411
    }
22412
 
22413
    public void addToSuccess(String elem) {
22414
      if (this.success == null) {
22415
        this.success = new ArrayList<String>();
22416
      }
22417
      this.success.add(elem);
22418
    }
22419
 
22420
    public List<String> getSuccess() {
22421
      return this.success;
22422
    }
22423
 
22424
    public void setSuccess(List<String> success) {
22425
      this.success = success;
22426
    }
22427
 
22428
    public void unsetSuccess() {
22429
      this.success = null;
22430
    }
22431
 
22432
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
22433
    public boolean isSetSuccess() {
22434
      return this.success != null;
22435
    }
22436
 
22437
    public void setSuccessIsSet(boolean value) {
22438
      if (!value) {
22439
        this.success = null;
22440
      }
22441
    }
22442
 
22443
    public HelperServiceException getHse() {
22444
      return this.hse;
22445
    }
22446
 
22447
    public void setHse(HelperServiceException hse) {
22448
      this.hse = hse;
22449
    }
22450
 
22451
    public void unsetHse() {
22452
      this.hse = null;
22453
    }
22454
 
22455
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22456
    public boolean isSetHse() {
22457
      return this.hse != null;
22458
    }
22459
 
22460
    public void setHseIsSet(boolean value) {
22461
      if (!value) {
22462
        this.hse = null;
22463
      }
22464
    }
22465
 
22466
    public void setFieldValue(_Fields field, Object value) {
22467
      switch (field) {
22468
      case SUCCESS:
22469
        if (value == null) {
22470
          unsetSuccess();
22471
        } else {
22472
          setSuccess((List<String>)value);
22473
        }
22474
        break;
22475
 
22476
      case HSE:
22477
        if (value == null) {
22478
          unsetHse();
22479
        } else {
22480
          setHse((HelperServiceException)value);
22481
        }
22482
        break;
22483
 
22484
      }
22485
    }
22486
 
22487
    public Object getFieldValue(_Fields field) {
22488
      switch (field) {
22489
      case SUCCESS:
22490
        return getSuccess();
22491
 
22492
      case HSE:
22493
        return getHse();
22494
 
22495
      }
22496
      throw new IllegalStateException();
22497
    }
22498
 
22499
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22500
    public boolean isSet(_Fields field) {
22501
      if (field == null) {
22502
        throw new IllegalArgumentException();
22503
      }
22504
 
22505
      switch (field) {
22506
      case SUCCESS:
22507
        return isSetSuccess();
22508
      case HSE:
22509
        return isSetHse();
22510
      }
22511
      throw new IllegalStateException();
22512
    }
22513
 
22514
    @Override
22515
    public boolean equals(Object that) {
22516
      if (that == null)
22517
        return false;
22518
      if (that instanceof getEmailsForNotificationsSent_result)
22519
        return this.equals((getEmailsForNotificationsSent_result)that);
22520
      return false;
22521
    }
22522
 
22523
    public boolean equals(getEmailsForNotificationsSent_result that) {
22524
      if (that == null)
22525
        return false;
22526
 
22527
      boolean this_present_success = true && this.isSetSuccess();
22528
      boolean that_present_success = true && that.isSetSuccess();
22529
      if (this_present_success || that_present_success) {
22530
        if (!(this_present_success && that_present_success))
22531
          return false;
22532
        if (!this.success.equals(that.success))
22533
          return false;
22534
      }
22535
 
22536
      boolean this_present_hse = true && this.isSetHse();
22537
      boolean that_present_hse = true && that.isSetHse();
22538
      if (this_present_hse || that_present_hse) {
22539
        if (!(this_present_hse && that_present_hse))
22540
          return false;
22541
        if (!this.hse.equals(that.hse))
22542
          return false;
22543
      }
22544
 
22545
      return true;
22546
    }
22547
 
22548
    @Override
22549
    public int hashCode() {
22550
      return 0;
22551
    }
22552
 
22553
    public int compareTo(getEmailsForNotificationsSent_result other) {
22554
      if (!getClass().equals(other.getClass())) {
22555
        return getClass().getName().compareTo(other.getClass().getName());
22556
      }
22557
 
22558
      int lastComparison = 0;
22559
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
22560
 
22561
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22562
      if (lastComparison != 0) {
22563
        return lastComparison;
22564
      }
22565
      if (isSetSuccess()) {
22566
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22567
        if (lastComparison != 0) {
22568
          return lastComparison;
22569
        }
22570
      }
22571
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22572
      if (lastComparison != 0) {
22573
        return lastComparison;
22574
      }
22575
      if (isSetHse()) {
22576
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22577
        if (lastComparison != 0) {
22578
          return lastComparison;
22579
        }
22580
      }
22581
      return 0;
22582
    }
22583
 
22584
    public _Fields fieldForId(int fieldId) {
22585
      return _Fields.findByThriftId(fieldId);
22586
    }
22587
 
22588
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22589
      org.apache.thrift.protocol.TField field;
22590
      iprot.readStructBegin();
22591
      while (true)
22592
      {
22593
        field = iprot.readFieldBegin();
22594
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22595
          break;
22596
        }
22597
        switch (field.id) {
22598
          case 0: // SUCCESS
22599
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22600
              {
5864 rajveer 22601
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
22602
                this.success = new ArrayList<String>(_list65.size);
22603
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 22604
                {
5864 rajveer 22605
                  String _elem67; // required
22606
                  _elem67 = iprot.readString();
22607
                  this.success.add(_elem67);
5055 varun.gupt 22608
                }
22609
                iprot.readListEnd();
22610
              }
22611
            } else { 
22612
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22613
            }
22614
            break;
22615
          case 1: // HSE
22616
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22617
              this.hse = new HelperServiceException();
22618
              this.hse.read(iprot);
22619
            } else { 
22620
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22621
            }
22622
            break;
22623
          default:
22624
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22625
        }
22626
        iprot.readFieldEnd();
22627
      }
22628
      iprot.readStructEnd();
22629
      validate();
22630
    }
22631
 
22632
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22633
      oprot.writeStructBegin(STRUCT_DESC);
22634
 
22635
      if (this.isSetSuccess()) {
22636
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22637
        {
22638
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 22639
          for (String _iter68 : this.success)
5055 varun.gupt 22640
          {
5864 rajveer 22641
            oprot.writeString(_iter68);
5055 varun.gupt 22642
          }
22643
          oprot.writeListEnd();
22644
        }
22645
        oprot.writeFieldEnd();
22646
      } else if (this.isSetHse()) {
22647
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22648
        this.hse.write(oprot);
22649
        oprot.writeFieldEnd();
22650
      }
22651
      oprot.writeFieldStop();
22652
      oprot.writeStructEnd();
22653
    }
22654
 
22655
    @Override
22656
    public String toString() {
22657
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
22658
      boolean first = true;
22659
 
22660
      sb.append("success:");
22661
      if (this.success == null) {
22662
        sb.append("null");
22663
      } else {
22664
        sb.append(this.success);
22665
      }
22666
      first = false;
22667
      if (!first) sb.append(", ");
22668
      sb.append("hse:");
22669
      if (this.hse == null) {
22670
        sb.append("null");
22671
      } else {
22672
        sb.append(this.hse);
22673
      }
22674
      first = false;
22675
      sb.append(")");
22676
      return sb.toString();
22677
    }
22678
 
22679
    public void validate() throws org.apache.thrift.TException {
22680
      // check for required fields
22681
    }
22682
 
22683
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22684
      try {
22685
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22686
      } catch (org.apache.thrift.TException te) {
22687
        throw new java.io.IOException(te);
22688
      }
22689
    }
22690
 
22691
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22692
      try {
22693
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22694
      } catch (org.apache.thrift.TException te) {
22695
        throw new java.io.IOException(te);
22696
      }
22697
    }
22698
 
22699
  }
22700
 
6322 amar.kumar 22701
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
22702
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
22703
 
22704
    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);
22705
 
22706
    private long orderId; // required
22707
 
22708
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22709
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22710
      ORDER_ID((short)1, "orderId");
22711
 
22712
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22713
 
22714
      static {
22715
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22716
          byName.put(field.getFieldName(), field);
22717
        }
22718
      }
22719
 
22720
      /**
22721
       * Find the _Fields constant that matches fieldId, or null if its not found.
22722
       */
22723
      public static _Fields findByThriftId(int fieldId) {
22724
        switch(fieldId) {
22725
          case 1: // ORDER_ID
22726
            return ORDER_ID;
22727
          default:
22728
            return null;
22729
        }
22730
      }
22731
 
22732
      /**
22733
       * Find the _Fields constant that matches fieldId, throwing an exception
22734
       * if it is not found.
22735
       */
22736
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22737
        _Fields fields = findByThriftId(fieldId);
22738
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22739
        return fields;
22740
      }
22741
 
22742
      /**
22743
       * Find the _Fields constant that matches name, or null if its not found.
22744
       */
22745
      public static _Fields findByName(String name) {
22746
        return byName.get(name);
22747
      }
22748
 
22749
      private final short _thriftId;
22750
      private final String _fieldName;
22751
 
22752
      _Fields(short thriftId, String fieldName) {
22753
        _thriftId = thriftId;
22754
        _fieldName = fieldName;
22755
      }
22756
 
22757
      public short getThriftFieldId() {
22758
        return _thriftId;
22759
      }
22760
 
22761
      public String getFieldName() {
22762
        return _fieldName;
22763
      }
22764
    }
22765
 
22766
    // isset id assignments
22767
    private static final int __ORDERID_ISSET_ID = 0;
22768
    private BitSet __isset_bit_vector = new BitSet(1);
22769
 
22770
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22771
    static {
22772
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22773
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22774
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22775
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22776
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
22777
    }
22778
 
22779
    public getOrderConfirmationMail_args() {
22780
    }
22781
 
22782
    public getOrderConfirmationMail_args(
22783
      long orderId)
22784
    {
22785
      this();
22786
      this.orderId = orderId;
22787
      setOrderIdIsSet(true);
22788
    }
22789
 
22790
    /**
22791
     * Performs a deep copy on <i>other</i>.
22792
     */
22793
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
22794
      __isset_bit_vector.clear();
22795
      __isset_bit_vector.or(other.__isset_bit_vector);
22796
      this.orderId = other.orderId;
22797
    }
22798
 
22799
    public getOrderConfirmationMail_args deepCopy() {
22800
      return new getOrderConfirmationMail_args(this);
22801
    }
22802
 
22803
    @Override
22804
    public void clear() {
22805
      setOrderIdIsSet(false);
22806
      this.orderId = 0;
22807
    }
22808
 
22809
    public long getOrderId() {
22810
      return this.orderId;
22811
    }
22812
 
22813
    public void setOrderId(long orderId) {
22814
      this.orderId = orderId;
22815
      setOrderIdIsSet(true);
22816
    }
22817
 
22818
    public void unsetOrderId() {
22819
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
22820
    }
22821
 
22822
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
22823
    public boolean isSetOrderId() {
22824
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
22825
    }
22826
 
22827
    public void setOrderIdIsSet(boolean value) {
22828
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
22829
    }
22830
 
22831
    public void setFieldValue(_Fields field, Object value) {
22832
      switch (field) {
22833
      case ORDER_ID:
22834
        if (value == null) {
22835
          unsetOrderId();
22836
        } else {
22837
          setOrderId((Long)value);
22838
        }
22839
        break;
22840
 
22841
      }
22842
    }
22843
 
22844
    public Object getFieldValue(_Fields field) {
22845
      switch (field) {
22846
      case ORDER_ID:
22847
        return Long.valueOf(getOrderId());
22848
 
22849
      }
22850
      throw new IllegalStateException();
22851
    }
22852
 
22853
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22854
    public boolean isSet(_Fields field) {
22855
      if (field == null) {
22856
        throw new IllegalArgumentException();
22857
      }
22858
 
22859
      switch (field) {
22860
      case ORDER_ID:
22861
        return isSetOrderId();
22862
      }
22863
      throw new IllegalStateException();
22864
    }
22865
 
22866
    @Override
22867
    public boolean equals(Object that) {
22868
      if (that == null)
22869
        return false;
22870
      if (that instanceof getOrderConfirmationMail_args)
22871
        return this.equals((getOrderConfirmationMail_args)that);
22872
      return false;
22873
    }
22874
 
22875
    public boolean equals(getOrderConfirmationMail_args that) {
22876
      if (that == null)
22877
        return false;
22878
 
22879
      boolean this_present_orderId = true;
22880
      boolean that_present_orderId = true;
22881
      if (this_present_orderId || that_present_orderId) {
22882
        if (!(this_present_orderId && that_present_orderId))
22883
          return false;
22884
        if (this.orderId != that.orderId)
22885
          return false;
22886
      }
22887
 
22888
      return true;
22889
    }
22890
 
22891
    @Override
22892
    public int hashCode() {
22893
      return 0;
22894
    }
22895
 
22896
    public int compareTo(getOrderConfirmationMail_args other) {
22897
      if (!getClass().equals(other.getClass())) {
22898
        return getClass().getName().compareTo(other.getClass().getName());
22899
      }
22900
 
22901
      int lastComparison = 0;
22902
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
22903
 
22904
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
22905
      if (lastComparison != 0) {
22906
        return lastComparison;
22907
      }
22908
      if (isSetOrderId()) {
22909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
22910
        if (lastComparison != 0) {
22911
          return lastComparison;
22912
        }
22913
      }
22914
      return 0;
22915
    }
22916
 
22917
    public _Fields fieldForId(int fieldId) {
22918
      return _Fields.findByThriftId(fieldId);
22919
    }
22920
 
22921
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22922
      org.apache.thrift.protocol.TField field;
22923
      iprot.readStructBegin();
22924
      while (true)
22925
      {
22926
        field = iprot.readFieldBegin();
22927
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22928
          break;
22929
        }
22930
        switch (field.id) {
22931
          case 1: // ORDER_ID
22932
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22933
              this.orderId = iprot.readI64();
22934
              setOrderIdIsSet(true);
22935
            } else { 
22936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22937
            }
22938
            break;
22939
          default:
22940
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22941
        }
22942
        iprot.readFieldEnd();
22943
      }
22944
      iprot.readStructEnd();
22945
      validate();
22946
    }
22947
 
22948
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22949
      validate();
22950
 
22951
      oprot.writeStructBegin(STRUCT_DESC);
22952
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
22953
      oprot.writeI64(this.orderId);
22954
      oprot.writeFieldEnd();
22955
      oprot.writeFieldStop();
22956
      oprot.writeStructEnd();
22957
    }
22958
 
22959
    @Override
22960
    public String toString() {
22961
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
22962
      boolean first = true;
22963
 
22964
      sb.append("orderId:");
22965
      sb.append(this.orderId);
22966
      first = false;
22967
      sb.append(")");
22968
      return sb.toString();
22969
    }
22970
 
22971
    public void validate() throws org.apache.thrift.TException {
22972
      // check for required fields
22973
    }
22974
 
22975
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22976
      try {
22977
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22978
      } catch (org.apache.thrift.TException te) {
22979
        throw new java.io.IOException(te);
22980
      }
22981
    }
22982
 
22983
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22984
      try {
22985
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22986
        __isset_bit_vector = new BitSet(1);
22987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22988
      } catch (org.apache.thrift.TException te) {
22989
        throw new java.io.IOException(te);
22990
      }
22991
    }
22992
 
22993
  }
22994
 
22995
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
22996
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
22997
 
22998
    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);
22999
 
23000
    private String success; // required
23001
 
23002
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23003
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23004
      SUCCESS((short)0, "success");
23005
 
23006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23007
 
23008
      static {
23009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23010
          byName.put(field.getFieldName(), field);
23011
        }
23012
      }
23013
 
23014
      /**
23015
       * Find the _Fields constant that matches fieldId, or null if its not found.
23016
       */
23017
      public static _Fields findByThriftId(int fieldId) {
23018
        switch(fieldId) {
23019
          case 0: // SUCCESS
23020
            return SUCCESS;
23021
          default:
23022
            return null;
23023
        }
23024
      }
23025
 
23026
      /**
23027
       * Find the _Fields constant that matches fieldId, throwing an exception
23028
       * if it is not found.
23029
       */
23030
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23031
        _Fields fields = findByThriftId(fieldId);
23032
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23033
        return fields;
23034
      }
23035
 
23036
      /**
23037
       * Find the _Fields constant that matches name, or null if its not found.
23038
       */
23039
      public static _Fields findByName(String name) {
23040
        return byName.get(name);
23041
      }
23042
 
23043
      private final short _thriftId;
23044
      private final String _fieldName;
23045
 
23046
      _Fields(short thriftId, String fieldName) {
23047
        _thriftId = thriftId;
23048
        _fieldName = fieldName;
23049
      }
23050
 
23051
      public short getThriftFieldId() {
23052
        return _thriftId;
23053
      }
23054
 
23055
      public String getFieldName() {
23056
        return _fieldName;
23057
      }
23058
    }
23059
 
23060
    // isset id assignments
23061
 
23062
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23063
    static {
23064
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23065
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23066
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23067
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23068
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
23069
    }
23070
 
23071
    public getOrderConfirmationMail_result() {
23072
    }
23073
 
23074
    public getOrderConfirmationMail_result(
23075
      String success)
23076
    {
23077
      this();
23078
      this.success = success;
23079
    }
23080
 
23081
    /**
23082
     * Performs a deep copy on <i>other</i>.
23083
     */
23084
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
23085
      if (other.isSetSuccess()) {
23086
        this.success = other.success;
23087
      }
23088
    }
23089
 
23090
    public getOrderConfirmationMail_result deepCopy() {
23091
      return new getOrderConfirmationMail_result(this);
23092
    }
23093
 
23094
    @Override
23095
    public void clear() {
23096
      this.success = null;
23097
    }
23098
 
23099
    public String getSuccess() {
23100
      return this.success;
23101
    }
23102
 
23103
    public void setSuccess(String success) {
23104
      this.success = success;
23105
    }
23106
 
23107
    public void unsetSuccess() {
23108
      this.success = null;
23109
    }
23110
 
23111
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23112
    public boolean isSetSuccess() {
23113
      return this.success != null;
23114
    }
23115
 
23116
    public void setSuccessIsSet(boolean value) {
23117
      if (!value) {
23118
        this.success = null;
23119
      }
23120
    }
23121
 
23122
    public void setFieldValue(_Fields field, Object value) {
23123
      switch (field) {
23124
      case SUCCESS:
23125
        if (value == null) {
23126
          unsetSuccess();
23127
        } else {
23128
          setSuccess((String)value);
23129
        }
23130
        break;
23131
 
23132
      }
23133
    }
23134
 
23135
    public Object getFieldValue(_Fields field) {
23136
      switch (field) {
23137
      case SUCCESS:
23138
        return getSuccess();
23139
 
23140
      }
23141
      throw new IllegalStateException();
23142
    }
23143
 
23144
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23145
    public boolean isSet(_Fields field) {
23146
      if (field == null) {
23147
        throw new IllegalArgumentException();
23148
      }
23149
 
23150
      switch (field) {
23151
      case SUCCESS:
23152
        return isSetSuccess();
23153
      }
23154
      throw new IllegalStateException();
23155
    }
23156
 
23157
    @Override
23158
    public boolean equals(Object that) {
23159
      if (that == null)
23160
        return false;
23161
      if (that instanceof getOrderConfirmationMail_result)
23162
        return this.equals((getOrderConfirmationMail_result)that);
23163
      return false;
23164
    }
23165
 
23166
    public boolean equals(getOrderConfirmationMail_result that) {
23167
      if (that == null)
23168
        return false;
23169
 
23170
      boolean this_present_success = true && this.isSetSuccess();
23171
      boolean that_present_success = true && that.isSetSuccess();
23172
      if (this_present_success || that_present_success) {
23173
        if (!(this_present_success && that_present_success))
23174
          return false;
23175
        if (!this.success.equals(that.success))
23176
          return false;
23177
      }
23178
 
23179
      return true;
23180
    }
23181
 
23182
    @Override
23183
    public int hashCode() {
23184
      return 0;
23185
    }
23186
 
23187
    public int compareTo(getOrderConfirmationMail_result other) {
23188
      if (!getClass().equals(other.getClass())) {
23189
        return getClass().getName().compareTo(other.getClass().getName());
23190
      }
23191
 
23192
      int lastComparison = 0;
23193
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
23194
 
23195
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23196
      if (lastComparison != 0) {
23197
        return lastComparison;
23198
      }
23199
      if (isSetSuccess()) {
23200
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23201
        if (lastComparison != 0) {
23202
          return lastComparison;
23203
        }
23204
      }
23205
      return 0;
23206
    }
23207
 
23208
    public _Fields fieldForId(int fieldId) {
23209
      return _Fields.findByThriftId(fieldId);
23210
    }
23211
 
23212
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23213
      org.apache.thrift.protocol.TField field;
23214
      iprot.readStructBegin();
23215
      while (true)
23216
      {
23217
        field = iprot.readFieldBegin();
23218
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23219
          break;
23220
        }
23221
        switch (field.id) {
23222
          case 0: // SUCCESS
23223
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23224
              this.success = iprot.readString();
23225
            } else { 
23226
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23227
            }
23228
            break;
23229
          default:
23230
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23231
        }
23232
        iprot.readFieldEnd();
23233
      }
23234
      iprot.readStructEnd();
23235
      validate();
23236
    }
23237
 
23238
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23239
      oprot.writeStructBegin(STRUCT_DESC);
23240
 
23241
      if (this.isSetSuccess()) {
23242
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23243
        oprot.writeString(this.success);
23244
        oprot.writeFieldEnd();
23245
      }
23246
      oprot.writeFieldStop();
23247
      oprot.writeStructEnd();
23248
    }
23249
 
23250
    @Override
23251
    public String toString() {
23252
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
23253
      boolean first = true;
23254
 
23255
      sb.append("success:");
23256
      if (this.success == null) {
23257
        sb.append("null");
23258
      } else {
23259
        sb.append(this.success);
23260
      }
23261
      first = false;
23262
      sb.append(")");
23263
      return sb.toString();
23264
    }
23265
 
23266
    public void validate() throws org.apache.thrift.TException {
23267
      // check for required fields
23268
    }
23269
 
23270
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23271
      try {
23272
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23273
      } catch (org.apache.thrift.TException te) {
23274
        throw new java.io.IOException(te);
23275
      }
23276
    }
23277
 
23278
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23279
      try {
23280
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23281
      } catch (org.apache.thrift.TException te) {
23282
        throw new java.io.IOException(te);
23283
      }
23284
    }
23285
 
23286
  }
23287
 
7221 kshitij.so 23288
  public static class getOrderDeliveryMail_args implements org.apache.thrift.TBase<getOrderDeliveryMail_args, getOrderDeliveryMail_args._Fields>, java.io.Serializable, Cloneable   {
23289
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_args");
23290
 
23291
    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);
23292
 
23293
    private long orderId; // required
23294
 
23295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23297
      ORDER_ID((short)1, "orderId");
23298
 
23299
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23300
 
23301
      static {
23302
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23303
          byName.put(field.getFieldName(), field);
23304
        }
23305
      }
23306
 
23307
      /**
23308
       * Find the _Fields constant that matches fieldId, or null if its not found.
23309
       */
23310
      public static _Fields findByThriftId(int fieldId) {
23311
        switch(fieldId) {
23312
          case 1: // ORDER_ID
23313
            return ORDER_ID;
23314
          default:
23315
            return null;
23316
        }
23317
      }
23318
 
23319
      /**
23320
       * Find the _Fields constant that matches fieldId, throwing an exception
23321
       * if it is not found.
23322
       */
23323
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23324
        _Fields fields = findByThriftId(fieldId);
23325
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23326
        return fields;
23327
      }
23328
 
23329
      /**
23330
       * Find the _Fields constant that matches name, or null if its not found.
23331
       */
23332
      public static _Fields findByName(String name) {
23333
        return byName.get(name);
23334
      }
23335
 
23336
      private final short _thriftId;
23337
      private final String _fieldName;
23338
 
23339
      _Fields(short thriftId, String fieldName) {
23340
        _thriftId = thriftId;
23341
        _fieldName = fieldName;
23342
      }
23343
 
23344
      public short getThriftFieldId() {
23345
        return _thriftId;
23346
      }
23347
 
23348
      public String getFieldName() {
23349
        return _fieldName;
23350
      }
23351
    }
23352
 
23353
    // isset id assignments
23354
    private static final int __ORDERID_ISSET_ID = 0;
23355
    private BitSet __isset_bit_vector = new BitSet(1);
23356
 
23357
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23358
    static {
23359
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23360
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23361
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23362
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23363
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_args.class, metaDataMap);
23364
    }
23365
 
23366
    public getOrderDeliveryMail_args() {
23367
    }
23368
 
23369
    public getOrderDeliveryMail_args(
23370
      long orderId)
23371
    {
23372
      this();
23373
      this.orderId = orderId;
23374
      setOrderIdIsSet(true);
23375
    }
23376
 
23377
    /**
23378
     * Performs a deep copy on <i>other</i>.
23379
     */
23380
    public getOrderDeliveryMail_args(getOrderDeliveryMail_args other) {
23381
      __isset_bit_vector.clear();
23382
      __isset_bit_vector.or(other.__isset_bit_vector);
23383
      this.orderId = other.orderId;
23384
    }
23385
 
23386
    public getOrderDeliveryMail_args deepCopy() {
23387
      return new getOrderDeliveryMail_args(this);
23388
    }
23389
 
23390
    @Override
23391
    public void clear() {
23392
      setOrderIdIsSet(false);
23393
      this.orderId = 0;
23394
    }
23395
 
23396
    public long getOrderId() {
23397
      return this.orderId;
23398
    }
23399
 
23400
    public void setOrderId(long orderId) {
23401
      this.orderId = orderId;
23402
      setOrderIdIsSet(true);
23403
    }
23404
 
23405
    public void unsetOrderId() {
23406
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
23407
    }
23408
 
23409
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
23410
    public boolean isSetOrderId() {
23411
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
23412
    }
23413
 
23414
    public void setOrderIdIsSet(boolean value) {
23415
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
23416
    }
23417
 
23418
    public void setFieldValue(_Fields field, Object value) {
23419
      switch (field) {
23420
      case ORDER_ID:
23421
        if (value == null) {
23422
          unsetOrderId();
23423
        } else {
23424
          setOrderId((Long)value);
23425
        }
23426
        break;
23427
 
23428
      }
23429
    }
23430
 
23431
    public Object getFieldValue(_Fields field) {
23432
      switch (field) {
23433
      case ORDER_ID:
23434
        return Long.valueOf(getOrderId());
23435
 
23436
      }
23437
      throw new IllegalStateException();
23438
    }
23439
 
23440
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23441
    public boolean isSet(_Fields field) {
23442
      if (field == null) {
23443
        throw new IllegalArgumentException();
23444
      }
23445
 
23446
      switch (field) {
23447
      case ORDER_ID:
23448
        return isSetOrderId();
23449
      }
23450
      throw new IllegalStateException();
23451
    }
23452
 
23453
    @Override
23454
    public boolean equals(Object that) {
23455
      if (that == null)
23456
        return false;
23457
      if (that instanceof getOrderDeliveryMail_args)
23458
        return this.equals((getOrderDeliveryMail_args)that);
23459
      return false;
23460
    }
23461
 
23462
    public boolean equals(getOrderDeliveryMail_args that) {
23463
      if (that == null)
23464
        return false;
23465
 
23466
      boolean this_present_orderId = true;
23467
      boolean that_present_orderId = true;
23468
      if (this_present_orderId || that_present_orderId) {
23469
        if (!(this_present_orderId && that_present_orderId))
23470
          return false;
23471
        if (this.orderId != that.orderId)
23472
          return false;
23473
      }
23474
 
23475
      return true;
23476
    }
23477
 
23478
    @Override
23479
    public int hashCode() {
23480
      return 0;
23481
    }
23482
 
23483
    public int compareTo(getOrderDeliveryMail_args other) {
23484
      if (!getClass().equals(other.getClass())) {
23485
        return getClass().getName().compareTo(other.getClass().getName());
23486
      }
23487
 
23488
      int lastComparison = 0;
23489
      getOrderDeliveryMail_args typedOther = (getOrderDeliveryMail_args)other;
23490
 
23491
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
23492
      if (lastComparison != 0) {
23493
        return lastComparison;
23494
      }
23495
      if (isSetOrderId()) {
23496
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23497
        if (lastComparison != 0) {
23498
          return lastComparison;
23499
        }
23500
      }
23501
      return 0;
23502
    }
23503
 
23504
    public _Fields fieldForId(int fieldId) {
23505
      return _Fields.findByThriftId(fieldId);
23506
    }
23507
 
23508
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23509
      org.apache.thrift.protocol.TField field;
23510
      iprot.readStructBegin();
23511
      while (true)
23512
      {
23513
        field = iprot.readFieldBegin();
23514
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23515
          break;
23516
        }
23517
        switch (field.id) {
23518
          case 1: // ORDER_ID
23519
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23520
              this.orderId = iprot.readI64();
23521
              setOrderIdIsSet(true);
23522
            } else { 
23523
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23524
            }
23525
            break;
23526
          default:
23527
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23528
        }
23529
        iprot.readFieldEnd();
23530
      }
23531
      iprot.readStructEnd();
23532
      validate();
23533
    }
23534
 
23535
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23536
      validate();
23537
 
23538
      oprot.writeStructBegin(STRUCT_DESC);
23539
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23540
      oprot.writeI64(this.orderId);
23541
      oprot.writeFieldEnd();
23542
      oprot.writeFieldStop();
23543
      oprot.writeStructEnd();
23544
    }
23545
 
23546
    @Override
23547
    public String toString() {
23548
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_args(");
23549
      boolean first = true;
23550
 
23551
      sb.append("orderId:");
23552
      sb.append(this.orderId);
23553
      first = false;
23554
      sb.append(")");
23555
      return sb.toString();
23556
    }
23557
 
23558
    public void validate() throws org.apache.thrift.TException {
23559
      // check for required fields
23560
    }
23561
 
23562
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23563
      try {
23564
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23565
      } catch (org.apache.thrift.TException te) {
23566
        throw new java.io.IOException(te);
23567
      }
23568
    }
23569
 
23570
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23571
      try {
23572
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23573
        __isset_bit_vector = new BitSet(1);
23574
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23575
      } catch (org.apache.thrift.TException te) {
23576
        throw new java.io.IOException(te);
23577
      }
23578
    }
23579
 
23580
  }
23581
 
23582
  public static class getOrderDeliveryMail_result implements org.apache.thrift.TBase<getOrderDeliveryMail_result, getOrderDeliveryMail_result._Fields>, java.io.Serializable, Cloneable   {
23583
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_result");
23584
 
23585
    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);
23586
 
23587
    private String success; // required
23588
 
23589
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23590
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23591
      SUCCESS((short)0, "success");
23592
 
23593
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23594
 
23595
      static {
23596
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23597
          byName.put(field.getFieldName(), field);
23598
        }
23599
      }
23600
 
23601
      /**
23602
       * Find the _Fields constant that matches fieldId, or null if its not found.
23603
       */
23604
      public static _Fields findByThriftId(int fieldId) {
23605
        switch(fieldId) {
23606
          case 0: // SUCCESS
23607
            return SUCCESS;
23608
          default:
23609
            return null;
23610
        }
23611
      }
23612
 
23613
      /**
23614
       * Find the _Fields constant that matches fieldId, throwing an exception
23615
       * if it is not found.
23616
       */
23617
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23618
        _Fields fields = findByThriftId(fieldId);
23619
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23620
        return fields;
23621
      }
23622
 
23623
      /**
23624
       * Find the _Fields constant that matches name, or null if its not found.
23625
       */
23626
      public static _Fields findByName(String name) {
23627
        return byName.get(name);
23628
      }
23629
 
23630
      private final short _thriftId;
23631
      private final String _fieldName;
23632
 
23633
      _Fields(short thriftId, String fieldName) {
23634
        _thriftId = thriftId;
23635
        _fieldName = fieldName;
23636
      }
23637
 
23638
      public short getThriftFieldId() {
23639
        return _thriftId;
23640
      }
23641
 
23642
      public String getFieldName() {
23643
        return _fieldName;
23644
      }
23645
    }
23646
 
23647
    // isset id assignments
23648
 
23649
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23650
    static {
23651
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23652
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23653
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23654
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23655
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_result.class, metaDataMap);
23656
    }
23657
 
23658
    public getOrderDeliveryMail_result() {
23659
    }
23660
 
23661
    public getOrderDeliveryMail_result(
23662
      String success)
23663
    {
23664
      this();
23665
      this.success = success;
23666
    }
23667
 
23668
    /**
23669
     * Performs a deep copy on <i>other</i>.
23670
     */
23671
    public getOrderDeliveryMail_result(getOrderDeliveryMail_result other) {
23672
      if (other.isSetSuccess()) {
23673
        this.success = other.success;
23674
      }
23675
    }
23676
 
23677
    public getOrderDeliveryMail_result deepCopy() {
23678
      return new getOrderDeliveryMail_result(this);
23679
    }
23680
 
23681
    @Override
23682
    public void clear() {
23683
      this.success = null;
23684
    }
23685
 
23686
    public String getSuccess() {
23687
      return this.success;
23688
    }
23689
 
23690
    public void setSuccess(String success) {
23691
      this.success = success;
23692
    }
23693
 
23694
    public void unsetSuccess() {
23695
      this.success = null;
23696
    }
23697
 
23698
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23699
    public boolean isSetSuccess() {
23700
      return this.success != null;
23701
    }
23702
 
23703
    public void setSuccessIsSet(boolean value) {
23704
      if (!value) {
23705
        this.success = null;
23706
      }
23707
    }
23708
 
23709
    public void setFieldValue(_Fields field, Object value) {
23710
      switch (field) {
23711
      case SUCCESS:
23712
        if (value == null) {
23713
          unsetSuccess();
23714
        } else {
23715
          setSuccess((String)value);
23716
        }
23717
        break;
23718
 
23719
      }
23720
    }
23721
 
23722
    public Object getFieldValue(_Fields field) {
23723
      switch (field) {
23724
      case SUCCESS:
23725
        return getSuccess();
23726
 
23727
      }
23728
      throw new IllegalStateException();
23729
    }
23730
 
23731
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23732
    public boolean isSet(_Fields field) {
23733
      if (field == null) {
23734
        throw new IllegalArgumentException();
23735
      }
23736
 
23737
      switch (field) {
23738
      case SUCCESS:
23739
        return isSetSuccess();
23740
      }
23741
      throw new IllegalStateException();
23742
    }
23743
 
23744
    @Override
23745
    public boolean equals(Object that) {
23746
      if (that == null)
23747
        return false;
23748
      if (that instanceof getOrderDeliveryMail_result)
23749
        return this.equals((getOrderDeliveryMail_result)that);
23750
      return false;
23751
    }
23752
 
23753
    public boolean equals(getOrderDeliveryMail_result that) {
23754
      if (that == null)
23755
        return false;
23756
 
23757
      boolean this_present_success = true && this.isSetSuccess();
23758
      boolean that_present_success = true && that.isSetSuccess();
23759
      if (this_present_success || that_present_success) {
23760
        if (!(this_present_success && that_present_success))
23761
          return false;
23762
        if (!this.success.equals(that.success))
23763
          return false;
23764
      }
23765
 
23766
      return true;
23767
    }
23768
 
23769
    @Override
23770
    public int hashCode() {
23771
      return 0;
23772
    }
23773
 
23774
    public int compareTo(getOrderDeliveryMail_result other) {
23775
      if (!getClass().equals(other.getClass())) {
23776
        return getClass().getName().compareTo(other.getClass().getName());
23777
      }
23778
 
23779
      int lastComparison = 0;
23780
      getOrderDeliveryMail_result typedOther = (getOrderDeliveryMail_result)other;
23781
 
23782
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23783
      if (lastComparison != 0) {
23784
        return lastComparison;
23785
      }
23786
      if (isSetSuccess()) {
23787
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23788
        if (lastComparison != 0) {
23789
          return lastComparison;
23790
        }
23791
      }
23792
      return 0;
23793
    }
23794
 
23795
    public _Fields fieldForId(int fieldId) {
23796
      return _Fields.findByThriftId(fieldId);
23797
    }
23798
 
23799
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23800
      org.apache.thrift.protocol.TField field;
23801
      iprot.readStructBegin();
23802
      while (true)
23803
      {
23804
        field = iprot.readFieldBegin();
23805
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23806
          break;
23807
        }
23808
        switch (field.id) {
23809
          case 0: // SUCCESS
23810
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
23811
              this.success = iprot.readString();
23812
            } else { 
23813
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23814
            }
23815
            break;
23816
          default:
23817
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23818
        }
23819
        iprot.readFieldEnd();
23820
      }
23821
      iprot.readStructEnd();
23822
      validate();
23823
    }
23824
 
23825
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23826
      oprot.writeStructBegin(STRUCT_DESC);
23827
 
23828
      if (this.isSetSuccess()) {
23829
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23830
        oprot.writeString(this.success);
23831
        oprot.writeFieldEnd();
23832
      }
23833
      oprot.writeFieldStop();
23834
      oprot.writeStructEnd();
23835
    }
23836
 
23837
    @Override
23838
    public String toString() {
23839
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_result(");
23840
      boolean first = true;
23841
 
23842
      sb.append("success:");
23843
      if (this.success == null) {
23844
        sb.append("null");
23845
      } else {
23846
        sb.append(this.success);
23847
      }
23848
      first = false;
23849
      sb.append(")");
23850
      return sb.toString();
23851
    }
23852
 
23853
    public void validate() throws org.apache.thrift.TException {
23854
      // check for required fields
23855
    }
23856
 
23857
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23858
      try {
23859
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23860
      } catch (org.apache.thrift.TException te) {
23861
        throw new java.io.IOException(te);
23862
      }
23863
    }
23864
 
23865
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23866
      try {
23867
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23868
      } catch (org.apache.thrift.TException te) {
23869
        throw new java.io.IOException(te);
23870
      }
23871
    }
23872
 
23873
  }
23874
 
7410 amar.kumar 23875
  public static class getWarehouseIdsForAgent_args implements org.apache.thrift.TBase<getWarehouseIdsForAgent_args, getWarehouseIdsForAgent_args._Fields>, java.io.Serializable, Cloneable   {
23876
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_args");
23877
 
23878
    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);
23879
 
23880
    private String agentEmailId; // required
23881
 
23882
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23883
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23884
      AGENT_EMAIL_ID((short)1, "agentEmailId");
23885
 
23886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23887
 
23888
      static {
23889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23890
          byName.put(field.getFieldName(), field);
23891
        }
23892
      }
23893
 
23894
      /**
23895
       * Find the _Fields constant that matches fieldId, or null if its not found.
23896
       */
23897
      public static _Fields findByThriftId(int fieldId) {
23898
        switch(fieldId) {
23899
          case 1: // AGENT_EMAIL_ID
23900
            return AGENT_EMAIL_ID;
23901
          default:
23902
            return null;
23903
        }
23904
      }
23905
 
23906
      /**
23907
       * Find the _Fields constant that matches fieldId, throwing an exception
23908
       * if it is not found.
23909
       */
23910
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23911
        _Fields fields = findByThriftId(fieldId);
23912
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23913
        return fields;
23914
      }
23915
 
23916
      /**
23917
       * Find the _Fields constant that matches name, or null if its not found.
23918
       */
23919
      public static _Fields findByName(String name) {
23920
        return byName.get(name);
23921
      }
23922
 
23923
      private final short _thriftId;
23924
      private final String _fieldName;
23925
 
23926
      _Fields(short thriftId, String fieldName) {
23927
        _thriftId = thriftId;
23928
        _fieldName = fieldName;
23929
      }
23930
 
23931
      public short getThriftFieldId() {
23932
        return _thriftId;
23933
      }
23934
 
23935
      public String getFieldName() {
23936
        return _fieldName;
23937
      }
23938
    }
23939
 
23940
    // isset id assignments
23941
 
23942
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23943
    static {
23944
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23945
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
23947
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23948
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_args.class, metaDataMap);
23949
    }
23950
 
23951
    public getWarehouseIdsForAgent_args() {
23952
    }
23953
 
23954
    public getWarehouseIdsForAgent_args(
23955
      String agentEmailId)
23956
    {
23957
      this();
23958
      this.agentEmailId = agentEmailId;
23959
    }
23960
 
23961
    /**
23962
     * Performs a deep copy on <i>other</i>.
23963
     */
23964
    public getWarehouseIdsForAgent_args(getWarehouseIdsForAgent_args other) {
23965
      if (other.isSetAgentEmailId()) {
23966
        this.agentEmailId = other.agentEmailId;
23967
      }
23968
    }
23969
 
23970
    public getWarehouseIdsForAgent_args deepCopy() {
23971
      return new getWarehouseIdsForAgent_args(this);
23972
    }
23973
 
23974
    @Override
23975
    public void clear() {
23976
      this.agentEmailId = null;
23977
    }
23978
 
23979
    public String getAgentEmailId() {
23980
      return this.agentEmailId;
23981
    }
23982
 
23983
    public void setAgentEmailId(String agentEmailId) {
23984
      this.agentEmailId = agentEmailId;
23985
    }
23986
 
23987
    public void unsetAgentEmailId() {
23988
      this.agentEmailId = null;
23989
    }
23990
 
23991
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
23992
    public boolean isSetAgentEmailId() {
23993
      return this.agentEmailId != null;
23994
    }
23995
 
23996
    public void setAgentEmailIdIsSet(boolean value) {
23997
      if (!value) {
23998
        this.agentEmailId = null;
23999
      }
24000
    }
24001
 
24002
    public void setFieldValue(_Fields field, Object value) {
24003
      switch (field) {
24004
      case AGENT_EMAIL_ID:
24005
        if (value == null) {
24006
          unsetAgentEmailId();
24007
        } else {
24008
          setAgentEmailId((String)value);
24009
        }
24010
        break;
24011
 
24012
      }
24013
    }
24014
 
24015
    public Object getFieldValue(_Fields field) {
24016
      switch (field) {
24017
      case AGENT_EMAIL_ID:
24018
        return getAgentEmailId();
24019
 
24020
      }
24021
      throw new IllegalStateException();
24022
    }
24023
 
24024
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24025
    public boolean isSet(_Fields field) {
24026
      if (field == null) {
24027
        throw new IllegalArgumentException();
24028
      }
24029
 
24030
      switch (field) {
24031
      case AGENT_EMAIL_ID:
24032
        return isSetAgentEmailId();
24033
      }
24034
      throw new IllegalStateException();
24035
    }
24036
 
24037
    @Override
24038
    public boolean equals(Object that) {
24039
      if (that == null)
24040
        return false;
24041
      if (that instanceof getWarehouseIdsForAgent_args)
24042
        return this.equals((getWarehouseIdsForAgent_args)that);
24043
      return false;
24044
    }
24045
 
24046
    public boolean equals(getWarehouseIdsForAgent_args that) {
24047
      if (that == null)
24048
        return false;
24049
 
24050
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
24051
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
24052
      if (this_present_agentEmailId || that_present_agentEmailId) {
24053
        if (!(this_present_agentEmailId && that_present_agentEmailId))
24054
          return false;
24055
        if (!this.agentEmailId.equals(that.agentEmailId))
24056
          return false;
24057
      }
24058
 
24059
      return true;
24060
    }
24061
 
24062
    @Override
24063
    public int hashCode() {
24064
      return 0;
24065
    }
24066
 
24067
    public int compareTo(getWarehouseIdsForAgent_args other) {
24068
      if (!getClass().equals(other.getClass())) {
24069
        return getClass().getName().compareTo(other.getClass().getName());
24070
      }
24071
 
24072
      int lastComparison = 0;
24073
      getWarehouseIdsForAgent_args typedOther = (getWarehouseIdsForAgent_args)other;
24074
 
24075
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
24076
      if (lastComparison != 0) {
24077
        return lastComparison;
24078
      }
24079
      if (isSetAgentEmailId()) {
24080
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
24081
        if (lastComparison != 0) {
24082
          return lastComparison;
24083
        }
24084
      }
24085
      return 0;
24086
    }
24087
 
24088
    public _Fields fieldForId(int fieldId) {
24089
      return _Fields.findByThriftId(fieldId);
24090
    }
24091
 
24092
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24093
      org.apache.thrift.protocol.TField field;
24094
      iprot.readStructBegin();
24095
      while (true)
24096
      {
24097
        field = iprot.readFieldBegin();
24098
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24099
          break;
24100
        }
24101
        switch (field.id) {
24102
          case 1: // AGENT_EMAIL_ID
24103
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24104
              this.agentEmailId = iprot.readString();
24105
            } else { 
24106
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24107
            }
24108
            break;
24109
          default:
24110
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24111
        }
24112
        iprot.readFieldEnd();
24113
      }
24114
      iprot.readStructEnd();
24115
      validate();
24116
    }
24117
 
24118
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24119
      validate();
24120
 
24121
      oprot.writeStructBegin(STRUCT_DESC);
24122
      if (this.agentEmailId != null) {
24123
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
24124
        oprot.writeString(this.agentEmailId);
24125
        oprot.writeFieldEnd();
24126
      }
24127
      oprot.writeFieldStop();
24128
      oprot.writeStructEnd();
24129
    }
24130
 
24131
    @Override
24132
    public String toString() {
24133
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_args(");
24134
      boolean first = true;
24135
 
24136
      sb.append("agentEmailId:");
24137
      if (this.agentEmailId == null) {
24138
        sb.append("null");
24139
      } else {
24140
        sb.append(this.agentEmailId);
24141
      }
24142
      first = false;
24143
      sb.append(")");
24144
      return sb.toString();
24145
    }
24146
 
24147
    public void validate() throws org.apache.thrift.TException {
24148
      // check for required fields
24149
    }
24150
 
24151
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24152
      try {
24153
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24154
      } catch (org.apache.thrift.TException te) {
24155
        throw new java.io.IOException(te);
24156
      }
24157
    }
24158
 
24159
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24160
      try {
24161
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24162
      } catch (org.apache.thrift.TException te) {
24163
        throw new java.io.IOException(te);
24164
      }
24165
    }
24166
 
24167
  }
24168
 
24169
  public static class getWarehouseIdsForAgent_result implements org.apache.thrift.TBase<getWarehouseIdsForAgent_result, getWarehouseIdsForAgent_result._Fields>, java.io.Serializable, Cloneable   {
24170
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_result");
24171
 
24172
    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);
24173
 
24174
    private List<Long> success; // required
24175
 
24176
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24177
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24178
      SUCCESS((short)0, "success");
24179
 
24180
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24181
 
24182
      static {
24183
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24184
          byName.put(field.getFieldName(), field);
24185
        }
24186
      }
24187
 
24188
      /**
24189
       * Find the _Fields constant that matches fieldId, or null if its not found.
24190
       */
24191
      public static _Fields findByThriftId(int fieldId) {
24192
        switch(fieldId) {
24193
          case 0: // SUCCESS
24194
            return SUCCESS;
24195
          default:
24196
            return null;
24197
        }
24198
      }
24199
 
24200
      /**
24201
       * Find the _Fields constant that matches fieldId, throwing an exception
24202
       * if it is not found.
24203
       */
24204
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24205
        _Fields fields = findByThriftId(fieldId);
24206
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24207
        return fields;
24208
      }
24209
 
24210
      /**
24211
       * Find the _Fields constant that matches name, or null if its not found.
24212
       */
24213
      public static _Fields findByName(String name) {
24214
        return byName.get(name);
24215
      }
24216
 
24217
      private final short _thriftId;
24218
      private final String _fieldName;
24219
 
24220
      _Fields(short thriftId, String fieldName) {
24221
        _thriftId = thriftId;
24222
        _fieldName = fieldName;
24223
      }
24224
 
24225
      public short getThriftFieldId() {
24226
        return _thriftId;
24227
      }
24228
 
24229
      public String getFieldName() {
24230
        return _fieldName;
24231
      }
24232
    }
24233
 
24234
    // isset id assignments
24235
 
24236
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24237
    static {
24238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24239
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24240
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
24241
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
24242
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24243
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_result.class, metaDataMap);
24244
    }
24245
 
24246
    public getWarehouseIdsForAgent_result() {
24247
    }
24248
 
24249
    public getWarehouseIdsForAgent_result(
24250
      List<Long> success)
24251
    {
24252
      this();
24253
      this.success = success;
24254
    }
24255
 
24256
    /**
24257
     * Performs a deep copy on <i>other</i>.
24258
     */
24259
    public getWarehouseIdsForAgent_result(getWarehouseIdsForAgent_result other) {
24260
      if (other.isSetSuccess()) {
24261
        List<Long> __this__success = new ArrayList<Long>();
24262
        for (Long other_element : other.success) {
24263
          __this__success.add(other_element);
24264
        }
24265
        this.success = __this__success;
24266
      }
24267
    }
24268
 
24269
    public getWarehouseIdsForAgent_result deepCopy() {
24270
      return new getWarehouseIdsForAgent_result(this);
24271
    }
24272
 
24273
    @Override
24274
    public void clear() {
24275
      this.success = null;
24276
    }
24277
 
24278
    public int getSuccessSize() {
24279
      return (this.success == null) ? 0 : this.success.size();
24280
    }
24281
 
24282
    public java.util.Iterator<Long> getSuccessIterator() {
24283
      return (this.success == null) ? null : this.success.iterator();
24284
    }
24285
 
24286
    public void addToSuccess(long elem) {
24287
      if (this.success == null) {
24288
        this.success = new ArrayList<Long>();
24289
      }
24290
      this.success.add(elem);
24291
    }
24292
 
24293
    public List<Long> getSuccess() {
24294
      return this.success;
24295
    }
24296
 
24297
    public void setSuccess(List<Long> success) {
24298
      this.success = success;
24299
    }
24300
 
24301
    public void unsetSuccess() {
24302
      this.success = null;
24303
    }
24304
 
24305
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24306
    public boolean isSetSuccess() {
24307
      return this.success != null;
24308
    }
24309
 
24310
    public void setSuccessIsSet(boolean value) {
24311
      if (!value) {
24312
        this.success = null;
24313
      }
24314
    }
24315
 
24316
    public void setFieldValue(_Fields field, Object value) {
24317
      switch (field) {
24318
      case SUCCESS:
24319
        if (value == null) {
24320
          unsetSuccess();
24321
        } else {
24322
          setSuccess((List<Long>)value);
24323
        }
24324
        break;
24325
 
24326
      }
24327
    }
24328
 
24329
    public Object getFieldValue(_Fields field) {
24330
      switch (field) {
24331
      case SUCCESS:
24332
        return getSuccess();
24333
 
24334
      }
24335
      throw new IllegalStateException();
24336
    }
24337
 
24338
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24339
    public boolean isSet(_Fields field) {
24340
      if (field == null) {
24341
        throw new IllegalArgumentException();
24342
      }
24343
 
24344
      switch (field) {
24345
      case SUCCESS:
24346
        return isSetSuccess();
24347
      }
24348
      throw new IllegalStateException();
24349
    }
24350
 
24351
    @Override
24352
    public boolean equals(Object that) {
24353
      if (that == null)
24354
        return false;
24355
      if (that instanceof getWarehouseIdsForAgent_result)
24356
        return this.equals((getWarehouseIdsForAgent_result)that);
24357
      return false;
24358
    }
24359
 
24360
    public boolean equals(getWarehouseIdsForAgent_result that) {
24361
      if (that == null)
24362
        return false;
24363
 
24364
      boolean this_present_success = true && this.isSetSuccess();
24365
      boolean that_present_success = true && that.isSetSuccess();
24366
      if (this_present_success || that_present_success) {
24367
        if (!(this_present_success && that_present_success))
24368
          return false;
24369
        if (!this.success.equals(that.success))
24370
          return false;
24371
      }
24372
 
24373
      return true;
24374
    }
24375
 
24376
    @Override
24377
    public int hashCode() {
24378
      return 0;
24379
    }
24380
 
24381
    public int compareTo(getWarehouseIdsForAgent_result other) {
24382
      if (!getClass().equals(other.getClass())) {
24383
        return getClass().getName().compareTo(other.getClass().getName());
24384
      }
24385
 
24386
      int lastComparison = 0;
24387
      getWarehouseIdsForAgent_result typedOther = (getWarehouseIdsForAgent_result)other;
24388
 
24389
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24390
      if (lastComparison != 0) {
24391
        return lastComparison;
24392
      }
24393
      if (isSetSuccess()) {
24394
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24395
        if (lastComparison != 0) {
24396
          return lastComparison;
24397
        }
24398
      }
24399
      return 0;
24400
    }
24401
 
24402
    public _Fields fieldForId(int fieldId) {
24403
      return _Fields.findByThriftId(fieldId);
24404
    }
24405
 
24406
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24407
      org.apache.thrift.protocol.TField field;
24408
      iprot.readStructBegin();
24409
      while (true)
24410
      {
24411
        field = iprot.readFieldBegin();
24412
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24413
          break;
24414
        }
24415
        switch (field.id) {
24416
          case 0: // SUCCESS
24417
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
24418
              {
24419
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
24420
                this.success = new ArrayList<Long>(_list69.size);
24421
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
24422
                {
24423
                  long _elem71; // required
24424
                  _elem71 = iprot.readI64();
24425
                  this.success.add(_elem71);
24426
                }
24427
                iprot.readListEnd();
24428
              }
24429
            } else { 
24430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24431
            }
24432
            break;
24433
          default:
24434
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24435
        }
24436
        iprot.readFieldEnd();
24437
      }
24438
      iprot.readStructEnd();
24439
      validate();
24440
    }
24441
 
24442
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24443
      oprot.writeStructBegin(STRUCT_DESC);
24444
 
24445
      if (this.isSetSuccess()) {
24446
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24447
        {
24448
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
24449
          for (long _iter72 : this.success)
24450
          {
24451
            oprot.writeI64(_iter72);
24452
          }
24453
          oprot.writeListEnd();
24454
        }
24455
        oprot.writeFieldEnd();
24456
      }
24457
      oprot.writeFieldStop();
24458
      oprot.writeStructEnd();
24459
    }
24460
 
24461
    @Override
24462
    public String toString() {
24463
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_result(");
24464
      boolean first = true;
24465
 
24466
      sb.append("success:");
24467
      if (this.success == null) {
24468
        sb.append("null");
24469
      } else {
24470
        sb.append(this.success);
24471
      }
24472
      first = false;
24473
      sb.append(")");
24474
      return sb.toString();
24475
    }
24476
 
24477
    public void validate() throws org.apache.thrift.TException {
24478
      // check for required fields
24479
    }
24480
 
24481
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24482
      try {
24483
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24484
      } catch (org.apache.thrift.TException te) {
24485
        throw new java.io.IOException(te);
24486
      }
24487
    }
24488
 
24489
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24490
      try {
24491
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24492
      } catch (org.apache.thrift.TException te) {
24493
        throw new java.io.IOException(te);
24494
      }
24495
    }
24496
 
24497
  }
24498
 
352 ashish 24499
}