Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
352 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
352 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.utils;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
352 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class HelperService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
352 ashish 26
 
764 rajveer 27
    /**
3206 mandeep.dh 28
     * Save email details, to be sent later; Also returns its identifier.
2779 chandransh 29
     * 
30
     * @param emailTo
31
     * @param emailFrom
32
     * @param subject
33
     * @param body
34
     * @param source
35
     * @param emailType
5864 rajveer 36
     * @param cc
37
     * @param bcc
8020 rajveer 38
     * @param sourceId
2779 chandransh 39
     */
8020 rajveer 40
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException;
1395 varun.gupt 41
 
2779 chandransh 42
    /**
43
     * Retreives all the emails pending for dispatch
44
     */
3430 rajveer 45
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 46
 
2779 chandransh 47
    /**
48
     * Marks email as sent after successful dispatch
49
     * 
50
     * @param emailId
51
     */
3430 rajveer 52
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
1422 varun.gupt 53
 
3430 rajveer 54
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 55
 
3430 rajveer 56
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 57
 
3430 rajveer 58
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 59
 
3430 rajveer 60
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 61
 
3430 rajveer 62
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 63
 
3430 rajveer 64
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
352 ashish 65
 
3430 rajveer 66
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 67
 
3430 rajveer 68
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 69
 
750 chandransh 70
    /**
2443 chandransh 71
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
72
     * The loggedOn timestamp for the dashboard user is updated .
750 chandransh 73
     * 
74
     * @param username
75
     * @param password
76
     */
3430 rajveer 77
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 78
 
2443 chandransh 79
    /**
80
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
81
     * 
82
     * @param username
83
     * @param oldPassword
84
     * @param newPassword
85
     */
3430 rajveer 86
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
495 rajveer 87
 
750 chandransh 88
    /**
89
     * Returns the LogisticsUser struct associated with the given username and password if they match.
90
     * Throws an exception otherwise.
91
     * 
92
     * @param username
93
     * @param password
94
     */
3430 rajveer 95
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
750 chandransh 96
 
1611 ankur.sing 97
    /**
98
     * Returns the StatisticsUser struct associated with the given username and password if they match.
99
     * Throws an exception otherwise.
100
     * 
101
     * @param username
102
     * @param password
103
     */
3430 rajveer 104
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1611 ankur.sing 105
 
1891 ankur.sing 106
    /**
107
     * Returns the ReportUser struct associated with the given username and password if they match.
108
     * Throws an exception otherwise.
109
     * 
110
     * @param username
111
     * @param password
112
     */
3430 rajveer 113
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
1891 ankur.sing 114
 
115
    /**
116
     * Returns list of reports which are configured for the given role.
117
     * 
118
     * @param role
119
     */
3430 rajveer 120
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
1891 ankur.sing 121
 
2024 ankur.sing 122
    /**
2357 ankur.sing 123
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
2024 ankur.sing 124
     * Throws an exception otherwise.
125
     * 
126
     * @param username
127
     * @param password
128
     */
6788 rajveer 129
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
2024 ankur.sing 130
 
4544 varun.gupt 131
    /**
132
     * Saves the list of entity Ids to be shared with an email address
133
     * 
134
     * @param entityIds
135
     * @param email
136
     */
137
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException;
138
 
4693 mandeep.dh 139
    public List<Agent> getAgents() throws org.apache.thrift.TException;
140
 
141
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException;
142
 
143
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
144
 
145
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
146
 
147
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
148
 
4806 varun.gupt 149
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException;
150
 
151
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException;
152
 
4996 varun.gupt 153
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException;
154
 
5055 varun.gupt 155
    /**
156
     * Returns a list of emails to which product notifications have been sent in a given date range
157
     * 
158
     * @param startDatetime
159
     * @param endDatetime
160
     */
161
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException;
162
 
6322 amar.kumar 163
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException;
164
 
7221 kshitij.so 165
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException;
166
 
7410 amar.kumar 167
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException;
168
 
12691 manish.sha 169
    public long saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws HelperServiceException, org.apache.thrift.TException;
170
 
171
    public List<UserSms> getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
172
 
173
    public void addUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException;
174
 
175
    public boolean updateUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException;
176
 
177
    public UserSmsInfo getUserSmsInfo(long userId) throws HelperServiceException, org.apache.thrift.TException;
178
 
179
    public List<UserSmsInfo> getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws HelperServiceException, org.apache.thrift.TException;
180
 
181
    public List<UserSms> listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException;
182
 
183
    public boolean markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException;
184
 
185
    public boolean markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException;
186
 
187
    public boolean markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException;
188
 
189
    public boolean markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException;
190
 
12696 amit.gupta 191
    public DealerAuth authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException;
192
 
352 ashish 193
  }
194
 
3430 rajveer 195
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
196
 
8020 rajveer 197
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 198
 
199
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
200
 
201
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
202
 
203
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
204
 
205
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
206
 
207
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
208
 
209
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
210
 
211
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
212
 
213
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
214
 
215
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
216
 
217
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
218
 
219
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
220
 
221
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
222
 
223
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
224
 
225
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
226
 
227
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
228
 
229
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
230
 
6788 rajveer 231
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 232
 
4544 varun.gupt 233
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
234
 
4693 mandeep.dh 235
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
236
 
237
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
238
 
239
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
240
 
241
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
242
 
243
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
244
 
4806 varun.gupt 245
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
246
 
247
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
248
 
4996 varun.gupt 249
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
250
 
5055 varun.gupt 251
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
252
 
6322 amar.kumar 253
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
254
 
7221 kshitij.so 255
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;
256
 
7410 amar.kumar 257
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException;
258
 
12691 manish.sha 259
    public void saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserSmsForSending_call> resultHandler) throws org.apache.thrift.TException;
260
 
261
    public void getSmsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSmsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
262
 
263
    public void addUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
264
 
265
    public void updateUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
266
 
267
    public void getUserSmsInfo(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
268
 
269
    public void getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsersSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
270
 
271
    public void listSmsToGetDeliveryInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.listSmsToGetDeliveryInfo_call> resultHandler) throws org.apache.thrift.TException;
272
 
273
    public void markMessagesAsSentToOperator(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSentToOperator_call> resultHandler) throws org.apache.thrift.TException;
274
 
275
    public void markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSubmittedToSmsc_call> resultHandler) throws org.apache.thrift.TException;
276
 
277
    public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException;
278
 
279
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException;
280
 
12696 amit.gupta 281
    public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authoriseDealer_call> resultHandler) throws org.apache.thrift.TException;
282
 
3430 rajveer 283
  }
284
 
3374 rajveer 285
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 286
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
287
      public Factory() {}
288
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
289
        return new Client(prot);
290
      }
291
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
292
        return new Client(iprot, oprot);
293
      }
294
    }
295
 
296
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 297
    {
3430 rajveer 298
      super(prot, prot);
352 ashish 299
    }
300
 
3430 rajveer 301
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 302
      super(iprot, oprot);
352 ashish 303
    }
304
 
8020 rajveer 305
    public long saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 306
    {
8020 rajveer 307
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId);
3206 mandeep.dh 308
      return recv_saveUserEmailForSending();
1395 varun.gupt 309
    }
310
 
8020 rajveer 311
    public void send_saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId) throws org.apache.thrift.TException
1395 varun.gupt 312
    {
313
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 314
      args.setEmailTo(emailTo);
315
      args.setEmailFrom(emailFrom);
316
      args.setSubject(subject);
317
      args.setBody(body);
318
      args.setSource(source);
319
      args.setEmailType(emailType);
5864 rajveer 320
      args.setCc(cc);
321
      args.setBcc(bcc);
8020 rajveer 322
      args.setSourceId(sourceId);
3430 rajveer 323
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 324
    }
325
 
3430 rajveer 326
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 327
    {
328
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 329
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 330
      if (result.isSetSuccess()) {
331
        return result.success;
332
      }
1395 varun.gupt 333
      if (result.se != null) {
334
        throw result.se;
335
      }
3430 rajveer 336
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 337
    }
338
 
3430 rajveer 339
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 340
    {
3086 rajveer 341
      send_getEmailsToBeSent();
1422 varun.gupt 342
      return recv_getEmailsToBeSent();
343
    }
344
 
3430 rajveer 345
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 346
    {
347
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 348
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 349
    }
350
 
3430 rajveer 351
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 352
    {
353
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 354
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 355
      if (result.isSetSuccess()) {
356
        return result.success;
357
      }
358
      if (result.se != null) {
359
        throw result.se;
360
      }
3430 rajveer 361
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 362
    }
363
 
3430 rajveer 364
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 365
    {
366
      send_markEmailAsSent(emailId);
367
      recv_markEmailAsSent();
368
    }
369
 
3430 rajveer 370
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 371
    {
372
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 373
      args.setEmailId(emailId);
374
      sendBase("markEmailAsSent", args);
1422 varun.gupt 375
    }
376
 
3430 rajveer 377
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 378
    {
379
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 380
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 381
      if (result.se != null) {
382
        throw result.se;
383
      }
384
      return;
385
    }
386
 
3430 rajveer 387
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 388
    {
389
      send_sendMail(mail);
390
      recv_sendMail();
391
    }
392
 
3430 rajveer 393
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 394
    {
395
      sendMail_args args = new sendMail_args();
3430 rajveer 396
      args.setMail(mail);
397
      sendBase("sendMail", args);
352 ashish 398
    }
399
 
3430 rajveer 400
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 401
    {
402
      sendMail_result result = new sendMail_result();
3430 rajveer 403
      receiveBase(result, "sendMail");
352 ashish 404
      if (result.se != null) {
405
        throw result.se;
406
      }
407
      return;
408
    }
409
 
3430 rajveer 410
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 411
    {
412
      send_sendText(message);
413
      recv_sendText();
414
    }
415
 
3430 rajveer 416
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 417
    {
418
      sendText_args args = new sendText_args();
3430 rajveer 419
      args.setMessage(message);
420
      sendBase("sendText", args);
352 ashish 421
    }
422
 
3430 rajveer 423
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 424
    {
425
      sendText_result result = new sendText_result();
3430 rajveer 426
      receiveBase(result, "sendText");
352 ashish 427
      if (result.se != null) {
428
        throw result.se;
429
      }
430
      return;
431
    }
432
 
3430 rajveer 433
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 434
    {
435
      send_addMessage(message);
436
      recv_addMessage();
437
    }
438
 
3430 rajveer 439
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 440
    {
441
      addMessage_args args = new addMessage_args();
3430 rajveer 442
      args.setMessage(message);
443
      sendBase("addMessage", args);
352 ashish 444
    }
445
 
3430 rajveer 446
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 447
    {
448
      addMessage_result result = new addMessage_result();
3430 rajveer 449
      receiveBase(result, "addMessage");
352 ashish 450
      if (result.se != null) {
451
        throw result.se;
452
      }
453
      return;
454
    }
455
 
3430 rajveer 456
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 457
    {
458
      send_updateMessage(id, message);
459
      recv_updateMessage();
460
    }
461
 
3430 rajveer 462
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 463
    {
464
      updateMessage_args args = new updateMessage_args();
3430 rajveer 465
      args.setId(id);
466
      args.setMessage(message);
467
      sendBase("updateMessage", args);
352 ashish 468
    }
469
 
3430 rajveer 470
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 471
    {
472
      updateMessage_result result = new updateMessage_result();
3430 rajveer 473
      receiveBase(result, "updateMessage");
352 ashish 474
      if (result.se != null) {
475
        throw result.se;
476
      }
477
      return;
478
    }
479
 
3430 rajveer 480
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 481
    {
482
      send_getMessage(id);
483
      return recv_getMessage();
484
    }
485
 
3430 rajveer 486
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 487
    {
488
      getMessage_args args = new getMessage_args();
3430 rajveer 489
      args.setId(id);
490
      sendBase("getMessage", args);
352 ashish 491
    }
492
 
3430 rajveer 493
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 494
    {
495
      getMessage_result result = new getMessage_result();
3430 rajveer 496
      receiveBase(result, "getMessage");
352 ashish 497
      if (result.isSetSuccess()) {
498
        return result.success;
499
      }
500
      if (result.se != null) {
501
        throw result.se;
502
      }
3430 rajveer 503
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 504
    }
505
 
3430 rajveer 506
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 507
    {
508
      send_getSubstitutedMessage(id, params);
509
      return recv_getSubstitutedMessage();
510
    }
511
 
3430 rajveer 512
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 513
    {
514
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 515
      args.setId(id);
516
      args.setParams(params);
517
      sendBase("getSubstitutedMessage", args);
352 ashish 518
    }
519
 
3430 rajveer 520
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 521
    {
522
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 523
      receiveBase(result, "getSubstitutedMessage");
352 ashish 524
      if (result.isSetSuccess()) {
525
        return result.success;
526
      }
527
      if (result.se != null) {
528
        throw result.se;
529
      }
3430 rajveer 530
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 531
    }
532
 
3430 rajveer 533
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 534
    {
535
      send_addUser(username, password, warehouseId);
536
      return recv_addUser();
537
    }
538
 
3430 rajveer 539
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 540
    {
541
      addUser_args args = new addUser_args();
3430 rajveer 542
      args.setUsername(username);
543
      args.setPassword(password);
544
      args.setWarehouseId(warehouseId);
545
      sendBase("addUser", args);
495 rajveer 546
    }
547
 
3430 rajveer 548
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 549
    {
550
      addUser_result result = new addUser_result();
3430 rajveer 551
      receiveBase(result, "addUser");
495 rajveer 552
      if (result.isSetSuccess()) {
553
        return result.success;
554
      }
555
      if (result.se != null) {
556
        throw result.se;
557
      }
3430 rajveer 558
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 559
    }
560
 
3430 rajveer 561
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 562
    {
563
      send_deleteUser(username);
564
      return recv_deleteUser();
565
    }
566
 
3430 rajveer 567
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 568
    {
569
      deleteUser_args args = new deleteUser_args();
3430 rajveer 570
      args.setUsername(username);
571
      sendBase("deleteUser", args);
495 rajveer 572
    }
573
 
3430 rajveer 574
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 575
    {
576
      deleteUser_result result = new deleteUser_result();
3430 rajveer 577
      receiveBase(result, "deleteUser");
495 rajveer 578
      if (result.isSetSuccess()) {
579
        return result.success;
580
      }
581
      if (result.se != null) {
582
        throw result.se;
583
      }
3430 rajveer 584
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 585
    }
586
 
3430 rajveer 587
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 588
    {
2443 chandransh 589
      send_authenticateDashboardUser(username, password);
590
      return recv_authenticateDashboardUser();
495 rajveer 591
    }
592
 
3430 rajveer 593
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 594
    {
2443 chandransh 595
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 596
      args.setUsername(username);
597
      args.setPassword(password);
598
      sendBase("authenticateDashboardUser", args);
495 rajveer 599
    }
600
 
3430 rajveer 601
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 602
    {
2443 chandransh 603
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 604
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 605
      if (result.isSetSuccess()) {
606
        return result.success;
607
      }
608
      if (result.se != null) {
609
        throw result.se;
610
      }
3430 rajveer 611
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 612
    }
613
 
3430 rajveer 614
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 615
    {
616
      send_updatePassword(username, oldPassword, newPassword);
617
      return recv_updatePassword();
618
    }
619
 
3430 rajveer 620
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 621
    {
622
      updatePassword_args args = new updatePassword_args();
3430 rajveer 623
      args.setUsername(username);
624
      args.setOldPassword(oldPassword);
625
      args.setNewPassword(newPassword);
626
      sendBase("updatePassword", args);
495 rajveer 627
    }
628
 
3430 rajveer 629
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 630
    {
631
      updatePassword_result result = new updatePassword_result();
3430 rajveer 632
      receiveBase(result, "updatePassword");
495 rajveer 633
      if (result.isSetSuccess()) {
634
        return result.success;
635
      }
636
      if (result.se != null) {
637
        throw result.se;
638
      }
3430 rajveer 639
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 640
    }
641
 
3430 rajveer 642
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 643
    {
644
      send_authenticateLogisticsUser(username, password);
645
      return recv_authenticateLogisticsUser();
646
    }
647
 
3430 rajveer 648
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 649
    {
650
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 651
      args.setUsername(username);
652
      args.setPassword(password);
653
      sendBase("authenticateLogisticsUser", args);
750 chandransh 654
    }
655
 
3430 rajveer 656
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 657
    {
658
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 659
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 660
      if (result.isSetSuccess()) {
661
        return result.success;
662
      }
663
      if (result.hse != null) {
664
        throw result.hse;
665
      }
3430 rajveer 666
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 667
    }
668
 
3430 rajveer 669
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 670
    {
671
      send_authenticateStatisticsUser(username, password);
672
      return recv_authenticateStatisticsUser();
673
    }
674
 
3430 rajveer 675
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 676
    {
677
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 678
      args.setUsername(username);
679
      args.setPassword(password);
680
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 681
    }
682
 
3430 rajveer 683
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 684
    {
685
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 686
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 687
      if (result.isSetSuccess()) {
688
        return result.success;
689
      }
690
      if (result.hse != null) {
691
        throw result.hse;
692
      }
3430 rajveer 693
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 694
    }
695
 
3430 rajveer 696
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 697
    {
698
      send_authenticateReportUser(username, password);
699
      return recv_authenticateReportUser();
700
    }
701
 
3430 rajveer 702
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 703
    {
704
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 705
      args.setUsername(username);
706
      args.setPassword(password);
707
      sendBase("authenticateReportUser", args);
1891 ankur.sing 708
    }
709
 
3430 rajveer 710
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 711
    {
712
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 713
      receiveBase(result, "authenticateReportUser");
1891 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, "authenticateReportUser failed: unknown result");
1891 ankur.sing 721
    }
722
 
3430 rajveer 723
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 724
    {
725
      send_getReports(role);
726
      return recv_getReports();
727
    }
728
 
3430 rajveer 729
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 730
    {
731
      getReports_args args = new getReports_args();
3430 rajveer 732
      args.setRole(role);
733
      sendBase("getReports", args);
1891 ankur.sing 734
    }
735
 
3430 rajveer 736
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 737
    {
738
      getReports_result result = new getReports_result();
3430 rajveer 739
      receiveBase(result, "getReports");
1891 ankur.sing 740
      if (result.isSetSuccess()) {
741
        return result.success;
742
      }
3430 rajveer 743
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 744
    }
745
 
6788 rajveer 746
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 747
    {
6788 rajveer 748
      send_authenticateCatalogUser(username, password);
2024 ankur.sing 749
      return recv_authenticateCatalogUser();
750
    }
751
 
6788 rajveer 752
    public void send_authenticateCatalogUser(String username, String password) throws org.apache.thrift.TException
2024 ankur.sing 753
    {
754
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 755
      args.setUsername(username);
756
      args.setPassword(password);
757
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 758
    }
759
 
3430 rajveer 760
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 761
    {
762
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 763
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 764
      if (result.isSetSuccess()) {
765
        return result.success;
766
      }
767
      if (result.hse != null) {
768
        throw result.hse;
769
      }
3430 rajveer 770
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 771
    }
772
 
4544 varun.gupt 773
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
774
    {
775
      send_shareEntities(entityIds, email);
776
      recv_shareEntities();
777
    }
778
 
779
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
780
    {
781
      shareEntities_args args = new shareEntities_args();
782
      args.setEntityIds(entityIds);
783
      args.setEmail(email);
784
      sendBase("shareEntities", args);
785
    }
786
 
787
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
788
    {
789
      shareEntities_result result = new shareEntities_result();
790
      receiveBase(result, "shareEntities");
791
      if (result.hse != null) {
792
        throw result.hse;
793
      }
794
      return;
795
    }
796
 
4693 mandeep.dh 797
    public List<Agent> getAgents() throws org.apache.thrift.TException
798
    {
799
      send_getAgents();
800
      return recv_getAgents();
801
    }
802
 
803
    public void send_getAgents() throws org.apache.thrift.TException
804
    {
805
      getAgents_args args = new getAgents_args();
806
      sendBase("getAgents", args);
807
    }
808
 
809
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
810
    {
811
      getAgents_result result = new getAgents_result();
812
      receiveBase(result, "getAgents");
813
      if (result.isSetSuccess()) {
814
        return result.success;
815
      }
816
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
817
    }
818
 
819
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
820
    {
821
      send_validateLogIn(emailId, password);
822
      return recv_validateLogIn();
823
    }
824
 
825
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
826
    {
827
      validateLogIn_args args = new validateLogIn_args();
828
      args.setEmailId(emailId);
829
      args.setPassword(password);
830
      sendBase("validateLogIn", args);
831
    }
832
 
833
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
834
    {
835
      validateLogIn_result result = new validateLogIn_result();
836
      receiveBase(result, "validateLogIn");
837
      if (result.isSetSuccess()) {
838
        return result.success;
839
      }
840
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
841
    }
842
 
843
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
844
    {
845
      send_updatePasswordForAgent(agentEmailId, password);
846
      recv_updatePasswordForAgent();
847
    }
848
 
849
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
850
    {
851
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
852
      args.setAgentEmailId(agentEmailId);
853
      args.setPassword(password);
854
      sendBase("updatePasswordForAgent", args);
855
    }
856
 
857
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
858
    {
859
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
860
      receiveBase(result, "updatePasswordForAgent");
861
      return;
862
    }
863
 
864
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
865
    {
866
      send_getRoleNamesForAgent(agentEmailId);
867
      return recv_getRoleNamesForAgent();
868
    }
869
 
870
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
871
    {
872
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
873
      args.setAgentEmailId(agentEmailId);
874
      sendBase("getRoleNamesForAgent", args);
875
    }
876
 
877
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
878
    {
879
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
880
      receiveBase(result, "getRoleNamesForAgent");
881
      if (result.isSetSuccess()) {
882
        return result.success;
883
      }
884
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
885
    }
886
 
887
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
888
    {
889
      send_getPermissionsForRoleName(roleName);
890
      return recv_getPermissionsForRoleName();
891
    }
892
 
893
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
894
    {
895
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
896
      args.setRoleName(roleName);
897
      sendBase("getPermissionsForRoleName", args);
898
    }
899
 
900
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
901
    {
902
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
903
      receiveBase(result, "getPermissionsForRoleName");
904
      if (result.isSetSuccess()) {
905
        return result.success;
906
      }
907
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
908
    }
909
 
4806 varun.gupt 910
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
911
    {
912
      send_saveQuickLink(url, text);
913
      recv_saveQuickLink();
914
    }
915
 
916
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
917
    {
918
      saveQuickLink_args args = new saveQuickLink_args();
919
      args.setUrl(url);
920
      args.setText(text);
921
      sendBase("saveQuickLink", args);
922
    }
923
 
924
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
925
    {
926
      saveQuickLink_result result = new saveQuickLink_result();
927
      receiveBase(result, "saveQuickLink");
928
      if (result.hse != null) {
929
        throw result.hse;
930
      }
931
      return;
932
    }
933
 
934
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
935
    {
936
      send_getQuickLinks();
937
      return recv_getQuickLinks();
938
    }
939
 
940
    public void send_getQuickLinks() throws org.apache.thrift.TException
941
    {
942
      getQuickLinks_args args = new getQuickLinks_args();
943
      sendBase("getQuickLinks", args);
944
    }
945
 
946
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
947
    {
948
      getQuickLinks_result result = new getQuickLinks_result();
949
      receiveBase(result, "getQuickLinks");
950
      if (result.isSetSuccess()) {
951
        return result.success;
952
      }
953
      if (result.hse != null) {
954
        throw result.hse;
955
      }
956
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
957
    }
958
 
4996 varun.gupt 959
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
960
    {
961
      send_updateQuickLink(id, url, text);
962
      recv_updateQuickLink();
963
    }
964
 
965
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
966
    {
967
      updateQuickLink_args args = new updateQuickLink_args();
968
      args.setId(id);
969
      args.setUrl(url);
970
      args.setText(text);
971
      sendBase("updateQuickLink", args);
972
    }
973
 
974
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
975
    {
976
      updateQuickLink_result result = new updateQuickLink_result();
977
      receiveBase(result, "updateQuickLink");
978
      if (result.hse != null) {
979
        throw result.hse;
980
      }
981
      return;
982
    }
983
 
5055 varun.gupt 984
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
985
    {
986
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
987
      return recv_getEmailsForNotificationsSent();
988
    }
989
 
990
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
991
    {
992
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
993
      args.setStartDatetime(startDatetime);
994
      args.setEndDatetime(endDatetime);
995
      sendBase("getEmailsForNotificationsSent", args);
996
    }
997
 
998
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
999
    {
1000
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
1001
      receiveBase(result, "getEmailsForNotificationsSent");
1002
      if (result.isSetSuccess()) {
1003
        return result.success;
1004
      }
1005
      if (result.hse != null) {
1006
        throw result.hse;
1007
      }
1008
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
1009
    }
1010
 
6322 amar.kumar 1011
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
1012
    {
1013
      send_getOrderConfirmationMail(orderId);
1014
      return recv_getOrderConfirmationMail();
1015
    }
1016
 
1017
    public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
1018
    {
1019
      getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
1020
      args.setOrderId(orderId);
1021
      sendBase("getOrderConfirmationMail", args);
1022
    }
1023
 
1024
    public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException
1025
    {
1026
      getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
1027
      receiveBase(result, "getOrderConfirmationMail");
1028
      if (result.isSetSuccess()) {
1029
        return result.success;
1030
      }
1031
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
1032
    }
1033
 
7221 kshitij.so 1034
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
1035
    {
1036
      send_getOrderDeliveryMail(orderId);
1037
      return recv_getOrderDeliveryMail();
1038
    }
1039
 
1040
    public void send_getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
1041
    {
1042
      getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
1043
      args.setOrderId(orderId);
1044
      sendBase("getOrderDeliveryMail", args);
1045
    }
1046
 
1047
    public String recv_getOrderDeliveryMail() throws org.apache.thrift.TException
1048
    {
1049
      getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
1050
      receiveBase(result, "getOrderDeliveryMail");
1051
      if (result.isSetSuccess()) {
1052
        return result.success;
1053
      }
1054
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1055
    }
1056
 
7410 amar.kumar 1057
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1058
    {
1059
      send_getWarehouseIdsForAgent(agentEmailId);
1060
      return recv_getWarehouseIdsForAgent();
1061
    }
1062
 
1063
    public void send_getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1064
    {
1065
      getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
1066
      args.setAgentEmailId(agentEmailId);
1067
      sendBase("getWarehouseIdsForAgent", args);
1068
    }
1069
 
1070
    public List<Long> recv_getWarehouseIdsForAgent() throws org.apache.thrift.TException
1071
    {
1072
      getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
1073
      receiveBase(result, "getWarehouseIdsForAgent");
1074
      if (result.isSetSuccess()) {
1075
        return result.success;
1076
      }
1077
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
1078
    }
1079
 
12691 manish.sha 1080
    public long saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws HelperServiceException, org.apache.thrift.TException
1081
    {
1082
      send_saveUserSmsForSending(userId, mobileNo, text, type);
1083
      return recv_saveUserSmsForSending();
1084
    }
1085
 
1086
    public void send_saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws org.apache.thrift.TException
1087
    {
1088
      saveUserSmsForSending_args args = new saveUserSmsForSending_args();
1089
      args.setUserId(userId);
1090
      args.setMobileNo(mobileNo);
1091
      args.setText(text);
1092
      args.setType(type);
1093
      sendBase("saveUserSmsForSending", args);
1094
    }
1095
 
1096
    public long recv_saveUserSmsForSending() throws HelperServiceException, org.apache.thrift.TException
1097
    {
1098
      saveUserSmsForSending_result result = new saveUserSmsForSending_result();
1099
      receiveBase(result, "saveUserSmsForSending");
1100
      if (result.isSetSuccess()) {
1101
        return result.success;
1102
      }
1103
      if (result.se != null) {
1104
        throw result.se;
1105
      }
1106
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserSmsForSending failed: unknown result");
1107
    }
1108
 
1109
    public List<UserSms> getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1110
    {
1111
      send_getSmsToBeSent();
1112
      return recv_getSmsToBeSent();
1113
    }
1114
 
1115
    public void send_getSmsToBeSent() throws org.apache.thrift.TException
1116
    {
1117
      getSmsToBeSent_args args = new getSmsToBeSent_args();
1118
      sendBase("getSmsToBeSent", args);
1119
    }
1120
 
1121
    public List<UserSms> recv_getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1122
    {
1123
      getSmsToBeSent_result result = new getSmsToBeSent_result();
1124
      receiveBase(result, "getSmsToBeSent");
1125
      if (result.isSetSuccess()) {
1126
        return result.success;
1127
      }
1128
      if (result.se != null) {
1129
        throw result.se;
1130
      }
1131
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSmsToBeSent failed: unknown result");
1132
    }
1133
 
1134
    public void addUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException
1135
    {
1136
      send_addUserSmsInfo(userSmsInfo);
1137
      recv_addUserSmsInfo();
1138
    }
1139
 
1140
    public void send_addUserSmsInfo(UserSmsInfo userSmsInfo) throws org.apache.thrift.TException
1141
    {
1142
      addUserSmsInfo_args args = new addUserSmsInfo_args();
1143
      args.setUserSmsInfo(userSmsInfo);
1144
      sendBase("addUserSmsInfo", args);
1145
    }
1146
 
1147
    public void recv_addUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1148
    {
1149
      addUserSmsInfo_result result = new addUserSmsInfo_result();
1150
      receiveBase(result, "addUserSmsInfo");
1151
      if (result.se != null) {
1152
        throw result.se;
1153
      }
1154
      return;
1155
    }
1156
 
1157
    public boolean updateUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException
1158
    {
1159
      send_updateUserSmsInfo(userSmsInfo);
1160
      return recv_updateUserSmsInfo();
1161
    }
1162
 
1163
    public void send_updateUserSmsInfo(UserSmsInfo userSmsInfo) throws org.apache.thrift.TException
1164
    {
1165
      updateUserSmsInfo_args args = new updateUserSmsInfo_args();
1166
      args.setUserSmsInfo(userSmsInfo);
1167
      sendBase("updateUserSmsInfo", args);
1168
    }
1169
 
1170
    public boolean recv_updateUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1171
    {
1172
      updateUserSmsInfo_result result = new updateUserSmsInfo_result();
1173
      receiveBase(result, "updateUserSmsInfo");
1174
      if (result.isSetSuccess()) {
1175
        return result.success;
1176
      }
1177
      if (result.se != null) {
1178
        throw result.se;
1179
      }
1180
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserSmsInfo failed: unknown result");
1181
    }
1182
 
1183
    public UserSmsInfo getUserSmsInfo(long userId) throws HelperServiceException, org.apache.thrift.TException
1184
    {
1185
      send_getUserSmsInfo(userId);
1186
      return recv_getUserSmsInfo();
1187
    }
1188
 
1189
    public void send_getUserSmsInfo(long userId) throws org.apache.thrift.TException
1190
    {
1191
      getUserSmsInfo_args args = new getUserSmsInfo_args();
1192
      args.setUserId(userId);
1193
      sendBase("getUserSmsInfo", args);
1194
    }
1195
 
1196
    public UserSmsInfo recv_getUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1197
    {
1198
      getUserSmsInfo_result result = new getUserSmsInfo_result();
1199
      receiveBase(result, "getUserSmsInfo");
1200
      if (result.isSetSuccess()) {
1201
        return result.success;
1202
      }
1203
      if (result.se != null) {
1204
        throw result.se;
1205
      }
1206
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserSmsInfo failed: unknown result");
1207
    }
1208
 
1209
    public List<UserSmsInfo> getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws HelperServiceException, org.apache.thrift.TException
1210
    {
1211
      send_getAllUsersSmsInfo(dndStatus, smsSubscribed);
1212
      return recv_getAllUsersSmsInfo();
1213
    }
1214
 
1215
    public void send_getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws org.apache.thrift.TException
1216
    {
1217
      getAllUsersSmsInfo_args args = new getAllUsersSmsInfo_args();
1218
      args.setDndStatus(dndStatus);
1219
      args.setSmsSubscribed(smsSubscribed);
1220
      sendBase("getAllUsersSmsInfo", args);
1221
    }
1222
 
1223
    public List<UserSmsInfo> recv_getAllUsersSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1224
    {
1225
      getAllUsersSmsInfo_result result = new getAllUsersSmsInfo_result();
1226
      receiveBase(result, "getAllUsersSmsInfo");
1227
      if (result.isSetSuccess()) {
1228
        return result.success;
1229
      }
1230
      if (result.se != null) {
1231
        throw result.se;
1232
      }
1233
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsersSmsInfo failed: unknown result");
1234
    }
1235
 
1236
    public List<UserSms> listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException
1237
    {
1238
      send_listSmsToGetDeliveryInfo();
1239
      return recv_listSmsToGetDeliveryInfo();
1240
    }
1241
 
1242
    public void send_listSmsToGetDeliveryInfo() throws org.apache.thrift.TException
1243
    {
1244
      listSmsToGetDeliveryInfo_args args = new listSmsToGetDeliveryInfo_args();
1245
      sendBase("listSmsToGetDeliveryInfo", args);
1246
    }
1247
 
1248
    public List<UserSms> recv_listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException
1249
    {
1250
      listSmsToGetDeliveryInfo_result result = new listSmsToGetDeliveryInfo_result();
1251
      receiveBase(result, "listSmsToGetDeliveryInfo");
1252
      if (result.isSetSuccess()) {
1253
        return result.success;
1254
      }
1255
      if (result.se != null) {
1256
        throw result.se;
1257
      }
1258
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listSmsToGetDeliveryInfo failed: unknown result");
1259
    }
1260
 
1261
    public boolean markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException
1262
    {
1263
      send_markMessagesAsSentToOperator(userSmsList);
1264
      return recv_markMessagesAsSentToOperator();
1265
    }
1266
 
1267
    public void send_markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException
1268
    {
1269
      markMessagesAsSentToOperator_args args = new markMessagesAsSentToOperator_args();
1270
      args.setUserSmsList(userSmsList);
1271
      sendBase("markMessagesAsSentToOperator", args);
1272
    }
1273
 
1274
    public boolean recv_markMessagesAsSentToOperator() throws org.apache.thrift.TException
1275
    {
1276
      markMessagesAsSentToOperator_result result = new markMessagesAsSentToOperator_result();
1277
      receiveBase(result, "markMessagesAsSentToOperator");
1278
      if (result.isSetSuccess()) {
1279
        return result.success;
1280
      }
1281
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSentToOperator failed: unknown result");
1282
    }
1283
 
1284
    public boolean markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException
1285
    {
1286
      send_markMessagesAsSubmittedToSmsc(userSmsList);
1287
      return recv_markMessagesAsSubmittedToSmsc();
1288
    }
1289
 
1290
    public void send_markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException
1291
    {
1292
      markMessagesAsSubmittedToSmsc_args args = new markMessagesAsSubmittedToSmsc_args();
1293
      args.setUserSmsList(userSmsList);
1294
      sendBase("markMessagesAsSubmittedToSmsc", args);
1295
    }
1296
 
1297
    public boolean recv_markMessagesAsSubmittedToSmsc() throws org.apache.thrift.TException
1298
    {
1299
      markMessagesAsSubmittedToSmsc_result result = new markMessagesAsSubmittedToSmsc_result();
1300
      receiveBase(result, "markMessagesAsSubmittedToSmsc");
1301
      if (result.isSetSuccess()) {
1302
        return result.success;
1303
      }
1304
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSubmittedToSmsc failed: unknown result");
1305
    }
1306
 
1307
    public boolean markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException
1308
    {
1309
      send_markMessagesAsSent(userSmsList);
1310
      return recv_markMessagesAsSent();
1311
    }
1312
 
1313
    public void send_markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException
1314
    {
1315
      markMessagesAsSent_args args = new markMessagesAsSent_args();
1316
      args.setUserSmsList(userSmsList);
1317
      sendBase("markMessagesAsSent", args);
1318
    }
1319
 
1320
    public boolean recv_markMessagesAsSent() throws org.apache.thrift.TException
1321
    {
1322
      markMessagesAsSent_result result = new markMessagesAsSent_result();
1323
      receiveBase(result, "markMessagesAsSent");
1324
      if (result.isSetSuccess()) {
1325
        return result.success;
1326
      }
1327
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSent failed: unknown result");
1328
    }
1329
 
1330
    public boolean markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException
1331
    {
1332
      send_markMessagesAsRetry(userSmsList);
1333
      return recv_markMessagesAsRetry();
1334
    }
1335
 
1336
    public void send_markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException
1337
    {
1338
      markMessagesAsRetry_args args = new markMessagesAsRetry_args();
1339
      args.setUserSmsList(userSmsList);
1340
      sendBase("markMessagesAsRetry", args);
1341
    }
1342
 
1343
    public boolean recv_markMessagesAsRetry() throws org.apache.thrift.TException
1344
    {
1345
      markMessagesAsRetry_result result = new markMessagesAsRetry_result();
1346
      receiveBase(result, "markMessagesAsRetry");
1347
      if (result.isSetSuccess()) {
1348
        return result.success;
1349
      }
1350
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsRetry failed: unknown result");
1351
    }
1352
 
12696 amit.gupta 1353
    public DealerAuth authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException
1354
    {
1355
      send_authoriseDealer(dealer);
1356
      return recv_authoriseDealer();
1357
    }
1358
 
1359
    public void send_authoriseDealer(DealerAuth dealer) throws org.apache.thrift.TException
1360
    {
1361
      authoriseDealer_args args = new authoriseDealer_args();
1362
      args.setDealer(dealer);
1363
      sendBase("authoriseDealer", args);
1364
    }
1365
 
1366
    public DealerAuth recv_authoriseDealer() throws org.apache.thrift.TException
1367
    {
1368
      authoriseDealer_result result = new authoriseDealer_result();
1369
      receiveBase(result, "authoriseDealer");
1370
      if (result.isSetSuccess()) {
1371
        return result.success;
1372
      }
1373
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authoriseDealer failed: unknown result");
1374
    }
1375
 
352 ashish 1376
  }
3430 rajveer 1377
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1378
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1379
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1380
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1381
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1382
        this.clientManager = clientManager;
1383
        this.protocolFactory = protocolFactory;
1384
      }
1385
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1386
        return new AsyncClient(protocolFactory, clientManager, transport);
1387
      }
352 ashish 1388
    }
1389
 
3430 rajveer 1390
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1391
      super(protocolFactory, clientManager, transport);
1392
    }
352 ashish 1393
 
8020 rajveer 1394
    public void saveUserEmailForSending(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1395
      checkReady();
8020 rajveer 1396
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1397
      this.___currentMethod = method_call;
1398
      ___manager.call(method_call);
1399
    }
1400
 
1401
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
5864 rajveer 1402
      private List<String> emailTo;
3430 rajveer 1403
      private String emailFrom;
1404
      private String subject;
1405
      private String body;
1406
      private String source;
1407
      private String emailType;
5864 rajveer 1408
      private List<String> cc;
1409
      private List<String> bcc;
8020 rajveer 1410
      private long sourceId;
1411
      public saveUserEmailForSending_call(List<String> emailTo, String emailFrom, String subject, String body, String source, String emailType, List<String> cc, List<String> bcc, long sourceId, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
3430 rajveer 1412
        super(client, protocolFactory, transport, resultHandler, false);
1413
        this.emailTo = emailTo;
1414
        this.emailFrom = emailFrom;
1415
        this.subject = subject;
1416
        this.body = body;
1417
        this.source = source;
1418
        this.emailType = emailType;
5864 rajveer 1419
        this.cc = cc;
1420
        this.bcc = bcc;
8020 rajveer 1421
        this.sourceId = sourceId;
352 ashish 1422
      }
3430 rajveer 1423
 
1424
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1425
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
1426
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
1427
        args.setEmailTo(emailTo);
1428
        args.setEmailFrom(emailFrom);
1429
        args.setSubject(subject);
1430
        args.setBody(body);
1431
        args.setSource(source);
1432
        args.setEmailType(emailType);
5864 rajveer 1433
        args.setCc(cc);
1434
        args.setBcc(bcc);
8020 rajveer 1435
        args.setSourceId(sourceId);
3430 rajveer 1436
        args.write(prot);
1437
        prot.writeMessageEnd();
1438
      }
1439
 
1440
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1441
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1442
          throw new IllegalStateException("Method call not finished!");
1443
        }
1444
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1445
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1446
        return (new Client(prot)).recv_saveUserEmailForSending();
1447
      }
352 ashish 1448
    }
1449
 
3430 rajveer 1450
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1451
      checkReady();
1452
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1453
      this.___currentMethod = method_call;
1454
      ___manager.call(method_call);
1455
    }
1456
 
1457
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1458
      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 {
1459
        super(client, protocolFactory, transport, resultHandler, false);
1460
      }
1461
 
1462
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1463
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1464
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1465
        args.write(prot);
1466
        prot.writeMessageEnd();
1467
      }
1468
 
1469
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
1470
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1471
          throw new IllegalStateException("Method call not finished!");
1472
        }
1473
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1474
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1475
        return (new Client(prot)).recv_getEmailsToBeSent();
1476
      }
1477
    }
1478
 
1479
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1480
      checkReady();
1481
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1482
      this.___currentMethod = method_call;
1483
      ___manager.call(method_call);
1484
    }
1485
 
1486
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1487
      private long emailId;
1488
      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 {
1489
        super(client, protocolFactory, transport, resultHandler, false);
1490
        this.emailId = emailId;
1491
      }
1492
 
1493
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1494
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1495
        markEmailAsSent_args args = new markEmailAsSent_args();
1496
        args.setEmailId(emailId);
1497
        args.write(prot);
1498
        prot.writeMessageEnd();
1499
      }
1500
 
1501
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1502
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1503
          throw new IllegalStateException("Method call not finished!");
1504
        }
1505
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1506
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1507
        (new Client(prot)).recv_markEmailAsSent();
1508
      }
1509
    }
1510
 
1511
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1512
      checkReady();
1513
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1514
      this.___currentMethod = method_call;
1515
      ___manager.call(method_call);
1516
    }
1517
 
1518
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1519
      private Mail mail;
1520
      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 {
1521
        super(client, protocolFactory, transport, resultHandler, false);
1522
        this.mail = mail;
1523
      }
1524
 
1525
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1526
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1527
        sendMail_args args = new sendMail_args();
1528
        args.setMail(mail);
1529
        args.write(prot);
1530
        prot.writeMessageEnd();
1531
      }
1532
 
1533
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1534
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1535
          throw new IllegalStateException("Method call not finished!");
1536
        }
1537
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1538
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1539
        (new Client(prot)).recv_sendMail();
1540
      }
1541
    }
1542
 
1543
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1544
      checkReady();
1545
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1546
      this.___currentMethod = method_call;
1547
      ___manager.call(method_call);
1548
    }
1549
 
1550
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1551
      private TextMessage message;
1552
      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 {
1553
        super(client, protocolFactory, transport, resultHandler, false);
1554
        this.message = message;
1555
      }
1556
 
1557
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1558
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1559
        sendText_args args = new sendText_args();
1560
        args.setMessage(message);
1561
        args.write(prot);
1562
        prot.writeMessageEnd();
1563
      }
1564
 
1565
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1566
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1567
          throw new IllegalStateException("Method call not finished!");
1568
        }
1569
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1570
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1571
        (new Client(prot)).recv_sendText();
1572
      }
1573
    }
1574
 
1575
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1576
      checkReady();
1577
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1578
      this.___currentMethod = method_call;
1579
      ___manager.call(method_call);
1580
    }
1581
 
1582
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1583
      private Message message;
1584
      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 {
1585
        super(client, protocolFactory, transport, resultHandler, false);
1586
        this.message = message;
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("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1591
        addMessage_args args = new addMessage_args();
1592
        args.setMessage(message);
1593
        args.write(prot);
1594
        prot.writeMessageEnd();
1595
      }
1596
 
1597
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1598
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1599
          throw new IllegalStateException("Method call not finished!");
1600
        }
1601
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1602
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1603
        (new Client(prot)).recv_addMessage();
1604
      }
1605
    }
1606
 
1607
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1608
      checkReady();
1609
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1610
      this.___currentMethod = method_call;
1611
      ___manager.call(method_call);
1612
    }
1613
 
1614
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1615
      private long id;
1616
      private String message;
1617
      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 {
1618
        super(client, protocolFactory, transport, resultHandler, false);
1619
        this.id = id;
1620
        this.message = message;
1621
      }
1622
 
1623
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1624
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1625
        updateMessage_args args = new updateMessage_args();
1626
        args.setId(id);
1627
        args.setMessage(message);
1628
        args.write(prot);
1629
        prot.writeMessageEnd();
1630
      }
1631
 
1632
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1633
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1634
          throw new IllegalStateException("Method call not finished!");
1635
        }
1636
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1637
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1638
        (new Client(prot)).recv_updateMessage();
1639
      }
1640
    }
1641
 
1642
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1643
      checkReady();
1644
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1645
      this.___currentMethod = method_call;
1646
      ___manager.call(method_call);
1647
    }
1648
 
1649
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1650
      private long id;
1651
      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 {
1652
        super(client, protocolFactory, transport, resultHandler, false);
1653
        this.id = id;
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("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1658
        getMessage_args args = new getMessage_args();
1659
        args.setId(id);
1660
        args.write(prot);
1661
        prot.writeMessageEnd();
1662
      }
1663
 
1664
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1665
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1666
          throw new IllegalStateException("Method call not finished!");
1667
        }
1668
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1669
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1670
        return (new Client(prot)).recv_getMessage();
1671
      }
1672
    }
1673
 
1674
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1675
      checkReady();
1676
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1677
      this.___currentMethod = method_call;
1678
      ___manager.call(method_call);
1679
    }
1680
 
1681
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1682
      private long id;
1683
      private Map<String,String> params;
1684
      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 {
1685
        super(client, protocolFactory, transport, resultHandler, false);
1686
        this.id = id;
1687
        this.params = params;
1688
      }
1689
 
1690
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1691
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1692
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1693
        args.setId(id);
1694
        args.setParams(params);
1695
        args.write(prot);
1696
        prot.writeMessageEnd();
1697
      }
1698
 
1699
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1700
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1701
          throw new IllegalStateException("Method call not finished!");
1702
        }
1703
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1704
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1705
        return (new Client(prot)).recv_getSubstitutedMessage();
1706
      }
1707
    }
1708
 
1709
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1710
      checkReady();
1711
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1712
      this.___currentMethod = method_call;
1713
      ___manager.call(method_call);
1714
    }
1715
 
1716
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1717
      private String username;
1718
      private String password;
1719
      private long warehouseId;
1720
      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 {
1721
        super(client, protocolFactory, transport, resultHandler, false);
1722
        this.username = username;
1723
        this.password = password;
1724
        this.warehouseId = warehouseId;
1725
      }
1726
 
1727
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1728
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1729
        addUser_args args = new addUser_args();
1730
        args.setUsername(username);
1731
        args.setPassword(password);
1732
        args.setWarehouseId(warehouseId);
1733
        args.write(prot);
1734
        prot.writeMessageEnd();
1735
      }
1736
 
1737
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1738
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1739
          throw new IllegalStateException("Method call not finished!");
1740
        }
1741
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1742
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1743
        return (new Client(prot)).recv_addUser();
1744
      }
1745
    }
1746
 
1747
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1748
      checkReady();
1749
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1750
      this.___currentMethod = method_call;
1751
      ___manager.call(method_call);
1752
    }
1753
 
1754
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1755
      private String username;
1756
      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 {
1757
        super(client, protocolFactory, transport, resultHandler, false);
1758
        this.username = username;
1759
      }
1760
 
1761
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1762
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1763
        deleteUser_args args = new deleteUser_args();
1764
        args.setUsername(username);
1765
        args.write(prot);
1766
        prot.writeMessageEnd();
1767
      }
1768
 
1769
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1770
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1771
          throw new IllegalStateException("Method call not finished!");
1772
        }
1773
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1774
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1775
        return (new Client(prot)).recv_deleteUser();
1776
      }
1777
    }
1778
 
1779
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1780
      checkReady();
1781
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1782
      this.___currentMethod = method_call;
1783
      ___manager.call(method_call);
1784
    }
1785
 
1786
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1787
      private String username;
1788
      private String password;
1789
      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 {
1790
        super(client, protocolFactory, transport, resultHandler, false);
1791
        this.username = username;
1792
        this.password = password;
1793
      }
1794
 
1795
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1796
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1797
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1798
        args.setUsername(username);
1799
        args.setPassword(password);
1800
        args.write(prot);
1801
        prot.writeMessageEnd();
1802
      }
1803
 
1804
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1805
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1806
          throw new IllegalStateException("Method call not finished!");
1807
        }
1808
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1809
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1810
        return (new Client(prot)).recv_authenticateDashboardUser();
1811
      }
1812
    }
1813
 
1814
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1815
      checkReady();
1816
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1817
      this.___currentMethod = method_call;
1818
      ___manager.call(method_call);
1819
    }
1820
 
1821
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1822
      private String username;
1823
      private String oldPassword;
1824
      private String newPassword;
1825
      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 {
1826
        super(client, protocolFactory, transport, resultHandler, false);
1827
        this.username = username;
1828
        this.oldPassword = oldPassword;
1829
        this.newPassword = newPassword;
1830
      }
1831
 
1832
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1833
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1834
        updatePassword_args args = new updatePassword_args();
1835
        args.setUsername(username);
1836
        args.setOldPassword(oldPassword);
1837
        args.setNewPassword(newPassword);
1838
        args.write(prot);
1839
        prot.writeMessageEnd();
1840
      }
1841
 
1842
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1843
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1844
          throw new IllegalStateException("Method call not finished!");
1845
        }
1846
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1847
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1848
        return (new Client(prot)).recv_updatePassword();
1849
      }
1850
    }
1851
 
1852
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1853
      checkReady();
1854
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1855
      this.___currentMethod = method_call;
1856
      ___manager.call(method_call);
1857
    }
1858
 
1859
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1860
      private String username;
1861
      private String password;
1862
      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 {
1863
        super(client, protocolFactory, transport, resultHandler, false);
1864
        this.username = username;
1865
        this.password = password;
1866
      }
1867
 
1868
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1869
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1870
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1871
        args.setUsername(username);
1872
        args.setPassword(password);
1873
        args.write(prot);
1874
        prot.writeMessageEnd();
1875
      }
1876
 
1877
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1878
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1879
          throw new IllegalStateException("Method call not finished!");
1880
        }
1881
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1882
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1883
        return (new Client(prot)).recv_authenticateLogisticsUser();
1884
      }
1885
    }
1886
 
1887
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1888
      checkReady();
1889
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1890
      this.___currentMethod = method_call;
1891
      ___manager.call(method_call);
1892
    }
1893
 
1894
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1895
      private String username;
1896
      private String password;
1897
      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 {
1898
        super(client, protocolFactory, transport, resultHandler, false);
1899
        this.username = username;
1900
        this.password = password;
1901
      }
1902
 
1903
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1904
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1905
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1906
        args.setUsername(username);
1907
        args.setPassword(password);
1908
        args.write(prot);
1909
        prot.writeMessageEnd();
1910
      }
1911
 
1912
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1913
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1914
          throw new IllegalStateException("Method call not finished!");
1915
        }
1916
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1917
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1918
        return (new Client(prot)).recv_authenticateStatisticsUser();
1919
      }
1920
    }
1921
 
1922
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1923
      checkReady();
1924
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1925
      this.___currentMethod = method_call;
1926
      ___manager.call(method_call);
1927
    }
1928
 
1929
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1930
      private String username;
1931
      private String password;
1932
      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 {
1933
        super(client, protocolFactory, transport, resultHandler, false);
1934
        this.username = username;
1935
        this.password = password;
1936
      }
1937
 
1938
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1939
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1940
        authenticateReportUser_args args = new authenticateReportUser_args();
1941
        args.setUsername(username);
1942
        args.setPassword(password);
1943
        args.write(prot);
1944
        prot.writeMessageEnd();
1945
      }
1946
 
1947
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1948
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1949
          throw new IllegalStateException("Method call not finished!");
1950
        }
1951
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1952
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1953
        return (new Client(prot)).recv_authenticateReportUser();
1954
      }
1955
    }
1956
 
1957
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1958
      checkReady();
1959
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1960
      this.___currentMethod = method_call;
1961
      ___manager.call(method_call);
1962
    }
1963
 
1964
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1965
      private long role;
1966
      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 {
1967
        super(client, protocolFactory, transport, resultHandler, false);
1968
        this.role = role;
1969
      }
1970
 
1971
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1972
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1973
        getReports_args args = new getReports_args();
1974
        args.setRole(role);
1975
        args.write(prot);
1976
        prot.writeMessageEnd();
1977
      }
1978
 
1979
      public List<Report> getResult() throws org.apache.thrift.TException {
1980
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1981
          throw new IllegalStateException("Method call not finished!");
1982
        }
1983
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1984
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1985
        return (new Client(prot)).recv_getReports();
1986
      }
1987
    }
1988
 
6788 rajveer 1989
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1990
      checkReady();
6788 rajveer 1991
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1992
      this.___currentMethod = method_call;
1993
      ___manager.call(method_call);
1994
    }
1995
 
1996
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1997
      private String username;
1998
      private String password;
6788 rajveer 1999
      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 2000
        super(client, protocolFactory, transport, resultHandler, false);
2001
        this.username = username;
2002
        this.password = password;
2003
      }
2004
 
2005
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2006
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
2007
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
2008
        args.setUsername(username);
2009
        args.setPassword(password);
2010
        args.write(prot);
2011
        prot.writeMessageEnd();
2012
      }
2013
 
2014
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
2015
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2016
          throw new IllegalStateException("Method call not finished!");
2017
        }
2018
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2019
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2020
        return (new Client(prot)).recv_authenticateCatalogUser();
2021
      }
2022
    }
2023
 
4544 varun.gupt 2024
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
2025
      checkReady();
2026
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
2027
      this.___currentMethod = method_call;
2028
      ___manager.call(method_call);
2029
    }
2030
 
2031
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
2032
      private List<Long> entityIds;
2033
      private String email;
2034
      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 {
2035
        super(client, protocolFactory, transport, resultHandler, false);
2036
        this.entityIds = entityIds;
2037
        this.email = email;
2038
      }
2039
 
2040
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2041
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
2042
        shareEntities_args args = new shareEntities_args();
2043
        args.setEntityIds(entityIds);
2044
        args.setEmail(email);
2045
        args.write(prot);
2046
        prot.writeMessageEnd();
2047
      }
2048
 
2049
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2050
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2051
          throw new IllegalStateException("Method call not finished!");
2052
        }
2053
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2054
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2055
        (new Client(prot)).recv_shareEntities();
2056
      }
2057
    }
2058
 
4693 mandeep.dh 2059
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
2060
      checkReady();
2061
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
2062
      this.___currentMethod = method_call;
2063
      ___manager.call(method_call);
2064
    }
2065
 
2066
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
2067
      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 {
2068
        super(client, protocolFactory, transport, resultHandler, false);
2069
      }
2070
 
2071
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2072
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
2073
        getAgents_args args = new getAgents_args();
2074
        args.write(prot);
2075
        prot.writeMessageEnd();
2076
      }
2077
 
2078
      public List<Agent> getResult() throws org.apache.thrift.TException {
2079
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2080
          throw new IllegalStateException("Method call not finished!");
2081
        }
2082
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2083
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2084
        return (new Client(prot)).recv_getAgents();
2085
      }
2086
    }
2087
 
2088
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
2089
      checkReady();
2090
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
2091
      this.___currentMethod = method_call;
2092
      ___manager.call(method_call);
2093
    }
2094
 
2095
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2096
      private String emailId;
2097
      private String password;
2098
      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 {
2099
        super(client, protocolFactory, transport, resultHandler, false);
2100
        this.emailId = emailId;
2101
        this.password = password;
2102
      }
2103
 
2104
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2105
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2106
        validateLogIn_args args = new validateLogIn_args();
2107
        args.setEmailId(emailId);
2108
        args.setPassword(password);
2109
        args.write(prot);
2110
        prot.writeMessageEnd();
2111
      }
2112
 
2113
      public boolean getResult() throws org.apache.thrift.TException {
2114
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2115
          throw new IllegalStateException("Method call not finished!");
2116
        }
2117
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2118
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2119
        return (new Client(prot)).recv_validateLogIn();
2120
      }
2121
    }
2122
 
2123
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
2124
      checkReady();
2125
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
2126
      this.___currentMethod = method_call;
2127
      ___manager.call(method_call);
2128
    }
2129
 
2130
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2131
      private String agentEmailId;
2132
      private String password;
2133
      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 {
2134
        super(client, protocolFactory, transport, resultHandler, false);
2135
        this.agentEmailId = agentEmailId;
2136
        this.password = password;
2137
      }
2138
 
2139
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2140
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2141
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
2142
        args.setAgentEmailId(agentEmailId);
2143
        args.setPassword(password);
2144
        args.write(prot);
2145
        prot.writeMessageEnd();
2146
      }
2147
 
2148
      public void getResult() throws org.apache.thrift.TException {
2149
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2150
          throw new IllegalStateException("Method call not finished!");
2151
        }
2152
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2153
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2154
        (new Client(prot)).recv_updatePasswordForAgent();
2155
      }
2156
    }
2157
 
2158
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
2159
      checkReady();
2160
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
2161
      this.___currentMethod = method_call;
2162
      ___manager.call(method_call);
2163
    }
2164
 
2165
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2166
      private String agentEmailId;
2167
      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 {
2168
        super(client, protocolFactory, transport, resultHandler, false);
2169
        this.agentEmailId = agentEmailId;
2170
      }
2171
 
2172
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2173
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2174
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
2175
        args.setAgentEmailId(agentEmailId);
2176
        args.write(prot);
2177
        prot.writeMessageEnd();
2178
      }
2179
 
2180
      public List<String> getResult() throws org.apache.thrift.TException {
2181
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2182
          throw new IllegalStateException("Method call not finished!");
2183
        }
2184
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2185
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2186
        return (new Client(prot)).recv_getRoleNamesForAgent();
2187
      }
2188
    }
2189
 
2190
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
2191
      checkReady();
2192
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
2193
      this.___currentMethod = method_call;
2194
      ___manager.call(method_call);
2195
    }
2196
 
2197
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
2198
      private String roleName;
2199
      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 {
2200
        super(client, protocolFactory, transport, resultHandler, false);
2201
        this.roleName = roleName;
2202
      }
2203
 
2204
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2205
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
2206
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
2207
        args.setRoleName(roleName);
2208
        args.write(prot);
2209
        prot.writeMessageEnd();
2210
      }
2211
 
2212
      public List<String> getResult() throws org.apache.thrift.TException {
2213
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2214
          throw new IllegalStateException("Method call not finished!");
2215
        }
2216
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2217
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2218
        return (new Client(prot)).recv_getPermissionsForRoleName();
2219
      }
2220
    }
2221
 
4806 varun.gupt 2222
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
2223
      checkReady();
2224
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
2225
      this.___currentMethod = method_call;
2226
      ___manager.call(method_call);
2227
    }
2228
 
2229
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
2230
      private String url;
2231
      private String text;
2232
      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 {
2233
        super(client, protocolFactory, transport, resultHandler, false);
2234
        this.url = url;
2235
        this.text = text;
2236
      }
2237
 
2238
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2239
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
2240
        saveQuickLink_args args = new saveQuickLink_args();
2241
        args.setUrl(url);
2242
        args.setText(text);
2243
        args.write(prot);
2244
        prot.writeMessageEnd();
2245
      }
2246
 
2247
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2248
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2249
          throw new IllegalStateException("Method call not finished!");
2250
        }
2251
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2252
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2253
        (new Client(prot)).recv_saveQuickLink();
2254
      }
2255
    }
2256
 
2257
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
2258
      checkReady();
2259
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
2260
      this.___currentMethod = method_call;
2261
      ___manager.call(method_call);
2262
    }
2263
 
2264
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
2265
      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 {
2266
        super(client, protocolFactory, transport, resultHandler, false);
2267
      }
2268
 
2269
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2270
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
2271
        getQuickLinks_args args = new getQuickLinks_args();
2272
        args.write(prot);
2273
        prot.writeMessageEnd();
2274
      }
2275
 
2276
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
2277
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2278
          throw new IllegalStateException("Method call not finished!");
2279
        }
2280
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2281
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2282
        return (new Client(prot)).recv_getQuickLinks();
2283
      }
2284
    }
2285
 
4996 varun.gupt 2286
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
2287
      checkReady();
2288
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
2289
      this.___currentMethod = method_call;
2290
      ___manager.call(method_call);
2291
    }
2292
 
2293
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
2294
      private long id;
2295
      private String url;
2296
      private String text;
2297
      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 {
2298
        super(client, protocolFactory, transport, resultHandler, false);
2299
        this.id = id;
2300
        this.url = url;
2301
        this.text = text;
2302
      }
2303
 
2304
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2305
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
2306
        updateQuickLink_args args = new updateQuickLink_args();
2307
        args.setId(id);
2308
        args.setUrl(url);
2309
        args.setText(text);
2310
        args.write(prot);
2311
        prot.writeMessageEnd();
2312
      }
2313
 
2314
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2315
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2316
          throw new IllegalStateException("Method call not finished!");
2317
        }
2318
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2319
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2320
        (new Client(prot)).recv_updateQuickLink();
2321
      }
2322
    }
2323
 
5055 varun.gupt 2324
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
2325
      checkReady();
2326
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
2327
      this.___currentMethod = method_call;
2328
      ___manager.call(method_call);
2329
    }
2330
 
2331
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
2332
      private long startDatetime;
2333
      private long endDatetime;
2334
      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 {
2335
        super(client, protocolFactory, transport, resultHandler, false);
2336
        this.startDatetime = startDatetime;
2337
        this.endDatetime = endDatetime;
2338
      }
2339
 
2340
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2341
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2342
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
2343
        args.setStartDatetime(startDatetime);
2344
        args.setEndDatetime(endDatetime);
2345
        args.write(prot);
2346
        prot.writeMessageEnd();
2347
      }
2348
 
2349
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
2350
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2351
          throw new IllegalStateException("Method call not finished!");
2352
        }
2353
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2354
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2355
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
2356
      }
2357
    }
2358
 
6322 amar.kumar 2359
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {
2360
      checkReady();
2361
      getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2362
      this.___currentMethod = method_call;
2363
      ___manager.call(method_call);
2364
    }
2365
 
2366
    public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2367
      private long orderId;
2368
      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 {
2369
        super(client, protocolFactory, transport, resultHandler, false);
2370
        this.orderId = orderId;
2371
      }
2372
 
2373
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2374
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2375
        getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
2376
        args.setOrderId(orderId);
2377
        args.write(prot);
2378
        prot.writeMessageEnd();
2379
      }
2380
 
2381
      public String getResult() throws org.apache.thrift.TException {
2382
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2383
          throw new IllegalStateException("Method call not finished!");
2384
        }
2385
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2386
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2387
        return (new Client(prot)).recv_getOrderConfirmationMail();
2388
      }
2389
    }
2390
 
7221 kshitij.so 2391
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException {
2392
      checkReady();
2393
      getOrderDeliveryMail_call method_call = new getOrderDeliveryMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2394
      this.___currentMethod = method_call;
2395
      ___manager.call(method_call);
2396
    }
2397
 
2398
    public static class getOrderDeliveryMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2399
      private long orderId;
2400
      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 {
2401
        super(client, protocolFactory, transport, resultHandler, false);
2402
        this.orderId = orderId;
2403
      }
2404
 
2405
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2406
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderDeliveryMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2407
        getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
2408
        args.setOrderId(orderId);
2409
        args.write(prot);
2410
        prot.writeMessageEnd();
2411
      }
2412
 
2413
      public String getResult() throws org.apache.thrift.TException {
2414
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2415
          throw new IllegalStateException("Method call not finished!");
2416
        }
2417
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2418
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2419
        return (new Client(prot)).recv_getOrderDeliveryMail();
2420
      }
2421
    }
2422
 
7410 amar.kumar 2423
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException {
2424
      checkReady();
2425
      getWarehouseIdsForAgent_call method_call = new getWarehouseIdsForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
2426
      this.___currentMethod = method_call;
2427
      ___manager.call(method_call);
2428
    }
2429
 
2430
    public static class getWarehouseIdsForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2431
      private String agentEmailId;
2432
      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 {
2433
        super(client, protocolFactory, transport, resultHandler, false);
2434
        this.agentEmailId = agentEmailId;
2435
      }
2436
 
2437
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2438
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseIdsForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2439
        getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
2440
        args.setAgentEmailId(agentEmailId);
2441
        args.write(prot);
2442
        prot.writeMessageEnd();
2443
      }
2444
 
2445
      public List<Long> getResult() throws org.apache.thrift.TException {
2446
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2447
          throw new IllegalStateException("Method call not finished!");
2448
        }
2449
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2450
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2451
        return (new Client(prot)).recv_getWarehouseIdsForAgent();
2452
      }
2453
    }
2454
 
12691 manish.sha 2455
    public void saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<saveUserSmsForSending_call> resultHandler) throws org.apache.thrift.TException {
2456
      checkReady();
2457
      saveUserSmsForSending_call method_call = new saveUserSmsForSending_call(userId, mobileNo, text, type, resultHandler, this, ___protocolFactory, ___transport);
2458
      this.___currentMethod = method_call;
2459
      ___manager.call(method_call);
2460
    }
2461
 
2462
    public static class saveUserSmsForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
2463
      private long userId;
2464
      private String mobileNo;
2465
      private String text;
2466
      private SmsType type;
2467
      public saveUserSmsForSending_call(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<saveUserSmsForSending_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 {
2468
        super(client, protocolFactory, transport, resultHandler, false);
2469
        this.userId = userId;
2470
        this.mobileNo = mobileNo;
2471
        this.text = text;
2472
        this.type = type;
2473
      }
2474
 
2475
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2476
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserSmsForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
2477
        saveUserSmsForSending_args args = new saveUserSmsForSending_args();
2478
        args.setUserId(userId);
2479
        args.setMobileNo(mobileNo);
2480
        args.setText(text);
2481
        args.setType(type);
2482
        args.write(prot);
2483
        prot.writeMessageEnd();
2484
      }
2485
 
2486
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
2487
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2488
          throw new IllegalStateException("Method call not finished!");
2489
        }
2490
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2491
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2492
        return (new Client(prot)).recv_saveUserSmsForSending();
2493
      }
2494
    }
2495
 
2496
    public void getSmsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getSmsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
2497
      checkReady();
2498
      getSmsToBeSent_call method_call = new getSmsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
2499
      this.___currentMethod = method_call;
2500
      ___manager.call(method_call);
2501
    }
2502
 
2503
    public static class getSmsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
2504
      public getSmsToBeSent_call(org.apache.thrift.async.AsyncMethodCallback<getSmsToBeSent_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 {
2505
        super(client, protocolFactory, transport, resultHandler, false);
2506
      }
2507
 
2508
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2509
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSmsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2510
        getSmsToBeSent_args args = new getSmsToBeSent_args();
2511
        args.write(prot);
2512
        prot.writeMessageEnd();
2513
      }
2514
 
2515
      public List<UserSms> getResult() throws HelperServiceException, org.apache.thrift.TException {
2516
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2517
          throw new IllegalStateException("Method call not finished!");
2518
        }
2519
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2520
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2521
        return (new Client(prot)).recv_getSmsToBeSent();
2522
      }
2523
    }
2524
 
2525
    public void addUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<addUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2526
      checkReady();
2527
      addUserSmsInfo_call method_call = new addUserSmsInfo_call(userSmsInfo, resultHandler, this, ___protocolFactory, ___transport);
2528
      this.___currentMethod = method_call;
2529
      ___manager.call(method_call);
2530
    }
2531
 
2532
    public static class addUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2533
      private UserSmsInfo userSmsInfo;
2534
      public addUserSmsInfo_call(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<addUserSmsInfo_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 {
2535
        super(client, protocolFactory, transport, resultHandler, false);
2536
        this.userSmsInfo = userSmsInfo;
2537
      }
2538
 
2539
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2540
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2541
        addUserSmsInfo_args args = new addUserSmsInfo_args();
2542
        args.setUserSmsInfo(userSmsInfo);
2543
        args.write(prot);
2544
        prot.writeMessageEnd();
2545
      }
2546
 
2547
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2548
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2549
          throw new IllegalStateException("Method call not finished!");
2550
        }
2551
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2552
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2553
        (new Client(prot)).recv_addUserSmsInfo();
2554
      }
2555
    }
2556
 
2557
    public void updateUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<updateUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2558
      checkReady();
2559
      updateUserSmsInfo_call method_call = new updateUserSmsInfo_call(userSmsInfo, resultHandler, this, ___protocolFactory, ___transport);
2560
      this.___currentMethod = method_call;
2561
      ___manager.call(method_call);
2562
    }
2563
 
2564
    public static class updateUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2565
      private UserSmsInfo userSmsInfo;
2566
      public updateUserSmsInfo_call(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<updateUserSmsInfo_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 {
2567
        super(client, protocolFactory, transport, resultHandler, false);
2568
        this.userSmsInfo = userSmsInfo;
2569
      }
2570
 
2571
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2572
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2573
        updateUserSmsInfo_args args = new updateUserSmsInfo_args();
2574
        args.setUserSmsInfo(userSmsInfo);
2575
        args.write(prot);
2576
        prot.writeMessageEnd();
2577
      }
2578
 
2579
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
2580
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2581
          throw new IllegalStateException("Method call not finished!");
2582
        }
2583
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2584
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2585
        return (new Client(prot)).recv_updateUserSmsInfo();
2586
      }
2587
    }
2588
 
2589
    public void getUserSmsInfo(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2590
      checkReady();
2591
      getUserSmsInfo_call method_call = new getUserSmsInfo_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2592
      this.___currentMethod = method_call;
2593
      ___manager.call(method_call);
2594
    }
2595
 
2596
    public static class getUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2597
      private long userId;
2598
      public getUserSmsInfo_call(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSmsInfo_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 {
2599
        super(client, protocolFactory, transport, resultHandler, false);
2600
        this.userId = userId;
2601
      }
2602
 
2603
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2604
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2605
        getUserSmsInfo_args args = new getUserSmsInfo_args();
2606
        args.setUserId(userId);
2607
        args.write(prot);
2608
        prot.writeMessageEnd();
2609
      }
2610
 
2611
      public UserSmsInfo getResult() throws HelperServiceException, org.apache.thrift.TException {
2612
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2613
          throw new IllegalStateException("Method call not finished!");
2614
        }
2615
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2616
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2617
        return (new Client(prot)).recv_getUserSmsInfo();
2618
      }
2619
    }
2620
 
2621
    public void getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<getAllUsersSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2622
      checkReady();
2623
      getAllUsersSmsInfo_call method_call = new getAllUsersSmsInfo_call(dndStatus, smsSubscribed, resultHandler, this, ___protocolFactory, ___transport);
2624
      this.___currentMethod = method_call;
2625
      ___manager.call(method_call);
2626
    }
2627
 
2628
    public static class getAllUsersSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2629
      private boolean dndStatus;
2630
      private boolean smsSubscribed;
2631
      public getAllUsersSmsInfo_call(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<getAllUsersSmsInfo_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 {
2632
        super(client, protocolFactory, transport, resultHandler, false);
2633
        this.dndStatus = dndStatus;
2634
        this.smsSubscribed = smsSubscribed;
2635
      }
2636
 
2637
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2638
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUsersSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2639
        getAllUsersSmsInfo_args args = new getAllUsersSmsInfo_args();
2640
        args.setDndStatus(dndStatus);
2641
        args.setSmsSubscribed(smsSubscribed);
2642
        args.write(prot);
2643
        prot.writeMessageEnd();
2644
      }
2645
 
2646
      public List<UserSmsInfo> getResult() throws HelperServiceException, org.apache.thrift.TException {
2647
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2648
          throw new IllegalStateException("Method call not finished!");
2649
        }
2650
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2651
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2652
        return (new Client(prot)).recv_getAllUsersSmsInfo();
2653
      }
2654
    }
2655
 
2656
    public void listSmsToGetDeliveryInfo(org.apache.thrift.async.AsyncMethodCallback<listSmsToGetDeliveryInfo_call> resultHandler) throws org.apache.thrift.TException {
2657
      checkReady();
2658
      listSmsToGetDeliveryInfo_call method_call = new listSmsToGetDeliveryInfo_call(resultHandler, this, ___protocolFactory, ___transport);
2659
      this.___currentMethod = method_call;
2660
      ___manager.call(method_call);
2661
    }
2662
 
2663
    public static class listSmsToGetDeliveryInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2664
      public listSmsToGetDeliveryInfo_call(org.apache.thrift.async.AsyncMethodCallback<listSmsToGetDeliveryInfo_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 {
2665
        super(client, protocolFactory, transport, resultHandler, false);
2666
      }
2667
 
2668
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2669
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listSmsToGetDeliveryInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2670
        listSmsToGetDeliveryInfo_args args = new listSmsToGetDeliveryInfo_args();
2671
        args.write(prot);
2672
        prot.writeMessageEnd();
2673
      }
2674
 
2675
      public List<UserSms> getResult() throws HelperServiceException, org.apache.thrift.TException {
2676
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2677
          throw new IllegalStateException("Method call not finished!");
2678
        }
2679
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2680
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2681
        return (new Client(prot)).recv_listSmsToGetDeliveryInfo();
2682
      }
2683
    }
2684
 
2685
    public void markMessagesAsSentToOperator(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSentToOperator_call> resultHandler) throws org.apache.thrift.TException {
2686
      checkReady();
2687
      markMessagesAsSentToOperator_call method_call = new markMessagesAsSentToOperator_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2688
      this.___currentMethod = method_call;
2689
      ___manager.call(method_call);
2690
    }
2691
 
2692
    public static class markMessagesAsSentToOperator_call extends org.apache.thrift.async.TAsyncMethodCall {
2693
      private List<UserSms> userSmsList;
2694
      public markMessagesAsSentToOperator_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSentToOperator_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 {
2695
        super(client, protocolFactory, transport, resultHandler, false);
2696
        this.userSmsList = userSmsList;
2697
      }
2698
 
2699
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2700
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSentToOperator", org.apache.thrift.protocol.TMessageType.CALL, 0));
2701
        markMessagesAsSentToOperator_args args = new markMessagesAsSentToOperator_args();
2702
        args.setUserSmsList(userSmsList);
2703
        args.write(prot);
2704
        prot.writeMessageEnd();
2705
      }
2706
 
2707
      public boolean getResult() throws org.apache.thrift.TException {
2708
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2709
          throw new IllegalStateException("Method call not finished!");
2710
        }
2711
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2712
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2713
        return (new Client(prot)).recv_markMessagesAsSentToOperator();
2714
      }
2715
    }
2716
 
2717
    public void markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSubmittedToSmsc_call> resultHandler) throws org.apache.thrift.TException {
2718
      checkReady();
2719
      markMessagesAsSubmittedToSmsc_call method_call = new markMessagesAsSubmittedToSmsc_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2720
      this.___currentMethod = method_call;
2721
      ___manager.call(method_call);
2722
    }
2723
 
2724
    public static class markMessagesAsSubmittedToSmsc_call extends org.apache.thrift.async.TAsyncMethodCall {
2725
      private List<UserSms> userSmsList;
2726
      public markMessagesAsSubmittedToSmsc_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSubmittedToSmsc_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 {
2727
        super(client, protocolFactory, transport, resultHandler, false);
2728
        this.userSmsList = userSmsList;
2729
      }
2730
 
2731
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2732
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSubmittedToSmsc", org.apache.thrift.protocol.TMessageType.CALL, 0));
2733
        markMessagesAsSubmittedToSmsc_args args = new markMessagesAsSubmittedToSmsc_args();
2734
        args.setUserSmsList(userSmsList);
2735
        args.write(prot);
2736
        prot.writeMessageEnd();
2737
      }
2738
 
2739
      public boolean getResult() throws org.apache.thrift.TException {
2740
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2741
          throw new IllegalStateException("Method call not finished!");
2742
        }
2743
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2744
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2745
        return (new Client(prot)).recv_markMessagesAsSubmittedToSmsc();
2746
      }
2747
    }
2748
 
2749
    public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException {
2750
      checkReady();
2751
      markMessagesAsSent_call method_call = new markMessagesAsSent_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2752
      this.___currentMethod = method_call;
2753
      ___manager.call(method_call);
2754
    }
2755
 
2756
    public static class markMessagesAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
2757
      private List<UserSms> userSmsList;
2758
      public markMessagesAsSent_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSent_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 {
2759
        super(client, protocolFactory, transport, resultHandler, false);
2760
        this.userSmsList = userSmsList;
2761
      }
2762
 
2763
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2764
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2765
        markMessagesAsSent_args args = new markMessagesAsSent_args();
2766
        args.setUserSmsList(userSmsList);
2767
        args.write(prot);
2768
        prot.writeMessageEnd();
2769
      }
2770
 
2771
      public boolean getResult() throws org.apache.thrift.TException {
2772
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2773
          throw new IllegalStateException("Method call not finished!");
2774
        }
2775
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2776
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2777
        return (new Client(prot)).recv_markMessagesAsSent();
2778
      }
2779
    }
2780
 
2781
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException {
2782
      checkReady();
2783
      markMessagesAsRetry_call method_call = new markMessagesAsRetry_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2784
      this.___currentMethod = method_call;
2785
      ___manager.call(method_call);
2786
    }
2787
 
2788
    public static class markMessagesAsRetry_call extends org.apache.thrift.async.TAsyncMethodCall {
2789
      private List<UserSms> userSmsList;
2790
      public markMessagesAsRetry_call(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsRetry_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 {
2791
        super(client, protocolFactory, transport, resultHandler, false);
2792
        this.userSmsList = userSmsList;
2793
      }
2794
 
2795
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2796
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsRetry", org.apache.thrift.protocol.TMessageType.CALL, 0));
2797
        markMessagesAsRetry_args args = new markMessagesAsRetry_args();
2798
        args.setUserSmsList(userSmsList);
2799
        args.write(prot);
2800
        prot.writeMessageEnd();
2801
      }
2802
 
2803
      public boolean getResult() throws org.apache.thrift.TException {
2804
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2805
          throw new IllegalStateException("Method call not finished!");
2806
        }
2807
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2808
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2809
        return (new Client(prot)).recv_markMessagesAsRetry();
2810
      }
2811
    }
2812
 
12696 amit.gupta 2813
    public void authoriseDealer(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<authoriseDealer_call> resultHandler) throws org.apache.thrift.TException {
2814
      checkReady();
2815
      authoriseDealer_call method_call = new authoriseDealer_call(dealer, resultHandler, this, ___protocolFactory, ___transport);
2816
      this.___currentMethod = method_call;
2817
      ___manager.call(method_call);
2818
    }
2819
 
2820
    public static class authoriseDealer_call extends org.apache.thrift.async.TAsyncMethodCall {
2821
      private DealerAuth dealer;
2822
      public authoriseDealer_call(DealerAuth dealer, org.apache.thrift.async.AsyncMethodCallback<authoriseDealer_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 {
2823
        super(client, protocolFactory, transport, resultHandler, false);
2824
        this.dealer = dealer;
2825
      }
2826
 
2827
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2828
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authoriseDealer", org.apache.thrift.protocol.TMessageType.CALL, 0));
2829
        authoriseDealer_args args = new authoriseDealer_args();
2830
        args.setDealer(dealer);
2831
        args.write(prot);
2832
        prot.writeMessageEnd();
2833
      }
2834
 
2835
      public DealerAuth getResult() throws org.apache.thrift.TException {
2836
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2837
          throw new IllegalStateException("Method call not finished!");
2838
        }
2839
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2840
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2841
        return (new Client(prot)).recv_authoriseDealer();
2842
      }
2843
    }
2844
 
3430 rajveer 2845
  }
2846
 
2847
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2848
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2849
    public Processor(I iface) {
2850
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2851
    }
2852
 
2853
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2854
      super(iface, getProcessMap(processMap));
2855
    }
2856
 
2857
    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) {
2858
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
2859
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
2860
      processMap.put("markEmailAsSent", new markEmailAsSent());
2861
      processMap.put("sendMail", new sendMail());
2862
      processMap.put("sendText", new sendText());
2863
      processMap.put("addMessage", new addMessage());
2864
      processMap.put("updateMessage", new updateMessage());
2865
      processMap.put("getMessage", new getMessage());
2866
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
2867
      processMap.put("addUser", new addUser());
2868
      processMap.put("deleteUser", new deleteUser());
2869
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
2870
      processMap.put("updatePassword", new updatePassword());
2871
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
2872
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
2873
      processMap.put("authenticateReportUser", new authenticateReportUser());
2874
      processMap.put("getReports", new getReports());
2875
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 2876
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 2877
      processMap.put("getAgents", new getAgents());
2878
      processMap.put("validateLogIn", new validateLogIn());
2879
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
2880
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
2881
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 2882
      processMap.put("saveQuickLink", new saveQuickLink());
2883
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 2884
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 2885
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
6322 amar.kumar 2886
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
7221 kshitij.so 2887
      processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());
7410 amar.kumar 2888
      processMap.put("getWarehouseIdsForAgent", new getWarehouseIdsForAgent());
12691 manish.sha 2889
      processMap.put("saveUserSmsForSending", new saveUserSmsForSending());
2890
      processMap.put("getSmsToBeSent", new getSmsToBeSent());
2891
      processMap.put("addUserSmsInfo", new addUserSmsInfo());
2892
      processMap.put("updateUserSmsInfo", new updateUserSmsInfo());
2893
      processMap.put("getUserSmsInfo", new getUserSmsInfo());
2894
      processMap.put("getAllUsersSmsInfo", new getAllUsersSmsInfo());
2895
      processMap.put("listSmsToGetDeliveryInfo", new listSmsToGetDeliveryInfo());
2896
      processMap.put("markMessagesAsSentToOperator", new markMessagesAsSentToOperator());
2897
      processMap.put("markMessagesAsSubmittedToSmsc", new markMessagesAsSubmittedToSmsc());
2898
      processMap.put("markMessagesAsSent", new markMessagesAsSent());
2899
      processMap.put("markMessagesAsRetry", new markMessagesAsRetry());
12696 amit.gupta 2900
      processMap.put("authoriseDealer", new authoriseDealer());
3430 rajveer 2901
      return processMap;
2902
    }
2903
 
2904
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2905
      public saveUserEmailForSending() {
2906
        super("saveUserEmailForSending");
2907
      }
2908
 
2909
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
2910
        return new saveUserEmailForSending_args();
2911
      }
2912
 
2913
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 2914
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
2915
        try {
8020 rajveer 2916
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType, args.cc, args.bcc, args.sourceId);
3206 mandeep.dh 2917
          result.setSuccessIsSet(true);
1395 varun.gupt 2918
        } catch (HelperServiceException se) {
2919
          result.se = se;
2920
        }
3430 rajveer 2921
        return result;
1395 varun.gupt 2922
      }
2923
    }
2924
 
3430 rajveer 2925
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
2926
      public getEmailsToBeSent() {
2927
        super("getEmailsToBeSent");
2928
      }
2929
 
2930
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
2931
        return new getEmailsToBeSent_args();
2932
      }
2933
 
2934
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2935
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
2936
        try {
3430 rajveer 2937
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 2938
        } catch (HelperServiceException se) {
2939
          result.se = se;
2940
        }
3430 rajveer 2941
        return result;
1422 varun.gupt 2942
      }
2943
    }
2944
 
3430 rajveer 2945
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
2946
      public markEmailAsSent() {
2947
        super("markEmailAsSent");
2948
      }
2949
 
2950
      protected markEmailAsSent_args getEmptyArgsInstance() {
2951
        return new markEmailAsSent_args();
2952
      }
2953
 
2954
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2955
        markEmailAsSent_result result = new markEmailAsSent_result();
2956
        try {
3430 rajveer 2957
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 2958
        } catch (HelperServiceException se) {
2959
          result.se = se;
2960
        }
3430 rajveer 2961
        return result;
1422 varun.gupt 2962
      }
2963
    }
2964
 
3430 rajveer 2965
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
2966
      public sendMail() {
2967
        super("sendMail");
2968
      }
2969
 
2970
      protected sendMail_args getEmptyArgsInstance() {
2971
        return new sendMail_args();
2972
      }
2973
 
2974
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 2975
        sendMail_result result = new sendMail_result();
2976
        try {
3430 rajveer 2977
          iface.sendMail(args.mail);
352 ashish 2978
        } catch (HelperServiceException se) {
2979
          result.se = se;
2980
        }
3430 rajveer 2981
        return result;
352 ashish 2982
      }
2983
    }
2984
 
3430 rajveer 2985
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
2986
      public sendText() {
2987
        super("sendText");
2988
      }
2989
 
2990
      protected sendText_args getEmptyArgsInstance() {
2991
        return new sendText_args();
2992
      }
2993
 
2994
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 2995
        sendText_result result = new sendText_result();
2996
        try {
3430 rajveer 2997
          iface.sendText(args.message);
352 ashish 2998
        } catch (HelperServiceException se) {
2999
          result.se = se;
3000
        }
3430 rajveer 3001
        return result;
352 ashish 3002
      }
3003
    }
3004
 
3430 rajveer 3005
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
3006
      public addMessage() {
3007
        super("addMessage");
3008
      }
3009
 
3010
      protected addMessage_args getEmptyArgsInstance() {
3011
        return new addMessage_args();
3012
      }
3013
 
3014
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 3015
        addMessage_result result = new addMessage_result();
3016
        try {
3430 rajveer 3017
          iface.addMessage(args.message);
352 ashish 3018
        } catch (HelperServiceException se) {
3019
          result.se = se;
3020
        }
3430 rajveer 3021
        return result;
352 ashish 3022
      }
3023
    }
3024
 
3430 rajveer 3025
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
3026
      public updateMessage() {
3027
        super("updateMessage");
3028
      }
3029
 
3030
      protected updateMessage_args getEmptyArgsInstance() {
3031
        return new updateMessage_args();
3032
      }
3033
 
3034
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 3035
        updateMessage_result result = new updateMessage_result();
3036
        try {
3430 rajveer 3037
          iface.updateMessage(args.id, args.message);
352 ashish 3038
        } catch (HelperServiceException se) {
3039
          result.se = se;
3040
        }
3430 rajveer 3041
        return result;
352 ashish 3042
      }
3043
    }
3044
 
3430 rajveer 3045
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
3046
      public getMessage() {
3047
        super("getMessage");
3048
      }
3049
 
3050
      protected getMessage_args getEmptyArgsInstance() {
3051
        return new getMessage_args();
3052
      }
3053
 
3054
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 3055
        getMessage_result result = new getMessage_result();
3056
        try {
3430 rajveer 3057
          result.success = iface.getMessage(args.id);
352 ashish 3058
        } catch (HelperServiceException se) {
3059
          result.se = se;
3060
        }
3430 rajveer 3061
        return result;
352 ashish 3062
      }
3063
    }
3064
 
3430 rajveer 3065
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
3066
      public getSubstitutedMessage() {
3067
        super("getSubstitutedMessage");
3068
      }
3069
 
3070
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
3071
        return new getSubstitutedMessage_args();
3072
      }
3073
 
3074
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 3075
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3076
        try {
3430 rajveer 3077
          result.success = iface.getSubstitutedMessage(args.id, args.params);
352 ashish 3078
        } catch (HelperServiceException se) {
3079
          result.se = se;
3080
        }
3430 rajveer 3081
        return result;
352 ashish 3082
      }
3083
    }
3084
 
3430 rajveer 3085
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
3086
      public addUser() {
3087
        super("addUser");
3088
      }
3089
 
3090
      protected addUser_args getEmptyArgsInstance() {
3091
        return new addUser_args();
3092
      }
3093
 
3094
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 3095
        addUser_result result = new addUser_result();
3096
        try {
3430 rajveer 3097
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 3098
          result.setSuccessIsSet(true);
3099
        } catch (HelperServiceException se) {
3100
          result.se = se;
3101
        }
3430 rajveer 3102
        return result;
495 rajveer 3103
      }
3104
    }
3105
 
3430 rajveer 3106
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
3107
      public deleteUser() {
3108
        super("deleteUser");
3109
      }
3110
 
3111
      protected deleteUser_args getEmptyArgsInstance() {
3112
        return new deleteUser_args();
3113
      }
3114
 
3115
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 3116
        deleteUser_result result = new deleteUser_result();
3117
        try {
3430 rajveer 3118
          result.success = iface.deleteUser(args.username);
495 rajveer 3119
          result.setSuccessIsSet(true);
3120
        } catch (HelperServiceException se) {
3121
          result.se = se;
3122
        }
3430 rajveer 3123
        return result;
495 rajveer 3124
      }
3125
    }
3126
 
3430 rajveer 3127
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
3128
      public authenticateDashboardUser() {
3129
        super("authenticateDashboardUser");
3130
      }
3131
 
3132
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
3133
        return new authenticateDashboardUser_args();
3134
      }
3135
 
3136
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 3137
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 3138
        try {
3430 rajveer 3139
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 3140
        } catch (HelperServiceException se) {
3141
          result.se = se;
3142
        }
3430 rajveer 3143
        return result;
495 rajveer 3144
      }
3145
    }
3146
 
3430 rajveer 3147
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
3148
      public updatePassword() {
3149
        super("updatePassword");
3150
      }
3151
 
3152
      protected updatePassword_args getEmptyArgsInstance() {
3153
        return new updatePassword_args();
3154
      }
3155
 
3156
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 3157
        updatePassword_result result = new updatePassword_result();
3158
        try {
3430 rajveer 3159
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 3160
          result.setSuccessIsSet(true);
3161
        } catch (HelperServiceException se) {
3162
          result.se = se;
3163
        }
3430 rajveer 3164
        return result;
495 rajveer 3165
      }
3166
    }
3167
 
3430 rajveer 3168
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
3169
      public authenticateLogisticsUser() {
3170
        super("authenticateLogisticsUser");
3171
      }
3172
 
3173
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
3174
        return new authenticateLogisticsUser_args();
3175
      }
3176
 
3177
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 3178
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3179
        try {
3430 rajveer 3180
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 3181
        } catch (HelperServiceException hse) {
3182
          result.hse = hse;
3183
        }
3430 rajveer 3184
        return result;
750 chandransh 3185
      }
3186
    }
3187
 
3430 rajveer 3188
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
3189
      public authenticateStatisticsUser() {
3190
        super("authenticateStatisticsUser");
3191
      }
3192
 
3193
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
3194
        return new authenticateStatisticsUser_args();
3195
      }
3196
 
3197
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 3198
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3199
        try {
3430 rajveer 3200
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 3201
        } catch (HelperServiceException hse) {
3202
          result.hse = hse;
3203
        }
3430 rajveer 3204
        return result;
1611 ankur.sing 3205
      }
3206
    }
3207
 
3430 rajveer 3208
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
3209
      public authenticateReportUser() {
3210
        super("authenticateReportUser");
3211
      }
3212
 
3213
      protected authenticateReportUser_args getEmptyArgsInstance() {
3214
        return new authenticateReportUser_args();
3215
      }
3216
 
3217
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 3218
        authenticateReportUser_result result = new authenticateReportUser_result();
3219
        try {
3430 rajveer 3220
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 3221
        } catch (HelperServiceException hse) {
3222
          result.hse = hse;
3223
        }
3430 rajveer 3224
        return result;
1891 ankur.sing 3225
      }
3226
    }
3227
 
3430 rajveer 3228
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
3229
      public getReports() {
3230
        super("getReports");
3231
      }
3232
 
3233
      protected getReports_args getEmptyArgsInstance() {
3234
        return new getReports_args();
3235
      }
3236
 
3237
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 3238
        getReports_result result = new getReports_result();
3430 rajveer 3239
        result.success = iface.getReports(args.role);
3240
        return result;
1891 ankur.sing 3241
      }
3242
    }
3243
 
3430 rajveer 3244
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
3245
      public authenticateCatalogUser() {
3246
        super("authenticateCatalogUser");
3247
      }
3248
 
3249
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
3250
        return new authenticateCatalogUser_args();
3251
      }
3252
 
3253
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 3254
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3255
        try {
6788 rajveer 3256
          result.success = iface.authenticateCatalogUser(args.username, args.password);
2024 ankur.sing 3257
        } catch (HelperServiceException hse) {
3258
          result.hse = hse;
3259
        }
3430 rajveer 3260
        return result;
2024 ankur.sing 3261
      }
3262
    }
3263
 
4544 varun.gupt 3264
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
3265
      public shareEntities() {
3266
        super("shareEntities");
3267
      }
3268
 
3269
      protected shareEntities_args getEmptyArgsInstance() {
3270
        return new shareEntities_args();
3271
      }
3272
 
3273
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
3274
        shareEntities_result result = new shareEntities_result();
3275
        try {
3276
          iface.shareEntities(args.entityIds, args.email);
3277
        } catch (HelperServiceException hse) {
3278
          result.hse = hse;
3279
        }
3280
        return result;
3281
      }
3282
    }
3283
 
4693 mandeep.dh 3284
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
3285
      public getAgents() {
3286
        super("getAgents");
3287
      }
3288
 
3289
      protected getAgents_args getEmptyArgsInstance() {
3290
        return new getAgents_args();
3291
      }
3292
 
3293
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
3294
        getAgents_result result = new getAgents_result();
3295
        result.success = iface.getAgents();
3296
        return result;
3297
      }
3298
    }
3299
 
3300
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
3301
      public validateLogIn() {
3302
        super("validateLogIn");
3303
      }
3304
 
3305
      protected validateLogIn_args getEmptyArgsInstance() {
3306
        return new validateLogIn_args();
3307
      }
3308
 
3309
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
3310
        validateLogIn_result result = new validateLogIn_result();
3311
        result.success = iface.validateLogIn(args.emailId, args.password);
3312
        result.setSuccessIsSet(true);
3313
        return result;
3314
      }
3315
    }
3316
 
3317
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
3318
      public updatePasswordForAgent() {
3319
        super("updatePasswordForAgent");
3320
      }
3321
 
3322
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
3323
        return new updatePasswordForAgent_args();
3324
      }
3325
 
3326
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
3327
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
3328
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
3329
        return result;
3330
      }
3331
    }
3332
 
3333
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
3334
      public getRoleNamesForAgent() {
3335
        super("getRoleNamesForAgent");
3336
      }
3337
 
3338
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
3339
        return new getRoleNamesForAgent_args();
3340
      }
3341
 
3342
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
3343
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
3344
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
3345
        return result;
3346
      }
3347
    }
3348
 
3349
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
3350
      public getPermissionsForRoleName() {
3351
        super("getPermissionsForRoleName");
3352
      }
3353
 
3354
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
3355
        return new getPermissionsForRoleName_args();
3356
      }
3357
 
3358
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
3359
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
3360
        result.success = iface.getPermissionsForRoleName(args.roleName);
3361
        return result;
3362
      }
3363
    }
3364
 
4806 varun.gupt 3365
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
3366
      public saveQuickLink() {
3367
        super("saveQuickLink");
3368
      }
3369
 
3370
      protected saveQuickLink_args getEmptyArgsInstance() {
3371
        return new saveQuickLink_args();
3372
      }
3373
 
3374
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
3375
        saveQuickLink_result result = new saveQuickLink_result();
3376
        try {
3377
          iface.saveQuickLink(args.url, args.text);
3378
        } catch (HelperServiceException hse) {
3379
          result.hse = hse;
3380
        }
3381
        return result;
3382
      }
3383
    }
3384
 
3385
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
3386
      public getQuickLinks() {
3387
        super("getQuickLinks");
3388
      }
3389
 
3390
      protected getQuickLinks_args getEmptyArgsInstance() {
3391
        return new getQuickLinks_args();
3392
      }
3393
 
3394
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
3395
        getQuickLinks_result result = new getQuickLinks_result();
3396
        try {
3397
          result.success = iface.getQuickLinks();
3398
        } catch (HelperServiceException hse) {
3399
          result.hse = hse;
3400
        }
3401
        return result;
3402
      }
3403
    }
3404
 
4996 varun.gupt 3405
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
3406
      public updateQuickLink() {
3407
        super("updateQuickLink");
3408
      }
3409
 
3410
      protected updateQuickLink_args getEmptyArgsInstance() {
3411
        return new updateQuickLink_args();
3412
      }
3413
 
3414
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
3415
        updateQuickLink_result result = new updateQuickLink_result();
3416
        try {
3417
          iface.updateQuickLink(args.id, args.url, args.text);
3418
        } catch (HelperServiceException hse) {
3419
          result.hse = hse;
3420
        }
3421
        return result;
3422
      }
3423
    }
3424
 
5055 varun.gupt 3425
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
3426
      public getEmailsForNotificationsSent() {
3427
        super("getEmailsForNotificationsSent");
3428
      }
3429
 
3430
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
3431
        return new getEmailsForNotificationsSent_args();
3432
      }
3433
 
3434
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
3435
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
3436
        try {
3437
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
3438
        } catch (HelperServiceException hse) {
3439
          result.hse = hse;
3440
        }
3441
        return result;
3442
      }
3443
    }
3444
 
6322 amar.kumar 3445
    private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {
3446
      public getOrderConfirmationMail() {
3447
        super("getOrderConfirmationMail");
3448
      }
3449
 
3450
      protected getOrderConfirmationMail_args getEmptyArgsInstance() {
3451
        return new getOrderConfirmationMail_args();
3452
      }
3453
 
3454
      protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {
3455
        getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
3456
        result.success = iface.getOrderConfirmationMail(args.orderId);
3457
        return result;
3458
      }
3459
    }
3460
 
7221 kshitij.so 3461
    private static class getOrderDeliveryMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderDeliveryMail_args> {
3462
      public getOrderDeliveryMail() {
3463
        super("getOrderDeliveryMail");
3464
      }
3465
 
3466
      protected getOrderDeliveryMail_args getEmptyArgsInstance() {
3467
        return new getOrderDeliveryMail_args();
3468
      }
3469
 
3470
      protected getOrderDeliveryMail_result getResult(I iface, getOrderDeliveryMail_args args) throws org.apache.thrift.TException {
3471
        getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
3472
        result.success = iface.getOrderDeliveryMail(args.orderId);
3473
        return result;
3474
      }
3475
    }
3476
 
7410 amar.kumar 3477
    private static class getWarehouseIdsForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseIdsForAgent_args> {
3478
      public getWarehouseIdsForAgent() {
3479
        super("getWarehouseIdsForAgent");
3480
      }
3481
 
3482
      protected getWarehouseIdsForAgent_args getEmptyArgsInstance() {
3483
        return new getWarehouseIdsForAgent_args();
3484
      }
3485
 
3486
      protected getWarehouseIdsForAgent_result getResult(I iface, getWarehouseIdsForAgent_args args) throws org.apache.thrift.TException {
3487
        getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
3488
        result.success = iface.getWarehouseIdsForAgent(args.agentEmailId);
3489
        return result;
3490
      }
3491
    }
3492
 
12691 manish.sha 3493
    private static class saveUserSmsForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserSmsForSending_args> {
3494
      public saveUserSmsForSending() {
3495
        super("saveUserSmsForSending");
3496
      }
3497
 
3498
      protected saveUserSmsForSending_args getEmptyArgsInstance() {
3499
        return new saveUserSmsForSending_args();
3500
      }
3501
 
3502
      protected saveUserSmsForSending_result getResult(I iface, saveUserSmsForSending_args args) throws org.apache.thrift.TException {
3503
        saveUserSmsForSending_result result = new saveUserSmsForSending_result();
3504
        try {
3505
          result.success = iface.saveUserSmsForSending(args.userId, args.mobileNo, args.text, args.type);
3506
          result.setSuccessIsSet(true);
3507
        } catch (HelperServiceException se) {
3508
          result.se = se;
3509
        }
3510
        return result;
3511
      }
3512
    }
3513
 
3514
    private static class getSmsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSmsToBeSent_args> {
3515
      public getSmsToBeSent() {
3516
        super("getSmsToBeSent");
3517
      }
3518
 
3519
      protected getSmsToBeSent_args getEmptyArgsInstance() {
3520
        return new getSmsToBeSent_args();
3521
      }
3522
 
3523
      protected getSmsToBeSent_result getResult(I iface, getSmsToBeSent_args args) throws org.apache.thrift.TException {
3524
        getSmsToBeSent_result result = new getSmsToBeSent_result();
3525
        try {
3526
          result.success = iface.getSmsToBeSent();
3527
        } catch (HelperServiceException se) {
3528
          result.se = se;
3529
        }
3530
        return result;
3531
      }
3532
    }
3533
 
3534
    private static class addUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUserSmsInfo_args> {
3535
      public addUserSmsInfo() {
3536
        super("addUserSmsInfo");
3537
      }
3538
 
3539
      protected addUserSmsInfo_args getEmptyArgsInstance() {
3540
        return new addUserSmsInfo_args();
3541
      }
3542
 
3543
      protected addUserSmsInfo_result getResult(I iface, addUserSmsInfo_args args) throws org.apache.thrift.TException {
3544
        addUserSmsInfo_result result = new addUserSmsInfo_result();
3545
        try {
3546
          iface.addUserSmsInfo(args.userSmsInfo);
3547
        } catch (HelperServiceException se) {
3548
          result.se = se;
3549
        }
3550
        return result;
3551
      }
3552
    }
3553
 
3554
    private static class updateUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUserSmsInfo_args> {
3555
      public updateUserSmsInfo() {
3556
        super("updateUserSmsInfo");
3557
      }
3558
 
3559
      protected updateUserSmsInfo_args getEmptyArgsInstance() {
3560
        return new updateUserSmsInfo_args();
3561
      }
3562
 
3563
      protected updateUserSmsInfo_result getResult(I iface, updateUserSmsInfo_args args) throws org.apache.thrift.TException {
3564
        updateUserSmsInfo_result result = new updateUserSmsInfo_result();
3565
        try {
3566
          result.success = iface.updateUserSmsInfo(args.userSmsInfo);
3567
          result.setSuccessIsSet(true);
3568
        } catch (HelperServiceException se) {
3569
          result.se = se;
3570
        }
3571
        return result;
3572
      }
3573
    }
3574
 
3575
    private static class getUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserSmsInfo_args> {
3576
      public getUserSmsInfo() {
3577
        super("getUserSmsInfo");
3578
      }
3579
 
3580
      protected getUserSmsInfo_args getEmptyArgsInstance() {
3581
        return new getUserSmsInfo_args();
3582
      }
3583
 
3584
      protected getUserSmsInfo_result getResult(I iface, getUserSmsInfo_args args) throws org.apache.thrift.TException {
3585
        getUserSmsInfo_result result = new getUserSmsInfo_result();
3586
        try {
3587
          result.success = iface.getUserSmsInfo(args.userId);
3588
        } catch (HelperServiceException se) {
3589
          result.se = se;
3590
        }
3591
        return result;
3592
      }
3593
    }
3594
 
3595
    private static class getAllUsersSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUsersSmsInfo_args> {
3596
      public getAllUsersSmsInfo() {
3597
        super("getAllUsersSmsInfo");
3598
      }
3599
 
3600
      protected getAllUsersSmsInfo_args getEmptyArgsInstance() {
3601
        return new getAllUsersSmsInfo_args();
3602
      }
3603
 
3604
      protected getAllUsersSmsInfo_result getResult(I iface, getAllUsersSmsInfo_args args) throws org.apache.thrift.TException {
3605
        getAllUsersSmsInfo_result result = new getAllUsersSmsInfo_result();
3606
        try {
3607
          result.success = iface.getAllUsersSmsInfo(args.dndStatus, args.smsSubscribed);
3608
        } catch (HelperServiceException se) {
3609
          result.se = se;
3610
        }
3611
        return result;
3612
      }
3613
    }
3614
 
3615
    private static class listSmsToGetDeliveryInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listSmsToGetDeliveryInfo_args> {
3616
      public listSmsToGetDeliveryInfo() {
3617
        super("listSmsToGetDeliveryInfo");
3618
      }
3619
 
3620
      protected listSmsToGetDeliveryInfo_args getEmptyArgsInstance() {
3621
        return new listSmsToGetDeliveryInfo_args();
3622
      }
3623
 
3624
      protected listSmsToGetDeliveryInfo_result getResult(I iface, listSmsToGetDeliveryInfo_args args) throws org.apache.thrift.TException {
3625
        listSmsToGetDeliveryInfo_result result = new listSmsToGetDeliveryInfo_result();
3626
        try {
3627
          result.success = iface.listSmsToGetDeliveryInfo();
3628
        } catch (HelperServiceException se) {
3629
          result.se = se;
3630
        }
3631
        return result;
3632
      }
3633
    }
3634
 
3635
    private static class markMessagesAsSentToOperator<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSentToOperator_args> {
3636
      public markMessagesAsSentToOperator() {
3637
        super("markMessagesAsSentToOperator");
3638
      }
3639
 
3640
      protected markMessagesAsSentToOperator_args getEmptyArgsInstance() {
3641
        return new markMessagesAsSentToOperator_args();
3642
      }
3643
 
3644
      protected markMessagesAsSentToOperator_result getResult(I iface, markMessagesAsSentToOperator_args args) throws org.apache.thrift.TException {
3645
        markMessagesAsSentToOperator_result result = new markMessagesAsSentToOperator_result();
3646
        result.success = iface.markMessagesAsSentToOperator(args.userSmsList);
3647
        result.setSuccessIsSet(true);
3648
        return result;
3649
      }
3650
    }
3651
 
3652
    private static class markMessagesAsSubmittedToSmsc<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSubmittedToSmsc_args> {
3653
      public markMessagesAsSubmittedToSmsc() {
3654
        super("markMessagesAsSubmittedToSmsc");
3655
      }
3656
 
3657
      protected markMessagesAsSubmittedToSmsc_args getEmptyArgsInstance() {
3658
        return new markMessagesAsSubmittedToSmsc_args();
3659
      }
3660
 
3661
      protected markMessagesAsSubmittedToSmsc_result getResult(I iface, markMessagesAsSubmittedToSmsc_args args) throws org.apache.thrift.TException {
3662
        markMessagesAsSubmittedToSmsc_result result = new markMessagesAsSubmittedToSmsc_result();
3663
        result.success = iface.markMessagesAsSubmittedToSmsc(args.userSmsList);
3664
        result.setSuccessIsSet(true);
3665
        return result;
3666
      }
3667
    }
3668
 
3669
    private static class markMessagesAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSent_args> {
3670
      public markMessagesAsSent() {
3671
        super("markMessagesAsSent");
3672
      }
3673
 
3674
      protected markMessagesAsSent_args getEmptyArgsInstance() {
3675
        return new markMessagesAsSent_args();
3676
      }
3677
 
3678
      protected markMessagesAsSent_result getResult(I iface, markMessagesAsSent_args args) throws org.apache.thrift.TException {
3679
        markMessagesAsSent_result result = new markMessagesAsSent_result();
3680
        result.success = iface.markMessagesAsSent(args.userSmsList);
3681
        result.setSuccessIsSet(true);
3682
        return result;
3683
      }
3684
    }
3685
 
3686
    private static class markMessagesAsRetry<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsRetry_args> {
3687
      public markMessagesAsRetry() {
3688
        super("markMessagesAsRetry");
3689
      }
3690
 
3691
      protected markMessagesAsRetry_args getEmptyArgsInstance() {
3692
        return new markMessagesAsRetry_args();
3693
      }
3694
 
3695
      protected markMessagesAsRetry_result getResult(I iface, markMessagesAsRetry_args args) throws org.apache.thrift.TException {
3696
        markMessagesAsRetry_result result = new markMessagesAsRetry_result();
3697
        result.success = iface.markMessagesAsRetry(args.userSmsList);
3698
        result.setSuccessIsSet(true);
3699
        return result;
3700
      }
3701
    }
3702
 
12696 amit.gupta 3703
    private static class authoriseDealer<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authoriseDealer_args> {
3704
      public authoriseDealer() {
3705
        super("authoriseDealer");
3706
      }
3707
 
3708
      protected authoriseDealer_args getEmptyArgsInstance() {
3709
        return new authoriseDealer_args();
3710
      }
3711
 
3712
      protected authoriseDealer_result getResult(I iface, authoriseDealer_args args) throws org.apache.thrift.TException {
3713
        authoriseDealer_result result = new authoriseDealer_result();
3714
        result.success = iface.authoriseDealer(args.dealer);
3715
        return result;
3716
      }
3717
    }
3718
 
352 ashish 3719
  }
3720
 
3430 rajveer 3721
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
3722
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 3723
 
5864 rajveer 3724
    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 3725
    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);
3726
    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);
3727
    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);
3728
    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);
3729
    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 3730
    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);
3731
    private static final org.apache.thrift.protocol.TField BCC_FIELD_DESC = new org.apache.thrift.protocol.TField("bcc", org.apache.thrift.protocol.TType.LIST, (short)8);
8020 rajveer 3732
    private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("sourceId", org.apache.thrift.protocol.TType.I64, (short)9);
1395 varun.gupt 3733
 
5864 rajveer 3734
    private List<String> emailTo; // required
3430 rajveer 3735
    private String emailFrom; // required
3736
    private String subject; // required
3737
    private String body; // required
3738
    private String source; // required
3739
    private String emailType; // required
5864 rajveer 3740
    private List<String> cc; // required
3741
    private List<String> bcc; // required
8020 rajveer 3742
    private long sourceId; // required
1395 varun.gupt 3743
 
3744
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3745
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 3746
      EMAIL_TO((short)1, "emailTo"),
3747
      EMAIL_FROM((short)2, "emailFrom"),
3748
      SUBJECT((short)3, "subject"),
3749
      BODY((short)4, "body"),
3750
      SOURCE((short)5, "source"),
5864 rajveer 3751
      EMAIL_TYPE((short)6, "emailType"),
3752
      CC((short)7, "cc"),
8020 rajveer 3753
      BCC((short)8, "bcc"),
3754
      SOURCE_ID((short)9, "sourceId");
1395 varun.gupt 3755
 
3756
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3757
 
3758
      static {
3759
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3760
          byName.put(field.getFieldName(), field);
3761
        }
3762
      }
3763
 
3764
      /**
3765
       * Find the _Fields constant that matches fieldId, or null if its not found.
3766
       */
3767
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3768
        switch(fieldId) {
3769
          case 1: // EMAIL_TO
3770
            return EMAIL_TO;
3771
          case 2: // EMAIL_FROM
3772
            return EMAIL_FROM;
3773
          case 3: // SUBJECT
3774
            return SUBJECT;
3775
          case 4: // BODY
3776
            return BODY;
3777
          case 5: // SOURCE
3778
            return SOURCE;
3779
          case 6: // EMAIL_TYPE
3780
            return EMAIL_TYPE;
5864 rajveer 3781
          case 7: // CC
3782
            return CC;
3783
          case 8: // BCC
3784
            return BCC;
8020 rajveer 3785
          case 9: // SOURCE_ID
3786
            return SOURCE_ID;
3430 rajveer 3787
          default:
3788
            return null;
3789
        }
1395 varun.gupt 3790
      }
3791
 
3792
      /**
3793
       * Find the _Fields constant that matches fieldId, throwing an exception
3794
       * if it is not found.
3795
       */
3796
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3797
        _Fields fields = findByThriftId(fieldId);
3798
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3799
        return fields;
3800
      }
3801
 
3802
      /**
3803
       * Find the _Fields constant that matches name, or null if its not found.
3804
       */
3805
      public static _Fields findByName(String name) {
3806
        return byName.get(name);
3807
      }
3808
 
3809
      private final short _thriftId;
3810
      private final String _fieldName;
3811
 
3812
      _Fields(short thriftId, String fieldName) {
3813
        _thriftId = thriftId;
3814
        _fieldName = fieldName;
3815
      }
3816
 
3817
      public short getThriftFieldId() {
3818
        return _thriftId;
3819
      }
3820
 
3821
      public String getFieldName() {
3822
        return _fieldName;
3823
      }
3824
    }
3825
 
3826
    // isset id assignments
8020 rajveer 3827
    private static final int __SOURCEID_ISSET_ID = 0;
3828
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3829
 
3430 rajveer 3830
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3831
    static {
3430 rajveer 3832
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3833
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 3834
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3835
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 3836
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3837
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3838
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3839
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3840
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3841
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3842
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3843
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3844
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3845
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5864 rajveer 3846
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3847
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3848
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3849
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3850
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3851
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8020 rajveer 3852
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3853
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 3854
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3855
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 3856
    }
3857
 
3858
    public saveUserEmailForSending_args() {
3859
    }
3860
 
3861
    public saveUserEmailForSending_args(
5864 rajveer 3862
      List<String> emailTo,
1395 varun.gupt 3863
      String emailFrom,
3864
      String subject,
3865
      String body,
3866
      String source,
5864 rajveer 3867
      String emailType,
3868
      List<String> cc,
8020 rajveer 3869
      List<String> bcc,
3870
      long sourceId)
1395 varun.gupt 3871
    {
3872
      this();
3873
      this.emailTo = emailTo;
3874
      this.emailFrom = emailFrom;
3875
      this.subject = subject;
3876
      this.body = body;
3877
      this.source = source;
3878
      this.emailType = emailType;
5864 rajveer 3879
      this.cc = cc;
3880
      this.bcc = bcc;
8020 rajveer 3881
      this.sourceId = sourceId;
3882
      setSourceIdIsSet(true);
1395 varun.gupt 3883
    }
3884
 
3885
    /**
3886
     * Performs a deep copy on <i>other</i>.
3887
     */
3888
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
8020 rajveer 3889
      __isset_bit_vector.clear();
3890
      __isset_bit_vector.or(other.__isset_bit_vector);
1395 varun.gupt 3891
      if (other.isSetEmailTo()) {
5864 rajveer 3892
        List<String> __this__emailTo = new ArrayList<String>();
3893
        for (String other_element : other.emailTo) {
3894
          __this__emailTo.add(other_element);
3895
        }
3896
        this.emailTo = __this__emailTo;
1395 varun.gupt 3897
      }
3898
      if (other.isSetEmailFrom()) {
3899
        this.emailFrom = other.emailFrom;
3900
      }
3901
      if (other.isSetSubject()) {
3902
        this.subject = other.subject;
3903
      }
3904
      if (other.isSetBody()) {
3905
        this.body = other.body;
3906
      }
3907
      if (other.isSetSource()) {
3908
        this.source = other.source;
3909
      }
3910
      if (other.isSetEmailType()) {
3911
        this.emailType = other.emailType;
3912
      }
5864 rajveer 3913
      if (other.isSetCc()) {
3914
        List<String> __this__cc = new ArrayList<String>();
3915
        for (String other_element : other.cc) {
3916
          __this__cc.add(other_element);
3917
        }
3918
        this.cc = __this__cc;
3919
      }
3920
      if (other.isSetBcc()) {
3921
        List<String> __this__bcc = new ArrayList<String>();
3922
        for (String other_element : other.bcc) {
3923
          __this__bcc.add(other_element);
3924
        }
3925
        this.bcc = __this__bcc;
3926
      }
8020 rajveer 3927
      this.sourceId = other.sourceId;
1395 varun.gupt 3928
    }
3929
 
3930
    public saveUserEmailForSending_args deepCopy() {
3931
      return new saveUserEmailForSending_args(this);
3932
    }
3933
 
3430 rajveer 3934
    @Override
3935
    public void clear() {
3936
      this.emailTo = null;
3937
      this.emailFrom = null;
3938
      this.subject = null;
3939
      this.body = null;
3940
      this.source = null;
3941
      this.emailType = null;
5864 rajveer 3942
      this.cc = null;
3943
      this.bcc = null;
8020 rajveer 3944
      setSourceIdIsSet(false);
3945
      this.sourceId = 0;
1395 varun.gupt 3946
    }
3947
 
5864 rajveer 3948
    public int getEmailToSize() {
3949
      return (this.emailTo == null) ? 0 : this.emailTo.size();
3950
    }
3951
 
3952
    public java.util.Iterator<String> getEmailToIterator() {
3953
      return (this.emailTo == null) ? null : this.emailTo.iterator();
3954
    }
3955
 
3956
    public void addToEmailTo(String elem) {
3957
      if (this.emailTo == null) {
3958
        this.emailTo = new ArrayList<String>();
3959
      }
3960
      this.emailTo.add(elem);
3961
    }
3962
 
3963
    public List<String> getEmailTo() {
1395 varun.gupt 3964
      return this.emailTo;
3965
    }
3966
 
5864 rajveer 3967
    public void setEmailTo(List<String> emailTo) {
1395 varun.gupt 3968
      this.emailTo = emailTo;
3969
    }
3970
 
3971
    public void unsetEmailTo() {
3972
      this.emailTo = null;
3973
    }
3974
 
3430 rajveer 3975
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3976
    public boolean isSetEmailTo() {
3977
      return this.emailTo != null;
3978
    }
3979
 
3980
    public void setEmailToIsSet(boolean value) {
3981
      if (!value) {
3982
        this.emailTo = null;
3983
      }
3984
    }
3985
 
3986
    public String getEmailFrom() {
3987
      return this.emailFrom;
3988
    }
3989
 
3430 rajveer 3990
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 3991
      this.emailFrom = emailFrom;
3992
    }
3993
 
3994
    public void unsetEmailFrom() {
3995
      this.emailFrom = null;
3996
    }
3997
 
3430 rajveer 3998
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3999
    public boolean isSetEmailFrom() {
4000
      return this.emailFrom != null;
4001
    }
4002
 
4003
    public void setEmailFromIsSet(boolean value) {
4004
      if (!value) {
4005
        this.emailFrom = null;
4006
      }
4007
    }
4008
 
4009
    public String getSubject() {
4010
      return this.subject;
4011
    }
4012
 
3430 rajveer 4013
    public void setSubject(String subject) {
1395 varun.gupt 4014
      this.subject = subject;
4015
    }
4016
 
4017
    public void unsetSubject() {
4018
      this.subject = null;
4019
    }
4020
 
3430 rajveer 4021
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4022
    public boolean isSetSubject() {
4023
      return this.subject != null;
4024
    }
4025
 
4026
    public void setSubjectIsSet(boolean value) {
4027
      if (!value) {
4028
        this.subject = null;
4029
      }
4030
    }
4031
 
4032
    public String getBody() {
4033
      return this.body;
4034
    }
4035
 
3430 rajveer 4036
    public void setBody(String body) {
1395 varun.gupt 4037
      this.body = body;
4038
    }
4039
 
4040
    public void unsetBody() {
4041
      this.body = null;
4042
    }
4043
 
3430 rajveer 4044
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4045
    public boolean isSetBody() {
4046
      return this.body != null;
4047
    }
4048
 
4049
    public void setBodyIsSet(boolean value) {
4050
      if (!value) {
4051
        this.body = null;
4052
      }
4053
    }
4054
 
4055
    public String getSource() {
4056
      return this.source;
4057
    }
4058
 
3430 rajveer 4059
    public void setSource(String source) {
1395 varun.gupt 4060
      this.source = source;
4061
    }
4062
 
4063
    public void unsetSource() {
4064
      this.source = null;
4065
    }
4066
 
3430 rajveer 4067
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4068
    public boolean isSetSource() {
4069
      return this.source != null;
4070
    }
4071
 
4072
    public void setSourceIsSet(boolean value) {
4073
      if (!value) {
4074
        this.source = null;
4075
      }
4076
    }
4077
 
4078
    public String getEmailType() {
4079
      return this.emailType;
4080
    }
4081
 
3430 rajveer 4082
    public void setEmailType(String emailType) {
1395 varun.gupt 4083
      this.emailType = emailType;
4084
    }
4085
 
4086
    public void unsetEmailType() {
4087
      this.emailType = null;
4088
    }
4089
 
3430 rajveer 4090
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4091
    public boolean isSetEmailType() {
4092
      return this.emailType != null;
4093
    }
4094
 
4095
    public void setEmailTypeIsSet(boolean value) {
4096
      if (!value) {
4097
        this.emailType = null;
4098
      }
4099
    }
4100
 
5864 rajveer 4101
    public int getCcSize() {
4102
      return (this.cc == null) ? 0 : this.cc.size();
4103
    }
4104
 
4105
    public java.util.Iterator<String> getCcIterator() {
4106
      return (this.cc == null) ? null : this.cc.iterator();
4107
    }
4108
 
4109
    public void addToCc(String elem) {
4110
      if (this.cc == null) {
4111
        this.cc = new ArrayList<String>();
4112
      }
4113
      this.cc.add(elem);
4114
    }
4115
 
4116
    public List<String> getCc() {
4117
      return this.cc;
4118
    }
4119
 
4120
    public void setCc(List<String> cc) {
4121
      this.cc = cc;
4122
    }
4123
 
4124
    public void unsetCc() {
4125
      this.cc = null;
4126
    }
4127
 
4128
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
4129
    public boolean isSetCc() {
4130
      return this.cc != null;
4131
    }
4132
 
4133
    public void setCcIsSet(boolean value) {
4134
      if (!value) {
4135
        this.cc = null;
4136
      }
4137
    }
4138
 
4139
    public int getBccSize() {
4140
      return (this.bcc == null) ? 0 : this.bcc.size();
4141
    }
4142
 
4143
    public java.util.Iterator<String> getBccIterator() {
4144
      return (this.bcc == null) ? null : this.bcc.iterator();
4145
    }
4146
 
4147
    public void addToBcc(String elem) {
4148
      if (this.bcc == null) {
4149
        this.bcc = new ArrayList<String>();
4150
      }
4151
      this.bcc.add(elem);
4152
    }
4153
 
4154
    public List<String> getBcc() {
4155
      return this.bcc;
4156
    }
4157
 
4158
    public void setBcc(List<String> bcc) {
4159
      this.bcc = bcc;
4160
    }
4161
 
4162
    public void unsetBcc() {
4163
      this.bcc = null;
4164
    }
4165
 
4166
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
4167
    public boolean isSetBcc() {
4168
      return this.bcc != null;
4169
    }
4170
 
4171
    public void setBccIsSet(boolean value) {
4172
      if (!value) {
4173
        this.bcc = null;
4174
      }
4175
    }
4176
 
8020 rajveer 4177
    public long getSourceId() {
4178
      return this.sourceId;
4179
    }
4180
 
4181
    public void setSourceId(long sourceId) {
4182
      this.sourceId = sourceId;
4183
      setSourceIdIsSet(true);
4184
    }
4185
 
4186
    public void unsetSourceId() {
4187
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
4188
    }
4189
 
4190
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
4191
    public boolean isSetSourceId() {
4192
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
4193
    }
4194
 
4195
    public void setSourceIdIsSet(boolean value) {
4196
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
4197
    }
4198
 
1395 varun.gupt 4199
    public void setFieldValue(_Fields field, Object value) {
4200
      switch (field) {
4201
      case EMAIL_TO:
4202
        if (value == null) {
4203
          unsetEmailTo();
4204
        } else {
5864 rajveer 4205
          setEmailTo((List<String>)value);
1395 varun.gupt 4206
        }
4207
        break;
4208
 
4209
      case EMAIL_FROM:
4210
        if (value == null) {
4211
          unsetEmailFrom();
4212
        } else {
4213
          setEmailFrom((String)value);
4214
        }
4215
        break;
4216
 
4217
      case SUBJECT:
4218
        if (value == null) {
4219
          unsetSubject();
4220
        } else {
4221
          setSubject((String)value);
4222
        }
4223
        break;
4224
 
4225
      case BODY:
4226
        if (value == null) {
4227
          unsetBody();
4228
        } else {
4229
          setBody((String)value);
4230
        }
4231
        break;
4232
 
4233
      case SOURCE:
4234
        if (value == null) {
4235
          unsetSource();
4236
        } else {
4237
          setSource((String)value);
4238
        }
4239
        break;
4240
 
4241
      case EMAIL_TYPE:
4242
        if (value == null) {
4243
          unsetEmailType();
4244
        } else {
4245
          setEmailType((String)value);
4246
        }
4247
        break;
4248
 
5864 rajveer 4249
      case CC:
4250
        if (value == null) {
4251
          unsetCc();
4252
        } else {
4253
          setCc((List<String>)value);
4254
        }
4255
        break;
4256
 
4257
      case BCC:
4258
        if (value == null) {
4259
          unsetBcc();
4260
        } else {
4261
          setBcc((List<String>)value);
4262
        }
4263
        break;
4264
 
8020 rajveer 4265
      case SOURCE_ID:
4266
        if (value == null) {
4267
          unsetSourceId();
4268
        } else {
4269
          setSourceId((Long)value);
4270
        }
4271
        break;
4272
 
1395 varun.gupt 4273
      }
4274
    }
4275
 
4276
    public Object getFieldValue(_Fields field) {
4277
      switch (field) {
4278
      case EMAIL_TO:
4279
        return getEmailTo();
4280
 
4281
      case EMAIL_FROM:
4282
        return getEmailFrom();
4283
 
4284
      case SUBJECT:
4285
        return getSubject();
4286
 
4287
      case BODY:
4288
        return getBody();
4289
 
4290
      case SOURCE:
4291
        return getSource();
4292
 
4293
      case EMAIL_TYPE:
4294
        return getEmailType();
4295
 
5864 rajveer 4296
      case CC:
4297
        return getCc();
4298
 
4299
      case BCC:
4300
        return getBcc();
4301
 
8020 rajveer 4302
      case SOURCE_ID:
4303
        return Long.valueOf(getSourceId());
4304
 
1395 varun.gupt 4305
      }
4306
      throw new IllegalStateException();
4307
    }
4308
 
3430 rajveer 4309
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4310
    public boolean isSet(_Fields field) {
4311
      if (field == null) {
4312
        throw new IllegalArgumentException();
4313
      }
1395 varun.gupt 4314
 
4315
      switch (field) {
4316
      case EMAIL_TO:
4317
        return isSetEmailTo();
4318
      case EMAIL_FROM:
4319
        return isSetEmailFrom();
4320
      case SUBJECT:
4321
        return isSetSubject();
4322
      case BODY:
4323
        return isSetBody();
4324
      case SOURCE:
4325
        return isSetSource();
4326
      case EMAIL_TYPE:
4327
        return isSetEmailType();
5864 rajveer 4328
      case CC:
4329
        return isSetCc();
4330
      case BCC:
4331
        return isSetBcc();
8020 rajveer 4332
      case SOURCE_ID:
4333
        return isSetSourceId();
1395 varun.gupt 4334
      }
4335
      throw new IllegalStateException();
4336
    }
4337
 
4338
    @Override
4339
    public boolean equals(Object that) {
4340
      if (that == null)
4341
        return false;
4342
      if (that instanceof saveUserEmailForSending_args)
4343
        return this.equals((saveUserEmailForSending_args)that);
4344
      return false;
4345
    }
4346
 
4347
    public boolean equals(saveUserEmailForSending_args that) {
4348
      if (that == null)
4349
        return false;
4350
 
4351
      boolean this_present_emailTo = true && this.isSetEmailTo();
4352
      boolean that_present_emailTo = true && that.isSetEmailTo();
4353
      if (this_present_emailTo || that_present_emailTo) {
4354
        if (!(this_present_emailTo && that_present_emailTo))
4355
          return false;
4356
        if (!this.emailTo.equals(that.emailTo))
4357
          return false;
4358
      }
4359
 
4360
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
4361
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
4362
      if (this_present_emailFrom || that_present_emailFrom) {
4363
        if (!(this_present_emailFrom && that_present_emailFrom))
4364
          return false;
4365
        if (!this.emailFrom.equals(that.emailFrom))
4366
          return false;
4367
      }
4368
 
4369
      boolean this_present_subject = true && this.isSetSubject();
4370
      boolean that_present_subject = true && that.isSetSubject();
4371
      if (this_present_subject || that_present_subject) {
4372
        if (!(this_present_subject && that_present_subject))
4373
          return false;
4374
        if (!this.subject.equals(that.subject))
4375
          return false;
4376
      }
4377
 
4378
      boolean this_present_body = true && this.isSetBody();
4379
      boolean that_present_body = true && that.isSetBody();
4380
      if (this_present_body || that_present_body) {
4381
        if (!(this_present_body && that_present_body))
4382
          return false;
4383
        if (!this.body.equals(that.body))
4384
          return false;
4385
      }
4386
 
4387
      boolean this_present_source = true && this.isSetSource();
4388
      boolean that_present_source = true && that.isSetSource();
4389
      if (this_present_source || that_present_source) {
4390
        if (!(this_present_source && that_present_source))
4391
          return false;
4392
        if (!this.source.equals(that.source))
4393
          return false;
4394
      }
4395
 
4396
      boolean this_present_emailType = true && this.isSetEmailType();
4397
      boolean that_present_emailType = true && that.isSetEmailType();
4398
      if (this_present_emailType || that_present_emailType) {
4399
        if (!(this_present_emailType && that_present_emailType))
4400
          return false;
4401
        if (!this.emailType.equals(that.emailType))
4402
          return false;
4403
      }
4404
 
5864 rajveer 4405
      boolean this_present_cc = true && this.isSetCc();
4406
      boolean that_present_cc = true && that.isSetCc();
4407
      if (this_present_cc || that_present_cc) {
4408
        if (!(this_present_cc && that_present_cc))
4409
          return false;
4410
        if (!this.cc.equals(that.cc))
4411
          return false;
4412
      }
4413
 
4414
      boolean this_present_bcc = true && this.isSetBcc();
4415
      boolean that_present_bcc = true && that.isSetBcc();
4416
      if (this_present_bcc || that_present_bcc) {
4417
        if (!(this_present_bcc && that_present_bcc))
4418
          return false;
4419
        if (!this.bcc.equals(that.bcc))
4420
          return false;
4421
      }
4422
 
8020 rajveer 4423
      boolean this_present_sourceId = true;
4424
      boolean that_present_sourceId = true;
4425
      if (this_present_sourceId || that_present_sourceId) {
4426
        if (!(this_present_sourceId && that_present_sourceId))
4427
          return false;
4428
        if (this.sourceId != that.sourceId)
4429
          return false;
4430
      }
4431
 
1395 varun.gupt 4432
      return true;
4433
    }
4434
 
4435
    @Override
4436
    public int hashCode() {
4437
      return 0;
4438
    }
4439
 
4440
    public int compareTo(saveUserEmailForSending_args other) {
4441
      if (!getClass().equals(other.getClass())) {
4442
        return getClass().getName().compareTo(other.getClass().getName());
4443
      }
4444
 
4445
      int lastComparison = 0;
4446
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
4447
 
3430 rajveer 4448
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 4449
      if (lastComparison != 0) {
4450
        return lastComparison;
4451
      }
3430 rajveer 4452
      if (isSetEmailTo()) {
4453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
4454
        if (lastComparison != 0) {
4455
          return lastComparison;
4456
        }
1395 varun.gupt 4457
      }
3430 rajveer 4458
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 4459
      if (lastComparison != 0) {
4460
        return lastComparison;
4461
      }
3430 rajveer 4462
      if (isSetEmailFrom()) {
4463
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
4464
        if (lastComparison != 0) {
4465
          return lastComparison;
4466
        }
1395 varun.gupt 4467
      }
3430 rajveer 4468
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 4469
      if (lastComparison != 0) {
4470
        return lastComparison;
4471
      }
3430 rajveer 4472
      if (isSetSubject()) {
4473
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
4474
        if (lastComparison != 0) {
4475
          return lastComparison;
4476
        }
1395 varun.gupt 4477
      }
3430 rajveer 4478
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 4479
      if (lastComparison != 0) {
4480
        return lastComparison;
4481
      }
3430 rajveer 4482
      if (isSetBody()) {
4483
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
4484
        if (lastComparison != 0) {
4485
          return lastComparison;
4486
        }
1395 varun.gupt 4487
      }
3430 rajveer 4488
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 4489
      if (lastComparison != 0) {
4490
        return lastComparison;
4491
      }
3430 rajveer 4492
      if (isSetSource()) {
4493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
4494
        if (lastComparison != 0) {
4495
          return lastComparison;
4496
        }
1395 varun.gupt 4497
      }
3430 rajveer 4498
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 4499
      if (lastComparison != 0) {
4500
        return lastComparison;
4501
      }
3430 rajveer 4502
      if (isSetEmailType()) {
4503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
4504
        if (lastComparison != 0) {
4505
          return lastComparison;
4506
        }
1395 varun.gupt 4507
      }
5864 rajveer 4508
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
4509
      if (lastComparison != 0) {
4510
        return lastComparison;
4511
      }
4512
      if (isSetCc()) {
4513
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
4514
        if (lastComparison != 0) {
4515
          return lastComparison;
4516
        }
4517
      }
4518
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
4519
      if (lastComparison != 0) {
4520
        return lastComparison;
4521
      }
4522
      if (isSetBcc()) {
4523
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
4524
        if (lastComparison != 0) {
4525
          return lastComparison;
4526
        }
4527
      }
8020 rajveer 4528
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
4529
      if (lastComparison != 0) {
4530
        return lastComparison;
4531
      }
4532
      if (isSetSourceId()) {
4533
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
4534
        if (lastComparison != 0) {
4535
          return lastComparison;
4536
        }
4537
      }
1395 varun.gupt 4538
      return 0;
4539
    }
4540
 
3430 rajveer 4541
    public _Fields fieldForId(int fieldId) {
4542
      return _Fields.findByThriftId(fieldId);
4543
    }
4544
 
4545
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4546
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 4547
      iprot.readStructBegin();
4548
      while (true)
4549
      {
4550
        field = iprot.readFieldBegin();
3430 rajveer 4551
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 4552
          break;
4553
        }
3430 rajveer 4554
        switch (field.id) {
4555
          case 1: // EMAIL_TO
5864 rajveer 4556
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4557
              {
4558
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
4559
                this.emailTo = new ArrayList<String>(_list20.size);
4560
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
4561
                {
4562
                  String _elem22; // required
4563
                  _elem22 = iprot.readString();
4564
                  this.emailTo.add(_elem22);
4565
                }
4566
                iprot.readListEnd();
4567
              }
3430 rajveer 4568
            } else { 
4569
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4570
            }
4571
            break;
4572
          case 2: // EMAIL_FROM
4573
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4574
              this.emailFrom = iprot.readString();
4575
            } else { 
4576
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4577
            }
4578
            break;
4579
          case 3: // SUBJECT
4580
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4581
              this.subject = iprot.readString();
4582
            } else { 
4583
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4584
            }
4585
            break;
4586
          case 4: // BODY
4587
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4588
              this.body = iprot.readString();
4589
            } else { 
4590
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4591
            }
4592
            break;
4593
          case 5: // SOURCE
4594
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4595
              this.source = iprot.readString();
4596
            } else { 
4597
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4598
            }
4599
            break;
4600
          case 6: // EMAIL_TYPE
4601
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4602
              this.emailType = iprot.readString();
4603
            } else { 
4604
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4605
            }
4606
            break;
5864 rajveer 4607
          case 7: // CC
4608
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4609
              {
4610
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
4611
                this.cc = new ArrayList<String>(_list23.size);
4612
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
4613
                {
4614
                  String _elem25; // required
4615
                  _elem25 = iprot.readString();
4616
                  this.cc.add(_elem25);
4617
                }
4618
                iprot.readListEnd();
4619
              }
4620
            } else { 
4621
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4622
            }
4623
            break;
4624
          case 8: // BCC
4625
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4626
              {
4627
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
4628
                this.bcc = new ArrayList<String>(_list26.size);
4629
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
4630
                {
4631
                  String _elem28; // required
4632
                  _elem28 = iprot.readString();
4633
                  this.bcc.add(_elem28);
4634
                }
4635
                iprot.readListEnd();
4636
              }
4637
            } else { 
4638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4639
            }
4640
            break;
8020 rajveer 4641
          case 9: // SOURCE_ID
4642
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4643
              this.sourceId = iprot.readI64();
4644
              setSourceIdIsSet(true);
4645
            } else { 
4646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4647
            }
4648
            break;
3430 rajveer 4649
          default:
4650
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 4651
        }
3430 rajveer 4652
        iprot.readFieldEnd();
1395 varun.gupt 4653
      }
4654
      iprot.readStructEnd();
4655
      validate();
4656
    }
4657
 
3430 rajveer 4658
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 4659
      validate();
4660
 
4661
      oprot.writeStructBegin(STRUCT_DESC);
4662
      if (this.emailTo != null) {
4663
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 4664
        {
4665
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
4666
          for (String _iter29 : this.emailTo)
4667
          {
4668
            oprot.writeString(_iter29);
4669
          }
4670
          oprot.writeListEnd();
4671
        }
1395 varun.gupt 4672
        oprot.writeFieldEnd();
4673
      }
4674
      if (this.emailFrom != null) {
4675
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
4676
        oprot.writeString(this.emailFrom);
4677
        oprot.writeFieldEnd();
4678
      }
4679
      if (this.subject != null) {
4680
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
4681
        oprot.writeString(this.subject);
4682
        oprot.writeFieldEnd();
4683
      }
4684
      if (this.body != null) {
4685
        oprot.writeFieldBegin(BODY_FIELD_DESC);
4686
        oprot.writeString(this.body);
4687
        oprot.writeFieldEnd();
4688
      }
4689
      if (this.source != null) {
4690
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
4691
        oprot.writeString(this.source);
4692
        oprot.writeFieldEnd();
4693
      }
4694
      if (this.emailType != null) {
4695
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
4696
        oprot.writeString(this.emailType);
4697
        oprot.writeFieldEnd();
4698
      }
5864 rajveer 4699
      if (this.cc != null) {
4700
        oprot.writeFieldBegin(CC_FIELD_DESC);
4701
        {
4702
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
4703
          for (String _iter30 : this.cc)
4704
          {
4705
            oprot.writeString(_iter30);
4706
          }
4707
          oprot.writeListEnd();
4708
        }
4709
        oprot.writeFieldEnd();
4710
      }
4711
      if (this.bcc != null) {
4712
        oprot.writeFieldBegin(BCC_FIELD_DESC);
4713
        {
4714
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
4715
          for (String _iter31 : this.bcc)
4716
          {
4717
            oprot.writeString(_iter31);
4718
          }
4719
          oprot.writeListEnd();
4720
        }
4721
        oprot.writeFieldEnd();
4722
      }
8020 rajveer 4723
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
4724
      oprot.writeI64(this.sourceId);
4725
      oprot.writeFieldEnd();
1395 varun.gupt 4726
      oprot.writeFieldStop();
4727
      oprot.writeStructEnd();
4728
    }
4729
 
4730
    @Override
4731
    public String toString() {
4732
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
4733
      boolean first = true;
4734
 
4735
      sb.append("emailTo:");
4736
      if (this.emailTo == null) {
4737
        sb.append("null");
4738
      } else {
4739
        sb.append(this.emailTo);
4740
      }
4741
      first = false;
4742
      if (!first) sb.append(", ");
4743
      sb.append("emailFrom:");
4744
      if (this.emailFrom == null) {
4745
        sb.append("null");
4746
      } else {
4747
        sb.append(this.emailFrom);
4748
      }
4749
      first = false;
4750
      if (!first) sb.append(", ");
4751
      sb.append("subject:");
4752
      if (this.subject == null) {
4753
        sb.append("null");
4754
      } else {
4755
        sb.append(this.subject);
4756
      }
4757
      first = false;
4758
      if (!first) sb.append(", ");
4759
      sb.append("body:");
4760
      if (this.body == null) {
4761
        sb.append("null");
4762
      } else {
4763
        sb.append(this.body);
4764
      }
4765
      first = false;
4766
      if (!first) sb.append(", ");
4767
      sb.append("source:");
4768
      if (this.source == null) {
4769
        sb.append("null");
4770
      } else {
4771
        sb.append(this.source);
4772
      }
4773
      first = false;
4774
      if (!first) sb.append(", ");
4775
      sb.append("emailType:");
4776
      if (this.emailType == null) {
4777
        sb.append("null");
4778
      } else {
4779
        sb.append(this.emailType);
4780
      }
4781
      first = false;
5864 rajveer 4782
      if (!first) sb.append(", ");
4783
      sb.append("cc:");
4784
      if (this.cc == null) {
4785
        sb.append("null");
4786
      } else {
4787
        sb.append(this.cc);
4788
      }
4789
      first = false;
4790
      if (!first) sb.append(", ");
4791
      sb.append("bcc:");
4792
      if (this.bcc == null) {
4793
        sb.append("null");
4794
      } else {
4795
        sb.append(this.bcc);
4796
      }
4797
      first = false;
8020 rajveer 4798
      if (!first) sb.append(", ");
4799
      sb.append("sourceId:");
4800
      sb.append(this.sourceId);
4801
      first = false;
1395 varun.gupt 4802
      sb.append(")");
4803
      return sb.toString();
4804
    }
4805
 
3430 rajveer 4806
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 4807
      // check for required fields
4808
    }
4809
 
3430 rajveer 4810
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4811
      try {
4812
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4813
      } catch (org.apache.thrift.TException te) {
4814
        throw new java.io.IOException(te);
4815
      }
4816
    }
4817
 
4818
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4819
      try {
4820
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4821
      } catch (org.apache.thrift.TException te) {
4822
        throw new java.io.IOException(te);
4823
      }
4824
    }
4825
 
1395 varun.gupt 4826
  }
4827
 
3430 rajveer 4828
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
4829
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 4830
 
3430 rajveer 4831
    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);
4832
    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 4833
 
3430 rajveer 4834
    private long success; // required
4835
    private HelperServiceException se; // required
1395 varun.gupt 4836
 
4837
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4838
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 4839
      SUCCESS((short)0, "success"),
1395 varun.gupt 4840
      SE((short)1, "se");
4841
 
4842
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4843
 
4844
      static {
4845
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4846
          byName.put(field.getFieldName(), field);
4847
        }
4848
      }
4849
 
4850
      /**
4851
       * Find the _Fields constant that matches fieldId, or null if its not found.
4852
       */
4853
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4854
        switch(fieldId) {
4855
          case 0: // SUCCESS
4856
            return SUCCESS;
4857
          case 1: // SE
4858
            return SE;
4859
          default:
4860
            return null;
4861
        }
1395 varun.gupt 4862
      }
4863
 
4864
      /**
4865
       * Find the _Fields constant that matches fieldId, throwing an exception
4866
       * if it is not found.
4867
       */
4868
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4869
        _Fields fields = findByThriftId(fieldId);
4870
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4871
        return fields;
4872
      }
4873
 
4874
      /**
4875
       * Find the _Fields constant that matches name, or null if its not found.
4876
       */
4877
      public static _Fields findByName(String name) {
4878
        return byName.get(name);
4879
      }
4880
 
4881
      private final short _thriftId;
4882
      private final String _fieldName;
4883
 
4884
      _Fields(short thriftId, String fieldName) {
4885
        _thriftId = thriftId;
4886
        _fieldName = fieldName;
4887
      }
4888
 
4889
      public short getThriftFieldId() {
4890
        return _thriftId;
4891
      }
4892
 
4893
      public String getFieldName() {
4894
        return _fieldName;
4895
      }
4896
    }
4897
 
4898
    // isset id assignments
3206 mandeep.dh 4899
    private static final int __SUCCESS_ISSET_ID = 0;
4900
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 4901
 
3430 rajveer 4902
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 4903
    static {
3430 rajveer 4904
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4905
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4906
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4907
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4908
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4909
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4910
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 4911
    }
4912
 
4913
    public saveUserEmailForSending_result() {
4914
    }
4915
 
4916
    public saveUserEmailForSending_result(
3206 mandeep.dh 4917
      long success,
1395 varun.gupt 4918
      HelperServiceException se)
4919
    {
4920
      this();
3206 mandeep.dh 4921
      this.success = success;
4922
      setSuccessIsSet(true);
1395 varun.gupt 4923
      this.se = se;
4924
    }
4925
 
4926
    /**
4927
     * Performs a deep copy on <i>other</i>.
4928
     */
4929
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 4930
      __isset_bit_vector.clear();
4931
      __isset_bit_vector.or(other.__isset_bit_vector);
4932
      this.success = other.success;
1395 varun.gupt 4933
      if (other.isSetSe()) {
4934
        this.se = new HelperServiceException(other.se);
4935
      }
4936
    }
4937
 
4938
    public saveUserEmailForSending_result deepCopy() {
4939
      return new saveUserEmailForSending_result(this);
4940
    }
4941
 
3430 rajveer 4942
    @Override
4943
    public void clear() {
4944
      setSuccessIsSet(false);
4945
      this.success = 0;
4946
      this.se = null;
1395 varun.gupt 4947
    }
4948
 
3206 mandeep.dh 4949
    public long getSuccess() {
4950
      return this.success;
4951
    }
4952
 
3430 rajveer 4953
    public void setSuccess(long success) {
3206 mandeep.dh 4954
      this.success = success;
4955
      setSuccessIsSet(true);
4956
    }
4957
 
4958
    public void unsetSuccess() {
4959
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
4960
    }
4961
 
3430 rajveer 4962
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 4963
    public boolean isSetSuccess() {
4964
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
4965
    }
4966
 
4967
    public void setSuccessIsSet(boolean value) {
4968
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
4969
    }
4970
 
1395 varun.gupt 4971
    public HelperServiceException getSe() {
4972
      return this.se;
4973
    }
4974
 
3430 rajveer 4975
    public void setSe(HelperServiceException se) {
1395 varun.gupt 4976
      this.se = se;
4977
    }
4978
 
4979
    public void unsetSe() {
4980
      this.se = null;
4981
    }
4982
 
3430 rajveer 4983
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4984
    public boolean isSetSe() {
4985
      return this.se != null;
4986
    }
4987
 
4988
    public void setSeIsSet(boolean value) {
4989
      if (!value) {
4990
        this.se = null;
4991
      }
4992
    }
4993
 
4994
    public void setFieldValue(_Fields field, Object value) {
4995
      switch (field) {
3206 mandeep.dh 4996
      case SUCCESS:
4997
        if (value == null) {
4998
          unsetSuccess();
4999
        } else {
5000
          setSuccess((Long)value);
5001
        }
5002
        break;
5003
 
1395 varun.gupt 5004
      case SE:
5005
        if (value == null) {
5006
          unsetSe();
5007
        } else {
5008
          setSe((HelperServiceException)value);
5009
        }
5010
        break;
5011
 
5012
      }
5013
    }
5014
 
5015
    public Object getFieldValue(_Fields field) {
5016
      switch (field) {
3206 mandeep.dh 5017
      case SUCCESS:
3430 rajveer 5018
        return Long.valueOf(getSuccess());
3206 mandeep.dh 5019
 
1395 varun.gupt 5020
      case SE:
5021
        return getSe();
5022
 
5023
      }
5024
      throw new IllegalStateException();
5025
    }
5026
 
3430 rajveer 5027
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5028
    public boolean isSet(_Fields field) {
5029
      if (field == null) {
5030
        throw new IllegalArgumentException();
5031
      }
1395 varun.gupt 5032
 
5033
      switch (field) {
3206 mandeep.dh 5034
      case SUCCESS:
5035
        return isSetSuccess();
1395 varun.gupt 5036
      case SE:
5037
        return isSetSe();
5038
      }
5039
      throw new IllegalStateException();
5040
    }
5041
 
5042
    @Override
5043
    public boolean equals(Object that) {
5044
      if (that == null)
5045
        return false;
5046
      if (that instanceof saveUserEmailForSending_result)
5047
        return this.equals((saveUserEmailForSending_result)that);
5048
      return false;
5049
    }
5050
 
5051
    public boolean equals(saveUserEmailForSending_result that) {
5052
      if (that == null)
5053
        return false;
5054
 
3206 mandeep.dh 5055
      boolean this_present_success = true;
5056
      boolean that_present_success = true;
5057
      if (this_present_success || that_present_success) {
5058
        if (!(this_present_success && that_present_success))
5059
          return false;
5060
        if (this.success != that.success)
5061
          return false;
5062
      }
5063
 
1395 varun.gupt 5064
      boolean this_present_se = true && this.isSetSe();
5065
      boolean that_present_se = true && that.isSetSe();
5066
      if (this_present_se || that_present_se) {
5067
        if (!(this_present_se && that_present_se))
5068
          return false;
5069
        if (!this.se.equals(that.se))
5070
          return false;
5071
      }
5072
 
5073
      return true;
5074
    }
5075
 
5076
    @Override
5077
    public int hashCode() {
5078
      return 0;
5079
    }
5080
 
5081
    public int compareTo(saveUserEmailForSending_result other) {
5082
      if (!getClass().equals(other.getClass())) {
5083
        return getClass().getName().compareTo(other.getClass().getName());
5084
      }
5085
 
5086
      int lastComparison = 0;
5087
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
5088
 
3430 rajveer 5089
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 5090
      if (lastComparison != 0) {
5091
        return lastComparison;
5092
      }
3430 rajveer 5093
      if (isSetSuccess()) {
5094
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5095
        if (lastComparison != 0) {
5096
          return lastComparison;
5097
        }
3206 mandeep.dh 5098
      }
3430 rajveer 5099
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 5100
      if (lastComparison != 0) {
5101
        return lastComparison;
5102
      }
3430 rajveer 5103
      if (isSetSe()) {
5104
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5105
        if (lastComparison != 0) {
5106
          return lastComparison;
5107
        }
1395 varun.gupt 5108
      }
5109
      return 0;
5110
    }
5111
 
3430 rajveer 5112
    public _Fields fieldForId(int fieldId) {
5113
      return _Fields.findByThriftId(fieldId);
5114
    }
5115
 
5116
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5117
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 5118
      iprot.readStructBegin();
5119
      while (true)
5120
      {
5121
        field = iprot.readFieldBegin();
3430 rajveer 5122
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 5123
          break;
5124
        }
3430 rajveer 5125
        switch (field.id) {
5126
          case 0: // SUCCESS
5127
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5128
              this.success = iprot.readI64();
5129
              setSuccessIsSet(true);
5130
            } else { 
5131
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5132
            }
5133
            break;
5134
          case 1: // SE
5135
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5136
              this.se = new HelperServiceException();
5137
              this.se.read(iprot);
5138
            } else { 
5139
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5140
            }
5141
            break;
5142
          default:
5143
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 5144
        }
3430 rajveer 5145
        iprot.readFieldEnd();
1395 varun.gupt 5146
      }
5147
      iprot.readStructEnd();
5148
      validate();
5149
    }
5150
 
3430 rajveer 5151
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 5152
      oprot.writeStructBegin(STRUCT_DESC);
5153
 
3206 mandeep.dh 5154
      if (this.isSetSuccess()) {
5155
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5156
        oprot.writeI64(this.success);
5157
        oprot.writeFieldEnd();
5158
      } else if (this.isSetSe()) {
1395 varun.gupt 5159
        oprot.writeFieldBegin(SE_FIELD_DESC);
5160
        this.se.write(oprot);
5161
        oprot.writeFieldEnd();
5162
      }
5163
      oprot.writeFieldStop();
5164
      oprot.writeStructEnd();
5165
    }
5166
 
5167
    @Override
5168
    public String toString() {
5169
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
5170
      boolean first = true;
5171
 
3206 mandeep.dh 5172
      sb.append("success:");
5173
      sb.append(this.success);
5174
      first = false;
5175
      if (!first) sb.append(", ");
1395 varun.gupt 5176
      sb.append("se:");
5177
      if (this.se == null) {
5178
        sb.append("null");
5179
      } else {
5180
        sb.append(this.se);
5181
      }
5182
      first = false;
5183
      sb.append(")");
5184
      return sb.toString();
5185
    }
5186
 
3430 rajveer 5187
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 5188
      // check for required fields
5189
    }
5190
 
3430 rajveer 5191
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5192
      try {
5193
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5194
      } catch (org.apache.thrift.TException te) {
5195
        throw new java.io.IOException(te);
5196
      }
5197
    }
5198
 
5199
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5200
      try {
5201
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5202
      } catch (org.apache.thrift.TException te) {
5203
        throw new java.io.IOException(te);
5204
      }
5205
    }
5206
 
1395 varun.gupt 5207
  }
5208
 
3430 rajveer 5209
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
5210
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 5211
 
5212
 
5213
 
5214
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5215
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 5216
;
1422 varun.gupt 5217
 
5218
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5219
 
5220
      static {
5221
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5222
          byName.put(field.getFieldName(), field);
5223
        }
5224
      }
5225
 
5226
      /**
5227
       * Find the _Fields constant that matches fieldId, or null if its not found.
5228
       */
5229
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5230
        switch(fieldId) {
5231
          default:
5232
            return null;
5233
        }
1422 varun.gupt 5234
      }
5235
 
5236
      /**
5237
       * Find the _Fields constant that matches fieldId, throwing an exception
5238
       * if it is not found.
5239
       */
5240
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5241
        _Fields fields = findByThriftId(fieldId);
5242
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5243
        return fields;
5244
      }
5245
 
5246
      /**
5247
       * Find the _Fields constant that matches name, or null if its not found.
5248
       */
5249
      public static _Fields findByName(String name) {
5250
        return byName.get(name);
5251
      }
5252
 
5253
      private final short _thriftId;
5254
      private final String _fieldName;
5255
 
5256
      _Fields(short thriftId, String fieldName) {
5257
        _thriftId = thriftId;
5258
        _fieldName = fieldName;
5259
      }
5260
 
5261
      public short getThriftFieldId() {
5262
        return _thriftId;
5263
      }
5264
 
5265
      public String getFieldName() {
5266
        return _fieldName;
5267
      }
5268
    }
3430 rajveer 5269
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5270
    static {
3430 rajveer 5271
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5272
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5273
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 5274
    }
5275
 
5276
    public getEmailsToBeSent_args() {
5277
    }
5278
 
5279
    /**
5280
     * Performs a deep copy on <i>other</i>.
5281
     */
5282
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
5283
    }
5284
 
5285
    public getEmailsToBeSent_args deepCopy() {
5286
      return new getEmailsToBeSent_args(this);
5287
    }
5288
 
3430 rajveer 5289
    @Override
5290
    public void clear() {
1422 varun.gupt 5291
    }
5292
 
5293
    public void setFieldValue(_Fields field, Object value) {
5294
      switch (field) {
5295
      }
5296
    }
5297
 
5298
    public Object getFieldValue(_Fields field) {
5299
      switch (field) {
5300
      }
5301
      throw new IllegalStateException();
5302
    }
5303
 
3430 rajveer 5304
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5305
    public boolean isSet(_Fields field) {
5306
      if (field == null) {
5307
        throw new IllegalArgumentException();
5308
      }
1422 varun.gupt 5309
 
5310
      switch (field) {
5311
      }
5312
      throw new IllegalStateException();
5313
    }
5314
 
5315
    @Override
5316
    public boolean equals(Object that) {
5317
      if (that == null)
5318
        return false;
5319
      if (that instanceof getEmailsToBeSent_args)
5320
        return this.equals((getEmailsToBeSent_args)that);
5321
      return false;
5322
    }
5323
 
5324
    public boolean equals(getEmailsToBeSent_args that) {
5325
      if (that == null)
5326
        return false;
5327
 
5328
      return true;
5329
    }
5330
 
5331
    @Override
5332
    public int hashCode() {
5333
      return 0;
5334
    }
5335
 
5336
    public int compareTo(getEmailsToBeSent_args other) {
5337
      if (!getClass().equals(other.getClass())) {
5338
        return getClass().getName().compareTo(other.getClass().getName());
5339
      }
5340
 
5341
      int lastComparison = 0;
5342
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
5343
 
5344
      return 0;
5345
    }
5346
 
3430 rajveer 5347
    public _Fields fieldForId(int fieldId) {
5348
      return _Fields.findByThriftId(fieldId);
5349
    }
5350
 
5351
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5352
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5353
      iprot.readStructBegin();
5354
      while (true)
5355
      {
5356
        field = iprot.readFieldBegin();
3430 rajveer 5357
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5358
          break;
5359
        }
3430 rajveer 5360
        switch (field.id) {
5361
          default:
5362
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5363
        }
3430 rajveer 5364
        iprot.readFieldEnd();
1422 varun.gupt 5365
      }
5366
      iprot.readStructEnd();
5367
      validate();
5368
    }
5369
 
3430 rajveer 5370
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5371
      validate();
5372
 
5373
      oprot.writeStructBegin(STRUCT_DESC);
5374
      oprot.writeFieldStop();
5375
      oprot.writeStructEnd();
5376
    }
5377
 
5378
    @Override
5379
    public String toString() {
5380
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
5381
      boolean first = true;
5382
 
5383
      sb.append(")");
5384
      return sb.toString();
5385
    }
5386
 
3430 rajveer 5387
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5388
      // check for required fields
5389
    }
5390
 
3430 rajveer 5391
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5392
      try {
5393
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5394
      } catch (org.apache.thrift.TException te) {
5395
        throw new java.io.IOException(te);
5396
      }
5397
    }
5398
 
5399
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5400
      try {
5401
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5402
      } catch (org.apache.thrift.TException te) {
5403
        throw new java.io.IOException(te);
5404
      }
5405
    }
5406
 
1422 varun.gupt 5407
  }
5408
 
3430 rajveer 5409
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
5410
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 5411
 
3430 rajveer 5412
    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);
5413
    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 5414
 
3430 rajveer 5415
    private List<UserEmail> success; // required
5416
    private HelperServiceException se; // required
1422 varun.gupt 5417
 
5418
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5419
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 5420
      SUCCESS((short)0, "success"),
5421
      SE((short)1, "se");
5422
 
5423
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5424
 
5425
      static {
5426
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5427
          byName.put(field.getFieldName(), field);
5428
        }
5429
      }
5430
 
5431
      /**
5432
       * Find the _Fields constant that matches fieldId, or null if its not found.
5433
       */
5434
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5435
        switch(fieldId) {
5436
          case 0: // SUCCESS
5437
            return SUCCESS;
5438
          case 1: // SE
5439
            return SE;
5440
          default:
5441
            return null;
5442
        }
1422 varun.gupt 5443
      }
5444
 
5445
      /**
5446
       * Find the _Fields constant that matches fieldId, throwing an exception
5447
       * if it is not found.
5448
       */
5449
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5450
        _Fields fields = findByThriftId(fieldId);
5451
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5452
        return fields;
5453
      }
5454
 
5455
      /**
5456
       * Find the _Fields constant that matches name, or null if its not found.
5457
       */
5458
      public static _Fields findByName(String name) {
5459
        return byName.get(name);
5460
      }
5461
 
5462
      private final short _thriftId;
5463
      private final String _fieldName;
5464
 
5465
      _Fields(short thriftId, String fieldName) {
5466
        _thriftId = thriftId;
5467
        _fieldName = fieldName;
5468
      }
5469
 
5470
      public short getThriftFieldId() {
5471
        return _thriftId;
5472
      }
5473
 
5474
      public String getFieldName() {
5475
        return _fieldName;
5476
      }
5477
    }
5478
 
5479
    // isset id assignments
5480
 
3430 rajveer 5481
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5482
    static {
3430 rajveer 5483
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5484
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5485
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5486
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
5487
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5488
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5489
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5490
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 5491
    }
5492
 
5493
    public getEmailsToBeSent_result() {
5494
    }
5495
 
5496
    public getEmailsToBeSent_result(
5497
      List<UserEmail> success,
5498
      HelperServiceException se)
5499
    {
5500
      this();
5501
      this.success = success;
5502
      this.se = se;
5503
    }
5504
 
5505
    /**
5506
     * Performs a deep copy on <i>other</i>.
5507
     */
5508
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
5509
      if (other.isSetSuccess()) {
5510
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
5511
        for (UserEmail other_element : other.success) {
5512
          __this__success.add(new UserEmail(other_element));
5513
        }
5514
        this.success = __this__success;
5515
      }
5516
      if (other.isSetSe()) {
5517
        this.se = new HelperServiceException(other.se);
5518
      }
5519
    }
5520
 
5521
    public getEmailsToBeSent_result deepCopy() {
5522
      return new getEmailsToBeSent_result(this);
5523
    }
5524
 
3430 rajveer 5525
    @Override
5526
    public void clear() {
5527
      this.success = null;
5528
      this.se = null;
1422 varun.gupt 5529
    }
5530
 
5531
    public int getSuccessSize() {
5532
      return (this.success == null) ? 0 : this.success.size();
5533
    }
5534
 
5535
    public java.util.Iterator<UserEmail> getSuccessIterator() {
5536
      return (this.success == null) ? null : this.success.iterator();
5537
    }
5538
 
5539
    public void addToSuccess(UserEmail elem) {
5540
      if (this.success == null) {
5541
        this.success = new ArrayList<UserEmail>();
5542
      }
5543
      this.success.add(elem);
5544
    }
5545
 
5546
    public List<UserEmail> getSuccess() {
5547
      return this.success;
5548
    }
5549
 
3430 rajveer 5550
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 5551
      this.success = success;
5552
    }
5553
 
5554
    public void unsetSuccess() {
5555
      this.success = null;
5556
    }
5557
 
3430 rajveer 5558
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5559
    public boolean isSetSuccess() {
5560
      return this.success != null;
5561
    }
5562
 
5563
    public void setSuccessIsSet(boolean value) {
5564
      if (!value) {
5565
        this.success = null;
5566
      }
5567
    }
5568
 
5569
    public HelperServiceException getSe() {
5570
      return this.se;
5571
    }
5572
 
3430 rajveer 5573
    public void setSe(HelperServiceException se) {
1422 varun.gupt 5574
      this.se = se;
5575
    }
5576
 
5577
    public void unsetSe() {
5578
      this.se = null;
5579
    }
5580
 
3430 rajveer 5581
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5582
    public boolean isSetSe() {
5583
      return this.se != null;
5584
    }
5585
 
5586
    public void setSeIsSet(boolean value) {
5587
      if (!value) {
5588
        this.se = null;
5589
      }
5590
    }
5591
 
5592
    public void setFieldValue(_Fields field, Object value) {
5593
      switch (field) {
5594
      case SUCCESS:
5595
        if (value == null) {
5596
          unsetSuccess();
5597
        } else {
5598
          setSuccess((List<UserEmail>)value);
5599
        }
5600
        break;
5601
 
5602
      case SE:
5603
        if (value == null) {
5604
          unsetSe();
5605
        } else {
5606
          setSe((HelperServiceException)value);
5607
        }
5608
        break;
5609
 
5610
      }
5611
    }
5612
 
5613
    public Object getFieldValue(_Fields field) {
5614
      switch (field) {
5615
      case SUCCESS:
5616
        return getSuccess();
5617
 
5618
      case SE:
5619
        return getSe();
5620
 
5621
      }
5622
      throw new IllegalStateException();
5623
    }
5624
 
3430 rajveer 5625
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5626
    public boolean isSet(_Fields field) {
5627
      if (field == null) {
5628
        throw new IllegalArgumentException();
5629
      }
1422 varun.gupt 5630
 
5631
      switch (field) {
5632
      case SUCCESS:
5633
        return isSetSuccess();
5634
      case SE:
5635
        return isSetSe();
5636
      }
5637
      throw new IllegalStateException();
5638
    }
5639
 
5640
    @Override
5641
    public boolean equals(Object that) {
5642
      if (that == null)
5643
        return false;
5644
      if (that instanceof getEmailsToBeSent_result)
5645
        return this.equals((getEmailsToBeSent_result)that);
5646
      return false;
5647
    }
5648
 
5649
    public boolean equals(getEmailsToBeSent_result that) {
5650
      if (that == null)
5651
        return false;
5652
 
5653
      boolean this_present_success = true && this.isSetSuccess();
5654
      boolean that_present_success = true && that.isSetSuccess();
5655
      if (this_present_success || that_present_success) {
5656
        if (!(this_present_success && that_present_success))
5657
          return false;
5658
        if (!this.success.equals(that.success))
5659
          return false;
5660
      }
5661
 
5662
      boolean this_present_se = true && this.isSetSe();
5663
      boolean that_present_se = true && that.isSetSe();
5664
      if (this_present_se || that_present_se) {
5665
        if (!(this_present_se && that_present_se))
5666
          return false;
5667
        if (!this.se.equals(that.se))
5668
          return false;
5669
      }
5670
 
5671
      return true;
5672
    }
5673
 
5674
    @Override
5675
    public int hashCode() {
5676
      return 0;
5677
    }
5678
 
5679
    public int compareTo(getEmailsToBeSent_result other) {
5680
      if (!getClass().equals(other.getClass())) {
5681
        return getClass().getName().compareTo(other.getClass().getName());
5682
      }
5683
 
5684
      int lastComparison = 0;
5685
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
5686
 
3430 rajveer 5687
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 5688
      if (lastComparison != 0) {
5689
        return lastComparison;
5690
      }
3430 rajveer 5691
      if (isSetSuccess()) {
5692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5693
        if (lastComparison != 0) {
5694
          return lastComparison;
5695
        }
1422 varun.gupt 5696
      }
3430 rajveer 5697
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5698
      if (lastComparison != 0) {
5699
        return lastComparison;
5700
      }
3430 rajveer 5701
      if (isSetSe()) {
5702
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5703
        if (lastComparison != 0) {
5704
          return lastComparison;
5705
        }
1422 varun.gupt 5706
      }
5707
      return 0;
5708
    }
5709
 
3430 rajveer 5710
    public _Fields fieldForId(int fieldId) {
5711
      return _Fields.findByThriftId(fieldId);
5712
    }
5713
 
5714
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5715
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5716
      iprot.readStructBegin();
5717
      while (true)
5718
      {
5719
        field = iprot.readFieldBegin();
3430 rajveer 5720
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5721
          break;
5722
        }
3430 rajveer 5723
        switch (field.id) {
5724
          case 0: // SUCCESS
5725
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5726
              {
5864 rajveer 5727
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
5728
                this.success = new ArrayList<UserEmail>(_list32.size);
5729
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1422 varun.gupt 5730
                {
5864 rajveer 5731
                  UserEmail _elem34; // required
5732
                  _elem34 = new UserEmail();
5733
                  _elem34.read(iprot);
5734
                  this.success.add(_elem34);
1422 varun.gupt 5735
                }
3430 rajveer 5736
                iprot.readListEnd();
1422 varun.gupt 5737
              }
3430 rajveer 5738
            } else { 
5739
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5740
            }
5741
            break;
5742
          case 1: // SE
5743
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5744
              this.se = new HelperServiceException();
5745
              this.se.read(iprot);
5746
            } else { 
5747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5748
            }
5749
            break;
5750
          default:
5751
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5752
        }
3430 rajveer 5753
        iprot.readFieldEnd();
1422 varun.gupt 5754
      }
5755
      iprot.readStructEnd();
5756
      validate();
5757
    }
5758
 
3430 rajveer 5759
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5760
      oprot.writeStructBegin(STRUCT_DESC);
5761
 
5762
      if (this.isSetSuccess()) {
5763
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5764
        {
3430 rajveer 5765
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 5766
          for (UserEmail _iter35 : this.success)
1422 varun.gupt 5767
          {
5864 rajveer 5768
            _iter35.write(oprot);
1422 varun.gupt 5769
          }
5770
          oprot.writeListEnd();
5771
        }
5772
        oprot.writeFieldEnd();
5773
      } else if (this.isSetSe()) {
5774
        oprot.writeFieldBegin(SE_FIELD_DESC);
5775
        this.se.write(oprot);
5776
        oprot.writeFieldEnd();
5777
      }
5778
      oprot.writeFieldStop();
5779
      oprot.writeStructEnd();
5780
    }
5781
 
5782
    @Override
5783
    public String toString() {
5784
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
5785
      boolean first = true;
5786
 
5787
      sb.append("success:");
5788
      if (this.success == null) {
5789
        sb.append("null");
5790
      } else {
5791
        sb.append(this.success);
5792
      }
5793
      first = false;
5794
      if (!first) sb.append(", ");
5795
      sb.append("se:");
5796
      if (this.se == null) {
5797
        sb.append("null");
5798
      } else {
5799
        sb.append(this.se);
5800
      }
5801
      first = false;
5802
      sb.append(")");
5803
      return sb.toString();
5804
    }
5805
 
3430 rajveer 5806
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5807
      // check for required fields
5808
    }
5809
 
3430 rajveer 5810
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5811
      try {
5812
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5813
      } catch (org.apache.thrift.TException te) {
5814
        throw new java.io.IOException(te);
5815
      }
5816
    }
5817
 
5818
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5819
      try {
5820
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5821
      } catch (org.apache.thrift.TException te) {
5822
        throw new java.io.IOException(te);
5823
      }
5824
    }
5825
 
1422 varun.gupt 5826
  }
5827
 
3430 rajveer 5828
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
5829
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 5830
 
3430 rajveer 5831
    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 5832
 
3430 rajveer 5833
    private long emailId; // required
1422 varun.gupt 5834
 
5835
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5836
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 5837
      EMAIL_ID((short)1, "emailId");
5838
 
5839
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5840
 
5841
      static {
5842
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5843
          byName.put(field.getFieldName(), field);
5844
        }
5845
      }
5846
 
5847
      /**
5848
       * Find the _Fields constant that matches fieldId, or null if its not found.
5849
       */
5850
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5851
        switch(fieldId) {
5852
          case 1: // EMAIL_ID
5853
            return EMAIL_ID;
5854
          default:
5855
            return null;
5856
        }
1422 varun.gupt 5857
      }
5858
 
5859
      /**
5860
       * Find the _Fields constant that matches fieldId, throwing an exception
5861
       * if it is not found.
5862
       */
5863
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5864
        _Fields fields = findByThriftId(fieldId);
5865
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5866
        return fields;
5867
      }
5868
 
5869
      /**
5870
       * Find the _Fields constant that matches name, or null if its not found.
5871
       */
5872
      public static _Fields findByName(String name) {
5873
        return byName.get(name);
5874
      }
5875
 
5876
      private final short _thriftId;
5877
      private final String _fieldName;
5878
 
5879
      _Fields(short thriftId, String fieldName) {
5880
        _thriftId = thriftId;
5881
        _fieldName = fieldName;
5882
      }
5883
 
5884
      public short getThriftFieldId() {
5885
        return _thriftId;
5886
      }
5887
 
5888
      public String getFieldName() {
5889
        return _fieldName;
5890
      }
5891
    }
5892
 
5893
    // isset id assignments
5894
    private static final int __EMAILID_ISSET_ID = 0;
5895
    private BitSet __isset_bit_vector = new BitSet(1);
5896
 
3430 rajveer 5897
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5898
    static {
3430 rajveer 5899
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5900
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5901
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5902
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5903
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 5904
    }
5905
 
5906
    public markEmailAsSent_args() {
5907
    }
5908
 
5909
    public markEmailAsSent_args(
5910
      long emailId)
5911
    {
5912
      this();
5913
      this.emailId = emailId;
5914
      setEmailIdIsSet(true);
5915
    }
5916
 
5917
    /**
5918
     * Performs a deep copy on <i>other</i>.
5919
     */
5920
    public markEmailAsSent_args(markEmailAsSent_args other) {
5921
      __isset_bit_vector.clear();
5922
      __isset_bit_vector.or(other.__isset_bit_vector);
5923
      this.emailId = other.emailId;
5924
    }
5925
 
5926
    public markEmailAsSent_args deepCopy() {
5927
      return new markEmailAsSent_args(this);
5928
    }
5929
 
3430 rajveer 5930
    @Override
5931
    public void clear() {
5932
      setEmailIdIsSet(false);
5933
      this.emailId = 0;
1422 varun.gupt 5934
    }
5935
 
5936
    public long getEmailId() {
5937
      return this.emailId;
5938
    }
5939
 
3430 rajveer 5940
    public void setEmailId(long emailId) {
1422 varun.gupt 5941
      this.emailId = emailId;
5942
      setEmailIdIsSet(true);
5943
    }
5944
 
5945
    public void unsetEmailId() {
5946
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
5947
    }
5948
 
3430 rajveer 5949
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5950
    public boolean isSetEmailId() {
5951
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
5952
    }
5953
 
5954
    public void setEmailIdIsSet(boolean value) {
5955
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
5956
    }
5957
 
5958
    public void setFieldValue(_Fields field, Object value) {
5959
      switch (field) {
5960
      case EMAIL_ID:
5961
        if (value == null) {
5962
          unsetEmailId();
5963
        } else {
5964
          setEmailId((Long)value);
5965
        }
5966
        break;
5967
 
5968
      }
5969
    }
5970
 
5971
    public Object getFieldValue(_Fields field) {
5972
      switch (field) {
5973
      case EMAIL_ID:
3430 rajveer 5974
        return Long.valueOf(getEmailId());
1422 varun.gupt 5975
 
5976
      }
5977
      throw new IllegalStateException();
5978
    }
5979
 
3430 rajveer 5980
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5981
    public boolean isSet(_Fields field) {
5982
      if (field == null) {
5983
        throw new IllegalArgumentException();
5984
      }
1422 varun.gupt 5985
 
5986
      switch (field) {
5987
      case EMAIL_ID:
5988
        return isSetEmailId();
5989
      }
5990
      throw new IllegalStateException();
5991
    }
5992
 
5993
    @Override
5994
    public boolean equals(Object that) {
5995
      if (that == null)
5996
        return false;
5997
      if (that instanceof markEmailAsSent_args)
5998
        return this.equals((markEmailAsSent_args)that);
5999
      return false;
6000
    }
6001
 
6002
    public boolean equals(markEmailAsSent_args that) {
6003
      if (that == null)
6004
        return false;
6005
 
6006
      boolean this_present_emailId = true;
6007
      boolean that_present_emailId = true;
6008
      if (this_present_emailId || that_present_emailId) {
6009
        if (!(this_present_emailId && that_present_emailId))
6010
          return false;
6011
        if (this.emailId != that.emailId)
6012
          return false;
6013
      }
6014
 
6015
      return true;
6016
    }
6017
 
6018
    @Override
6019
    public int hashCode() {
6020
      return 0;
6021
    }
6022
 
6023
    public int compareTo(markEmailAsSent_args other) {
6024
      if (!getClass().equals(other.getClass())) {
6025
        return getClass().getName().compareTo(other.getClass().getName());
6026
      }
6027
 
6028
      int lastComparison = 0;
6029
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
6030
 
3430 rajveer 6031
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 6032
      if (lastComparison != 0) {
6033
        return lastComparison;
6034
      }
3430 rajveer 6035
      if (isSetEmailId()) {
6036
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
6037
        if (lastComparison != 0) {
6038
          return lastComparison;
6039
        }
1422 varun.gupt 6040
      }
6041
      return 0;
6042
    }
6043
 
3430 rajveer 6044
    public _Fields fieldForId(int fieldId) {
6045
      return _Fields.findByThriftId(fieldId);
6046
    }
6047
 
6048
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6049
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 6050
      iprot.readStructBegin();
6051
      while (true)
6052
      {
6053
        field = iprot.readFieldBegin();
3430 rajveer 6054
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 6055
          break;
6056
        }
3430 rajveer 6057
        switch (field.id) {
6058
          case 1: // EMAIL_ID
6059
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6060
              this.emailId = iprot.readI64();
6061
              setEmailIdIsSet(true);
6062
            } else { 
6063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6064
            }
6065
            break;
6066
          default:
6067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 6068
        }
3430 rajveer 6069
        iprot.readFieldEnd();
1422 varun.gupt 6070
      }
6071
      iprot.readStructEnd();
6072
      validate();
6073
    }
6074
 
3430 rajveer 6075
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 6076
      validate();
6077
 
6078
      oprot.writeStructBegin(STRUCT_DESC);
6079
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
6080
      oprot.writeI64(this.emailId);
6081
      oprot.writeFieldEnd();
6082
      oprot.writeFieldStop();
6083
      oprot.writeStructEnd();
6084
    }
6085
 
6086
    @Override
6087
    public String toString() {
6088
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
6089
      boolean first = true;
6090
 
6091
      sb.append("emailId:");
6092
      sb.append(this.emailId);
6093
      first = false;
6094
      sb.append(")");
6095
      return sb.toString();
6096
    }
6097
 
3430 rajveer 6098
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 6099
      // check for required fields
6100
    }
6101
 
3430 rajveer 6102
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6103
      try {
6104
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6105
      } catch (org.apache.thrift.TException te) {
6106
        throw new java.io.IOException(te);
6107
      }
6108
    }
6109
 
6110
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6111
      try {
6112
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6113
      } catch (org.apache.thrift.TException te) {
6114
        throw new java.io.IOException(te);
6115
      }
6116
    }
6117
 
1422 varun.gupt 6118
  }
6119
 
3430 rajveer 6120
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
6121
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 6122
 
3430 rajveer 6123
    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 6124
 
3430 rajveer 6125
    private HelperServiceException se; // required
1422 varun.gupt 6126
 
6127
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6128
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 6129
      SE((short)1, "se");
6130
 
6131
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6132
 
6133
      static {
6134
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6135
          byName.put(field.getFieldName(), field);
6136
        }
6137
      }
6138
 
6139
      /**
6140
       * Find the _Fields constant that matches fieldId, or null if its not found.
6141
       */
6142
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6143
        switch(fieldId) {
6144
          case 1: // SE
6145
            return SE;
6146
          default:
6147
            return null;
6148
        }
1422 varun.gupt 6149
      }
6150
 
6151
      /**
6152
       * Find the _Fields constant that matches fieldId, throwing an exception
6153
       * if it is not found.
6154
       */
6155
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6156
        _Fields fields = findByThriftId(fieldId);
6157
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6158
        return fields;
6159
      }
6160
 
6161
      /**
6162
       * Find the _Fields constant that matches name, or null if its not found.
6163
       */
6164
      public static _Fields findByName(String name) {
6165
        return byName.get(name);
6166
      }
6167
 
6168
      private final short _thriftId;
6169
      private final String _fieldName;
6170
 
6171
      _Fields(short thriftId, String fieldName) {
6172
        _thriftId = thriftId;
6173
        _fieldName = fieldName;
6174
      }
6175
 
6176
      public short getThriftFieldId() {
6177
        return _thriftId;
6178
      }
6179
 
6180
      public String getFieldName() {
6181
        return _fieldName;
6182
      }
6183
    }
6184
 
6185
    // isset id assignments
6186
 
3430 rajveer 6187
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 6188
    static {
3430 rajveer 6189
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6190
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6191
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6192
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6193
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 6194
    }
6195
 
6196
    public markEmailAsSent_result() {
6197
    }
6198
 
6199
    public markEmailAsSent_result(
6200
      HelperServiceException se)
6201
    {
6202
      this();
6203
      this.se = se;
6204
    }
6205
 
6206
    /**
6207
     * Performs a deep copy on <i>other</i>.
6208
     */
6209
    public markEmailAsSent_result(markEmailAsSent_result other) {
6210
      if (other.isSetSe()) {
6211
        this.se = new HelperServiceException(other.se);
6212
      }
6213
    }
6214
 
6215
    public markEmailAsSent_result deepCopy() {
6216
      return new markEmailAsSent_result(this);
6217
    }
6218
 
3430 rajveer 6219
    @Override
6220
    public void clear() {
6221
      this.se = null;
1422 varun.gupt 6222
    }
6223
 
6224
    public HelperServiceException getSe() {
6225
      return this.se;
6226
    }
6227
 
3430 rajveer 6228
    public void setSe(HelperServiceException se) {
1422 varun.gupt 6229
      this.se = se;
6230
    }
6231
 
6232
    public void unsetSe() {
6233
      this.se = null;
6234
    }
6235
 
3430 rajveer 6236
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 6237
    public boolean isSetSe() {
6238
      return this.se != null;
6239
    }
6240
 
6241
    public void setSeIsSet(boolean value) {
6242
      if (!value) {
6243
        this.se = null;
6244
      }
6245
    }
6246
 
6247
    public void setFieldValue(_Fields field, Object value) {
6248
      switch (field) {
6249
      case SE:
6250
        if (value == null) {
6251
          unsetSe();
6252
        } else {
6253
          setSe((HelperServiceException)value);
6254
        }
6255
        break;
6256
 
6257
      }
6258
    }
6259
 
6260
    public Object getFieldValue(_Fields field) {
6261
      switch (field) {
6262
      case SE:
6263
        return getSe();
6264
 
6265
      }
6266
      throw new IllegalStateException();
6267
    }
6268
 
3430 rajveer 6269
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6270
    public boolean isSet(_Fields field) {
6271
      if (field == null) {
6272
        throw new IllegalArgumentException();
6273
      }
1422 varun.gupt 6274
 
6275
      switch (field) {
6276
      case SE:
6277
        return isSetSe();
6278
      }
6279
      throw new IllegalStateException();
6280
    }
6281
 
6282
    @Override
6283
    public boolean equals(Object that) {
6284
      if (that == null)
6285
        return false;
6286
      if (that instanceof markEmailAsSent_result)
6287
        return this.equals((markEmailAsSent_result)that);
6288
      return false;
6289
    }
6290
 
6291
    public boolean equals(markEmailAsSent_result that) {
6292
      if (that == null)
6293
        return false;
6294
 
6295
      boolean this_present_se = true && this.isSetSe();
6296
      boolean that_present_se = true && that.isSetSe();
6297
      if (this_present_se || that_present_se) {
6298
        if (!(this_present_se && that_present_se))
6299
          return false;
6300
        if (!this.se.equals(that.se))
6301
          return false;
6302
      }
6303
 
6304
      return true;
6305
    }
6306
 
6307
    @Override
6308
    public int hashCode() {
6309
      return 0;
6310
    }
6311
 
6312
    public int compareTo(markEmailAsSent_result other) {
6313
      if (!getClass().equals(other.getClass())) {
6314
        return getClass().getName().compareTo(other.getClass().getName());
6315
      }
6316
 
6317
      int lastComparison = 0;
6318
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
6319
 
3430 rajveer 6320
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 6321
      if (lastComparison != 0) {
6322
        return lastComparison;
6323
      }
3430 rajveer 6324
      if (isSetSe()) {
6325
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6326
        if (lastComparison != 0) {
6327
          return lastComparison;
6328
        }
1422 varun.gupt 6329
      }
6330
      return 0;
6331
    }
6332
 
3430 rajveer 6333
    public _Fields fieldForId(int fieldId) {
6334
      return _Fields.findByThriftId(fieldId);
6335
    }
6336
 
6337
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6338
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 6339
      iprot.readStructBegin();
6340
      while (true)
6341
      {
6342
        field = iprot.readFieldBegin();
3430 rajveer 6343
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 6344
          break;
6345
        }
3430 rajveer 6346
        switch (field.id) {
6347
          case 1: // SE
6348
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6349
              this.se = new HelperServiceException();
6350
              this.se.read(iprot);
6351
            } else { 
6352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6353
            }
6354
            break;
6355
          default:
6356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 6357
        }
3430 rajveer 6358
        iprot.readFieldEnd();
1422 varun.gupt 6359
      }
6360
      iprot.readStructEnd();
6361
      validate();
6362
    }
6363
 
3430 rajveer 6364
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 6365
      oprot.writeStructBegin(STRUCT_DESC);
6366
 
6367
      if (this.isSetSe()) {
6368
        oprot.writeFieldBegin(SE_FIELD_DESC);
6369
        this.se.write(oprot);
6370
        oprot.writeFieldEnd();
6371
      }
6372
      oprot.writeFieldStop();
6373
      oprot.writeStructEnd();
6374
    }
6375
 
6376
    @Override
6377
    public String toString() {
6378
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
6379
      boolean first = true;
6380
 
6381
      sb.append("se:");
6382
      if (this.se == null) {
6383
        sb.append("null");
6384
      } else {
6385
        sb.append(this.se);
6386
      }
6387
      first = false;
6388
      sb.append(")");
6389
      return sb.toString();
6390
    }
6391
 
3430 rajveer 6392
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 6393
      // check for required fields
6394
    }
6395
 
3430 rajveer 6396
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6397
      try {
6398
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6399
      } catch (org.apache.thrift.TException te) {
6400
        throw new java.io.IOException(te);
6401
      }
6402
    }
6403
 
6404
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6405
      try {
6406
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6407
      } catch (org.apache.thrift.TException te) {
6408
        throw new java.io.IOException(te);
6409
      }
6410
    }
6411
 
1422 varun.gupt 6412
  }
6413
 
3430 rajveer 6414
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
6415
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 6416
 
3430 rajveer 6417
    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 6418
 
3430 rajveer 6419
    private Mail mail; // required
352 ashish 6420
 
6421
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6422
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6423
      MAIL((short)1, "mail");
6424
 
6425
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6426
 
6427
      static {
6428
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6429
          byName.put(field.getFieldName(), field);
6430
        }
6431
      }
6432
 
6433
      /**
6434
       * Find the _Fields constant that matches fieldId, or null if its not found.
6435
       */
6436
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6437
        switch(fieldId) {
6438
          case 1: // MAIL
6439
            return MAIL;
6440
          default:
6441
            return null;
6442
        }
352 ashish 6443
      }
6444
 
6445
      /**
6446
       * Find the _Fields constant that matches fieldId, throwing an exception
6447
       * if it is not found.
6448
       */
6449
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6450
        _Fields fields = findByThriftId(fieldId);
6451
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6452
        return fields;
6453
      }
6454
 
6455
      /**
6456
       * Find the _Fields constant that matches name, or null if its not found.
6457
       */
6458
      public static _Fields findByName(String name) {
6459
        return byName.get(name);
6460
      }
6461
 
6462
      private final short _thriftId;
6463
      private final String _fieldName;
6464
 
6465
      _Fields(short thriftId, String fieldName) {
6466
        _thriftId = thriftId;
6467
        _fieldName = fieldName;
6468
      }
6469
 
6470
      public short getThriftFieldId() {
6471
        return _thriftId;
6472
      }
6473
 
6474
      public String getFieldName() {
6475
        return _fieldName;
6476
      }
6477
    }
6478
 
6479
    // isset id assignments
6480
 
3430 rajveer 6481
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6482
    static {
3430 rajveer 6483
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6484
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6485
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
6486
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6487
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 6488
    }
6489
 
6490
    public sendMail_args() {
6491
    }
6492
 
6493
    public sendMail_args(
6494
      Mail mail)
6495
    {
6496
      this();
6497
      this.mail = mail;
6498
    }
6499
 
6500
    /**
6501
     * Performs a deep copy on <i>other</i>.
6502
     */
6503
    public sendMail_args(sendMail_args other) {
6504
      if (other.isSetMail()) {
6505
        this.mail = new Mail(other.mail);
6506
      }
6507
    }
6508
 
6509
    public sendMail_args deepCopy() {
6510
      return new sendMail_args(this);
6511
    }
6512
 
3430 rajveer 6513
    @Override
6514
    public void clear() {
6515
      this.mail = null;
352 ashish 6516
    }
6517
 
6518
    public Mail getMail() {
6519
      return this.mail;
6520
    }
6521
 
3430 rajveer 6522
    public void setMail(Mail mail) {
352 ashish 6523
      this.mail = mail;
6524
    }
6525
 
6526
    public void unsetMail() {
6527
      this.mail = null;
6528
    }
6529
 
3430 rajveer 6530
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 6531
    public boolean isSetMail() {
6532
      return this.mail != null;
6533
    }
6534
 
6535
    public void setMailIsSet(boolean value) {
6536
      if (!value) {
6537
        this.mail = null;
6538
      }
6539
    }
6540
 
6541
    public void setFieldValue(_Fields field, Object value) {
6542
      switch (field) {
6543
      case MAIL:
6544
        if (value == null) {
6545
          unsetMail();
6546
        } else {
6547
          setMail((Mail)value);
6548
        }
6549
        break;
6550
 
6551
      }
6552
    }
6553
 
6554
    public Object getFieldValue(_Fields field) {
6555
      switch (field) {
6556
      case MAIL:
6557
        return getMail();
6558
 
6559
      }
6560
      throw new IllegalStateException();
6561
    }
6562
 
3430 rajveer 6563
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6564
    public boolean isSet(_Fields field) {
6565
      if (field == null) {
6566
        throw new IllegalArgumentException();
6567
      }
352 ashish 6568
 
6569
      switch (field) {
6570
      case MAIL:
6571
        return isSetMail();
6572
      }
6573
      throw new IllegalStateException();
6574
    }
6575
 
6576
    @Override
6577
    public boolean equals(Object that) {
6578
      if (that == null)
6579
        return false;
6580
      if (that instanceof sendMail_args)
6581
        return this.equals((sendMail_args)that);
6582
      return false;
6583
    }
6584
 
6585
    public boolean equals(sendMail_args that) {
6586
      if (that == null)
6587
        return false;
6588
 
6589
      boolean this_present_mail = true && this.isSetMail();
6590
      boolean that_present_mail = true && that.isSetMail();
6591
      if (this_present_mail || that_present_mail) {
6592
        if (!(this_present_mail && that_present_mail))
6593
          return false;
6594
        if (!this.mail.equals(that.mail))
6595
          return false;
6596
      }
6597
 
6598
      return true;
6599
    }
6600
 
6601
    @Override
6602
    public int hashCode() {
6603
      return 0;
6604
    }
6605
 
6606
    public int compareTo(sendMail_args other) {
6607
      if (!getClass().equals(other.getClass())) {
6608
        return getClass().getName().compareTo(other.getClass().getName());
6609
      }
6610
 
6611
      int lastComparison = 0;
6612
      sendMail_args typedOther = (sendMail_args)other;
6613
 
3430 rajveer 6614
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 6615
      if (lastComparison != 0) {
6616
        return lastComparison;
6617
      }
3430 rajveer 6618
      if (isSetMail()) {
6619
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
6620
        if (lastComparison != 0) {
6621
          return lastComparison;
6622
        }
352 ashish 6623
      }
6624
      return 0;
6625
    }
6626
 
3430 rajveer 6627
    public _Fields fieldForId(int fieldId) {
6628
      return _Fields.findByThriftId(fieldId);
6629
    }
6630
 
6631
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6632
      org.apache.thrift.protocol.TField field;
352 ashish 6633
      iprot.readStructBegin();
6634
      while (true)
6635
      {
6636
        field = iprot.readFieldBegin();
3430 rajveer 6637
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6638
          break;
6639
        }
3430 rajveer 6640
        switch (field.id) {
6641
          case 1: // MAIL
6642
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6643
              this.mail = new Mail();
6644
              this.mail.read(iprot);
6645
            } else { 
6646
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6647
            }
6648
            break;
6649
          default:
6650
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6651
        }
3430 rajveer 6652
        iprot.readFieldEnd();
352 ashish 6653
      }
6654
      iprot.readStructEnd();
6655
      validate();
6656
    }
6657
 
3430 rajveer 6658
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6659
      validate();
6660
 
6661
      oprot.writeStructBegin(STRUCT_DESC);
6662
      if (this.mail != null) {
6663
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
6664
        this.mail.write(oprot);
6665
        oprot.writeFieldEnd();
6666
      }
6667
      oprot.writeFieldStop();
6668
      oprot.writeStructEnd();
6669
    }
6670
 
6671
    @Override
6672
    public String toString() {
6673
      StringBuilder sb = new StringBuilder("sendMail_args(");
6674
      boolean first = true;
6675
 
6676
      sb.append("mail:");
6677
      if (this.mail == null) {
6678
        sb.append("null");
6679
      } else {
6680
        sb.append(this.mail);
6681
      }
6682
      first = false;
6683
      sb.append(")");
6684
      return sb.toString();
6685
    }
6686
 
3430 rajveer 6687
    public void validate() throws org.apache.thrift.TException {
352 ashish 6688
      // check for required fields
6689
    }
6690
 
3430 rajveer 6691
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6692
      try {
6693
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6694
      } catch (org.apache.thrift.TException te) {
6695
        throw new java.io.IOException(te);
6696
      }
6697
    }
6698
 
6699
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6700
      try {
6701
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6702
      } catch (org.apache.thrift.TException te) {
6703
        throw new java.io.IOException(te);
6704
      }
6705
    }
6706
 
352 ashish 6707
  }
6708
 
3430 rajveer 6709
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
6710
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 6711
 
3430 rajveer 6712
    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 6713
 
3430 rajveer 6714
    private HelperServiceException se; // required
352 ashish 6715
 
6716
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6717
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6718
      SE((short)1, "se");
6719
 
6720
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6721
 
6722
      static {
6723
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6724
          byName.put(field.getFieldName(), field);
6725
        }
6726
      }
6727
 
6728
      /**
6729
       * Find the _Fields constant that matches fieldId, or null if its not found.
6730
       */
6731
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6732
        switch(fieldId) {
6733
          case 1: // SE
6734
            return SE;
6735
          default:
6736
            return null;
6737
        }
352 ashish 6738
      }
6739
 
6740
      /**
6741
       * Find the _Fields constant that matches fieldId, throwing an exception
6742
       * if it is not found.
6743
       */
6744
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6745
        _Fields fields = findByThriftId(fieldId);
6746
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6747
        return fields;
6748
      }
6749
 
6750
      /**
6751
       * Find the _Fields constant that matches name, or null if its not found.
6752
       */
6753
      public static _Fields findByName(String name) {
6754
        return byName.get(name);
6755
      }
6756
 
6757
      private final short _thriftId;
6758
      private final String _fieldName;
6759
 
6760
      _Fields(short thriftId, String fieldName) {
6761
        _thriftId = thriftId;
6762
        _fieldName = fieldName;
6763
      }
6764
 
6765
      public short getThriftFieldId() {
6766
        return _thriftId;
6767
      }
6768
 
6769
      public String getFieldName() {
6770
        return _fieldName;
6771
      }
6772
    }
6773
 
6774
    // isset id assignments
6775
 
3430 rajveer 6776
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6777
    static {
3430 rajveer 6778
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6779
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6780
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6781
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6782
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 6783
    }
6784
 
6785
    public sendMail_result() {
6786
    }
6787
 
6788
    public sendMail_result(
6789
      HelperServiceException se)
6790
    {
6791
      this();
6792
      this.se = se;
6793
    }
6794
 
6795
    /**
6796
     * Performs a deep copy on <i>other</i>.
6797
     */
6798
    public sendMail_result(sendMail_result other) {
6799
      if (other.isSetSe()) {
6800
        this.se = new HelperServiceException(other.se);
6801
      }
6802
    }
6803
 
6804
    public sendMail_result deepCopy() {
6805
      return new sendMail_result(this);
6806
    }
6807
 
3430 rajveer 6808
    @Override
6809
    public void clear() {
6810
      this.se = null;
352 ashish 6811
    }
6812
 
6813
    public HelperServiceException getSe() {
6814
      return this.se;
6815
    }
6816
 
3430 rajveer 6817
    public void setSe(HelperServiceException se) {
352 ashish 6818
      this.se = se;
6819
    }
6820
 
6821
    public void unsetSe() {
6822
      this.se = null;
6823
    }
6824
 
3430 rajveer 6825
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6826
    public boolean isSetSe() {
6827
      return this.se != null;
6828
    }
6829
 
6830
    public void setSeIsSet(boolean value) {
6831
      if (!value) {
6832
        this.se = null;
6833
      }
6834
    }
6835
 
6836
    public void setFieldValue(_Fields field, Object value) {
6837
      switch (field) {
6838
      case SE:
6839
        if (value == null) {
6840
          unsetSe();
6841
        } else {
6842
          setSe((HelperServiceException)value);
6843
        }
6844
        break;
6845
 
6846
      }
6847
    }
6848
 
6849
    public Object getFieldValue(_Fields field) {
6850
      switch (field) {
6851
      case SE:
6852
        return getSe();
6853
 
6854
      }
6855
      throw new IllegalStateException();
6856
    }
6857
 
3430 rajveer 6858
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6859
    public boolean isSet(_Fields field) {
6860
      if (field == null) {
6861
        throw new IllegalArgumentException();
6862
      }
352 ashish 6863
 
6864
      switch (field) {
6865
      case SE:
6866
        return isSetSe();
6867
      }
6868
      throw new IllegalStateException();
6869
    }
6870
 
6871
    @Override
6872
    public boolean equals(Object that) {
6873
      if (that == null)
6874
        return false;
6875
      if (that instanceof sendMail_result)
6876
        return this.equals((sendMail_result)that);
6877
      return false;
6878
    }
6879
 
6880
    public boolean equals(sendMail_result that) {
6881
      if (that == null)
6882
        return false;
6883
 
6884
      boolean this_present_se = true && this.isSetSe();
6885
      boolean that_present_se = true && that.isSetSe();
6886
      if (this_present_se || that_present_se) {
6887
        if (!(this_present_se && that_present_se))
6888
          return false;
6889
        if (!this.se.equals(that.se))
6890
          return false;
6891
      }
6892
 
6893
      return true;
6894
    }
6895
 
6896
    @Override
6897
    public int hashCode() {
6898
      return 0;
6899
    }
6900
 
6901
    public int compareTo(sendMail_result other) {
6902
      if (!getClass().equals(other.getClass())) {
6903
        return getClass().getName().compareTo(other.getClass().getName());
6904
      }
6905
 
6906
      int lastComparison = 0;
6907
      sendMail_result typedOther = (sendMail_result)other;
6908
 
3430 rajveer 6909
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6910
      if (lastComparison != 0) {
6911
        return lastComparison;
6912
      }
3430 rajveer 6913
      if (isSetSe()) {
6914
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6915
        if (lastComparison != 0) {
6916
          return lastComparison;
6917
        }
352 ashish 6918
      }
6919
      return 0;
6920
    }
6921
 
3430 rajveer 6922
    public _Fields fieldForId(int fieldId) {
6923
      return _Fields.findByThriftId(fieldId);
6924
    }
6925
 
6926
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6927
      org.apache.thrift.protocol.TField field;
352 ashish 6928
      iprot.readStructBegin();
6929
      while (true)
6930
      {
6931
        field = iprot.readFieldBegin();
3430 rajveer 6932
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6933
          break;
6934
        }
3430 rajveer 6935
        switch (field.id) {
6936
          case 1: // SE
6937
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6938
              this.se = new HelperServiceException();
6939
              this.se.read(iprot);
6940
            } else { 
6941
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6942
            }
6943
            break;
6944
          default:
6945
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6946
        }
3430 rajveer 6947
        iprot.readFieldEnd();
352 ashish 6948
      }
6949
      iprot.readStructEnd();
6950
      validate();
6951
    }
6952
 
3430 rajveer 6953
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6954
      oprot.writeStructBegin(STRUCT_DESC);
6955
 
6956
      if (this.isSetSe()) {
6957
        oprot.writeFieldBegin(SE_FIELD_DESC);
6958
        this.se.write(oprot);
6959
        oprot.writeFieldEnd();
6960
      }
6961
      oprot.writeFieldStop();
6962
      oprot.writeStructEnd();
6963
    }
6964
 
6965
    @Override
6966
    public String toString() {
6967
      StringBuilder sb = new StringBuilder("sendMail_result(");
6968
      boolean first = true;
6969
 
6970
      sb.append("se:");
6971
      if (this.se == null) {
6972
        sb.append("null");
6973
      } else {
6974
        sb.append(this.se);
6975
      }
6976
      first = false;
6977
      sb.append(")");
6978
      return sb.toString();
6979
    }
6980
 
3430 rajveer 6981
    public void validate() throws org.apache.thrift.TException {
352 ashish 6982
      // check for required fields
6983
    }
6984
 
3430 rajveer 6985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6986
      try {
6987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6988
      } catch (org.apache.thrift.TException te) {
6989
        throw new java.io.IOException(te);
6990
      }
6991
    }
6992
 
6993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6994
      try {
6995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6996
      } catch (org.apache.thrift.TException te) {
6997
        throw new java.io.IOException(te);
6998
      }
6999
    }
7000
 
352 ashish 7001
  }
7002
 
3430 rajveer 7003
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
7004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 7005
 
3430 rajveer 7006
    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 7007
 
3430 rajveer 7008
    private TextMessage message; // required
352 ashish 7009
 
7010
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7011
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7012
      MESSAGE((short)1, "message");
7013
 
7014
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7015
 
7016
      static {
7017
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7018
          byName.put(field.getFieldName(), field);
7019
        }
7020
      }
7021
 
7022
      /**
7023
       * Find the _Fields constant that matches fieldId, or null if its not found.
7024
       */
7025
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7026
        switch(fieldId) {
7027
          case 1: // MESSAGE
7028
            return MESSAGE;
7029
          default:
7030
            return null;
7031
        }
352 ashish 7032
      }
7033
 
7034
      /**
7035
       * Find the _Fields constant that matches fieldId, throwing an exception
7036
       * if it is not found.
7037
       */
7038
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7039
        _Fields fields = findByThriftId(fieldId);
7040
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7041
        return fields;
7042
      }
7043
 
7044
      /**
7045
       * Find the _Fields constant that matches name, or null if its not found.
7046
       */
7047
      public static _Fields findByName(String name) {
7048
        return byName.get(name);
7049
      }
7050
 
7051
      private final short _thriftId;
7052
      private final String _fieldName;
7053
 
7054
      _Fields(short thriftId, String fieldName) {
7055
        _thriftId = thriftId;
7056
        _fieldName = fieldName;
7057
      }
7058
 
7059
      public short getThriftFieldId() {
7060
        return _thriftId;
7061
      }
7062
 
7063
      public String getFieldName() {
7064
        return _fieldName;
7065
      }
7066
    }
7067
 
7068
    // isset id assignments
7069
 
3430 rajveer 7070
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7071
    static {
3430 rajveer 7072
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7073
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7074
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
7075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 7077
    }
7078
 
7079
    public sendText_args() {
7080
    }
7081
 
7082
    public sendText_args(
7083
      TextMessage message)
7084
    {
7085
      this();
7086
      this.message = message;
7087
    }
7088
 
7089
    /**
7090
     * Performs a deep copy on <i>other</i>.
7091
     */
7092
    public sendText_args(sendText_args other) {
7093
      if (other.isSetMessage()) {
7094
        this.message = new TextMessage(other.message);
7095
      }
7096
    }
7097
 
7098
    public sendText_args deepCopy() {
7099
      return new sendText_args(this);
7100
    }
7101
 
3430 rajveer 7102
    @Override
7103
    public void clear() {
7104
      this.message = null;
352 ashish 7105
    }
7106
 
7107
    public TextMessage getMessage() {
7108
      return this.message;
7109
    }
7110
 
3430 rajveer 7111
    public void setMessage(TextMessage message) {
352 ashish 7112
      this.message = message;
7113
    }
7114
 
7115
    public void unsetMessage() {
7116
      this.message = null;
7117
    }
7118
 
3430 rajveer 7119
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7120
    public boolean isSetMessage() {
7121
      return this.message != null;
7122
    }
7123
 
7124
    public void setMessageIsSet(boolean value) {
7125
      if (!value) {
7126
        this.message = null;
7127
      }
7128
    }
7129
 
7130
    public void setFieldValue(_Fields field, Object value) {
7131
      switch (field) {
7132
      case MESSAGE:
7133
        if (value == null) {
7134
          unsetMessage();
7135
        } else {
7136
          setMessage((TextMessage)value);
7137
        }
7138
        break;
7139
 
7140
      }
7141
    }
7142
 
7143
    public Object getFieldValue(_Fields field) {
7144
      switch (field) {
7145
      case MESSAGE:
7146
        return getMessage();
7147
 
7148
      }
7149
      throw new IllegalStateException();
7150
    }
7151
 
3430 rajveer 7152
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7153
    public boolean isSet(_Fields field) {
7154
      if (field == null) {
7155
        throw new IllegalArgumentException();
7156
      }
352 ashish 7157
 
7158
      switch (field) {
7159
      case MESSAGE:
7160
        return isSetMessage();
7161
      }
7162
      throw new IllegalStateException();
7163
    }
7164
 
7165
    @Override
7166
    public boolean equals(Object that) {
7167
      if (that == null)
7168
        return false;
7169
      if (that instanceof sendText_args)
7170
        return this.equals((sendText_args)that);
7171
      return false;
7172
    }
7173
 
7174
    public boolean equals(sendText_args that) {
7175
      if (that == null)
7176
        return false;
7177
 
7178
      boolean this_present_message = true && this.isSetMessage();
7179
      boolean that_present_message = true && that.isSetMessage();
7180
      if (this_present_message || that_present_message) {
7181
        if (!(this_present_message && that_present_message))
7182
          return false;
7183
        if (!this.message.equals(that.message))
7184
          return false;
7185
      }
7186
 
7187
      return true;
7188
    }
7189
 
7190
    @Override
7191
    public int hashCode() {
7192
      return 0;
7193
    }
7194
 
7195
    public int compareTo(sendText_args other) {
7196
      if (!getClass().equals(other.getClass())) {
7197
        return getClass().getName().compareTo(other.getClass().getName());
7198
      }
7199
 
7200
      int lastComparison = 0;
7201
      sendText_args typedOther = (sendText_args)other;
7202
 
3430 rajveer 7203
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7204
      if (lastComparison != 0) {
7205
        return lastComparison;
7206
      }
3430 rajveer 7207
      if (isSetMessage()) {
7208
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7209
        if (lastComparison != 0) {
7210
          return lastComparison;
7211
        }
352 ashish 7212
      }
7213
      return 0;
7214
    }
7215
 
3430 rajveer 7216
    public _Fields fieldForId(int fieldId) {
7217
      return _Fields.findByThriftId(fieldId);
7218
    }
7219
 
7220
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7221
      org.apache.thrift.protocol.TField field;
352 ashish 7222
      iprot.readStructBegin();
7223
      while (true)
7224
      {
7225
        field = iprot.readFieldBegin();
3430 rajveer 7226
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7227
          break;
7228
        }
3430 rajveer 7229
        switch (field.id) {
7230
          case 1: // MESSAGE
7231
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7232
              this.message = new TextMessage();
7233
              this.message.read(iprot);
7234
            } else { 
7235
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7236
            }
7237
            break;
7238
          default:
7239
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7240
        }
3430 rajveer 7241
        iprot.readFieldEnd();
352 ashish 7242
      }
7243
      iprot.readStructEnd();
7244
      validate();
7245
    }
7246
 
3430 rajveer 7247
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7248
      validate();
7249
 
7250
      oprot.writeStructBegin(STRUCT_DESC);
7251
      if (this.message != null) {
7252
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7253
        this.message.write(oprot);
7254
        oprot.writeFieldEnd();
7255
      }
7256
      oprot.writeFieldStop();
7257
      oprot.writeStructEnd();
7258
    }
7259
 
7260
    @Override
7261
    public String toString() {
7262
      StringBuilder sb = new StringBuilder("sendText_args(");
7263
      boolean first = true;
7264
 
7265
      sb.append("message:");
7266
      if (this.message == null) {
7267
        sb.append("null");
7268
      } else {
7269
        sb.append(this.message);
7270
      }
7271
      first = false;
7272
      sb.append(")");
7273
      return sb.toString();
7274
    }
7275
 
3430 rajveer 7276
    public void validate() throws org.apache.thrift.TException {
352 ashish 7277
      // check for required fields
7278
    }
7279
 
3430 rajveer 7280
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7281
      try {
7282
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7283
      } catch (org.apache.thrift.TException te) {
7284
        throw new java.io.IOException(te);
7285
      }
7286
    }
7287
 
7288
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7289
      try {
7290
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7291
      } catch (org.apache.thrift.TException te) {
7292
        throw new java.io.IOException(te);
7293
      }
7294
    }
7295
 
352 ashish 7296
  }
7297
 
3430 rajveer 7298
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
7299
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 7300
 
3430 rajveer 7301
    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 7302
 
3430 rajveer 7303
    private HelperServiceException se; // required
352 ashish 7304
 
7305
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7306
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7307
      SE((short)1, "se");
7308
 
7309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7310
 
7311
      static {
7312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7313
          byName.put(field.getFieldName(), field);
7314
        }
7315
      }
7316
 
7317
      /**
7318
       * Find the _Fields constant that matches fieldId, or null if its not found.
7319
       */
7320
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7321
        switch(fieldId) {
7322
          case 1: // SE
7323
            return SE;
7324
          default:
7325
            return null;
7326
        }
352 ashish 7327
      }
7328
 
7329
      /**
7330
       * Find the _Fields constant that matches fieldId, throwing an exception
7331
       * if it is not found.
7332
       */
7333
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7334
        _Fields fields = findByThriftId(fieldId);
7335
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7336
        return fields;
7337
      }
7338
 
7339
      /**
7340
       * Find the _Fields constant that matches name, or null if its not found.
7341
       */
7342
      public static _Fields findByName(String name) {
7343
        return byName.get(name);
7344
      }
7345
 
7346
      private final short _thriftId;
7347
      private final String _fieldName;
7348
 
7349
      _Fields(short thriftId, String fieldName) {
7350
        _thriftId = thriftId;
7351
        _fieldName = fieldName;
7352
      }
7353
 
7354
      public short getThriftFieldId() {
7355
        return _thriftId;
7356
      }
7357
 
7358
      public String getFieldName() {
7359
        return _fieldName;
7360
      }
7361
    }
7362
 
7363
    // isset id assignments
7364
 
3430 rajveer 7365
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7366
    static {
3430 rajveer 7367
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7368
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7369
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7370
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7371
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 7372
    }
7373
 
7374
    public sendText_result() {
7375
    }
7376
 
7377
    public sendText_result(
7378
      HelperServiceException se)
7379
    {
7380
      this();
7381
      this.se = se;
7382
    }
7383
 
7384
    /**
7385
     * Performs a deep copy on <i>other</i>.
7386
     */
7387
    public sendText_result(sendText_result other) {
7388
      if (other.isSetSe()) {
7389
        this.se = new HelperServiceException(other.se);
7390
      }
7391
    }
7392
 
7393
    public sendText_result deepCopy() {
7394
      return new sendText_result(this);
7395
    }
7396
 
3430 rajveer 7397
    @Override
7398
    public void clear() {
7399
      this.se = null;
352 ashish 7400
    }
7401
 
7402
    public HelperServiceException getSe() {
7403
      return this.se;
7404
    }
7405
 
3430 rajveer 7406
    public void setSe(HelperServiceException se) {
352 ashish 7407
      this.se = se;
7408
    }
7409
 
7410
    public void unsetSe() {
7411
      this.se = null;
7412
    }
7413
 
3430 rajveer 7414
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7415
    public boolean isSetSe() {
7416
      return this.se != null;
7417
    }
7418
 
7419
    public void setSeIsSet(boolean value) {
7420
      if (!value) {
7421
        this.se = null;
7422
      }
7423
    }
7424
 
7425
    public void setFieldValue(_Fields field, Object value) {
7426
      switch (field) {
7427
      case SE:
7428
        if (value == null) {
7429
          unsetSe();
7430
        } else {
7431
          setSe((HelperServiceException)value);
7432
        }
7433
        break;
7434
 
7435
      }
7436
    }
7437
 
7438
    public Object getFieldValue(_Fields field) {
7439
      switch (field) {
7440
      case SE:
7441
        return getSe();
7442
 
7443
      }
7444
      throw new IllegalStateException();
7445
    }
7446
 
3430 rajveer 7447
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7448
    public boolean isSet(_Fields field) {
7449
      if (field == null) {
7450
        throw new IllegalArgumentException();
7451
      }
352 ashish 7452
 
7453
      switch (field) {
7454
      case SE:
7455
        return isSetSe();
7456
      }
7457
      throw new IllegalStateException();
7458
    }
7459
 
7460
    @Override
7461
    public boolean equals(Object that) {
7462
      if (that == null)
7463
        return false;
7464
      if (that instanceof sendText_result)
7465
        return this.equals((sendText_result)that);
7466
      return false;
7467
    }
7468
 
7469
    public boolean equals(sendText_result that) {
7470
      if (that == null)
7471
        return false;
7472
 
7473
      boolean this_present_se = true && this.isSetSe();
7474
      boolean that_present_se = true && that.isSetSe();
7475
      if (this_present_se || that_present_se) {
7476
        if (!(this_present_se && that_present_se))
7477
          return false;
7478
        if (!this.se.equals(that.se))
7479
          return false;
7480
      }
7481
 
7482
      return true;
7483
    }
7484
 
7485
    @Override
7486
    public int hashCode() {
7487
      return 0;
7488
    }
7489
 
7490
    public int compareTo(sendText_result other) {
7491
      if (!getClass().equals(other.getClass())) {
7492
        return getClass().getName().compareTo(other.getClass().getName());
7493
      }
7494
 
7495
      int lastComparison = 0;
7496
      sendText_result typedOther = (sendText_result)other;
7497
 
3430 rajveer 7498
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7499
      if (lastComparison != 0) {
7500
        return lastComparison;
7501
      }
3430 rajveer 7502
      if (isSetSe()) {
7503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7504
        if (lastComparison != 0) {
7505
          return lastComparison;
7506
        }
352 ashish 7507
      }
7508
      return 0;
7509
    }
7510
 
3430 rajveer 7511
    public _Fields fieldForId(int fieldId) {
7512
      return _Fields.findByThriftId(fieldId);
7513
    }
7514
 
7515
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7516
      org.apache.thrift.protocol.TField field;
352 ashish 7517
      iprot.readStructBegin();
7518
      while (true)
7519
      {
7520
        field = iprot.readFieldBegin();
3430 rajveer 7521
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7522
          break;
7523
        }
3430 rajveer 7524
        switch (field.id) {
7525
          case 1: // SE
7526
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7527
              this.se = new HelperServiceException();
7528
              this.se.read(iprot);
7529
            } else { 
7530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7531
            }
7532
            break;
7533
          default:
7534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7535
        }
3430 rajveer 7536
        iprot.readFieldEnd();
352 ashish 7537
      }
7538
      iprot.readStructEnd();
7539
      validate();
7540
    }
7541
 
3430 rajveer 7542
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7543
      oprot.writeStructBegin(STRUCT_DESC);
7544
 
7545
      if (this.isSetSe()) {
7546
        oprot.writeFieldBegin(SE_FIELD_DESC);
7547
        this.se.write(oprot);
7548
        oprot.writeFieldEnd();
7549
      }
7550
      oprot.writeFieldStop();
7551
      oprot.writeStructEnd();
7552
    }
7553
 
7554
    @Override
7555
    public String toString() {
7556
      StringBuilder sb = new StringBuilder("sendText_result(");
7557
      boolean first = true;
7558
 
7559
      sb.append("se:");
7560
      if (this.se == null) {
7561
        sb.append("null");
7562
      } else {
7563
        sb.append(this.se);
7564
      }
7565
      first = false;
7566
      sb.append(")");
7567
      return sb.toString();
7568
    }
7569
 
3430 rajveer 7570
    public void validate() throws org.apache.thrift.TException {
352 ashish 7571
      // check for required fields
7572
    }
7573
 
3430 rajveer 7574
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7575
      try {
7576
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7577
      } catch (org.apache.thrift.TException te) {
7578
        throw new java.io.IOException(te);
7579
      }
7580
    }
7581
 
7582
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7583
      try {
7584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7585
      } catch (org.apache.thrift.TException te) {
7586
        throw new java.io.IOException(te);
7587
      }
7588
    }
7589
 
352 ashish 7590
  }
7591
 
3430 rajveer 7592
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
7593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 7594
 
3430 rajveer 7595
    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 7596
 
3430 rajveer 7597
    private Message message; // required
352 ashish 7598
 
7599
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7600
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7601
      MESSAGE((short)1, "message");
7602
 
7603
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7604
 
7605
      static {
7606
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7607
          byName.put(field.getFieldName(), field);
7608
        }
7609
      }
7610
 
7611
      /**
7612
       * Find the _Fields constant that matches fieldId, or null if its not found.
7613
       */
7614
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7615
        switch(fieldId) {
7616
          case 1: // MESSAGE
7617
            return MESSAGE;
7618
          default:
7619
            return null;
7620
        }
352 ashish 7621
      }
7622
 
7623
      /**
7624
       * Find the _Fields constant that matches fieldId, throwing an exception
7625
       * if it is not found.
7626
       */
7627
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7628
        _Fields fields = findByThriftId(fieldId);
7629
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7630
        return fields;
7631
      }
7632
 
7633
      /**
7634
       * Find the _Fields constant that matches name, or null if its not found.
7635
       */
7636
      public static _Fields findByName(String name) {
7637
        return byName.get(name);
7638
      }
7639
 
7640
      private final short _thriftId;
7641
      private final String _fieldName;
7642
 
7643
      _Fields(short thriftId, String fieldName) {
7644
        _thriftId = thriftId;
7645
        _fieldName = fieldName;
7646
      }
7647
 
7648
      public short getThriftFieldId() {
7649
        return _thriftId;
7650
      }
7651
 
7652
      public String getFieldName() {
7653
        return _fieldName;
7654
      }
7655
    }
7656
 
7657
    // isset id assignments
7658
 
3430 rajveer 7659
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7660
    static {
3430 rajveer 7661
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7662
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7663
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7664
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7665
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 7666
    }
7667
 
7668
    public addMessage_args() {
7669
    }
7670
 
7671
    public addMessage_args(
7672
      Message message)
7673
    {
7674
      this();
7675
      this.message = message;
7676
    }
7677
 
7678
    /**
7679
     * Performs a deep copy on <i>other</i>.
7680
     */
7681
    public addMessage_args(addMessage_args other) {
7682
      if (other.isSetMessage()) {
7683
        this.message = new Message(other.message);
7684
      }
7685
    }
7686
 
7687
    public addMessage_args deepCopy() {
7688
      return new addMessage_args(this);
7689
    }
7690
 
3430 rajveer 7691
    @Override
7692
    public void clear() {
7693
      this.message = null;
352 ashish 7694
    }
7695
 
7696
    public Message getMessage() {
7697
      return this.message;
7698
    }
7699
 
3430 rajveer 7700
    public void setMessage(Message message) {
352 ashish 7701
      this.message = message;
7702
    }
7703
 
7704
    public void unsetMessage() {
7705
      this.message = null;
7706
    }
7707
 
3430 rajveer 7708
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7709
    public boolean isSetMessage() {
7710
      return this.message != null;
7711
    }
7712
 
7713
    public void setMessageIsSet(boolean value) {
7714
      if (!value) {
7715
        this.message = null;
7716
      }
7717
    }
7718
 
7719
    public void setFieldValue(_Fields field, Object value) {
7720
      switch (field) {
7721
      case MESSAGE:
7722
        if (value == null) {
7723
          unsetMessage();
7724
        } else {
7725
          setMessage((Message)value);
7726
        }
7727
        break;
7728
 
7729
      }
7730
    }
7731
 
7732
    public Object getFieldValue(_Fields field) {
7733
      switch (field) {
7734
      case MESSAGE:
7735
        return getMessage();
7736
 
7737
      }
7738
      throw new IllegalStateException();
7739
    }
7740
 
3430 rajveer 7741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7742
    public boolean isSet(_Fields field) {
7743
      if (field == null) {
7744
        throw new IllegalArgumentException();
7745
      }
352 ashish 7746
 
7747
      switch (field) {
7748
      case MESSAGE:
7749
        return isSetMessage();
7750
      }
7751
      throw new IllegalStateException();
7752
    }
7753
 
7754
    @Override
7755
    public boolean equals(Object that) {
7756
      if (that == null)
7757
        return false;
7758
      if (that instanceof addMessage_args)
7759
        return this.equals((addMessage_args)that);
7760
      return false;
7761
    }
7762
 
7763
    public boolean equals(addMessage_args that) {
7764
      if (that == null)
7765
        return false;
7766
 
7767
      boolean this_present_message = true && this.isSetMessage();
7768
      boolean that_present_message = true && that.isSetMessage();
7769
      if (this_present_message || that_present_message) {
7770
        if (!(this_present_message && that_present_message))
7771
          return false;
7772
        if (!this.message.equals(that.message))
7773
          return false;
7774
      }
7775
 
7776
      return true;
7777
    }
7778
 
7779
    @Override
7780
    public int hashCode() {
7781
      return 0;
7782
    }
7783
 
7784
    public int compareTo(addMessage_args other) {
7785
      if (!getClass().equals(other.getClass())) {
7786
        return getClass().getName().compareTo(other.getClass().getName());
7787
      }
7788
 
7789
      int lastComparison = 0;
7790
      addMessage_args typedOther = (addMessage_args)other;
7791
 
3430 rajveer 7792
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7793
      if (lastComparison != 0) {
7794
        return lastComparison;
7795
      }
3430 rajveer 7796
      if (isSetMessage()) {
7797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7798
        if (lastComparison != 0) {
7799
          return lastComparison;
7800
        }
352 ashish 7801
      }
7802
      return 0;
7803
    }
7804
 
3430 rajveer 7805
    public _Fields fieldForId(int fieldId) {
7806
      return _Fields.findByThriftId(fieldId);
7807
    }
7808
 
7809
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7810
      org.apache.thrift.protocol.TField field;
352 ashish 7811
      iprot.readStructBegin();
7812
      while (true)
7813
      {
7814
        field = iprot.readFieldBegin();
3430 rajveer 7815
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7816
          break;
7817
        }
3430 rajveer 7818
        switch (field.id) {
7819
          case 1: // MESSAGE
7820
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7821
              this.message = new Message();
7822
              this.message.read(iprot);
7823
            } else { 
7824
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7825
            }
7826
            break;
7827
          default:
7828
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7829
        }
3430 rajveer 7830
        iprot.readFieldEnd();
352 ashish 7831
      }
7832
      iprot.readStructEnd();
7833
      validate();
7834
    }
7835
 
3430 rajveer 7836
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7837
      validate();
7838
 
7839
      oprot.writeStructBegin(STRUCT_DESC);
7840
      if (this.message != null) {
7841
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7842
        this.message.write(oprot);
7843
        oprot.writeFieldEnd();
7844
      }
7845
      oprot.writeFieldStop();
7846
      oprot.writeStructEnd();
7847
    }
7848
 
7849
    @Override
7850
    public String toString() {
7851
      StringBuilder sb = new StringBuilder("addMessage_args(");
7852
      boolean first = true;
7853
 
7854
      sb.append("message:");
7855
      if (this.message == null) {
7856
        sb.append("null");
7857
      } else {
7858
        sb.append(this.message);
7859
      }
7860
      first = false;
7861
      sb.append(")");
7862
      return sb.toString();
7863
    }
7864
 
3430 rajveer 7865
    public void validate() throws org.apache.thrift.TException {
352 ashish 7866
      // check for required fields
7867
    }
7868
 
3430 rajveer 7869
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7870
      try {
7871
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7872
      } catch (org.apache.thrift.TException te) {
7873
        throw new java.io.IOException(te);
7874
      }
7875
    }
7876
 
7877
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7878
      try {
7879
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7880
      } catch (org.apache.thrift.TException te) {
7881
        throw new java.io.IOException(te);
7882
      }
7883
    }
7884
 
352 ashish 7885
  }
7886
 
3430 rajveer 7887
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
7888
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 7889
 
3430 rajveer 7890
    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 7891
 
3430 rajveer 7892
    private HelperServiceException se; // required
352 ashish 7893
 
7894
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7895
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7896
      SE((short)1, "se");
7897
 
7898
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7899
 
7900
      static {
7901
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7902
          byName.put(field.getFieldName(), field);
7903
        }
7904
      }
7905
 
7906
      /**
7907
       * Find the _Fields constant that matches fieldId, or null if its not found.
7908
       */
7909
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7910
        switch(fieldId) {
7911
          case 1: // SE
7912
            return SE;
7913
          default:
7914
            return null;
7915
        }
352 ashish 7916
      }
7917
 
7918
      /**
7919
       * Find the _Fields constant that matches fieldId, throwing an exception
7920
       * if it is not found.
7921
       */
7922
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7923
        _Fields fields = findByThriftId(fieldId);
7924
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7925
        return fields;
7926
      }
7927
 
7928
      /**
7929
       * Find the _Fields constant that matches name, or null if its not found.
7930
       */
7931
      public static _Fields findByName(String name) {
7932
        return byName.get(name);
7933
      }
7934
 
7935
      private final short _thriftId;
7936
      private final String _fieldName;
7937
 
7938
      _Fields(short thriftId, String fieldName) {
7939
        _thriftId = thriftId;
7940
        _fieldName = fieldName;
7941
      }
7942
 
7943
      public short getThriftFieldId() {
7944
        return _thriftId;
7945
      }
7946
 
7947
      public String getFieldName() {
7948
        return _fieldName;
7949
      }
7950
    }
7951
 
7952
    // isset id assignments
7953
 
3430 rajveer 7954
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7955
    static {
3430 rajveer 7956
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7957
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7958
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7959
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7960
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 7961
    }
7962
 
7963
    public addMessage_result() {
7964
    }
7965
 
7966
    public addMessage_result(
7967
      HelperServiceException se)
7968
    {
7969
      this();
7970
      this.se = se;
7971
    }
7972
 
7973
    /**
7974
     * Performs a deep copy on <i>other</i>.
7975
     */
7976
    public addMessage_result(addMessage_result other) {
7977
      if (other.isSetSe()) {
7978
        this.se = new HelperServiceException(other.se);
7979
      }
7980
    }
7981
 
7982
    public addMessage_result deepCopy() {
7983
      return new addMessage_result(this);
7984
    }
7985
 
3430 rajveer 7986
    @Override
7987
    public void clear() {
7988
      this.se = null;
352 ashish 7989
    }
7990
 
7991
    public HelperServiceException getSe() {
7992
      return this.se;
7993
    }
7994
 
3430 rajveer 7995
    public void setSe(HelperServiceException se) {
352 ashish 7996
      this.se = se;
7997
    }
7998
 
7999
    public void unsetSe() {
8000
      this.se = null;
8001
    }
8002
 
3430 rajveer 8003
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8004
    public boolean isSetSe() {
8005
      return this.se != null;
8006
    }
8007
 
8008
    public void setSeIsSet(boolean value) {
8009
      if (!value) {
8010
        this.se = null;
8011
      }
8012
    }
8013
 
8014
    public void setFieldValue(_Fields field, Object value) {
8015
      switch (field) {
8016
      case SE:
8017
        if (value == null) {
8018
          unsetSe();
8019
        } else {
8020
          setSe((HelperServiceException)value);
8021
        }
8022
        break;
8023
 
8024
      }
8025
    }
8026
 
8027
    public Object getFieldValue(_Fields field) {
8028
      switch (field) {
8029
      case SE:
8030
        return getSe();
8031
 
8032
      }
8033
      throw new IllegalStateException();
8034
    }
8035
 
3430 rajveer 8036
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8037
    public boolean isSet(_Fields field) {
8038
      if (field == null) {
8039
        throw new IllegalArgumentException();
8040
      }
352 ashish 8041
 
8042
      switch (field) {
8043
      case SE:
8044
        return isSetSe();
8045
      }
8046
      throw new IllegalStateException();
8047
    }
8048
 
8049
    @Override
8050
    public boolean equals(Object that) {
8051
      if (that == null)
8052
        return false;
8053
      if (that instanceof addMessage_result)
8054
        return this.equals((addMessage_result)that);
8055
      return false;
8056
    }
8057
 
8058
    public boolean equals(addMessage_result that) {
8059
      if (that == null)
8060
        return false;
8061
 
8062
      boolean this_present_se = true && this.isSetSe();
8063
      boolean that_present_se = true && that.isSetSe();
8064
      if (this_present_se || that_present_se) {
8065
        if (!(this_present_se && that_present_se))
8066
          return false;
8067
        if (!this.se.equals(that.se))
8068
          return false;
8069
      }
8070
 
8071
      return true;
8072
    }
8073
 
8074
    @Override
8075
    public int hashCode() {
8076
      return 0;
8077
    }
8078
 
8079
    public int compareTo(addMessage_result other) {
8080
      if (!getClass().equals(other.getClass())) {
8081
        return getClass().getName().compareTo(other.getClass().getName());
8082
      }
8083
 
8084
      int lastComparison = 0;
8085
      addMessage_result typedOther = (addMessage_result)other;
8086
 
3430 rajveer 8087
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8088
      if (lastComparison != 0) {
8089
        return lastComparison;
8090
      }
3430 rajveer 8091
      if (isSetSe()) {
8092
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8093
        if (lastComparison != 0) {
8094
          return lastComparison;
8095
        }
352 ashish 8096
      }
8097
      return 0;
8098
    }
8099
 
3430 rajveer 8100
    public _Fields fieldForId(int fieldId) {
8101
      return _Fields.findByThriftId(fieldId);
8102
    }
8103
 
8104
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8105
      org.apache.thrift.protocol.TField field;
352 ashish 8106
      iprot.readStructBegin();
8107
      while (true)
8108
      {
8109
        field = iprot.readFieldBegin();
3430 rajveer 8110
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8111
          break;
8112
        }
3430 rajveer 8113
        switch (field.id) {
8114
          case 1: // SE
8115
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8116
              this.se = new HelperServiceException();
8117
              this.se.read(iprot);
8118
            } else { 
8119
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8120
            }
8121
            break;
8122
          default:
8123
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8124
        }
3430 rajveer 8125
        iprot.readFieldEnd();
352 ashish 8126
      }
8127
      iprot.readStructEnd();
8128
      validate();
8129
    }
8130
 
3430 rajveer 8131
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8132
      oprot.writeStructBegin(STRUCT_DESC);
8133
 
8134
      if (this.isSetSe()) {
8135
        oprot.writeFieldBegin(SE_FIELD_DESC);
8136
        this.se.write(oprot);
8137
        oprot.writeFieldEnd();
8138
      }
8139
      oprot.writeFieldStop();
8140
      oprot.writeStructEnd();
8141
    }
8142
 
8143
    @Override
8144
    public String toString() {
8145
      StringBuilder sb = new StringBuilder("addMessage_result(");
8146
      boolean first = true;
8147
 
8148
      sb.append("se:");
8149
      if (this.se == null) {
8150
        sb.append("null");
8151
      } else {
8152
        sb.append(this.se);
8153
      }
8154
      first = false;
8155
      sb.append(")");
8156
      return sb.toString();
8157
    }
8158
 
3430 rajveer 8159
    public void validate() throws org.apache.thrift.TException {
352 ashish 8160
      // check for required fields
8161
    }
8162
 
3430 rajveer 8163
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8164
      try {
8165
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8166
      } catch (org.apache.thrift.TException te) {
8167
        throw new java.io.IOException(te);
8168
      }
8169
    }
8170
 
8171
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8172
      try {
8173
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8174
      } catch (org.apache.thrift.TException te) {
8175
        throw new java.io.IOException(te);
8176
      }
8177
    }
8178
 
352 ashish 8179
  }
8180
 
3430 rajveer 8181
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
8182
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 8183
 
3430 rajveer 8184
    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);
8185
    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 8186
 
3430 rajveer 8187
    private long id; // required
8188
    private String message; // required
352 ashish 8189
 
8190
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8191
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8192
      ID((short)1, "id"),
8193
      MESSAGE((short)2, "message");
8194
 
8195
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8196
 
8197
      static {
8198
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8199
          byName.put(field.getFieldName(), field);
8200
        }
8201
      }
8202
 
8203
      /**
8204
       * Find the _Fields constant that matches fieldId, or null if its not found.
8205
       */
8206
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8207
        switch(fieldId) {
8208
          case 1: // ID
8209
            return ID;
8210
          case 2: // MESSAGE
8211
            return MESSAGE;
8212
          default:
8213
            return null;
8214
        }
352 ashish 8215
      }
8216
 
8217
      /**
8218
       * Find the _Fields constant that matches fieldId, throwing an exception
8219
       * if it is not found.
8220
       */
8221
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8222
        _Fields fields = findByThriftId(fieldId);
8223
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8224
        return fields;
8225
      }
8226
 
8227
      /**
8228
       * Find the _Fields constant that matches name, or null if its not found.
8229
       */
8230
      public static _Fields findByName(String name) {
8231
        return byName.get(name);
8232
      }
8233
 
8234
      private final short _thriftId;
8235
      private final String _fieldName;
8236
 
8237
      _Fields(short thriftId, String fieldName) {
8238
        _thriftId = thriftId;
8239
        _fieldName = fieldName;
8240
      }
8241
 
8242
      public short getThriftFieldId() {
8243
        return _thriftId;
8244
      }
8245
 
8246
      public String getFieldName() {
8247
        return _fieldName;
8248
      }
8249
    }
8250
 
8251
    // isset id assignments
8252
    private static final int __ID_ISSET_ID = 0;
8253
    private BitSet __isset_bit_vector = new BitSet(1);
8254
 
3430 rajveer 8255
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8256
    static {
3430 rajveer 8257
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8258
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8259
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8260
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8261
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8262
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8263
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 8264
    }
8265
 
8266
    public updateMessage_args() {
8267
    }
8268
 
8269
    public updateMessage_args(
8270
      long id,
8271
      String message)
8272
    {
8273
      this();
8274
      this.id = id;
8275
      setIdIsSet(true);
8276
      this.message = message;
8277
    }
8278
 
8279
    /**
8280
     * Performs a deep copy on <i>other</i>.
8281
     */
8282
    public updateMessage_args(updateMessage_args other) {
8283
      __isset_bit_vector.clear();
8284
      __isset_bit_vector.or(other.__isset_bit_vector);
8285
      this.id = other.id;
8286
      if (other.isSetMessage()) {
8287
        this.message = other.message;
8288
      }
8289
    }
8290
 
8291
    public updateMessage_args deepCopy() {
8292
      return new updateMessage_args(this);
8293
    }
8294
 
3430 rajveer 8295
    @Override
8296
    public void clear() {
8297
      setIdIsSet(false);
8298
      this.id = 0;
8299
      this.message = null;
352 ashish 8300
    }
8301
 
8302
    public long getId() {
8303
      return this.id;
8304
    }
8305
 
3430 rajveer 8306
    public void setId(long id) {
352 ashish 8307
      this.id = id;
8308
      setIdIsSet(true);
8309
    }
8310
 
8311
    public void unsetId() {
8312
      __isset_bit_vector.clear(__ID_ISSET_ID);
8313
    }
8314
 
3430 rajveer 8315
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8316
    public boolean isSetId() {
8317
      return __isset_bit_vector.get(__ID_ISSET_ID);
8318
    }
8319
 
8320
    public void setIdIsSet(boolean value) {
8321
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8322
    }
8323
 
8324
    public String getMessage() {
8325
      return this.message;
8326
    }
8327
 
3430 rajveer 8328
    public void setMessage(String message) {
352 ashish 8329
      this.message = message;
8330
    }
8331
 
8332
    public void unsetMessage() {
8333
      this.message = null;
8334
    }
8335
 
3430 rajveer 8336
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 8337
    public boolean isSetMessage() {
8338
      return this.message != null;
8339
    }
8340
 
8341
    public void setMessageIsSet(boolean value) {
8342
      if (!value) {
8343
        this.message = null;
8344
      }
8345
    }
8346
 
8347
    public void setFieldValue(_Fields field, Object value) {
8348
      switch (field) {
8349
      case ID:
8350
        if (value == null) {
8351
          unsetId();
8352
        } else {
8353
          setId((Long)value);
8354
        }
8355
        break;
8356
 
8357
      case MESSAGE:
8358
        if (value == null) {
8359
          unsetMessage();
8360
        } else {
8361
          setMessage((String)value);
8362
        }
8363
        break;
8364
 
8365
      }
8366
    }
8367
 
8368
    public Object getFieldValue(_Fields field) {
8369
      switch (field) {
8370
      case ID:
3430 rajveer 8371
        return Long.valueOf(getId());
352 ashish 8372
 
8373
      case MESSAGE:
8374
        return getMessage();
8375
 
8376
      }
8377
      throw new IllegalStateException();
8378
    }
8379
 
3430 rajveer 8380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8381
    public boolean isSet(_Fields field) {
8382
      if (field == null) {
8383
        throw new IllegalArgumentException();
8384
      }
352 ashish 8385
 
8386
      switch (field) {
8387
      case ID:
8388
        return isSetId();
8389
      case MESSAGE:
8390
        return isSetMessage();
8391
      }
8392
      throw new IllegalStateException();
8393
    }
8394
 
8395
    @Override
8396
    public boolean equals(Object that) {
8397
      if (that == null)
8398
        return false;
8399
      if (that instanceof updateMessage_args)
8400
        return this.equals((updateMessage_args)that);
8401
      return false;
8402
    }
8403
 
8404
    public boolean equals(updateMessage_args that) {
8405
      if (that == null)
8406
        return false;
8407
 
8408
      boolean this_present_id = true;
8409
      boolean that_present_id = true;
8410
      if (this_present_id || that_present_id) {
8411
        if (!(this_present_id && that_present_id))
8412
          return false;
8413
        if (this.id != that.id)
8414
          return false;
8415
      }
8416
 
8417
      boolean this_present_message = true && this.isSetMessage();
8418
      boolean that_present_message = true && that.isSetMessage();
8419
      if (this_present_message || that_present_message) {
8420
        if (!(this_present_message && that_present_message))
8421
          return false;
8422
        if (!this.message.equals(that.message))
8423
          return false;
8424
      }
8425
 
8426
      return true;
8427
    }
8428
 
8429
    @Override
8430
    public int hashCode() {
8431
      return 0;
8432
    }
8433
 
8434
    public int compareTo(updateMessage_args other) {
8435
      if (!getClass().equals(other.getClass())) {
8436
        return getClass().getName().compareTo(other.getClass().getName());
8437
      }
8438
 
8439
      int lastComparison = 0;
8440
      updateMessage_args typedOther = (updateMessage_args)other;
8441
 
3430 rajveer 8442
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 8443
      if (lastComparison != 0) {
8444
        return lastComparison;
8445
      }
3430 rajveer 8446
      if (isSetId()) {
8447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8448
        if (lastComparison != 0) {
8449
          return lastComparison;
8450
        }
352 ashish 8451
      }
3430 rajveer 8452
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 8453
      if (lastComparison != 0) {
8454
        return lastComparison;
8455
      }
3430 rajveer 8456
      if (isSetMessage()) {
8457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
8458
        if (lastComparison != 0) {
8459
          return lastComparison;
8460
        }
352 ashish 8461
      }
8462
      return 0;
8463
    }
8464
 
3430 rajveer 8465
    public _Fields fieldForId(int fieldId) {
8466
      return _Fields.findByThriftId(fieldId);
8467
    }
8468
 
8469
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8470
      org.apache.thrift.protocol.TField field;
352 ashish 8471
      iprot.readStructBegin();
8472
      while (true)
8473
      {
8474
        field = iprot.readFieldBegin();
3430 rajveer 8475
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8476
          break;
8477
        }
3430 rajveer 8478
        switch (field.id) {
8479
          case 1: // ID
8480
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8481
              this.id = iprot.readI64();
8482
              setIdIsSet(true);
8483
            } else { 
8484
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8485
            }
8486
            break;
8487
          case 2: // MESSAGE
8488
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8489
              this.message = iprot.readString();
8490
            } else { 
8491
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8492
            }
8493
            break;
8494
          default:
8495
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8496
        }
3430 rajveer 8497
        iprot.readFieldEnd();
352 ashish 8498
      }
8499
      iprot.readStructEnd();
8500
      validate();
8501
    }
8502
 
3430 rajveer 8503
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8504
      validate();
8505
 
8506
      oprot.writeStructBegin(STRUCT_DESC);
8507
      oprot.writeFieldBegin(ID_FIELD_DESC);
8508
      oprot.writeI64(this.id);
8509
      oprot.writeFieldEnd();
8510
      if (this.message != null) {
8511
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
8512
        oprot.writeString(this.message);
8513
        oprot.writeFieldEnd();
8514
      }
8515
      oprot.writeFieldStop();
8516
      oprot.writeStructEnd();
8517
    }
8518
 
8519
    @Override
8520
    public String toString() {
8521
      StringBuilder sb = new StringBuilder("updateMessage_args(");
8522
      boolean first = true;
8523
 
8524
      sb.append("id:");
8525
      sb.append(this.id);
8526
      first = false;
8527
      if (!first) sb.append(", ");
8528
      sb.append("message:");
8529
      if (this.message == null) {
8530
        sb.append("null");
8531
      } else {
8532
        sb.append(this.message);
8533
      }
8534
      first = false;
8535
      sb.append(")");
8536
      return sb.toString();
8537
    }
8538
 
3430 rajveer 8539
    public void validate() throws org.apache.thrift.TException {
352 ashish 8540
      // check for required fields
8541
    }
8542
 
3430 rajveer 8543
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8544
      try {
8545
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8546
      } catch (org.apache.thrift.TException te) {
8547
        throw new java.io.IOException(te);
8548
      }
8549
    }
8550
 
8551
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8552
      try {
8553
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8554
        __isset_bit_vector = new BitSet(1);
8555
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8556
      } catch (org.apache.thrift.TException te) {
8557
        throw new java.io.IOException(te);
8558
      }
8559
    }
8560
 
352 ashish 8561
  }
8562
 
3430 rajveer 8563
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
8564
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 8565
 
3430 rajveer 8566
    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 8567
 
3430 rajveer 8568
    private HelperServiceException se; // required
352 ashish 8569
 
8570
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8571
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8572
      SE((short)1, "se");
8573
 
8574
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8575
 
8576
      static {
8577
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8578
          byName.put(field.getFieldName(), field);
8579
        }
8580
      }
8581
 
8582
      /**
8583
       * Find the _Fields constant that matches fieldId, or null if its not found.
8584
       */
8585
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8586
        switch(fieldId) {
8587
          case 1: // SE
8588
            return SE;
8589
          default:
8590
            return null;
8591
        }
352 ashish 8592
      }
8593
 
8594
      /**
8595
       * Find the _Fields constant that matches fieldId, throwing an exception
8596
       * if it is not found.
8597
       */
8598
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8599
        _Fields fields = findByThriftId(fieldId);
8600
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8601
        return fields;
8602
      }
8603
 
8604
      /**
8605
       * Find the _Fields constant that matches name, or null if its not found.
8606
       */
8607
      public static _Fields findByName(String name) {
8608
        return byName.get(name);
8609
      }
8610
 
8611
      private final short _thriftId;
8612
      private final String _fieldName;
8613
 
8614
      _Fields(short thriftId, String fieldName) {
8615
        _thriftId = thriftId;
8616
        _fieldName = fieldName;
8617
      }
8618
 
8619
      public short getThriftFieldId() {
8620
        return _thriftId;
8621
      }
8622
 
8623
      public String getFieldName() {
8624
        return _fieldName;
8625
      }
8626
    }
8627
 
8628
    // isset id assignments
8629
 
3430 rajveer 8630
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8631
    static {
3430 rajveer 8632
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8633
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8634
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8635
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8636
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 8637
    }
8638
 
8639
    public updateMessage_result() {
8640
    }
8641
 
8642
    public updateMessage_result(
8643
      HelperServiceException se)
8644
    {
8645
      this();
8646
      this.se = se;
8647
    }
8648
 
8649
    /**
8650
     * Performs a deep copy on <i>other</i>.
8651
     */
8652
    public updateMessage_result(updateMessage_result other) {
8653
      if (other.isSetSe()) {
8654
        this.se = new HelperServiceException(other.se);
8655
      }
8656
    }
8657
 
8658
    public updateMessage_result deepCopy() {
8659
      return new updateMessage_result(this);
8660
    }
8661
 
3430 rajveer 8662
    @Override
8663
    public void clear() {
8664
      this.se = null;
352 ashish 8665
    }
8666
 
8667
    public HelperServiceException getSe() {
8668
      return this.se;
8669
    }
8670
 
3430 rajveer 8671
    public void setSe(HelperServiceException se) {
352 ashish 8672
      this.se = se;
8673
    }
8674
 
8675
    public void unsetSe() {
8676
      this.se = null;
8677
    }
8678
 
3430 rajveer 8679
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8680
    public boolean isSetSe() {
8681
      return this.se != null;
8682
    }
8683
 
8684
    public void setSeIsSet(boolean value) {
8685
      if (!value) {
8686
        this.se = null;
8687
      }
8688
    }
8689
 
8690
    public void setFieldValue(_Fields field, Object value) {
8691
      switch (field) {
8692
      case SE:
8693
        if (value == null) {
8694
          unsetSe();
8695
        } else {
8696
          setSe((HelperServiceException)value);
8697
        }
8698
        break;
8699
 
8700
      }
8701
    }
8702
 
8703
    public Object getFieldValue(_Fields field) {
8704
      switch (field) {
8705
      case SE:
8706
        return getSe();
8707
 
8708
      }
8709
      throw new IllegalStateException();
8710
    }
8711
 
3430 rajveer 8712
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8713
    public boolean isSet(_Fields field) {
8714
      if (field == null) {
8715
        throw new IllegalArgumentException();
8716
      }
352 ashish 8717
 
8718
      switch (field) {
8719
      case SE:
8720
        return isSetSe();
8721
      }
8722
      throw new IllegalStateException();
8723
    }
8724
 
8725
    @Override
8726
    public boolean equals(Object that) {
8727
      if (that == null)
8728
        return false;
8729
      if (that instanceof updateMessage_result)
8730
        return this.equals((updateMessage_result)that);
8731
      return false;
8732
    }
8733
 
8734
    public boolean equals(updateMessage_result that) {
8735
      if (that == null)
8736
        return false;
8737
 
8738
      boolean this_present_se = true && this.isSetSe();
8739
      boolean that_present_se = true && that.isSetSe();
8740
      if (this_present_se || that_present_se) {
8741
        if (!(this_present_se && that_present_se))
8742
          return false;
8743
        if (!this.se.equals(that.se))
8744
          return false;
8745
      }
8746
 
8747
      return true;
8748
    }
8749
 
8750
    @Override
8751
    public int hashCode() {
8752
      return 0;
8753
    }
8754
 
8755
    public int compareTo(updateMessage_result other) {
8756
      if (!getClass().equals(other.getClass())) {
8757
        return getClass().getName().compareTo(other.getClass().getName());
8758
      }
8759
 
8760
      int lastComparison = 0;
8761
      updateMessage_result typedOther = (updateMessage_result)other;
8762
 
3430 rajveer 8763
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8764
      if (lastComparison != 0) {
8765
        return lastComparison;
8766
      }
3430 rajveer 8767
      if (isSetSe()) {
8768
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8769
        if (lastComparison != 0) {
8770
          return lastComparison;
8771
        }
352 ashish 8772
      }
8773
      return 0;
8774
    }
8775
 
3430 rajveer 8776
    public _Fields fieldForId(int fieldId) {
8777
      return _Fields.findByThriftId(fieldId);
8778
    }
8779
 
8780
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8781
      org.apache.thrift.protocol.TField field;
352 ashish 8782
      iprot.readStructBegin();
8783
      while (true)
8784
      {
8785
        field = iprot.readFieldBegin();
3430 rajveer 8786
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8787
          break;
8788
        }
3430 rajveer 8789
        switch (field.id) {
8790
          case 1: // SE
8791
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8792
              this.se = new HelperServiceException();
8793
              this.se.read(iprot);
8794
            } else { 
8795
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8796
            }
8797
            break;
8798
          default:
8799
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8800
        }
3430 rajveer 8801
        iprot.readFieldEnd();
352 ashish 8802
      }
8803
      iprot.readStructEnd();
8804
      validate();
8805
    }
8806
 
3430 rajveer 8807
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8808
      oprot.writeStructBegin(STRUCT_DESC);
8809
 
8810
      if (this.isSetSe()) {
8811
        oprot.writeFieldBegin(SE_FIELD_DESC);
8812
        this.se.write(oprot);
8813
        oprot.writeFieldEnd();
8814
      }
8815
      oprot.writeFieldStop();
8816
      oprot.writeStructEnd();
8817
    }
8818
 
8819
    @Override
8820
    public String toString() {
8821
      StringBuilder sb = new StringBuilder("updateMessage_result(");
8822
      boolean first = true;
8823
 
8824
      sb.append("se:");
8825
      if (this.se == null) {
8826
        sb.append("null");
8827
      } else {
8828
        sb.append(this.se);
8829
      }
8830
      first = false;
8831
      sb.append(")");
8832
      return sb.toString();
8833
    }
8834
 
3430 rajveer 8835
    public void validate() throws org.apache.thrift.TException {
352 ashish 8836
      // check for required fields
8837
    }
8838
 
3430 rajveer 8839
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8840
      try {
8841
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8842
      } catch (org.apache.thrift.TException te) {
8843
        throw new java.io.IOException(te);
8844
      }
8845
    }
8846
 
8847
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8848
      try {
8849
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8850
      } catch (org.apache.thrift.TException te) {
8851
        throw new java.io.IOException(te);
8852
      }
8853
    }
8854
 
352 ashish 8855
  }
8856
 
3430 rajveer 8857
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
8858
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 8859
 
3430 rajveer 8860
    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 8861
 
3430 rajveer 8862
    private long id; // required
352 ashish 8863
 
8864
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8865
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8866
      ID((short)1, "id");
8867
 
8868
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8869
 
8870
      static {
8871
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8872
          byName.put(field.getFieldName(), field);
8873
        }
8874
      }
8875
 
8876
      /**
8877
       * Find the _Fields constant that matches fieldId, or null if its not found.
8878
       */
8879
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8880
        switch(fieldId) {
8881
          case 1: // ID
8882
            return ID;
8883
          default:
8884
            return null;
8885
        }
352 ashish 8886
      }
8887
 
8888
      /**
8889
       * Find the _Fields constant that matches fieldId, throwing an exception
8890
       * if it is not found.
8891
       */
8892
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8893
        _Fields fields = findByThriftId(fieldId);
8894
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8895
        return fields;
8896
      }
8897
 
8898
      /**
8899
       * Find the _Fields constant that matches name, or null if its not found.
8900
       */
8901
      public static _Fields findByName(String name) {
8902
        return byName.get(name);
8903
      }
8904
 
8905
      private final short _thriftId;
8906
      private final String _fieldName;
8907
 
8908
      _Fields(short thriftId, String fieldName) {
8909
        _thriftId = thriftId;
8910
        _fieldName = fieldName;
8911
      }
8912
 
8913
      public short getThriftFieldId() {
8914
        return _thriftId;
8915
      }
8916
 
8917
      public String getFieldName() {
8918
        return _fieldName;
8919
      }
8920
    }
8921
 
8922
    // isset id assignments
8923
    private static final int __ID_ISSET_ID = 0;
8924
    private BitSet __isset_bit_vector = new BitSet(1);
8925
 
3430 rajveer 8926
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8927
    static {
3430 rajveer 8928
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8929
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8930
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 8933
    }
8934
 
8935
    public getMessage_args() {
8936
    }
8937
 
8938
    public getMessage_args(
8939
      long id)
8940
    {
8941
      this();
8942
      this.id = id;
8943
      setIdIsSet(true);
8944
    }
8945
 
8946
    /**
8947
     * Performs a deep copy on <i>other</i>.
8948
     */
8949
    public getMessage_args(getMessage_args other) {
8950
      __isset_bit_vector.clear();
8951
      __isset_bit_vector.or(other.__isset_bit_vector);
8952
      this.id = other.id;
8953
    }
8954
 
8955
    public getMessage_args deepCopy() {
8956
      return new getMessage_args(this);
8957
    }
8958
 
3430 rajveer 8959
    @Override
8960
    public void clear() {
8961
      setIdIsSet(false);
8962
      this.id = 0;
352 ashish 8963
    }
8964
 
8965
    public long getId() {
8966
      return this.id;
8967
    }
8968
 
3430 rajveer 8969
    public void setId(long id) {
352 ashish 8970
      this.id = id;
8971
      setIdIsSet(true);
8972
    }
8973
 
8974
    public void unsetId() {
8975
      __isset_bit_vector.clear(__ID_ISSET_ID);
8976
    }
8977
 
3430 rajveer 8978
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8979
    public boolean isSetId() {
8980
      return __isset_bit_vector.get(__ID_ISSET_ID);
8981
    }
8982
 
8983
    public void setIdIsSet(boolean value) {
8984
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8985
    }
8986
 
8987
    public void setFieldValue(_Fields field, Object value) {
8988
      switch (field) {
8989
      case ID:
8990
        if (value == null) {
8991
          unsetId();
8992
        } else {
8993
          setId((Long)value);
8994
        }
8995
        break;
8996
 
8997
      }
8998
    }
8999
 
9000
    public Object getFieldValue(_Fields field) {
9001
      switch (field) {
9002
      case ID:
3430 rajveer 9003
        return Long.valueOf(getId());
352 ashish 9004
 
9005
      }
9006
      throw new IllegalStateException();
9007
    }
9008
 
3430 rajveer 9009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9010
    public boolean isSet(_Fields field) {
9011
      if (field == null) {
9012
        throw new IllegalArgumentException();
9013
      }
352 ashish 9014
 
9015
      switch (field) {
9016
      case ID:
9017
        return isSetId();
9018
      }
9019
      throw new IllegalStateException();
9020
    }
9021
 
9022
    @Override
9023
    public boolean equals(Object that) {
9024
      if (that == null)
9025
        return false;
9026
      if (that instanceof getMessage_args)
9027
        return this.equals((getMessage_args)that);
9028
      return false;
9029
    }
9030
 
9031
    public boolean equals(getMessage_args that) {
9032
      if (that == null)
9033
        return false;
9034
 
9035
      boolean this_present_id = true;
9036
      boolean that_present_id = true;
9037
      if (this_present_id || that_present_id) {
9038
        if (!(this_present_id && that_present_id))
9039
          return false;
9040
        if (this.id != that.id)
9041
          return false;
9042
      }
9043
 
9044
      return true;
9045
    }
9046
 
9047
    @Override
9048
    public int hashCode() {
9049
      return 0;
9050
    }
9051
 
9052
    public int compareTo(getMessage_args other) {
9053
      if (!getClass().equals(other.getClass())) {
9054
        return getClass().getName().compareTo(other.getClass().getName());
9055
      }
9056
 
9057
      int lastComparison = 0;
9058
      getMessage_args typedOther = (getMessage_args)other;
9059
 
3430 rajveer 9060
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 9061
      if (lastComparison != 0) {
9062
        return lastComparison;
9063
      }
3430 rajveer 9064
      if (isSetId()) {
9065
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
9066
        if (lastComparison != 0) {
9067
          return lastComparison;
9068
        }
352 ashish 9069
      }
9070
      return 0;
9071
    }
9072
 
3430 rajveer 9073
    public _Fields fieldForId(int fieldId) {
9074
      return _Fields.findByThriftId(fieldId);
9075
    }
9076
 
9077
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9078
      org.apache.thrift.protocol.TField field;
352 ashish 9079
      iprot.readStructBegin();
9080
      while (true)
9081
      {
9082
        field = iprot.readFieldBegin();
3430 rajveer 9083
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9084
          break;
9085
        }
3430 rajveer 9086
        switch (field.id) {
9087
          case 1: // ID
9088
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9089
              this.id = iprot.readI64();
9090
              setIdIsSet(true);
9091
            } else { 
9092
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9093
            }
9094
            break;
9095
          default:
9096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9097
        }
3430 rajveer 9098
        iprot.readFieldEnd();
352 ashish 9099
      }
9100
      iprot.readStructEnd();
9101
      validate();
9102
    }
9103
 
3430 rajveer 9104
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9105
      validate();
9106
 
9107
      oprot.writeStructBegin(STRUCT_DESC);
9108
      oprot.writeFieldBegin(ID_FIELD_DESC);
9109
      oprot.writeI64(this.id);
9110
      oprot.writeFieldEnd();
9111
      oprot.writeFieldStop();
9112
      oprot.writeStructEnd();
9113
    }
9114
 
9115
    @Override
9116
    public String toString() {
9117
      StringBuilder sb = new StringBuilder("getMessage_args(");
9118
      boolean first = true;
9119
 
9120
      sb.append("id:");
9121
      sb.append(this.id);
9122
      first = false;
9123
      sb.append(")");
9124
      return sb.toString();
9125
    }
9126
 
3430 rajveer 9127
    public void validate() throws org.apache.thrift.TException {
352 ashish 9128
      // check for required fields
9129
    }
9130
 
3430 rajveer 9131
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9132
      try {
9133
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9134
      } catch (org.apache.thrift.TException te) {
9135
        throw new java.io.IOException(te);
9136
      }
9137
    }
9138
 
9139
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9140
      try {
9141
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9142
        __isset_bit_vector = new BitSet(1);
9143
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9144
      } catch (org.apache.thrift.TException te) {
9145
        throw new java.io.IOException(te);
9146
      }
9147
    }
9148
 
352 ashish 9149
  }
9150
 
3430 rajveer 9151
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
9152
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 9153
 
3430 rajveer 9154
    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);
9155
    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 9156
 
3430 rajveer 9157
    private Message success; // required
9158
    private HelperServiceException se; // required
352 ashish 9159
 
9160
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9161
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 9162
      SUCCESS((short)0, "success"),
9163
      SE((short)1, "se");
9164
 
9165
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9166
 
9167
      static {
9168
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9169
          byName.put(field.getFieldName(), field);
9170
        }
9171
      }
9172
 
9173
      /**
9174
       * Find the _Fields constant that matches fieldId, or null if its not found.
9175
       */
9176
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9177
        switch(fieldId) {
9178
          case 0: // SUCCESS
9179
            return SUCCESS;
9180
          case 1: // SE
9181
            return SE;
9182
          default:
9183
            return null;
9184
        }
352 ashish 9185
      }
9186
 
9187
      /**
9188
       * Find the _Fields constant that matches fieldId, throwing an exception
9189
       * if it is not found.
9190
       */
9191
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9192
        _Fields fields = findByThriftId(fieldId);
9193
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9194
        return fields;
9195
      }
9196
 
9197
      /**
9198
       * Find the _Fields constant that matches name, or null if its not found.
9199
       */
9200
      public static _Fields findByName(String name) {
9201
        return byName.get(name);
9202
      }
9203
 
9204
      private final short _thriftId;
9205
      private final String _fieldName;
9206
 
9207
      _Fields(short thriftId, String fieldName) {
9208
        _thriftId = thriftId;
9209
        _fieldName = fieldName;
9210
      }
9211
 
9212
      public short getThriftFieldId() {
9213
        return _thriftId;
9214
      }
9215
 
9216
      public String getFieldName() {
9217
        return _fieldName;
9218
      }
9219
    }
9220
 
9221
    // isset id assignments
9222
 
3430 rajveer 9223
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9224
    static {
3430 rajveer 9225
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9226
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9227
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
9228
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9229
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9230
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9231
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 9232
    }
9233
 
9234
    public getMessage_result() {
9235
    }
9236
 
9237
    public getMessage_result(
9238
      Message success,
9239
      HelperServiceException se)
9240
    {
9241
      this();
9242
      this.success = success;
9243
      this.se = se;
9244
    }
9245
 
9246
    /**
9247
     * Performs a deep copy on <i>other</i>.
9248
     */
9249
    public getMessage_result(getMessage_result other) {
9250
      if (other.isSetSuccess()) {
9251
        this.success = new Message(other.success);
9252
      }
9253
      if (other.isSetSe()) {
9254
        this.se = new HelperServiceException(other.se);
9255
      }
9256
    }
9257
 
9258
    public getMessage_result deepCopy() {
9259
      return new getMessage_result(this);
9260
    }
9261
 
3430 rajveer 9262
    @Override
9263
    public void clear() {
9264
      this.success = null;
9265
      this.se = null;
352 ashish 9266
    }
9267
 
9268
    public Message getSuccess() {
9269
      return this.success;
9270
    }
9271
 
3430 rajveer 9272
    public void setSuccess(Message success) {
352 ashish 9273
      this.success = success;
9274
    }
9275
 
9276
    public void unsetSuccess() {
9277
      this.success = null;
9278
    }
9279
 
3430 rajveer 9280
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 9281
    public boolean isSetSuccess() {
9282
      return this.success != null;
9283
    }
9284
 
9285
    public void setSuccessIsSet(boolean value) {
9286
      if (!value) {
9287
        this.success = null;
9288
      }
9289
    }
9290
 
9291
    public HelperServiceException getSe() {
9292
      return this.se;
9293
    }
9294
 
3430 rajveer 9295
    public void setSe(HelperServiceException se) {
352 ashish 9296
      this.se = se;
9297
    }
9298
 
9299
    public void unsetSe() {
9300
      this.se = null;
9301
    }
9302
 
3430 rajveer 9303
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 9304
    public boolean isSetSe() {
9305
      return this.se != null;
9306
    }
9307
 
9308
    public void setSeIsSet(boolean value) {
9309
      if (!value) {
9310
        this.se = null;
9311
      }
9312
    }
9313
 
9314
    public void setFieldValue(_Fields field, Object value) {
9315
      switch (field) {
9316
      case SUCCESS:
9317
        if (value == null) {
9318
          unsetSuccess();
9319
        } else {
9320
          setSuccess((Message)value);
9321
        }
9322
        break;
9323
 
9324
      case SE:
9325
        if (value == null) {
9326
          unsetSe();
9327
        } else {
9328
          setSe((HelperServiceException)value);
9329
        }
9330
        break;
9331
 
9332
      }
9333
    }
9334
 
9335
    public Object getFieldValue(_Fields field) {
9336
      switch (field) {
9337
      case SUCCESS:
9338
        return getSuccess();
9339
 
9340
      case SE:
9341
        return getSe();
9342
 
9343
      }
9344
      throw new IllegalStateException();
9345
    }
9346
 
3430 rajveer 9347
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9348
    public boolean isSet(_Fields field) {
9349
      if (field == null) {
9350
        throw new IllegalArgumentException();
9351
      }
352 ashish 9352
 
9353
      switch (field) {
9354
      case SUCCESS:
9355
        return isSetSuccess();
9356
      case SE:
9357
        return isSetSe();
9358
      }
9359
      throw new IllegalStateException();
9360
    }
9361
 
9362
    @Override
9363
    public boolean equals(Object that) {
9364
      if (that == null)
9365
        return false;
9366
      if (that instanceof getMessage_result)
9367
        return this.equals((getMessage_result)that);
9368
      return false;
9369
    }
9370
 
9371
    public boolean equals(getMessage_result that) {
9372
      if (that == null)
9373
        return false;
9374
 
9375
      boolean this_present_success = true && this.isSetSuccess();
9376
      boolean that_present_success = true && that.isSetSuccess();
9377
      if (this_present_success || that_present_success) {
9378
        if (!(this_present_success && that_present_success))
9379
          return false;
9380
        if (!this.success.equals(that.success))
9381
          return false;
9382
      }
9383
 
9384
      boolean this_present_se = true && this.isSetSe();
9385
      boolean that_present_se = true && that.isSetSe();
9386
      if (this_present_se || that_present_se) {
9387
        if (!(this_present_se && that_present_se))
9388
          return false;
9389
        if (!this.se.equals(that.se))
9390
          return false;
9391
      }
9392
 
9393
      return true;
9394
    }
9395
 
9396
    @Override
9397
    public int hashCode() {
9398
      return 0;
9399
    }
9400
 
9401
    public int compareTo(getMessage_result other) {
9402
      if (!getClass().equals(other.getClass())) {
9403
        return getClass().getName().compareTo(other.getClass().getName());
9404
      }
9405
 
9406
      int lastComparison = 0;
9407
      getMessage_result typedOther = (getMessage_result)other;
9408
 
3430 rajveer 9409
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 9410
      if (lastComparison != 0) {
9411
        return lastComparison;
9412
      }
3430 rajveer 9413
      if (isSetSuccess()) {
9414
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9415
        if (lastComparison != 0) {
9416
          return lastComparison;
9417
        }
352 ashish 9418
      }
3430 rajveer 9419
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 9420
      if (lastComparison != 0) {
9421
        return lastComparison;
9422
      }
3430 rajveer 9423
      if (isSetSe()) {
9424
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9425
        if (lastComparison != 0) {
9426
          return lastComparison;
9427
        }
352 ashish 9428
      }
9429
      return 0;
9430
    }
9431
 
3430 rajveer 9432
    public _Fields fieldForId(int fieldId) {
9433
      return _Fields.findByThriftId(fieldId);
9434
    }
9435
 
9436
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9437
      org.apache.thrift.protocol.TField field;
352 ashish 9438
      iprot.readStructBegin();
9439
      while (true)
9440
      {
9441
        field = iprot.readFieldBegin();
3430 rajveer 9442
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9443
          break;
9444
        }
3430 rajveer 9445
        switch (field.id) {
9446
          case 0: // SUCCESS
9447
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9448
              this.success = new Message();
9449
              this.success.read(iprot);
9450
            } else { 
9451
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9452
            }
9453
            break;
9454
          case 1: // SE
9455
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9456
              this.se = new HelperServiceException();
9457
              this.se.read(iprot);
9458
            } else { 
9459
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9460
            }
9461
            break;
9462
          default:
9463
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9464
        }
3430 rajveer 9465
        iprot.readFieldEnd();
352 ashish 9466
      }
9467
      iprot.readStructEnd();
9468
      validate();
9469
    }
9470
 
3430 rajveer 9471
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9472
      oprot.writeStructBegin(STRUCT_DESC);
9473
 
9474
      if (this.isSetSuccess()) {
9475
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9476
        this.success.write(oprot);
9477
        oprot.writeFieldEnd();
9478
      } else if (this.isSetSe()) {
9479
        oprot.writeFieldBegin(SE_FIELD_DESC);
9480
        this.se.write(oprot);
9481
        oprot.writeFieldEnd();
9482
      }
9483
      oprot.writeFieldStop();
9484
      oprot.writeStructEnd();
9485
    }
9486
 
9487
    @Override
9488
    public String toString() {
9489
      StringBuilder sb = new StringBuilder("getMessage_result(");
9490
      boolean first = true;
9491
 
9492
      sb.append("success:");
9493
      if (this.success == null) {
9494
        sb.append("null");
9495
      } else {
9496
        sb.append(this.success);
9497
      }
9498
      first = false;
9499
      if (!first) sb.append(", ");
9500
      sb.append("se:");
9501
      if (this.se == null) {
9502
        sb.append("null");
9503
      } else {
9504
        sb.append(this.se);
9505
      }
9506
      first = false;
9507
      sb.append(")");
9508
      return sb.toString();
9509
    }
9510
 
3430 rajveer 9511
    public void validate() throws org.apache.thrift.TException {
352 ashish 9512
      // check for required fields
9513
    }
9514
 
3430 rajveer 9515
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9516
      try {
9517
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9518
      } catch (org.apache.thrift.TException te) {
9519
        throw new java.io.IOException(te);
9520
      }
9521
    }
9522
 
9523
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9524
      try {
9525
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9526
      } catch (org.apache.thrift.TException te) {
9527
        throw new java.io.IOException(te);
9528
      }
9529
    }
9530
 
352 ashish 9531
  }
9532
 
3430 rajveer 9533
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
9534
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 9535
 
3430 rajveer 9536
    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);
9537
    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 9538
 
3430 rajveer 9539
    private long id; // required
9540
    private Map<String,String> params; // required
352 ashish 9541
 
9542
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9543
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 9544
      ID((short)1, "id"),
9545
      PARAMS((short)2, "params");
9546
 
9547
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9548
 
9549
      static {
9550
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9551
          byName.put(field.getFieldName(), field);
9552
        }
9553
      }
9554
 
9555
      /**
9556
       * Find the _Fields constant that matches fieldId, or null if its not found.
9557
       */
9558
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9559
        switch(fieldId) {
9560
          case 1: // ID
9561
            return ID;
9562
          case 2: // PARAMS
9563
            return PARAMS;
9564
          default:
9565
            return null;
9566
        }
352 ashish 9567
      }
9568
 
9569
      /**
9570
       * Find the _Fields constant that matches fieldId, throwing an exception
9571
       * if it is not found.
9572
       */
9573
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9574
        _Fields fields = findByThriftId(fieldId);
9575
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9576
        return fields;
9577
      }
9578
 
9579
      /**
9580
       * Find the _Fields constant that matches name, or null if its not found.
9581
       */
9582
      public static _Fields findByName(String name) {
9583
        return byName.get(name);
9584
      }
9585
 
9586
      private final short _thriftId;
9587
      private final String _fieldName;
9588
 
9589
      _Fields(short thriftId, String fieldName) {
9590
        _thriftId = thriftId;
9591
        _fieldName = fieldName;
9592
      }
9593
 
9594
      public short getThriftFieldId() {
9595
        return _thriftId;
9596
      }
9597
 
9598
      public String getFieldName() {
9599
        return _fieldName;
9600
      }
9601
    }
9602
 
9603
    // isset id assignments
9604
    private static final int __ID_ISSET_ID = 0;
9605
    private BitSet __isset_bit_vector = new BitSet(1);
9606
 
3430 rajveer 9607
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9608
    static {
3430 rajveer 9609
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9610
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9611
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9612
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9613
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
9614
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
9615
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9616
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9617
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 9618
    }
9619
 
9620
    public getSubstitutedMessage_args() {
9621
    }
9622
 
9623
    public getSubstitutedMessage_args(
9624
      long id,
9625
      Map<String,String> params)
9626
    {
9627
      this();
9628
      this.id = id;
9629
      setIdIsSet(true);
9630
      this.params = params;
9631
    }
9632
 
9633
    /**
9634
     * Performs a deep copy on <i>other</i>.
9635
     */
9636
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
9637
      __isset_bit_vector.clear();
9638
      __isset_bit_vector.or(other.__isset_bit_vector);
9639
      this.id = other.id;
9640
      if (other.isSetParams()) {
9641
        Map<String,String> __this__params = new HashMap<String,String>();
9642
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
9643
 
9644
          String other_element_key = other_element.getKey();
9645
          String other_element_value = other_element.getValue();
9646
 
9647
          String __this__params_copy_key = other_element_key;
9648
 
9649
          String __this__params_copy_value = other_element_value;
9650
 
9651
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
9652
        }
9653
        this.params = __this__params;
9654
      }
9655
    }
9656
 
9657
    public getSubstitutedMessage_args deepCopy() {
9658
      return new getSubstitutedMessage_args(this);
9659
    }
9660
 
3430 rajveer 9661
    @Override
9662
    public void clear() {
9663
      setIdIsSet(false);
9664
      this.id = 0;
9665
      this.params = null;
352 ashish 9666
    }
9667
 
9668
    public long getId() {
9669
      return this.id;
9670
    }
9671
 
3430 rajveer 9672
    public void setId(long id) {
352 ashish 9673
      this.id = id;
9674
      setIdIsSet(true);
9675
    }
9676
 
9677
    public void unsetId() {
9678
      __isset_bit_vector.clear(__ID_ISSET_ID);
9679
    }
9680
 
3430 rajveer 9681
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 9682
    public boolean isSetId() {
9683
      return __isset_bit_vector.get(__ID_ISSET_ID);
9684
    }
9685
 
9686
    public void setIdIsSet(boolean value) {
9687
      __isset_bit_vector.set(__ID_ISSET_ID, value);
9688
    }
9689
 
9690
    public int getParamsSize() {
9691
      return (this.params == null) ? 0 : this.params.size();
9692
    }
9693
 
9694
    public void putToParams(String key, String val) {
9695
      if (this.params == null) {
9696
        this.params = new HashMap<String,String>();
9697
      }
9698
      this.params.put(key, val);
9699
    }
9700
 
9701
    public Map<String,String> getParams() {
9702
      return this.params;
9703
    }
9704
 
3430 rajveer 9705
    public void setParams(Map<String,String> params) {
352 ashish 9706
      this.params = params;
9707
    }
9708
 
9709
    public void unsetParams() {
9710
      this.params = null;
9711
    }
9712
 
3430 rajveer 9713
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 9714
    public boolean isSetParams() {
9715
      return this.params != null;
9716
    }
9717
 
9718
    public void setParamsIsSet(boolean value) {
9719
      if (!value) {
9720
        this.params = null;
9721
      }
9722
    }
9723
 
9724
    public void setFieldValue(_Fields field, Object value) {
9725
      switch (field) {
9726
      case ID:
9727
        if (value == null) {
9728
          unsetId();
9729
        } else {
9730
          setId((Long)value);
9731
        }
9732
        break;
9733
 
9734
      case PARAMS:
9735
        if (value == null) {
9736
          unsetParams();
9737
        } else {
9738
          setParams((Map<String,String>)value);
9739
        }
9740
        break;
9741
 
9742
      }
9743
    }
9744
 
9745
    public Object getFieldValue(_Fields field) {
9746
      switch (field) {
9747
      case ID:
3430 rajveer 9748
        return Long.valueOf(getId());
352 ashish 9749
 
9750
      case PARAMS:
9751
        return getParams();
9752
 
9753
      }
9754
      throw new IllegalStateException();
9755
    }
9756
 
3430 rajveer 9757
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9758
    public boolean isSet(_Fields field) {
9759
      if (field == null) {
9760
        throw new IllegalArgumentException();
9761
      }
352 ashish 9762
 
9763
      switch (field) {
9764
      case ID:
9765
        return isSetId();
9766
      case PARAMS:
9767
        return isSetParams();
9768
      }
9769
      throw new IllegalStateException();
9770
    }
9771
 
9772
    @Override
9773
    public boolean equals(Object that) {
9774
      if (that == null)
9775
        return false;
9776
      if (that instanceof getSubstitutedMessage_args)
9777
        return this.equals((getSubstitutedMessage_args)that);
9778
      return false;
9779
    }
9780
 
9781
    public boolean equals(getSubstitutedMessage_args that) {
9782
      if (that == null)
9783
        return false;
9784
 
9785
      boolean this_present_id = true;
9786
      boolean that_present_id = true;
9787
      if (this_present_id || that_present_id) {
9788
        if (!(this_present_id && that_present_id))
9789
          return false;
9790
        if (this.id != that.id)
9791
          return false;
9792
      }
9793
 
9794
      boolean this_present_params = true && this.isSetParams();
9795
      boolean that_present_params = true && that.isSetParams();
9796
      if (this_present_params || that_present_params) {
9797
        if (!(this_present_params && that_present_params))
9798
          return false;
9799
        if (!this.params.equals(that.params))
9800
          return false;
9801
      }
9802
 
9803
      return true;
9804
    }
9805
 
9806
    @Override
9807
    public int hashCode() {
9808
      return 0;
9809
    }
9810
 
3430 rajveer 9811
    public int compareTo(getSubstitutedMessage_args other) {
9812
      if (!getClass().equals(other.getClass())) {
9813
        return getClass().getName().compareTo(other.getClass().getName());
9814
      }
9815
 
9816
      int lastComparison = 0;
9817
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
9818
 
9819
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
9820
      if (lastComparison != 0) {
9821
        return lastComparison;
9822
      }
9823
      if (isSetId()) {
9824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
9825
        if (lastComparison != 0) {
9826
          return lastComparison;
9827
        }
9828
      }
9829
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
9830
      if (lastComparison != 0) {
9831
        return lastComparison;
9832
      }
9833
      if (isSetParams()) {
9834
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
9835
        if (lastComparison != 0) {
9836
          return lastComparison;
9837
        }
9838
      }
9839
      return 0;
9840
    }
9841
 
9842
    public _Fields fieldForId(int fieldId) {
9843
      return _Fields.findByThriftId(fieldId);
9844
    }
9845
 
9846
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9847
      org.apache.thrift.protocol.TField field;
352 ashish 9848
      iprot.readStructBegin();
9849
      while (true)
9850
      {
9851
        field = iprot.readFieldBegin();
3430 rajveer 9852
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9853
          break;
9854
        }
3430 rajveer 9855
        switch (field.id) {
9856
          case 1: // ID
9857
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9858
              this.id = iprot.readI64();
9859
              setIdIsSet(true);
9860
            } else { 
9861
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9862
            }
9863
            break;
9864
          case 2: // PARAMS
9865
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
9866
              {
5864 rajveer 9867
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
9868
                this.params = new HashMap<String,String>(2*_map36.size);
9869
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 9870
                {
5864 rajveer 9871
                  String _key38; // required
9872
                  String _val39; // required
9873
                  _key38 = iprot.readString();
9874
                  _val39 = iprot.readString();
9875
                  this.params.put(_key38, _val39);
352 ashish 9876
                }
3430 rajveer 9877
                iprot.readMapEnd();
352 ashish 9878
              }
3430 rajveer 9879
            } else { 
9880
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9881
            }
9882
            break;
9883
          default:
9884
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9885
        }
3430 rajveer 9886
        iprot.readFieldEnd();
352 ashish 9887
      }
9888
      iprot.readStructEnd();
9889
      validate();
9890
    }
9891
 
3430 rajveer 9892
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9893
      validate();
9894
 
9895
      oprot.writeStructBegin(STRUCT_DESC);
9896
      oprot.writeFieldBegin(ID_FIELD_DESC);
9897
      oprot.writeI64(this.id);
9898
      oprot.writeFieldEnd();
9899
      if (this.params != null) {
9900
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
9901
        {
3430 rajveer 9902
          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 9903
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 9904
          {
5864 rajveer 9905
            oprot.writeString(_iter40.getKey());
9906
            oprot.writeString(_iter40.getValue());
352 ashish 9907
          }
9908
          oprot.writeMapEnd();
9909
        }
9910
        oprot.writeFieldEnd();
9911
      }
9912
      oprot.writeFieldStop();
9913
      oprot.writeStructEnd();
9914
    }
9915
 
9916
    @Override
9917
    public String toString() {
9918
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
9919
      boolean first = true;
9920
 
9921
      sb.append("id:");
9922
      sb.append(this.id);
9923
      first = false;
9924
      if (!first) sb.append(", ");
9925
      sb.append("params:");
9926
      if (this.params == null) {
9927
        sb.append("null");
9928
      } else {
9929
        sb.append(this.params);
9930
      }
9931
      first = false;
9932
      sb.append(")");
9933
      return sb.toString();
9934
    }
9935
 
3430 rajveer 9936
    public void validate() throws org.apache.thrift.TException {
352 ashish 9937
      // check for required fields
9938
    }
9939
 
3430 rajveer 9940
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9941
      try {
9942
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9943
      } catch (org.apache.thrift.TException te) {
9944
        throw new java.io.IOException(te);
9945
      }
9946
    }
9947
 
9948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9949
      try {
9950
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9951
        __isset_bit_vector = new BitSet(1);
9952
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9953
      } catch (org.apache.thrift.TException te) {
9954
        throw new java.io.IOException(te);
9955
      }
9956
    }
9957
 
352 ashish 9958
  }
9959
 
3430 rajveer 9960
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
9961
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 9962
 
3430 rajveer 9963
    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);
9964
    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 9965
 
3430 rajveer 9966
    private Message success; // required
9967
    private HelperServiceException se; // required
352 ashish 9968
 
9969
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9970
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 9971
      SUCCESS((short)0, "success"),
9972
      SE((short)1, "se");
9973
 
9974
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9975
 
9976
      static {
9977
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9978
          byName.put(field.getFieldName(), field);
9979
        }
9980
      }
9981
 
9982
      /**
9983
       * Find the _Fields constant that matches fieldId, or null if its not found.
9984
       */
9985
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9986
        switch(fieldId) {
9987
          case 0: // SUCCESS
9988
            return SUCCESS;
9989
          case 1: // SE
9990
            return SE;
9991
          default:
9992
            return null;
9993
        }
352 ashish 9994
      }
9995
 
9996
      /**
9997
       * Find the _Fields constant that matches fieldId, throwing an exception
9998
       * if it is not found.
9999
       */
10000
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10001
        _Fields fields = findByThriftId(fieldId);
10002
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10003
        return fields;
10004
      }
10005
 
10006
      /**
10007
       * Find the _Fields constant that matches name, or null if its not found.
10008
       */
10009
      public static _Fields findByName(String name) {
10010
        return byName.get(name);
10011
      }
10012
 
10013
      private final short _thriftId;
10014
      private final String _fieldName;
10015
 
10016
      _Fields(short thriftId, String fieldName) {
10017
        _thriftId = thriftId;
10018
        _fieldName = fieldName;
10019
      }
10020
 
10021
      public short getThriftFieldId() {
10022
        return _thriftId;
10023
      }
10024
 
10025
      public String getFieldName() {
10026
        return _fieldName;
10027
      }
10028
    }
10029
 
10030
    // isset id assignments
10031
 
3430 rajveer 10032
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 10033
    static {
3430 rajveer 10034
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10035
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10036
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
10037
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10038
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10039
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10040
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 10041
    }
10042
 
10043
    public getSubstitutedMessage_result() {
10044
    }
10045
 
10046
    public getSubstitutedMessage_result(
10047
      Message success,
10048
      HelperServiceException se)
10049
    {
10050
      this();
10051
      this.success = success;
10052
      this.se = se;
10053
    }
10054
 
10055
    /**
10056
     * Performs a deep copy on <i>other</i>.
10057
     */
10058
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
10059
      if (other.isSetSuccess()) {
10060
        this.success = new Message(other.success);
10061
      }
10062
      if (other.isSetSe()) {
10063
        this.se = new HelperServiceException(other.se);
10064
      }
10065
    }
10066
 
10067
    public getSubstitutedMessage_result deepCopy() {
10068
      return new getSubstitutedMessage_result(this);
10069
    }
10070
 
3430 rajveer 10071
    @Override
10072
    public void clear() {
10073
      this.success = null;
10074
      this.se = null;
352 ashish 10075
    }
10076
 
10077
    public Message getSuccess() {
10078
      return this.success;
10079
    }
10080
 
3430 rajveer 10081
    public void setSuccess(Message success) {
352 ashish 10082
      this.success = success;
10083
    }
10084
 
10085
    public void unsetSuccess() {
10086
      this.success = null;
10087
    }
10088
 
3430 rajveer 10089
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 10090
    public boolean isSetSuccess() {
10091
      return this.success != null;
10092
    }
10093
 
10094
    public void setSuccessIsSet(boolean value) {
10095
      if (!value) {
10096
        this.success = null;
10097
      }
10098
    }
10099
 
10100
    public HelperServiceException getSe() {
10101
      return this.se;
10102
    }
10103
 
3430 rajveer 10104
    public void setSe(HelperServiceException se) {
352 ashish 10105
      this.se = se;
10106
    }
10107
 
10108
    public void unsetSe() {
10109
      this.se = null;
10110
    }
10111
 
3430 rajveer 10112
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 10113
    public boolean isSetSe() {
10114
      return this.se != null;
10115
    }
10116
 
10117
    public void setSeIsSet(boolean value) {
10118
      if (!value) {
10119
        this.se = null;
10120
      }
10121
    }
10122
 
10123
    public void setFieldValue(_Fields field, Object value) {
10124
      switch (field) {
10125
      case SUCCESS:
10126
        if (value == null) {
10127
          unsetSuccess();
10128
        } else {
10129
          setSuccess((Message)value);
10130
        }
10131
        break;
10132
 
10133
      case SE:
10134
        if (value == null) {
10135
          unsetSe();
10136
        } else {
10137
          setSe((HelperServiceException)value);
10138
        }
10139
        break;
10140
 
10141
      }
10142
    }
10143
 
10144
    public Object getFieldValue(_Fields field) {
10145
      switch (field) {
10146
      case SUCCESS:
10147
        return getSuccess();
10148
 
10149
      case SE:
10150
        return getSe();
10151
 
10152
      }
10153
      throw new IllegalStateException();
10154
    }
10155
 
3430 rajveer 10156
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10157
    public boolean isSet(_Fields field) {
10158
      if (field == null) {
10159
        throw new IllegalArgumentException();
10160
      }
352 ashish 10161
 
10162
      switch (field) {
10163
      case SUCCESS:
10164
        return isSetSuccess();
10165
      case SE:
10166
        return isSetSe();
10167
      }
10168
      throw new IllegalStateException();
10169
    }
10170
 
10171
    @Override
10172
    public boolean equals(Object that) {
10173
      if (that == null)
10174
        return false;
10175
      if (that instanceof getSubstitutedMessage_result)
10176
        return this.equals((getSubstitutedMessage_result)that);
10177
      return false;
10178
    }
10179
 
10180
    public boolean equals(getSubstitutedMessage_result that) {
10181
      if (that == null)
10182
        return false;
10183
 
10184
      boolean this_present_success = true && this.isSetSuccess();
10185
      boolean that_present_success = true && that.isSetSuccess();
10186
      if (this_present_success || that_present_success) {
10187
        if (!(this_present_success && that_present_success))
10188
          return false;
10189
        if (!this.success.equals(that.success))
10190
          return false;
10191
      }
10192
 
10193
      boolean this_present_se = true && this.isSetSe();
10194
      boolean that_present_se = true && that.isSetSe();
10195
      if (this_present_se || that_present_se) {
10196
        if (!(this_present_se && that_present_se))
10197
          return false;
10198
        if (!this.se.equals(that.se))
10199
          return false;
10200
      }
10201
 
10202
      return true;
10203
    }
10204
 
10205
    @Override
10206
    public int hashCode() {
10207
      return 0;
10208
    }
10209
 
10210
    public int compareTo(getSubstitutedMessage_result other) {
10211
      if (!getClass().equals(other.getClass())) {
10212
        return getClass().getName().compareTo(other.getClass().getName());
10213
      }
10214
 
10215
      int lastComparison = 0;
10216
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
10217
 
3430 rajveer 10218
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 10219
      if (lastComparison != 0) {
10220
        return lastComparison;
10221
      }
3430 rajveer 10222
      if (isSetSuccess()) {
10223
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10224
        if (lastComparison != 0) {
10225
          return lastComparison;
10226
        }
352 ashish 10227
      }
3430 rajveer 10228
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 10229
      if (lastComparison != 0) {
10230
        return lastComparison;
10231
      }
3430 rajveer 10232
      if (isSetSe()) {
10233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10234
        if (lastComparison != 0) {
10235
          return lastComparison;
10236
        }
352 ashish 10237
      }
10238
      return 0;
10239
    }
10240
 
3430 rajveer 10241
    public _Fields fieldForId(int fieldId) {
10242
      return _Fields.findByThriftId(fieldId);
10243
    }
10244
 
10245
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10246
      org.apache.thrift.protocol.TField field;
352 ashish 10247
      iprot.readStructBegin();
10248
      while (true)
10249
      {
10250
        field = iprot.readFieldBegin();
3430 rajveer 10251
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 10252
          break;
10253
        }
3430 rajveer 10254
        switch (field.id) {
10255
          case 0: // SUCCESS
10256
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10257
              this.success = new Message();
10258
              this.success.read(iprot);
10259
            } else { 
10260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10261
            }
10262
            break;
10263
          case 1: // SE
10264
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10265
              this.se = new HelperServiceException();
10266
              this.se.read(iprot);
10267
            } else { 
10268
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10269
            }
10270
            break;
10271
          default:
10272
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 10273
        }
3430 rajveer 10274
        iprot.readFieldEnd();
352 ashish 10275
      }
10276
      iprot.readStructEnd();
10277
      validate();
10278
    }
10279
 
3430 rajveer 10280
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 10281
      oprot.writeStructBegin(STRUCT_DESC);
10282
 
10283
      if (this.isSetSuccess()) {
10284
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10285
        this.success.write(oprot);
10286
        oprot.writeFieldEnd();
10287
      } else if (this.isSetSe()) {
10288
        oprot.writeFieldBegin(SE_FIELD_DESC);
10289
        this.se.write(oprot);
10290
        oprot.writeFieldEnd();
10291
      }
10292
      oprot.writeFieldStop();
10293
      oprot.writeStructEnd();
10294
    }
10295
 
10296
    @Override
10297
    public String toString() {
10298
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
10299
      boolean first = true;
10300
 
10301
      sb.append("success:");
10302
      if (this.success == null) {
10303
        sb.append("null");
10304
      } else {
10305
        sb.append(this.success);
10306
      }
10307
      first = false;
10308
      if (!first) sb.append(", ");
10309
      sb.append("se:");
10310
      if (this.se == null) {
10311
        sb.append("null");
10312
      } else {
10313
        sb.append(this.se);
10314
      }
10315
      first = false;
10316
      sb.append(")");
10317
      return sb.toString();
10318
    }
10319
 
3430 rajveer 10320
    public void validate() throws org.apache.thrift.TException {
352 ashish 10321
      // check for required fields
10322
    }
10323
 
3430 rajveer 10324
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10325
      try {
10326
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10327
      } catch (org.apache.thrift.TException te) {
10328
        throw new java.io.IOException(te);
10329
      }
10330
    }
10331
 
10332
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10333
      try {
10334
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10335
      } catch (org.apache.thrift.TException te) {
10336
        throw new java.io.IOException(te);
10337
      }
10338
    }
10339
 
352 ashish 10340
  }
10341
 
3430 rajveer 10342
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
10343
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 10344
 
3430 rajveer 10345
    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);
10346
    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);
10347
    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 10348
 
3430 rajveer 10349
    private String username; // required
10350
    private String password; // required
10351
    private long warehouseId; // required
495 rajveer 10352
 
10353
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10354
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10355
      USERNAME((short)1, "username"),
10356
      PASSWORD((short)2, "password"),
10357
      WAREHOUSE_ID((short)3, "warehouseId");
10358
 
10359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10360
 
10361
      static {
10362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10363
          byName.put(field.getFieldName(), field);
10364
        }
10365
      }
10366
 
10367
      /**
10368
       * Find the _Fields constant that matches fieldId, or null if its not found.
10369
       */
10370
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10371
        switch(fieldId) {
10372
          case 1: // USERNAME
10373
            return USERNAME;
10374
          case 2: // PASSWORD
10375
            return PASSWORD;
10376
          case 3: // WAREHOUSE_ID
10377
            return WAREHOUSE_ID;
10378
          default:
10379
            return null;
10380
        }
495 rajveer 10381
      }
10382
 
10383
      /**
10384
       * Find the _Fields constant that matches fieldId, throwing an exception
10385
       * if it is not found.
10386
       */
10387
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10388
        _Fields fields = findByThriftId(fieldId);
10389
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10390
        return fields;
10391
      }
10392
 
10393
      /**
10394
       * Find the _Fields constant that matches name, or null if its not found.
10395
       */
10396
      public static _Fields findByName(String name) {
10397
        return byName.get(name);
10398
      }
10399
 
10400
      private final short _thriftId;
10401
      private final String _fieldName;
10402
 
10403
      _Fields(short thriftId, String fieldName) {
10404
        _thriftId = thriftId;
10405
        _fieldName = fieldName;
10406
      }
10407
 
10408
      public short getThriftFieldId() {
10409
        return _thriftId;
10410
      }
10411
 
10412
      public String getFieldName() {
10413
        return _fieldName;
10414
      }
10415
    }
10416
 
10417
    // isset id assignments
10418
    private static final int __WAREHOUSEID_ISSET_ID = 0;
10419
    private BitSet __isset_bit_vector = new BitSet(1);
10420
 
3430 rajveer 10421
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10422
    static {
3430 rajveer 10423
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10424
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10426
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10427
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10428
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10429
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10430
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10431
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 10432
    }
10433
 
10434
    public addUser_args() {
10435
    }
10436
 
10437
    public addUser_args(
10438
      String username,
10439
      String password,
10440
      long warehouseId)
10441
    {
10442
      this();
10443
      this.username = username;
10444
      this.password = password;
10445
      this.warehouseId = warehouseId;
10446
      setWarehouseIdIsSet(true);
10447
    }
10448
 
10449
    /**
10450
     * Performs a deep copy on <i>other</i>.
10451
     */
10452
    public addUser_args(addUser_args other) {
10453
      __isset_bit_vector.clear();
10454
      __isset_bit_vector.or(other.__isset_bit_vector);
10455
      if (other.isSetUsername()) {
10456
        this.username = other.username;
10457
      }
10458
      if (other.isSetPassword()) {
10459
        this.password = other.password;
10460
      }
10461
      this.warehouseId = other.warehouseId;
10462
    }
10463
 
10464
    public addUser_args deepCopy() {
10465
      return new addUser_args(this);
10466
    }
10467
 
3430 rajveer 10468
    @Override
10469
    public void clear() {
10470
      this.username = null;
10471
      this.password = null;
10472
      setWarehouseIdIsSet(false);
10473
      this.warehouseId = 0;
495 rajveer 10474
    }
10475
 
10476
    public String getUsername() {
10477
      return this.username;
10478
    }
10479
 
3430 rajveer 10480
    public void setUsername(String username) {
495 rajveer 10481
      this.username = username;
10482
    }
10483
 
10484
    public void unsetUsername() {
10485
      this.username = null;
10486
    }
10487
 
3430 rajveer 10488
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10489
    public boolean isSetUsername() {
10490
      return this.username != null;
10491
    }
10492
 
10493
    public void setUsernameIsSet(boolean value) {
10494
      if (!value) {
10495
        this.username = null;
10496
      }
10497
    }
10498
 
10499
    public String getPassword() {
10500
      return this.password;
10501
    }
10502
 
3430 rajveer 10503
    public void setPassword(String password) {
495 rajveer 10504
      this.password = password;
10505
    }
10506
 
10507
    public void unsetPassword() {
10508
      this.password = null;
10509
    }
10510
 
3430 rajveer 10511
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10512
    public boolean isSetPassword() {
10513
      return this.password != null;
10514
    }
10515
 
10516
    public void setPasswordIsSet(boolean value) {
10517
      if (!value) {
10518
        this.password = null;
10519
      }
10520
    }
10521
 
10522
    public long getWarehouseId() {
10523
      return this.warehouseId;
10524
    }
10525
 
3430 rajveer 10526
    public void setWarehouseId(long warehouseId) {
495 rajveer 10527
      this.warehouseId = warehouseId;
10528
      setWarehouseIdIsSet(true);
10529
    }
10530
 
10531
    public void unsetWarehouseId() {
10532
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
10533
    }
10534
 
3430 rajveer 10535
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 10536
    public boolean isSetWarehouseId() {
10537
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
10538
    }
10539
 
10540
    public void setWarehouseIdIsSet(boolean value) {
10541
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
10542
    }
10543
 
10544
    public void setFieldValue(_Fields field, Object value) {
10545
      switch (field) {
10546
      case USERNAME:
10547
        if (value == null) {
10548
          unsetUsername();
10549
        } else {
10550
          setUsername((String)value);
10551
        }
10552
        break;
10553
 
10554
      case PASSWORD:
10555
        if (value == null) {
10556
          unsetPassword();
10557
        } else {
10558
          setPassword((String)value);
10559
        }
10560
        break;
10561
 
10562
      case WAREHOUSE_ID:
10563
        if (value == null) {
10564
          unsetWarehouseId();
10565
        } else {
10566
          setWarehouseId((Long)value);
10567
        }
10568
        break;
10569
 
10570
      }
10571
    }
10572
 
10573
    public Object getFieldValue(_Fields field) {
10574
      switch (field) {
10575
      case USERNAME:
10576
        return getUsername();
10577
 
10578
      case PASSWORD:
10579
        return getPassword();
10580
 
10581
      case WAREHOUSE_ID:
3430 rajveer 10582
        return Long.valueOf(getWarehouseId());
495 rajveer 10583
 
10584
      }
10585
      throw new IllegalStateException();
10586
    }
10587
 
3430 rajveer 10588
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10589
    public boolean isSet(_Fields field) {
10590
      if (field == null) {
10591
        throw new IllegalArgumentException();
10592
      }
495 rajveer 10593
 
10594
      switch (field) {
10595
      case USERNAME:
10596
        return isSetUsername();
10597
      case PASSWORD:
10598
        return isSetPassword();
10599
      case WAREHOUSE_ID:
10600
        return isSetWarehouseId();
10601
      }
10602
      throw new IllegalStateException();
10603
    }
10604
 
10605
    @Override
10606
    public boolean equals(Object that) {
10607
      if (that == null)
10608
        return false;
10609
      if (that instanceof addUser_args)
10610
        return this.equals((addUser_args)that);
10611
      return false;
10612
    }
10613
 
10614
    public boolean equals(addUser_args that) {
10615
      if (that == null)
10616
        return false;
10617
 
10618
      boolean this_present_username = true && this.isSetUsername();
10619
      boolean that_present_username = true && that.isSetUsername();
10620
      if (this_present_username || that_present_username) {
10621
        if (!(this_present_username && that_present_username))
10622
          return false;
10623
        if (!this.username.equals(that.username))
10624
          return false;
10625
      }
10626
 
10627
      boolean this_present_password = true && this.isSetPassword();
10628
      boolean that_present_password = true && that.isSetPassword();
10629
      if (this_present_password || that_present_password) {
10630
        if (!(this_present_password && that_present_password))
10631
          return false;
10632
        if (!this.password.equals(that.password))
10633
          return false;
10634
      }
10635
 
10636
      boolean this_present_warehouseId = true;
10637
      boolean that_present_warehouseId = true;
10638
      if (this_present_warehouseId || that_present_warehouseId) {
10639
        if (!(this_present_warehouseId && that_present_warehouseId))
10640
          return false;
10641
        if (this.warehouseId != that.warehouseId)
10642
          return false;
10643
      }
10644
 
10645
      return true;
10646
    }
10647
 
10648
    @Override
10649
    public int hashCode() {
10650
      return 0;
10651
    }
10652
 
10653
    public int compareTo(addUser_args other) {
10654
      if (!getClass().equals(other.getClass())) {
10655
        return getClass().getName().compareTo(other.getClass().getName());
10656
      }
10657
 
10658
      int lastComparison = 0;
10659
      addUser_args typedOther = (addUser_args)other;
10660
 
3430 rajveer 10661
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10662
      if (lastComparison != 0) {
10663
        return lastComparison;
10664
      }
3430 rajveer 10665
      if (isSetUsername()) {
10666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10667
        if (lastComparison != 0) {
10668
          return lastComparison;
10669
        }
495 rajveer 10670
      }
3430 rajveer 10671
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10672
      if (lastComparison != 0) {
10673
        return lastComparison;
10674
      }
3430 rajveer 10675
      if (isSetPassword()) {
10676
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10677
        if (lastComparison != 0) {
10678
          return lastComparison;
10679
        }
495 rajveer 10680
      }
3430 rajveer 10681
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 10682
      if (lastComparison != 0) {
10683
        return lastComparison;
10684
      }
3430 rajveer 10685
      if (isSetWarehouseId()) {
10686
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
10687
        if (lastComparison != 0) {
10688
          return lastComparison;
10689
        }
495 rajveer 10690
      }
10691
      return 0;
10692
    }
10693
 
3430 rajveer 10694
    public _Fields fieldForId(int fieldId) {
10695
      return _Fields.findByThriftId(fieldId);
10696
    }
10697
 
10698
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10699
      org.apache.thrift.protocol.TField field;
495 rajveer 10700
      iprot.readStructBegin();
10701
      while (true)
10702
      {
10703
        field = iprot.readFieldBegin();
3430 rajveer 10704
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10705
          break;
10706
        }
3430 rajveer 10707
        switch (field.id) {
10708
          case 1: // USERNAME
10709
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10710
              this.username = iprot.readString();
10711
            } else { 
10712
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10713
            }
10714
            break;
10715
          case 2: // PASSWORD
10716
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10717
              this.password = iprot.readString();
10718
            } else { 
10719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10720
            }
10721
            break;
10722
          case 3: // WAREHOUSE_ID
10723
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10724
              this.warehouseId = iprot.readI64();
10725
              setWarehouseIdIsSet(true);
10726
            } else { 
10727
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10728
            }
10729
            break;
10730
          default:
10731
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10732
        }
3430 rajveer 10733
        iprot.readFieldEnd();
495 rajveer 10734
      }
10735
      iprot.readStructEnd();
10736
      validate();
10737
    }
10738
 
3430 rajveer 10739
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10740
      validate();
10741
 
10742
      oprot.writeStructBegin(STRUCT_DESC);
10743
      if (this.username != null) {
10744
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10745
        oprot.writeString(this.username);
10746
        oprot.writeFieldEnd();
10747
      }
10748
      if (this.password != null) {
10749
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10750
        oprot.writeString(this.password);
10751
        oprot.writeFieldEnd();
10752
      }
10753
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10754
      oprot.writeI64(this.warehouseId);
10755
      oprot.writeFieldEnd();
10756
      oprot.writeFieldStop();
10757
      oprot.writeStructEnd();
10758
    }
10759
 
10760
    @Override
10761
    public String toString() {
10762
      StringBuilder sb = new StringBuilder("addUser_args(");
10763
      boolean first = true;
10764
 
10765
      sb.append("username:");
10766
      if (this.username == null) {
10767
        sb.append("null");
10768
      } else {
10769
        sb.append(this.username);
10770
      }
10771
      first = false;
10772
      if (!first) sb.append(", ");
10773
      sb.append("password:");
10774
      if (this.password == null) {
10775
        sb.append("null");
10776
      } else {
10777
        sb.append(this.password);
10778
      }
10779
      first = false;
10780
      if (!first) sb.append(", ");
10781
      sb.append("warehouseId:");
10782
      sb.append(this.warehouseId);
10783
      first = false;
10784
      sb.append(")");
10785
      return sb.toString();
10786
    }
10787
 
3430 rajveer 10788
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10789
      // check for required fields
10790
    }
10791
 
3430 rajveer 10792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10793
      try {
10794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10795
      } catch (org.apache.thrift.TException te) {
10796
        throw new java.io.IOException(te);
10797
      }
10798
    }
10799
 
10800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10801
      try {
10802
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10803
        __isset_bit_vector = new BitSet(1);
10804
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10805
      } catch (org.apache.thrift.TException te) {
10806
        throw new java.io.IOException(te);
10807
      }
10808
    }
10809
 
495 rajveer 10810
  }
10811
 
3430 rajveer 10812
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
10813
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 10814
 
3430 rajveer 10815
    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);
10816
    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 10817
 
3430 rajveer 10818
    private boolean success; // required
10819
    private HelperServiceException se; // required
495 rajveer 10820
 
10821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10822
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10823
      SUCCESS((short)0, "success"),
10824
      SE((short)1, "se");
10825
 
10826
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10827
 
10828
      static {
10829
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10830
          byName.put(field.getFieldName(), field);
10831
        }
10832
      }
10833
 
10834
      /**
10835
       * Find the _Fields constant that matches fieldId, or null if its not found.
10836
       */
10837
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10838
        switch(fieldId) {
10839
          case 0: // SUCCESS
10840
            return SUCCESS;
10841
          case 1: // SE
10842
            return SE;
10843
          default:
10844
            return null;
10845
        }
495 rajveer 10846
      }
10847
 
10848
      /**
10849
       * Find the _Fields constant that matches fieldId, throwing an exception
10850
       * if it is not found.
10851
       */
10852
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10853
        _Fields fields = findByThriftId(fieldId);
10854
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10855
        return fields;
10856
      }
10857
 
10858
      /**
10859
       * Find the _Fields constant that matches name, or null if its not found.
10860
       */
10861
      public static _Fields findByName(String name) {
10862
        return byName.get(name);
10863
      }
10864
 
10865
      private final short _thriftId;
10866
      private final String _fieldName;
10867
 
10868
      _Fields(short thriftId, String fieldName) {
10869
        _thriftId = thriftId;
10870
        _fieldName = fieldName;
10871
      }
10872
 
10873
      public short getThriftFieldId() {
10874
        return _thriftId;
10875
      }
10876
 
10877
      public String getFieldName() {
10878
        return _fieldName;
10879
      }
10880
    }
10881
 
10882
    // isset id assignments
10883
    private static final int __SUCCESS_ISSET_ID = 0;
10884
    private BitSet __isset_bit_vector = new BitSet(1);
10885
 
3430 rajveer 10886
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10887
    static {
3430 rajveer 10888
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10889
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10891
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10892
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10893
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10894
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 10895
    }
10896
 
10897
    public addUser_result() {
10898
    }
10899
 
10900
    public addUser_result(
10901
      boolean success,
10902
      HelperServiceException se)
10903
    {
10904
      this();
10905
      this.success = success;
10906
      setSuccessIsSet(true);
10907
      this.se = se;
10908
    }
10909
 
10910
    /**
10911
     * Performs a deep copy on <i>other</i>.
10912
     */
10913
    public addUser_result(addUser_result other) {
10914
      __isset_bit_vector.clear();
10915
      __isset_bit_vector.or(other.__isset_bit_vector);
10916
      this.success = other.success;
10917
      if (other.isSetSe()) {
10918
        this.se = new HelperServiceException(other.se);
10919
      }
10920
    }
10921
 
10922
    public addUser_result deepCopy() {
10923
      return new addUser_result(this);
10924
    }
10925
 
3430 rajveer 10926
    @Override
10927
    public void clear() {
10928
      setSuccessIsSet(false);
10929
      this.success = false;
10930
      this.se = null;
495 rajveer 10931
    }
10932
 
10933
    public boolean isSuccess() {
10934
      return this.success;
10935
    }
10936
 
3430 rajveer 10937
    public void setSuccess(boolean success) {
495 rajveer 10938
      this.success = success;
10939
      setSuccessIsSet(true);
10940
    }
10941
 
10942
    public void unsetSuccess() {
10943
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10944
    }
10945
 
3430 rajveer 10946
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10947
    public boolean isSetSuccess() {
10948
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10949
    }
10950
 
10951
    public void setSuccessIsSet(boolean value) {
10952
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10953
    }
10954
 
10955
    public HelperServiceException getSe() {
10956
      return this.se;
10957
    }
10958
 
3430 rajveer 10959
    public void setSe(HelperServiceException se) {
495 rajveer 10960
      this.se = se;
10961
    }
10962
 
10963
    public void unsetSe() {
10964
      this.se = null;
10965
    }
10966
 
3430 rajveer 10967
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10968
    public boolean isSetSe() {
10969
      return this.se != null;
10970
    }
10971
 
10972
    public void setSeIsSet(boolean value) {
10973
      if (!value) {
10974
        this.se = null;
10975
      }
10976
    }
10977
 
10978
    public void setFieldValue(_Fields field, Object value) {
10979
      switch (field) {
10980
      case SUCCESS:
10981
        if (value == null) {
10982
          unsetSuccess();
10983
        } else {
10984
          setSuccess((Boolean)value);
10985
        }
10986
        break;
10987
 
10988
      case SE:
10989
        if (value == null) {
10990
          unsetSe();
10991
        } else {
10992
          setSe((HelperServiceException)value);
10993
        }
10994
        break;
10995
 
10996
      }
10997
    }
10998
 
10999
    public Object getFieldValue(_Fields field) {
11000
      switch (field) {
11001
      case SUCCESS:
3430 rajveer 11002
        return Boolean.valueOf(isSuccess());
495 rajveer 11003
 
11004
      case SE:
11005
        return getSe();
11006
 
11007
      }
11008
      throw new IllegalStateException();
11009
    }
11010
 
3430 rajveer 11011
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11012
    public boolean isSet(_Fields field) {
11013
      if (field == null) {
11014
        throw new IllegalArgumentException();
11015
      }
495 rajveer 11016
 
11017
      switch (field) {
11018
      case SUCCESS:
11019
        return isSetSuccess();
11020
      case SE:
11021
        return isSetSe();
11022
      }
11023
      throw new IllegalStateException();
11024
    }
11025
 
11026
    @Override
11027
    public boolean equals(Object that) {
11028
      if (that == null)
11029
        return false;
11030
      if (that instanceof addUser_result)
11031
        return this.equals((addUser_result)that);
11032
      return false;
11033
    }
11034
 
11035
    public boolean equals(addUser_result that) {
11036
      if (that == null)
11037
        return false;
11038
 
11039
      boolean this_present_success = true;
11040
      boolean that_present_success = true;
11041
      if (this_present_success || that_present_success) {
11042
        if (!(this_present_success && that_present_success))
11043
          return false;
11044
        if (this.success != that.success)
11045
          return false;
11046
      }
11047
 
11048
      boolean this_present_se = true && this.isSetSe();
11049
      boolean that_present_se = true && that.isSetSe();
11050
      if (this_present_se || that_present_se) {
11051
        if (!(this_present_se && that_present_se))
11052
          return false;
11053
        if (!this.se.equals(that.se))
11054
          return false;
11055
      }
11056
 
11057
      return true;
11058
    }
11059
 
11060
    @Override
11061
    public int hashCode() {
11062
      return 0;
11063
    }
11064
 
11065
    public int compareTo(addUser_result other) {
11066
      if (!getClass().equals(other.getClass())) {
11067
        return getClass().getName().compareTo(other.getClass().getName());
11068
      }
11069
 
11070
      int lastComparison = 0;
11071
      addUser_result typedOther = (addUser_result)other;
11072
 
3430 rajveer 11073
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11074
      if (lastComparison != 0) {
11075
        return lastComparison;
11076
      }
3430 rajveer 11077
      if (isSetSuccess()) {
11078
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11079
        if (lastComparison != 0) {
11080
          return lastComparison;
11081
        }
495 rajveer 11082
      }
3430 rajveer 11083
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11084
      if (lastComparison != 0) {
11085
        return lastComparison;
11086
      }
3430 rajveer 11087
      if (isSetSe()) {
11088
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11089
        if (lastComparison != 0) {
11090
          return lastComparison;
11091
        }
495 rajveer 11092
      }
11093
      return 0;
11094
    }
11095
 
3430 rajveer 11096
    public _Fields fieldForId(int fieldId) {
11097
      return _Fields.findByThriftId(fieldId);
11098
    }
11099
 
11100
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11101
      org.apache.thrift.protocol.TField field;
495 rajveer 11102
      iprot.readStructBegin();
11103
      while (true)
11104
      {
11105
        field = iprot.readFieldBegin();
3430 rajveer 11106
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11107
          break;
11108
        }
3430 rajveer 11109
        switch (field.id) {
11110
          case 0: // SUCCESS
11111
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11112
              this.success = iprot.readBool();
11113
              setSuccessIsSet(true);
11114
            } else { 
11115
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11116
            }
11117
            break;
11118
          case 1: // SE
11119
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11120
              this.se = new HelperServiceException();
11121
              this.se.read(iprot);
11122
            } else { 
11123
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11124
            }
11125
            break;
11126
          default:
11127
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11128
        }
3430 rajveer 11129
        iprot.readFieldEnd();
495 rajveer 11130
      }
11131
      iprot.readStructEnd();
11132
      validate();
11133
    }
11134
 
3430 rajveer 11135
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11136
      oprot.writeStructBegin(STRUCT_DESC);
11137
 
11138
      if (this.isSetSuccess()) {
11139
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11140
        oprot.writeBool(this.success);
11141
        oprot.writeFieldEnd();
11142
      } else if (this.isSetSe()) {
11143
        oprot.writeFieldBegin(SE_FIELD_DESC);
11144
        this.se.write(oprot);
11145
        oprot.writeFieldEnd();
11146
      }
11147
      oprot.writeFieldStop();
11148
      oprot.writeStructEnd();
11149
    }
11150
 
11151
    @Override
11152
    public String toString() {
11153
      StringBuilder sb = new StringBuilder("addUser_result(");
11154
      boolean first = true;
11155
 
11156
      sb.append("success:");
11157
      sb.append(this.success);
11158
      first = false;
11159
      if (!first) sb.append(", ");
11160
      sb.append("se:");
11161
      if (this.se == null) {
11162
        sb.append("null");
11163
      } else {
11164
        sb.append(this.se);
11165
      }
11166
      first = false;
11167
      sb.append(")");
11168
      return sb.toString();
11169
    }
11170
 
3430 rajveer 11171
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11172
      // check for required fields
11173
    }
11174
 
3430 rajveer 11175
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11176
      try {
11177
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11178
      } catch (org.apache.thrift.TException te) {
11179
        throw new java.io.IOException(te);
11180
      }
11181
    }
11182
 
11183
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11184
      try {
11185
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11186
      } catch (org.apache.thrift.TException te) {
11187
        throw new java.io.IOException(te);
11188
      }
11189
    }
11190
 
495 rajveer 11191
  }
11192
 
3430 rajveer 11193
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
11194
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 11195
 
3430 rajveer 11196
    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 11197
 
3430 rajveer 11198
    private String username; // required
495 rajveer 11199
 
11200
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11201
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11202
      USERNAME((short)1, "username");
11203
 
11204
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11205
 
11206
      static {
11207
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11208
          byName.put(field.getFieldName(), field);
11209
        }
11210
      }
11211
 
11212
      /**
11213
       * Find the _Fields constant that matches fieldId, or null if its not found.
11214
       */
11215
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11216
        switch(fieldId) {
11217
          case 1: // USERNAME
11218
            return USERNAME;
11219
          default:
11220
            return null;
11221
        }
495 rajveer 11222
      }
11223
 
11224
      /**
11225
       * Find the _Fields constant that matches fieldId, throwing an exception
11226
       * if it is not found.
11227
       */
11228
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11229
        _Fields fields = findByThriftId(fieldId);
11230
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11231
        return fields;
11232
      }
11233
 
11234
      /**
11235
       * Find the _Fields constant that matches name, or null if its not found.
11236
       */
11237
      public static _Fields findByName(String name) {
11238
        return byName.get(name);
11239
      }
11240
 
11241
      private final short _thriftId;
11242
      private final String _fieldName;
11243
 
11244
      _Fields(short thriftId, String fieldName) {
11245
        _thriftId = thriftId;
11246
        _fieldName = fieldName;
11247
      }
11248
 
11249
      public short getThriftFieldId() {
11250
        return _thriftId;
11251
      }
11252
 
11253
      public String getFieldName() {
11254
        return _fieldName;
11255
      }
11256
    }
11257
 
11258
    // isset id assignments
11259
 
3430 rajveer 11260
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11261
    static {
3430 rajveer 11262
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11263
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11264
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11265
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11266
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 11267
    }
11268
 
11269
    public deleteUser_args() {
11270
    }
11271
 
11272
    public deleteUser_args(
11273
      String username)
11274
    {
11275
      this();
11276
      this.username = username;
11277
    }
11278
 
11279
    /**
11280
     * Performs a deep copy on <i>other</i>.
11281
     */
11282
    public deleteUser_args(deleteUser_args other) {
11283
      if (other.isSetUsername()) {
11284
        this.username = other.username;
11285
      }
11286
    }
11287
 
11288
    public deleteUser_args deepCopy() {
11289
      return new deleteUser_args(this);
11290
    }
11291
 
3430 rajveer 11292
    @Override
11293
    public void clear() {
11294
      this.username = null;
495 rajveer 11295
    }
11296
 
11297
    public String getUsername() {
11298
      return this.username;
11299
    }
11300
 
3430 rajveer 11301
    public void setUsername(String username) {
495 rajveer 11302
      this.username = username;
11303
    }
11304
 
11305
    public void unsetUsername() {
11306
      this.username = null;
11307
    }
11308
 
3430 rajveer 11309
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11310
    public boolean isSetUsername() {
11311
      return this.username != null;
11312
    }
11313
 
11314
    public void setUsernameIsSet(boolean value) {
11315
      if (!value) {
11316
        this.username = null;
11317
      }
11318
    }
11319
 
11320
    public void setFieldValue(_Fields field, Object value) {
11321
      switch (field) {
11322
      case USERNAME:
11323
        if (value == null) {
11324
          unsetUsername();
11325
        } else {
11326
          setUsername((String)value);
11327
        }
11328
        break;
11329
 
11330
      }
11331
    }
11332
 
11333
    public Object getFieldValue(_Fields field) {
11334
      switch (field) {
11335
      case USERNAME:
11336
        return getUsername();
11337
 
11338
      }
11339
      throw new IllegalStateException();
11340
    }
11341
 
3430 rajveer 11342
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11343
    public boolean isSet(_Fields field) {
11344
      if (field == null) {
11345
        throw new IllegalArgumentException();
11346
      }
495 rajveer 11347
 
11348
      switch (field) {
11349
      case USERNAME:
11350
        return isSetUsername();
11351
      }
11352
      throw new IllegalStateException();
11353
    }
11354
 
11355
    @Override
11356
    public boolean equals(Object that) {
11357
      if (that == null)
11358
        return false;
11359
      if (that instanceof deleteUser_args)
11360
        return this.equals((deleteUser_args)that);
11361
      return false;
11362
    }
11363
 
11364
    public boolean equals(deleteUser_args that) {
11365
      if (that == null)
11366
        return false;
11367
 
11368
      boolean this_present_username = true && this.isSetUsername();
11369
      boolean that_present_username = true && that.isSetUsername();
11370
      if (this_present_username || that_present_username) {
11371
        if (!(this_present_username && that_present_username))
11372
          return false;
11373
        if (!this.username.equals(that.username))
11374
          return false;
11375
      }
11376
 
11377
      return true;
11378
    }
11379
 
11380
    @Override
11381
    public int hashCode() {
11382
      return 0;
11383
    }
11384
 
11385
    public int compareTo(deleteUser_args other) {
11386
      if (!getClass().equals(other.getClass())) {
11387
        return getClass().getName().compareTo(other.getClass().getName());
11388
      }
11389
 
11390
      int lastComparison = 0;
11391
      deleteUser_args typedOther = (deleteUser_args)other;
11392
 
3430 rajveer 11393
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11394
      if (lastComparison != 0) {
11395
        return lastComparison;
11396
      }
3430 rajveer 11397
      if (isSetUsername()) {
11398
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11399
        if (lastComparison != 0) {
11400
          return lastComparison;
11401
        }
495 rajveer 11402
      }
11403
      return 0;
11404
    }
11405
 
3430 rajveer 11406
    public _Fields fieldForId(int fieldId) {
11407
      return _Fields.findByThriftId(fieldId);
11408
    }
11409
 
11410
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11411
      org.apache.thrift.protocol.TField field;
495 rajveer 11412
      iprot.readStructBegin();
11413
      while (true)
11414
      {
11415
        field = iprot.readFieldBegin();
3430 rajveer 11416
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11417
          break;
11418
        }
3430 rajveer 11419
        switch (field.id) {
11420
          case 1: // USERNAME
11421
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11422
              this.username = iprot.readString();
11423
            } else { 
11424
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11425
            }
11426
            break;
11427
          default:
11428
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11429
        }
3430 rajveer 11430
        iprot.readFieldEnd();
495 rajveer 11431
      }
11432
      iprot.readStructEnd();
11433
      validate();
11434
    }
11435
 
3430 rajveer 11436
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11437
      validate();
11438
 
11439
      oprot.writeStructBegin(STRUCT_DESC);
11440
      if (this.username != null) {
11441
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11442
        oprot.writeString(this.username);
11443
        oprot.writeFieldEnd();
11444
      }
11445
      oprot.writeFieldStop();
11446
      oprot.writeStructEnd();
11447
    }
11448
 
11449
    @Override
11450
    public String toString() {
11451
      StringBuilder sb = new StringBuilder("deleteUser_args(");
11452
      boolean first = true;
11453
 
11454
      sb.append("username:");
11455
      if (this.username == null) {
11456
        sb.append("null");
11457
      } else {
11458
        sb.append(this.username);
11459
      }
11460
      first = false;
11461
      sb.append(")");
11462
      return sb.toString();
11463
    }
11464
 
3430 rajveer 11465
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11466
      // check for required fields
11467
    }
11468
 
3430 rajveer 11469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11470
      try {
11471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11472
      } catch (org.apache.thrift.TException te) {
11473
        throw new java.io.IOException(te);
11474
      }
11475
    }
11476
 
11477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11478
      try {
11479
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11480
      } catch (org.apache.thrift.TException te) {
11481
        throw new java.io.IOException(te);
11482
      }
11483
    }
11484
 
495 rajveer 11485
  }
11486
 
3430 rajveer 11487
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
11488
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 11489
 
3430 rajveer 11490
    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);
11491
    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 11492
 
3430 rajveer 11493
    private boolean success; // required
11494
    private HelperServiceException se; // required
495 rajveer 11495
 
11496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11498
      SUCCESS((short)0, "success"),
11499
      SE((short)1, "se");
11500
 
11501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11502
 
11503
      static {
11504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11505
          byName.put(field.getFieldName(), field);
11506
        }
11507
      }
11508
 
11509
      /**
11510
       * Find the _Fields constant that matches fieldId, or null if its not found.
11511
       */
11512
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11513
        switch(fieldId) {
11514
          case 0: // SUCCESS
11515
            return SUCCESS;
11516
          case 1: // SE
11517
            return SE;
11518
          default:
11519
            return null;
11520
        }
495 rajveer 11521
      }
11522
 
11523
      /**
11524
       * Find the _Fields constant that matches fieldId, throwing an exception
11525
       * if it is not found.
11526
       */
11527
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11528
        _Fields fields = findByThriftId(fieldId);
11529
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11530
        return fields;
11531
      }
11532
 
11533
      /**
11534
       * Find the _Fields constant that matches name, or null if its not found.
11535
       */
11536
      public static _Fields findByName(String name) {
11537
        return byName.get(name);
11538
      }
11539
 
11540
      private final short _thriftId;
11541
      private final String _fieldName;
11542
 
11543
      _Fields(short thriftId, String fieldName) {
11544
        _thriftId = thriftId;
11545
        _fieldName = fieldName;
11546
      }
11547
 
11548
      public short getThriftFieldId() {
11549
        return _thriftId;
11550
      }
11551
 
11552
      public String getFieldName() {
11553
        return _fieldName;
11554
      }
11555
    }
11556
 
11557
    // isset id assignments
11558
    private static final int __SUCCESS_ISSET_ID = 0;
11559
    private BitSet __isset_bit_vector = new BitSet(1);
11560
 
3430 rajveer 11561
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11562
    static {
3430 rajveer 11563
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11564
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11565
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11566
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11567
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11568
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11569
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 11570
    }
11571
 
11572
    public deleteUser_result() {
11573
    }
11574
 
11575
    public deleteUser_result(
11576
      boolean success,
11577
      HelperServiceException se)
11578
    {
11579
      this();
11580
      this.success = success;
11581
      setSuccessIsSet(true);
11582
      this.se = se;
11583
    }
11584
 
11585
    /**
11586
     * Performs a deep copy on <i>other</i>.
11587
     */
11588
    public deleteUser_result(deleteUser_result other) {
11589
      __isset_bit_vector.clear();
11590
      __isset_bit_vector.or(other.__isset_bit_vector);
11591
      this.success = other.success;
11592
      if (other.isSetSe()) {
11593
        this.se = new HelperServiceException(other.se);
11594
      }
11595
    }
11596
 
11597
    public deleteUser_result deepCopy() {
11598
      return new deleteUser_result(this);
11599
    }
11600
 
3430 rajveer 11601
    @Override
11602
    public void clear() {
11603
      setSuccessIsSet(false);
11604
      this.success = false;
11605
      this.se = null;
495 rajveer 11606
    }
11607
 
11608
    public boolean isSuccess() {
11609
      return this.success;
11610
    }
11611
 
3430 rajveer 11612
    public void setSuccess(boolean success) {
495 rajveer 11613
      this.success = success;
11614
      setSuccessIsSet(true);
11615
    }
11616
 
11617
    public void unsetSuccess() {
11618
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11619
    }
11620
 
3430 rajveer 11621
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11622
    public boolean isSetSuccess() {
11623
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11624
    }
11625
 
11626
    public void setSuccessIsSet(boolean value) {
11627
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11628
    }
11629
 
11630
    public HelperServiceException getSe() {
11631
      return this.se;
11632
    }
11633
 
3430 rajveer 11634
    public void setSe(HelperServiceException se) {
495 rajveer 11635
      this.se = se;
11636
    }
11637
 
11638
    public void unsetSe() {
11639
      this.se = null;
11640
    }
11641
 
3430 rajveer 11642
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11643
    public boolean isSetSe() {
11644
      return this.se != null;
11645
    }
11646
 
11647
    public void setSeIsSet(boolean value) {
11648
      if (!value) {
11649
        this.se = null;
11650
      }
11651
    }
11652
 
11653
    public void setFieldValue(_Fields field, Object value) {
11654
      switch (field) {
11655
      case SUCCESS:
11656
        if (value == null) {
11657
          unsetSuccess();
11658
        } else {
11659
          setSuccess((Boolean)value);
11660
        }
11661
        break;
11662
 
11663
      case SE:
11664
        if (value == null) {
11665
          unsetSe();
11666
        } else {
11667
          setSe((HelperServiceException)value);
11668
        }
11669
        break;
11670
 
11671
      }
11672
    }
11673
 
11674
    public Object getFieldValue(_Fields field) {
11675
      switch (field) {
11676
      case SUCCESS:
3430 rajveer 11677
        return Boolean.valueOf(isSuccess());
495 rajveer 11678
 
11679
      case SE:
11680
        return getSe();
11681
 
11682
      }
11683
      throw new IllegalStateException();
11684
    }
11685
 
3430 rajveer 11686
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11687
    public boolean isSet(_Fields field) {
11688
      if (field == null) {
11689
        throw new IllegalArgumentException();
11690
      }
495 rajveer 11691
 
11692
      switch (field) {
11693
      case SUCCESS:
11694
        return isSetSuccess();
11695
      case SE:
11696
        return isSetSe();
11697
      }
11698
      throw new IllegalStateException();
11699
    }
11700
 
11701
    @Override
11702
    public boolean equals(Object that) {
11703
      if (that == null)
11704
        return false;
11705
      if (that instanceof deleteUser_result)
11706
        return this.equals((deleteUser_result)that);
11707
      return false;
11708
    }
11709
 
11710
    public boolean equals(deleteUser_result that) {
11711
      if (that == null)
11712
        return false;
11713
 
11714
      boolean this_present_success = true;
11715
      boolean that_present_success = true;
11716
      if (this_present_success || that_present_success) {
11717
        if (!(this_present_success && that_present_success))
11718
          return false;
11719
        if (this.success != that.success)
11720
          return false;
11721
      }
11722
 
11723
      boolean this_present_se = true && this.isSetSe();
11724
      boolean that_present_se = true && that.isSetSe();
11725
      if (this_present_se || that_present_se) {
11726
        if (!(this_present_se && that_present_se))
11727
          return false;
11728
        if (!this.se.equals(that.se))
11729
          return false;
11730
      }
11731
 
11732
      return true;
11733
    }
11734
 
11735
    @Override
11736
    public int hashCode() {
11737
      return 0;
11738
    }
11739
 
11740
    public int compareTo(deleteUser_result other) {
11741
      if (!getClass().equals(other.getClass())) {
11742
        return getClass().getName().compareTo(other.getClass().getName());
11743
      }
11744
 
11745
      int lastComparison = 0;
11746
      deleteUser_result typedOther = (deleteUser_result)other;
11747
 
3430 rajveer 11748
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11749
      if (lastComparison != 0) {
11750
        return lastComparison;
11751
      }
3430 rajveer 11752
      if (isSetSuccess()) {
11753
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11754
        if (lastComparison != 0) {
11755
          return lastComparison;
11756
        }
495 rajveer 11757
      }
3430 rajveer 11758
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11759
      if (lastComparison != 0) {
11760
        return lastComparison;
11761
      }
3430 rajveer 11762
      if (isSetSe()) {
11763
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11764
        if (lastComparison != 0) {
11765
          return lastComparison;
11766
        }
495 rajveer 11767
      }
11768
      return 0;
11769
    }
11770
 
3430 rajveer 11771
    public _Fields fieldForId(int fieldId) {
11772
      return _Fields.findByThriftId(fieldId);
11773
    }
11774
 
11775
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11776
      org.apache.thrift.protocol.TField field;
495 rajveer 11777
      iprot.readStructBegin();
11778
      while (true)
11779
      {
11780
        field = iprot.readFieldBegin();
3430 rajveer 11781
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11782
          break;
11783
        }
3430 rajveer 11784
        switch (field.id) {
11785
          case 0: // SUCCESS
11786
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11787
              this.success = iprot.readBool();
11788
              setSuccessIsSet(true);
11789
            } else { 
11790
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11791
            }
11792
            break;
11793
          case 1: // SE
11794
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11795
              this.se = new HelperServiceException();
11796
              this.se.read(iprot);
11797
            } else { 
11798
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11799
            }
11800
            break;
11801
          default:
11802
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11803
        }
3430 rajveer 11804
        iprot.readFieldEnd();
495 rajveer 11805
      }
11806
      iprot.readStructEnd();
11807
      validate();
11808
    }
11809
 
3430 rajveer 11810
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11811
      oprot.writeStructBegin(STRUCT_DESC);
11812
 
11813
      if (this.isSetSuccess()) {
11814
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11815
        oprot.writeBool(this.success);
11816
        oprot.writeFieldEnd();
11817
      } else if (this.isSetSe()) {
11818
        oprot.writeFieldBegin(SE_FIELD_DESC);
11819
        this.se.write(oprot);
11820
        oprot.writeFieldEnd();
11821
      }
11822
      oprot.writeFieldStop();
11823
      oprot.writeStructEnd();
11824
    }
11825
 
11826
    @Override
11827
    public String toString() {
11828
      StringBuilder sb = new StringBuilder("deleteUser_result(");
11829
      boolean first = true;
11830
 
11831
      sb.append("success:");
11832
      sb.append(this.success);
11833
      first = false;
11834
      if (!first) sb.append(", ");
11835
      sb.append("se:");
11836
      if (this.se == null) {
11837
        sb.append("null");
11838
      } else {
11839
        sb.append(this.se);
11840
      }
11841
      first = false;
11842
      sb.append(")");
11843
      return sb.toString();
11844
    }
11845
 
3430 rajveer 11846
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11847
      // check for required fields
11848
    }
11849
 
3430 rajveer 11850
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11851
      try {
11852
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11853
      } catch (org.apache.thrift.TException te) {
11854
        throw new java.io.IOException(te);
11855
      }
11856
    }
11857
 
11858
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11859
      try {
11860
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11861
      } catch (org.apache.thrift.TException te) {
11862
        throw new java.io.IOException(te);
11863
      }
11864
    }
11865
 
495 rajveer 11866
  }
11867
 
3430 rajveer 11868
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
11869
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 11870
 
3430 rajveer 11871
    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);
11872
    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 11873
 
3430 rajveer 11874
    private String username; // required
11875
    private String password; // required
495 rajveer 11876
 
11877
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11878
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11879
      USERNAME((short)1, "username"),
11880
      PASSWORD((short)2, "password");
11881
 
11882
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11883
 
11884
      static {
11885
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11886
          byName.put(field.getFieldName(), field);
11887
        }
11888
      }
11889
 
11890
      /**
11891
       * Find the _Fields constant that matches fieldId, or null if its not found.
11892
       */
11893
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11894
        switch(fieldId) {
11895
          case 1: // USERNAME
11896
            return USERNAME;
11897
          case 2: // PASSWORD
11898
            return PASSWORD;
11899
          default:
11900
            return null;
11901
        }
495 rajveer 11902
      }
11903
 
11904
      /**
11905
       * Find the _Fields constant that matches fieldId, throwing an exception
11906
       * if it is not found.
11907
       */
11908
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11909
        _Fields fields = findByThriftId(fieldId);
11910
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11911
        return fields;
11912
      }
11913
 
11914
      /**
11915
       * Find the _Fields constant that matches name, or null if its not found.
11916
       */
11917
      public static _Fields findByName(String name) {
11918
        return byName.get(name);
11919
      }
11920
 
11921
      private final short _thriftId;
11922
      private final String _fieldName;
11923
 
11924
      _Fields(short thriftId, String fieldName) {
11925
        _thriftId = thriftId;
11926
        _fieldName = fieldName;
11927
      }
11928
 
11929
      public short getThriftFieldId() {
11930
        return _thriftId;
11931
      }
11932
 
11933
      public String getFieldName() {
11934
        return _fieldName;
11935
      }
11936
    }
11937
 
11938
    // isset id assignments
11939
 
3430 rajveer 11940
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11941
    static {
3430 rajveer 11942
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11943
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11944
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11945
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11946
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11947
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11948
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 11949
    }
11950
 
2443 chandransh 11951
    public authenticateDashboardUser_args() {
495 rajveer 11952
    }
11953
 
2443 chandransh 11954
    public authenticateDashboardUser_args(
495 rajveer 11955
      String username,
11956
      String password)
11957
    {
11958
      this();
11959
      this.username = username;
11960
      this.password = password;
11961
    }
11962
 
11963
    /**
11964
     * Performs a deep copy on <i>other</i>.
11965
     */
2443 chandransh 11966
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 11967
      if (other.isSetUsername()) {
11968
        this.username = other.username;
11969
      }
11970
      if (other.isSetPassword()) {
11971
        this.password = other.password;
11972
      }
11973
    }
11974
 
2443 chandransh 11975
    public authenticateDashboardUser_args deepCopy() {
11976
      return new authenticateDashboardUser_args(this);
495 rajveer 11977
    }
11978
 
3430 rajveer 11979
    @Override
11980
    public void clear() {
11981
      this.username = null;
11982
      this.password = null;
495 rajveer 11983
    }
11984
 
11985
    public String getUsername() {
11986
      return this.username;
11987
    }
11988
 
3430 rajveer 11989
    public void setUsername(String username) {
495 rajveer 11990
      this.username = username;
11991
    }
11992
 
11993
    public void unsetUsername() {
11994
      this.username = null;
11995
    }
11996
 
3430 rajveer 11997
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11998
    public boolean isSetUsername() {
11999
      return this.username != null;
12000
    }
12001
 
12002
    public void setUsernameIsSet(boolean value) {
12003
      if (!value) {
12004
        this.username = null;
12005
      }
12006
    }
12007
 
12008
    public String getPassword() {
12009
      return this.password;
12010
    }
12011
 
3430 rajveer 12012
    public void setPassword(String password) {
495 rajveer 12013
      this.password = password;
12014
    }
12015
 
12016
    public void unsetPassword() {
12017
      this.password = null;
12018
    }
12019
 
3430 rajveer 12020
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 12021
    public boolean isSetPassword() {
12022
      return this.password != null;
12023
    }
12024
 
12025
    public void setPasswordIsSet(boolean value) {
12026
      if (!value) {
12027
        this.password = null;
12028
      }
12029
    }
12030
 
12031
    public void setFieldValue(_Fields field, Object value) {
12032
      switch (field) {
12033
      case USERNAME:
12034
        if (value == null) {
12035
          unsetUsername();
12036
        } else {
12037
          setUsername((String)value);
12038
        }
12039
        break;
12040
 
12041
      case PASSWORD:
12042
        if (value == null) {
12043
          unsetPassword();
12044
        } else {
12045
          setPassword((String)value);
12046
        }
12047
        break;
12048
 
12049
      }
12050
    }
12051
 
12052
    public Object getFieldValue(_Fields field) {
12053
      switch (field) {
12054
      case USERNAME:
12055
        return getUsername();
12056
 
12057
      case PASSWORD:
12058
        return getPassword();
12059
 
12060
      }
12061
      throw new IllegalStateException();
12062
    }
12063
 
3430 rajveer 12064
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12065
    public boolean isSet(_Fields field) {
12066
      if (field == null) {
12067
        throw new IllegalArgumentException();
12068
      }
495 rajveer 12069
 
12070
      switch (field) {
12071
      case USERNAME:
12072
        return isSetUsername();
12073
      case PASSWORD:
12074
        return isSetPassword();
12075
      }
12076
      throw new IllegalStateException();
12077
    }
12078
 
12079
    @Override
12080
    public boolean equals(Object that) {
12081
      if (that == null)
12082
        return false;
2443 chandransh 12083
      if (that instanceof authenticateDashboardUser_args)
12084
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 12085
      return false;
12086
    }
12087
 
2443 chandransh 12088
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 12089
      if (that == null)
12090
        return false;
12091
 
12092
      boolean this_present_username = true && this.isSetUsername();
12093
      boolean that_present_username = true && that.isSetUsername();
12094
      if (this_present_username || that_present_username) {
12095
        if (!(this_present_username && that_present_username))
12096
          return false;
12097
        if (!this.username.equals(that.username))
12098
          return false;
12099
      }
12100
 
12101
      boolean this_present_password = true && this.isSetPassword();
12102
      boolean that_present_password = true && that.isSetPassword();
12103
      if (this_present_password || that_present_password) {
12104
        if (!(this_present_password && that_present_password))
12105
          return false;
12106
        if (!this.password.equals(that.password))
12107
          return false;
12108
      }
12109
 
12110
      return true;
12111
    }
12112
 
12113
    @Override
12114
    public int hashCode() {
12115
      return 0;
12116
    }
12117
 
2443 chandransh 12118
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 12119
      if (!getClass().equals(other.getClass())) {
12120
        return getClass().getName().compareTo(other.getClass().getName());
12121
      }
12122
 
12123
      int lastComparison = 0;
2443 chandransh 12124
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 12125
 
3430 rajveer 12126
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 12127
      if (lastComparison != 0) {
12128
        return lastComparison;
12129
      }
3430 rajveer 12130
      if (isSetUsername()) {
12131
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12132
        if (lastComparison != 0) {
12133
          return lastComparison;
12134
        }
495 rajveer 12135
      }
3430 rajveer 12136
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 12137
      if (lastComparison != 0) {
12138
        return lastComparison;
12139
      }
3430 rajveer 12140
      if (isSetPassword()) {
12141
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12142
        if (lastComparison != 0) {
12143
          return lastComparison;
12144
        }
495 rajveer 12145
      }
12146
      return 0;
12147
    }
12148
 
3430 rajveer 12149
    public _Fields fieldForId(int fieldId) {
12150
      return _Fields.findByThriftId(fieldId);
12151
    }
12152
 
12153
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12154
      org.apache.thrift.protocol.TField field;
495 rajveer 12155
      iprot.readStructBegin();
12156
      while (true)
12157
      {
12158
        field = iprot.readFieldBegin();
3430 rajveer 12159
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12160
          break;
12161
        }
3430 rajveer 12162
        switch (field.id) {
12163
          case 1: // USERNAME
12164
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12165
              this.username = iprot.readString();
12166
            } else { 
12167
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12168
            }
12169
            break;
12170
          case 2: // PASSWORD
12171
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12172
              this.password = iprot.readString();
12173
            } else { 
12174
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12175
            }
12176
            break;
12177
          default:
12178
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12179
        }
3430 rajveer 12180
        iprot.readFieldEnd();
495 rajveer 12181
      }
12182
      iprot.readStructEnd();
12183
      validate();
12184
    }
12185
 
3430 rajveer 12186
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12187
      validate();
12188
 
12189
      oprot.writeStructBegin(STRUCT_DESC);
12190
      if (this.username != null) {
12191
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12192
        oprot.writeString(this.username);
12193
        oprot.writeFieldEnd();
12194
      }
12195
      if (this.password != null) {
12196
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12197
        oprot.writeString(this.password);
12198
        oprot.writeFieldEnd();
12199
      }
12200
      oprot.writeFieldStop();
12201
      oprot.writeStructEnd();
12202
    }
12203
 
12204
    @Override
12205
    public String toString() {
2443 chandransh 12206
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 12207
      boolean first = true;
12208
 
12209
      sb.append("username:");
12210
      if (this.username == null) {
12211
        sb.append("null");
12212
      } else {
12213
        sb.append(this.username);
12214
      }
12215
      first = false;
12216
      if (!first) sb.append(", ");
12217
      sb.append("password:");
12218
      if (this.password == null) {
12219
        sb.append("null");
12220
      } else {
12221
        sb.append(this.password);
12222
      }
12223
      first = false;
12224
      sb.append(")");
12225
      return sb.toString();
12226
    }
12227
 
3430 rajveer 12228
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12229
      // check for required fields
12230
    }
12231
 
3430 rajveer 12232
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12233
      try {
12234
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12235
      } catch (org.apache.thrift.TException te) {
12236
        throw new java.io.IOException(te);
12237
      }
12238
    }
12239
 
12240
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12241
      try {
12242
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12243
      } catch (org.apache.thrift.TException te) {
12244
        throw new java.io.IOException(te);
12245
      }
12246
    }
12247
 
495 rajveer 12248
  }
12249
 
3430 rajveer 12250
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
12251
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 12252
 
3430 rajveer 12253
    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);
12254
    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 12255
 
3430 rajveer 12256
    private DashboardUser success; // required
12257
    private HelperServiceException se; // required
495 rajveer 12258
 
12259
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12260
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 12261
      SUCCESS((short)0, "success"),
12262
      SE((short)1, "se");
12263
 
12264
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12265
 
12266
      static {
12267
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12268
          byName.put(field.getFieldName(), field);
12269
        }
12270
      }
12271
 
12272
      /**
12273
       * Find the _Fields constant that matches fieldId, or null if its not found.
12274
       */
12275
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12276
        switch(fieldId) {
12277
          case 0: // SUCCESS
12278
            return SUCCESS;
12279
          case 1: // SE
12280
            return SE;
12281
          default:
12282
            return null;
12283
        }
495 rajveer 12284
      }
12285
 
12286
      /**
12287
       * Find the _Fields constant that matches fieldId, throwing an exception
12288
       * if it is not found.
12289
       */
12290
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12291
        _Fields fields = findByThriftId(fieldId);
12292
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12293
        return fields;
12294
      }
12295
 
12296
      /**
12297
       * Find the _Fields constant that matches name, or null if its not found.
12298
       */
12299
      public static _Fields findByName(String name) {
12300
        return byName.get(name);
12301
      }
12302
 
12303
      private final short _thriftId;
12304
      private final String _fieldName;
12305
 
12306
      _Fields(short thriftId, String fieldName) {
12307
        _thriftId = thriftId;
12308
        _fieldName = fieldName;
12309
      }
12310
 
12311
      public short getThriftFieldId() {
12312
        return _thriftId;
12313
      }
12314
 
12315
      public String getFieldName() {
12316
        return _fieldName;
12317
      }
12318
    }
12319
 
12320
    // isset id assignments
12321
 
3430 rajveer 12322
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12323
    static {
3430 rajveer 12324
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12325
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12326
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
12327
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12328
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12329
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12330
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 12331
    }
12332
 
2443 chandransh 12333
    public authenticateDashboardUser_result() {
495 rajveer 12334
    }
12335
 
2443 chandransh 12336
    public authenticateDashboardUser_result(
12337
      DashboardUser success,
495 rajveer 12338
      HelperServiceException se)
12339
    {
12340
      this();
12341
      this.success = success;
12342
      this.se = se;
12343
    }
12344
 
12345
    /**
12346
     * Performs a deep copy on <i>other</i>.
12347
     */
2443 chandransh 12348
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
12349
      if (other.isSetSuccess()) {
12350
        this.success = new DashboardUser(other.success);
12351
      }
495 rajveer 12352
      if (other.isSetSe()) {
12353
        this.se = new HelperServiceException(other.se);
12354
      }
12355
    }
12356
 
2443 chandransh 12357
    public authenticateDashboardUser_result deepCopy() {
12358
      return new authenticateDashboardUser_result(this);
495 rajveer 12359
    }
12360
 
3430 rajveer 12361
    @Override
12362
    public void clear() {
12363
      this.success = null;
12364
      this.se = null;
495 rajveer 12365
    }
12366
 
2443 chandransh 12367
    public DashboardUser getSuccess() {
495 rajveer 12368
      return this.success;
12369
    }
12370
 
3430 rajveer 12371
    public void setSuccess(DashboardUser success) {
495 rajveer 12372
      this.success = success;
12373
    }
12374
 
12375
    public void unsetSuccess() {
2443 chandransh 12376
      this.success = null;
495 rajveer 12377
    }
12378
 
3430 rajveer 12379
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 12380
    public boolean isSetSuccess() {
2443 chandransh 12381
      return this.success != null;
495 rajveer 12382
    }
12383
 
12384
    public void setSuccessIsSet(boolean value) {
2443 chandransh 12385
      if (!value) {
12386
        this.success = null;
12387
      }
495 rajveer 12388
    }
12389
 
12390
    public HelperServiceException getSe() {
12391
      return this.se;
12392
    }
12393
 
3430 rajveer 12394
    public void setSe(HelperServiceException se) {
495 rajveer 12395
      this.se = se;
12396
    }
12397
 
12398
    public void unsetSe() {
12399
      this.se = null;
12400
    }
12401
 
3430 rajveer 12402
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 12403
    public boolean isSetSe() {
12404
      return this.se != null;
12405
    }
12406
 
12407
    public void setSeIsSet(boolean value) {
12408
      if (!value) {
12409
        this.se = null;
12410
      }
12411
    }
12412
 
12413
    public void setFieldValue(_Fields field, Object value) {
12414
      switch (field) {
12415
      case SUCCESS:
12416
        if (value == null) {
12417
          unsetSuccess();
12418
        } else {
2443 chandransh 12419
          setSuccess((DashboardUser)value);
495 rajveer 12420
        }
12421
        break;
12422
 
12423
      case SE:
12424
        if (value == null) {
12425
          unsetSe();
12426
        } else {
12427
          setSe((HelperServiceException)value);
12428
        }
12429
        break;
12430
 
12431
      }
12432
    }
12433
 
12434
    public Object getFieldValue(_Fields field) {
12435
      switch (field) {
12436
      case SUCCESS:
2443 chandransh 12437
        return getSuccess();
495 rajveer 12438
 
12439
      case SE:
12440
        return getSe();
12441
 
12442
      }
12443
      throw new IllegalStateException();
12444
    }
12445
 
3430 rajveer 12446
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12447
    public boolean isSet(_Fields field) {
12448
      if (field == null) {
12449
        throw new IllegalArgumentException();
12450
      }
495 rajveer 12451
 
12452
      switch (field) {
12453
      case SUCCESS:
12454
        return isSetSuccess();
12455
      case SE:
12456
        return isSetSe();
12457
      }
12458
      throw new IllegalStateException();
12459
    }
12460
 
12461
    @Override
12462
    public boolean equals(Object that) {
12463
      if (that == null)
12464
        return false;
2443 chandransh 12465
      if (that instanceof authenticateDashboardUser_result)
12466
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 12467
      return false;
12468
    }
12469
 
2443 chandransh 12470
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 12471
      if (that == null)
12472
        return false;
12473
 
2443 chandransh 12474
      boolean this_present_success = true && this.isSetSuccess();
12475
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 12476
      if (this_present_success || that_present_success) {
12477
        if (!(this_present_success && that_present_success))
12478
          return false;
2443 chandransh 12479
        if (!this.success.equals(that.success))
495 rajveer 12480
          return false;
12481
      }
12482
 
12483
      boolean this_present_se = true && this.isSetSe();
12484
      boolean that_present_se = true && that.isSetSe();
12485
      if (this_present_se || that_present_se) {
12486
        if (!(this_present_se && that_present_se))
12487
          return false;
12488
        if (!this.se.equals(that.se))
12489
          return false;
12490
      }
12491
 
12492
      return true;
12493
    }
12494
 
12495
    @Override
12496
    public int hashCode() {
12497
      return 0;
12498
    }
12499
 
2443 chandransh 12500
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 12501
      if (!getClass().equals(other.getClass())) {
12502
        return getClass().getName().compareTo(other.getClass().getName());
12503
      }
12504
 
12505
      int lastComparison = 0;
2443 chandransh 12506
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 12507
 
3430 rajveer 12508
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12509
      if (lastComparison != 0) {
12510
        return lastComparison;
12511
      }
3430 rajveer 12512
      if (isSetSuccess()) {
12513
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12514
        if (lastComparison != 0) {
12515
          return lastComparison;
12516
        }
495 rajveer 12517
      }
3430 rajveer 12518
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12519
      if (lastComparison != 0) {
12520
        return lastComparison;
12521
      }
3430 rajveer 12522
      if (isSetSe()) {
12523
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12524
        if (lastComparison != 0) {
12525
          return lastComparison;
12526
        }
495 rajveer 12527
      }
12528
      return 0;
12529
    }
12530
 
3430 rajveer 12531
    public _Fields fieldForId(int fieldId) {
12532
      return _Fields.findByThriftId(fieldId);
12533
    }
12534
 
12535
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12536
      org.apache.thrift.protocol.TField field;
495 rajveer 12537
      iprot.readStructBegin();
12538
      while (true)
12539
      {
12540
        field = iprot.readFieldBegin();
3430 rajveer 12541
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12542
          break;
12543
        }
3430 rajveer 12544
        switch (field.id) {
12545
          case 0: // SUCCESS
12546
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12547
              this.success = new DashboardUser();
12548
              this.success.read(iprot);
12549
            } else { 
12550
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12551
            }
12552
            break;
12553
          case 1: // SE
12554
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12555
              this.se = new HelperServiceException();
12556
              this.se.read(iprot);
12557
            } else { 
12558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12559
            }
12560
            break;
12561
          default:
12562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12563
        }
3430 rajveer 12564
        iprot.readFieldEnd();
495 rajveer 12565
      }
12566
      iprot.readStructEnd();
12567
      validate();
12568
    }
12569
 
3430 rajveer 12570
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12571
      oprot.writeStructBegin(STRUCT_DESC);
12572
 
12573
      if (this.isSetSuccess()) {
12574
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 12575
        this.success.write(oprot);
495 rajveer 12576
        oprot.writeFieldEnd();
12577
      } else if (this.isSetSe()) {
12578
        oprot.writeFieldBegin(SE_FIELD_DESC);
12579
        this.se.write(oprot);
12580
        oprot.writeFieldEnd();
12581
      }
12582
      oprot.writeFieldStop();
12583
      oprot.writeStructEnd();
12584
    }
12585
 
12586
    @Override
12587
    public String toString() {
2443 chandransh 12588
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 12589
      boolean first = true;
12590
 
12591
      sb.append("success:");
2443 chandransh 12592
      if (this.success == null) {
12593
        sb.append("null");
12594
      } else {
12595
        sb.append(this.success);
12596
      }
495 rajveer 12597
      first = false;
12598
      if (!first) sb.append(", ");
12599
      sb.append("se:");
12600
      if (this.se == null) {
12601
        sb.append("null");
12602
      } else {
12603
        sb.append(this.se);
12604
      }
12605
      first = false;
12606
      sb.append(")");
12607
      return sb.toString();
12608
    }
12609
 
3430 rajveer 12610
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12611
      // check for required fields
12612
    }
12613
 
3430 rajveer 12614
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12615
      try {
12616
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12617
      } catch (org.apache.thrift.TException te) {
12618
        throw new java.io.IOException(te);
12619
      }
12620
    }
12621
 
12622
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12623
      try {
12624
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12625
      } catch (org.apache.thrift.TException te) {
12626
        throw new java.io.IOException(te);
12627
      }
12628
    }
12629
 
495 rajveer 12630
  }
12631
 
3430 rajveer 12632
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
12633
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 12634
 
3430 rajveer 12635
    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);
12636
    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);
12637
    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 12638
 
3430 rajveer 12639
    private String username; // required
12640
    private String oldPassword; // required
12641
    private String newPassword; // required
495 rajveer 12642
 
12643
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12644
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 12645
      USERNAME((short)1, "username"),
12646
      OLD_PASSWORD((short)2, "oldPassword"),
12647
      NEW_PASSWORD((short)3, "newPassword");
12648
 
12649
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12650
 
12651
      static {
12652
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12653
          byName.put(field.getFieldName(), field);
12654
        }
12655
      }
12656
 
12657
      /**
12658
       * Find the _Fields constant that matches fieldId, or null if its not found.
12659
       */
12660
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12661
        switch(fieldId) {
12662
          case 1: // USERNAME
12663
            return USERNAME;
12664
          case 2: // OLD_PASSWORD
12665
            return OLD_PASSWORD;
12666
          case 3: // NEW_PASSWORD
12667
            return NEW_PASSWORD;
12668
          default:
12669
            return null;
12670
        }
495 rajveer 12671
      }
12672
 
12673
      /**
12674
       * Find the _Fields constant that matches fieldId, throwing an exception
12675
       * if it is not found.
12676
       */
12677
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12678
        _Fields fields = findByThriftId(fieldId);
12679
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12680
        return fields;
12681
      }
12682
 
12683
      /**
12684
       * Find the _Fields constant that matches name, or null if its not found.
12685
       */
12686
      public static _Fields findByName(String name) {
12687
        return byName.get(name);
12688
      }
12689
 
12690
      private final short _thriftId;
12691
      private final String _fieldName;
12692
 
12693
      _Fields(short thriftId, String fieldName) {
12694
        _thriftId = thriftId;
12695
        _fieldName = fieldName;
12696
      }
12697
 
12698
      public short getThriftFieldId() {
12699
        return _thriftId;
12700
      }
12701
 
12702
      public String getFieldName() {
12703
        return _fieldName;
12704
      }
12705
    }
12706
 
12707
    // isset id assignments
12708
 
3430 rajveer 12709
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12710
    static {
3430 rajveer 12711
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12712
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12713
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12714
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12715
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12716
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12717
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12718
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12719
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 12720
    }
12721
 
12722
    public updatePassword_args() {
12723
    }
12724
 
12725
    public updatePassword_args(
12726
      String username,
12727
      String oldPassword,
12728
      String newPassword)
12729
    {
12730
      this();
12731
      this.username = username;
12732
      this.oldPassword = oldPassword;
12733
      this.newPassword = newPassword;
12734
    }
12735
 
12736
    /**
12737
     * Performs a deep copy on <i>other</i>.
12738
     */
12739
    public updatePassword_args(updatePassword_args other) {
12740
      if (other.isSetUsername()) {
12741
        this.username = other.username;
12742
      }
12743
      if (other.isSetOldPassword()) {
12744
        this.oldPassword = other.oldPassword;
12745
      }
12746
      if (other.isSetNewPassword()) {
12747
        this.newPassword = other.newPassword;
12748
      }
12749
    }
12750
 
12751
    public updatePassword_args deepCopy() {
12752
      return new updatePassword_args(this);
12753
    }
12754
 
3430 rajveer 12755
    @Override
12756
    public void clear() {
12757
      this.username = null;
12758
      this.oldPassword = null;
12759
      this.newPassword = null;
495 rajveer 12760
    }
12761
 
12762
    public String getUsername() {
12763
      return this.username;
12764
    }
12765
 
3430 rajveer 12766
    public void setUsername(String username) {
495 rajveer 12767
      this.username = username;
12768
    }
12769
 
12770
    public void unsetUsername() {
12771
      this.username = null;
12772
    }
12773
 
3430 rajveer 12774
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 12775
    public boolean isSetUsername() {
12776
      return this.username != null;
12777
    }
12778
 
12779
    public void setUsernameIsSet(boolean value) {
12780
      if (!value) {
12781
        this.username = null;
12782
      }
12783
    }
12784
 
12785
    public String getOldPassword() {
12786
      return this.oldPassword;
12787
    }
12788
 
3430 rajveer 12789
    public void setOldPassword(String oldPassword) {
495 rajveer 12790
      this.oldPassword = oldPassword;
12791
    }
12792
 
12793
    public void unsetOldPassword() {
12794
      this.oldPassword = null;
12795
    }
12796
 
3430 rajveer 12797
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 12798
    public boolean isSetOldPassword() {
12799
      return this.oldPassword != null;
12800
    }
12801
 
12802
    public void setOldPasswordIsSet(boolean value) {
12803
      if (!value) {
12804
        this.oldPassword = null;
12805
      }
12806
    }
12807
 
12808
    public String getNewPassword() {
12809
      return this.newPassword;
12810
    }
12811
 
3430 rajveer 12812
    public void setNewPassword(String newPassword) {
495 rajveer 12813
      this.newPassword = newPassword;
12814
    }
12815
 
12816
    public void unsetNewPassword() {
12817
      this.newPassword = null;
12818
    }
12819
 
3430 rajveer 12820
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 12821
    public boolean isSetNewPassword() {
12822
      return this.newPassword != null;
12823
    }
12824
 
12825
    public void setNewPasswordIsSet(boolean value) {
12826
      if (!value) {
12827
        this.newPassword = null;
12828
      }
12829
    }
12830
 
12831
    public void setFieldValue(_Fields field, Object value) {
12832
      switch (field) {
12833
      case USERNAME:
12834
        if (value == null) {
12835
          unsetUsername();
12836
        } else {
12837
          setUsername((String)value);
12838
        }
12839
        break;
12840
 
12841
      case OLD_PASSWORD:
12842
        if (value == null) {
12843
          unsetOldPassword();
12844
        } else {
12845
          setOldPassword((String)value);
12846
        }
12847
        break;
12848
 
12849
      case NEW_PASSWORD:
12850
        if (value == null) {
12851
          unsetNewPassword();
12852
        } else {
12853
          setNewPassword((String)value);
12854
        }
12855
        break;
12856
 
12857
      }
12858
    }
12859
 
12860
    public Object getFieldValue(_Fields field) {
12861
      switch (field) {
12862
      case USERNAME:
12863
        return getUsername();
12864
 
12865
      case OLD_PASSWORD:
12866
        return getOldPassword();
12867
 
12868
      case NEW_PASSWORD:
12869
        return getNewPassword();
12870
 
12871
      }
12872
      throw new IllegalStateException();
12873
    }
12874
 
3430 rajveer 12875
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12876
    public boolean isSet(_Fields field) {
12877
      if (field == null) {
12878
        throw new IllegalArgumentException();
12879
      }
495 rajveer 12880
 
12881
      switch (field) {
12882
      case USERNAME:
12883
        return isSetUsername();
12884
      case OLD_PASSWORD:
12885
        return isSetOldPassword();
12886
      case NEW_PASSWORD:
12887
        return isSetNewPassword();
12888
      }
12889
      throw new IllegalStateException();
12890
    }
12891
 
12892
    @Override
12893
    public boolean equals(Object that) {
12894
      if (that == null)
12895
        return false;
12896
      if (that instanceof updatePassword_args)
12897
        return this.equals((updatePassword_args)that);
12898
      return false;
12899
    }
12900
 
12901
    public boolean equals(updatePassword_args that) {
12902
      if (that == null)
12903
        return false;
12904
 
12905
      boolean this_present_username = true && this.isSetUsername();
12906
      boolean that_present_username = true && that.isSetUsername();
12907
      if (this_present_username || that_present_username) {
12908
        if (!(this_present_username && that_present_username))
12909
          return false;
12910
        if (!this.username.equals(that.username))
12911
          return false;
12912
      }
12913
 
12914
      boolean this_present_oldPassword = true && this.isSetOldPassword();
12915
      boolean that_present_oldPassword = true && that.isSetOldPassword();
12916
      if (this_present_oldPassword || that_present_oldPassword) {
12917
        if (!(this_present_oldPassword && that_present_oldPassword))
12918
          return false;
12919
        if (!this.oldPassword.equals(that.oldPassword))
12920
          return false;
12921
      }
12922
 
12923
      boolean this_present_newPassword = true && this.isSetNewPassword();
12924
      boolean that_present_newPassword = true && that.isSetNewPassword();
12925
      if (this_present_newPassword || that_present_newPassword) {
12926
        if (!(this_present_newPassword && that_present_newPassword))
12927
          return false;
12928
        if (!this.newPassword.equals(that.newPassword))
12929
          return false;
12930
      }
12931
 
12932
      return true;
12933
    }
12934
 
12935
    @Override
12936
    public int hashCode() {
12937
      return 0;
12938
    }
12939
 
12940
    public int compareTo(updatePassword_args other) {
12941
      if (!getClass().equals(other.getClass())) {
12942
        return getClass().getName().compareTo(other.getClass().getName());
12943
      }
12944
 
12945
      int lastComparison = 0;
12946
      updatePassword_args typedOther = (updatePassword_args)other;
12947
 
3430 rajveer 12948
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 12949
      if (lastComparison != 0) {
12950
        return lastComparison;
12951
      }
3430 rajveer 12952
      if (isSetUsername()) {
12953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12954
        if (lastComparison != 0) {
12955
          return lastComparison;
12956
        }
495 rajveer 12957
      }
3430 rajveer 12958
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 12959
      if (lastComparison != 0) {
12960
        return lastComparison;
12961
      }
3430 rajveer 12962
      if (isSetOldPassword()) {
12963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
12964
        if (lastComparison != 0) {
12965
          return lastComparison;
12966
        }
495 rajveer 12967
      }
3430 rajveer 12968
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 12969
      if (lastComparison != 0) {
12970
        return lastComparison;
12971
      }
3430 rajveer 12972
      if (isSetNewPassword()) {
12973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
12974
        if (lastComparison != 0) {
12975
          return lastComparison;
12976
        }
495 rajveer 12977
      }
12978
      return 0;
12979
    }
12980
 
3430 rajveer 12981
    public _Fields fieldForId(int fieldId) {
12982
      return _Fields.findByThriftId(fieldId);
12983
    }
12984
 
12985
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12986
      org.apache.thrift.protocol.TField field;
495 rajveer 12987
      iprot.readStructBegin();
12988
      while (true)
12989
      {
12990
        field = iprot.readFieldBegin();
3430 rajveer 12991
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12992
          break;
12993
        }
3430 rajveer 12994
        switch (field.id) {
12995
          case 1: // USERNAME
12996
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12997
              this.username = iprot.readString();
12998
            } else { 
12999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13000
            }
13001
            break;
13002
          case 2: // OLD_PASSWORD
13003
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13004
              this.oldPassword = iprot.readString();
13005
            } else { 
13006
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13007
            }
13008
            break;
13009
          case 3: // NEW_PASSWORD
13010
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13011
              this.newPassword = iprot.readString();
13012
            } else { 
13013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13014
            }
13015
            break;
13016
          default:
13017
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 13018
        }
3430 rajveer 13019
        iprot.readFieldEnd();
495 rajveer 13020
      }
13021
      iprot.readStructEnd();
13022
      validate();
13023
    }
13024
 
3430 rajveer 13025
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 13026
      validate();
13027
 
13028
      oprot.writeStructBegin(STRUCT_DESC);
13029
      if (this.username != null) {
13030
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13031
        oprot.writeString(this.username);
13032
        oprot.writeFieldEnd();
13033
      }
13034
      if (this.oldPassword != null) {
13035
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
13036
        oprot.writeString(this.oldPassword);
13037
        oprot.writeFieldEnd();
13038
      }
13039
      if (this.newPassword != null) {
13040
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
13041
        oprot.writeString(this.newPassword);
13042
        oprot.writeFieldEnd();
13043
      }
13044
      oprot.writeFieldStop();
13045
      oprot.writeStructEnd();
13046
    }
13047
 
13048
    @Override
13049
    public String toString() {
13050
      StringBuilder sb = new StringBuilder("updatePassword_args(");
13051
      boolean first = true;
13052
 
13053
      sb.append("username:");
13054
      if (this.username == null) {
13055
        sb.append("null");
13056
      } else {
13057
        sb.append(this.username);
13058
      }
13059
      first = false;
13060
      if (!first) sb.append(", ");
13061
      sb.append("oldPassword:");
13062
      if (this.oldPassword == null) {
13063
        sb.append("null");
13064
      } else {
13065
        sb.append(this.oldPassword);
13066
      }
13067
      first = false;
13068
      if (!first) sb.append(", ");
13069
      sb.append("newPassword:");
13070
      if (this.newPassword == null) {
13071
        sb.append("null");
13072
      } else {
13073
        sb.append(this.newPassword);
13074
      }
13075
      first = false;
13076
      sb.append(")");
13077
      return sb.toString();
13078
    }
13079
 
3430 rajveer 13080
    public void validate() throws org.apache.thrift.TException {
495 rajveer 13081
      // check for required fields
13082
    }
13083
 
3430 rajveer 13084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13085
      try {
13086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13087
      } catch (org.apache.thrift.TException te) {
13088
        throw new java.io.IOException(te);
13089
      }
13090
    }
13091
 
13092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13093
      try {
13094
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13095
      } catch (org.apache.thrift.TException te) {
13096
        throw new java.io.IOException(te);
13097
      }
13098
    }
13099
 
495 rajveer 13100
  }
13101
 
3430 rajveer 13102
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
13103
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 13104
 
3430 rajveer 13105
    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);
13106
    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 13107
 
3430 rajveer 13108
    private boolean success; // required
13109
    private HelperServiceException se; // required
495 rajveer 13110
 
13111
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13112
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 13113
      SUCCESS((short)0, "success"),
13114
      SE((short)1, "se");
13115
 
13116
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13117
 
13118
      static {
13119
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13120
          byName.put(field.getFieldName(), field);
13121
        }
13122
      }
13123
 
13124
      /**
13125
       * Find the _Fields constant that matches fieldId, or null if its not found.
13126
       */
13127
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13128
        switch(fieldId) {
13129
          case 0: // SUCCESS
13130
            return SUCCESS;
13131
          case 1: // SE
13132
            return SE;
13133
          default:
13134
            return null;
13135
        }
495 rajveer 13136
      }
13137
 
13138
      /**
13139
       * Find the _Fields constant that matches fieldId, throwing an exception
13140
       * if it is not found.
13141
       */
13142
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13143
        _Fields fields = findByThriftId(fieldId);
13144
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13145
        return fields;
13146
      }
13147
 
13148
      /**
13149
       * Find the _Fields constant that matches name, or null if its not found.
13150
       */
13151
      public static _Fields findByName(String name) {
13152
        return byName.get(name);
13153
      }
13154
 
13155
      private final short _thriftId;
13156
      private final String _fieldName;
13157
 
13158
      _Fields(short thriftId, String fieldName) {
13159
        _thriftId = thriftId;
13160
        _fieldName = fieldName;
13161
      }
13162
 
13163
      public short getThriftFieldId() {
13164
        return _thriftId;
13165
      }
13166
 
13167
      public String getFieldName() {
13168
        return _fieldName;
13169
      }
13170
    }
13171
 
13172
    // isset id assignments
13173
    private static final int __SUCCESS_ISSET_ID = 0;
13174
    private BitSet __isset_bit_vector = new BitSet(1);
13175
 
3430 rajveer 13176
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 13177
    static {
3430 rajveer 13178
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13179
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13180
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13181
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13182
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13183
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13184
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 13185
    }
13186
 
13187
    public updatePassword_result() {
13188
    }
13189
 
13190
    public updatePassword_result(
13191
      boolean success,
13192
      HelperServiceException se)
13193
    {
13194
      this();
13195
      this.success = success;
13196
      setSuccessIsSet(true);
13197
      this.se = se;
13198
    }
13199
 
13200
    /**
13201
     * Performs a deep copy on <i>other</i>.
13202
     */
13203
    public updatePassword_result(updatePassword_result other) {
13204
      __isset_bit_vector.clear();
13205
      __isset_bit_vector.or(other.__isset_bit_vector);
13206
      this.success = other.success;
13207
      if (other.isSetSe()) {
13208
        this.se = new HelperServiceException(other.se);
13209
      }
13210
    }
13211
 
13212
    public updatePassword_result deepCopy() {
13213
      return new updatePassword_result(this);
13214
    }
13215
 
3430 rajveer 13216
    @Override
13217
    public void clear() {
13218
      setSuccessIsSet(false);
13219
      this.success = false;
13220
      this.se = null;
495 rajveer 13221
    }
13222
 
13223
    public boolean isSuccess() {
13224
      return this.success;
13225
    }
13226
 
3430 rajveer 13227
    public void setSuccess(boolean success) {
495 rajveer 13228
      this.success = success;
13229
      setSuccessIsSet(true);
13230
    }
13231
 
13232
    public void unsetSuccess() {
13233
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13234
    }
13235
 
3430 rajveer 13236
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 13237
    public boolean isSetSuccess() {
13238
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13239
    }
13240
 
13241
    public void setSuccessIsSet(boolean value) {
13242
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13243
    }
13244
 
13245
    public HelperServiceException getSe() {
13246
      return this.se;
13247
    }
13248
 
3430 rajveer 13249
    public void setSe(HelperServiceException se) {
495 rajveer 13250
      this.se = se;
13251
    }
13252
 
13253
    public void unsetSe() {
13254
      this.se = null;
13255
    }
13256
 
3430 rajveer 13257
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 13258
    public boolean isSetSe() {
13259
      return this.se != null;
13260
    }
13261
 
13262
    public void setSeIsSet(boolean value) {
13263
      if (!value) {
13264
        this.se = null;
13265
      }
13266
    }
13267
 
13268
    public void setFieldValue(_Fields field, Object value) {
13269
      switch (field) {
13270
      case SUCCESS:
13271
        if (value == null) {
13272
          unsetSuccess();
13273
        } else {
13274
          setSuccess((Boolean)value);
13275
        }
13276
        break;
13277
 
13278
      case SE:
13279
        if (value == null) {
13280
          unsetSe();
13281
        } else {
13282
          setSe((HelperServiceException)value);
13283
        }
13284
        break;
13285
 
13286
      }
13287
    }
13288
 
13289
    public Object getFieldValue(_Fields field) {
13290
      switch (field) {
13291
      case SUCCESS:
3430 rajveer 13292
        return Boolean.valueOf(isSuccess());
495 rajveer 13293
 
13294
      case SE:
13295
        return getSe();
13296
 
13297
      }
13298
      throw new IllegalStateException();
13299
    }
13300
 
3430 rajveer 13301
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13302
    public boolean isSet(_Fields field) {
13303
      if (field == null) {
13304
        throw new IllegalArgumentException();
13305
      }
495 rajveer 13306
 
13307
      switch (field) {
13308
      case SUCCESS:
13309
        return isSetSuccess();
13310
      case SE:
13311
        return isSetSe();
13312
      }
13313
      throw new IllegalStateException();
13314
    }
13315
 
13316
    @Override
13317
    public boolean equals(Object that) {
13318
      if (that == null)
13319
        return false;
13320
      if (that instanceof updatePassword_result)
13321
        return this.equals((updatePassword_result)that);
13322
      return false;
13323
    }
13324
 
13325
    public boolean equals(updatePassword_result that) {
13326
      if (that == null)
13327
        return false;
13328
 
13329
      boolean this_present_success = true;
13330
      boolean that_present_success = true;
13331
      if (this_present_success || that_present_success) {
13332
        if (!(this_present_success && that_present_success))
13333
          return false;
13334
        if (this.success != that.success)
13335
          return false;
13336
      }
13337
 
13338
      boolean this_present_se = true && this.isSetSe();
13339
      boolean that_present_se = true && that.isSetSe();
13340
      if (this_present_se || that_present_se) {
13341
        if (!(this_present_se && that_present_se))
13342
          return false;
13343
        if (!this.se.equals(that.se))
13344
          return false;
13345
      }
13346
 
13347
      return true;
13348
    }
13349
 
13350
    @Override
13351
    public int hashCode() {
13352
      return 0;
13353
    }
13354
 
13355
    public int compareTo(updatePassword_result other) {
13356
      if (!getClass().equals(other.getClass())) {
13357
        return getClass().getName().compareTo(other.getClass().getName());
13358
      }
13359
 
13360
      int lastComparison = 0;
13361
      updatePassword_result typedOther = (updatePassword_result)other;
13362
 
3430 rajveer 13363
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 13364
      if (lastComparison != 0) {
13365
        return lastComparison;
13366
      }
3430 rajveer 13367
      if (isSetSuccess()) {
13368
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13369
        if (lastComparison != 0) {
13370
          return lastComparison;
13371
        }
495 rajveer 13372
      }
3430 rajveer 13373
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 13374
      if (lastComparison != 0) {
13375
        return lastComparison;
13376
      }
3430 rajveer 13377
      if (isSetSe()) {
13378
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
13379
        if (lastComparison != 0) {
13380
          return lastComparison;
13381
        }
495 rajveer 13382
      }
13383
      return 0;
13384
    }
13385
 
3430 rajveer 13386
    public _Fields fieldForId(int fieldId) {
13387
      return _Fields.findByThriftId(fieldId);
13388
    }
13389
 
13390
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13391
      org.apache.thrift.protocol.TField field;
495 rajveer 13392
      iprot.readStructBegin();
13393
      while (true)
13394
      {
13395
        field = iprot.readFieldBegin();
3430 rajveer 13396
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 13397
          break;
13398
        }
3430 rajveer 13399
        switch (field.id) {
13400
          case 0: // SUCCESS
13401
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13402
              this.success = iprot.readBool();
13403
              setSuccessIsSet(true);
13404
            } else { 
13405
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13406
            }
13407
            break;
13408
          case 1: // SE
13409
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13410
              this.se = new HelperServiceException();
13411
              this.se.read(iprot);
13412
            } else { 
13413
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13414
            }
13415
            break;
13416
          default:
13417
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 13418
        }
3430 rajveer 13419
        iprot.readFieldEnd();
495 rajveer 13420
      }
13421
      iprot.readStructEnd();
13422
      validate();
13423
    }
13424
 
3430 rajveer 13425
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 13426
      oprot.writeStructBegin(STRUCT_DESC);
13427
 
13428
      if (this.isSetSuccess()) {
13429
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13430
        oprot.writeBool(this.success);
13431
        oprot.writeFieldEnd();
13432
      } else if (this.isSetSe()) {
13433
        oprot.writeFieldBegin(SE_FIELD_DESC);
13434
        this.se.write(oprot);
13435
        oprot.writeFieldEnd();
13436
      }
13437
      oprot.writeFieldStop();
13438
      oprot.writeStructEnd();
13439
    }
13440
 
13441
    @Override
13442
    public String toString() {
13443
      StringBuilder sb = new StringBuilder("updatePassword_result(");
13444
      boolean first = true;
13445
 
13446
      sb.append("success:");
13447
      sb.append(this.success);
13448
      first = false;
13449
      if (!first) sb.append(", ");
13450
      sb.append("se:");
13451
      if (this.se == null) {
13452
        sb.append("null");
13453
      } else {
13454
        sb.append(this.se);
13455
      }
13456
      first = false;
13457
      sb.append(")");
13458
      return sb.toString();
13459
    }
13460
 
3430 rajveer 13461
    public void validate() throws org.apache.thrift.TException {
495 rajveer 13462
      // check for required fields
13463
    }
13464
 
3430 rajveer 13465
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13466
      try {
13467
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13468
      } catch (org.apache.thrift.TException te) {
13469
        throw new java.io.IOException(te);
13470
      }
13471
    }
13472
 
13473
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13474
      try {
13475
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13476
      } catch (org.apache.thrift.TException te) {
13477
        throw new java.io.IOException(te);
13478
      }
13479
    }
13480
 
495 rajveer 13481
  }
13482
 
3430 rajveer 13483
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
13484
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 13485
 
3430 rajveer 13486
    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);
13487
    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 13488
 
3430 rajveer 13489
    private String username; // required
13490
    private String password; // required
750 chandransh 13491
 
13492
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13493
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 13494
      USERNAME((short)1, "username"),
13495
      PASSWORD((short)2, "password");
13496
 
13497
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13498
 
13499
      static {
13500
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13501
          byName.put(field.getFieldName(), field);
13502
        }
13503
      }
13504
 
13505
      /**
13506
       * Find the _Fields constant that matches fieldId, or null if its not found.
13507
       */
13508
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13509
        switch(fieldId) {
13510
          case 1: // USERNAME
13511
            return USERNAME;
13512
          case 2: // PASSWORD
13513
            return PASSWORD;
13514
          default:
13515
            return null;
13516
        }
750 chandransh 13517
      }
13518
 
13519
      /**
13520
       * Find the _Fields constant that matches fieldId, throwing an exception
13521
       * if it is not found.
13522
       */
13523
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13524
        _Fields fields = findByThriftId(fieldId);
13525
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13526
        return fields;
13527
      }
13528
 
13529
      /**
13530
       * Find the _Fields constant that matches name, or null if its not found.
13531
       */
13532
      public static _Fields findByName(String name) {
13533
        return byName.get(name);
13534
      }
13535
 
13536
      private final short _thriftId;
13537
      private final String _fieldName;
13538
 
13539
      _Fields(short thriftId, String fieldName) {
13540
        _thriftId = thriftId;
13541
        _fieldName = fieldName;
13542
      }
13543
 
13544
      public short getThriftFieldId() {
13545
        return _thriftId;
13546
      }
13547
 
13548
      public String getFieldName() {
13549
        return _fieldName;
13550
      }
13551
    }
13552
 
13553
    // isset id assignments
13554
 
3430 rajveer 13555
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 13556
    static {
3430 rajveer 13557
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13558
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13559
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13560
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13562
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13563
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 13564
    }
13565
 
13566
    public authenticateLogisticsUser_args() {
13567
    }
13568
 
13569
    public authenticateLogisticsUser_args(
13570
      String username,
13571
      String password)
13572
    {
13573
      this();
13574
      this.username = username;
13575
      this.password = password;
13576
    }
13577
 
13578
    /**
13579
     * Performs a deep copy on <i>other</i>.
13580
     */
13581
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
13582
      if (other.isSetUsername()) {
13583
        this.username = other.username;
13584
      }
13585
      if (other.isSetPassword()) {
13586
        this.password = other.password;
13587
      }
13588
    }
13589
 
13590
    public authenticateLogisticsUser_args deepCopy() {
13591
      return new authenticateLogisticsUser_args(this);
13592
    }
13593
 
3430 rajveer 13594
    @Override
13595
    public void clear() {
13596
      this.username = null;
13597
      this.password = null;
750 chandransh 13598
    }
13599
 
13600
    public String getUsername() {
13601
      return this.username;
13602
    }
13603
 
3430 rajveer 13604
    public void setUsername(String username) {
750 chandransh 13605
      this.username = username;
13606
    }
13607
 
13608
    public void unsetUsername() {
13609
      this.username = null;
13610
    }
13611
 
3430 rajveer 13612
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 13613
    public boolean isSetUsername() {
13614
      return this.username != null;
13615
    }
13616
 
13617
    public void setUsernameIsSet(boolean value) {
13618
      if (!value) {
13619
        this.username = null;
13620
      }
13621
    }
13622
 
13623
    public String getPassword() {
13624
      return this.password;
13625
    }
13626
 
3430 rajveer 13627
    public void setPassword(String password) {
750 chandransh 13628
      this.password = password;
13629
    }
13630
 
13631
    public void unsetPassword() {
13632
      this.password = null;
13633
    }
13634
 
3430 rajveer 13635
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 13636
    public boolean isSetPassword() {
13637
      return this.password != null;
13638
    }
13639
 
13640
    public void setPasswordIsSet(boolean value) {
13641
      if (!value) {
13642
        this.password = null;
13643
      }
13644
    }
13645
 
13646
    public void setFieldValue(_Fields field, Object value) {
13647
      switch (field) {
13648
      case USERNAME:
13649
        if (value == null) {
13650
          unsetUsername();
13651
        } else {
13652
          setUsername((String)value);
13653
        }
13654
        break;
13655
 
13656
      case PASSWORD:
13657
        if (value == null) {
13658
          unsetPassword();
13659
        } else {
13660
          setPassword((String)value);
13661
        }
13662
        break;
13663
 
13664
      }
13665
    }
13666
 
13667
    public Object getFieldValue(_Fields field) {
13668
      switch (field) {
13669
      case USERNAME:
13670
        return getUsername();
13671
 
13672
      case PASSWORD:
13673
        return getPassword();
13674
 
13675
      }
13676
      throw new IllegalStateException();
13677
    }
13678
 
3430 rajveer 13679
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13680
    public boolean isSet(_Fields field) {
13681
      if (field == null) {
13682
        throw new IllegalArgumentException();
13683
      }
750 chandransh 13684
 
13685
      switch (field) {
13686
      case USERNAME:
13687
        return isSetUsername();
13688
      case PASSWORD:
13689
        return isSetPassword();
13690
      }
13691
      throw new IllegalStateException();
13692
    }
13693
 
13694
    @Override
13695
    public boolean equals(Object that) {
13696
      if (that == null)
13697
        return false;
13698
      if (that instanceof authenticateLogisticsUser_args)
13699
        return this.equals((authenticateLogisticsUser_args)that);
13700
      return false;
13701
    }
13702
 
13703
    public boolean equals(authenticateLogisticsUser_args that) {
13704
      if (that == null)
13705
        return false;
13706
 
13707
      boolean this_present_username = true && this.isSetUsername();
13708
      boolean that_present_username = true && that.isSetUsername();
13709
      if (this_present_username || that_present_username) {
13710
        if (!(this_present_username && that_present_username))
13711
          return false;
13712
        if (!this.username.equals(that.username))
13713
          return false;
13714
      }
13715
 
13716
      boolean this_present_password = true && this.isSetPassword();
13717
      boolean that_present_password = true && that.isSetPassword();
13718
      if (this_present_password || that_present_password) {
13719
        if (!(this_present_password && that_present_password))
13720
          return false;
13721
        if (!this.password.equals(that.password))
13722
          return false;
13723
      }
13724
 
13725
      return true;
13726
    }
13727
 
13728
    @Override
13729
    public int hashCode() {
13730
      return 0;
13731
    }
13732
 
13733
    public int compareTo(authenticateLogisticsUser_args other) {
13734
      if (!getClass().equals(other.getClass())) {
13735
        return getClass().getName().compareTo(other.getClass().getName());
13736
      }
13737
 
13738
      int lastComparison = 0;
13739
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
13740
 
3430 rajveer 13741
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 13742
      if (lastComparison != 0) {
13743
        return lastComparison;
13744
      }
3430 rajveer 13745
      if (isSetUsername()) {
13746
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13747
        if (lastComparison != 0) {
13748
          return lastComparison;
13749
        }
750 chandransh 13750
      }
3430 rajveer 13751
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 13752
      if (lastComparison != 0) {
13753
        return lastComparison;
13754
      }
3430 rajveer 13755
      if (isSetPassword()) {
13756
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13757
        if (lastComparison != 0) {
13758
          return lastComparison;
13759
        }
750 chandransh 13760
      }
13761
      return 0;
13762
    }
13763
 
3430 rajveer 13764
    public _Fields fieldForId(int fieldId) {
13765
      return _Fields.findByThriftId(fieldId);
13766
    }
13767
 
13768
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13769
      org.apache.thrift.protocol.TField field;
750 chandransh 13770
      iprot.readStructBegin();
13771
      while (true)
13772
      {
13773
        field = iprot.readFieldBegin();
3430 rajveer 13774
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 13775
          break;
13776
        }
3430 rajveer 13777
        switch (field.id) {
13778
          case 1: // USERNAME
13779
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13780
              this.username = iprot.readString();
13781
            } else { 
13782
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13783
            }
13784
            break;
13785
          case 2: // PASSWORD
13786
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13787
              this.password = iprot.readString();
13788
            } else { 
13789
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13790
            }
13791
            break;
13792
          default:
13793
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 13794
        }
3430 rajveer 13795
        iprot.readFieldEnd();
750 chandransh 13796
      }
13797
      iprot.readStructEnd();
13798
      validate();
13799
    }
13800
 
3430 rajveer 13801
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 13802
      validate();
13803
 
13804
      oprot.writeStructBegin(STRUCT_DESC);
13805
      if (this.username != null) {
13806
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13807
        oprot.writeString(this.username);
13808
        oprot.writeFieldEnd();
13809
      }
13810
      if (this.password != null) {
13811
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13812
        oprot.writeString(this.password);
13813
        oprot.writeFieldEnd();
13814
      }
13815
      oprot.writeFieldStop();
13816
      oprot.writeStructEnd();
13817
    }
13818
 
13819
    @Override
13820
    public String toString() {
13821
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
13822
      boolean first = true;
13823
 
13824
      sb.append("username:");
13825
      if (this.username == null) {
13826
        sb.append("null");
13827
      } else {
13828
        sb.append(this.username);
13829
      }
13830
      first = false;
13831
      if (!first) sb.append(", ");
13832
      sb.append("password:");
13833
      if (this.password == null) {
13834
        sb.append("null");
13835
      } else {
13836
        sb.append(this.password);
13837
      }
13838
      first = false;
13839
      sb.append(")");
13840
      return sb.toString();
13841
    }
13842
 
3430 rajveer 13843
    public void validate() throws org.apache.thrift.TException {
750 chandransh 13844
      // check for required fields
13845
    }
13846
 
3430 rajveer 13847
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13848
      try {
13849
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13850
      } catch (org.apache.thrift.TException te) {
13851
        throw new java.io.IOException(te);
13852
      }
13853
    }
13854
 
13855
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13856
      try {
13857
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13858
      } catch (org.apache.thrift.TException te) {
13859
        throw new java.io.IOException(te);
13860
      }
13861
    }
13862
 
750 chandransh 13863
  }
13864
 
3430 rajveer 13865
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13866
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 13867
 
3430 rajveer 13868
    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);
13869
    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 13870
 
3430 rajveer 13871
    private LogisticsUser success; // required
13872
    private HelperServiceException hse; // required
750 chandransh 13873
 
13874
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13875
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 13876
      SUCCESS((short)0, "success"),
13877
      HSE((short)1, "hse");
13878
 
13879
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13880
 
13881
      static {
13882
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13883
          byName.put(field.getFieldName(), field);
13884
        }
13885
      }
13886
 
13887
      /**
13888
       * Find the _Fields constant that matches fieldId, or null if its not found.
13889
       */
13890
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13891
        switch(fieldId) {
13892
          case 0: // SUCCESS
13893
            return SUCCESS;
13894
          case 1: // HSE
13895
            return HSE;
13896
          default:
13897
            return null;
13898
        }
750 chandransh 13899
      }
13900
 
13901
      /**
13902
       * Find the _Fields constant that matches fieldId, throwing an exception
13903
       * if it is not found.
13904
       */
13905
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13906
        _Fields fields = findByThriftId(fieldId);
13907
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13908
        return fields;
13909
      }
13910
 
13911
      /**
13912
       * Find the _Fields constant that matches name, or null if its not found.
13913
       */
13914
      public static _Fields findByName(String name) {
13915
        return byName.get(name);
13916
      }
13917
 
13918
      private final short _thriftId;
13919
      private final String _fieldName;
13920
 
13921
      _Fields(short thriftId, String fieldName) {
13922
        _thriftId = thriftId;
13923
        _fieldName = fieldName;
13924
      }
13925
 
13926
      public short getThriftFieldId() {
13927
        return _thriftId;
13928
      }
13929
 
13930
      public String getFieldName() {
13931
        return _fieldName;
13932
      }
13933
    }
13934
 
13935
    // isset id assignments
13936
 
3430 rajveer 13937
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 13938
    static {
3430 rajveer 13939
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13940
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13941
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
13942
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13943
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13944
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13945
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 13946
    }
13947
 
13948
    public authenticateLogisticsUser_result() {
13949
    }
13950
 
13951
    public authenticateLogisticsUser_result(
13952
      LogisticsUser success,
13953
      HelperServiceException hse)
13954
    {
13955
      this();
13956
      this.success = success;
13957
      this.hse = hse;
13958
    }
13959
 
13960
    /**
13961
     * Performs a deep copy on <i>other</i>.
13962
     */
13963
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
13964
      if (other.isSetSuccess()) {
13965
        this.success = new LogisticsUser(other.success);
13966
      }
13967
      if (other.isSetHse()) {
13968
        this.hse = new HelperServiceException(other.hse);
13969
      }
13970
    }
13971
 
13972
    public authenticateLogisticsUser_result deepCopy() {
13973
      return new authenticateLogisticsUser_result(this);
13974
    }
13975
 
3430 rajveer 13976
    @Override
13977
    public void clear() {
13978
      this.success = null;
13979
      this.hse = null;
750 chandransh 13980
    }
13981
 
13982
    public LogisticsUser getSuccess() {
13983
      return this.success;
13984
    }
13985
 
3430 rajveer 13986
    public void setSuccess(LogisticsUser success) {
750 chandransh 13987
      this.success = success;
13988
    }
13989
 
13990
    public void unsetSuccess() {
13991
      this.success = null;
13992
    }
13993
 
3430 rajveer 13994
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 13995
    public boolean isSetSuccess() {
13996
      return this.success != null;
13997
    }
13998
 
13999
    public void setSuccessIsSet(boolean value) {
14000
      if (!value) {
14001
        this.success = null;
14002
      }
14003
    }
14004
 
14005
    public HelperServiceException getHse() {
14006
      return this.hse;
14007
    }
14008
 
3430 rajveer 14009
    public void setHse(HelperServiceException hse) {
750 chandransh 14010
      this.hse = hse;
14011
    }
14012
 
14013
    public void unsetHse() {
14014
      this.hse = null;
14015
    }
14016
 
3430 rajveer 14017
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 14018
    public boolean isSetHse() {
14019
      return this.hse != null;
14020
    }
14021
 
14022
    public void setHseIsSet(boolean value) {
14023
      if (!value) {
14024
        this.hse = null;
14025
      }
14026
    }
14027
 
14028
    public void setFieldValue(_Fields field, Object value) {
14029
      switch (field) {
14030
      case SUCCESS:
14031
        if (value == null) {
14032
          unsetSuccess();
14033
        } else {
14034
          setSuccess((LogisticsUser)value);
14035
        }
14036
        break;
14037
 
14038
      case HSE:
14039
        if (value == null) {
14040
          unsetHse();
14041
        } else {
14042
          setHse((HelperServiceException)value);
14043
        }
14044
        break;
14045
 
14046
      }
14047
    }
14048
 
14049
    public Object getFieldValue(_Fields field) {
14050
      switch (field) {
14051
      case SUCCESS:
14052
        return getSuccess();
14053
 
14054
      case HSE:
14055
        return getHse();
14056
 
14057
      }
14058
      throw new IllegalStateException();
14059
    }
14060
 
3430 rajveer 14061
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14062
    public boolean isSet(_Fields field) {
14063
      if (field == null) {
14064
        throw new IllegalArgumentException();
14065
      }
750 chandransh 14066
 
14067
      switch (field) {
14068
      case SUCCESS:
14069
        return isSetSuccess();
14070
      case HSE:
14071
        return isSetHse();
14072
      }
14073
      throw new IllegalStateException();
14074
    }
14075
 
14076
    @Override
14077
    public boolean equals(Object that) {
14078
      if (that == null)
14079
        return false;
14080
      if (that instanceof authenticateLogisticsUser_result)
14081
        return this.equals((authenticateLogisticsUser_result)that);
14082
      return false;
14083
    }
14084
 
14085
    public boolean equals(authenticateLogisticsUser_result that) {
14086
      if (that == null)
14087
        return false;
14088
 
14089
      boolean this_present_success = true && this.isSetSuccess();
14090
      boolean that_present_success = true && that.isSetSuccess();
14091
      if (this_present_success || that_present_success) {
14092
        if (!(this_present_success && that_present_success))
14093
          return false;
14094
        if (!this.success.equals(that.success))
14095
          return false;
14096
      }
14097
 
14098
      boolean this_present_hse = true && this.isSetHse();
14099
      boolean that_present_hse = true && that.isSetHse();
14100
      if (this_present_hse || that_present_hse) {
14101
        if (!(this_present_hse && that_present_hse))
14102
          return false;
14103
        if (!this.hse.equals(that.hse))
14104
          return false;
14105
      }
14106
 
14107
      return true;
14108
    }
14109
 
14110
    @Override
14111
    public int hashCode() {
14112
      return 0;
14113
    }
14114
 
14115
    public int compareTo(authenticateLogisticsUser_result other) {
14116
      if (!getClass().equals(other.getClass())) {
14117
        return getClass().getName().compareTo(other.getClass().getName());
14118
      }
14119
 
14120
      int lastComparison = 0;
14121
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
14122
 
3430 rajveer 14123
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 14124
      if (lastComparison != 0) {
14125
        return lastComparison;
14126
      }
3430 rajveer 14127
      if (isSetSuccess()) {
14128
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14129
        if (lastComparison != 0) {
14130
          return lastComparison;
14131
        }
750 chandransh 14132
      }
3430 rajveer 14133
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 14134
      if (lastComparison != 0) {
14135
        return lastComparison;
14136
      }
3430 rajveer 14137
      if (isSetHse()) {
14138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14139
        if (lastComparison != 0) {
14140
          return lastComparison;
14141
        }
750 chandransh 14142
      }
14143
      return 0;
14144
    }
14145
 
3430 rajveer 14146
    public _Fields fieldForId(int fieldId) {
14147
      return _Fields.findByThriftId(fieldId);
14148
    }
14149
 
14150
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14151
      org.apache.thrift.protocol.TField field;
750 chandransh 14152
      iprot.readStructBegin();
14153
      while (true)
14154
      {
14155
        field = iprot.readFieldBegin();
3430 rajveer 14156
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 14157
          break;
14158
        }
3430 rajveer 14159
        switch (field.id) {
14160
          case 0: // SUCCESS
14161
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14162
              this.success = new LogisticsUser();
14163
              this.success.read(iprot);
14164
            } else { 
14165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14166
            }
14167
            break;
14168
          case 1: // HSE
14169
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14170
              this.hse = new HelperServiceException();
14171
              this.hse.read(iprot);
14172
            } else { 
14173
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14174
            }
14175
            break;
14176
          default:
14177
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 14178
        }
3430 rajveer 14179
        iprot.readFieldEnd();
750 chandransh 14180
      }
14181
      iprot.readStructEnd();
14182
      validate();
14183
    }
14184
 
3430 rajveer 14185
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 14186
      oprot.writeStructBegin(STRUCT_DESC);
14187
 
14188
      if (this.isSetSuccess()) {
14189
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14190
        this.success.write(oprot);
14191
        oprot.writeFieldEnd();
14192
      } else if (this.isSetHse()) {
14193
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14194
        this.hse.write(oprot);
14195
        oprot.writeFieldEnd();
14196
      }
14197
      oprot.writeFieldStop();
14198
      oprot.writeStructEnd();
14199
    }
14200
 
14201
    @Override
14202
    public String toString() {
14203
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
14204
      boolean first = true;
14205
 
14206
      sb.append("success:");
14207
      if (this.success == null) {
14208
        sb.append("null");
14209
      } else {
14210
        sb.append(this.success);
14211
      }
14212
      first = false;
14213
      if (!first) sb.append(", ");
14214
      sb.append("hse:");
14215
      if (this.hse == null) {
14216
        sb.append("null");
14217
      } else {
14218
        sb.append(this.hse);
14219
      }
14220
      first = false;
14221
      sb.append(")");
14222
      return sb.toString();
14223
    }
14224
 
3430 rajveer 14225
    public void validate() throws org.apache.thrift.TException {
750 chandransh 14226
      // check for required fields
14227
    }
14228
 
3430 rajveer 14229
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14230
      try {
14231
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14232
      } catch (org.apache.thrift.TException te) {
14233
        throw new java.io.IOException(te);
14234
      }
14235
    }
14236
 
14237
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14238
      try {
14239
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14240
      } catch (org.apache.thrift.TException te) {
14241
        throw new java.io.IOException(te);
14242
      }
14243
    }
14244
 
750 chandransh 14245
  }
14246
 
3430 rajveer 14247
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
14248
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 14249
 
3430 rajveer 14250
    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);
14251
    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 14252
 
3430 rajveer 14253
    private String username; // required
14254
    private String password; // required
1611 ankur.sing 14255
 
14256
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14257
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 14258
      USERNAME((short)1, "username"),
14259
      PASSWORD((short)2, "password");
14260
 
14261
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14262
 
14263
      static {
14264
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14265
          byName.put(field.getFieldName(), field);
14266
        }
14267
      }
14268
 
14269
      /**
14270
       * Find the _Fields constant that matches fieldId, or null if its not found.
14271
       */
14272
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14273
        switch(fieldId) {
14274
          case 1: // USERNAME
14275
            return USERNAME;
14276
          case 2: // PASSWORD
14277
            return PASSWORD;
14278
          default:
14279
            return null;
14280
        }
1611 ankur.sing 14281
      }
14282
 
14283
      /**
14284
       * Find the _Fields constant that matches fieldId, throwing an exception
14285
       * if it is not found.
14286
       */
14287
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14288
        _Fields fields = findByThriftId(fieldId);
14289
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14290
        return fields;
14291
      }
14292
 
14293
      /**
14294
       * Find the _Fields constant that matches name, or null if its not found.
14295
       */
14296
      public static _Fields findByName(String name) {
14297
        return byName.get(name);
14298
      }
14299
 
14300
      private final short _thriftId;
14301
      private final String _fieldName;
14302
 
14303
      _Fields(short thriftId, String fieldName) {
14304
        _thriftId = thriftId;
14305
        _fieldName = fieldName;
14306
      }
14307
 
14308
      public short getThriftFieldId() {
14309
        return _thriftId;
14310
      }
14311
 
14312
      public String getFieldName() {
14313
        return _fieldName;
14314
      }
14315
    }
14316
 
14317
    // isset id assignments
14318
 
3430 rajveer 14319
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 14320
    static {
3430 rajveer 14321
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14322
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14323
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14324
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14325
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14326
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14327
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 14328
    }
14329
 
14330
    public authenticateStatisticsUser_args() {
14331
    }
14332
 
14333
    public authenticateStatisticsUser_args(
14334
      String username,
14335
      String password)
14336
    {
14337
      this();
14338
      this.username = username;
14339
      this.password = password;
14340
    }
14341
 
14342
    /**
14343
     * Performs a deep copy on <i>other</i>.
14344
     */
14345
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
14346
      if (other.isSetUsername()) {
14347
        this.username = other.username;
14348
      }
14349
      if (other.isSetPassword()) {
14350
        this.password = other.password;
14351
      }
14352
    }
14353
 
14354
    public authenticateStatisticsUser_args deepCopy() {
14355
      return new authenticateStatisticsUser_args(this);
14356
    }
14357
 
3430 rajveer 14358
    @Override
14359
    public void clear() {
14360
      this.username = null;
14361
      this.password = null;
1611 ankur.sing 14362
    }
14363
 
14364
    public String getUsername() {
14365
      return this.username;
14366
    }
14367
 
3430 rajveer 14368
    public void setUsername(String username) {
1611 ankur.sing 14369
      this.username = username;
14370
    }
14371
 
14372
    public void unsetUsername() {
14373
      this.username = null;
14374
    }
14375
 
3430 rajveer 14376
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14377
    public boolean isSetUsername() {
14378
      return this.username != null;
14379
    }
14380
 
14381
    public void setUsernameIsSet(boolean value) {
14382
      if (!value) {
14383
        this.username = null;
14384
      }
14385
    }
14386
 
14387
    public String getPassword() {
14388
      return this.password;
14389
    }
14390
 
3430 rajveer 14391
    public void setPassword(String password) {
1611 ankur.sing 14392
      this.password = password;
14393
    }
14394
 
14395
    public void unsetPassword() {
14396
      this.password = null;
14397
    }
14398
 
3430 rajveer 14399
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14400
    public boolean isSetPassword() {
14401
      return this.password != null;
14402
    }
14403
 
14404
    public void setPasswordIsSet(boolean value) {
14405
      if (!value) {
14406
        this.password = null;
14407
      }
14408
    }
14409
 
14410
    public void setFieldValue(_Fields field, Object value) {
14411
      switch (field) {
14412
      case USERNAME:
14413
        if (value == null) {
14414
          unsetUsername();
14415
        } else {
14416
          setUsername((String)value);
14417
        }
14418
        break;
14419
 
14420
      case PASSWORD:
14421
        if (value == null) {
14422
          unsetPassword();
14423
        } else {
14424
          setPassword((String)value);
14425
        }
14426
        break;
14427
 
14428
      }
14429
    }
14430
 
14431
    public Object getFieldValue(_Fields field) {
14432
      switch (field) {
14433
      case USERNAME:
14434
        return getUsername();
14435
 
14436
      case PASSWORD:
14437
        return getPassword();
14438
 
14439
      }
14440
      throw new IllegalStateException();
14441
    }
14442
 
3430 rajveer 14443
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14444
    public boolean isSet(_Fields field) {
14445
      if (field == null) {
14446
        throw new IllegalArgumentException();
14447
      }
1611 ankur.sing 14448
 
14449
      switch (field) {
14450
      case USERNAME:
14451
        return isSetUsername();
14452
      case PASSWORD:
14453
        return isSetPassword();
14454
      }
14455
      throw new IllegalStateException();
14456
    }
14457
 
14458
    @Override
14459
    public boolean equals(Object that) {
14460
      if (that == null)
14461
        return false;
14462
      if (that instanceof authenticateStatisticsUser_args)
14463
        return this.equals((authenticateStatisticsUser_args)that);
14464
      return false;
14465
    }
14466
 
14467
    public boolean equals(authenticateStatisticsUser_args that) {
14468
      if (that == null)
14469
        return false;
14470
 
14471
      boolean this_present_username = true && this.isSetUsername();
14472
      boolean that_present_username = true && that.isSetUsername();
14473
      if (this_present_username || that_present_username) {
14474
        if (!(this_present_username && that_present_username))
14475
          return false;
14476
        if (!this.username.equals(that.username))
14477
          return false;
14478
      }
14479
 
14480
      boolean this_present_password = true && this.isSetPassword();
14481
      boolean that_present_password = true && that.isSetPassword();
14482
      if (this_present_password || that_present_password) {
14483
        if (!(this_present_password && that_present_password))
14484
          return false;
14485
        if (!this.password.equals(that.password))
14486
          return false;
14487
      }
14488
 
14489
      return true;
14490
    }
14491
 
14492
    @Override
14493
    public int hashCode() {
14494
      return 0;
14495
    }
14496
 
14497
    public int compareTo(authenticateStatisticsUser_args other) {
14498
      if (!getClass().equals(other.getClass())) {
14499
        return getClass().getName().compareTo(other.getClass().getName());
14500
      }
14501
 
14502
      int lastComparison = 0;
14503
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
14504
 
3430 rajveer 14505
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 14506
      if (lastComparison != 0) {
14507
        return lastComparison;
14508
      }
3430 rajveer 14509
      if (isSetUsername()) {
14510
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14511
        if (lastComparison != 0) {
14512
          return lastComparison;
14513
        }
1611 ankur.sing 14514
      }
3430 rajveer 14515
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 14516
      if (lastComparison != 0) {
14517
        return lastComparison;
14518
      }
3430 rajveer 14519
      if (isSetPassword()) {
14520
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14521
        if (lastComparison != 0) {
14522
          return lastComparison;
14523
        }
1611 ankur.sing 14524
      }
14525
      return 0;
14526
    }
14527
 
3430 rajveer 14528
    public _Fields fieldForId(int fieldId) {
14529
      return _Fields.findByThriftId(fieldId);
14530
    }
14531
 
14532
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14533
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 14534
      iprot.readStructBegin();
14535
      while (true)
14536
      {
14537
        field = iprot.readFieldBegin();
3430 rajveer 14538
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 14539
          break;
14540
        }
3430 rajveer 14541
        switch (field.id) {
14542
          case 1: // USERNAME
14543
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14544
              this.username = iprot.readString();
14545
            } else { 
14546
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14547
            }
14548
            break;
14549
          case 2: // PASSWORD
14550
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14551
              this.password = iprot.readString();
14552
            } else { 
14553
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14554
            }
14555
            break;
14556
          default:
14557
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 14558
        }
3430 rajveer 14559
        iprot.readFieldEnd();
1611 ankur.sing 14560
      }
14561
      iprot.readStructEnd();
14562
      validate();
14563
    }
14564
 
3430 rajveer 14565
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 14566
      validate();
14567
 
14568
      oprot.writeStructBegin(STRUCT_DESC);
14569
      if (this.username != null) {
14570
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14571
        oprot.writeString(this.username);
14572
        oprot.writeFieldEnd();
14573
      }
14574
      if (this.password != null) {
14575
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14576
        oprot.writeString(this.password);
14577
        oprot.writeFieldEnd();
14578
      }
14579
      oprot.writeFieldStop();
14580
      oprot.writeStructEnd();
14581
    }
14582
 
14583
    @Override
14584
    public String toString() {
14585
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
14586
      boolean first = true;
14587
 
14588
      sb.append("username:");
14589
      if (this.username == null) {
14590
        sb.append("null");
14591
      } else {
14592
        sb.append(this.username);
14593
      }
14594
      first = false;
14595
      if (!first) sb.append(", ");
14596
      sb.append("password:");
14597
      if (this.password == null) {
14598
        sb.append("null");
14599
      } else {
14600
        sb.append(this.password);
14601
      }
14602
      first = false;
14603
      sb.append(")");
14604
      return sb.toString();
14605
    }
14606
 
3430 rajveer 14607
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 14608
      // check for required fields
14609
    }
14610
 
3430 rajveer 14611
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14612
      try {
14613
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14614
      } catch (org.apache.thrift.TException te) {
14615
        throw new java.io.IOException(te);
14616
      }
14617
    }
14618
 
14619
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14620
      try {
14621
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14622
      } catch (org.apache.thrift.TException te) {
14623
        throw new java.io.IOException(te);
14624
      }
14625
    }
14626
 
1611 ankur.sing 14627
  }
14628
 
3430 rajveer 14629
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
14630
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 14631
 
3430 rajveer 14632
    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);
14633
    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 14634
 
3430 rajveer 14635
    private StatisticsUser success; // required
14636
    private HelperServiceException hse; // required
1611 ankur.sing 14637
 
14638
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14639
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 14640
      SUCCESS((short)0, "success"),
14641
      HSE((short)1, "hse");
14642
 
14643
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14644
 
14645
      static {
14646
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14647
          byName.put(field.getFieldName(), field);
14648
        }
14649
      }
14650
 
14651
      /**
14652
       * Find the _Fields constant that matches fieldId, or null if its not found.
14653
       */
14654
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14655
        switch(fieldId) {
14656
          case 0: // SUCCESS
14657
            return SUCCESS;
14658
          case 1: // HSE
14659
            return HSE;
14660
          default:
14661
            return null;
14662
        }
1611 ankur.sing 14663
      }
14664
 
14665
      /**
14666
       * Find the _Fields constant that matches fieldId, throwing an exception
14667
       * if it is not found.
14668
       */
14669
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14670
        _Fields fields = findByThriftId(fieldId);
14671
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14672
        return fields;
14673
      }
14674
 
14675
      /**
14676
       * Find the _Fields constant that matches name, or null if its not found.
14677
       */
14678
      public static _Fields findByName(String name) {
14679
        return byName.get(name);
14680
      }
14681
 
14682
      private final short _thriftId;
14683
      private final String _fieldName;
14684
 
14685
      _Fields(short thriftId, String fieldName) {
14686
        _thriftId = thriftId;
14687
        _fieldName = fieldName;
14688
      }
14689
 
14690
      public short getThriftFieldId() {
14691
        return _thriftId;
14692
      }
14693
 
14694
      public String getFieldName() {
14695
        return _fieldName;
14696
      }
14697
    }
14698
 
14699
    // isset id assignments
14700
 
3430 rajveer 14701
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 14702
    static {
3430 rajveer 14703
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14704
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14705
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
14706
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14707
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14708
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14709
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 14710
    }
14711
 
14712
    public authenticateStatisticsUser_result() {
14713
    }
14714
 
14715
    public authenticateStatisticsUser_result(
14716
      StatisticsUser success,
14717
      HelperServiceException hse)
14718
    {
14719
      this();
14720
      this.success = success;
14721
      this.hse = hse;
14722
    }
14723
 
14724
    /**
14725
     * Performs a deep copy on <i>other</i>.
14726
     */
14727
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
14728
      if (other.isSetSuccess()) {
14729
        this.success = new StatisticsUser(other.success);
14730
      }
14731
      if (other.isSetHse()) {
14732
        this.hse = new HelperServiceException(other.hse);
14733
      }
14734
    }
14735
 
14736
    public authenticateStatisticsUser_result deepCopy() {
14737
      return new authenticateStatisticsUser_result(this);
14738
    }
14739
 
3430 rajveer 14740
    @Override
14741
    public void clear() {
14742
      this.success = null;
14743
      this.hse = null;
1611 ankur.sing 14744
    }
14745
 
14746
    public StatisticsUser getSuccess() {
14747
      return this.success;
14748
    }
14749
 
3430 rajveer 14750
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 14751
      this.success = success;
14752
    }
14753
 
14754
    public void unsetSuccess() {
14755
      this.success = null;
14756
    }
14757
 
3430 rajveer 14758
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14759
    public boolean isSetSuccess() {
14760
      return this.success != null;
14761
    }
14762
 
14763
    public void setSuccessIsSet(boolean value) {
14764
      if (!value) {
14765
        this.success = null;
14766
      }
14767
    }
14768
 
14769
    public HelperServiceException getHse() {
14770
      return this.hse;
14771
    }
14772
 
3430 rajveer 14773
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 14774
      this.hse = hse;
14775
    }
14776
 
14777
    public void unsetHse() {
14778
      this.hse = null;
14779
    }
14780
 
3430 rajveer 14781
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14782
    public boolean isSetHse() {
14783
      return this.hse != null;
14784
    }
14785
 
14786
    public void setHseIsSet(boolean value) {
14787
      if (!value) {
14788
        this.hse = null;
14789
      }
14790
    }
14791
 
14792
    public void setFieldValue(_Fields field, Object value) {
14793
      switch (field) {
14794
      case SUCCESS:
14795
        if (value == null) {
14796
          unsetSuccess();
14797
        } else {
14798
          setSuccess((StatisticsUser)value);
14799
        }
14800
        break;
14801
 
14802
      case HSE:
14803
        if (value == null) {
14804
          unsetHse();
14805
        } else {
14806
          setHse((HelperServiceException)value);
14807
        }
14808
        break;
14809
 
14810
      }
14811
    }
14812
 
14813
    public Object getFieldValue(_Fields field) {
14814
      switch (field) {
14815
      case SUCCESS:
14816
        return getSuccess();
14817
 
14818
      case HSE:
14819
        return getHse();
14820
 
14821
      }
14822
      throw new IllegalStateException();
14823
    }
14824
 
3430 rajveer 14825
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14826
    public boolean isSet(_Fields field) {
14827
      if (field == null) {
14828
        throw new IllegalArgumentException();
14829
      }
1611 ankur.sing 14830
 
14831
      switch (field) {
14832
      case SUCCESS:
14833
        return isSetSuccess();
14834
      case HSE:
14835
        return isSetHse();
14836
      }
14837
      throw new IllegalStateException();
14838
    }
14839
 
14840
    @Override
14841
    public boolean equals(Object that) {
14842
      if (that == null)
14843
        return false;
14844
      if (that instanceof authenticateStatisticsUser_result)
14845
        return this.equals((authenticateStatisticsUser_result)that);
14846
      return false;
14847
    }
14848
 
14849
    public boolean equals(authenticateStatisticsUser_result that) {
14850
      if (that == null)
14851
        return false;
14852
 
14853
      boolean this_present_success = true && this.isSetSuccess();
14854
      boolean that_present_success = true && that.isSetSuccess();
14855
      if (this_present_success || that_present_success) {
14856
        if (!(this_present_success && that_present_success))
14857
          return false;
14858
        if (!this.success.equals(that.success))
14859
          return false;
14860
      }
14861
 
14862
      boolean this_present_hse = true && this.isSetHse();
14863
      boolean that_present_hse = true && that.isSetHse();
14864
      if (this_present_hse || that_present_hse) {
14865
        if (!(this_present_hse && that_present_hse))
14866
          return false;
14867
        if (!this.hse.equals(that.hse))
14868
          return false;
14869
      }
14870
 
14871
      return true;
14872
    }
14873
 
14874
    @Override
14875
    public int hashCode() {
14876
      return 0;
14877
    }
14878
 
14879
    public int compareTo(authenticateStatisticsUser_result other) {
14880
      if (!getClass().equals(other.getClass())) {
14881
        return getClass().getName().compareTo(other.getClass().getName());
14882
      }
14883
 
14884
      int lastComparison = 0;
14885
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
14886
 
3430 rajveer 14887
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 14888
      if (lastComparison != 0) {
14889
        return lastComparison;
14890
      }
3430 rajveer 14891
      if (isSetSuccess()) {
14892
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14893
        if (lastComparison != 0) {
14894
          return lastComparison;
14895
        }
1611 ankur.sing 14896
      }
3430 rajveer 14897
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 14898
      if (lastComparison != 0) {
14899
        return lastComparison;
14900
      }
3430 rajveer 14901
      if (isSetHse()) {
14902
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14903
        if (lastComparison != 0) {
14904
          return lastComparison;
14905
        }
1611 ankur.sing 14906
      }
14907
      return 0;
14908
    }
14909
 
3430 rajveer 14910
    public _Fields fieldForId(int fieldId) {
14911
      return _Fields.findByThriftId(fieldId);
14912
    }
14913
 
14914
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14915
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 14916
      iprot.readStructBegin();
14917
      while (true)
14918
      {
14919
        field = iprot.readFieldBegin();
3430 rajveer 14920
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 14921
          break;
14922
        }
3430 rajveer 14923
        switch (field.id) {
14924
          case 0: // SUCCESS
14925
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14926
              this.success = new StatisticsUser();
14927
              this.success.read(iprot);
14928
            } else { 
14929
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14930
            }
14931
            break;
14932
          case 1: // HSE
14933
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14934
              this.hse = new HelperServiceException();
14935
              this.hse.read(iprot);
14936
            } else { 
14937
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14938
            }
14939
            break;
14940
          default:
14941
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 14942
        }
3430 rajveer 14943
        iprot.readFieldEnd();
1611 ankur.sing 14944
      }
14945
      iprot.readStructEnd();
14946
      validate();
14947
    }
14948
 
3430 rajveer 14949
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 14950
      oprot.writeStructBegin(STRUCT_DESC);
14951
 
14952
      if (this.isSetSuccess()) {
14953
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14954
        this.success.write(oprot);
14955
        oprot.writeFieldEnd();
14956
      } else if (this.isSetHse()) {
14957
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14958
        this.hse.write(oprot);
14959
        oprot.writeFieldEnd();
14960
      }
14961
      oprot.writeFieldStop();
14962
      oprot.writeStructEnd();
14963
    }
14964
 
14965
    @Override
14966
    public String toString() {
14967
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
14968
      boolean first = true;
14969
 
14970
      sb.append("success:");
14971
      if (this.success == null) {
14972
        sb.append("null");
14973
      } else {
14974
        sb.append(this.success);
14975
      }
14976
      first = false;
14977
      if (!first) sb.append(", ");
14978
      sb.append("hse:");
14979
      if (this.hse == null) {
14980
        sb.append("null");
14981
      } else {
14982
        sb.append(this.hse);
14983
      }
14984
      first = false;
14985
      sb.append(")");
14986
      return sb.toString();
14987
    }
14988
 
3430 rajveer 14989
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 14990
      // check for required fields
14991
    }
14992
 
3430 rajveer 14993
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14994
      try {
14995
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14996
      } catch (org.apache.thrift.TException te) {
14997
        throw new java.io.IOException(te);
14998
      }
14999
    }
15000
 
15001
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15002
      try {
15003
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15004
      } catch (org.apache.thrift.TException te) {
15005
        throw new java.io.IOException(te);
15006
      }
15007
    }
15008
 
1611 ankur.sing 15009
  }
15010
 
3430 rajveer 15011
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
15012
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 15013
 
3430 rajveer 15014
    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);
15015
    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 15016
 
3430 rajveer 15017
    private String username; // required
15018
    private String password; // required
1891 ankur.sing 15019
 
15020
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15021
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15022
      USERNAME((short)1, "username"),
15023
      PASSWORD((short)2, "password");
15024
 
15025
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15026
 
15027
      static {
15028
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15029
          byName.put(field.getFieldName(), field);
15030
        }
15031
      }
15032
 
15033
      /**
15034
       * Find the _Fields constant that matches fieldId, or null if its not found.
15035
       */
15036
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15037
        switch(fieldId) {
15038
          case 1: // USERNAME
15039
            return USERNAME;
15040
          case 2: // PASSWORD
15041
            return PASSWORD;
15042
          default:
15043
            return null;
15044
        }
1891 ankur.sing 15045
      }
15046
 
15047
      /**
15048
       * Find the _Fields constant that matches fieldId, throwing an exception
15049
       * if it is not found.
15050
       */
15051
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15052
        _Fields fields = findByThriftId(fieldId);
15053
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15054
        return fields;
15055
      }
15056
 
15057
      /**
15058
       * Find the _Fields constant that matches name, or null if its not found.
15059
       */
15060
      public static _Fields findByName(String name) {
15061
        return byName.get(name);
15062
      }
15063
 
15064
      private final short _thriftId;
15065
      private final String _fieldName;
15066
 
15067
      _Fields(short thriftId, String fieldName) {
15068
        _thriftId = thriftId;
15069
        _fieldName = fieldName;
15070
      }
15071
 
15072
      public short getThriftFieldId() {
15073
        return _thriftId;
15074
      }
15075
 
15076
      public String getFieldName() {
15077
        return _fieldName;
15078
      }
15079
    }
15080
 
15081
    // isset id assignments
15082
 
3430 rajveer 15083
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15084
    static {
3430 rajveer 15085
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15086
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15088
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15090
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15091
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 15092
    }
15093
 
15094
    public authenticateReportUser_args() {
15095
    }
15096
 
15097
    public authenticateReportUser_args(
15098
      String username,
15099
      String password)
15100
    {
15101
      this();
15102
      this.username = username;
15103
      this.password = password;
15104
    }
15105
 
15106
    /**
15107
     * Performs a deep copy on <i>other</i>.
15108
     */
15109
    public authenticateReportUser_args(authenticateReportUser_args other) {
15110
      if (other.isSetUsername()) {
15111
        this.username = other.username;
15112
      }
15113
      if (other.isSetPassword()) {
15114
        this.password = other.password;
15115
      }
15116
    }
15117
 
15118
    public authenticateReportUser_args deepCopy() {
15119
      return new authenticateReportUser_args(this);
15120
    }
15121
 
3430 rajveer 15122
    @Override
15123
    public void clear() {
15124
      this.username = null;
15125
      this.password = null;
1891 ankur.sing 15126
    }
15127
 
15128
    public String getUsername() {
15129
      return this.username;
15130
    }
15131
 
3430 rajveer 15132
    public void setUsername(String username) {
1891 ankur.sing 15133
      this.username = username;
15134
    }
15135
 
15136
    public void unsetUsername() {
15137
      this.username = null;
15138
    }
15139
 
3430 rajveer 15140
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15141
    public boolean isSetUsername() {
15142
      return this.username != null;
15143
    }
15144
 
15145
    public void setUsernameIsSet(boolean value) {
15146
      if (!value) {
15147
        this.username = null;
15148
      }
15149
    }
15150
 
15151
    public String getPassword() {
15152
      return this.password;
15153
    }
15154
 
3430 rajveer 15155
    public void setPassword(String password) {
1891 ankur.sing 15156
      this.password = password;
15157
    }
15158
 
15159
    public void unsetPassword() {
15160
      this.password = null;
15161
    }
15162
 
3430 rajveer 15163
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15164
    public boolean isSetPassword() {
15165
      return this.password != null;
15166
    }
15167
 
15168
    public void setPasswordIsSet(boolean value) {
15169
      if (!value) {
15170
        this.password = null;
15171
      }
15172
    }
15173
 
15174
    public void setFieldValue(_Fields field, Object value) {
15175
      switch (field) {
15176
      case USERNAME:
15177
        if (value == null) {
15178
          unsetUsername();
15179
        } else {
15180
          setUsername((String)value);
15181
        }
15182
        break;
15183
 
15184
      case PASSWORD:
15185
        if (value == null) {
15186
          unsetPassword();
15187
        } else {
15188
          setPassword((String)value);
15189
        }
15190
        break;
15191
 
15192
      }
15193
    }
15194
 
15195
    public Object getFieldValue(_Fields field) {
15196
      switch (field) {
15197
      case USERNAME:
15198
        return getUsername();
15199
 
15200
      case PASSWORD:
15201
        return getPassword();
15202
 
15203
      }
15204
      throw new IllegalStateException();
15205
    }
15206
 
3430 rajveer 15207
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15208
    public boolean isSet(_Fields field) {
15209
      if (field == null) {
15210
        throw new IllegalArgumentException();
15211
      }
1891 ankur.sing 15212
 
15213
      switch (field) {
15214
      case USERNAME:
15215
        return isSetUsername();
15216
      case PASSWORD:
15217
        return isSetPassword();
15218
      }
15219
      throw new IllegalStateException();
15220
    }
15221
 
15222
    @Override
15223
    public boolean equals(Object that) {
15224
      if (that == null)
15225
        return false;
15226
      if (that instanceof authenticateReportUser_args)
15227
        return this.equals((authenticateReportUser_args)that);
15228
      return false;
15229
    }
15230
 
15231
    public boolean equals(authenticateReportUser_args that) {
15232
      if (that == null)
15233
        return false;
15234
 
15235
      boolean this_present_username = true && this.isSetUsername();
15236
      boolean that_present_username = true && that.isSetUsername();
15237
      if (this_present_username || that_present_username) {
15238
        if (!(this_present_username && that_present_username))
15239
          return false;
15240
        if (!this.username.equals(that.username))
15241
          return false;
15242
      }
15243
 
15244
      boolean this_present_password = true && this.isSetPassword();
15245
      boolean that_present_password = true && that.isSetPassword();
15246
      if (this_present_password || that_present_password) {
15247
        if (!(this_present_password && that_present_password))
15248
          return false;
15249
        if (!this.password.equals(that.password))
15250
          return false;
15251
      }
15252
 
15253
      return true;
15254
    }
15255
 
15256
    @Override
15257
    public int hashCode() {
15258
      return 0;
15259
    }
15260
 
15261
    public int compareTo(authenticateReportUser_args other) {
15262
      if (!getClass().equals(other.getClass())) {
15263
        return getClass().getName().compareTo(other.getClass().getName());
15264
      }
15265
 
15266
      int lastComparison = 0;
15267
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
15268
 
3430 rajveer 15269
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 15270
      if (lastComparison != 0) {
15271
        return lastComparison;
15272
      }
3430 rajveer 15273
      if (isSetUsername()) {
15274
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15275
        if (lastComparison != 0) {
15276
          return lastComparison;
15277
        }
1891 ankur.sing 15278
      }
3430 rajveer 15279
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 15280
      if (lastComparison != 0) {
15281
        return lastComparison;
15282
      }
3430 rajveer 15283
      if (isSetPassword()) {
15284
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15285
        if (lastComparison != 0) {
15286
          return lastComparison;
15287
        }
1891 ankur.sing 15288
      }
15289
      return 0;
15290
    }
15291
 
3430 rajveer 15292
    public _Fields fieldForId(int fieldId) {
15293
      return _Fields.findByThriftId(fieldId);
15294
    }
15295
 
15296
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15297
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15298
      iprot.readStructBegin();
15299
      while (true)
15300
      {
15301
        field = iprot.readFieldBegin();
3430 rajveer 15302
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15303
          break;
15304
        }
3430 rajveer 15305
        switch (field.id) {
15306
          case 1: // USERNAME
15307
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15308
              this.username = iprot.readString();
15309
            } else { 
15310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15311
            }
15312
            break;
15313
          case 2: // PASSWORD
15314
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15315
              this.password = iprot.readString();
15316
            } else { 
15317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15318
            }
15319
            break;
15320
          default:
15321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15322
        }
3430 rajveer 15323
        iprot.readFieldEnd();
1891 ankur.sing 15324
      }
15325
      iprot.readStructEnd();
15326
      validate();
15327
    }
15328
 
3430 rajveer 15329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15330
      validate();
15331
 
15332
      oprot.writeStructBegin(STRUCT_DESC);
15333
      if (this.username != null) {
15334
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15335
        oprot.writeString(this.username);
15336
        oprot.writeFieldEnd();
15337
      }
15338
      if (this.password != null) {
15339
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15340
        oprot.writeString(this.password);
15341
        oprot.writeFieldEnd();
15342
      }
15343
      oprot.writeFieldStop();
15344
      oprot.writeStructEnd();
15345
    }
15346
 
15347
    @Override
15348
    public String toString() {
15349
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
15350
      boolean first = true;
15351
 
15352
      sb.append("username:");
15353
      if (this.username == null) {
15354
        sb.append("null");
15355
      } else {
15356
        sb.append(this.username);
15357
      }
15358
      first = false;
15359
      if (!first) sb.append(", ");
15360
      sb.append("password:");
15361
      if (this.password == null) {
15362
        sb.append("null");
15363
      } else {
15364
        sb.append(this.password);
15365
      }
15366
      first = false;
15367
      sb.append(")");
15368
      return sb.toString();
15369
    }
15370
 
3430 rajveer 15371
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15372
      // check for required fields
15373
    }
15374
 
3430 rajveer 15375
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15376
      try {
15377
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15378
      } catch (org.apache.thrift.TException te) {
15379
        throw new java.io.IOException(te);
15380
      }
15381
    }
15382
 
15383
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15384
      try {
15385
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15386
      } catch (org.apache.thrift.TException te) {
15387
        throw new java.io.IOException(te);
15388
      }
15389
    }
15390
 
1891 ankur.sing 15391
  }
15392
 
3430 rajveer 15393
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
15394
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 15395
 
3430 rajveer 15396
    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);
15397
    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 15398
 
3430 rajveer 15399
    private ReportUser success; // required
15400
    private HelperServiceException hse; // required
1891 ankur.sing 15401
 
15402
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15403
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15404
      SUCCESS((short)0, "success"),
15405
      HSE((short)1, "hse");
15406
 
15407
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15408
 
15409
      static {
15410
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15411
          byName.put(field.getFieldName(), field);
15412
        }
15413
      }
15414
 
15415
      /**
15416
       * Find the _Fields constant that matches fieldId, or null if its not found.
15417
       */
15418
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15419
        switch(fieldId) {
15420
          case 0: // SUCCESS
15421
            return SUCCESS;
15422
          case 1: // HSE
15423
            return HSE;
15424
          default:
15425
            return null;
15426
        }
1891 ankur.sing 15427
      }
15428
 
15429
      /**
15430
       * Find the _Fields constant that matches fieldId, throwing an exception
15431
       * if it is not found.
15432
       */
15433
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15434
        _Fields fields = findByThriftId(fieldId);
15435
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15436
        return fields;
15437
      }
15438
 
15439
      /**
15440
       * Find the _Fields constant that matches name, or null if its not found.
15441
       */
15442
      public static _Fields findByName(String name) {
15443
        return byName.get(name);
15444
      }
15445
 
15446
      private final short _thriftId;
15447
      private final String _fieldName;
15448
 
15449
      _Fields(short thriftId, String fieldName) {
15450
        _thriftId = thriftId;
15451
        _fieldName = fieldName;
15452
      }
15453
 
15454
      public short getThriftFieldId() {
15455
        return _thriftId;
15456
      }
15457
 
15458
      public String getFieldName() {
15459
        return _fieldName;
15460
      }
15461
    }
15462
 
15463
    // isset id assignments
15464
 
3430 rajveer 15465
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15466
    static {
3430 rajveer 15467
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15468
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15469
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
15470
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15471
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15472
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15473
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 15474
    }
15475
 
15476
    public authenticateReportUser_result() {
15477
    }
15478
 
15479
    public authenticateReportUser_result(
15480
      ReportUser success,
15481
      HelperServiceException hse)
15482
    {
15483
      this();
15484
      this.success = success;
15485
      this.hse = hse;
15486
    }
15487
 
15488
    /**
15489
     * Performs a deep copy on <i>other</i>.
15490
     */
15491
    public authenticateReportUser_result(authenticateReportUser_result other) {
15492
      if (other.isSetSuccess()) {
15493
        this.success = new ReportUser(other.success);
15494
      }
15495
      if (other.isSetHse()) {
15496
        this.hse = new HelperServiceException(other.hse);
15497
      }
15498
    }
15499
 
15500
    public authenticateReportUser_result deepCopy() {
15501
      return new authenticateReportUser_result(this);
15502
    }
15503
 
3430 rajveer 15504
    @Override
15505
    public void clear() {
15506
      this.success = null;
15507
      this.hse = null;
1891 ankur.sing 15508
    }
15509
 
15510
    public ReportUser getSuccess() {
15511
      return this.success;
15512
    }
15513
 
3430 rajveer 15514
    public void setSuccess(ReportUser success) {
1891 ankur.sing 15515
      this.success = success;
15516
    }
15517
 
15518
    public void unsetSuccess() {
15519
      this.success = null;
15520
    }
15521
 
3430 rajveer 15522
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15523
    public boolean isSetSuccess() {
15524
      return this.success != null;
15525
    }
15526
 
15527
    public void setSuccessIsSet(boolean value) {
15528
      if (!value) {
15529
        this.success = null;
15530
      }
15531
    }
15532
 
15533
    public HelperServiceException getHse() {
15534
      return this.hse;
15535
    }
15536
 
3430 rajveer 15537
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 15538
      this.hse = hse;
15539
    }
15540
 
15541
    public void unsetHse() {
15542
      this.hse = null;
15543
    }
15544
 
3430 rajveer 15545
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15546
    public boolean isSetHse() {
15547
      return this.hse != null;
15548
    }
15549
 
15550
    public void setHseIsSet(boolean value) {
15551
      if (!value) {
15552
        this.hse = null;
15553
      }
15554
    }
15555
 
15556
    public void setFieldValue(_Fields field, Object value) {
15557
      switch (field) {
15558
      case SUCCESS:
15559
        if (value == null) {
15560
          unsetSuccess();
15561
        } else {
15562
          setSuccess((ReportUser)value);
15563
        }
15564
        break;
15565
 
15566
      case HSE:
15567
        if (value == null) {
15568
          unsetHse();
15569
        } else {
15570
          setHse((HelperServiceException)value);
15571
        }
15572
        break;
15573
 
15574
      }
15575
    }
15576
 
15577
    public Object getFieldValue(_Fields field) {
15578
      switch (field) {
15579
      case SUCCESS:
15580
        return getSuccess();
15581
 
15582
      case HSE:
15583
        return getHse();
15584
 
15585
      }
15586
      throw new IllegalStateException();
15587
    }
15588
 
3430 rajveer 15589
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15590
    public boolean isSet(_Fields field) {
15591
      if (field == null) {
15592
        throw new IllegalArgumentException();
15593
      }
1891 ankur.sing 15594
 
15595
      switch (field) {
15596
      case SUCCESS:
15597
        return isSetSuccess();
15598
      case HSE:
15599
        return isSetHse();
15600
      }
15601
      throw new IllegalStateException();
15602
    }
15603
 
15604
    @Override
15605
    public boolean equals(Object that) {
15606
      if (that == null)
15607
        return false;
15608
      if (that instanceof authenticateReportUser_result)
15609
        return this.equals((authenticateReportUser_result)that);
15610
      return false;
15611
    }
15612
 
15613
    public boolean equals(authenticateReportUser_result that) {
15614
      if (that == null)
15615
        return false;
15616
 
15617
      boolean this_present_success = true && this.isSetSuccess();
15618
      boolean that_present_success = true && that.isSetSuccess();
15619
      if (this_present_success || that_present_success) {
15620
        if (!(this_present_success && that_present_success))
15621
          return false;
15622
        if (!this.success.equals(that.success))
15623
          return false;
15624
      }
15625
 
15626
      boolean this_present_hse = true && this.isSetHse();
15627
      boolean that_present_hse = true && that.isSetHse();
15628
      if (this_present_hse || that_present_hse) {
15629
        if (!(this_present_hse && that_present_hse))
15630
          return false;
15631
        if (!this.hse.equals(that.hse))
15632
          return false;
15633
      }
15634
 
15635
      return true;
15636
    }
15637
 
15638
    @Override
15639
    public int hashCode() {
15640
      return 0;
15641
    }
15642
 
15643
    public int compareTo(authenticateReportUser_result other) {
15644
      if (!getClass().equals(other.getClass())) {
15645
        return getClass().getName().compareTo(other.getClass().getName());
15646
      }
15647
 
15648
      int lastComparison = 0;
15649
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
15650
 
3430 rajveer 15651
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15652
      if (lastComparison != 0) {
15653
        return lastComparison;
15654
      }
3430 rajveer 15655
      if (isSetSuccess()) {
15656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15657
        if (lastComparison != 0) {
15658
          return lastComparison;
15659
        }
1891 ankur.sing 15660
      }
3430 rajveer 15661
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 15662
      if (lastComparison != 0) {
15663
        return lastComparison;
15664
      }
3430 rajveer 15665
      if (isSetHse()) {
15666
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15667
        if (lastComparison != 0) {
15668
          return lastComparison;
15669
        }
1891 ankur.sing 15670
      }
15671
      return 0;
15672
    }
15673
 
3430 rajveer 15674
    public _Fields fieldForId(int fieldId) {
15675
      return _Fields.findByThriftId(fieldId);
15676
    }
15677
 
15678
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15679
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15680
      iprot.readStructBegin();
15681
      while (true)
15682
      {
15683
        field = iprot.readFieldBegin();
3430 rajveer 15684
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15685
          break;
15686
        }
3430 rajveer 15687
        switch (field.id) {
15688
          case 0: // SUCCESS
15689
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15690
              this.success = new ReportUser();
15691
              this.success.read(iprot);
15692
            } else { 
15693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15694
            }
15695
            break;
15696
          case 1: // HSE
15697
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15698
              this.hse = new HelperServiceException();
15699
              this.hse.read(iprot);
15700
            } else { 
15701
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15702
            }
15703
            break;
15704
          default:
15705
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15706
        }
3430 rajveer 15707
        iprot.readFieldEnd();
1891 ankur.sing 15708
      }
15709
      iprot.readStructEnd();
15710
      validate();
15711
    }
15712
 
3430 rajveer 15713
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15714
      oprot.writeStructBegin(STRUCT_DESC);
15715
 
15716
      if (this.isSetSuccess()) {
15717
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15718
        this.success.write(oprot);
15719
        oprot.writeFieldEnd();
15720
      } else if (this.isSetHse()) {
15721
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15722
        this.hse.write(oprot);
15723
        oprot.writeFieldEnd();
15724
      }
15725
      oprot.writeFieldStop();
15726
      oprot.writeStructEnd();
15727
    }
15728
 
15729
    @Override
15730
    public String toString() {
15731
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
15732
      boolean first = true;
15733
 
15734
      sb.append("success:");
15735
      if (this.success == null) {
15736
        sb.append("null");
15737
      } else {
15738
        sb.append(this.success);
15739
      }
15740
      first = false;
15741
      if (!first) sb.append(", ");
15742
      sb.append("hse:");
15743
      if (this.hse == null) {
15744
        sb.append("null");
15745
      } else {
15746
        sb.append(this.hse);
15747
      }
15748
      first = false;
15749
      sb.append(")");
15750
      return sb.toString();
15751
    }
15752
 
3430 rajveer 15753
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15754
      // check for required fields
15755
    }
15756
 
3430 rajveer 15757
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15758
      try {
15759
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15760
      } catch (org.apache.thrift.TException te) {
15761
        throw new java.io.IOException(te);
15762
      }
15763
    }
15764
 
15765
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15766
      try {
15767
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15768
      } catch (org.apache.thrift.TException te) {
15769
        throw new java.io.IOException(te);
15770
      }
15771
    }
15772
 
1891 ankur.sing 15773
  }
15774
 
3430 rajveer 15775
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
15776
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 15777
 
3430 rajveer 15778
    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 15779
 
3430 rajveer 15780
    private long role; // required
1891 ankur.sing 15781
 
15782
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15783
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15784
      ROLE((short)1, "role");
15785
 
15786
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15787
 
15788
      static {
15789
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15790
          byName.put(field.getFieldName(), field);
15791
        }
15792
      }
15793
 
15794
      /**
15795
       * Find the _Fields constant that matches fieldId, or null if its not found.
15796
       */
15797
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15798
        switch(fieldId) {
15799
          case 1: // ROLE
15800
            return ROLE;
15801
          default:
15802
            return null;
15803
        }
1891 ankur.sing 15804
      }
15805
 
15806
      /**
15807
       * Find the _Fields constant that matches fieldId, throwing an exception
15808
       * if it is not found.
15809
       */
15810
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15811
        _Fields fields = findByThriftId(fieldId);
15812
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15813
        return fields;
15814
      }
15815
 
15816
      /**
15817
       * Find the _Fields constant that matches name, or null if its not found.
15818
       */
15819
      public static _Fields findByName(String name) {
15820
        return byName.get(name);
15821
      }
15822
 
15823
      private final short _thriftId;
15824
      private final String _fieldName;
15825
 
15826
      _Fields(short thriftId, String fieldName) {
15827
        _thriftId = thriftId;
15828
        _fieldName = fieldName;
15829
      }
15830
 
15831
      public short getThriftFieldId() {
15832
        return _thriftId;
15833
      }
15834
 
15835
      public String getFieldName() {
15836
        return _fieldName;
15837
      }
15838
    }
15839
 
15840
    // isset id assignments
15841
    private static final int __ROLE_ISSET_ID = 0;
15842
    private BitSet __isset_bit_vector = new BitSet(1);
15843
 
3430 rajveer 15844
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15845
    static {
3430 rajveer 15846
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15847
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15848
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15849
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15850
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 15851
    }
15852
 
15853
    public getReports_args() {
15854
    }
15855
 
15856
    public getReports_args(
15857
      long role)
15858
    {
15859
      this();
15860
      this.role = role;
15861
      setRoleIsSet(true);
15862
    }
15863
 
15864
    /**
15865
     * Performs a deep copy on <i>other</i>.
15866
     */
15867
    public getReports_args(getReports_args other) {
15868
      __isset_bit_vector.clear();
15869
      __isset_bit_vector.or(other.__isset_bit_vector);
15870
      this.role = other.role;
15871
    }
15872
 
15873
    public getReports_args deepCopy() {
15874
      return new getReports_args(this);
15875
    }
15876
 
3430 rajveer 15877
    @Override
15878
    public void clear() {
15879
      setRoleIsSet(false);
15880
      this.role = 0;
1891 ankur.sing 15881
    }
15882
 
15883
    public long getRole() {
15884
      return this.role;
15885
    }
15886
 
3430 rajveer 15887
    public void setRole(long role) {
1891 ankur.sing 15888
      this.role = role;
15889
      setRoleIsSet(true);
15890
    }
15891
 
15892
    public void unsetRole() {
15893
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
15894
    }
15895
 
3430 rajveer 15896
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15897
    public boolean isSetRole() {
15898
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
15899
    }
15900
 
15901
    public void setRoleIsSet(boolean value) {
15902
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
15903
    }
15904
 
15905
    public void setFieldValue(_Fields field, Object value) {
15906
      switch (field) {
15907
      case ROLE:
15908
        if (value == null) {
15909
          unsetRole();
15910
        } else {
15911
          setRole((Long)value);
15912
        }
15913
        break;
15914
 
15915
      }
15916
    }
15917
 
15918
    public Object getFieldValue(_Fields field) {
15919
      switch (field) {
15920
      case ROLE:
3430 rajveer 15921
        return Long.valueOf(getRole());
1891 ankur.sing 15922
 
15923
      }
15924
      throw new IllegalStateException();
15925
    }
15926
 
3430 rajveer 15927
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15928
    public boolean isSet(_Fields field) {
15929
      if (field == null) {
15930
        throw new IllegalArgumentException();
15931
      }
1891 ankur.sing 15932
 
15933
      switch (field) {
15934
      case ROLE:
15935
        return isSetRole();
15936
      }
15937
      throw new IllegalStateException();
15938
    }
15939
 
15940
    @Override
15941
    public boolean equals(Object that) {
15942
      if (that == null)
15943
        return false;
15944
      if (that instanceof getReports_args)
15945
        return this.equals((getReports_args)that);
15946
      return false;
15947
    }
15948
 
15949
    public boolean equals(getReports_args that) {
15950
      if (that == null)
15951
        return false;
15952
 
15953
      boolean this_present_role = true;
15954
      boolean that_present_role = true;
15955
      if (this_present_role || that_present_role) {
15956
        if (!(this_present_role && that_present_role))
15957
          return false;
15958
        if (this.role != that.role)
15959
          return false;
15960
      }
15961
 
15962
      return true;
15963
    }
15964
 
15965
    @Override
15966
    public int hashCode() {
15967
      return 0;
15968
    }
15969
 
15970
    public int compareTo(getReports_args other) {
15971
      if (!getClass().equals(other.getClass())) {
15972
        return getClass().getName().compareTo(other.getClass().getName());
15973
      }
15974
 
15975
      int lastComparison = 0;
15976
      getReports_args typedOther = (getReports_args)other;
15977
 
3430 rajveer 15978
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 15979
      if (lastComparison != 0) {
15980
        return lastComparison;
15981
      }
3430 rajveer 15982
      if (isSetRole()) {
15983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
15984
        if (lastComparison != 0) {
15985
          return lastComparison;
15986
        }
1891 ankur.sing 15987
      }
15988
      return 0;
15989
    }
15990
 
3430 rajveer 15991
    public _Fields fieldForId(int fieldId) {
15992
      return _Fields.findByThriftId(fieldId);
15993
    }
15994
 
15995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15996
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15997
      iprot.readStructBegin();
15998
      while (true)
15999
      {
16000
        field = iprot.readFieldBegin();
3430 rajveer 16001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 16002
          break;
16003
        }
3430 rajveer 16004
        switch (field.id) {
16005
          case 1: // ROLE
16006
            if (field.type == org.apache.thrift.protocol.TType.I64) {
16007
              this.role = iprot.readI64();
16008
              setRoleIsSet(true);
16009
            } else { 
16010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16011
            }
16012
            break;
16013
          default:
16014
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 16015
        }
3430 rajveer 16016
        iprot.readFieldEnd();
1891 ankur.sing 16017
      }
16018
      iprot.readStructEnd();
16019
      validate();
16020
    }
16021
 
3430 rajveer 16022
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 16023
      validate();
16024
 
16025
      oprot.writeStructBegin(STRUCT_DESC);
16026
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
16027
      oprot.writeI64(this.role);
16028
      oprot.writeFieldEnd();
16029
      oprot.writeFieldStop();
16030
      oprot.writeStructEnd();
16031
    }
16032
 
16033
    @Override
16034
    public String toString() {
16035
      StringBuilder sb = new StringBuilder("getReports_args(");
16036
      boolean first = true;
16037
 
16038
      sb.append("role:");
16039
      sb.append(this.role);
16040
      first = false;
16041
      sb.append(")");
16042
      return sb.toString();
16043
    }
16044
 
3430 rajveer 16045
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 16046
      // check for required fields
16047
    }
16048
 
3430 rajveer 16049
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16050
      try {
16051
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16052
      } catch (org.apache.thrift.TException te) {
16053
        throw new java.io.IOException(te);
16054
      }
16055
    }
16056
 
16057
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16058
      try {
16059
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
16060
        __isset_bit_vector = new BitSet(1);
16061
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16062
      } catch (org.apache.thrift.TException te) {
16063
        throw new java.io.IOException(te);
16064
      }
16065
    }
16066
 
1891 ankur.sing 16067
  }
16068
 
3430 rajveer 16069
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
16070
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 16071
 
3430 rajveer 16072
    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 16073
 
3430 rajveer 16074
    private List<Report> success; // required
1891 ankur.sing 16075
 
16076
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16077
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 16078
      SUCCESS((short)0, "success");
16079
 
16080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16081
 
16082
      static {
16083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16084
          byName.put(field.getFieldName(), field);
16085
        }
16086
      }
16087
 
16088
      /**
16089
       * Find the _Fields constant that matches fieldId, or null if its not found.
16090
       */
16091
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16092
        switch(fieldId) {
16093
          case 0: // SUCCESS
16094
            return SUCCESS;
16095
          default:
16096
            return null;
16097
        }
1891 ankur.sing 16098
      }
16099
 
16100
      /**
16101
       * Find the _Fields constant that matches fieldId, throwing an exception
16102
       * if it is not found.
16103
       */
16104
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16105
        _Fields fields = findByThriftId(fieldId);
16106
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16107
        return fields;
16108
      }
16109
 
16110
      /**
16111
       * Find the _Fields constant that matches name, or null if its not found.
16112
       */
16113
      public static _Fields findByName(String name) {
16114
        return byName.get(name);
16115
      }
16116
 
16117
      private final short _thriftId;
16118
      private final String _fieldName;
16119
 
16120
      _Fields(short thriftId, String fieldName) {
16121
        _thriftId = thriftId;
16122
        _fieldName = fieldName;
16123
      }
16124
 
16125
      public short getThriftFieldId() {
16126
        return _thriftId;
16127
      }
16128
 
16129
      public String getFieldName() {
16130
        return _fieldName;
16131
      }
16132
    }
16133
 
16134
    // isset id assignments
16135
 
3430 rajveer 16136
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 16137
    static {
3430 rajveer 16138
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16139
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16140
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16141
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
16142
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16143
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 16144
    }
16145
 
16146
    public getReports_result() {
16147
    }
16148
 
16149
    public getReports_result(
16150
      List<Report> success)
16151
    {
16152
      this();
16153
      this.success = success;
16154
    }
16155
 
16156
    /**
16157
     * Performs a deep copy on <i>other</i>.
16158
     */
16159
    public getReports_result(getReports_result other) {
16160
      if (other.isSetSuccess()) {
16161
        List<Report> __this__success = new ArrayList<Report>();
16162
        for (Report other_element : other.success) {
16163
          __this__success.add(new Report(other_element));
16164
        }
16165
        this.success = __this__success;
16166
      }
16167
    }
16168
 
16169
    public getReports_result deepCopy() {
16170
      return new getReports_result(this);
16171
    }
16172
 
3430 rajveer 16173
    @Override
16174
    public void clear() {
16175
      this.success = null;
1891 ankur.sing 16176
    }
16177
 
16178
    public int getSuccessSize() {
16179
      return (this.success == null) ? 0 : this.success.size();
16180
    }
16181
 
16182
    public java.util.Iterator<Report> getSuccessIterator() {
16183
      return (this.success == null) ? null : this.success.iterator();
16184
    }
16185
 
16186
    public void addToSuccess(Report elem) {
16187
      if (this.success == null) {
16188
        this.success = new ArrayList<Report>();
16189
      }
16190
      this.success.add(elem);
16191
    }
16192
 
16193
    public List<Report> getSuccess() {
16194
      return this.success;
16195
    }
16196
 
3430 rajveer 16197
    public void setSuccess(List<Report> success) {
1891 ankur.sing 16198
      this.success = success;
16199
    }
16200
 
16201
    public void unsetSuccess() {
16202
      this.success = null;
16203
    }
16204
 
3430 rajveer 16205
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 16206
    public boolean isSetSuccess() {
16207
      return this.success != null;
16208
    }
16209
 
16210
    public void setSuccessIsSet(boolean value) {
16211
      if (!value) {
16212
        this.success = null;
16213
      }
16214
    }
16215
 
16216
    public void setFieldValue(_Fields field, Object value) {
16217
      switch (field) {
16218
      case SUCCESS:
16219
        if (value == null) {
16220
          unsetSuccess();
16221
        } else {
16222
          setSuccess((List<Report>)value);
16223
        }
16224
        break;
16225
 
16226
      }
16227
    }
16228
 
16229
    public Object getFieldValue(_Fields field) {
16230
      switch (field) {
16231
      case SUCCESS:
16232
        return getSuccess();
16233
 
16234
      }
16235
      throw new IllegalStateException();
16236
    }
16237
 
3430 rajveer 16238
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16239
    public boolean isSet(_Fields field) {
16240
      if (field == null) {
16241
        throw new IllegalArgumentException();
16242
      }
1891 ankur.sing 16243
 
16244
      switch (field) {
16245
      case SUCCESS:
16246
        return isSetSuccess();
16247
      }
16248
      throw new IllegalStateException();
16249
    }
16250
 
16251
    @Override
16252
    public boolean equals(Object that) {
16253
      if (that == null)
16254
        return false;
16255
      if (that instanceof getReports_result)
16256
        return this.equals((getReports_result)that);
16257
      return false;
16258
    }
16259
 
16260
    public boolean equals(getReports_result that) {
16261
      if (that == null)
16262
        return false;
16263
 
16264
      boolean this_present_success = true && this.isSetSuccess();
16265
      boolean that_present_success = true && that.isSetSuccess();
16266
      if (this_present_success || that_present_success) {
16267
        if (!(this_present_success && that_present_success))
16268
          return false;
16269
        if (!this.success.equals(that.success))
16270
          return false;
16271
      }
16272
 
16273
      return true;
16274
    }
16275
 
16276
    @Override
16277
    public int hashCode() {
16278
      return 0;
16279
    }
16280
 
16281
    public int compareTo(getReports_result other) {
16282
      if (!getClass().equals(other.getClass())) {
16283
        return getClass().getName().compareTo(other.getClass().getName());
16284
      }
16285
 
16286
      int lastComparison = 0;
16287
      getReports_result typedOther = (getReports_result)other;
16288
 
3430 rajveer 16289
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 16290
      if (lastComparison != 0) {
16291
        return lastComparison;
16292
      }
3430 rajveer 16293
      if (isSetSuccess()) {
16294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16295
        if (lastComparison != 0) {
16296
          return lastComparison;
16297
        }
1891 ankur.sing 16298
      }
16299
      return 0;
16300
    }
16301
 
3430 rajveer 16302
    public _Fields fieldForId(int fieldId) {
16303
      return _Fields.findByThriftId(fieldId);
16304
    }
16305
 
16306
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16307
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 16308
      iprot.readStructBegin();
16309
      while (true)
16310
      {
16311
        field = iprot.readFieldBegin();
3430 rajveer 16312
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 16313
          break;
16314
        }
3430 rajveer 16315
        switch (field.id) {
16316
          case 0: // SUCCESS
16317
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16318
              {
5864 rajveer 16319
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
16320
                this.success = new ArrayList<Report>(_list41.size);
16321
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 16322
                {
5864 rajveer 16323
                  Report _elem43; // required
16324
                  _elem43 = new Report();
16325
                  _elem43.read(iprot);
16326
                  this.success.add(_elem43);
1891 ankur.sing 16327
                }
3430 rajveer 16328
                iprot.readListEnd();
1891 ankur.sing 16329
              }
3430 rajveer 16330
            } else { 
16331
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16332
            }
16333
            break;
16334
          default:
16335
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 16336
        }
3430 rajveer 16337
        iprot.readFieldEnd();
1891 ankur.sing 16338
      }
16339
      iprot.readStructEnd();
16340
      validate();
16341
    }
16342
 
3430 rajveer 16343
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 16344
      oprot.writeStructBegin(STRUCT_DESC);
16345
 
16346
      if (this.isSetSuccess()) {
16347
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16348
        {
3430 rajveer 16349
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 16350
          for (Report _iter44 : this.success)
1891 ankur.sing 16351
          {
5864 rajveer 16352
            _iter44.write(oprot);
1891 ankur.sing 16353
          }
16354
          oprot.writeListEnd();
16355
        }
16356
        oprot.writeFieldEnd();
16357
      }
16358
      oprot.writeFieldStop();
16359
      oprot.writeStructEnd();
16360
    }
16361
 
16362
    @Override
16363
    public String toString() {
16364
      StringBuilder sb = new StringBuilder("getReports_result(");
16365
      boolean first = true;
16366
 
16367
      sb.append("success:");
16368
      if (this.success == null) {
16369
        sb.append("null");
16370
      } else {
16371
        sb.append(this.success);
16372
      }
16373
      first = false;
16374
      sb.append(")");
16375
      return sb.toString();
16376
    }
16377
 
3430 rajveer 16378
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 16379
      // check for required fields
16380
    }
16381
 
3430 rajveer 16382
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16383
      try {
16384
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16385
      } catch (org.apache.thrift.TException te) {
16386
        throw new java.io.IOException(te);
16387
      }
16388
    }
16389
 
16390
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16391
      try {
16392
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16393
      } catch (org.apache.thrift.TException te) {
16394
        throw new java.io.IOException(te);
16395
      }
16396
    }
16397
 
1891 ankur.sing 16398
  }
16399
 
3430 rajveer 16400
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
16401
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 16402
 
3430 rajveer 16403
    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);
16404
    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 16405
 
3430 rajveer 16406
    private String username; // required
16407
    private String password; // required
2024 ankur.sing 16408
 
16409
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16410
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 16411
      USERNAME((short)1, "username"),
6788 rajveer 16412
      PASSWORD((short)2, "password");
2024 ankur.sing 16413
 
16414
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16415
 
16416
      static {
16417
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16418
          byName.put(field.getFieldName(), field);
16419
        }
16420
      }
16421
 
16422
      /**
16423
       * Find the _Fields constant that matches fieldId, or null if its not found.
16424
       */
16425
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16426
        switch(fieldId) {
16427
          case 1: // USERNAME
16428
            return USERNAME;
16429
          case 2: // PASSWORD
16430
            return PASSWORD;
16431
          default:
16432
            return null;
16433
        }
2024 ankur.sing 16434
      }
16435
 
16436
      /**
16437
       * Find the _Fields constant that matches fieldId, throwing an exception
16438
       * if it is not found.
16439
       */
16440
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16441
        _Fields fields = findByThriftId(fieldId);
16442
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16443
        return fields;
16444
      }
16445
 
16446
      /**
16447
       * Find the _Fields constant that matches name, or null if its not found.
16448
       */
16449
      public static _Fields findByName(String name) {
16450
        return byName.get(name);
16451
      }
16452
 
16453
      private final short _thriftId;
16454
      private final String _fieldName;
16455
 
16456
      _Fields(short thriftId, String fieldName) {
16457
        _thriftId = thriftId;
16458
        _fieldName = fieldName;
16459
      }
16460
 
16461
      public short getThriftFieldId() {
16462
        return _thriftId;
16463
      }
16464
 
16465
      public String getFieldName() {
16466
        return _fieldName;
16467
      }
16468
    }
16469
 
16470
    // isset id assignments
16471
 
3430 rajveer 16472
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 16473
    static {
3430 rajveer 16474
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16475
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16476
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16477
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16478
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16479
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16480
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 16481
    }
16482
 
16483
    public authenticateCatalogUser_args() {
16484
    }
16485
 
16486
    public authenticateCatalogUser_args(
16487
      String username,
6788 rajveer 16488
      String password)
2024 ankur.sing 16489
    {
16490
      this();
16491
      this.username = username;
16492
      this.password = password;
16493
    }
16494
 
16495
    /**
16496
     * Performs a deep copy on <i>other</i>.
16497
     */
16498
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
16499
      if (other.isSetUsername()) {
16500
        this.username = other.username;
16501
      }
16502
      if (other.isSetPassword()) {
16503
        this.password = other.password;
16504
      }
16505
    }
16506
 
16507
    public authenticateCatalogUser_args deepCopy() {
16508
      return new authenticateCatalogUser_args(this);
16509
    }
16510
 
3430 rajveer 16511
    @Override
16512
    public void clear() {
16513
      this.username = null;
16514
      this.password = null;
2024 ankur.sing 16515
    }
16516
 
16517
    public String getUsername() {
16518
      return this.username;
16519
    }
16520
 
3430 rajveer 16521
    public void setUsername(String username) {
2024 ankur.sing 16522
      this.username = username;
16523
    }
16524
 
16525
    public void unsetUsername() {
16526
      this.username = null;
16527
    }
16528
 
3430 rajveer 16529
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16530
    public boolean isSetUsername() {
16531
      return this.username != null;
16532
    }
16533
 
16534
    public void setUsernameIsSet(boolean value) {
16535
      if (!value) {
16536
        this.username = null;
16537
      }
16538
    }
16539
 
16540
    public String getPassword() {
16541
      return this.password;
16542
    }
16543
 
3430 rajveer 16544
    public void setPassword(String password) {
2024 ankur.sing 16545
      this.password = password;
16546
    }
16547
 
16548
    public void unsetPassword() {
16549
      this.password = null;
16550
    }
16551
 
3430 rajveer 16552
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16553
    public boolean isSetPassword() {
16554
      return this.password != null;
16555
    }
16556
 
16557
    public void setPasswordIsSet(boolean value) {
16558
      if (!value) {
16559
        this.password = null;
16560
      }
16561
    }
16562
 
16563
    public void setFieldValue(_Fields field, Object value) {
16564
      switch (field) {
16565
      case USERNAME:
16566
        if (value == null) {
16567
          unsetUsername();
16568
        } else {
16569
          setUsername((String)value);
16570
        }
16571
        break;
16572
 
16573
      case PASSWORD:
16574
        if (value == null) {
16575
          unsetPassword();
16576
        } else {
16577
          setPassword((String)value);
16578
        }
16579
        break;
16580
 
16581
      }
16582
    }
16583
 
16584
    public Object getFieldValue(_Fields field) {
16585
      switch (field) {
16586
      case USERNAME:
16587
        return getUsername();
16588
 
16589
      case PASSWORD:
16590
        return getPassword();
16591
 
16592
      }
16593
      throw new IllegalStateException();
16594
    }
16595
 
3430 rajveer 16596
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16597
    public boolean isSet(_Fields field) {
16598
      if (field == null) {
16599
        throw new IllegalArgumentException();
16600
      }
2024 ankur.sing 16601
 
16602
      switch (field) {
16603
      case USERNAME:
16604
        return isSetUsername();
16605
      case PASSWORD:
16606
        return isSetPassword();
16607
      }
16608
      throw new IllegalStateException();
16609
    }
16610
 
16611
    @Override
16612
    public boolean equals(Object that) {
16613
      if (that == null)
16614
        return false;
16615
      if (that instanceof authenticateCatalogUser_args)
16616
        return this.equals((authenticateCatalogUser_args)that);
16617
      return false;
16618
    }
16619
 
16620
    public boolean equals(authenticateCatalogUser_args that) {
16621
      if (that == null)
16622
        return false;
16623
 
16624
      boolean this_present_username = true && this.isSetUsername();
16625
      boolean that_present_username = true && that.isSetUsername();
16626
      if (this_present_username || that_present_username) {
16627
        if (!(this_present_username && that_present_username))
16628
          return false;
16629
        if (!this.username.equals(that.username))
16630
          return false;
16631
      }
16632
 
16633
      boolean this_present_password = true && this.isSetPassword();
16634
      boolean that_present_password = true && that.isSetPassword();
16635
      if (this_present_password || that_present_password) {
16636
        if (!(this_present_password && that_present_password))
16637
          return false;
16638
        if (!this.password.equals(that.password))
16639
          return false;
16640
      }
16641
 
16642
      return true;
16643
    }
16644
 
16645
    @Override
16646
    public int hashCode() {
16647
      return 0;
16648
    }
16649
 
16650
    public int compareTo(authenticateCatalogUser_args other) {
16651
      if (!getClass().equals(other.getClass())) {
16652
        return getClass().getName().compareTo(other.getClass().getName());
16653
      }
16654
 
16655
      int lastComparison = 0;
16656
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
16657
 
3430 rajveer 16658
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 16659
      if (lastComparison != 0) {
16660
        return lastComparison;
16661
      }
3430 rajveer 16662
      if (isSetUsername()) {
16663
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
16664
        if (lastComparison != 0) {
16665
          return lastComparison;
16666
        }
2024 ankur.sing 16667
      }
3430 rajveer 16668
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 16669
      if (lastComparison != 0) {
16670
        return lastComparison;
16671
      }
3430 rajveer 16672
      if (isSetPassword()) {
16673
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
16674
        if (lastComparison != 0) {
16675
          return lastComparison;
16676
        }
2024 ankur.sing 16677
      }
16678
      return 0;
16679
    }
16680
 
3430 rajveer 16681
    public _Fields fieldForId(int fieldId) {
16682
      return _Fields.findByThriftId(fieldId);
16683
    }
16684
 
16685
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16686
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 16687
      iprot.readStructBegin();
16688
      while (true)
16689
      {
16690
        field = iprot.readFieldBegin();
3430 rajveer 16691
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 16692
          break;
16693
        }
3430 rajveer 16694
        switch (field.id) {
16695
          case 1: // USERNAME
16696
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16697
              this.username = iprot.readString();
16698
            } else { 
16699
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16700
            }
16701
            break;
16702
          case 2: // PASSWORD
16703
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16704
              this.password = iprot.readString();
16705
            } else { 
16706
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16707
            }
16708
            break;
16709
          default:
16710
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 16711
        }
3430 rajveer 16712
        iprot.readFieldEnd();
2024 ankur.sing 16713
      }
16714
      iprot.readStructEnd();
16715
      validate();
16716
    }
16717
 
3430 rajveer 16718
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 16719
      validate();
16720
 
16721
      oprot.writeStructBegin(STRUCT_DESC);
16722
      if (this.username != null) {
16723
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
16724
        oprot.writeString(this.username);
16725
        oprot.writeFieldEnd();
16726
      }
16727
      if (this.password != null) {
16728
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
16729
        oprot.writeString(this.password);
16730
        oprot.writeFieldEnd();
16731
      }
16732
      oprot.writeFieldStop();
16733
      oprot.writeStructEnd();
16734
    }
16735
 
16736
    @Override
16737
    public String toString() {
16738
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
16739
      boolean first = true;
16740
 
16741
      sb.append("username:");
16742
      if (this.username == null) {
16743
        sb.append("null");
16744
      } else {
16745
        sb.append(this.username);
16746
      }
16747
      first = false;
16748
      if (!first) sb.append(", ");
16749
      sb.append("password:");
16750
      if (this.password == null) {
16751
        sb.append("null");
16752
      } else {
16753
        sb.append(this.password);
16754
      }
16755
      first = false;
16756
      sb.append(")");
16757
      return sb.toString();
16758
    }
16759
 
3430 rajveer 16760
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 16761
      // check for required fields
16762
    }
16763
 
3430 rajveer 16764
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16765
      try {
16766
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16767
      } catch (org.apache.thrift.TException te) {
16768
        throw new java.io.IOException(te);
16769
      }
16770
    }
16771
 
16772
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16773
      try {
16774
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16775
      } catch (org.apache.thrift.TException te) {
16776
        throw new java.io.IOException(te);
16777
      }
16778
    }
16779
 
2024 ankur.sing 16780
  }
16781
 
3430 rajveer 16782
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
16783
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 16784
 
3430 rajveer 16785
    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);
16786
    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 16787
 
3430 rajveer 16788
    private CatalogDashboardUser success; // required
16789
    private HelperServiceException hse; // required
2024 ankur.sing 16790
 
16791
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16792
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 16793
      SUCCESS((short)0, "success"),
16794
      HSE((short)1, "hse");
16795
 
16796
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16797
 
16798
      static {
16799
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16800
          byName.put(field.getFieldName(), field);
16801
        }
16802
      }
16803
 
16804
      /**
16805
       * Find the _Fields constant that matches fieldId, or null if its not found.
16806
       */
16807
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16808
        switch(fieldId) {
16809
          case 0: // SUCCESS
16810
            return SUCCESS;
16811
          case 1: // HSE
16812
            return HSE;
16813
          default:
16814
            return null;
16815
        }
2024 ankur.sing 16816
      }
16817
 
16818
      /**
16819
       * Find the _Fields constant that matches fieldId, throwing an exception
16820
       * if it is not found.
16821
       */
16822
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16823
        _Fields fields = findByThriftId(fieldId);
16824
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16825
        return fields;
16826
      }
16827
 
16828
      /**
16829
       * Find the _Fields constant that matches name, or null if its not found.
16830
       */
16831
      public static _Fields findByName(String name) {
16832
        return byName.get(name);
16833
      }
16834
 
16835
      private final short _thriftId;
16836
      private final String _fieldName;
16837
 
16838
      _Fields(short thriftId, String fieldName) {
16839
        _thriftId = thriftId;
16840
        _fieldName = fieldName;
16841
      }
16842
 
16843
      public short getThriftFieldId() {
16844
        return _thriftId;
16845
      }
16846
 
16847
      public String getFieldName() {
16848
        return _fieldName;
16849
      }
16850
    }
16851
 
16852
    // isset id assignments
16853
 
3430 rajveer 16854
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 16855
    static {
3430 rajveer 16856
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16857
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16858
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
16859
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16860
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16861
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16862
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 16863
    }
16864
 
16865
    public authenticateCatalogUser_result() {
16866
    }
16867
 
16868
    public authenticateCatalogUser_result(
16869
      CatalogDashboardUser success,
16870
      HelperServiceException hse)
16871
    {
16872
      this();
16873
      this.success = success;
16874
      this.hse = hse;
16875
    }
16876
 
16877
    /**
16878
     * Performs a deep copy on <i>other</i>.
16879
     */
16880
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
16881
      if (other.isSetSuccess()) {
16882
        this.success = new CatalogDashboardUser(other.success);
16883
      }
16884
      if (other.isSetHse()) {
16885
        this.hse = new HelperServiceException(other.hse);
16886
      }
16887
    }
16888
 
16889
    public authenticateCatalogUser_result deepCopy() {
16890
      return new authenticateCatalogUser_result(this);
16891
    }
16892
 
3430 rajveer 16893
    @Override
16894
    public void clear() {
16895
      this.success = null;
16896
      this.hse = null;
2024 ankur.sing 16897
    }
16898
 
16899
    public CatalogDashboardUser getSuccess() {
16900
      return this.success;
16901
    }
16902
 
3430 rajveer 16903
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 16904
      this.success = success;
16905
    }
16906
 
16907
    public void unsetSuccess() {
16908
      this.success = null;
16909
    }
16910
 
3430 rajveer 16911
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16912
    public boolean isSetSuccess() {
16913
      return this.success != null;
16914
    }
16915
 
16916
    public void setSuccessIsSet(boolean value) {
16917
      if (!value) {
16918
        this.success = null;
16919
      }
16920
    }
16921
 
16922
    public HelperServiceException getHse() {
16923
      return this.hse;
16924
    }
16925
 
3430 rajveer 16926
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 16927
      this.hse = hse;
16928
    }
16929
 
16930
    public void unsetHse() {
16931
      this.hse = null;
16932
    }
16933
 
3430 rajveer 16934
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16935
    public boolean isSetHse() {
16936
      return this.hse != null;
16937
    }
16938
 
16939
    public void setHseIsSet(boolean value) {
16940
      if (!value) {
16941
        this.hse = null;
16942
      }
16943
    }
16944
 
16945
    public void setFieldValue(_Fields field, Object value) {
16946
      switch (field) {
16947
      case SUCCESS:
16948
        if (value == null) {
16949
          unsetSuccess();
16950
        } else {
16951
          setSuccess((CatalogDashboardUser)value);
16952
        }
16953
        break;
16954
 
16955
      case HSE:
16956
        if (value == null) {
16957
          unsetHse();
16958
        } else {
16959
          setHse((HelperServiceException)value);
16960
        }
16961
        break;
16962
 
16963
      }
16964
    }
16965
 
16966
    public Object getFieldValue(_Fields field) {
16967
      switch (field) {
16968
      case SUCCESS:
16969
        return getSuccess();
16970
 
16971
      case HSE:
16972
        return getHse();
16973
 
16974
      }
16975
      throw new IllegalStateException();
16976
    }
16977
 
3430 rajveer 16978
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16979
    public boolean isSet(_Fields field) {
16980
      if (field == null) {
16981
        throw new IllegalArgumentException();
16982
      }
2024 ankur.sing 16983
 
16984
      switch (field) {
16985
      case SUCCESS:
16986
        return isSetSuccess();
16987
      case HSE:
16988
        return isSetHse();
16989
      }
16990
      throw new IllegalStateException();
16991
    }
16992
 
16993
    @Override
16994
    public boolean equals(Object that) {
16995
      if (that == null)
16996
        return false;
16997
      if (that instanceof authenticateCatalogUser_result)
16998
        return this.equals((authenticateCatalogUser_result)that);
16999
      return false;
17000
    }
17001
 
17002
    public boolean equals(authenticateCatalogUser_result that) {
17003
      if (that == null)
17004
        return false;
17005
 
17006
      boolean this_present_success = true && this.isSetSuccess();
17007
      boolean that_present_success = true && that.isSetSuccess();
17008
      if (this_present_success || that_present_success) {
17009
        if (!(this_present_success && that_present_success))
17010
          return false;
17011
        if (!this.success.equals(that.success))
17012
          return false;
17013
      }
17014
 
17015
      boolean this_present_hse = true && this.isSetHse();
17016
      boolean that_present_hse = true && that.isSetHse();
17017
      if (this_present_hse || that_present_hse) {
17018
        if (!(this_present_hse && that_present_hse))
17019
          return false;
17020
        if (!this.hse.equals(that.hse))
17021
          return false;
17022
      }
17023
 
17024
      return true;
17025
    }
17026
 
17027
    @Override
17028
    public int hashCode() {
17029
      return 0;
17030
    }
17031
 
17032
    public int compareTo(authenticateCatalogUser_result other) {
17033
      if (!getClass().equals(other.getClass())) {
17034
        return getClass().getName().compareTo(other.getClass().getName());
17035
      }
17036
 
17037
      int lastComparison = 0;
17038
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
17039
 
3430 rajveer 17040
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 17041
      if (lastComparison != 0) {
17042
        return lastComparison;
17043
      }
3430 rajveer 17044
      if (isSetSuccess()) {
17045
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
17046
        if (lastComparison != 0) {
17047
          return lastComparison;
17048
        }
2024 ankur.sing 17049
      }
3430 rajveer 17050
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 17051
      if (lastComparison != 0) {
17052
        return lastComparison;
17053
      }
3430 rajveer 17054
      if (isSetHse()) {
17055
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
17056
        if (lastComparison != 0) {
17057
          return lastComparison;
17058
        }
2024 ankur.sing 17059
      }
17060
      return 0;
17061
    }
17062
 
3430 rajveer 17063
    public _Fields fieldForId(int fieldId) {
17064
      return _Fields.findByThriftId(fieldId);
17065
    }
17066
 
17067
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17068
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 17069
      iprot.readStructBegin();
17070
      while (true)
17071
      {
17072
        field = iprot.readFieldBegin();
3430 rajveer 17073
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 17074
          break;
17075
        }
3430 rajveer 17076
        switch (field.id) {
17077
          case 0: // SUCCESS
17078
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17079
              this.success = new CatalogDashboardUser();
17080
              this.success.read(iprot);
17081
            } else { 
17082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17083
            }
17084
            break;
17085
          case 1: // HSE
17086
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17087
              this.hse = new HelperServiceException();
17088
              this.hse.read(iprot);
17089
            } else { 
17090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17091
            }
17092
            break;
17093
          default:
17094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 17095
        }
3430 rajveer 17096
        iprot.readFieldEnd();
2024 ankur.sing 17097
      }
17098
      iprot.readStructEnd();
17099
      validate();
17100
    }
17101
 
3430 rajveer 17102
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 17103
      oprot.writeStructBegin(STRUCT_DESC);
17104
 
17105
      if (this.isSetSuccess()) {
17106
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17107
        this.success.write(oprot);
17108
        oprot.writeFieldEnd();
17109
      } else if (this.isSetHse()) {
17110
        oprot.writeFieldBegin(HSE_FIELD_DESC);
17111
        this.hse.write(oprot);
17112
        oprot.writeFieldEnd();
17113
      }
17114
      oprot.writeFieldStop();
17115
      oprot.writeStructEnd();
17116
    }
17117
 
17118
    @Override
17119
    public String toString() {
17120
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
17121
      boolean first = true;
17122
 
17123
      sb.append("success:");
17124
      if (this.success == null) {
17125
        sb.append("null");
17126
      } else {
17127
        sb.append(this.success);
17128
      }
17129
      first = false;
17130
      if (!first) sb.append(", ");
17131
      sb.append("hse:");
17132
      if (this.hse == null) {
17133
        sb.append("null");
17134
      } else {
17135
        sb.append(this.hse);
17136
      }
17137
      first = false;
17138
      sb.append(")");
17139
      return sb.toString();
17140
    }
17141
 
3430 rajveer 17142
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 17143
      // check for required fields
17144
    }
17145
 
3430 rajveer 17146
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17147
      try {
17148
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17149
      } catch (org.apache.thrift.TException te) {
17150
        throw new java.io.IOException(te);
17151
      }
17152
    }
17153
 
17154
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17155
      try {
17156
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17157
      } catch (org.apache.thrift.TException te) {
17158
        throw new java.io.IOException(te);
17159
      }
17160
    }
17161
 
2024 ankur.sing 17162
  }
17163
 
4544 varun.gupt 17164
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
17165
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
17166
 
17167
    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);
17168
    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);
17169
 
17170
    private List<Long> entityIds; // required
17171
    private String email; // required
17172
 
17173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17175
      ENTITY_IDS((short)1, "entityIds"),
17176
      EMAIL((short)2, "email");
17177
 
17178
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17179
 
17180
      static {
17181
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17182
          byName.put(field.getFieldName(), field);
17183
        }
17184
      }
17185
 
17186
      /**
17187
       * Find the _Fields constant that matches fieldId, or null if its not found.
17188
       */
17189
      public static _Fields findByThriftId(int fieldId) {
17190
        switch(fieldId) {
17191
          case 1: // ENTITY_IDS
17192
            return ENTITY_IDS;
17193
          case 2: // EMAIL
17194
            return EMAIL;
17195
          default:
17196
            return null;
17197
        }
17198
      }
17199
 
17200
      /**
17201
       * Find the _Fields constant that matches fieldId, throwing an exception
17202
       * if it is not found.
17203
       */
17204
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17205
        _Fields fields = findByThriftId(fieldId);
17206
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17207
        return fields;
17208
      }
17209
 
17210
      /**
17211
       * Find the _Fields constant that matches name, or null if its not found.
17212
       */
17213
      public static _Fields findByName(String name) {
17214
        return byName.get(name);
17215
      }
17216
 
17217
      private final short _thriftId;
17218
      private final String _fieldName;
17219
 
17220
      _Fields(short thriftId, String fieldName) {
17221
        _thriftId = thriftId;
17222
        _fieldName = fieldName;
17223
      }
17224
 
17225
      public short getThriftFieldId() {
17226
        return _thriftId;
17227
      }
17228
 
17229
      public String getFieldName() {
17230
        return _fieldName;
17231
      }
17232
    }
17233
 
17234
    // isset id assignments
17235
 
17236
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17237
    static {
17238
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17239
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17240
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17241
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
17242
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17243
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17244
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17245
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
17246
    }
17247
 
17248
    public shareEntities_args() {
17249
    }
17250
 
17251
    public shareEntities_args(
17252
      List<Long> entityIds,
17253
      String email)
17254
    {
17255
      this();
17256
      this.entityIds = entityIds;
17257
      this.email = email;
17258
    }
17259
 
17260
    /**
17261
     * Performs a deep copy on <i>other</i>.
17262
     */
17263
    public shareEntities_args(shareEntities_args other) {
17264
      if (other.isSetEntityIds()) {
17265
        List<Long> __this__entityIds = new ArrayList<Long>();
17266
        for (Long other_element : other.entityIds) {
17267
          __this__entityIds.add(other_element);
17268
        }
17269
        this.entityIds = __this__entityIds;
17270
      }
17271
      if (other.isSetEmail()) {
17272
        this.email = other.email;
17273
      }
17274
    }
17275
 
17276
    public shareEntities_args deepCopy() {
17277
      return new shareEntities_args(this);
17278
    }
17279
 
17280
    @Override
17281
    public void clear() {
17282
      this.entityIds = null;
17283
      this.email = null;
17284
    }
17285
 
17286
    public int getEntityIdsSize() {
17287
      return (this.entityIds == null) ? 0 : this.entityIds.size();
17288
    }
17289
 
17290
    public java.util.Iterator<Long> getEntityIdsIterator() {
17291
      return (this.entityIds == null) ? null : this.entityIds.iterator();
17292
    }
17293
 
17294
    public void addToEntityIds(long elem) {
17295
      if (this.entityIds == null) {
17296
        this.entityIds = new ArrayList<Long>();
17297
      }
17298
      this.entityIds.add(elem);
17299
    }
17300
 
17301
    public List<Long> getEntityIds() {
17302
      return this.entityIds;
17303
    }
17304
 
17305
    public void setEntityIds(List<Long> entityIds) {
17306
      this.entityIds = entityIds;
17307
    }
17308
 
17309
    public void unsetEntityIds() {
17310
      this.entityIds = null;
17311
    }
17312
 
17313
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
17314
    public boolean isSetEntityIds() {
17315
      return this.entityIds != null;
17316
    }
17317
 
17318
    public void setEntityIdsIsSet(boolean value) {
17319
      if (!value) {
17320
        this.entityIds = null;
17321
      }
17322
    }
17323
 
17324
    public String getEmail() {
17325
      return this.email;
17326
    }
17327
 
17328
    public void setEmail(String email) {
17329
      this.email = email;
17330
    }
17331
 
17332
    public void unsetEmail() {
17333
      this.email = null;
17334
    }
17335
 
17336
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
17337
    public boolean isSetEmail() {
17338
      return this.email != null;
17339
    }
17340
 
17341
    public void setEmailIsSet(boolean value) {
17342
      if (!value) {
17343
        this.email = null;
17344
      }
17345
    }
17346
 
17347
    public void setFieldValue(_Fields field, Object value) {
17348
      switch (field) {
17349
      case ENTITY_IDS:
17350
        if (value == null) {
17351
          unsetEntityIds();
17352
        } else {
17353
          setEntityIds((List<Long>)value);
17354
        }
17355
        break;
17356
 
17357
      case EMAIL:
17358
        if (value == null) {
17359
          unsetEmail();
17360
        } else {
17361
          setEmail((String)value);
17362
        }
17363
        break;
17364
 
17365
      }
17366
    }
17367
 
17368
    public Object getFieldValue(_Fields field) {
17369
      switch (field) {
17370
      case ENTITY_IDS:
17371
        return getEntityIds();
17372
 
17373
      case EMAIL:
17374
        return getEmail();
17375
 
17376
      }
17377
      throw new IllegalStateException();
17378
    }
17379
 
17380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17381
    public boolean isSet(_Fields field) {
17382
      if (field == null) {
17383
        throw new IllegalArgumentException();
17384
      }
17385
 
17386
      switch (field) {
17387
      case ENTITY_IDS:
17388
        return isSetEntityIds();
17389
      case EMAIL:
17390
        return isSetEmail();
17391
      }
17392
      throw new IllegalStateException();
17393
    }
17394
 
17395
    @Override
17396
    public boolean equals(Object that) {
17397
      if (that == null)
17398
        return false;
17399
      if (that instanceof shareEntities_args)
17400
        return this.equals((shareEntities_args)that);
17401
      return false;
17402
    }
17403
 
17404
    public boolean equals(shareEntities_args that) {
17405
      if (that == null)
17406
        return false;
17407
 
17408
      boolean this_present_entityIds = true && this.isSetEntityIds();
17409
      boolean that_present_entityIds = true && that.isSetEntityIds();
17410
      if (this_present_entityIds || that_present_entityIds) {
17411
        if (!(this_present_entityIds && that_present_entityIds))
17412
          return false;
17413
        if (!this.entityIds.equals(that.entityIds))
17414
          return false;
17415
      }
17416
 
17417
      boolean this_present_email = true && this.isSetEmail();
17418
      boolean that_present_email = true && that.isSetEmail();
17419
      if (this_present_email || that_present_email) {
17420
        if (!(this_present_email && that_present_email))
17421
          return false;
17422
        if (!this.email.equals(that.email))
17423
          return false;
17424
      }
17425
 
17426
      return true;
17427
    }
17428
 
17429
    @Override
17430
    public int hashCode() {
17431
      return 0;
17432
    }
17433
 
17434
    public int compareTo(shareEntities_args other) {
17435
      if (!getClass().equals(other.getClass())) {
17436
        return getClass().getName().compareTo(other.getClass().getName());
17437
      }
17438
 
17439
      int lastComparison = 0;
17440
      shareEntities_args typedOther = (shareEntities_args)other;
17441
 
17442
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
17443
      if (lastComparison != 0) {
17444
        return lastComparison;
17445
      }
17446
      if (isSetEntityIds()) {
17447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
17448
        if (lastComparison != 0) {
17449
          return lastComparison;
17450
        }
17451
      }
17452
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
17453
      if (lastComparison != 0) {
17454
        return lastComparison;
17455
      }
17456
      if (isSetEmail()) {
17457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
17458
        if (lastComparison != 0) {
17459
          return lastComparison;
17460
        }
17461
      }
17462
      return 0;
17463
    }
17464
 
17465
    public _Fields fieldForId(int fieldId) {
17466
      return _Fields.findByThriftId(fieldId);
17467
    }
17468
 
17469
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17470
      org.apache.thrift.protocol.TField field;
17471
      iprot.readStructBegin();
17472
      while (true)
17473
      {
17474
        field = iprot.readFieldBegin();
17475
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17476
          break;
17477
        }
17478
        switch (field.id) {
17479
          case 1: // ENTITY_IDS
17480
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17481
              {
5864 rajveer 17482
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
17483
                this.entityIds = new ArrayList<Long>(_list45.size);
17484
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 17485
                {
5864 rajveer 17486
                  long _elem47; // required
17487
                  _elem47 = iprot.readI64();
17488
                  this.entityIds.add(_elem47);
4544 varun.gupt 17489
                }
17490
                iprot.readListEnd();
17491
              }
17492
            } else { 
17493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17494
            }
17495
            break;
17496
          case 2: // EMAIL
17497
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17498
              this.email = iprot.readString();
17499
            } else { 
17500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17501
            }
17502
            break;
17503
          default:
17504
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17505
        }
17506
        iprot.readFieldEnd();
17507
      }
17508
      iprot.readStructEnd();
17509
      validate();
17510
    }
17511
 
17512
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17513
      validate();
17514
 
17515
      oprot.writeStructBegin(STRUCT_DESC);
17516
      if (this.entityIds != null) {
17517
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
17518
        {
17519
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 17520
          for (long _iter48 : this.entityIds)
4544 varun.gupt 17521
          {
5864 rajveer 17522
            oprot.writeI64(_iter48);
4544 varun.gupt 17523
          }
17524
          oprot.writeListEnd();
17525
        }
17526
        oprot.writeFieldEnd();
17527
      }
17528
      if (this.email != null) {
17529
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
17530
        oprot.writeString(this.email);
17531
        oprot.writeFieldEnd();
17532
      }
17533
      oprot.writeFieldStop();
17534
      oprot.writeStructEnd();
17535
    }
17536
 
17537
    @Override
17538
    public String toString() {
17539
      StringBuilder sb = new StringBuilder("shareEntities_args(");
17540
      boolean first = true;
17541
 
17542
      sb.append("entityIds:");
17543
      if (this.entityIds == null) {
17544
        sb.append("null");
17545
      } else {
17546
        sb.append(this.entityIds);
17547
      }
17548
      first = false;
17549
      if (!first) sb.append(", ");
17550
      sb.append("email:");
17551
      if (this.email == null) {
17552
        sb.append("null");
17553
      } else {
17554
        sb.append(this.email);
17555
      }
17556
      first = false;
17557
      sb.append(")");
17558
      return sb.toString();
17559
    }
17560
 
17561
    public void validate() throws org.apache.thrift.TException {
17562
      // check for required fields
17563
    }
17564
 
17565
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17566
      try {
17567
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17568
      } catch (org.apache.thrift.TException te) {
17569
        throw new java.io.IOException(te);
17570
      }
17571
    }
17572
 
17573
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17574
      try {
17575
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17576
      } catch (org.apache.thrift.TException te) {
17577
        throw new java.io.IOException(te);
17578
      }
17579
    }
17580
 
17581
  }
17582
 
17583
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
17584
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
17585
 
17586
    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);
17587
 
17588
    private HelperServiceException hse; // required
17589
 
17590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17591
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17592
      HSE((short)1, "hse");
17593
 
17594
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17595
 
17596
      static {
17597
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17598
          byName.put(field.getFieldName(), field);
17599
        }
17600
      }
17601
 
17602
      /**
17603
       * Find the _Fields constant that matches fieldId, or null if its not found.
17604
       */
17605
      public static _Fields findByThriftId(int fieldId) {
17606
        switch(fieldId) {
17607
          case 1: // HSE
17608
            return HSE;
17609
          default:
17610
            return null;
17611
        }
17612
      }
17613
 
17614
      /**
17615
       * Find the _Fields constant that matches fieldId, throwing an exception
17616
       * if it is not found.
17617
       */
17618
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17619
        _Fields fields = findByThriftId(fieldId);
17620
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17621
        return fields;
17622
      }
17623
 
17624
      /**
17625
       * Find the _Fields constant that matches name, or null if its not found.
17626
       */
17627
      public static _Fields findByName(String name) {
17628
        return byName.get(name);
17629
      }
17630
 
17631
      private final short _thriftId;
17632
      private final String _fieldName;
17633
 
17634
      _Fields(short thriftId, String fieldName) {
17635
        _thriftId = thriftId;
17636
        _fieldName = fieldName;
17637
      }
17638
 
17639
      public short getThriftFieldId() {
17640
        return _thriftId;
17641
      }
17642
 
17643
      public String getFieldName() {
17644
        return _fieldName;
17645
      }
17646
    }
17647
 
17648
    // isset id assignments
17649
 
17650
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17651
    static {
17652
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17653
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
17657
    }
17658
 
17659
    public shareEntities_result() {
17660
    }
17661
 
17662
    public shareEntities_result(
17663
      HelperServiceException hse)
17664
    {
17665
      this();
17666
      this.hse = hse;
17667
    }
17668
 
17669
    /**
17670
     * Performs a deep copy on <i>other</i>.
17671
     */
17672
    public shareEntities_result(shareEntities_result other) {
17673
      if (other.isSetHse()) {
17674
        this.hse = new HelperServiceException(other.hse);
17675
      }
17676
    }
17677
 
17678
    public shareEntities_result deepCopy() {
17679
      return new shareEntities_result(this);
17680
    }
17681
 
17682
    @Override
17683
    public void clear() {
17684
      this.hse = null;
17685
    }
17686
 
17687
    public HelperServiceException getHse() {
17688
      return this.hse;
17689
    }
17690
 
17691
    public void setHse(HelperServiceException hse) {
17692
      this.hse = hse;
17693
    }
17694
 
17695
    public void unsetHse() {
17696
      this.hse = null;
17697
    }
17698
 
17699
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
17700
    public boolean isSetHse() {
17701
      return this.hse != null;
17702
    }
17703
 
17704
    public void setHseIsSet(boolean value) {
17705
      if (!value) {
17706
        this.hse = null;
17707
      }
17708
    }
17709
 
17710
    public void setFieldValue(_Fields field, Object value) {
17711
      switch (field) {
17712
      case HSE:
17713
        if (value == null) {
17714
          unsetHse();
17715
        } else {
17716
          setHse((HelperServiceException)value);
17717
        }
17718
        break;
17719
 
17720
      }
17721
    }
17722
 
17723
    public Object getFieldValue(_Fields field) {
17724
      switch (field) {
17725
      case HSE:
17726
        return getHse();
17727
 
17728
      }
17729
      throw new IllegalStateException();
17730
    }
17731
 
17732
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17733
    public boolean isSet(_Fields field) {
17734
      if (field == null) {
17735
        throw new IllegalArgumentException();
17736
      }
17737
 
17738
      switch (field) {
17739
      case HSE:
17740
        return isSetHse();
17741
      }
17742
      throw new IllegalStateException();
17743
    }
17744
 
17745
    @Override
17746
    public boolean equals(Object that) {
17747
      if (that == null)
17748
        return false;
17749
      if (that instanceof shareEntities_result)
17750
        return this.equals((shareEntities_result)that);
17751
      return false;
17752
    }
17753
 
17754
    public boolean equals(shareEntities_result that) {
17755
      if (that == null)
17756
        return false;
17757
 
17758
      boolean this_present_hse = true && this.isSetHse();
17759
      boolean that_present_hse = true && that.isSetHse();
17760
      if (this_present_hse || that_present_hse) {
17761
        if (!(this_present_hse && that_present_hse))
17762
          return false;
17763
        if (!this.hse.equals(that.hse))
17764
          return false;
17765
      }
17766
 
17767
      return true;
17768
    }
17769
 
17770
    @Override
17771
    public int hashCode() {
17772
      return 0;
17773
    }
17774
 
17775
    public int compareTo(shareEntities_result other) {
17776
      if (!getClass().equals(other.getClass())) {
17777
        return getClass().getName().compareTo(other.getClass().getName());
17778
      }
17779
 
17780
      int lastComparison = 0;
17781
      shareEntities_result typedOther = (shareEntities_result)other;
17782
 
17783
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
17784
      if (lastComparison != 0) {
17785
        return lastComparison;
17786
      }
17787
      if (isSetHse()) {
17788
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
17789
        if (lastComparison != 0) {
17790
          return lastComparison;
17791
        }
17792
      }
17793
      return 0;
17794
    }
17795
 
17796
    public _Fields fieldForId(int fieldId) {
17797
      return _Fields.findByThriftId(fieldId);
17798
    }
17799
 
17800
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17801
      org.apache.thrift.protocol.TField field;
17802
      iprot.readStructBegin();
17803
      while (true)
17804
      {
17805
        field = iprot.readFieldBegin();
17806
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17807
          break;
17808
        }
17809
        switch (field.id) {
17810
          case 1: // HSE
17811
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17812
              this.hse = new HelperServiceException();
17813
              this.hse.read(iprot);
17814
            } else { 
17815
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17816
            }
17817
            break;
17818
          default:
17819
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17820
        }
17821
        iprot.readFieldEnd();
17822
      }
17823
      iprot.readStructEnd();
17824
      validate();
17825
    }
17826
 
17827
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17828
      oprot.writeStructBegin(STRUCT_DESC);
17829
 
17830
      if (this.isSetHse()) {
17831
        oprot.writeFieldBegin(HSE_FIELD_DESC);
17832
        this.hse.write(oprot);
17833
        oprot.writeFieldEnd();
17834
      }
17835
      oprot.writeFieldStop();
17836
      oprot.writeStructEnd();
17837
    }
17838
 
17839
    @Override
17840
    public String toString() {
17841
      StringBuilder sb = new StringBuilder("shareEntities_result(");
17842
      boolean first = true;
17843
 
17844
      sb.append("hse:");
17845
      if (this.hse == null) {
17846
        sb.append("null");
17847
      } else {
17848
        sb.append(this.hse);
17849
      }
17850
      first = false;
17851
      sb.append(")");
17852
      return sb.toString();
17853
    }
17854
 
17855
    public void validate() throws org.apache.thrift.TException {
17856
      // check for required fields
17857
    }
17858
 
17859
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17860
      try {
17861
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17862
      } catch (org.apache.thrift.TException te) {
17863
        throw new java.io.IOException(te);
17864
      }
17865
    }
17866
 
17867
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17868
      try {
17869
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17870
      } catch (org.apache.thrift.TException te) {
17871
        throw new java.io.IOException(te);
17872
      }
17873
    }
17874
 
17875
  }
17876
 
4693 mandeep.dh 17877
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
17878
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
17879
 
17880
 
17881
 
17882
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17883
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17884
;
17885
 
17886
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17887
 
17888
      static {
17889
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17890
          byName.put(field.getFieldName(), field);
17891
        }
17892
      }
17893
 
17894
      /**
17895
       * Find the _Fields constant that matches fieldId, or null if its not found.
17896
       */
17897
      public static _Fields findByThriftId(int fieldId) {
17898
        switch(fieldId) {
17899
          default:
17900
            return null;
17901
        }
17902
      }
17903
 
17904
      /**
17905
       * Find the _Fields constant that matches fieldId, throwing an exception
17906
       * if it is not found.
17907
       */
17908
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17909
        _Fields fields = findByThriftId(fieldId);
17910
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17911
        return fields;
17912
      }
17913
 
17914
      /**
17915
       * Find the _Fields constant that matches name, or null if its not found.
17916
       */
17917
      public static _Fields findByName(String name) {
17918
        return byName.get(name);
17919
      }
17920
 
17921
      private final short _thriftId;
17922
      private final String _fieldName;
17923
 
17924
      _Fields(short thriftId, String fieldName) {
17925
        _thriftId = thriftId;
17926
        _fieldName = fieldName;
17927
      }
17928
 
17929
      public short getThriftFieldId() {
17930
        return _thriftId;
17931
      }
17932
 
17933
      public String getFieldName() {
17934
        return _fieldName;
17935
      }
17936
    }
17937
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17938
    static {
17939
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17940
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17941
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
17942
    }
17943
 
17944
    public getAgents_args() {
17945
    }
17946
 
17947
    /**
17948
     * Performs a deep copy on <i>other</i>.
17949
     */
17950
    public getAgents_args(getAgents_args other) {
17951
    }
17952
 
17953
    public getAgents_args deepCopy() {
17954
      return new getAgents_args(this);
17955
    }
17956
 
17957
    @Override
17958
    public void clear() {
17959
    }
17960
 
17961
    public void setFieldValue(_Fields field, Object value) {
17962
      switch (field) {
17963
      }
17964
    }
17965
 
17966
    public Object getFieldValue(_Fields field) {
17967
      switch (field) {
17968
      }
17969
      throw new IllegalStateException();
17970
    }
17971
 
17972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17973
    public boolean isSet(_Fields field) {
17974
      if (field == null) {
17975
        throw new IllegalArgumentException();
17976
      }
17977
 
17978
      switch (field) {
17979
      }
17980
      throw new IllegalStateException();
17981
    }
17982
 
17983
    @Override
17984
    public boolean equals(Object that) {
17985
      if (that == null)
17986
        return false;
17987
      if (that instanceof getAgents_args)
17988
        return this.equals((getAgents_args)that);
17989
      return false;
17990
    }
17991
 
17992
    public boolean equals(getAgents_args that) {
17993
      if (that == null)
17994
        return false;
17995
 
17996
      return true;
17997
    }
17998
 
17999
    @Override
18000
    public int hashCode() {
18001
      return 0;
18002
    }
18003
 
18004
    public int compareTo(getAgents_args other) {
18005
      if (!getClass().equals(other.getClass())) {
18006
        return getClass().getName().compareTo(other.getClass().getName());
18007
      }
18008
 
18009
      int lastComparison = 0;
18010
      getAgents_args typedOther = (getAgents_args)other;
18011
 
18012
      return 0;
18013
    }
18014
 
18015
    public _Fields fieldForId(int fieldId) {
18016
      return _Fields.findByThriftId(fieldId);
18017
    }
18018
 
18019
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18020
      org.apache.thrift.protocol.TField field;
18021
      iprot.readStructBegin();
18022
      while (true)
18023
      {
18024
        field = iprot.readFieldBegin();
18025
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18026
          break;
18027
        }
18028
        switch (field.id) {
18029
          default:
18030
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18031
        }
18032
        iprot.readFieldEnd();
18033
      }
18034
      iprot.readStructEnd();
18035
      validate();
18036
    }
18037
 
18038
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18039
      validate();
18040
 
18041
      oprot.writeStructBegin(STRUCT_DESC);
18042
      oprot.writeFieldStop();
18043
      oprot.writeStructEnd();
18044
    }
18045
 
18046
    @Override
18047
    public String toString() {
18048
      StringBuilder sb = new StringBuilder("getAgents_args(");
18049
      boolean first = true;
18050
 
18051
      sb.append(")");
18052
      return sb.toString();
18053
    }
18054
 
18055
    public void validate() throws org.apache.thrift.TException {
18056
      // check for required fields
18057
    }
18058
 
18059
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18060
      try {
18061
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18062
      } catch (org.apache.thrift.TException te) {
18063
        throw new java.io.IOException(te);
18064
      }
18065
    }
18066
 
18067
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18068
      try {
18069
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18070
      } catch (org.apache.thrift.TException te) {
18071
        throw new java.io.IOException(te);
18072
      }
18073
    }
18074
 
18075
  }
18076
 
18077
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
18078
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
18079
 
18080
    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);
18081
 
18082
    private List<Agent> success; // required
18083
 
18084
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18085
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18086
      SUCCESS((short)0, "success");
18087
 
18088
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18089
 
18090
      static {
18091
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18092
          byName.put(field.getFieldName(), field);
18093
        }
18094
      }
18095
 
18096
      /**
18097
       * Find the _Fields constant that matches fieldId, or null if its not found.
18098
       */
18099
      public static _Fields findByThriftId(int fieldId) {
18100
        switch(fieldId) {
18101
          case 0: // SUCCESS
18102
            return SUCCESS;
18103
          default:
18104
            return null;
18105
        }
18106
      }
18107
 
18108
      /**
18109
       * Find the _Fields constant that matches fieldId, throwing an exception
18110
       * if it is not found.
18111
       */
18112
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18113
        _Fields fields = findByThriftId(fieldId);
18114
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18115
        return fields;
18116
      }
18117
 
18118
      /**
18119
       * Find the _Fields constant that matches name, or null if its not found.
18120
       */
18121
      public static _Fields findByName(String name) {
18122
        return byName.get(name);
18123
      }
18124
 
18125
      private final short _thriftId;
18126
      private final String _fieldName;
18127
 
18128
      _Fields(short thriftId, String fieldName) {
18129
        _thriftId = thriftId;
18130
        _fieldName = fieldName;
18131
      }
18132
 
18133
      public short getThriftFieldId() {
18134
        return _thriftId;
18135
      }
18136
 
18137
      public String getFieldName() {
18138
        return _fieldName;
18139
      }
18140
    }
18141
 
18142
    // isset id assignments
18143
 
18144
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18145
    static {
18146
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18147
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18148
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18149
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
18150
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18151
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
18152
    }
18153
 
18154
    public getAgents_result() {
18155
    }
18156
 
18157
    public getAgents_result(
18158
      List<Agent> success)
18159
    {
18160
      this();
18161
      this.success = success;
18162
    }
18163
 
18164
    /**
18165
     * Performs a deep copy on <i>other</i>.
18166
     */
18167
    public getAgents_result(getAgents_result other) {
18168
      if (other.isSetSuccess()) {
18169
        List<Agent> __this__success = new ArrayList<Agent>();
18170
        for (Agent other_element : other.success) {
18171
          __this__success.add(new Agent(other_element));
18172
        }
18173
        this.success = __this__success;
18174
      }
18175
    }
18176
 
18177
    public getAgents_result deepCopy() {
18178
      return new getAgents_result(this);
18179
    }
18180
 
18181
    @Override
18182
    public void clear() {
18183
      this.success = null;
18184
    }
18185
 
18186
    public int getSuccessSize() {
18187
      return (this.success == null) ? 0 : this.success.size();
18188
    }
18189
 
18190
    public java.util.Iterator<Agent> getSuccessIterator() {
18191
      return (this.success == null) ? null : this.success.iterator();
18192
    }
18193
 
18194
    public void addToSuccess(Agent elem) {
18195
      if (this.success == null) {
18196
        this.success = new ArrayList<Agent>();
18197
      }
18198
      this.success.add(elem);
18199
    }
18200
 
18201
    public List<Agent> getSuccess() {
18202
      return this.success;
18203
    }
18204
 
18205
    public void setSuccess(List<Agent> success) {
18206
      this.success = success;
18207
    }
18208
 
18209
    public void unsetSuccess() {
18210
      this.success = null;
18211
    }
18212
 
18213
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18214
    public boolean isSetSuccess() {
18215
      return this.success != null;
18216
    }
18217
 
18218
    public void setSuccessIsSet(boolean value) {
18219
      if (!value) {
18220
        this.success = null;
18221
      }
18222
    }
18223
 
18224
    public void setFieldValue(_Fields field, Object value) {
18225
      switch (field) {
18226
      case SUCCESS:
18227
        if (value == null) {
18228
          unsetSuccess();
18229
        } else {
18230
          setSuccess((List<Agent>)value);
18231
        }
18232
        break;
18233
 
18234
      }
18235
    }
18236
 
18237
    public Object getFieldValue(_Fields field) {
18238
      switch (field) {
18239
      case SUCCESS:
18240
        return getSuccess();
18241
 
18242
      }
18243
      throw new IllegalStateException();
18244
    }
18245
 
18246
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18247
    public boolean isSet(_Fields field) {
18248
      if (field == null) {
18249
        throw new IllegalArgumentException();
18250
      }
18251
 
18252
      switch (field) {
18253
      case SUCCESS:
18254
        return isSetSuccess();
18255
      }
18256
      throw new IllegalStateException();
18257
    }
18258
 
18259
    @Override
18260
    public boolean equals(Object that) {
18261
      if (that == null)
18262
        return false;
18263
      if (that instanceof getAgents_result)
18264
        return this.equals((getAgents_result)that);
18265
      return false;
18266
    }
18267
 
18268
    public boolean equals(getAgents_result that) {
18269
      if (that == null)
18270
        return false;
18271
 
18272
      boolean this_present_success = true && this.isSetSuccess();
18273
      boolean that_present_success = true && that.isSetSuccess();
18274
      if (this_present_success || that_present_success) {
18275
        if (!(this_present_success && that_present_success))
18276
          return false;
18277
        if (!this.success.equals(that.success))
18278
          return false;
18279
      }
18280
 
18281
      return true;
18282
    }
18283
 
18284
    @Override
18285
    public int hashCode() {
18286
      return 0;
18287
    }
18288
 
18289
    public int compareTo(getAgents_result other) {
18290
      if (!getClass().equals(other.getClass())) {
18291
        return getClass().getName().compareTo(other.getClass().getName());
18292
      }
18293
 
18294
      int lastComparison = 0;
18295
      getAgents_result typedOther = (getAgents_result)other;
18296
 
18297
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18298
      if (lastComparison != 0) {
18299
        return lastComparison;
18300
      }
18301
      if (isSetSuccess()) {
18302
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18303
        if (lastComparison != 0) {
18304
          return lastComparison;
18305
        }
18306
      }
18307
      return 0;
18308
    }
18309
 
18310
    public _Fields fieldForId(int fieldId) {
18311
      return _Fields.findByThriftId(fieldId);
18312
    }
18313
 
18314
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18315
      org.apache.thrift.protocol.TField field;
18316
      iprot.readStructBegin();
18317
      while (true)
18318
      {
18319
        field = iprot.readFieldBegin();
18320
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18321
          break;
18322
        }
18323
        switch (field.id) {
18324
          case 0: // SUCCESS
18325
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18326
              {
5864 rajveer 18327
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
18328
                this.success = new ArrayList<Agent>(_list49.size);
18329
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 18330
                {
5864 rajveer 18331
                  Agent _elem51; // required
18332
                  _elem51 = new Agent();
18333
                  _elem51.read(iprot);
18334
                  this.success.add(_elem51);
4693 mandeep.dh 18335
                }
18336
                iprot.readListEnd();
18337
              }
18338
            } else { 
18339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18340
            }
18341
            break;
18342
          default:
18343
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18344
        }
18345
        iprot.readFieldEnd();
18346
      }
18347
      iprot.readStructEnd();
18348
      validate();
18349
    }
18350
 
18351
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18352
      oprot.writeStructBegin(STRUCT_DESC);
18353
 
18354
      if (this.isSetSuccess()) {
18355
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18356
        {
18357
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 18358
          for (Agent _iter52 : this.success)
4693 mandeep.dh 18359
          {
5864 rajveer 18360
            _iter52.write(oprot);
4693 mandeep.dh 18361
          }
18362
          oprot.writeListEnd();
18363
        }
18364
        oprot.writeFieldEnd();
18365
      }
18366
      oprot.writeFieldStop();
18367
      oprot.writeStructEnd();
18368
    }
18369
 
18370
    @Override
18371
    public String toString() {
18372
      StringBuilder sb = new StringBuilder("getAgents_result(");
18373
      boolean first = true;
18374
 
18375
      sb.append("success:");
18376
      if (this.success == null) {
18377
        sb.append("null");
18378
      } else {
18379
        sb.append(this.success);
18380
      }
18381
      first = false;
18382
      sb.append(")");
18383
      return sb.toString();
18384
    }
18385
 
18386
    public void validate() throws org.apache.thrift.TException {
18387
      // check for required fields
18388
    }
18389
 
18390
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18391
      try {
18392
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18393
      } catch (org.apache.thrift.TException te) {
18394
        throw new java.io.IOException(te);
18395
      }
18396
    }
18397
 
18398
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18399
      try {
18400
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18401
      } catch (org.apache.thrift.TException te) {
18402
        throw new java.io.IOException(te);
18403
      }
18404
    }
18405
 
18406
  }
18407
 
18408
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
18409
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
18410
 
18411
    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);
18412
    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);
18413
 
18414
    private String emailId; // required
18415
    private String password; // required
18416
 
18417
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18418
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18419
      EMAIL_ID((short)1, "emailId"),
18420
      PASSWORD((short)2, "password");
18421
 
18422
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18423
 
18424
      static {
18425
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18426
          byName.put(field.getFieldName(), field);
18427
        }
18428
      }
18429
 
18430
      /**
18431
       * Find the _Fields constant that matches fieldId, or null if its not found.
18432
       */
18433
      public static _Fields findByThriftId(int fieldId) {
18434
        switch(fieldId) {
18435
          case 1: // EMAIL_ID
18436
            return EMAIL_ID;
18437
          case 2: // PASSWORD
18438
            return PASSWORD;
18439
          default:
18440
            return null;
18441
        }
18442
      }
18443
 
18444
      /**
18445
       * Find the _Fields constant that matches fieldId, throwing an exception
18446
       * if it is not found.
18447
       */
18448
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18449
        _Fields fields = findByThriftId(fieldId);
18450
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18451
        return fields;
18452
      }
18453
 
18454
      /**
18455
       * Find the _Fields constant that matches name, or null if its not found.
18456
       */
18457
      public static _Fields findByName(String name) {
18458
        return byName.get(name);
18459
      }
18460
 
18461
      private final short _thriftId;
18462
      private final String _fieldName;
18463
 
18464
      _Fields(short thriftId, String fieldName) {
18465
        _thriftId = thriftId;
18466
        _fieldName = fieldName;
18467
      }
18468
 
18469
      public short getThriftFieldId() {
18470
        return _thriftId;
18471
      }
18472
 
18473
      public String getFieldName() {
18474
        return _fieldName;
18475
      }
18476
    }
18477
 
18478
    // isset id assignments
18479
 
18480
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18481
    static {
18482
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18483
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18484
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18485
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18486
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18487
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18488
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
18489
    }
18490
 
18491
    public validateLogIn_args() {
18492
    }
18493
 
18494
    public validateLogIn_args(
18495
      String emailId,
18496
      String password)
18497
    {
18498
      this();
18499
      this.emailId = emailId;
18500
      this.password = password;
18501
    }
18502
 
18503
    /**
18504
     * Performs a deep copy on <i>other</i>.
18505
     */
18506
    public validateLogIn_args(validateLogIn_args other) {
18507
      if (other.isSetEmailId()) {
18508
        this.emailId = other.emailId;
18509
      }
18510
      if (other.isSetPassword()) {
18511
        this.password = other.password;
18512
      }
18513
    }
18514
 
18515
    public validateLogIn_args deepCopy() {
18516
      return new validateLogIn_args(this);
18517
    }
18518
 
18519
    @Override
18520
    public void clear() {
18521
      this.emailId = null;
18522
      this.password = null;
18523
    }
18524
 
18525
    public String getEmailId() {
18526
      return this.emailId;
18527
    }
18528
 
18529
    public void setEmailId(String emailId) {
18530
      this.emailId = emailId;
18531
    }
18532
 
18533
    public void unsetEmailId() {
18534
      this.emailId = null;
18535
    }
18536
 
18537
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
18538
    public boolean isSetEmailId() {
18539
      return this.emailId != null;
18540
    }
18541
 
18542
    public void setEmailIdIsSet(boolean value) {
18543
      if (!value) {
18544
        this.emailId = null;
18545
      }
18546
    }
18547
 
18548
    public String getPassword() {
18549
      return this.password;
18550
    }
18551
 
18552
    public void setPassword(String password) {
18553
      this.password = password;
18554
    }
18555
 
18556
    public void unsetPassword() {
18557
      this.password = null;
18558
    }
18559
 
18560
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18561
    public boolean isSetPassword() {
18562
      return this.password != null;
18563
    }
18564
 
18565
    public void setPasswordIsSet(boolean value) {
18566
      if (!value) {
18567
        this.password = null;
18568
      }
18569
    }
18570
 
18571
    public void setFieldValue(_Fields field, Object value) {
18572
      switch (field) {
18573
      case EMAIL_ID:
18574
        if (value == null) {
18575
          unsetEmailId();
18576
        } else {
18577
          setEmailId((String)value);
18578
        }
18579
        break;
18580
 
18581
      case PASSWORD:
18582
        if (value == null) {
18583
          unsetPassword();
18584
        } else {
18585
          setPassword((String)value);
18586
        }
18587
        break;
18588
 
18589
      }
18590
    }
18591
 
18592
    public Object getFieldValue(_Fields field) {
18593
      switch (field) {
18594
      case EMAIL_ID:
18595
        return getEmailId();
18596
 
18597
      case PASSWORD:
18598
        return getPassword();
18599
 
18600
      }
18601
      throw new IllegalStateException();
18602
    }
18603
 
18604
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18605
    public boolean isSet(_Fields field) {
18606
      if (field == null) {
18607
        throw new IllegalArgumentException();
18608
      }
18609
 
18610
      switch (field) {
18611
      case EMAIL_ID:
18612
        return isSetEmailId();
18613
      case PASSWORD:
18614
        return isSetPassword();
18615
      }
18616
      throw new IllegalStateException();
18617
    }
18618
 
18619
    @Override
18620
    public boolean equals(Object that) {
18621
      if (that == null)
18622
        return false;
18623
      if (that instanceof validateLogIn_args)
18624
        return this.equals((validateLogIn_args)that);
18625
      return false;
18626
    }
18627
 
18628
    public boolean equals(validateLogIn_args that) {
18629
      if (that == null)
18630
        return false;
18631
 
18632
      boolean this_present_emailId = true && this.isSetEmailId();
18633
      boolean that_present_emailId = true && that.isSetEmailId();
18634
      if (this_present_emailId || that_present_emailId) {
18635
        if (!(this_present_emailId && that_present_emailId))
18636
          return false;
18637
        if (!this.emailId.equals(that.emailId))
18638
          return false;
18639
      }
18640
 
18641
      boolean this_present_password = true && this.isSetPassword();
18642
      boolean that_present_password = true && that.isSetPassword();
18643
      if (this_present_password || that_present_password) {
18644
        if (!(this_present_password && that_present_password))
18645
          return false;
18646
        if (!this.password.equals(that.password))
18647
          return false;
18648
      }
18649
 
18650
      return true;
18651
    }
18652
 
18653
    @Override
18654
    public int hashCode() {
18655
      return 0;
18656
    }
18657
 
18658
    public int compareTo(validateLogIn_args other) {
18659
      if (!getClass().equals(other.getClass())) {
18660
        return getClass().getName().compareTo(other.getClass().getName());
18661
      }
18662
 
18663
      int lastComparison = 0;
18664
      validateLogIn_args typedOther = (validateLogIn_args)other;
18665
 
18666
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
18667
      if (lastComparison != 0) {
18668
        return lastComparison;
18669
      }
18670
      if (isSetEmailId()) {
18671
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
18672
        if (lastComparison != 0) {
18673
          return lastComparison;
18674
        }
18675
      }
18676
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18677
      if (lastComparison != 0) {
18678
        return lastComparison;
18679
      }
18680
      if (isSetPassword()) {
18681
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18682
        if (lastComparison != 0) {
18683
          return lastComparison;
18684
        }
18685
      }
18686
      return 0;
18687
    }
18688
 
18689
    public _Fields fieldForId(int fieldId) {
18690
      return _Fields.findByThriftId(fieldId);
18691
    }
18692
 
18693
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18694
      org.apache.thrift.protocol.TField field;
18695
      iprot.readStructBegin();
18696
      while (true)
18697
      {
18698
        field = iprot.readFieldBegin();
18699
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18700
          break;
18701
        }
18702
        switch (field.id) {
18703
          case 1: // EMAIL_ID
18704
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18705
              this.emailId = iprot.readString();
18706
            } else { 
18707
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18708
            }
18709
            break;
18710
          case 2: // PASSWORD
18711
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18712
              this.password = iprot.readString();
18713
            } else { 
18714
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18715
            }
18716
            break;
18717
          default:
18718
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18719
        }
18720
        iprot.readFieldEnd();
18721
      }
18722
      iprot.readStructEnd();
18723
      validate();
18724
    }
18725
 
18726
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18727
      validate();
18728
 
18729
      oprot.writeStructBegin(STRUCT_DESC);
18730
      if (this.emailId != null) {
18731
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
18732
        oprot.writeString(this.emailId);
18733
        oprot.writeFieldEnd();
18734
      }
18735
      if (this.password != null) {
18736
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18737
        oprot.writeString(this.password);
18738
        oprot.writeFieldEnd();
18739
      }
18740
      oprot.writeFieldStop();
18741
      oprot.writeStructEnd();
18742
    }
18743
 
18744
    @Override
18745
    public String toString() {
18746
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
18747
      boolean first = true;
18748
 
18749
      sb.append("emailId:");
18750
      if (this.emailId == null) {
18751
        sb.append("null");
18752
      } else {
18753
        sb.append(this.emailId);
18754
      }
18755
      first = false;
18756
      if (!first) sb.append(", ");
18757
      sb.append("password:");
18758
      if (this.password == null) {
18759
        sb.append("null");
18760
      } else {
18761
        sb.append(this.password);
18762
      }
18763
      first = false;
18764
      sb.append(")");
18765
      return sb.toString();
18766
    }
18767
 
18768
    public void validate() throws org.apache.thrift.TException {
18769
      // check for required fields
18770
    }
18771
 
18772
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18773
      try {
18774
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18775
      } catch (org.apache.thrift.TException te) {
18776
        throw new java.io.IOException(te);
18777
      }
18778
    }
18779
 
18780
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18781
      try {
18782
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18783
      } catch (org.apache.thrift.TException te) {
18784
        throw new java.io.IOException(te);
18785
      }
18786
    }
18787
 
18788
  }
18789
 
18790
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
18791
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
18792
 
18793
    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);
18794
 
18795
    private boolean success; // required
18796
 
18797
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18798
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18799
      SUCCESS((short)0, "success");
18800
 
18801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18802
 
18803
      static {
18804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18805
          byName.put(field.getFieldName(), field);
18806
        }
18807
      }
18808
 
18809
      /**
18810
       * Find the _Fields constant that matches fieldId, or null if its not found.
18811
       */
18812
      public static _Fields findByThriftId(int fieldId) {
18813
        switch(fieldId) {
18814
          case 0: // SUCCESS
18815
            return SUCCESS;
18816
          default:
18817
            return null;
18818
        }
18819
      }
18820
 
18821
      /**
18822
       * Find the _Fields constant that matches fieldId, throwing an exception
18823
       * if it is not found.
18824
       */
18825
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18826
        _Fields fields = findByThriftId(fieldId);
18827
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18828
        return fields;
18829
      }
18830
 
18831
      /**
18832
       * Find the _Fields constant that matches name, or null if its not found.
18833
       */
18834
      public static _Fields findByName(String name) {
18835
        return byName.get(name);
18836
      }
18837
 
18838
      private final short _thriftId;
18839
      private final String _fieldName;
18840
 
18841
      _Fields(short thriftId, String fieldName) {
18842
        _thriftId = thriftId;
18843
        _fieldName = fieldName;
18844
      }
18845
 
18846
      public short getThriftFieldId() {
18847
        return _thriftId;
18848
      }
18849
 
18850
      public String getFieldName() {
18851
        return _fieldName;
18852
      }
18853
    }
18854
 
18855
    // isset id assignments
18856
    private static final int __SUCCESS_ISSET_ID = 0;
18857
    private BitSet __isset_bit_vector = new BitSet(1);
18858
 
18859
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18860
    static {
18861
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18862
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18863
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18864
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18865
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
18866
    }
18867
 
18868
    public validateLogIn_result() {
18869
    }
18870
 
18871
    public validateLogIn_result(
18872
      boolean success)
18873
    {
18874
      this();
18875
      this.success = success;
18876
      setSuccessIsSet(true);
18877
    }
18878
 
18879
    /**
18880
     * Performs a deep copy on <i>other</i>.
18881
     */
18882
    public validateLogIn_result(validateLogIn_result other) {
18883
      __isset_bit_vector.clear();
18884
      __isset_bit_vector.or(other.__isset_bit_vector);
18885
      this.success = other.success;
18886
    }
18887
 
18888
    public validateLogIn_result deepCopy() {
18889
      return new validateLogIn_result(this);
18890
    }
18891
 
18892
    @Override
18893
    public void clear() {
18894
      setSuccessIsSet(false);
18895
      this.success = false;
18896
    }
18897
 
18898
    public boolean isSuccess() {
18899
      return this.success;
18900
    }
18901
 
18902
    public void setSuccess(boolean success) {
18903
      this.success = success;
18904
      setSuccessIsSet(true);
18905
    }
18906
 
18907
    public void unsetSuccess() {
18908
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18909
    }
18910
 
18911
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18912
    public boolean isSetSuccess() {
18913
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18914
    }
18915
 
18916
    public void setSuccessIsSet(boolean value) {
18917
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18918
    }
18919
 
18920
    public void setFieldValue(_Fields field, Object value) {
18921
      switch (field) {
18922
      case SUCCESS:
18923
        if (value == null) {
18924
          unsetSuccess();
18925
        } else {
18926
          setSuccess((Boolean)value);
18927
        }
18928
        break;
18929
 
18930
      }
18931
    }
18932
 
18933
    public Object getFieldValue(_Fields field) {
18934
      switch (field) {
18935
      case SUCCESS:
18936
        return Boolean.valueOf(isSuccess());
18937
 
18938
      }
18939
      throw new IllegalStateException();
18940
    }
18941
 
18942
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18943
    public boolean isSet(_Fields field) {
18944
      if (field == null) {
18945
        throw new IllegalArgumentException();
18946
      }
18947
 
18948
      switch (field) {
18949
      case SUCCESS:
18950
        return isSetSuccess();
18951
      }
18952
      throw new IllegalStateException();
18953
    }
18954
 
18955
    @Override
18956
    public boolean equals(Object that) {
18957
      if (that == null)
18958
        return false;
18959
      if (that instanceof validateLogIn_result)
18960
        return this.equals((validateLogIn_result)that);
18961
      return false;
18962
    }
18963
 
18964
    public boolean equals(validateLogIn_result that) {
18965
      if (that == null)
18966
        return false;
18967
 
18968
      boolean this_present_success = true;
18969
      boolean that_present_success = true;
18970
      if (this_present_success || that_present_success) {
18971
        if (!(this_present_success && that_present_success))
18972
          return false;
18973
        if (this.success != that.success)
18974
          return false;
18975
      }
18976
 
18977
      return true;
18978
    }
18979
 
18980
    @Override
18981
    public int hashCode() {
18982
      return 0;
18983
    }
18984
 
18985
    public int compareTo(validateLogIn_result other) {
18986
      if (!getClass().equals(other.getClass())) {
18987
        return getClass().getName().compareTo(other.getClass().getName());
18988
      }
18989
 
18990
      int lastComparison = 0;
18991
      validateLogIn_result typedOther = (validateLogIn_result)other;
18992
 
18993
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18994
      if (lastComparison != 0) {
18995
        return lastComparison;
18996
      }
18997
      if (isSetSuccess()) {
18998
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18999
        if (lastComparison != 0) {
19000
          return lastComparison;
19001
        }
19002
      }
19003
      return 0;
19004
    }
19005
 
19006
    public _Fields fieldForId(int fieldId) {
19007
      return _Fields.findByThriftId(fieldId);
19008
    }
19009
 
19010
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19011
      org.apache.thrift.protocol.TField field;
19012
      iprot.readStructBegin();
19013
      while (true)
19014
      {
19015
        field = iprot.readFieldBegin();
19016
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19017
          break;
19018
        }
19019
        switch (field.id) {
19020
          case 0: // SUCCESS
19021
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
19022
              this.success = iprot.readBool();
19023
              setSuccessIsSet(true);
19024
            } else { 
19025
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19026
            }
19027
            break;
19028
          default:
19029
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19030
        }
19031
        iprot.readFieldEnd();
19032
      }
19033
      iprot.readStructEnd();
19034
      validate();
19035
    }
19036
 
19037
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19038
      oprot.writeStructBegin(STRUCT_DESC);
19039
 
19040
      if (this.isSetSuccess()) {
19041
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19042
        oprot.writeBool(this.success);
19043
        oprot.writeFieldEnd();
19044
      }
19045
      oprot.writeFieldStop();
19046
      oprot.writeStructEnd();
19047
    }
19048
 
19049
    @Override
19050
    public String toString() {
19051
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
19052
      boolean first = true;
19053
 
19054
      sb.append("success:");
19055
      sb.append(this.success);
19056
      first = false;
19057
      sb.append(")");
19058
      return sb.toString();
19059
    }
19060
 
19061
    public void validate() throws org.apache.thrift.TException {
19062
      // check for required fields
19063
    }
19064
 
19065
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19066
      try {
19067
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19068
      } catch (org.apache.thrift.TException te) {
19069
        throw new java.io.IOException(te);
19070
      }
19071
    }
19072
 
19073
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19074
      try {
19075
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19076
      } catch (org.apache.thrift.TException te) {
19077
        throw new java.io.IOException(te);
19078
      }
19079
    }
19080
 
19081
  }
19082
 
19083
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
19084
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
19085
 
19086
    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);
19087
    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);
19088
 
19089
    private String agentEmailId; // required
19090
    private String password; // required
19091
 
19092
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19093
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19094
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
19095
      PASSWORD((short)2, "password");
19096
 
19097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19098
 
19099
      static {
19100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19101
          byName.put(field.getFieldName(), field);
19102
        }
19103
      }
19104
 
19105
      /**
19106
       * Find the _Fields constant that matches fieldId, or null if its not found.
19107
       */
19108
      public static _Fields findByThriftId(int fieldId) {
19109
        switch(fieldId) {
19110
          case 1: // AGENT_EMAIL_ID
19111
            return AGENT_EMAIL_ID;
19112
          case 2: // PASSWORD
19113
            return PASSWORD;
19114
          default:
19115
            return null;
19116
        }
19117
      }
19118
 
19119
      /**
19120
       * Find the _Fields constant that matches fieldId, throwing an exception
19121
       * if it is not found.
19122
       */
19123
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19124
        _Fields fields = findByThriftId(fieldId);
19125
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19126
        return fields;
19127
      }
19128
 
19129
      /**
19130
       * Find the _Fields constant that matches name, or null if its not found.
19131
       */
19132
      public static _Fields findByName(String name) {
19133
        return byName.get(name);
19134
      }
19135
 
19136
      private final short _thriftId;
19137
      private final String _fieldName;
19138
 
19139
      _Fields(short thriftId, String fieldName) {
19140
        _thriftId = thriftId;
19141
        _fieldName = fieldName;
19142
      }
19143
 
19144
      public short getThriftFieldId() {
19145
        return _thriftId;
19146
      }
19147
 
19148
      public String getFieldName() {
19149
        return _fieldName;
19150
      }
19151
    }
19152
 
19153
    // isset id assignments
19154
 
19155
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19156
    static {
19157
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19158
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19159
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19160
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19161
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19162
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19163
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
19164
    }
19165
 
19166
    public updatePasswordForAgent_args() {
19167
    }
19168
 
19169
    public updatePasswordForAgent_args(
19170
      String agentEmailId,
19171
      String password)
19172
    {
19173
      this();
19174
      this.agentEmailId = agentEmailId;
19175
      this.password = password;
19176
    }
19177
 
19178
    /**
19179
     * Performs a deep copy on <i>other</i>.
19180
     */
19181
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
19182
      if (other.isSetAgentEmailId()) {
19183
        this.agentEmailId = other.agentEmailId;
19184
      }
19185
      if (other.isSetPassword()) {
19186
        this.password = other.password;
19187
      }
19188
    }
19189
 
19190
    public updatePasswordForAgent_args deepCopy() {
19191
      return new updatePasswordForAgent_args(this);
19192
    }
19193
 
19194
    @Override
19195
    public void clear() {
19196
      this.agentEmailId = null;
19197
      this.password = null;
19198
    }
19199
 
19200
    public String getAgentEmailId() {
19201
      return this.agentEmailId;
19202
    }
19203
 
19204
    public void setAgentEmailId(String agentEmailId) {
19205
      this.agentEmailId = agentEmailId;
19206
    }
19207
 
19208
    public void unsetAgentEmailId() {
19209
      this.agentEmailId = null;
19210
    }
19211
 
19212
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
19213
    public boolean isSetAgentEmailId() {
19214
      return this.agentEmailId != null;
19215
    }
19216
 
19217
    public void setAgentEmailIdIsSet(boolean value) {
19218
      if (!value) {
19219
        this.agentEmailId = null;
19220
      }
19221
    }
19222
 
19223
    public String getPassword() {
19224
      return this.password;
19225
    }
19226
 
19227
    public void setPassword(String password) {
19228
      this.password = password;
19229
    }
19230
 
19231
    public void unsetPassword() {
19232
      this.password = null;
19233
    }
19234
 
19235
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
19236
    public boolean isSetPassword() {
19237
      return this.password != null;
19238
    }
19239
 
19240
    public void setPasswordIsSet(boolean value) {
19241
      if (!value) {
19242
        this.password = null;
19243
      }
19244
    }
19245
 
19246
    public void setFieldValue(_Fields field, Object value) {
19247
      switch (field) {
19248
      case AGENT_EMAIL_ID:
19249
        if (value == null) {
19250
          unsetAgentEmailId();
19251
        } else {
19252
          setAgentEmailId((String)value);
19253
        }
19254
        break;
19255
 
19256
      case PASSWORD:
19257
        if (value == null) {
19258
          unsetPassword();
19259
        } else {
19260
          setPassword((String)value);
19261
        }
19262
        break;
19263
 
19264
      }
19265
    }
19266
 
19267
    public Object getFieldValue(_Fields field) {
19268
      switch (field) {
19269
      case AGENT_EMAIL_ID:
19270
        return getAgentEmailId();
19271
 
19272
      case PASSWORD:
19273
        return getPassword();
19274
 
19275
      }
19276
      throw new IllegalStateException();
19277
    }
19278
 
19279
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19280
    public boolean isSet(_Fields field) {
19281
      if (field == null) {
19282
        throw new IllegalArgumentException();
19283
      }
19284
 
19285
      switch (field) {
19286
      case AGENT_EMAIL_ID:
19287
        return isSetAgentEmailId();
19288
      case PASSWORD:
19289
        return isSetPassword();
19290
      }
19291
      throw new IllegalStateException();
19292
    }
19293
 
19294
    @Override
19295
    public boolean equals(Object that) {
19296
      if (that == null)
19297
        return false;
19298
      if (that instanceof updatePasswordForAgent_args)
19299
        return this.equals((updatePasswordForAgent_args)that);
19300
      return false;
19301
    }
19302
 
19303
    public boolean equals(updatePasswordForAgent_args that) {
19304
      if (that == null)
19305
        return false;
19306
 
19307
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
19308
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
19309
      if (this_present_agentEmailId || that_present_agentEmailId) {
19310
        if (!(this_present_agentEmailId && that_present_agentEmailId))
19311
          return false;
19312
        if (!this.agentEmailId.equals(that.agentEmailId))
19313
          return false;
19314
      }
19315
 
19316
      boolean this_present_password = true && this.isSetPassword();
19317
      boolean that_present_password = true && that.isSetPassword();
19318
      if (this_present_password || that_present_password) {
19319
        if (!(this_present_password && that_present_password))
19320
          return false;
19321
        if (!this.password.equals(that.password))
19322
          return false;
19323
      }
19324
 
19325
      return true;
19326
    }
19327
 
19328
    @Override
19329
    public int hashCode() {
19330
      return 0;
19331
    }
19332
 
19333
    public int compareTo(updatePasswordForAgent_args other) {
19334
      if (!getClass().equals(other.getClass())) {
19335
        return getClass().getName().compareTo(other.getClass().getName());
19336
      }
19337
 
19338
      int lastComparison = 0;
19339
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
19340
 
19341
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
19342
      if (lastComparison != 0) {
19343
        return lastComparison;
19344
      }
19345
      if (isSetAgentEmailId()) {
19346
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
19347
        if (lastComparison != 0) {
19348
          return lastComparison;
19349
        }
19350
      }
19351
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
19352
      if (lastComparison != 0) {
19353
        return lastComparison;
19354
      }
19355
      if (isSetPassword()) {
19356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
19357
        if (lastComparison != 0) {
19358
          return lastComparison;
19359
        }
19360
      }
19361
      return 0;
19362
    }
19363
 
19364
    public _Fields fieldForId(int fieldId) {
19365
      return _Fields.findByThriftId(fieldId);
19366
    }
19367
 
19368
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19369
      org.apache.thrift.protocol.TField field;
19370
      iprot.readStructBegin();
19371
      while (true)
19372
      {
19373
        field = iprot.readFieldBegin();
19374
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19375
          break;
19376
        }
19377
        switch (field.id) {
19378
          case 1: // AGENT_EMAIL_ID
19379
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19380
              this.agentEmailId = iprot.readString();
19381
            } else { 
19382
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19383
            }
19384
            break;
19385
          case 2: // PASSWORD
19386
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19387
              this.password = iprot.readString();
19388
            } else { 
19389
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19390
            }
19391
            break;
19392
          default:
19393
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19394
        }
19395
        iprot.readFieldEnd();
19396
      }
19397
      iprot.readStructEnd();
19398
      validate();
19399
    }
19400
 
19401
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19402
      validate();
19403
 
19404
      oprot.writeStructBegin(STRUCT_DESC);
19405
      if (this.agentEmailId != null) {
19406
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
19407
        oprot.writeString(this.agentEmailId);
19408
        oprot.writeFieldEnd();
19409
      }
19410
      if (this.password != null) {
19411
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
19412
        oprot.writeString(this.password);
19413
        oprot.writeFieldEnd();
19414
      }
19415
      oprot.writeFieldStop();
19416
      oprot.writeStructEnd();
19417
    }
19418
 
19419
    @Override
19420
    public String toString() {
19421
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
19422
      boolean first = true;
19423
 
19424
      sb.append("agentEmailId:");
19425
      if (this.agentEmailId == null) {
19426
        sb.append("null");
19427
      } else {
19428
        sb.append(this.agentEmailId);
19429
      }
19430
      first = false;
19431
      if (!first) sb.append(", ");
19432
      sb.append("password:");
19433
      if (this.password == null) {
19434
        sb.append("null");
19435
      } else {
19436
        sb.append(this.password);
19437
      }
19438
      first = false;
19439
      sb.append(")");
19440
      return sb.toString();
19441
    }
19442
 
19443
    public void validate() throws org.apache.thrift.TException {
19444
      // check for required fields
19445
    }
19446
 
19447
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19448
      try {
19449
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19450
      } catch (org.apache.thrift.TException te) {
19451
        throw new java.io.IOException(te);
19452
      }
19453
    }
19454
 
19455
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19456
      try {
19457
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19458
      } catch (org.apache.thrift.TException te) {
19459
        throw new java.io.IOException(te);
19460
      }
19461
    }
19462
 
19463
  }
19464
 
19465
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
19466
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
19467
 
19468
 
19469
 
19470
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19471
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19472
;
19473
 
19474
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19475
 
19476
      static {
19477
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19478
          byName.put(field.getFieldName(), field);
19479
        }
19480
      }
19481
 
19482
      /**
19483
       * Find the _Fields constant that matches fieldId, or null if its not found.
19484
       */
19485
      public static _Fields findByThriftId(int fieldId) {
19486
        switch(fieldId) {
19487
          default:
19488
            return null;
19489
        }
19490
      }
19491
 
19492
      /**
19493
       * Find the _Fields constant that matches fieldId, throwing an exception
19494
       * if it is not found.
19495
       */
19496
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19497
        _Fields fields = findByThriftId(fieldId);
19498
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19499
        return fields;
19500
      }
19501
 
19502
      /**
19503
       * Find the _Fields constant that matches name, or null if its not found.
19504
       */
19505
      public static _Fields findByName(String name) {
19506
        return byName.get(name);
19507
      }
19508
 
19509
      private final short _thriftId;
19510
      private final String _fieldName;
19511
 
19512
      _Fields(short thriftId, String fieldName) {
19513
        _thriftId = thriftId;
19514
        _fieldName = fieldName;
19515
      }
19516
 
19517
      public short getThriftFieldId() {
19518
        return _thriftId;
19519
      }
19520
 
19521
      public String getFieldName() {
19522
        return _fieldName;
19523
      }
19524
    }
19525
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19526
    static {
19527
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19528
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19529
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
19530
    }
19531
 
19532
    public updatePasswordForAgent_result() {
19533
    }
19534
 
19535
    /**
19536
     * Performs a deep copy on <i>other</i>.
19537
     */
19538
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
19539
    }
19540
 
19541
    public updatePasswordForAgent_result deepCopy() {
19542
      return new updatePasswordForAgent_result(this);
19543
    }
19544
 
19545
    @Override
19546
    public void clear() {
19547
    }
19548
 
19549
    public void setFieldValue(_Fields field, Object value) {
19550
      switch (field) {
19551
      }
19552
    }
19553
 
19554
    public Object getFieldValue(_Fields field) {
19555
      switch (field) {
19556
      }
19557
      throw new IllegalStateException();
19558
    }
19559
 
19560
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19561
    public boolean isSet(_Fields field) {
19562
      if (field == null) {
19563
        throw new IllegalArgumentException();
19564
      }
19565
 
19566
      switch (field) {
19567
      }
19568
      throw new IllegalStateException();
19569
    }
19570
 
19571
    @Override
19572
    public boolean equals(Object that) {
19573
      if (that == null)
19574
        return false;
19575
      if (that instanceof updatePasswordForAgent_result)
19576
        return this.equals((updatePasswordForAgent_result)that);
19577
      return false;
19578
    }
19579
 
19580
    public boolean equals(updatePasswordForAgent_result that) {
19581
      if (that == null)
19582
        return false;
19583
 
19584
      return true;
19585
    }
19586
 
19587
    @Override
19588
    public int hashCode() {
19589
      return 0;
19590
    }
19591
 
19592
    public int compareTo(updatePasswordForAgent_result other) {
19593
      if (!getClass().equals(other.getClass())) {
19594
        return getClass().getName().compareTo(other.getClass().getName());
19595
      }
19596
 
19597
      int lastComparison = 0;
19598
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
19599
 
19600
      return 0;
19601
    }
19602
 
19603
    public _Fields fieldForId(int fieldId) {
19604
      return _Fields.findByThriftId(fieldId);
19605
    }
19606
 
19607
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19608
      org.apache.thrift.protocol.TField field;
19609
      iprot.readStructBegin();
19610
      while (true)
19611
      {
19612
        field = iprot.readFieldBegin();
19613
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19614
          break;
19615
        }
19616
        switch (field.id) {
19617
          default:
19618
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19619
        }
19620
        iprot.readFieldEnd();
19621
      }
19622
      iprot.readStructEnd();
19623
      validate();
19624
    }
19625
 
19626
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19627
      oprot.writeStructBegin(STRUCT_DESC);
19628
 
19629
      oprot.writeFieldStop();
19630
      oprot.writeStructEnd();
19631
    }
19632
 
19633
    @Override
19634
    public String toString() {
19635
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
19636
      boolean first = true;
19637
 
19638
      sb.append(")");
19639
      return sb.toString();
19640
    }
19641
 
19642
    public void validate() throws org.apache.thrift.TException {
19643
      // check for required fields
19644
    }
19645
 
19646
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19647
      try {
19648
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19649
      } catch (org.apache.thrift.TException te) {
19650
        throw new java.io.IOException(te);
19651
      }
19652
    }
19653
 
19654
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19655
      try {
19656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19657
      } catch (org.apache.thrift.TException te) {
19658
        throw new java.io.IOException(te);
19659
      }
19660
    }
19661
 
19662
  }
19663
 
19664
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
19665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
19666
 
19667
    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);
19668
 
19669
    private String agentEmailId; // required
19670
 
19671
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19672
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19673
      AGENT_EMAIL_ID((short)1, "agentEmailId");
19674
 
19675
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19676
 
19677
      static {
19678
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19679
          byName.put(field.getFieldName(), field);
19680
        }
19681
      }
19682
 
19683
      /**
19684
       * Find the _Fields constant that matches fieldId, or null if its not found.
19685
       */
19686
      public static _Fields findByThriftId(int fieldId) {
19687
        switch(fieldId) {
19688
          case 1: // AGENT_EMAIL_ID
19689
            return AGENT_EMAIL_ID;
19690
          default:
19691
            return null;
19692
        }
19693
      }
19694
 
19695
      /**
19696
       * Find the _Fields constant that matches fieldId, throwing an exception
19697
       * if it is not found.
19698
       */
19699
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19700
        _Fields fields = findByThriftId(fieldId);
19701
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19702
        return fields;
19703
      }
19704
 
19705
      /**
19706
       * Find the _Fields constant that matches name, or null if its not found.
19707
       */
19708
      public static _Fields findByName(String name) {
19709
        return byName.get(name);
19710
      }
19711
 
19712
      private final short _thriftId;
19713
      private final String _fieldName;
19714
 
19715
      _Fields(short thriftId, String fieldName) {
19716
        _thriftId = thriftId;
19717
        _fieldName = fieldName;
19718
      }
19719
 
19720
      public short getThriftFieldId() {
19721
        return _thriftId;
19722
      }
19723
 
19724
      public String getFieldName() {
19725
        return _fieldName;
19726
      }
19727
    }
19728
 
19729
    // isset id assignments
19730
 
19731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19732
    static {
19733
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19734
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19735
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19736
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19737
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
19738
    }
19739
 
19740
    public getRoleNamesForAgent_args() {
19741
    }
19742
 
19743
    public getRoleNamesForAgent_args(
19744
      String agentEmailId)
19745
    {
19746
      this();
19747
      this.agentEmailId = agentEmailId;
19748
    }
19749
 
19750
    /**
19751
     * Performs a deep copy on <i>other</i>.
19752
     */
19753
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
19754
      if (other.isSetAgentEmailId()) {
19755
        this.agentEmailId = other.agentEmailId;
19756
      }
19757
    }
19758
 
19759
    public getRoleNamesForAgent_args deepCopy() {
19760
      return new getRoleNamesForAgent_args(this);
19761
    }
19762
 
19763
    @Override
19764
    public void clear() {
19765
      this.agentEmailId = null;
19766
    }
19767
 
19768
    public String getAgentEmailId() {
19769
      return this.agentEmailId;
19770
    }
19771
 
19772
    public void setAgentEmailId(String agentEmailId) {
19773
      this.agentEmailId = agentEmailId;
19774
    }
19775
 
19776
    public void unsetAgentEmailId() {
19777
      this.agentEmailId = null;
19778
    }
19779
 
19780
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
19781
    public boolean isSetAgentEmailId() {
19782
      return this.agentEmailId != null;
19783
    }
19784
 
19785
    public void setAgentEmailIdIsSet(boolean value) {
19786
      if (!value) {
19787
        this.agentEmailId = null;
19788
      }
19789
    }
19790
 
19791
    public void setFieldValue(_Fields field, Object value) {
19792
      switch (field) {
19793
      case AGENT_EMAIL_ID:
19794
        if (value == null) {
19795
          unsetAgentEmailId();
19796
        } else {
19797
          setAgentEmailId((String)value);
19798
        }
19799
        break;
19800
 
19801
      }
19802
    }
19803
 
19804
    public Object getFieldValue(_Fields field) {
19805
      switch (field) {
19806
      case AGENT_EMAIL_ID:
19807
        return getAgentEmailId();
19808
 
19809
      }
19810
      throw new IllegalStateException();
19811
    }
19812
 
19813
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19814
    public boolean isSet(_Fields field) {
19815
      if (field == null) {
19816
        throw new IllegalArgumentException();
19817
      }
19818
 
19819
      switch (field) {
19820
      case AGENT_EMAIL_ID:
19821
        return isSetAgentEmailId();
19822
      }
19823
      throw new IllegalStateException();
19824
    }
19825
 
19826
    @Override
19827
    public boolean equals(Object that) {
19828
      if (that == null)
19829
        return false;
19830
      if (that instanceof getRoleNamesForAgent_args)
19831
        return this.equals((getRoleNamesForAgent_args)that);
19832
      return false;
19833
    }
19834
 
19835
    public boolean equals(getRoleNamesForAgent_args that) {
19836
      if (that == null)
19837
        return false;
19838
 
19839
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
19840
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
19841
      if (this_present_agentEmailId || that_present_agentEmailId) {
19842
        if (!(this_present_agentEmailId && that_present_agentEmailId))
19843
          return false;
19844
        if (!this.agentEmailId.equals(that.agentEmailId))
19845
          return false;
19846
      }
19847
 
19848
      return true;
19849
    }
19850
 
19851
    @Override
19852
    public int hashCode() {
19853
      return 0;
19854
    }
19855
 
19856
    public int compareTo(getRoleNamesForAgent_args other) {
19857
      if (!getClass().equals(other.getClass())) {
19858
        return getClass().getName().compareTo(other.getClass().getName());
19859
      }
19860
 
19861
      int lastComparison = 0;
19862
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
19863
 
19864
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
19865
      if (lastComparison != 0) {
19866
        return lastComparison;
19867
      }
19868
      if (isSetAgentEmailId()) {
19869
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
19870
        if (lastComparison != 0) {
19871
          return lastComparison;
19872
        }
19873
      }
19874
      return 0;
19875
    }
19876
 
19877
    public _Fields fieldForId(int fieldId) {
19878
      return _Fields.findByThriftId(fieldId);
19879
    }
19880
 
19881
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19882
      org.apache.thrift.protocol.TField field;
19883
      iprot.readStructBegin();
19884
      while (true)
19885
      {
19886
        field = iprot.readFieldBegin();
19887
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19888
          break;
19889
        }
19890
        switch (field.id) {
19891
          case 1: // AGENT_EMAIL_ID
19892
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19893
              this.agentEmailId = iprot.readString();
19894
            } else { 
19895
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19896
            }
19897
            break;
19898
          default:
19899
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19900
        }
19901
        iprot.readFieldEnd();
19902
      }
19903
      iprot.readStructEnd();
19904
      validate();
19905
    }
19906
 
19907
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19908
      validate();
19909
 
19910
      oprot.writeStructBegin(STRUCT_DESC);
19911
      if (this.agentEmailId != null) {
19912
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
19913
        oprot.writeString(this.agentEmailId);
19914
        oprot.writeFieldEnd();
19915
      }
19916
      oprot.writeFieldStop();
19917
      oprot.writeStructEnd();
19918
    }
19919
 
19920
    @Override
19921
    public String toString() {
19922
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
19923
      boolean first = true;
19924
 
19925
      sb.append("agentEmailId:");
19926
      if (this.agentEmailId == null) {
19927
        sb.append("null");
19928
      } else {
19929
        sb.append(this.agentEmailId);
19930
      }
19931
      first = false;
19932
      sb.append(")");
19933
      return sb.toString();
19934
    }
19935
 
19936
    public void validate() throws org.apache.thrift.TException {
19937
      // check for required fields
19938
    }
19939
 
19940
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19941
      try {
19942
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19943
      } catch (org.apache.thrift.TException te) {
19944
        throw new java.io.IOException(te);
19945
      }
19946
    }
19947
 
19948
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19949
      try {
19950
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19951
      } catch (org.apache.thrift.TException te) {
19952
        throw new java.io.IOException(te);
19953
      }
19954
    }
19955
 
19956
  }
19957
 
19958
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
19959
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
19960
 
19961
    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);
19962
 
19963
    private List<String> success; // required
19964
 
19965
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19966
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19967
      SUCCESS((short)0, "success");
19968
 
19969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19970
 
19971
      static {
19972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19973
          byName.put(field.getFieldName(), field);
19974
        }
19975
      }
19976
 
19977
      /**
19978
       * Find the _Fields constant that matches fieldId, or null if its not found.
19979
       */
19980
      public static _Fields findByThriftId(int fieldId) {
19981
        switch(fieldId) {
19982
          case 0: // SUCCESS
19983
            return SUCCESS;
19984
          default:
19985
            return null;
19986
        }
19987
      }
19988
 
19989
      /**
19990
       * Find the _Fields constant that matches fieldId, throwing an exception
19991
       * if it is not found.
19992
       */
19993
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19994
        _Fields fields = findByThriftId(fieldId);
19995
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19996
        return fields;
19997
      }
19998
 
19999
      /**
20000
       * Find the _Fields constant that matches name, or null if its not found.
20001
       */
20002
      public static _Fields findByName(String name) {
20003
        return byName.get(name);
20004
      }
20005
 
20006
      private final short _thriftId;
20007
      private final String _fieldName;
20008
 
20009
      _Fields(short thriftId, String fieldName) {
20010
        _thriftId = thriftId;
20011
        _fieldName = fieldName;
20012
      }
20013
 
20014
      public short getThriftFieldId() {
20015
        return _thriftId;
20016
      }
20017
 
20018
      public String getFieldName() {
20019
        return _fieldName;
20020
      }
20021
    }
20022
 
20023
    // isset id assignments
20024
 
20025
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20026
    static {
20027
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20028
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20029
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20030
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
20031
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20032
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
20033
    }
20034
 
20035
    public getRoleNamesForAgent_result() {
20036
    }
20037
 
20038
    public getRoleNamesForAgent_result(
20039
      List<String> success)
20040
    {
20041
      this();
20042
      this.success = success;
20043
    }
20044
 
20045
    /**
20046
     * Performs a deep copy on <i>other</i>.
20047
     */
20048
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
20049
      if (other.isSetSuccess()) {
20050
        List<String> __this__success = new ArrayList<String>();
20051
        for (String other_element : other.success) {
20052
          __this__success.add(other_element);
20053
        }
20054
        this.success = __this__success;
20055
      }
20056
    }
20057
 
20058
    public getRoleNamesForAgent_result deepCopy() {
20059
      return new getRoleNamesForAgent_result(this);
20060
    }
20061
 
20062
    @Override
20063
    public void clear() {
20064
      this.success = null;
20065
    }
20066
 
20067
    public int getSuccessSize() {
20068
      return (this.success == null) ? 0 : this.success.size();
20069
    }
20070
 
20071
    public java.util.Iterator<String> getSuccessIterator() {
20072
      return (this.success == null) ? null : this.success.iterator();
20073
    }
20074
 
20075
    public void addToSuccess(String elem) {
20076
      if (this.success == null) {
20077
        this.success = new ArrayList<String>();
20078
      }
20079
      this.success.add(elem);
20080
    }
20081
 
20082
    public List<String> getSuccess() {
20083
      return this.success;
20084
    }
20085
 
20086
    public void setSuccess(List<String> success) {
20087
      this.success = success;
20088
    }
20089
 
20090
    public void unsetSuccess() {
20091
      this.success = null;
20092
    }
20093
 
20094
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20095
    public boolean isSetSuccess() {
20096
      return this.success != null;
20097
    }
20098
 
20099
    public void setSuccessIsSet(boolean value) {
20100
      if (!value) {
20101
        this.success = null;
20102
      }
20103
    }
20104
 
20105
    public void setFieldValue(_Fields field, Object value) {
20106
      switch (field) {
20107
      case SUCCESS:
20108
        if (value == null) {
20109
          unsetSuccess();
20110
        } else {
20111
          setSuccess((List<String>)value);
20112
        }
20113
        break;
20114
 
20115
      }
20116
    }
20117
 
20118
    public Object getFieldValue(_Fields field) {
20119
      switch (field) {
20120
      case SUCCESS:
20121
        return getSuccess();
20122
 
20123
      }
20124
      throw new IllegalStateException();
20125
    }
20126
 
20127
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20128
    public boolean isSet(_Fields field) {
20129
      if (field == null) {
20130
        throw new IllegalArgumentException();
20131
      }
20132
 
20133
      switch (field) {
20134
      case SUCCESS:
20135
        return isSetSuccess();
20136
      }
20137
      throw new IllegalStateException();
20138
    }
20139
 
20140
    @Override
20141
    public boolean equals(Object that) {
20142
      if (that == null)
20143
        return false;
20144
      if (that instanceof getRoleNamesForAgent_result)
20145
        return this.equals((getRoleNamesForAgent_result)that);
20146
      return false;
20147
    }
20148
 
20149
    public boolean equals(getRoleNamesForAgent_result that) {
20150
      if (that == null)
20151
        return false;
20152
 
20153
      boolean this_present_success = true && this.isSetSuccess();
20154
      boolean that_present_success = true && that.isSetSuccess();
20155
      if (this_present_success || that_present_success) {
20156
        if (!(this_present_success && that_present_success))
20157
          return false;
20158
        if (!this.success.equals(that.success))
20159
          return false;
20160
      }
20161
 
20162
      return true;
20163
    }
20164
 
20165
    @Override
20166
    public int hashCode() {
20167
      return 0;
20168
    }
20169
 
20170
    public int compareTo(getRoleNamesForAgent_result other) {
20171
      if (!getClass().equals(other.getClass())) {
20172
        return getClass().getName().compareTo(other.getClass().getName());
20173
      }
20174
 
20175
      int lastComparison = 0;
20176
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
20177
 
20178
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20179
      if (lastComparison != 0) {
20180
        return lastComparison;
20181
      }
20182
      if (isSetSuccess()) {
20183
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20184
        if (lastComparison != 0) {
20185
          return lastComparison;
20186
        }
20187
      }
20188
      return 0;
20189
    }
20190
 
20191
    public _Fields fieldForId(int fieldId) {
20192
      return _Fields.findByThriftId(fieldId);
20193
    }
20194
 
20195
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20196
      org.apache.thrift.protocol.TField field;
20197
      iprot.readStructBegin();
20198
      while (true)
20199
      {
20200
        field = iprot.readFieldBegin();
20201
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20202
          break;
20203
        }
20204
        switch (field.id) {
20205
          case 0: // SUCCESS
20206
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20207
              {
5864 rajveer 20208
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
20209
                this.success = new ArrayList<String>(_list53.size);
20210
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 20211
                {
5864 rajveer 20212
                  String _elem55; // required
20213
                  _elem55 = iprot.readString();
20214
                  this.success.add(_elem55);
4693 mandeep.dh 20215
                }
20216
                iprot.readListEnd();
20217
              }
20218
            } else { 
20219
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20220
            }
20221
            break;
20222
          default:
20223
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20224
        }
20225
        iprot.readFieldEnd();
20226
      }
20227
      iprot.readStructEnd();
20228
      validate();
20229
    }
20230
 
20231
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20232
      oprot.writeStructBegin(STRUCT_DESC);
20233
 
20234
      if (this.isSetSuccess()) {
20235
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20236
        {
20237
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 20238
          for (String _iter56 : this.success)
4693 mandeep.dh 20239
          {
5864 rajveer 20240
            oprot.writeString(_iter56);
4693 mandeep.dh 20241
          }
20242
          oprot.writeListEnd();
20243
        }
20244
        oprot.writeFieldEnd();
20245
      }
20246
      oprot.writeFieldStop();
20247
      oprot.writeStructEnd();
20248
    }
20249
 
20250
    @Override
20251
    public String toString() {
20252
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
20253
      boolean first = true;
20254
 
20255
      sb.append("success:");
20256
      if (this.success == null) {
20257
        sb.append("null");
20258
      } else {
20259
        sb.append(this.success);
20260
      }
20261
      first = false;
20262
      sb.append(")");
20263
      return sb.toString();
20264
    }
20265
 
20266
    public void validate() throws org.apache.thrift.TException {
20267
      // check for required fields
20268
    }
20269
 
20270
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20271
      try {
20272
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20273
      } catch (org.apache.thrift.TException te) {
20274
        throw new java.io.IOException(te);
20275
      }
20276
    }
20277
 
20278
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20279
      try {
20280
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20281
      } catch (org.apache.thrift.TException te) {
20282
        throw new java.io.IOException(te);
20283
      }
20284
    }
20285
 
20286
  }
20287
 
20288
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
20289
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
20290
 
20291
    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);
20292
 
20293
    private String roleName; // required
20294
 
20295
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20296
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20297
      ROLE_NAME((short)1, "roleName");
20298
 
20299
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20300
 
20301
      static {
20302
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20303
          byName.put(field.getFieldName(), field);
20304
        }
20305
      }
20306
 
20307
      /**
20308
       * Find the _Fields constant that matches fieldId, or null if its not found.
20309
       */
20310
      public static _Fields findByThriftId(int fieldId) {
20311
        switch(fieldId) {
20312
          case 1: // ROLE_NAME
20313
            return ROLE_NAME;
20314
          default:
20315
            return null;
20316
        }
20317
      }
20318
 
20319
      /**
20320
       * Find the _Fields constant that matches fieldId, throwing an exception
20321
       * if it is not found.
20322
       */
20323
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20324
        _Fields fields = findByThriftId(fieldId);
20325
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20326
        return fields;
20327
      }
20328
 
20329
      /**
20330
       * Find the _Fields constant that matches name, or null if its not found.
20331
       */
20332
      public static _Fields findByName(String name) {
20333
        return byName.get(name);
20334
      }
20335
 
20336
      private final short _thriftId;
20337
      private final String _fieldName;
20338
 
20339
      _Fields(short thriftId, String fieldName) {
20340
        _thriftId = thriftId;
20341
        _fieldName = fieldName;
20342
      }
20343
 
20344
      public short getThriftFieldId() {
20345
        return _thriftId;
20346
      }
20347
 
20348
      public String getFieldName() {
20349
        return _fieldName;
20350
      }
20351
    }
20352
 
20353
    // isset id assignments
20354
 
20355
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20356
    static {
20357
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20358
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20359
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20360
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20361
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
20362
    }
20363
 
20364
    public getPermissionsForRoleName_args() {
20365
    }
20366
 
20367
    public getPermissionsForRoleName_args(
20368
      String roleName)
20369
    {
20370
      this();
20371
      this.roleName = roleName;
20372
    }
20373
 
20374
    /**
20375
     * Performs a deep copy on <i>other</i>.
20376
     */
20377
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
20378
      if (other.isSetRoleName()) {
20379
        this.roleName = other.roleName;
20380
      }
20381
    }
20382
 
20383
    public getPermissionsForRoleName_args deepCopy() {
20384
      return new getPermissionsForRoleName_args(this);
20385
    }
20386
 
20387
    @Override
20388
    public void clear() {
20389
      this.roleName = null;
20390
    }
20391
 
20392
    public String getRoleName() {
20393
      return this.roleName;
20394
    }
20395
 
20396
    public void setRoleName(String roleName) {
20397
      this.roleName = roleName;
20398
    }
20399
 
20400
    public void unsetRoleName() {
20401
      this.roleName = null;
20402
    }
20403
 
20404
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
20405
    public boolean isSetRoleName() {
20406
      return this.roleName != null;
20407
    }
20408
 
20409
    public void setRoleNameIsSet(boolean value) {
20410
      if (!value) {
20411
        this.roleName = null;
20412
      }
20413
    }
20414
 
20415
    public void setFieldValue(_Fields field, Object value) {
20416
      switch (field) {
20417
      case ROLE_NAME:
20418
        if (value == null) {
20419
          unsetRoleName();
20420
        } else {
20421
          setRoleName((String)value);
20422
        }
20423
        break;
20424
 
20425
      }
20426
    }
20427
 
20428
    public Object getFieldValue(_Fields field) {
20429
      switch (field) {
20430
      case ROLE_NAME:
20431
        return getRoleName();
20432
 
20433
      }
20434
      throw new IllegalStateException();
20435
    }
20436
 
20437
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20438
    public boolean isSet(_Fields field) {
20439
      if (field == null) {
20440
        throw new IllegalArgumentException();
20441
      }
20442
 
20443
      switch (field) {
20444
      case ROLE_NAME:
20445
        return isSetRoleName();
20446
      }
20447
      throw new IllegalStateException();
20448
    }
20449
 
20450
    @Override
20451
    public boolean equals(Object that) {
20452
      if (that == null)
20453
        return false;
20454
      if (that instanceof getPermissionsForRoleName_args)
20455
        return this.equals((getPermissionsForRoleName_args)that);
20456
      return false;
20457
    }
20458
 
20459
    public boolean equals(getPermissionsForRoleName_args that) {
20460
      if (that == null)
20461
        return false;
20462
 
20463
      boolean this_present_roleName = true && this.isSetRoleName();
20464
      boolean that_present_roleName = true && that.isSetRoleName();
20465
      if (this_present_roleName || that_present_roleName) {
20466
        if (!(this_present_roleName && that_present_roleName))
20467
          return false;
20468
        if (!this.roleName.equals(that.roleName))
20469
          return false;
20470
      }
20471
 
20472
      return true;
20473
    }
20474
 
20475
    @Override
20476
    public int hashCode() {
20477
      return 0;
20478
    }
20479
 
20480
    public int compareTo(getPermissionsForRoleName_args other) {
20481
      if (!getClass().equals(other.getClass())) {
20482
        return getClass().getName().compareTo(other.getClass().getName());
20483
      }
20484
 
20485
      int lastComparison = 0;
20486
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
20487
 
20488
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
20489
      if (lastComparison != 0) {
20490
        return lastComparison;
20491
      }
20492
      if (isSetRoleName()) {
20493
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
20494
        if (lastComparison != 0) {
20495
          return lastComparison;
20496
        }
20497
      }
20498
      return 0;
20499
    }
20500
 
20501
    public _Fields fieldForId(int fieldId) {
20502
      return _Fields.findByThriftId(fieldId);
20503
    }
20504
 
20505
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20506
      org.apache.thrift.protocol.TField field;
20507
      iprot.readStructBegin();
20508
      while (true)
20509
      {
20510
        field = iprot.readFieldBegin();
20511
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20512
          break;
20513
        }
20514
        switch (field.id) {
20515
          case 1: // ROLE_NAME
20516
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20517
              this.roleName = iprot.readString();
20518
            } else { 
20519
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20520
            }
20521
            break;
20522
          default:
20523
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20524
        }
20525
        iprot.readFieldEnd();
20526
      }
20527
      iprot.readStructEnd();
20528
      validate();
20529
    }
20530
 
20531
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20532
      validate();
20533
 
20534
      oprot.writeStructBegin(STRUCT_DESC);
20535
      if (this.roleName != null) {
20536
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
20537
        oprot.writeString(this.roleName);
20538
        oprot.writeFieldEnd();
20539
      }
20540
      oprot.writeFieldStop();
20541
      oprot.writeStructEnd();
20542
    }
20543
 
20544
    @Override
20545
    public String toString() {
20546
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
20547
      boolean first = true;
20548
 
20549
      sb.append("roleName:");
20550
      if (this.roleName == null) {
20551
        sb.append("null");
20552
      } else {
20553
        sb.append(this.roleName);
20554
      }
20555
      first = false;
20556
      sb.append(")");
20557
      return sb.toString();
20558
    }
20559
 
20560
    public void validate() throws org.apache.thrift.TException {
20561
      // check for required fields
20562
    }
20563
 
20564
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20565
      try {
20566
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20567
      } catch (org.apache.thrift.TException te) {
20568
        throw new java.io.IOException(te);
20569
      }
20570
    }
20571
 
20572
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20573
      try {
20574
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20575
      } catch (org.apache.thrift.TException te) {
20576
        throw new java.io.IOException(te);
20577
      }
20578
    }
20579
 
20580
  }
20581
 
20582
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
20583
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
20584
 
20585
    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);
20586
 
20587
    private List<String> success; // required
20588
 
20589
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20590
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20591
      SUCCESS((short)0, "success");
20592
 
20593
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20594
 
20595
      static {
20596
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20597
          byName.put(field.getFieldName(), field);
20598
        }
20599
      }
20600
 
20601
      /**
20602
       * Find the _Fields constant that matches fieldId, or null if its not found.
20603
       */
20604
      public static _Fields findByThriftId(int fieldId) {
20605
        switch(fieldId) {
20606
          case 0: // SUCCESS
20607
            return SUCCESS;
20608
          default:
20609
            return null;
20610
        }
20611
      }
20612
 
20613
      /**
20614
       * Find the _Fields constant that matches fieldId, throwing an exception
20615
       * if it is not found.
20616
       */
20617
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20618
        _Fields fields = findByThriftId(fieldId);
20619
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20620
        return fields;
20621
      }
20622
 
20623
      /**
20624
       * Find the _Fields constant that matches name, or null if its not found.
20625
       */
20626
      public static _Fields findByName(String name) {
20627
        return byName.get(name);
20628
      }
20629
 
20630
      private final short _thriftId;
20631
      private final String _fieldName;
20632
 
20633
      _Fields(short thriftId, String fieldName) {
20634
        _thriftId = thriftId;
20635
        _fieldName = fieldName;
20636
      }
20637
 
20638
      public short getThriftFieldId() {
20639
        return _thriftId;
20640
      }
20641
 
20642
      public String getFieldName() {
20643
        return _fieldName;
20644
      }
20645
    }
20646
 
20647
    // isset id assignments
20648
 
20649
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20650
    static {
20651
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20652
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20653
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20654
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
20655
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20656
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
20657
    }
20658
 
20659
    public getPermissionsForRoleName_result() {
20660
    }
20661
 
20662
    public getPermissionsForRoleName_result(
20663
      List<String> success)
20664
    {
20665
      this();
20666
      this.success = success;
20667
    }
20668
 
20669
    /**
20670
     * Performs a deep copy on <i>other</i>.
20671
     */
20672
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
20673
      if (other.isSetSuccess()) {
20674
        List<String> __this__success = new ArrayList<String>();
20675
        for (String other_element : other.success) {
20676
          __this__success.add(other_element);
20677
        }
20678
        this.success = __this__success;
20679
      }
20680
    }
20681
 
20682
    public getPermissionsForRoleName_result deepCopy() {
20683
      return new getPermissionsForRoleName_result(this);
20684
    }
20685
 
20686
    @Override
20687
    public void clear() {
20688
      this.success = null;
20689
    }
20690
 
20691
    public int getSuccessSize() {
20692
      return (this.success == null) ? 0 : this.success.size();
20693
    }
20694
 
20695
    public java.util.Iterator<String> getSuccessIterator() {
20696
      return (this.success == null) ? null : this.success.iterator();
20697
    }
20698
 
20699
    public void addToSuccess(String elem) {
20700
      if (this.success == null) {
20701
        this.success = new ArrayList<String>();
20702
      }
20703
      this.success.add(elem);
20704
    }
20705
 
20706
    public List<String> getSuccess() {
20707
      return this.success;
20708
    }
20709
 
20710
    public void setSuccess(List<String> success) {
20711
      this.success = success;
20712
    }
20713
 
20714
    public void unsetSuccess() {
20715
      this.success = null;
20716
    }
20717
 
20718
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20719
    public boolean isSetSuccess() {
20720
      return this.success != null;
20721
    }
20722
 
20723
    public void setSuccessIsSet(boolean value) {
20724
      if (!value) {
20725
        this.success = null;
20726
      }
20727
    }
20728
 
20729
    public void setFieldValue(_Fields field, Object value) {
20730
      switch (field) {
20731
      case SUCCESS:
20732
        if (value == null) {
20733
          unsetSuccess();
20734
        } else {
20735
          setSuccess((List<String>)value);
20736
        }
20737
        break;
20738
 
20739
      }
20740
    }
20741
 
20742
    public Object getFieldValue(_Fields field) {
20743
      switch (field) {
20744
      case SUCCESS:
20745
        return getSuccess();
20746
 
20747
      }
20748
      throw new IllegalStateException();
20749
    }
20750
 
20751
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20752
    public boolean isSet(_Fields field) {
20753
      if (field == null) {
20754
        throw new IllegalArgumentException();
20755
      }
20756
 
20757
      switch (field) {
20758
      case SUCCESS:
20759
        return isSetSuccess();
20760
      }
20761
      throw new IllegalStateException();
20762
    }
20763
 
20764
    @Override
20765
    public boolean equals(Object that) {
20766
      if (that == null)
20767
        return false;
20768
      if (that instanceof getPermissionsForRoleName_result)
20769
        return this.equals((getPermissionsForRoleName_result)that);
20770
      return false;
20771
    }
20772
 
20773
    public boolean equals(getPermissionsForRoleName_result that) {
20774
      if (that == null)
20775
        return false;
20776
 
20777
      boolean this_present_success = true && this.isSetSuccess();
20778
      boolean that_present_success = true && that.isSetSuccess();
20779
      if (this_present_success || that_present_success) {
20780
        if (!(this_present_success && that_present_success))
20781
          return false;
20782
        if (!this.success.equals(that.success))
20783
          return false;
20784
      }
20785
 
20786
      return true;
20787
    }
20788
 
20789
    @Override
20790
    public int hashCode() {
20791
      return 0;
20792
    }
20793
 
20794
    public int compareTo(getPermissionsForRoleName_result other) {
20795
      if (!getClass().equals(other.getClass())) {
20796
        return getClass().getName().compareTo(other.getClass().getName());
20797
      }
20798
 
20799
      int lastComparison = 0;
20800
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
20801
 
20802
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20803
      if (lastComparison != 0) {
20804
        return lastComparison;
20805
      }
20806
      if (isSetSuccess()) {
20807
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20808
        if (lastComparison != 0) {
20809
          return lastComparison;
20810
        }
20811
      }
20812
      return 0;
20813
    }
20814
 
20815
    public _Fields fieldForId(int fieldId) {
20816
      return _Fields.findByThriftId(fieldId);
20817
    }
20818
 
20819
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20820
      org.apache.thrift.protocol.TField field;
20821
      iprot.readStructBegin();
20822
      while (true)
20823
      {
20824
        field = iprot.readFieldBegin();
20825
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20826
          break;
20827
        }
20828
        switch (field.id) {
20829
          case 0: // SUCCESS
20830
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20831
              {
5864 rajveer 20832
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
20833
                this.success = new ArrayList<String>(_list57.size);
20834
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 20835
                {
5864 rajveer 20836
                  String _elem59; // required
20837
                  _elem59 = iprot.readString();
20838
                  this.success.add(_elem59);
4693 mandeep.dh 20839
                }
20840
                iprot.readListEnd();
20841
              }
20842
            } else { 
20843
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20844
            }
20845
            break;
20846
          default:
20847
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20848
        }
20849
        iprot.readFieldEnd();
20850
      }
20851
      iprot.readStructEnd();
20852
      validate();
20853
    }
20854
 
20855
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20856
      oprot.writeStructBegin(STRUCT_DESC);
20857
 
20858
      if (this.isSetSuccess()) {
20859
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20860
        {
20861
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 20862
          for (String _iter60 : this.success)
4693 mandeep.dh 20863
          {
5864 rajveer 20864
            oprot.writeString(_iter60);
4693 mandeep.dh 20865
          }
20866
          oprot.writeListEnd();
20867
        }
20868
        oprot.writeFieldEnd();
20869
      }
20870
      oprot.writeFieldStop();
20871
      oprot.writeStructEnd();
20872
    }
20873
 
20874
    @Override
20875
    public String toString() {
20876
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
20877
      boolean first = true;
20878
 
20879
      sb.append("success:");
20880
      if (this.success == null) {
20881
        sb.append("null");
20882
      } else {
20883
        sb.append(this.success);
20884
      }
20885
      first = false;
20886
      sb.append(")");
20887
      return sb.toString();
20888
    }
20889
 
20890
    public void validate() throws org.apache.thrift.TException {
20891
      // check for required fields
20892
    }
20893
 
20894
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20895
      try {
20896
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20897
      } catch (org.apache.thrift.TException te) {
20898
        throw new java.io.IOException(te);
20899
      }
20900
    }
20901
 
20902
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20903
      try {
20904
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20905
      } catch (org.apache.thrift.TException te) {
20906
        throw new java.io.IOException(te);
20907
      }
20908
    }
20909
 
20910
  }
20911
 
4806 varun.gupt 20912
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
20913
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
20914
 
20915
    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);
20916
    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);
20917
 
20918
    private String url; // required
20919
    private String text; // required
20920
 
20921
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20922
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20923
      URL((short)1, "url"),
20924
      TEXT((short)2, "text");
20925
 
20926
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20927
 
20928
      static {
20929
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20930
          byName.put(field.getFieldName(), field);
20931
        }
20932
      }
20933
 
20934
      /**
20935
       * Find the _Fields constant that matches fieldId, or null if its not found.
20936
       */
20937
      public static _Fields findByThriftId(int fieldId) {
20938
        switch(fieldId) {
20939
          case 1: // URL
20940
            return URL;
20941
          case 2: // TEXT
20942
            return TEXT;
20943
          default:
20944
            return null;
20945
        }
20946
      }
20947
 
20948
      /**
20949
       * Find the _Fields constant that matches fieldId, throwing an exception
20950
       * if it is not found.
20951
       */
20952
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20953
        _Fields fields = findByThriftId(fieldId);
20954
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20955
        return fields;
20956
      }
20957
 
20958
      /**
20959
       * Find the _Fields constant that matches name, or null if its not found.
20960
       */
20961
      public static _Fields findByName(String name) {
20962
        return byName.get(name);
20963
      }
20964
 
20965
      private final short _thriftId;
20966
      private final String _fieldName;
20967
 
20968
      _Fields(short thriftId, String fieldName) {
20969
        _thriftId = thriftId;
20970
        _fieldName = fieldName;
20971
      }
20972
 
20973
      public short getThriftFieldId() {
20974
        return _thriftId;
20975
      }
20976
 
20977
      public String getFieldName() {
20978
        return _fieldName;
20979
      }
20980
    }
20981
 
20982
    // isset id assignments
20983
 
20984
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20985
    static {
20986
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20987
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20988
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20989
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20990
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20991
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20992
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
20993
    }
20994
 
20995
    public saveQuickLink_args() {
20996
    }
20997
 
20998
    public saveQuickLink_args(
20999
      String url,
21000
      String text)
21001
    {
21002
      this();
21003
      this.url = url;
21004
      this.text = text;
21005
    }
21006
 
21007
    /**
21008
     * Performs a deep copy on <i>other</i>.
21009
     */
21010
    public saveQuickLink_args(saveQuickLink_args other) {
21011
      if (other.isSetUrl()) {
21012
        this.url = other.url;
21013
      }
21014
      if (other.isSetText()) {
21015
        this.text = other.text;
21016
      }
21017
    }
21018
 
21019
    public saveQuickLink_args deepCopy() {
21020
      return new saveQuickLink_args(this);
21021
    }
21022
 
21023
    @Override
21024
    public void clear() {
21025
      this.url = null;
21026
      this.text = null;
21027
    }
21028
 
21029
    public String getUrl() {
21030
      return this.url;
21031
    }
21032
 
21033
    public void setUrl(String url) {
21034
      this.url = url;
21035
    }
21036
 
21037
    public void unsetUrl() {
21038
      this.url = null;
21039
    }
21040
 
21041
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
21042
    public boolean isSetUrl() {
21043
      return this.url != null;
21044
    }
21045
 
21046
    public void setUrlIsSet(boolean value) {
21047
      if (!value) {
21048
        this.url = null;
21049
      }
21050
    }
21051
 
21052
    public String getText() {
21053
      return this.text;
21054
    }
21055
 
21056
    public void setText(String text) {
21057
      this.text = text;
21058
    }
21059
 
21060
    public void unsetText() {
21061
      this.text = null;
21062
    }
21063
 
21064
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
21065
    public boolean isSetText() {
21066
      return this.text != null;
21067
    }
21068
 
21069
    public void setTextIsSet(boolean value) {
21070
      if (!value) {
21071
        this.text = null;
21072
      }
21073
    }
21074
 
21075
    public void setFieldValue(_Fields field, Object value) {
21076
      switch (field) {
21077
      case URL:
21078
        if (value == null) {
21079
          unsetUrl();
21080
        } else {
21081
          setUrl((String)value);
21082
        }
21083
        break;
21084
 
21085
      case TEXT:
21086
        if (value == null) {
21087
          unsetText();
21088
        } else {
21089
          setText((String)value);
21090
        }
21091
        break;
21092
 
21093
      }
21094
    }
21095
 
21096
    public Object getFieldValue(_Fields field) {
21097
      switch (field) {
21098
      case URL:
21099
        return getUrl();
21100
 
21101
      case TEXT:
21102
        return getText();
21103
 
21104
      }
21105
      throw new IllegalStateException();
21106
    }
21107
 
21108
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21109
    public boolean isSet(_Fields field) {
21110
      if (field == null) {
21111
        throw new IllegalArgumentException();
21112
      }
21113
 
21114
      switch (field) {
21115
      case URL:
21116
        return isSetUrl();
21117
      case TEXT:
21118
        return isSetText();
21119
      }
21120
      throw new IllegalStateException();
21121
    }
21122
 
21123
    @Override
21124
    public boolean equals(Object that) {
21125
      if (that == null)
21126
        return false;
21127
      if (that instanceof saveQuickLink_args)
21128
        return this.equals((saveQuickLink_args)that);
21129
      return false;
21130
    }
21131
 
21132
    public boolean equals(saveQuickLink_args that) {
21133
      if (that == null)
21134
        return false;
21135
 
21136
      boolean this_present_url = true && this.isSetUrl();
21137
      boolean that_present_url = true && that.isSetUrl();
21138
      if (this_present_url || that_present_url) {
21139
        if (!(this_present_url && that_present_url))
21140
          return false;
21141
        if (!this.url.equals(that.url))
21142
          return false;
21143
      }
21144
 
21145
      boolean this_present_text = true && this.isSetText();
21146
      boolean that_present_text = true && that.isSetText();
21147
      if (this_present_text || that_present_text) {
21148
        if (!(this_present_text && that_present_text))
21149
          return false;
21150
        if (!this.text.equals(that.text))
21151
          return false;
21152
      }
21153
 
21154
      return true;
21155
    }
21156
 
21157
    @Override
21158
    public int hashCode() {
21159
      return 0;
21160
    }
21161
 
21162
    public int compareTo(saveQuickLink_args other) {
21163
      if (!getClass().equals(other.getClass())) {
21164
        return getClass().getName().compareTo(other.getClass().getName());
21165
      }
21166
 
21167
      int lastComparison = 0;
21168
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
21169
 
21170
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21171
      if (lastComparison != 0) {
21172
        return lastComparison;
21173
      }
21174
      if (isSetUrl()) {
21175
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21176
        if (lastComparison != 0) {
21177
          return lastComparison;
21178
        }
21179
      }
21180
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21181
      if (lastComparison != 0) {
21182
        return lastComparison;
21183
      }
21184
      if (isSetText()) {
21185
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21186
        if (lastComparison != 0) {
21187
          return lastComparison;
21188
        }
21189
      }
21190
      return 0;
21191
    }
21192
 
21193
    public _Fields fieldForId(int fieldId) {
21194
      return _Fields.findByThriftId(fieldId);
21195
    }
21196
 
21197
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21198
      org.apache.thrift.protocol.TField field;
21199
      iprot.readStructBegin();
21200
      while (true)
21201
      {
21202
        field = iprot.readFieldBegin();
21203
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21204
          break;
21205
        }
21206
        switch (field.id) {
21207
          case 1: // URL
21208
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21209
              this.url = iprot.readString();
21210
            } else { 
21211
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21212
            }
21213
            break;
21214
          case 2: // TEXT
21215
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21216
              this.text = iprot.readString();
21217
            } else { 
21218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21219
            }
21220
            break;
21221
          default:
21222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21223
        }
21224
        iprot.readFieldEnd();
21225
      }
21226
      iprot.readStructEnd();
21227
      validate();
21228
    }
21229
 
21230
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21231
      validate();
21232
 
21233
      oprot.writeStructBegin(STRUCT_DESC);
21234
      if (this.url != null) {
21235
        oprot.writeFieldBegin(URL_FIELD_DESC);
21236
        oprot.writeString(this.url);
21237
        oprot.writeFieldEnd();
21238
      }
21239
      if (this.text != null) {
21240
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21241
        oprot.writeString(this.text);
21242
        oprot.writeFieldEnd();
21243
      }
21244
      oprot.writeFieldStop();
21245
      oprot.writeStructEnd();
21246
    }
21247
 
21248
    @Override
21249
    public String toString() {
21250
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
21251
      boolean first = true;
21252
 
21253
      sb.append("url:");
21254
      if (this.url == null) {
21255
        sb.append("null");
21256
      } else {
21257
        sb.append(this.url);
21258
      }
21259
      first = false;
21260
      if (!first) sb.append(", ");
21261
      sb.append("text:");
21262
      if (this.text == null) {
21263
        sb.append("null");
21264
      } else {
21265
        sb.append(this.text);
21266
      }
21267
      first = false;
21268
      sb.append(")");
21269
      return sb.toString();
21270
    }
21271
 
21272
    public void validate() throws org.apache.thrift.TException {
21273
      // check for required fields
21274
    }
21275
 
21276
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21277
      try {
21278
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21279
      } catch (org.apache.thrift.TException te) {
21280
        throw new java.io.IOException(te);
21281
      }
21282
    }
21283
 
21284
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21285
      try {
21286
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21287
      } catch (org.apache.thrift.TException te) {
21288
        throw new java.io.IOException(te);
21289
      }
21290
    }
21291
 
21292
  }
21293
 
21294
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21295
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
21296
 
21297
    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);
21298
 
21299
    private HelperServiceException hse; // required
21300
 
21301
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21302
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21303
      HSE((short)1, "hse");
21304
 
21305
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21306
 
21307
      static {
21308
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21309
          byName.put(field.getFieldName(), field);
21310
        }
21311
      }
21312
 
21313
      /**
21314
       * Find the _Fields constant that matches fieldId, or null if its not found.
21315
       */
21316
      public static _Fields findByThriftId(int fieldId) {
21317
        switch(fieldId) {
21318
          case 1: // HSE
21319
            return HSE;
21320
          default:
21321
            return null;
21322
        }
21323
      }
21324
 
21325
      /**
21326
       * Find the _Fields constant that matches fieldId, throwing an exception
21327
       * if it is not found.
21328
       */
21329
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21330
        _Fields fields = findByThriftId(fieldId);
21331
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21332
        return fields;
21333
      }
21334
 
21335
      /**
21336
       * Find the _Fields constant that matches name, or null if its not found.
21337
       */
21338
      public static _Fields findByName(String name) {
21339
        return byName.get(name);
21340
      }
21341
 
21342
      private final short _thriftId;
21343
      private final String _fieldName;
21344
 
21345
      _Fields(short thriftId, String fieldName) {
21346
        _thriftId = thriftId;
21347
        _fieldName = fieldName;
21348
      }
21349
 
21350
      public short getThriftFieldId() {
21351
        return _thriftId;
21352
      }
21353
 
21354
      public String getFieldName() {
21355
        return _fieldName;
21356
      }
21357
    }
21358
 
21359
    // isset id assignments
21360
 
21361
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21362
    static {
21363
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21364
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21365
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21366
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21367
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
21368
    }
21369
 
21370
    public saveQuickLink_result() {
21371
    }
21372
 
21373
    public saveQuickLink_result(
21374
      HelperServiceException hse)
21375
    {
21376
      this();
21377
      this.hse = hse;
21378
    }
21379
 
21380
    /**
21381
     * Performs a deep copy on <i>other</i>.
21382
     */
21383
    public saveQuickLink_result(saveQuickLink_result other) {
21384
      if (other.isSetHse()) {
21385
        this.hse = new HelperServiceException(other.hse);
21386
      }
21387
    }
21388
 
21389
    public saveQuickLink_result deepCopy() {
21390
      return new saveQuickLink_result(this);
21391
    }
21392
 
21393
    @Override
21394
    public void clear() {
21395
      this.hse = null;
21396
    }
21397
 
21398
    public HelperServiceException getHse() {
21399
      return this.hse;
21400
    }
21401
 
21402
    public void setHse(HelperServiceException hse) {
21403
      this.hse = hse;
21404
    }
21405
 
21406
    public void unsetHse() {
21407
      this.hse = null;
21408
    }
21409
 
21410
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21411
    public boolean isSetHse() {
21412
      return this.hse != null;
21413
    }
21414
 
21415
    public void setHseIsSet(boolean value) {
21416
      if (!value) {
21417
        this.hse = null;
21418
      }
21419
    }
21420
 
21421
    public void setFieldValue(_Fields field, Object value) {
21422
      switch (field) {
21423
      case HSE:
21424
        if (value == null) {
21425
          unsetHse();
21426
        } else {
21427
          setHse((HelperServiceException)value);
21428
        }
21429
        break;
21430
 
21431
      }
21432
    }
21433
 
21434
    public Object getFieldValue(_Fields field) {
21435
      switch (field) {
21436
      case HSE:
21437
        return getHse();
21438
 
21439
      }
21440
      throw new IllegalStateException();
21441
    }
21442
 
21443
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21444
    public boolean isSet(_Fields field) {
21445
      if (field == null) {
21446
        throw new IllegalArgumentException();
21447
      }
21448
 
21449
      switch (field) {
21450
      case HSE:
21451
        return isSetHse();
21452
      }
21453
      throw new IllegalStateException();
21454
    }
21455
 
21456
    @Override
21457
    public boolean equals(Object that) {
21458
      if (that == null)
21459
        return false;
21460
      if (that instanceof saveQuickLink_result)
21461
        return this.equals((saveQuickLink_result)that);
21462
      return false;
21463
    }
21464
 
21465
    public boolean equals(saveQuickLink_result that) {
21466
      if (that == null)
21467
        return false;
21468
 
21469
      boolean this_present_hse = true && this.isSetHse();
21470
      boolean that_present_hse = true && that.isSetHse();
21471
      if (this_present_hse || that_present_hse) {
21472
        if (!(this_present_hse && that_present_hse))
21473
          return false;
21474
        if (!this.hse.equals(that.hse))
21475
          return false;
21476
      }
21477
 
21478
      return true;
21479
    }
21480
 
21481
    @Override
21482
    public int hashCode() {
21483
      return 0;
21484
    }
21485
 
21486
    public int compareTo(saveQuickLink_result other) {
21487
      if (!getClass().equals(other.getClass())) {
21488
        return getClass().getName().compareTo(other.getClass().getName());
21489
      }
21490
 
21491
      int lastComparison = 0;
21492
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
21493
 
21494
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21495
      if (lastComparison != 0) {
21496
        return lastComparison;
21497
      }
21498
      if (isSetHse()) {
21499
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21500
        if (lastComparison != 0) {
21501
          return lastComparison;
21502
        }
21503
      }
21504
      return 0;
21505
    }
21506
 
21507
    public _Fields fieldForId(int fieldId) {
21508
      return _Fields.findByThriftId(fieldId);
21509
    }
21510
 
21511
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21512
      org.apache.thrift.protocol.TField field;
21513
      iprot.readStructBegin();
21514
      while (true)
21515
      {
21516
        field = iprot.readFieldBegin();
21517
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21518
          break;
21519
        }
21520
        switch (field.id) {
21521
          case 1: // HSE
21522
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21523
              this.hse = new HelperServiceException();
21524
              this.hse.read(iprot);
21525
            } else { 
21526
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21527
            }
21528
            break;
21529
          default:
21530
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21531
        }
21532
        iprot.readFieldEnd();
21533
      }
21534
      iprot.readStructEnd();
21535
      validate();
21536
    }
21537
 
21538
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21539
      oprot.writeStructBegin(STRUCT_DESC);
21540
 
21541
      if (this.isSetHse()) {
21542
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21543
        this.hse.write(oprot);
21544
        oprot.writeFieldEnd();
21545
      }
21546
      oprot.writeFieldStop();
21547
      oprot.writeStructEnd();
21548
    }
21549
 
21550
    @Override
21551
    public String toString() {
21552
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
21553
      boolean first = true;
21554
 
21555
      sb.append("hse:");
21556
      if (this.hse == null) {
21557
        sb.append("null");
21558
      } else {
21559
        sb.append(this.hse);
21560
      }
21561
      first = false;
21562
      sb.append(")");
21563
      return sb.toString();
21564
    }
21565
 
21566
    public void validate() throws org.apache.thrift.TException {
21567
      // check for required fields
21568
    }
21569
 
21570
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21571
      try {
21572
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21573
      } catch (org.apache.thrift.TException te) {
21574
        throw new java.io.IOException(te);
21575
      }
21576
    }
21577
 
21578
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21579
      try {
21580
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21581
      } catch (org.apache.thrift.TException te) {
21582
        throw new java.io.IOException(te);
21583
      }
21584
    }
21585
 
21586
  }
21587
 
21588
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
21589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
21590
 
21591
 
21592
 
21593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21595
;
21596
 
21597
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21598
 
21599
      static {
21600
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21601
          byName.put(field.getFieldName(), field);
21602
        }
21603
      }
21604
 
21605
      /**
21606
       * Find the _Fields constant that matches fieldId, or null if its not found.
21607
       */
21608
      public static _Fields findByThriftId(int fieldId) {
21609
        switch(fieldId) {
21610
          default:
21611
            return null;
21612
        }
21613
      }
21614
 
21615
      /**
21616
       * Find the _Fields constant that matches fieldId, throwing an exception
21617
       * if it is not found.
21618
       */
21619
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21620
        _Fields fields = findByThriftId(fieldId);
21621
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21622
        return fields;
21623
      }
21624
 
21625
      /**
21626
       * Find the _Fields constant that matches name, or null if its not found.
21627
       */
21628
      public static _Fields findByName(String name) {
21629
        return byName.get(name);
21630
      }
21631
 
21632
      private final short _thriftId;
21633
      private final String _fieldName;
21634
 
21635
      _Fields(short thriftId, String fieldName) {
21636
        _thriftId = thriftId;
21637
        _fieldName = fieldName;
21638
      }
21639
 
21640
      public short getThriftFieldId() {
21641
        return _thriftId;
21642
      }
21643
 
21644
      public String getFieldName() {
21645
        return _fieldName;
21646
      }
21647
    }
21648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21649
    static {
21650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
21653
    }
21654
 
21655
    public getQuickLinks_args() {
21656
    }
21657
 
21658
    /**
21659
     * Performs a deep copy on <i>other</i>.
21660
     */
21661
    public getQuickLinks_args(getQuickLinks_args other) {
21662
    }
21663
 
21664
    public getQuickLinks_args deepCopy() {
21665
      return new getQuickLinks_args(this);
21666
    }
21667
 
21668
    @Override
21669
    public void clear() {
21670
    }
21671
 
21672
    public void setFieldValue(_Fields field, Object value) {
21673
      switch (field) {
21674
      }
21675
    }
21676
 
21677
    public Object getFieldValue(_Fields field) {
21678
      switch (field) {
21679
      }
21680
      throw new IllegalStateException();
21681
    }
21682
 
21683
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21684
    public boolean isSet(_Fields field) {
21685
      if (field == null) {
21686
        throw new IllegalArgumentException();
21687
      }
21688
 
21689
      switch (field) {
21690
      }
21691
      throw new IllegalStateException();
21692
    }
21693
 
21694
    @Override
21695
    public boolean equals(Object that) {
21696
      if (that == null)
21697
        return false;
21698
      if (that instanceof getQuickLinks_args)
21699
        return this.equals((getQuickLinks_args)that);
21700
      return false;
21701
    }
21702
 
21703
    public boolean equals(getQuickLinks_args that) {
21704
      if (that == null)
21705
        return false;
21706
 
21707
      return true;
21708
    }
21709
 
21710
    @Override
21711
    public int hashCode() {
21712
      return 0;
21713
    }
21714
 
21715
    public int compareTo(getQuickLinks_args other) {
21716
      if (!getClass().equals(other.getClass())) {
21717
        return getClass().getName().compareTo(other.getClass().getName());
21718
      }
21719
 
21720
      int lastComparison = 0;
21721
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
21722
 
21723
      return 0;
21724
    }
21725
 
21726
    public _Fields fieldForId(int fieldId) {
21727
      return _Fields.findByThriftId(fieldId);
21728
    }
21729
 
21730
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21731
      org.apache.thrift.protocol.TField field;
21732
      iprot.readStructBegin();
21733
      while (true)
21734
      {
21735
        field = iprot.readFieldBegin();
21736
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21737
          break;
21738
        }
21739
        switch (field.id) {
21740
          default:
21741
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21742
        }
21743
        iprot.readFieldEnd();
21744
      }
21745
      iprot.readStructEnd();
21746
      validate();
21747
    }
21748
 
21749
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21750
      validate();
21751
 
21752
      oprot.writeStructBegin(STRUCT_DESC);
21753
      oprot.writeFieldStop();
21754
      oprot.writeStructEnd();
21755
    }
21756
 
21757
    @Override
21758
    public String toString() {
21759
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
21760
      boolean first = true;
21761
 
21762
      sb.append(")");
21763
      return sb.toString();
21764
    }
21765
 
21766
    public void validate() throws org.apache.thrift.TException {
21767
      // check for required fields
21768
    }
21769
 
21770
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21771
      try {
21772
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21773
      } catch (org.apache.thrift.TException te) {
21774
        throw new java.io.IOException(te);
21775
      }
21776
    }
21777
 
21778
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21779
      try {
21780
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21781
      } catch (org.apache.thrift.TException te) {
21782
        throw new java.io.IOException(te);
21783
      }
21784
    }
21785
 
21786
  }
21787
 
21788
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
21789
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
21790
 
21791
    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);
21792
    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);
21793
 
21794
    private List<QuickLink> success; // required
21795
    private HelperServiceException hse; // required
21796
 
21797
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21798
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21799
      SUCCESS((short)0, "success"),
21800
      HSE((short)1, "hse");
21801
 
21802
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21803
 
21804
      static {
21805
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21806
          byName.put(field.getFieldName(), field);
21807
        }
21808
      }
21809
 
21810
      /**
21811
       * Find the _Fields constant that matches fieldId, or null if its not found.
21812
       */
21813
      public static _Fields findByThriftId(int fieldId) {
21814
        switch(fieldId) {
21815
          case 0: // SUCCESS
21816
            return SUCCESS;
21817
          case 1: // HSE
21818
            return HSE;
21819
          default:
21820
            return null;
21821
        }
21822
      }
21823
 
21824
      /**
21825
       * Find the _Fields constant that matches fieldId, throwing an exception
21826
       * if it is not found.
21827
       */
21828
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21829
        _Fields fields = findByThriftId(fieldId);
21830
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21831
        return fields;
21832
      }
21833
 
21834
      /**
21835
       * Find the _Fields constant that matches name, or null if its not found.
21836
       */
21837
      public static _Fields findByName(String name) {
21838
        return byName.get(name);
21839
      }
21840
 
21841
      private final short _thriftId;
21842
      private final String _fieldName;
21843
 
21844
      _Fields(short thriftId, String fieldName) {
21845
        _thriftId = thriftId;
21846
        _fieldName = fieldName;
21847
      }
21848
 
21849
      public short getThriftFieldId() {
21850
        return _thriftId;
21851
      }
21852
 
21853
      public String getFieldName() {
21854
        return _fieldName;
21855
      }
21856
    }
21857
 
21858
    // isset id assignments
21859
 
21860
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21861
    static {
21862
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21863
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21864
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21865
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
21866
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21868
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21869
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
21870
    }
21871
 
21872
    public getQuickLinks_result() {
21873
    }
21874
 
21875
    public getQuickLinks_result(
21876
      List<QuickLink> success,
21877
      HelperServiceException hse)
21878
    {
21879
      this();
21880
      this.success = success;
21881
      this.hse = hse;
21882
    }
21883
 
21884
    /**
21885
     * Performs a deep copy on <i>other</i>.
21886
     */
21887
    public getQuickLinks_result(getQuickLinks_result other) {
21888
      if (other.isSetSuccess()) {
21889
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
21890
        for (QuickLink other_element : other.success) {
21891
          __this__success.add(new QuickLink(other_element));
21892
        }
21893
        this.success = __this__success;
21894
      }
21895
      if (other.isSetHse()) {
21896
        this.hse = new HelperServiceException(other.hse);
21897
      }
21898
    }
21899
 
21900
    public getQuickLinks_result deepCopy() {
21901
      return new getQuickLinks_result(this);
21902
    }
21903
 
21904
    @Override
21905
    public void clear() {
21906
      this.success = null;
21907
      this.hse = null;
21908
    }
21909
 
21910
    public int getSuccessSize() {
21911
      return (this.success == null) ? 0 : this.success.size();
21912
    }
21913
 
21914
    public java.util.Iterator<QuickLink> getSuccessIterator() {
21915
      return (this.success == null) ? null : this.success.iterator();
21916
    }
21917
 
21918
    public void addToSuccess(QuickLink elem) {
21919
      if (this.success == null) {
21920
        this.success = new ArrayList<QuickLink>();
21921
      }
21922
      this.success.add(elem);
21923
    }
21924
 
21925
    public List<QuickLink> getSuccess() {
21926
      return this.success;
21927
    }
21928
 
21929
    public void setSuccess(List<QuickLink> success) {
21930
      this.success = success;
21931
    }
21932
 
21933
    public void unsetSuccess() {
21934
      this.success = null;
21935
    }
21936
 
21937
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21938
    public boolean isSetSuccess() {
21939
      return this.success != null;
21940
    }
21941
 
21942
    public void setSuccessIsSet(boolean value) {
21943
      if (!value) {
21944
        this.success = null;
21945
      }
21946
    }
21947
 
21948
    public HelperServiceException getHse() {
21949
      return this.hse;
21950
    }
21951
 
21952
    public void setHse(HelperServiceException hse) {
21953
      this.hse = hse;
21954
    }
21955
 
21956
    public void unsetHse() {
21957
      this.hse = null;
21958
    }
21959
 
21960
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21961
    public boolean isSetHse() {
21962
      return this.hse != null;
21963
    }
21964
 
21965
    public void setHseIsSet(boolean value) {
21966
      if (!value) {
21967
        this.hse = null;
21968
      }
21969
    }
21970
 
21971
    public void setFieldValue(_Fields field, Object value) {
21972
      switch (field) {
21973
      case SUCCESS:
21974
        if (value == null) {
21975
          unsetSuccess();
21976
        } else {
21977
          setSuccess((List<QuickLink>)value);
21978
        }
21979
        break;
21980
 
21981
      case HSE:
21982
        if (value == null) {
21983
          unsetHse();
21984
        } else {
21985
          setHse((HelperServiceException)value);
21986
        }
21987
        break;
21988
 
21989
      }
21990
    }
21991
 
21992
    public Object getFieldValue(_Fields field) {
21993
      switch (field) {
21994
      case SUCCESS:
21995
        return getSuccess();
21996
 
21997
      case HSE:
21998
        return getHse();
21999
 
22000
      }
22001
      throw new IllegalStateException();
22002
    }
22003
 
22004
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22005
    public boolean isSet(_Fields field) {
22006
      if (field == null) {
22007
        throw new IllegalArgumentException();
22008
      }
22009
 
22010
      switch (field) {
22011
      case SUCCESS:
22012
        return isSetSuccess();
22013
      case HSE:
22014
        return isSetHse();
22015
      }
22016
      throw new IllegalStateException();
22017
    }
22018
 
22019
    @Override
22020
    public boolean equals(Object that) {
22021
      if (that == null)
22022
        return false;
22023
      if (that instanceof getQuickLinks_result)
22024
        return this.equals((getQuickLinks_result)that);
22025
      return false;
22026
    }
22027
 
22028
    public boolean equals(getQuickLinks_result that) {
22029
      if (that == null)
22030
        return false;
22031
 
22032
      boolean this_present_success = true && this.isSetSuccess();
22033
      boolean that_present_success = true && that.isSetSuccess();
22034
      if (this_present_success || that_present_success) {
22035
        if (!(this_present_success && that_present_success))
22036
          return false;
22037
        if (!this.success.equals(that.success))
22038
          return false;
22039
      }
22040
 
22041
      boolean this_present_hse = true && this.isSetHse();
22042
      boolean that_present_hse = true && that.isSetHse();
22043
      if (this_present_hse || that_present_hse) {
22044
        if (!(this_present_hse && that_present_hse))
22045
          return false;
22046
        if (!this.hse.equals(that.hse))
22047
          return false;
22048
      }
22049
 
22050
      return true;
22051
    }
22052
 
22053
    @Override
22054
    public int hashCode() {
22055
      return 0;
22056
    }
22057
 
22058
    public int compareTo(getQuickLinks_result other) {
22059
      if (!getClass().equals(other.getClass())) {
22060
        return getClass().getName().compareTo(other.getClass().getName());
22061
      }
22062
 
22063
      int lastComparison = 0;
22064
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
22065
 
22066
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
22067
      if (lastComparison != 0) {
22068
        return lastComparison;
22069
      }
22070
      if (isSetSuccess()) {
22071
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
22072
        if (lastComparison != 0) {
22073
          return lastComparison;
22074
        }
22075
      }
22076
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22077
      if (lastComparison != 0) {
22078
        return lastComparison;
22079
      }
22080
      if (isSetHse()) {
22081
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22082
        if (lastComparison != 0) {
22083
          return lastComparison;
22084
        }
22085
      }
22086
      return 0;
22087
    }
22088
 
22089
    public _Fields fieldForId(int fieldId) {
22090
      return _Fields.findByThriftId(fieldId);
22091
    }
22092
 
22093
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22094
      org.apache.thrift.protocol.TField field;
22095
      iprot.readStructBegin();
22096
      while (true)
22097
      {
22098
        field = iprot.readFieldBegin();
22099
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22100
          break;
22101
        }
22102
        switch (field.id) {
22103
          case 0: // SUCCESS
22104
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22105
              {
5864 rajveer 22106
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
22107
                this.success = new ArrayList<QuickLink>(_list61.size);
22108
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 22109
                {
5864 rajveer 22110
                  QuickLink _elem63; // required
22111
                  _elem63 = new QuickLink();
22112
                  _elem63.read(iprot);
22113
                  this.success.add(_elem63);
4806 varun.gupt 22114
                }
22115
                iprot.readListEnd();
22116
              }
22117
            } else { 
22118
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22119
            }
22120
            break;
22121
          case 1: // HSE
22122
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22123
              this.hse = new HelperServiceException();
22124
              this.hse.read(iprot);
22125
            } else { 
22126
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22127
            }
22128
            break;
22129
          default:
22130
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22131
        }
22132
        iprot.readFieldEnd();
22133
      }
22134
      iprot.readStructEnd();
22135
      validate();
22136
    }
22137
 
22138
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22139
      oprot.writeStructBegin(STRUCT_DESC);
22140
 
22141
      if (this.isSetSuccess()) {
22142
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22143
        {
22144
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 22145
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 22146
          {
5864 rajveer 22147
            _iter64.write(oprot);
4806 varun.gupt 22148
          }
22149
          oprot.writeListEnd();
22150
        }
22151
        oprot.writeFieldEnd();
22152
      } else if (this.isSetHse()) {
22153
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22154
        this.hse.write(oprot);
22155
        oprot.writeFieldEnd();
22156
      }
22157
      oprot.writeFieldStop();
22158
      oprot.writeStructEnd();
22159
    }
22160
 
22161
    @Override
22162
    public String toString() {
22163
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
22164
      boolean first = true;
22165
 
22166
      sb.append("success:");
22167
      if (this.success == null) {
22168
        sb.append("null");
22169
      } else {
22170
        sb.append(this.success);
22171
      }
22172
      first = false;
22173
      if (!first) sb.append(", ");
22174
      sb.append("hse:");
22175
      if (this.hse == null) {
22176
        sb.append("null");
22177
      } else {
22178
        sb.append(this.hse);
22179
      }
22180
      first = false;
22181
      sb.append(")");
22182
      return sb.toString();
22183
    }
22184
 
22185
    public void validate() throws org.apache.thrift.TException {
22186
      // check for required fields
22187
    }
22188
 
22189
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22190
      try {
22191
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22192
      } catch (org.apache.thrift.TException te) {
22193
        throw new java.io.IOException(te);
22194
      }
22195
    }
22196
 
22197
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22198
      try {
22199
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22200
      } catch (org.apache.thrift.TException te) {
22201
        throw new java.io.IOException(te);
22202
      }
22203
    }
22204
 
22205
  }
22206
 
4996 varun.gupt 22207
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
22208
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
22209
 
22210
    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);
22211
    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);
22212
    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);
22213
 
22214
    private long id; // required
22215
    private String url; // required
22216
    private String text; // required
22217
 
22218
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22219
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22220
      ID((short)1, "id"),
22221
      URL((short)2, "url"),
22222
      TEXT((short)3, "text");
22223
 
22224
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22225
 
22226
      static {
22227
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22228
          byName.put(field.getFieldName(), field);
22229
        }
22230
      }
22231
 
22232
      /**
22233
       * Find the _Fields constant that matches fieldId, or null if its not found.
22234
       */
22235
      public static _Fields findByThriftId(int fieldId) {
22236
        switch(fieldId) {
22237
          case 1: // ID
22238
            return ID;
22239
          case 2: // URL
22240
            return URL;
22241
          case 3: // TEXT
22242
            return TEXT;
22243
          default:
22244
            return null;
22245
        }
22246
      }
22247
 
22248
      /**
22249
       * Find the _Fields constant that matches fieldId, throwing an exception
22250
       * if it is not found.
22251
       */
22252
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22253
        _Fields fields = findByThriftId(fieldId);
22254
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22255
        return fields;
22256
      }
22257
 
22258
      /**
22259
       * Find the _Fields constant that matches name, or null if its not found.
22260
       */
22261
      public static _Fields findByName(String name) {
22262
        return byName.get(name);
22263
      }
22264
 
22265
      private final short _thriftId;
22266
      private final String _fieldName;
22267
 
22268
      _Fields(short thriftId, String fieldName) {
22269
        _thriftId = thriftId;
22270
        _fieldName = fieldName;
22271
      }
22272
 
22273
      public short getThriftFieldId() {
22274
        return _thriftId;
22275
      }
22276
 
22277
      public String getFieldName() {
22278
        return _fieldName;
22279
      }
22280
    }
22281
 
22282
    // isset id assignments
22283
    private static final int __ID_ISSET_ID = 0;
22284
    private BitSet __isset_bit_vector = new BitSet(1);
22285
 
22286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22287
    static {
22288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22289
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22290
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22291
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22292
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22293
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22294
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22295
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22296
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
22297
    }
22298
 
22299
    public updateQuickLink_args() {
22300
    }
22301
 
22302
    public updateQuickLink_args(
22303
      long id,
22304
      String url,
22305
      String text)
22306
    {
22307
      this();
22308
      this.id = id;
22309
      setIdIsSet(true);
22310
      this.url = url;
22311
      this.text = text;
22312
    }
22313
 
22314
    /**
22315
     * Performs a deep copy on <i>other</i>.
22316
     */
22317
    public updateQuickLink_args(updateQuickLink_args other) {
22318
      __isset_bit_vector.clear();
22319
      __isset_bit_vector.or(other.__isset_bit_vector);
22320
      this.id = other.id;
22321
      if (other.isSetUrl()) {
22322
        this.url = other.url;
22323
      }
22324
      if (other.isSetText()) {
22325
        this.text = other.text;
22326
      }
22327
    }
22328
 
22329
    public updateQuickLink_args deepCopy() {
22330
      return new updateQuickLink_args(this);
22331
    }
22332
 
22333
    @Override
22334
    public void clear() {
22335
      setIdIsSet(false);
22336
      this.id = 0;
22337
      this.url = null;
22338
      this.text = null;
22339
    }
22340
 
22341
    public long getId() {
22342
      return this.id;
22343
    }
22344
 
22345
    public void setId(long id) {
22346
      this.id = id;
22347
      setIdIsSet(true);
22348
    }
22349
 
22350
    public void unsetId() {
22351
      __isset_bit_vector.clear(__ID_ISSET_ID);
22352
    }
22353
 
22354
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
22355
    public boolean isSetId() {
22356
      return __isset_bit_vector.get(__ID_ISSET_ID);
22357
    }
22358
 
22359
    public void setIdIsSet(boolean value) {
22360
      __isset_bit_vector.set(__ID_ISSET_ID, value);
22361
    }
22362
 
22363
    public String getUrl() {
22364
      return this.url;
22365
    }
22366
 
22367
    public void setUrl(String url) {
22368
      this.url = url;
22369
    }
22370
 
22371
    public void unsetUrl() {
22372
      this.url = null;
22373
    }
22374
 
22375
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
22376
    public boolean isSetUrl() {
22377
      return this.url != null;
22378
    }
22379
 
22380
    public void setUrlIsSet(boolean value) {
22381
      if (!value) {
22382
        this.url = null;
22383
      }
22384
    }
22385
 
22386
    public String getText() {
22387
      return this.text;
22388
    }
22389
 
22390
    public void setText(String text) {
22391
      this.text = text;
22392
    }
22393
 
22394
    public void unsetText() {
22395
      this.text = null;
22396
    }
22397
 
22398
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
22399
    public boolean isSetText() {
22400
      return this.text != null;
22401
    }
22402
 
22403
    public void setTextIsSet(boolean value) {
22404
      if (!value) {
22405
        this.text = null;
22406
      }
22407
    }
22408
 
22409
    public void setFieldValue(_Fields field, Object value) {
22410
      switch (field) {
22411
      case ID:
22412
        if (value == null) {
22413
          unsetId();
22414
        } else {
22415
          setId((Long)value);
22416
        }
22417
        break;
22418
 
22419
      case URL:
22420
        if (value == null) {
22421
          unsetUrl();
22422
        } else {
22423
          setUrl((String)value);
22424
        }
22425
        break;
22426
 
22427
      case TEXT:
22428
        if (value == null) {
22429
          unsetText();
22430
        } else {
22431
          setText((String)value);
22432
        }
22433
        break;
22434
 
22435
      }
22436
    }
22437
 
22438
    public Object getFieldValue(_Fields field) {
22439
      switch (field) {
22440
      case ID:
22441
        return Long.valueOf(getId());
22442
 
22443
      case URL:
22444
        return getUrl();
22445
 
22446
      case TEXT:
22447
        return getText();
22448
 
22449
      }
22450
      throw new IllegalStateException();
22451
    }
22452
 
22453
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22454
    public boolean isSet(_Fields field) {
22455
      if (field == null) {
22456
        throw new IllegalArgumentException();
22457
      }
22458
 
22459
      switch (field) {
22460
      case ID:
22461
        return isSetId();
22462
      case URL:
22463
        return isSetUrl();
22464
      case TEXT:
22465
        return isSetText();
22466
      }
22467
      throw new IllegalStateException();
22468
    }
22469
 
22470
    @Override
22471
    public boolean equals(Object that) {
22472
      if (that == null)
22473
        return false;
22474
      if (that instanceof updateQuickLink_args)
22475
        return this.equals((updateQuickLink_args)that);
22476
      return false;
22477
    }
22478
 
22479
    public boolean equals(updateQuickLink_args that) {
22480
      if (that == null)
22481
        return false;
22482
 
22483
      boolean this_present_id = true;
22484
      boolean that_present_id = true;
22485
      if (this_present_id || that_present_id) {
22486
        if (!(this_present_id && that_present_id))
22487
          return false;
22488
        if (this.id != that.id)
22489
          return false;
22490
      }
22491
 
22492
      boolean this_present_url = true && this.isSetUrl();
22493
      boolean that_present_url = true && that.isSetUrl();
22494
      if (this_present_url || that_present_url) {
22495
        if (!(this_present_url && that_present_url))
22496
          return false;
22497
        if (!this.url.equals(that.url))
22498
          return false;
22499
      }
22500
 
22501
      boolean this_present_text = true && this.isSetText();
22502
      boolean that_present_text = true && that.isSetText();
22503
      if (this_present_text || that_present_text) {
22504
        if (!(this_present_text && that_present_text))
22505
          return false;
22506
        if (!this.text.equals(that.text))
22507
          return false;
22508
      }
22509
 
22510
      return true;
22511
    }
22512
 
22513
    @Override
22514
    public int hashCode() {
22515
      return 0;
22516
    }
22517
 
22518
    public int compareTo(updateQuickLink_args other) {
22519
      if (!getClass().equals(other.getClass())) {
22520
        return getClass().getName().compareTo(other.getClass().getName());
22521
      }
22522
 
22523
      int lastComparison = 0;
22524
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
22525
 
22526
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
22527
      if (lastComparison != 0) {
22528
        return lastComparison;
22529
      }
22530
      if (isSetId()) {
22531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
22532
        if (lastComparison != 0) {
22533
          return lastComparison;
22534
        }
22535
      }
22536
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
22537
      if (lastComparison != 0) {
22538
        return lastComparison;
22539
      }
22540
      if (isSetUrl()) {
22541
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
22542
        if (lastComparison != 0) {
22543
          return lastComparison;
22544
        }
22545
      }
22546
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
22547
      if (lastComparison != 0) {
22548
        return lastComparison;
22549
      }
22550
      if (isSetText()) {
22551
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
22552
        if (lastComparison != 0) {
22553
          return lastComparison;
22554
        }
22555
      }
22556
      return 0;
22557
    }
22558
 
22559
    public _Fields fieldForId(int fieldId) {
22560
      return _Fields.findByThriftId(fieldId);
22561
    }
22562
 
22563
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22564
      org.apache.thrift.protocol.TField field;
22565
      iprot.readStructBegin();
22566
      while (true)
22567
      {
22568
        field = iprot.readFieldBegin();
22569
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22570
          break;
22571
        }
22572
        switch (field.id) {
22573
          case 1: // ID
22574
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22575
              this.id = iprot.readI64();
22576
              setIdIsSet(true);
22577
            } else { 
22578
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22579
            }
22580
            break;
22581
          case 2: // URL
22582
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22583
              this.url = iprot.readString();
22584
            } else { 
22585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22586
            }
22587
            break;
22588
          case 3: // TEXT
22589
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22590
              this.text = iprot.readString();
22591
            } else { 
22592
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22593
            }
22594
            break;
22595
          default:
22596
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22597
        }
22598
        iprot.readFieldEnd();
22599
      }
22600
      iprot.readStructEnd();
22601
      validate();
22602
    }
22603
 
22604
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22605
      validate();
22606
 
22607
      oprot.writeStructBegin(STRUCT_DESC);
22608
      oprot.writeFieldBegin(ID_FIELD_DESC);
22609
      oprot.writeI64(this.id);
22610
      oprot.writeFieldEnd();
22611
      if (this.url != null) {
22612
        oprot.writeFieldBegin(URL_FIELD_DESC);
22613
        oprot.writeString(this.url);
22614
        oprot.writeFieldEnd();
22615
      }
22616
      if (this.text != null) {
22617
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
22618
        oprot.writeString(this.text);
22619
        oprot.writeFieldEnd();
22620
      }
22621
      oprot.writeFieldStop();
22622
      oprot.writeStructEnd();
22623
    }
22624
 
22625
    @Override
22626
    public String toString() {
22627
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
22628
      boolean first = true;
22629
 
22630
      sb.append("id:");
22631
      sb.append(this.id);
22632
      first = false;
22633
      if (!first) sb.append(", ");
22634
      sb.append("url:");
22635
      if (this.url == null) {
22636
        sb.append("null");
22637
      } else {
22638
        sb.append(this.url);
22639
      }
22640
      first = false;
22641
      if (!first) sb.append(", ");
22642
      sb.append("text:");
22643
      if (this.text == null) {
22644
        sb.append("null");
22645
      } else {
22646
        sb.append(this.text);
22647
      }
22648
      first = false;
22649
      sb.append(")");
22650
      return sb.toString();
22651
    }
22652
 
22653
    public void validate() throws org.apache.thrift.TException {
22654
      // check for required fields
22655
    }
22656
 
22657
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22658
      try {
22659
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22660
      } catch (org.apache.thrift.TException te) {
22661
        throw new java.io.IOException(te);
22662
      }
22663
    }
22664
 
22665
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22666
      try {
22667
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22668
        __isset_bit_vector = new BitSet(1);
22669
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22670
      } catch (org.apache.thrift.TException te) {
22671
        throw new java.io.IOException(te);
22672
      }
22673
    }
22674
 
22675
  }
22676
 
22677
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
22678
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
22679
 
22680
    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);
22681
 
22682
    private HelperServiceException hse; // required
22683
 
22684
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22685
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22686
      HSE((short)1, "hse");
22687
 
22688
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22689
 
22690
      static {
22691
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22692
          byName.put(field.getFieldName(), field);
22693
        }
22694
      }
22695
 
22696
      /**
22697
       * Find the _Fields constant that matches fieldId, or null if its not found.
22698
       */
22699
      public static _Fields findByThriftId(int fieldId) {
22700
        switch(fieldId) {
22701
          case 1: // HSE
22702
            return HSE;
22703
          default:
22704
            return null;
22705
        }
22706
      }
22707
 
22708
      /**
22709
       * Find the _Fields constant that matches fieldId, throwing an exception
22710
       * if it is not found.
22711
       */
22712
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22713
        _Fields fields = findByThriftId(fieldId);
22714
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22715
        return fields;
22716
      }
22717
 
22718
      /**
22719
       * Find the _Fields constant that matches name, or null if its not found.
22720
       */
22721
      public static _Fields findByName(String name) {
22722
        return byName.get(name);
22723
      }
22724
 
22725
      private final short _thriftId;
22726
      private final String _fieldName;
22727
 
22728
      _Fields(short thriftId, String fieldName) {
22729
        _thriftId = thriftId;
22730
        _fieldName = fieldName;
22731
      }
22732
 
22733
      public short getThriftFieldId() {
22734
        return _thriftId;
22735
      }
22736
 
22737
      public String getFieldName() {
22738
        return _fieldName;
22739
      }
22740
    }
22741
 
22742
    // isset id assignments
22743
 
22744
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22745
    static {
22746
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22747
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22748
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22749
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22750
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
22751
    }
22752
 
22753
    public updateQuickLink_result() {
22754
    }
22755
 
22756
    public updateQuickLink_result(
22757
      HelperServiceException hse)
22758
    {
22759
      this();
22760
      this.hse = hse;
22761
    }
22762
 
22763
    /**
22764
     * Performs a deep copy on <i>other</i>.
22765
     */
22766
    public updateQuickLink_result(updateQuickLink_result other) {
22767
      if (other.isSetHse()) {
22768
        this.hse = new HelperServiceException(other.hse);
22769
      }
22770
    }
22771
 
22772
    public updateQuickLink_result deepCopy() {
22773
      return new updateQuickLink_result(this);
22774
    }
22775
 
22776
    @Override
22777
    public void clear() {
22778
      this.hse = null;
22779
    }
22780
 
22781
    public HelperServiceException getHse() {
22782
      return this.hse;
22783
    }
22784
 
22785
    public void setHse(HelperServiceException hse) {
22786
      this.hse = hse;
22787
    }
22788
 
22789
    public void unsetHse() {
22790
      this.hse = null;
22791
    }
22792
 
22793
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22794
    public boolean isSetHse() {
22795
      return this.hse != null;
22796
    }
22797
 
22798
    public void setHseIsSet(boolean value) {
22799
      if (!value) {
22800
        this.hse = null;
22801
      }
22802
    }
22803
 
22804
    public void setFieldValue(_Fields field, Object value) {
22805
      switch (field) {
22806
      case HSE:
22807
        if (value == null) {
22808
          unsetHse();
22809
        } else {
22810
          setHse((HelperServiceException)value);
22811
        }
22812
        break;
22813
 
22814
      }
22815
    }
22816
 
22817
    public Object getFieldValue(_Fields field) {
22818
      switch (field) {
22819
      case HSE:
22820
        return getHse();
22821
 
22822
      }
22823
      throw new IllegalStateException();
22824
    }
22825
 
22826
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22827
    public boolean isSet(_Fields field) {
22828
      if (field == null) {
22829
        throw new IllegalArgumentException();
22830
      }
22831
 
22832
      switch (field) {
22833
      case HSE:
22834
        return isSetHse();
22835
      }
22836
      throw new IllegalStateException();
22837
    }
22838
 
22839
    @Override
22840
    public boolean equals(Object that) {
22841
      if (that == null)
22842
        return false;
22843
      if (that instanceof updateQuickLink_result)
22844
        return this.equals((updateQuickLink_result)that);
22845
      return false;
22846
    }
22847
 
22848
    public boolean equals(updateQuickLink_result that) {
22849
      if (that == null)
22850
        return false;
22851
 
22852
      boolean this_present_hse = true && this.isSetHse();
22853
      boolean that_present_hse = true && that.isSetHse();
22854
      if (this_present_hse || that_present_hse) {
22855
        if (!(this_present_hse && that_present_hse))
22856
          return false;
22857
        if (!this.hse.equals(that.hse))
22858
          return false;
22859
      }
22860
 
22861
      return true;
22862
    }
22863
 
22864
    @Override
22865
    public int hashCode() {
22866
      return 0;
22867
    }
22868
 
22869
    public int compareTo(updateQuickLink_result other) {
22870
      if (!getClass().equals(other.getClass())) {
22871
        return getClass().getName().compareTo(other.getClass().getName());
22872
      }
22873
 
22874
      int lastComparison = 0;
22875
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
22876
 
22877
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22878
      if (lastComparison != 0) {
22879
        return lastComparison;
22880
      }
22881
      if (isSetHse()) {
22882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22883
        if (lastComparison != 0) {
22884
          return lastComparison;
22885
        }
22886
      }
22887
      return 0;
22888
    }
22889
 
22890
    public _Fields fieldForId(int fieldId) {
22891
      return _Fields.findByThriftId(fieldId);
22892
    }
22893
 
22894
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22895
      org.apache.thrift.protocol.TField field;
22896
      iprot.readStructBegin();
22897
      while (true)
22898
      {
22899
        field = iprot.readFieldBegin();
22900
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22901
          break;
22902
        }
22903
        switch (field.id) {
22904
          case 1: // HSE
22905
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22906
              this.hse = new HelperServiceException();
22907
              this.hse.read(iprot);
22908
            } else { 
22909
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22910
            }
22911
            break;
22912
          default:
22913
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22914
        }
22915
        iprot.readFieldEnd();
22916
      }
22917
      iprot.readStructEnd();
22918
      validate();
22919
    }
22920
 
22921
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22922
      oprot.writeStructBegin(STRUCT_DESC);
22923
 
22924
      if (this.isSetHse()) {
22925
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22926
        this.hse.write(oprot);
22927
        oprot.writeFieldEnd();
22928
      }
22929
      oprot.writeFieldStop();
22930
      oprot.writeStructEnd();
22931
    }
22932
 
22933
    @Override
22934
    public String toString() {
22935
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
22936
      boolean first = true;
22937
 
22938
      sb.append("hse:");
22939
      if (this.hse == null) {
22940
        sb.append("null");
22941
      } else {
22942
        sb.append(this.hse);
22943
      }
22944
      first = false;
22945
      sb.append(")");
22946
      return sb.toString();
22947
    }
22948
 
22949
    public void validate() throws org.apache.thrift.TException {
22950
      // check for required fields
22951
    }
22952
 
22953
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22954
      try {
22955
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22956
      } catch (org.apache.thrift.TException te) {
22957
        throw new java.io.IOException(te);
22958
      }
22959
    }
22960
 
22961
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22962
      try {
22963
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22964
      } catch (org.apache.thrift.TException te) {
22965
        throw new java.io.IOException(te);
22966
      }
22967
    }
22968
 
22969
  }
22970
 
5055 varun.gupt 22971
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
22972
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
22973
 
22974
    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);
22975
    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);
22976
 
22977
    private long startDatetime; // required
22978
    private long endDatetime; // required
22979
 
22980
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22981
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22982
      START_DATETIME((short)1, "startDatetime"),
22983
      END_DATETIME((short)2, "endDatetime");
22984
 
22985
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22986
 
22987
      static {
22988
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22989
          byName.put(field.getFieldName(), field);
22990
        }
22991
      }
22992
 
22993
      /**
22994
       * Find the _Fields constant that matches fieldId, or null if its not found.
22995
       */
22996
      public static _Fields findByThriftId(int fieldId) {
22997
        switch(fieldId) {
22998
          case 1: // START_DATETIME
22999
            return START_DATETIME;
23000
          case 2: // END_DATETIME
23001
            return END_DATETIME;
23002
          default:
23003
            return null;
23004
        }
23005
      }
23006
 
23007
      /**
23008
       * Find the _Fields constant that matches fieldId, throwing an exception
23009
       * if it is not found.
23010
       */
23011
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23012
        _Fields fields = findByThriftId(fieldId);
23013
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23014
        return fields;
23015
      }
23016
 
23017
      /**
23018
       * Find the _Fields constant that matches name, or null if its not found.
23019
       */
23020
      public static _Fields findByName(String name) {
23021
        return byName.get(name);
23022
      }
23023
 
23024
      private final short _thriftId;
23025
      private final String _fieldName;
23026
 
23027
      _Fields(short thriftId, String fieldName) {
23028
        _thriftId = thriftId;
23029
        _fieldName = fieldName;
23030
      }
23031
 
23032
      public short getThriftFieldId() {
23033
        return _thriftId;
23034
      }
23035
 
23036
      public String getFieldName() {
23037
        return _fieldName;
23038
      }
23039
    }
23040
 
23041
    // isset id assignments
23042
    private static final int __STARTDATETIME_ISSET_ID = 0;
23043
    private static final int __ENDDATETIME_ISSET_ID = 1;
23044
    private BitSet __isset_bit_vector = new BitSet(2);
23045
 
23046
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23047
    static {
23048
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23049
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23050
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23051
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23052
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23053
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23054
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
23055
    }
23056
 
23057
    public getEmailsForNotificationsSent_args() {
23058
    }
23059
 
23060
    public getEmailsForNotificationsSent_args(
23061
      long startDatetime,
23062
      long endDatetime)
23063
    {
23064
      this();
23065
      this.startDatetime = startDatetime;
23066
      setStartDatetimeIsSet(true);
23067
      this.endDatetime = endDatetime;
23068
      setEndDatetimeIsSet(true);
23069
    }
23070
 
23071
    /**
23072
     * Performs a deep copy on <i>other</i>.
23073
     */
23074
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
23075
      __isset_bit_vector.clear();
23076
      __isset_bit_vector.or(other.__isset_bit_vector);
23077
      this.startDatetime = other.startDatetime;
23078
      this.endDatetime = other.endDatetime;
23079
    }
23080
 
23081
    public getEmailsForNotificationsSent_args deepCopy() {
23082
      return new getEmailsForNotificationsSent_args(this);
23083
    }
23084
 
23085
    @Override
23086
    public void clear() {
23087
      setStartDatetimeIsSet(false);
23088
      this.startDatetime = 0;
23089
      setEndDatetimeIsSet(false);
23090
      this.endDatetime = 0;
23091
    }
23092
 
23093
    public long getStartDatetime() {
23094
      return this.startDatetime;
23095
    }
23096
 
23097
    public void setStartDatetime(long startDatetime) {
23098
      this.startDatetime = startDatetime;
23099
      setStartDatetimeIsSet(true);
23100
    }
23101
 
23102
    public void unsetStartDatetime() {
23103
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
23104
    }
23105
 
23106
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
23107
    public boolean isSetStartDatetime() {
23108
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
23109
    }
23110
 
23111
    public void setStartDatetimeIsSet(boolean value) {
23112
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
23113
    }
23114
 
23115
    public long getEndDatetime() {
23116
      return this.endDatetime;
23117
    }
23118
 
23119
    public void setEndDatetime(long endDatetime) {
23120
      this.endDatetime = endDatetime;
23121
      setEndDatetimeIsSet(true);
23122
    }
23123
 
23124
    public void unsetEndDatetime() {
23125
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
23126
    }
23127
 
23128
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
23129
    public boolean isSetEndDatetime() {
23130
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
23131
    }
23132
 
23133
    public void setEndDatetimeIsSet(boolean value) {
23134
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
23135
    }
23136
 
23137
    public void setFieldValue(_Fields field, Object value) {
23138
      switch (field) {
23139
      case START_DATETIME:
23140
        if (value == null) {
23141
          unsetStartDatetime();
23142
        } else {
23143
          setStartDatetime((Long)value);
23144
        }
23145
        break;
23146
 
23147
      case END_DATETIME:
23148
        if (value == null) {
23149
          unsetEndDatetime();
23150
        } else {
23151
          setEndDatetime((Long)value);
23152
        }
23153
        break;
23154
 
23155
      }
23156
    }
23157
 
23158
    public Object getFieldValue(_Fields field) {
23159
      switch (field) {
23160
      case START_DATETIME:
23161
        return Long.valueOf(getStartDatetime());
23162
 
23163
      case END_DATETIME:
23164
        return Long.valueOf(getEndDatetime());
23165
 
23166
      }
23167
      throw new IllegalStateException();
23168
    }
23169
 
23170
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23171
    public boolean isSet(_Fields field) {
23172
      if (field == null) {
23173
        throw new IllegalArgumentException();
23174
      }
23175
 
23176
      switch (field) {
23177
      case START_DATETIME:
23178
        return isSetStartDatetime();
23179
      case END_DATETIME:
23180
        return isSetEndDatetime();
23181
      }
23182
      throw new IllegalStateException();
23183
    }
23184
 
23185
    @Override
23186
    public boolean equals(Object that) {
23187
      if (that == null)
23188
        return false;
23189
      if (that instanceof getEmailsForNotificationsSent_args)
23190
        return this.equals((getEmailsForNotificationsSent_args)that);
23191
      return false;
23192
    }
23193
 
23194
    public boolean equals(getEmailsForNotificationsSent_args that) {
23195
      if (that == null)
23196
        return false;
23197
 
23198
      boolean this_present_startDatetime = true;
23199
      boolean that_present_startDatetime = true;
23200
      if (this_present_startDatetime || that_present_startDatetime) {
23201
        if (!(this_present_startDatetime && that_present_startDatetime))
23202
          return false;
23203
        if (this.startDatetime != that.startDatetime)
23204
          return false;
23205
      }
23206
 
23207
      boolean this_present_endDatetime = true;
23208
      boolean that_present_endDatetime = true;
23209
      if (this_present_endDatetime || that_present_endDatetime) {
23210
        if (!(this_present_endDatetime && that_present_endDatetime))
23211
          return false;
23212
        if (this.endDatetime != that.endDatetime)
23213
          return false;
23214
      }
23215
 
23216
      return true;
23217
    }
23218
 
23219
    @Override
23220
    public int hashCode() {
23221
      return 0;
23222
    }
23223
 
23224
    public int compareTo(getEmailsForNotificationsSent_args other) {
23225
      if (!getClass().equals(other.getClass())) {
23226
        return getClass().getName().compareTo(other.getClass().getName());
23227
      }
23228
 
23229
      int lastComparison = 0;
23230
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
23231
 
23232
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
23233
      if (lastComparison != 0) {
23234
        return lastComparison;
23235
      }
23236
      if (isSetStartDatetime()) {
23237
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
23238
        if (lastComparison != 0) {
23239
          return lastComparison;
23240
        }
23241
      }
23242
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
23243
      if (lastComparison != 0) {
23244
        return lastComparison;
23245
      }
23246
      if (isSetEndDatetime()) {
23247
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
23248
        if (lastComparison != 0) {
23249
          return lastComparison;
23250
        }
23251
      }
23252
      return 0;
23253
    }
23254
 
23255
    public _Fields fieldForId(int fieldId) {
23256
      return _Fields.findByThriftId(fieldId);
23257
    }
23258
 
23259
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23260
      org.apache.thrift.protocol.TField field;
23261
      iprot.readStructBegin();
23262
      while (true)
23263
      {
23264
        field = iprot.readFieldBegin();
23265
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23266
          break;
23267
        }
23268
        switch (field.id) {
23269
          case 1: // START_DATETIME
23270
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23271
              this.startDatetime = iprot.readI64();
23272
              setStartDatetimeIsSet(true);
23273
            } else { 
23274
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23275
            }
23276
            break;
23277
          case 2: // END_DATETIME
23278
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23279
              this.endDatetime = iprot.readI64();
23280
              setEndDatetimeIsSet(true);
23281
            } else { 
23282
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23283
            }
23284
            break;
23285
          default:
23286
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23287
        }
23288
        iprot.readFieldEnd();
23289
      }
23290
      iprot.readStructEnd();
23291
      validate();
23292
    }
23293
 
23294
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23295
      validate();
23296
 
23297
      oprot.writeStructBegin(STRUCT_DESC);
23298
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
23299
      oprot.writeI64(this.startDatetime);
23300
      oprot.writeFieldEnd();
23301
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
23302
      oprot.writeI64(this.endDatetime);
23303
      oprot.writeFieldEnd();
23304
      oprot.writeFieldStop();
23305
      oprot.writeStructEnd();
23306
    }
23307
 
23308
    @Override
23309
    public String toString() {
23310
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
23311
      boolean first = true;
23312
 
23313
      sb.append("startDatetime:");
23314
      sb.append(this.startDatetime);
23315
      first = false;
23316
      if (!first) sb.append(", ");
23317
      sb.append("endDatetime:");
23318
      sb.append(this.endDatetime);
23319
      first = false;
23320
      sb.append(")");
23321
      return sb.toString();
23322
    }
23323
 
23324
    public void validate() throws org.apache.thrift.TException {
23325
      // check for required fields
23326
    }
23327
 
23328
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23329
      try {
23330
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23331
      } catch (org.apache.thrift.TException te) {
23332
        throw new java.io.IOException(te);
23333
      }
23334
    }
23335
 
23336
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23337
      try {
23338
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23339
      } catch (org.apache.thrift.TException te) {
23340
        throw new java.io.IOException(te);
23341
      }
23342
    }
23343
 
23344
  }
23345
 
23346
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
23347
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
23348
 
23349
    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);
23350
    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);
23351
 
23352
    private List<String> success; // required
23353
    private HelperServiceException hse; // required
23354
 
23355
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23356
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23357
      SUCCESS((short)0, "success"),
23358
      HSE((short)1, "hse");
23359
 
23360
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23361
 
23362
      static {
23363
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23364
          byName.put(field.getFieldName(), field);
23365
        }
23366
      }
23367
 
23368
      /**
23369
       * Find the _Fields constant that matches fieldId, or null if its not found.
23370
       */
23371
      public static _Fields findByThriftId(int fieldId) {
23372
        switch(fieldId) {
23373
          case 0: // SUCCESS
23374
            return SUCCESS;
23375
          case 1: // HSE
23376
            return HSE;
23377
          default:
23378
            return null;
23379
        }
23380
      }
23381
 
23382
      /**
23383
       * Find the _Fields constant that matches fieldId, throwing an exception
23384
       * if it is not found.
23385
       */
23386
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23387
        _Fields fields = findByThriftId(fieldId);
23388
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23389
        return fields;
23390
      }
23391
 
23392
      /**
23393
       * Find the _Fields constant that matches name, or null if its not found.
23394
       */
23395
      public static _Fields findByName(String name) {
23396
        return byName.get(name);
23397
      }
23398
 
23399
      private final short _thriftId;
23400
      private final String _fieldName;
23401
 
23402
      _Fields(short thriftId, String fieldName) {
23403
        _thriftId = thriftId;
23404
        _fieldName = fieldName;
23405
      }
23406
 
23407
      public short getThriftFieldId() {
23408
        return _thriftId;
23409
      }
23410
 
23411
      public String getFieldName() {
23412
        return _fieldName;
23413
      }
23414
    }
23415
 
23416
    // isset id assignments
23417
 
23418
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23419
    static {
23420
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23421
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23422
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23423
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
23424
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23425
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23426
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23427
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
23428
    }
23429
 
23430
    public getEmailsForNotificationsSent_result() {
23431
    }
23432
 
23433
    public getEmailsForNotificationsSent_result(
23434
      List<String> success,
23435
      HelperServiceException hse)
23436
    {
23437
      this();
23438
      this.success = success;
23439
      this.hse = hse;
23440
    }
23441
 
23442
    /**
23443
     * Performs a deep copy on <i>other</i>.
23444
     */
23445
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
23446
      if (other.isSetSuccess()) {
23447
        List<String> __this__success = new ArrayList<String>();
23448
        for (String other_element : other.success) {
23449
          __this__success.add(other_element);
23450
        }
23451
        this.success = __this__success;
23452
      }
23453
      if (other.isSetHse()) {
23454
        this.hse = new HelperServiceException(other.hse);
23455
      }
23456
    }
23457
 
23458
    public getEmailsForNotificationsSent_result deepCopy() {
23459
      return new getEmailsForNotificationsSent_result(this);
23460
    }
23461
 
23462
    @Override
23463
    public void clear() {
23464
      this.success = null;
23465
      this.hse = null;
23466
    }
23467
 
23468
    public int getSuccessSize() {
23469
      return (this.success == null) ? 0 : this.success.size();
23470
    }
23471
 
23472
    public java.util.Iterator<String> getSuccessIterator() {
23473
      return (this.success == null) ? null : this.success.iterator();
23474
    }
23475
 
23476
    public void addToSuccess(String elem) {
23477
      if (this.success == null) {
23478
        this.success = new ArrayList<String>();
23479
      }
23480
      this.success.add(elem);
23481
    }
23482
 
23483
    public List<String> getSuccess() {
23484
      return this.success;
23485
    }
23486
 
23487
    public void setSuccess(List<String> success) {
23488
      this.success = success;
23489
    }
23490
 
23491
    public void unsetSuccess() {
23492
      this.success = null;
23493
    }
23494
 
23495
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23496
    public boolean isSetSuccess() {
23497
      return this.success != null;
23498
    }
23499
 
23500
    public void setSuccessIsSet(boolean value) {
23501
      if (!value) {
23502
        this.success = null;
23503
      }
23504
    }
23505
 
23506
    public HelperServiceException getHse() {
23507
      return this.hse;
23508
    }
23509
 
23510
    public void setHse(HelperServiceException hse) {
23511
      this.hse = hse;
23512
    }
23513
 
23514
    public void unsetHse() {
23515
      this.hse = null;
23516
    }
23517
 
23518
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
23519
    public boolean isSetHse() {
23520
      return this.hse != null;
23521
    }
23522
 
23523
    public void setHseIsSet(boolean value) {
23524
      if (!value) {
23525
        this.hse = null;
23526
      }
23527
    }
23528
 
23529
    public void setFieldValue(_Fields field, Object value) {
23530
      switch (field) {
23531
      case SUCCESS:
23532
        if (value == null) {
23533
          unsetSuccess();
23534
        } else {
23535
          setSuccess((List<String>)value);
23536
        }
23537
        break;
23538
 
23539
      case HSE:
23540
        if (value == null) {
23541
          unsetHse();
23542
        } else {
23543
          setHse((HelperServiceException)value);
23544
        }
23545
        break;
23546
 
23547
      }
23548
    }
23549
 
23550
    public Object getFieldValue(_Fields field) {
23551
      switch (field) {
23552
      case SUCCESS:
23553
        return getSuccess();
23554
 
23555
      case HSE:
23556
        return getHse();
23557
 
23558
      }
23559
      throw new IllegalStateException();
23560
    }
23561
 
23562
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23563
    public boolean isSet(_Fields field) {
23564
      if (field == null) {
23565
        throw new IllegalArgumentException();
23566
      }
23567
 
23568
      switch (field) {
23569
      case SUCCESS:
23570
        return isSetSuccess();
23571
      case HSE:
23572
        return isSetHse();
23573
      }
23574
      throw new IllegalStateException();
23575
    }
23576
 
23577
    @Override
23578
    public boolean equals(Object that) {
23579
      if (that == null)
23580
        return false;
23581
      if (that instanceof getEmailsForNotificationsSent_result)
23582
        return this.equals((getEmailsForNotificationsSent_result)that);
23583
      return false;
23584
    }
23585
 
23586
    public boolean equals(getEmailsForNotificationsSent_result that) {
23587
      if (that == null)
23588
        return false;
23589
 
23590
      boolean this_present_success = true && this.isSetSuccess();
23591
      boolean that_present_success = true && that.isSetSuccess();
23592
      if (this_present_success || that_present_success) {
23593
        if (!(this_present_success && that_present_success))
23594
          return false;
23595
        if (!this.success.equals(that.success))
23596
          return false;
23597
      }
23598
 
23599
      boolean this_present_hse = true && this.isSetHse();
23600
      boolean that_present_hse = true && that.isSetHse();
23601
      if (this_present_hse || that_present_hse) {
23602
        if (!(this_present_hse && that_present_hse))
23603
          return false;
23604
        if (!this.hse.equals(that.hse))
23605
          return false;
23606
      }
23607
 
23608
      return true;
23609
    }
23610
 
23611
    @Override
23612
    public int hashCode() {
23613
      return 0;
23614
    }
23615
 
23616
    public int compareTo(getEmailsForNotificationsSent_result other) {
23617
      if (!getClass().equals(other.getClass())) {
23618
        return getClass().getName().compareTo(other.getClass().getName());
23619
      }
23620
 
23621
      int lastComparison = 0;
23622
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
23623
 
23624
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23625
      if (lastComparison != 0) {
23626
        return lastComparison;
23627
      }
23628
      if (isSetSuccess()) {
23629
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23630
        if (lastComparison != 0) {
23631
          return lastComparison;
23632
        }
23633
      }
23634
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
23635
      if (lastComparison != 0) {
23636
        return lastComparison;
23637
      }
23638
      if (isSetHse()) {
23639
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
23640
        if (lastComparison != 0) {
23641
          return lastComparison;
23642
        }
23643
      }
23644
      return 0;
23645
    }
23646
 
23647
    public _Fields fieldForId(int fieldId) {
23648
      return _Fields.findByThriftId(fieldId);
23649
    }
23650
 
23651
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23652
      org.apache.thrift.protocol.TField field;
23653
      iprot.readStructBegin();
23654
      while (true)
23655
      {
23656
        field = iprot.readFieldBegin();
23657
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23658
          break;
23659
        }
23660
        switch (field.id) {
23661
          case 0: // SUCCESS
23662
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23663
              {
5864 rajveer 23664
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
23665
                this.success = new ArrayList<String>(_list65.size);
23666
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 23667
                {
5864 rajveer 23668
                  String _elem67; // required
23669
                  _elem67 = iprot.readString();
23670
                  this.success.add(_elem67);
5055 varun.gupt 23671
                }
23672
                iprot.readListEnd();
23673
              }
23674
            } else { 
23675
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23676
            }
23677
            break;
23678
          case 1: // HSE
23679
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23680
              this.hse = new HelperServiceException();
23681
              this.hse.read(iprot);
23682
            } else { 
23683
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23684
            }
23685
            break;
23686
          default:
23687
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23688
        }
23689
        iprot.readFieldEnd();
23690
      }
23691
      iprot.readStructEnd();
23692
      validate();
23693
    }
23694
 
23695
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23696
      oprot.writeStructBegin(STRUCT_DESC);
23697
 
23698
      if (this.isSetSuccess()) {
23699
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23700
        {
23701
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 23702
          for (String _iter68 : this.success)
5055 varun.gupt 23703
          {
5864 rajveer 23704
            oprot.writeString(_iter68);
5055 varun.gupt 23705
          }
23706
          oprot.writeListEnd();
23707
        }
23708
        oprot.writeFieldEnd();
23709
      } else if (this.isSetHse()) {
23710
        oprot.writeFieldBegin(HSE_FIELD_DESC);
23711
        this.hse.write(oprot);
23712
        oprot.writeFieldEnd();
23713
      }
23714
      oprot.writeFieldStop();
23715
      oprot.writeStructEnd();
23716
    }
23717
 
23718
    @Override
23719
    public String toString() {
23720
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
23721
      boolean first = true;
23722
 
23723
      sb.append("success:");
23724
      if (this.success == null) {
23725
        sb.append("null");
23726
      } else {
23727
        sb.append(this.success);
23728
      }
23729
      first = false;
23730
      if (!first) sb.append(", ");
23731
      sb.append("hse:");
23732
      if (this.hse == null) {
23733
        sb.append("null");
23734
      } else {
23735
        sb.append(this.hse);
23736
      }
23737
      first = false;
23738
      sb.append(")");
23739
      return sb.toString();
23740
    }
23741
 
23742
    public void validate() throws org.apache.thrift.TException {
23743
      // check for required fields
23744
    }
23745
 
23746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23747
      try {
23748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23749
      } catch (org.apache.thrift.TException te) {
23750
        throw new java.io.IOException(te);
23751
      }
23752
    }
23753
 
23754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23755
      try {
23756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23757
      } catch (org.apache.thrift.TException te) {
23758
        throw new java.io.IOException(te);
23759
      }
23760
    }
23761
 
23762
  }
23763
 
6322 amar.kumar 23764
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
23765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
23766
 
23767
    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);
23768
 
23769
    private long orderId; // required
23770
 
23771
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23772
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23773
      ORDER_ID((short)1, "orderId");
23774
 
23775
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23776
 
23777
      static {
23778
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23779
          byName.put(field.getFieldName(), field);
23780
        }
23781
      }
23782
 
23783
      /**
23784
       * Find the _Fields constant that matches fieldId, or null if its not found.
23785
       */
23786
      public static _Fields findByThriftId(int fieldId) {
23787
        switch(fieldId) {
23788
          case 1: // ORDER_ID
23789
            return ORDER_ID;
23790
          default:
23791
            return null;
23792
        }
23793
      }
23794
 
23795
      /**
23796
       * Find the _Fields constant that matches fieldId, throwing an exception
23797
       * if it is not found.
23798
       */
23799
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23800
        _Fields fields = findByThriftId(fieldId);
23801
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23802
        return fields;
23803
      }
23804
 
23805
      /**
23806
       * Find the _Fields constant that matches name, or null if its not found.
23807
       */
23808
      public static _Fields findByName(String name) {
23809
        return byName.get(name);
23810
      }
23811
 
23812
      private final short _thriftId;
23813
      private final String _fieldName;
23814
 
23815
      _Fields(short thriftId, String fieldName) {
23816
        _thriftId = thriftId;
23817
        _fieldName = fieldName;
23818
      }
23819
 
23820
      public short getThriftFieldId() {
23821
        return _thriftId;
23822
      }
23823
 
23824
      public String getFieldName() {
23825
        return _fieldName;
23826
      }
23827
    }
23828
 
23829
    // isset id assignments
23830
    private static final int __ORDERID_ISSET_ID = 0;
23831
    private BitSet __isset_bit_vector = new BitSet(1);
23832
 
23833
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23834
    static {
23835
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23836
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23837
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23838
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23839
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
23840
    }
23841
 
23842
    public getOrderConfirmationMail_args() {
23843
    }
23844
 
23845
    public getOrderConfirmationMail_args(
23846
      long orderId)
23847
    {
23848
      this();
23849
      this.orderId = orderId;
23850
      setOrderIdIsSet(true);
23851
    }
23852
 
23853
    /**
23854
     * Performs a deep copy on <i>other</i>.
23855
     */
23856
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
23857
      __isset_bit_vector.clear();
23858
      __isset_bit_vector.or(other.__isset_bit_vector);
23859
      this.orderId = other.orderId;
23860
    }
23861
 
23862
    public getOrderConfirmationMail_args deepCopy() {
23863
      return new getOrderConfirmationMail_args(this);
23864
    }
23865
 
23866
    @Override
23867
    public void clear() {
23868
      setOrderIdIsSet(false);
23869
      this.orderId = 0;
23870
    }
23871
 
23872
    public long getOrderId() {
23873
      return this.orderId;
23874
    }
23875
 
23876
    public void setOrderId(long orderId) {
23877
      this.orderId = orderId;
23878
      setOrderIdIsSet(true);
23879
    }
23880
 
23881
    public void unsetOrderId() {
23882
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
23883
    }
23884
 
23885
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
23886
    public boolean isSetOrderId() {
23887
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
23888
    }
23889
 
23890
    public void setOrderIdIsSet(boolean value) {
23891
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
23892
    }
23893
 
23894
    public void setFieldValue(_Fields field, Object value) {
23895
      switch (field) {
23896
      case ORDER_ID:
23897
        if (value == null) {
23898
          unsetOrderId();
23899
        } else {
23900
          setOrderId((Long)value);
23901
        }
23902
        break;
23903
 
23904
      }
23905
    }
23906
 
23907
    public Object getFieldValue(_Fields field) {
23908
      switch (field) {
23909
      case ORDER_ID:
23910
        return Long.valueOf(getOrderId());
23911
 
23912
      }
23913
      throw new IllegalStateException();
23914
    }
23915
 
23916
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23917
    public boolean isSet(_Fields field) {
23918
      if (field == null) {
23919
        throw new IllegalArgumentException();
23920
      }
23921
 
23922
      switch (field) {
23923
      case ORDER_ID:
23924
        return isSetOrderId();
23925
      }
23926
      throw new IllegalStateException();
23927
    }
23928
 
23929
    @Override
23930
    public boolean equals(Object that) {
23931
      if (that == null)
23932
        return false;
23933
      if (that instanceof getOrderConfirmationMail_args)
23934
        return this.equals((getOrderConfirmationMail_args)that);
23935
      return false;
23936
    }
23937
 
23938
    public boolean equals(getOrderConfirmationMail_args that) {
23939
      if (that == null)
23940
        return false;
23941
 
23942
      boolean this_present_orderId = true;
23943
      boolean that_present_orderId = true;
23944
      if (this_present_orderId || that_present_orderId) {
23945
        if (!(this_present_orderId && that_present_orderId))
23946
          return false;
23947
        if (this.orderId != that.orderId)
23948
          return false;
23949
      }
23950
 
23951
      return true;
23952
    }
23953
 
23954
    @Override
23955
    public int hashCode() {
23956
      return 0;
23957
    }
23958
 
23959
    public int compareTo(getOrderConfirmationMail_args other) {
23960
      if (!getClass().equals(other.getClass())) {
23961
        return getClass().getName().compareTo(other.getClass().getName());
23962
      }
23963
 
23964
      int lastComparison = 0;
23965
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
23966
 
23967
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
23968
      if (lastComparison != 0) {
23969
        return lastComparison;
23970
      }
23971
      if (isSetOrderId()) {
23972
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23973
        if (lastComparison != 0) {
23974
          return lastComparison;
23975
        }
23976
      }
23977
      return 0;
23978
    }
23979
 
23980
    public _Fields fieldForId(int fieldId) {
23981
      return _Fields.findByThriftId(fieldId);
23982
    }
23983
 
23984
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23985
      org.apache.thrift.protocol.TField field;
23986
      iprot.readStructBegin();
23987
      while (true)
23988
      {
23989
        field = iprot.readFieldBegin();
23990
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23991
          break;
23992
        }
23993
        switch (field.id) {
23994
          case 1: // ORDER_ID
23995
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23996
              this.orderId = iprot.readI64();
23997
              setOrderIdIsSet(true);
23998
            } else { 
23999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24000
            }
24001
            break;
24002
          default:
24003
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24004
        }
24005
        iprot.readFieldEnd();
24006
      }
24007
      iprot.readStructEnd();
24008
      validate();
24009
    }
24010
 
24011
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24012
      validate();
24013
 
24014
      oprot.writeStructBegin(STRUCT_DESC);
24015
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
24016
      oprot.writeI64(this.orderId);
24017
      oprot.writeFieldEnd();
24018
      oprot.writeFieldStop();
24019
      oprot.writeStructEnd();
24020
    }
24021
 
24022
    @Override
24023
    public String toString() {
24024
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
24025
      boolean first = true;
24026
 
24027
      sb.append("orderId:");
24028
      sb.append(this.orderId);
24029
      first = false;
24030
      sb.append(")");
24031
      return sb.toString();
24032
    }
24033
 
24034
    public void validate() throws org.apache.thrift.TException {
24035
      // check for required fields
24036
    }
24037
 
24038
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24039
      try {
24040
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24041
      } catch (org.apache.thrift.TException te) {
24042
        throw new java.io.IOException(te);
24043
      }
24044
    }
24045
 
24046
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24047
      try {
24048
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24049
        __isset_bit_vector = new BitSet(1);
24050
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24051
      } catch (org.apache.thrift.TException te) {
24052
        throw new java.io.IOException(te);
24053
      }
24054
    }
24055
 
24056
  }
24057
 
24058
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
24059
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
24060
 
24061
    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);
24062
 
24063
    private String success; // required
24064
 
24065
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24066
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24067
      SUCCESS((short)0, "success");
24068
 
24069
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24070
 
24071
      static {
24072
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24073
          byName.put(field.getFieldName(), field);
24074
        }
24075
      }
24076
 
24077
      /**
24078
       * Find the _Fields constant that matches fieldId, or null if its not found.
24079
       */
24080
      public static _Fields findByThriftId(int fieldId) {
24081
        switch(fieldId) {
24082
          case 0: // SUCCESS
24083
            return SUCCESS;
24084
          default:
24085
            return null;
24086
        }
24087
      }
24088
 
24089
      /**
24090
       * Find the _Fields constant that matches fieldId, throwing an exception
24091
       * if it is not found.
24092
       */
24093
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24094
        _Fields fields = findByThriftId(fieldId);
24095
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24096
        return fields;
24097
      }
24098
 
24099
      /**
24100
       * Find the _Fields constant that matches name, or null if its not found.
24101
       */
24102
      public static _Fields findByName(String name) {
24103
        return byName.get(name);
24104
      }
24105
 
24106
      private final short _thriftId;
24107
      private final String _fieldName;
24108
 
24109
      _Fields(short thriftId, String fieldName) {
24110
        _thriftId = thriftId;
24111
        _fieldName = fieldName;
24112
      }
24113
 
24114
      public short getThriftFieldId() {
24115
        return _thriftId;
24116
      }
24117
 
24118
      public String getFieldName() {
24119
        return _fieldName;
24120
      }
24121
    }
24122
 
24123
    // isset id assignments
24124
 
24125
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24126
    static {
24127
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24128
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24129
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24130
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24131
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
24132
    }
24133
 
24134
    public getOrderConfirmationMail_result() {
24135
    }
24136
 
24137
    public getOrderConfirmationMail_result(
24138
      String success)
24139
    {
24140
      this();
24141
      this.success = success;
24142
    }
24143
 
24144
    /**
24145
     * Performs a deep copy on <i>other</i>.
24146
     */
24147
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
24148
      if (other.isSetSuccess()) {
24149
        this.success = other.success;
24150
      }
24151
    }
24152
 
24153
    public getOrderConfirmationMail_result deepCopy() {
24154
      return new getOrderConfirmationMail_result(this);
24155
    }
24156
 
24157
    @Override
24158
    public void clear() {
24159
      this.success = null;
24160
    }
24161
 
24162
    public String getSuccess() {
24163
      return this.success;
24164
    }
24165
 
24166
    public void setSuccess(String success) {
24167
      this.success = success;
24168
    }
24169
 
24170
    public void unsetSuccess() {
24171
      this.success = null;
24172
    }
24173
 
24174
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24175
    public boolean isSetSuccess() {
24176
      return this.success != null;
24177
    }
24178
 
24179
    public void setSuccessIsSet(boolean value) {
24180
      if (!value) {
24181
        this.success = null;
24182
      }
24183
    }
24184
 
24185
    public void setFieldValue(_Fields field, Object value) {
24186
      switch (field) {
24187
      case SUCCESS:
24188
        if (value == null) {
24189
          unsetSuccess();
24190
        } else {
24191
          setSuccess((String)value);
24192
        }
24193
        break;
24194
 
24195
      }
24196
    }
24197
 
24198
    public Object getFieldValue(_Fields field) {
24199
      switch (field) {
24200
      case SUCCESS:
24201
        return getSuccess();
24202
 
24203
      }
24204
      throw new IllegalStateException();
24205
    }
24206
 
24207
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24208
    public boolean isSet(_Fields field) {
24209
      if (field == null) {
24210
        throw new IllegalArgumentException();
24211
      }
24212
 
24213
      switch (field) {
24214
      case SUCCESS:
24215
        return isSetSuccess();
24216
      }
24217
      throw new IllegalStateException();
24218
    }
24219
 
24220
    @Override
24221
    public boolean equals(Object that) {
24222
      if (that == null)
24223
        return false;
24224
      if (that instanceof getOrderConfirmationMail_result)
24225
        return this.equals((getOrderConfirmationMail_result)that);
24226
      return false;
24227
    }
24228
 
24229
    public boolean equals(getOrderConfirmationMail_result that) {
24230
      if (that == null)
24231
        return false;
24232
 
24233
      boolean this_present_success = true && this.isSetSuccess();
24234
      boolean that_present_success = true && that.isSetSuccess();
24235
      if (this_present_success || that_present_success) {
24236
        if (!(this_present_success && that_present_success))
24237
          return false;
24238
        if (!this.success.equals(that.success))
24239
          return false;
24240
      }
24241
 
24242
      return true;
24243
    }
24244
 
24245
    @Override
24246
    public int hashCode() {
24247
      return 0;
24248
    }
24249
 
24250
    public int compareTo(getOrderConfirmationMail_result other) {
24251
      if (!getClass().equals(other.getClass())) {
24252
        return getClass().getName().compareTo(other.getClass().getName());
24253
      }
24254
 
24255
      int lastComparison = 0;
24256
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
24257
 
24258
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24259
      if (lastComparison != 0) {
24260
        return lastComparison;
24261
      }
24262
      if (isSetSuccess()) {
24263
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24264
        if (lastComparison != 0) {
24265
          return lastComparison;
24266
        }
24267
      }
24268
      return 0;
24269
    }
24270
 
24271
    public _Fields fieldForId(int fieldId) {
24272
      return _Fields.findByThriftId(fieldId);
24273
    }
24274
 
24275
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24276
      org.apache.thrift.protocol.TField field;
24277
      iprot.readStructBegin();
24278
      while (true)
24279
      {
24280
        field = iprot.readFieldBegin();
24281
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24282
          break;
24283
        }
24284
        switch (field.id) {
24285
          case 0: // SUCCESS
24286
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24287
              this.success = iprot.readString();
24288
            } else { 
24289
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24290
            }
24291
            break;
24292
          default:
24293
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24294
        }
24295
        iprot.readFieldEnd();
24296
      }
24297
      iprot.readStructEnd();
24298
      validate();
24299
    }
24300
 
24301
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24302
      oprot.writeStructBegin(STRUCT_DESC);
24303
 
24304
      if (this.isSetSuccess()) {
24305
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24306
        oprot.writeString(this.success);
24307
        oprot.writeFieldEnd();
24308
      }
24309
      oprot.writeFieldStop();
24310
      oprot.writeStructEnd();
24311
    }
24312
 
24313
    @Override
24314
    public String toString() {
24315
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
24316
      boolean first = true;
24317
 
24318
      sb.append("success:");
24319
      if (this.success == null) {
24320
        sb.append("null");
24321
      } else {
24322
        sb.append(this.success);
24323
      }
24324
      first = false;
24325
      sb.append(")");
24326
      return sb.toString();
24327
    }
24328
 
24329
    public void validate() throws org.apache.thrift.TException {
24330
      // check for required fields
24331
    }
24332
 
24333
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24334
      try {
24335
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24336
      } catch (org.apache.thrift.TException te) {
24337
        throw new java.io.IOException(te);
24338
      }
24339
    }
24340
 
24341
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24342
      try {
24343
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24344
      } catch (org.apache.thrift.TException te) {
24345
        throw new java.io.IOException(te);
24346
      }
24347
    }
24348
 
24349
  }
24350
 
7221 kshitij.so 24351
  public static class getOrderDeliveryMail_args implements org.apache.thrift.TBase<getOrderDeliveryMail_args, getOrderDeliveryMail_args._Fields>, java.io.Serializable, Cloneable   {
24352
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_args");
24353
 
24354
    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);
24355
 
24356
    private long orderId; // required
24357
 
24358
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24359
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24360
      ORDER_ID((short)1, "orderId");
24361
 
24362
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24363
 
24364
      static {
24365
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24366
          byName.put(field.getFieldName(), field);
24367
        }
24368
      }
24369
 
24370
      /**
24371
       * Find the _Fields constant that matches fieldId, or null if its not found.
24372
       */
24373
      public static _Fields findByThriftId(int fieldId) {
24374
        switch(fieldId) {
24375
          case 1: // ORDER_ID
24376
            return ORDER_ID;
24377
          default:
24378
            return null;
24379
        }
24380
      }
24381
 
24382
      /**
24383
       * Find the _Fields constant that matches fieldId, throwing an exception
24384
       * if it is not found.
24385
       */
24386
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24387
        _Fields fields = findByThriftId(fieldId);
24388
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24389
        return fields;
24390
      }
24391
 
24392
      /**
24393
       * Find the _Fields constant that matches name, or null if its not found.
24394
       */
24395
      public static _Fields findByName(String name) {
24396
        return byName.get(name);
24397
      }
24398
 
24399
      private final short _thriftId;
24400
      private final String _fieldName;
24401
 
24402
      _Fields(short thriftId, String fieldName) {
24403
        _thriftId = thriftId;
24404
        _fieldName = fieldName;
24405
      }
24406
 
24407
      public short getThriftFieldId() {
24408
        return _thriftId;
24409
      }
24410
 
24411
      public String getFieldName() {
24412
        return _fieldName;
24413
      }
24414
    }
24415
 
24416
    // isset id assignments
24417
    private static final int __ORDERID_ISSET_ID = 0;
24418
    private BitSet __isset_bit_vector = new BitSet(1);
24419
 
24420
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24421
    static {
24422
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24423
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24424
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24425
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24426
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_args.class, metaDataMap);
24427
    }
24428
 
24429
    public getOrderDeliveryMail_args() {
24430
    }
24431
 
24432
    public getOrderDeliveryMail_args(
24433
      long orderId)
24434
    {
24435
      this();
24436
      this.orderId = orderId;
24437
      setOrderIdIsSet(true);
24438
    }
24439
 
24440
    /**
24441
     * Performs a deep copy on <i>other</i>.
24442
     */
24443
    public getOrderDeliveryMail_args(getOrderDeliveryMail_args other) {
24444
      __isset_bit_vector.clear();
24445
      __isset_bit_vector.or(other.__isset_bit_vector);
24446
      this.orderId = other.orderId;
24447
    }
24448
 
24449
    public getOrderDeliveryMail_args deepCopy() {
24450
      return new getOrderDeliveryMail_args(this);
24451
    }
24452
 
24453
    @Override
24454
    public void clear() {
24455
      setOrderIdIsSet(false);
24456
      this.orderId = 0;
24457
    }
24458
 
24459
    public long getOrderId() {
24460
      return this.orderId;
24461
    }
24462
 
24463
    public void setOrderId(long orderId) {
24464
      this.orderId = orderId;
24465
      setOrderIdIsSet(true);
24466
    }
24467
 
24468
    public void unsetOrderId() {
24469
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
24470
    }
24471
 
24472
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
24473
    public boolean isSetOrderId() {
24474
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
24475
    }
24476
 
24477
    public void setOrderIdIsSet(boolean value) {
24478
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
24479
    }
24480
 
24481
    public void setFieldValue(_Fields field, Object value) {
24482
      switch (field) {
24483
      case ORDER_ID:
24484
        if (value == null) {
24485
          unsetOrderId();
24486
        } else {
24487
          setOrderId((Long)value);
24488
        }
24489
        break;
24490
 
24491
      }
24492
    }
24493
 
24494
    public Object getFieldValue(_Fields field) {
24495
      switch (field) {
24496
      case ORDER_ID:
24497
        return Long.valueOf(getOrderId());
24498
 
24499
      }
24500
      throw new IllegalStateException();
24501
    }
24502
 
24503
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24504
    public boolean isSet(_Fields field) {
24505
      if (field == null) {
24506
        throw new IllegalArgumentException();
24507
      }
24508
 
24509
      switch (field) {
24510
      case ORDER_ID:
24511
        return isSetOrderId();
24512
      }
24513
      throw new IllegalStateException();
24514
    }
24515
 
24516
    @Override
24517
    public boolean equals(Object that) {
24518
      if (that == null)
24519
        return false;
24520
      if (that instanceof getOrderDeliveryMail_args)
24521
        return this.equals((getOrderDeliveryMail_args)that);
24522
      return false;
24523
    }
24524
 
24525
    public boolean equals(getOrderDeliveryMail_args that) {
24526
      if (that == null)
24527
        return false;
24528
 
24529
      boolean this_present_orderId = true;
24530
      boolean that_present_orderId = true;
24531
      if (this_present_orderId || that_present_orderId) {
24532
        if (!(this_present_orderId && that_present_orderId))
24533
          return false;
24534
        if (this.orderId != that.orderId)
24535
          return false;
24536
      }
24537
 
24538
      return true;
24539
    }
24540
 
24541
    @Override
24542
    public int hashCode() {
24543
      return 0;
24544
    }
24545
 
24546
    public int compareTo(getOrderDeliveryMail_args other) {
24547
      if (!getClass().equals(other.getClass())) {
24548
        return getClass().getName().compareTo(other.getClass().getName());
24549
      }
24550
 
24551
      int lastComparison = 0;
24552
      getOrderDeliveryMail_args typedOther = (getOrderDeliveryMail_args)other;
24553
 
24554
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
24555
      if (lastComparison != 0) {
24556
        return lastComparison;
24557
      }
24558
      if (isSetOrderId()) {
24559
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
24560
        if (lastComparison != 0) {
24561
          return lastComparison;
24562
        }
24563
      }
24564
      return 0;
24565
    }
24566
 
24567
    public _Fields fieldForId(int fieldId) {
24568
      return _Fields.findByThriftId(fieldId);
24569
    }
24570
 
24571
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24572
      org.apache.thrift.protocol.TField field;
24573
      iprot.readStructBegin();
24574
      while (true)
24575
      {
24576
        field = iprot.readFieldBegin();
24577
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24578
          break;
24579
        }
24580
        switch (field.id) {
24581
          case 1: // ORDER_ID
24582
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24583
              this.orderId = iprot.readI64();
24584
              setOrderIdIsSet(true);
24585
            } else { 
24586
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24587
            }
24588
            break;
24589
          default:
24590
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24591
        }
24592
        iprot.readFieldEnd();
24593
      }
24594
      iprot.readStructEnd();
24595
      validate();
24596
    }
24597
 
24598
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24599
      validate();
24600
 
24601
      oprot.writeStructBegin(STRUCT_DESC);
24602
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
24603
      oprot.writeI64(this.orderId);
24604
      oprot.writeFieldEnd();
24605
      oprot.writeFieldStop();
24606
      oprot.writeStructEnd();
24607
    }
24608
 
24609
    @Override
24610
    public String toString() {
24611
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_args(");
24612
      boolean first = true;
24613
 
24614
      sb.append("orderId:");
24615
      sb.append(this.orderId);
24616
      first = false;
24617
      sb.append(")");
24618
      return sb.toString();
24619
    }
24620
 
24621
    public void validate() throws org.apache.thrift.TException {
24622
      // check for required fields
24623
    }
24624
 
24625
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24626
      try {
24627
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24628
      } catch (org.apache.thrift.TException te) {
24629
        throw new java.io.IOException(te);
24630
      }
24631
    }
24632
 
24633
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24634
      try {
24635
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24636
        __isset_bit_vector = new BitSet(1);
24637
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24638
      } catch (org.apache.thrift.TException te) {
24639
        throw new java.io.IOException(te);
24640
      }
24641
    }
24642
 
24643
  }
24644
 
24645
  public static class getOrderDeliveryMail_result implements org.apache.thrift.TBase<getOrderDeliveryMail_result, getOrderDeliveryMail_result._Fields>, java.io.Serializable, Cloneable   {
24646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_result");
24647
 
24648
    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);
24649
 
24650
    private String success; // required
24651
 
24652
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24653
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24654
      SUCCESS((short)0, "success");
24655
 
24656
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24657
 
24658
      static {
24659
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24660
          byName.put(field.getFieldName(), field);
24661
        }
24662
      }
24663
 
24664
      /**
24665
       * Find the _Fields constant that matches fieldId, or null if its not found.
24666
       */
24667
      public static _Fields findByThriftId(int fieldId) {
24668
        switch(fieldId) {
24669
          case 0: // SUCCESS
24670
            return SUCCESS;
24671
          default:
24672
            return null;
24673
        }
24674
      }
24675
 
24676
      /**
24677
       * Find the _Fields constant that matches fieldId, throwing an exception
24678
       * if it is not found.
24679
       */
24680
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24681
        _Fields fields = findByThriftId(fieldId);
24682
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24683
        return fields;
24684
      }
24685
 
24686
      /**
24687
       * Find the _Fields constant that matches name, or null if its not found.
24688
       */
24689
      public static _Fields findByName(String name) {
24690
        return byName.get(name);
24691
      }
24692
 
24693
      private final short _thriftId;
24694
      private final String _fieldName;
24695
 
24696
      _Fields(short thriftId, String fieldName) {
24697
        _thriftId = thriftId;
24698
        _fieldName = fieldName;
24699
      }
24700
 
24701
      public short getThriftFieldId() {
24702
        return _thriftId;
24703
      }
24704
 
24705
      public String getFieldName() {
24706
        return _fieldName;
24707
      }
24708
    }
24709
 
24710
    // isset id assignments
24711
 
24712
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24713
    static {
24714
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24715
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24716
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24717
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24718
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_result.class, metaDataMap);
24719
    }
24720
 
24721
    public getOrderDeliveryMail_result() {
24722
    }
24723
 
24724
    public getOrderDeliveryMail_result(
24725
      String success)
24726
    {
24727
      this();
24728
      this.success = success;
24729
    }
24730
 
24731
    /**
24732
     * Performs a deep copy on <i>other</i>.
24733
     */
24734
    public getOrderDeliveryMail_result(getOrderDeliveryMail_result other) {
24735
      if (other.isSetSuccess()) {
24736
        this.success = other.success;
24737
      }
24738
    }
24739
 
24740
    public getOrderDeliveryMail_result deepCopy() {
24741
      return new getOrderDeliveryMail_result(this);
24742
    }
24743
 
24744
    @Override
24745
    public void clear() {
24746
      this.success = null;
24747
    }
24748
 
24749
    public String getSuccess() {
24750
      return this.success;
24751
    }
24752
 
24753
    public void setSuccess(String success) {
24754
      this.success = success;
24755
    }
24756
 
24757
    public void unsetSuccess() {
24758
      this.success = null;
24759
    }
24760
 
24761
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24762
    public boolean isSetSuccess() {
24763
      return this.success != null;
24764
    }
24765
 
24766
    public void setSuccessIsSet(boolean value) {
24767
      if (!value) {
24768
        this.success = null;
24769
      }
24770
    }
24771
 
24772
    public void setFieldValue(_Fields field, Object value) {
24773
      switch (field) {
24774
      case SUCCESS:
24775
        if (value == null) {
24776
          unsetSuccess();
24777
        } else {
24778
          setSuccess((String)value);
24779
        }
24780
        break;
24781
 
24782
      }
24783
    }
24784
 
24785
    public Object getFieldValue(_Fields field) {
24786
      switch (field) {
24787
      case SUCCESS:
24788
        return getSuccess();
24789
 
24790
      }
24791
      throw new IllegalStateException();
24792
    }
24793
 
24794
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24795
    public boolean isSet(_Fields field) {
24796
      if (field == null) {
24797
        throw new IllegalArgumentException();
24798
      }
24799
 
24800
      switch (field) {
24801
      case SUCCESS:
24802
        return isSetSuccess();
24803
      }
24804
      throw new IllegalStateException();
24805
    }
24806
 
24807
    @Override
24808
    public boolean equals(Object that) {
24809
      if (that == null)
24810
        return false;
24811
      if (that instanceof getOrderDeliveryMail_result)
24812
        return this.equals((getOrderDeliveryMail_result)that);
24813
      return false;
24814
    }
24815
 
24816
    public boolean equals(getOrderDeliveryMail_result that) {
24817
      if (that == null)
24818
        return false;
24819
 
24820
      boolean this_present_success = true && this.isSetSuccess();
24821
      boolean that_present_success = true && that.isSetSuccess();
24822
      if (this_present_success || that_present_success) {
24823
        if (!(this_present_success && that_present_success))
24824
          return false;
24825
        if (!this.success.equals(that.success))
24826
          return false;
24827
      }
24828
 
24829
      return true;
24830
    }
24831
 
24832
    @Override
24833
    public int hashCode() {
24834
      return 0;
24835
    }
24836
 
24837
    public int compareTo(getOrderDeliveryMail_result other) {
24838
      if (!getClass().equals(other.getClass())) {
24839
        return getClass().getName().compareTo(other.getClass().getName());
24840
      }
24841
 
24842
      int lastComparison = 0;
24843
      getOrderDeliveryMail_result typedOther = (getOrderDeliveryMail_result)other;
24844
 
24845
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24846
      if (lastComparison != 0) {
24847
        return lastComparison;
24848
      }
24849
      if (isSetSuccess()) {
24850
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24851
        if (lastComparison != 0) {
24852
          return lastComparison;
24853
        }
24854
      }
24855
      return 0;
24856
    }
24857
 
24858
    public _Fields fieldForId(int fieldId) {
24859
      return _Fields.findByThriftId(fieldId);
24860
    }
24861
 
24862
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24863
      org.apache.thrift.protocol.TField field;
24864
      iprot.readStructBegin();
24865
      while (true)
24866
      {
24867
        field = iprot.readFieldBegin();
24868
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24869
          break;
24870
        }
24871
        switch (field.id) {
24872
          case 0: // SUCCESS
24873
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24874
              this.success = iprot.readString();
24875
            } else { 
24876
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24877
            }
24878
            break;
24879
          default:
24880
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24881
        }
24882
        iprot.readFieldEnd();
24883
      }
24884
      iprot.readStructEnd();
24885
      validate();
24886
    }
24887
 
24888
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24889
      oprot.writeStructBegin(STRUCT_DESC);
24890
 
24891
      if (this.isSetSuccess()) {
24892
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24893
        oprot.writeString(this.success);
24894
        oprot.writeFieldEnd();
24895
      }
24896
      oprot.writeFieldStop();
24897
      oprot.writeStructEnd();
24898
    }
24899
 
24900
    @Override
24901
    public String toString() {
24902
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_result(");
24903
      boolean first = true;
24904
 
24905
      sb.append("success:");
24906
      if (this.success == null) {
24907
        sb.append("null");
24908
      } else {
24909
        sb.append(this.success);
24910
      }
24911
      first = false;
24912
      sb.append(")");
24913
      return sb.toString();
24914
    }
24915
 
24916
    public void validate() throws org.apache.thrift.TException {
24917
      // check for required fields
24918
    }
24919
 
24920
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24921
      try {
24922
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24923
      } catch (org.apache.thrift.TException te) {
24924
        throw new java.io.IOException(te);
24925
      }
24926
    }
24927
 
24928
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24929
      try {
24930
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24931
      } catch (org.apache.thrift.TException te) {
24932
        throw new java.io.IOException(te);
24933
      }
24934
    }
24935
 
24936
  }
24937
 
7410 amar.kumar 24938
  public static class getWarehouseIdsForAgent_args implements org.apache.thrift.TBase<getWarehouseIdsForAgent_args, getWarehouseIdsForAgent_args._Fields>, java.io.Serializable, Cloneable   {
24939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_args");
24940
 
24941
    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);
24942
 
24943
    private String agentEmailId; // required
24944
 
24945
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24946
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24947
      AGENT_EMAIL_ID((short)1, "agentEmailId");
24948
 
24949
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24950
 
24951
      static {
24952
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24953
          byName.put(field.getFieldName(), field);
24954
        }
24955
      }
24956
 
24957
      /**
24958
       * Find the _Fields constant that matches fieldId, or null if its not found.
24959
       */
24960
      public static _Fields findByThriftId(int fieldId) {
24961
        switch(fieldId) {
24962
          case 1: // AGENT_EMAIL_ID
24963
            return AGENT_EMAIL_ID;
24964
          default:
24965
            return null;
24966
        }
24967
      }
24968
 
24969
      /**
24970
       * Find the _Fields constant that matches fieldId, throwing an exception
24971
       * if it is not found.
24972
       */
24973
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24974
        _Fields fields = findByThriftId(fieldId);
24975
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24976
        return fields;
24977
      }
24978
 
24979
      /**
24980
       * Find the _Fields constant that matches name, or null if its not found.
24981
       */
24982
      public static _Fields findByName(String name) {
24983
        return byName.get(name);
24984
      }
24985
 
24986
      private final short _thriftId;
24987
      private final String _fieldName;
24988
 
24989
      _Fields(short thriftId, String fieldName) {
24990
        _thriftId = thriftId;
24991
        _fieldName = fieldName;
24992
      }
24993
 
24994
      public short getThriftFieldId() {
24995
        return _thriftId;
24996
      }
24997
 
24998
      public String getFieldName() {
24999
        return _fieldName;
25000
      }
25001
    }
25002
 
25003
    // isset id assignments
25004
 
25005
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25006
    static {
25007
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25008
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25009
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25010
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25011
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_args.class, metaDataMap);
25012
    }
25013
 
25014
    public getWarehouseIdsForAgent_args() {
25015
    }
25016
 
25017
    public getWarehouseIdsForAgent_args(
25018
      String agentEmailId)
25019
    {
25020
      this();
25021
      this.agentEmailId = agentEmailId;
25022
    }
25023
 
25024
    /**
25025
     * Performs a deep copy on <i>other</i>.
25026
     */
25027
    public getWarehouseIdsForAgent_args(getWarehouseIdsForAgent_args other) {
25028
      if (other.isSetAgentEmailId()) {
25029
        this.agentEmailId = other.agentEmailId;
25030
      }
25031
    }
25032
 
25033
    public getWarehouseIdsForAgent_args deepCopy() {
25034
      return new getWarehouseIdsForAgent_args(this);
25035
    }
25036
 
25037
    @Override
25038
    public void clear() {
25039
      this.agentEmailId = null;
25040
    }
25041
 
25042
    public String getAgentEmailId() {
25043
      return this.agentEmailId;
25044
    }
25045
 
25046
    public void setAgentEmailId(String agentEmailId) {
25047
      this.agentEmailId = agentEmailId;
25048
    }
25049
 
25050
    public void unsetAgentEmailId() {
25051
      this.agentEmailId = null;
25052
    }
25053
 
25054
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
25055
    public boolean isSetAgentEmailId() {
25056
      return this.agentEmailId != null;
25057
    }
25058
 
25059
    public void setAgentEmailIdIsSet(boolean value) {
25060
      if (!value) {
25061
        this.agentEmailId = null;
25062
      }
25063
    }
25064
 
25065
    public void setFieldValue(_Fields field, Object value) {
25066
      switch (field) {
25067
      case AGENT_EMAIL_ID:
25068
        if (value == null) {
25069
          unsetAgentEmailId();
25070
        } else {
25071
          setAgentEmailId((String)value);
25072
        }
25073
        break;
25074
 
25075
      }
25076
    }
25077
 
25078
    public Object getFieldValue(_Fields field) {
25079
      switch (field) {
25080
      case AGENT_EMAIL_ID:
25081
        return getAgentEmailId();
25082
 
25083
      }
25084
      throw new IllegalStateException();
25085
    }
25086
 
25087
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25088
    public boolean isSet(_Fields field) {
25089
      if (field == null) {
25090
        throw new IllegalArgumentException();
25091
      }
25092
 
25093
      switch (field) {
25094
      case AGENT_EMAIL_ID:
25095
        return isSetAgentEmailId();
25096
      }
25097
      throw new IllegalStateException();
25098
    }
25099
 
25100
    @Override
25101
    public boolean equals(Object that) {
25102
      if (that == null)
25103
        return false;
25104
      if (that instanceof getWarehouseIdsForAgent_args)
25105
        return this.equals((getWarehouseIdsForAgent_args)that);
25106
      return false;
25107
    }
25108
 
25109
    public boolean equals(getWarehouseIdsForAgent_args that) {
25110
      if (that == null)
25111
        return false;
25112
 
25113
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
25114
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
25115
      if (this_present_agentEmailId || that_present_agentEmailId) {
25116
        if (!(this_present_agentEmailId && that_present_agentEmailId))
25117
          return false;
25118
        if (!this.agentEmailId.equals(that.agentEmailId))
25119
          return false;
25120
      }
25121
 
25122
      return true;
25123
    }
25124
 
25125
    @Override
25126
    public int hashCode() {
25127
      return 0;
25128
    }
25129
 
25130
    public int compareTo(getWarehouseIdsForAgent_args other) {
25131
      if (!getClass().equals(other.getClass())) {
25132
        return getClass().getName().compareTo(other.getClass().getName());
25133
      }
25134
 
25135
      int lastComparison = 0;
25136
      getWarehouseIdsForAgent_args typedOther = (getWarehouseIdsForAgent_args)other;
25137
 
25138
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
25139
      if (lastComparison != 0) {
25140
        return lastComparison;
25141
      }
25142
      if (isSetAgentEmailId()) {
25143
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
25144
        if (lastComparison != 0) {
25145
          return lastComparison;
25146
        }
25147
      }
25148
      return 0;
25149
    }
25150
 
25151
    public _Fields fieldForId(int fieldId) {
25152
      return _Fields.findByThriftId(fieldId);
25153
    }
25154
 
25155
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25156
      org.apache.thrift.protocol.TField field;
25157
      iprot.readStructBegin();
25158
      while (true)
25159
      {
25160
        field = iprot.readFieldBegin();
25161
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25162
          break;
25163
        }
25164
        switch (field.id) {
25165
          case 1: // AGENT_EMAIL_ID
25166
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
25167
              this.agentEmailId = iprot.readString();
25168
            } else { 
25169
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25170
            }
25171
            break;
25172
          default:
25173
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25174
        }
25175
        iprot.readFieldEnd();
25176
      }
25177
      iprot.readStructEnd();
25178
      validate();
25179
    }
25180
 
25181
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25182
      validate();
25183
 
25184
      oprot.writeStructBegin(STRUCT_DESC);
25185
      if (this.agentEmailId != null) {
25186
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
25187
        oprot.writeString(this.agentEmailId);
25188
        oprot.writeFieldEnd();
25189
      }
25190
      oprot.writeFieldStop();
25191
      oprot.writeStructEnd();
25192
    }
25193
 
25194
    @Override
25195
    public String toString() {
25196
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_args(");
25197
      boolean first = true;
25198
 
25199
      sb.append("agentEmailId:");
25200
      if (this.agentEmailId == null) {
25201
        sb.append("null");
25202
      } else {
25203
        sb.append(this.agentEmailId);
25204
      }
25205
      first = false;
25206
      sb.append(")");
25207
      return sb.toString();
25208
    }
25209
 
25210
    public void validate() throws org.apache.thrift.TException {
25211
      // check for required fields
25212
    }
25213
 
25214
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25215
      try {
25216
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25217
      } catch (org.apache.thrift.TException te) {
25218
        throw new java.io.IOException(te);
25219
      }
25220
    }
25221
 
25222
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25223
      try {
25224
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25225
      } catch (org.apache.thrift.TException te) {
25226
        throw new java.io.IOException(te);
25227
      }
25228
    }
25229
 
25230
  }
25231
 
25232
  public static class getWarehouseIdsForAgent_result implements org.apache.thrift.TBase<getWarehouseIdsForAgent_result, getWarehouseIdsForAgent_result._Fields>, java.io.Serializable, Cloneable   {
25233
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_result");
25234
 
25235
    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);
25236
 
25237
    private List<Long> success; // required
25238
 
25239
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25240
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25241
      SUCCESS((short)0, "success");
25242
 
25243
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25244
 
25245
      static {
25246
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25247
          byName.put(field.getFieldName(), field);
25248
        }
25249
      }
25250
 
25251
      /**
25252
       * Find the _Fields constant that matches fieldId, or null if its not found.
25253
       */
25254
      public static _Fields findByThriftId(int fieldId) {
25255
        switch(fieldId) {
25256
          case 0: // SUCCESS
25257
            return SUCCESS;
25258
          default:
25259
            return null;
25260
        }
25261
      }
25262
 
25263
      /**
25264
       * Find the _Fields constant that matches fieldId, throwing an exception
25265
       * if it is not found.
25266
       */
25267
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25268
        _Fields fields = findByThriftId(fieldId);
25269
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25270
        return fields;
25271
      }
25272
 
25273
      /**
25274
       * Find the _Fields constant that matches name, or null if its not found.
25275
       */
25276
      public static _Fields findByName(String name) {
25277
        return byName.get(name);
25278
      }
25279
 
25280
      private final short _thriftId;
25281
      private final String _fieldName;
25282
 
25283
      _Fields(short thriftId, String fieldName) {
25284
        _thriftId = thriftId;
25285
        _fieldName = fieldName;
25286
      }
25287
 
25288
      public short getThriftFieldId() {
25289
        return _thriftId;
25290
      }
25291
 
25292
      public String getFieldName() {
25293
        return _fieldName;
25294
      }
25295
    }
25296
 
25297
    // isset id assignments
25298
 
25299
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25300
    static {
25301
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25302
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25303
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25304
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
25305
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25306
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_result.class, metaDataMap);
25307
    }
25308
 
25309
    public getWarehouseIdsForAgent_result() {
25310
    }
25311
 
25312
    public getWarehouseIdsForAgent_result(
25313
      List<Long> success)
25314
    {
25315
      this();
25316
      this.success = success;
25317
    }
25318
 
25319
    /**
25320
     * Performs a deep copy on <i>other</i>.
25321
     */
25322
    public getWarehouseIdsForAgent_result(getWarehouseIdsForAgent_result other) {
25323
      if (other.isSetSuccess()) {
25324
        List<Long> __this__success = new ArrayList<Long>();
25325
        for (Long other_element : other.success) {
25326
          __this__success.add(other_element);
25327
        }
25328
        this.success = __this__success;
25329
      }
25330
    }
25331
 
25332
    public getWarehouseIdsForAgent_result deepCopy() {
25333
      return new getWarehouseIdsForAgent_result(this);
25334
    }
25335
 
25336
    @Override
25337
    public void clear() {
25338
      this.success = null;
25339
    }
25340
 
25341
    public int getSuccessSize() {
25342
      return (this.success == null) ? 0 : this.success.size();
25343
    }
25344
 
25345
    public java.util.Iterator<Long> getSuccessIterator() {
25346
      return (this.success == null) ? null : this.success.iterator();
25347
    }
25348
 
25349
    public void addToSuccess(long elem) {
25350
      if (this.success == null) {
25351
        this.success = new ArrayList<Long>();
25352
      }
25353
      this.success.add(elem);
25354
    }
25355
 
25356
    public List<Long> getSuccess() {
25357
      return this.success;
25358
    }
25359
 
25360
    public void setSuccess(List<Long> success) {
25361
      this.success = success;
25362
    }
25363
 
25364
    public void unsetSuccess() {
25365
      this.success = null;
25366
    }
25367
 
25368
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25369
    public boolean isSetSuccess() {
25370
      return this.success != null;
25371
    }
25372
 
25373
    public void setSuccessIsSet(boolean value) {
25374
      if (!value) {
25375
        this.success = null;
25376
      }
25377
    }
25378
 
25379
    public void setFieldValue(_Fields field, Object value) {
25380
      switch (field) {
25381
      case SUCCESS:
25382
        if (value == null) {
25383
          unsetSuccess();
25384
        } else {
25385
          setSuccess((List<Long>)value);
25386
        }
25387
        break;
25388
 
25389
      }
25390
    }
25391
 
25392
    public Object getFieldValue(_Fields field) {
25393
      switch (field) {
25394
      case SUCCESS:
25395
        return getSuccess();
25396
 
25397
      }
25398
      throw new IllegalStateException();
25399
    }
25400
 
25401
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25402
    public boolean isSet(_Fields field) {
25403
      if (field == null) {
25404
        throw new IllegalArgumentException();
25405
      }
25406
 
25407
      switch (field) {
25408
      case SUCCESS:
25409
        return isSetSuccess();
25410
      }
25411
      throw new IllegalStateException();
25412
    }
25413
 
25414
    @Override
25415
    public boolean equals(Object that) {
25416
      if (that == null)
25417
        return false;
25418
      if (that instanceof getWarehouseIdsForAgent_result)
25419
        return this.equals((getWarehouseIdsForAgent_result)that);
25420
      return false;
25421
    }
25422
 
25423
    public boolean equals(getWarehouseIdsForAgent_result that) {
25424
      if (that == null)
25425
        return false;
25426
 
25427
      boolean this_present_success = true && this.isSetSuccess();
25428
      boolean that_present_success = true && that.isSetSuccess();
25429
      if (this_present_success || that_present_success) {
25430
        if (!(this_present_success && that_present_success))
25431
          return false;
25432
        if (!this.success.equals(that.success))
25433
          return false;
25434
      }
25435
 
25436
      return true;
25437
    }
25438
 
25439
    @Override
25440
    public int hashCode() {
25441
      return 0;
25442
    }
25443
 
25444
    public int compareTo(getWarehouseIdsForAgent_result other) {
25445
      if (!getClass().equals(other.getClass())) {
25446
        return getClass().getName().compareTo(other.getClass().getName());
25447
      }
25448
 
25449
      int lastComparison = 0;
25450
      getWarehouseIdsForAgent_result typedOther = (getWarehouseIdsForAgent_result)other;
25451
 
25452
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25453
      if (lastComparison != 0) {
25454
        return lastComparison;
25455
      }
25456
      if (isSetSuccess()) {
25457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25458
        if (lastComparison != 0) {
25459
          return lastComparison;
25460
        }
25461
      }
25462
      return 0;
25463
    }
25464
 
25465
    public _Fields fieldForId(int fieldId) {
25466
      return _Fields.findByThriftId(fieldId);
25467
    }
25468
 
25469
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25470
      org.apache.thrift.protocol.TField field;
25471
      iprot.readStructBegin();
25472
      while (true)
25473
      {
25474
        field = iprot.readFieldBegin();
25475
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25476
          break;
25477
        }
25478
        switch (field.id) {
25479
          case 0: // SUCCESS
25480
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25481
              {
25482
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
25483
                this.success = new ArrayList<Long>(_list69.size);
25484
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
25485
                {
25486
                  long _elem71; // required
25487
                  _elem71 = iprot.readI64();
25488
                  this.success.add(_elem71);
25489
                }
25490
                iprot.readListEnd();
25491
              }
25492
            } else { 
25493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25494
            }
25495
            break;
25496
          default:
25497
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25498
        }
25499
        iprot.readFieldEnd();
25500
      }
25501
      iprot.readStructEnd();
25502
      validate();
25503
    }
25504
 
25505
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25506
      oprot.writeStructBegin(STRUCT_DESC);
25507
 
25508
      if (this.isSetSuccess()) {
25509
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25510
        {
25511
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
25512
          for (long _iter72 : this.success)
25513
          {
25514
            oprot.writeI64(_iter72);
25515
          }
25516
          oprot.writeListEnd();
25517
        }
25518
        oprot.writeFieldEnd();
25519
      }
25520
      oprot.writeFieldStop();
25521
      oprot.writeStructEnd();
25522
    }
25523
 
25524
    @Override
25525
    public String toString() {
25526
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_result(");
25527
      boolean first = true;
25528
 
25529
      sb.append("success:");
25530
      if (this.success == null) {
25531
        sb.append("null");
25532
      } else {
25533
        sb.append(this.success);
25534
      }
25535
      first = false;
25536
      sb.append(")");
25537
      return sb.toString();
25538
    }
25539
 
25540
    public void validate() throws org.apache.thrift.TException {
25541
      // check for required fields
25542
    }
25543
 
25544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25545
      try {
25546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25547
      } catch (org.apache.thrift.TException te) {
25548
        throw new java.io.IOException(te);
25549
      }
25550
    }
25551
 
25552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25553
      try {
25554
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25555
      } catch (org.apache.thrift.TException te) {
25556
        throw new java.io.IOException(te);
25557
      }
25558
    }
25559
 
25560
  }
25561
 
12691 manish.sha 25562
  public static class saveUserSmsForSending_args implements org.apache.thrift.TBase<saveUserSmsForSending_args, saveUserSmsForSending_args._Fields>, java.io.Serializable, Cloneable   {
25563
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserSmsForSending_args");
25564
 
25565
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
25566
    private static final org.apache.thrift.protocol.TField MOBILE_NO_FIELD_DESC = new org.apache.thrift.protocol.TField("mobileNo", org.apache.thrift.protocol.TType.STRING, (short)2);
25567
    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);
25568
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)4);
25569
 
25570
    private long userId; // required
25571
    private String mobileNo; // required
25572
    private String text; // required
25573
    private SmsType type; // required
25574
 
25575
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25576
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25577
      USER_ID((short)1, "userId"),
25578
      MOBILE_NO((short)2, "mobileNo"),
25579
      TEXT((short)3, "text"),
25580
      /**
25581
       * 
25582
       * @see SmsType
25583
       */
25584
      TYPE((short)4, "type");
25585
 
25586
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25587
 
25588
      static {
25589
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25590
          byName.put(field.getFieldName(), field);
25591
        }
25592
      }
25593
 
25594
      /**
25595
       * Find the _Fields constant that matches fieldId, or null if its not found.
25596
       */
25597
      public static _Fields findByThriftId(int fieldId) {
25598
        switch(fieldId) {
25599
          case 1: // USER_ID
25600
            return USER_ID;
25601
          case 2: // MOBILE_NO
25602
            return MOBILE_NO;
25603
          case 3: // TEXT
25604
            return TEXT;
25605
          case 4: // TYPE
25606
            return TYPE;
25607
          default:
25608
            return null;
25609
        }
25610
      }
25611
 
25612
      /**
25613
       * Find the _Fields constant that matches fieldId, throwing an exception
25614
       * if it is not found.
25615
       */
25616
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25617
        _Fields fields = findByThriftId(fieldId);
25618
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25619
        return fields;
25620
      }
25621
 
25622
      /**
25623
       * Find the _Fields constant that matches name, or null if its not found.
25624
       */
25625
      public static _Fields findByName(String name) {
25626
        return byName.get(name);
25627
      }
25628
 
25629
      private final short _thriftId;
25630
      private final String _fieldName;
25631
 
25632
      _Fields(short thriftId, String fieldName) {
25633
        _thriftId = thriftId;
25634
        _fieldName = fieldName;
25635
      }
25636
 
25637
      public short getThriftFieldId() {
25638
        return _thriftId;
25639
      }
25640
 
25641
      public String getFieldName() {
25642
        return _fieldName;
25643
      }
25644
    }
25645
 
25646
    // isset id assignments
25647
    private static final int __USERID_ISSET_ID = 0;
25648
    private BitSet __isset_bit_vector = new BitSet(1);
25649
 
25650
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25651
    static {
25652
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25653
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25654
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25655
      tmpMap.put(_Fields.MOBILE_NO, new org.apache.thrift.meta_data.FieldMetaData("mobileNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25656
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25657
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25658
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25659
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25660
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SmsType.class)));
25661
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25662
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserSmsForSending_args.class, metaDataMap);
25663
    }
25664
 
25665
    public saveUserSmsForSending_args() {
25666
    }
25667
 
25668
    public saveUserSmsForSending_args(
25669
      long userId,
25670
      String mobileNo,
25671
      String text,
25672
      SmsType type)
25673
    {
25674
      this();
25675
      this.userId = userId;
25676
      setUserIdIsSet(true);
25677
      this.mobileNo = mobileNo;
25678
      this.text = text;
25679
      this.type = type;
25680
    }
25681
 
25682
    /**
25683
     * Performs a deep copy on <i>other</i>.
25684
     */
25685
    public saveUserSmsForSending_args(saveUserSmsForSending_args other) {
25686
      __isset_bit_vector.clear();
25687
      __isset_bit_vector.or(other.__isset_bit_vector);
25688
      this.userId = other.userId;
25689
      if (other.isSetMobileNo()) {
25690
        this.mobileNo = other.mobileNo;
25691
      }
25692
      if (other.isSetText()) {
25693
        this.text = other.text;
25694
      }
25695
      if (other.isSetType()) {
25696
        this.type = other.type;
25697
      }
25698
    }
25699
 
25700
    public saveUserSmsForSending_args deepCopy() {
25701
      return new saveUserSmsForSending_args(this);
25702
    }
25703
 
25704
    @Override
25705
    public void clear() {
25706
      setUserIdIsSet(false);
25707
      this.userId = 0;
25708
      this.mobileNo = null;
25709
      this.text = null;
25710
      this.type = null;
25711
    }
25712
 
25713
    public long getUserId() {
25714
      return this.userId;
25715
    }
25716
 
25717
    public void setUserId(long userId) {
25718
      this.userId = userId;
25719
      setUserIdIsSet(true);
25720
    }
25721
 
25722
    public void unsetUserId() {
25723
      __isset_bit_vector.clear(__USERID_ISSET_ID);
25724
    }
25725
 
25726
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
25727
    public boolean isSetUserId() {
25728
      return __isset_bit_vector.get(__USERID_ISSET_ID);
25729
    }
25730
 
25731
    public void setUserIdIsSet(boolean value) {
25732
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
25733
    }
25734
 
25735
    public String getMobileNo() {
25736
      return this.mobileNo;
25737
    }
25738
 
25739
    public void setMobileNo(String mobileNo) {
25740
      this.mobileNo = mobileNo;
25741
    }
25742
 
25743
    public void unsetMobileNo() {
25744
      this.mobileNo = null;
25745
    }
25746
 
25747
    /** Returns true if field mobileNo is set (has been assigned a value) and false otherwise */
25748
    public boolean isSetMobileNo() {
25749
      return this.mobileNo != null;
25750
    }
25751
 
25752
    public void setMobileNoIsSet(boolean value) {
25753
      if (!value) {
25754
        this.mobileNo = null;
25755
      }
25756
    }
25757
 
25758
    public String getText() {
25759
      return this.text;
25760
    }
25761
 
25762
    public void setText(String text) {
25763
      this.text = text;
25764
    }
25765
 
25766
    public void unsetText() {
25767
      this.text = null;
25768
    }
25769
 
25770
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
25771
    public boolean isSetText() {
25772
      return this.text != null;
25773
    }
25774
 
25775
    public void setTextIsSet(boolean value) {
25776
      if (!value) {
25777
        this.text = null;
25778
      }
25779
    }
25780
 
25781
    /**
25782
     * 
25783
     * @see SmsType
25784
     */
25785
    public SmsType getType() {
25786
      return this.type;
25787
    }
25788
 
25789
    /**
25790
     * 
25791
     * @see SmsType
25792
     */
25793
    public void setType(SmsType type) {
25794
      this.type = type;
25795
    }
25796
 
25797
    public void unsetType() {
25798
      this.type = null;
25799
    }
25800
 
25801
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
25802
    public boolean isSetType() {
25803
      return this.type != null;
25804
    }
25805
 
25806
    public void setTypeIsSet(boolean value) {
25807
      if (!value) {
25808
        this.type = null;
25809
      }
25810
    }
25811
 
25812
    public void setFieldValue(_Fields field, Object value) {
25813
      switch (field) {
25814
      case USER_ID:
25815
        if (value == null) {
25816
          unsetUserId();
25817
        } else {
25818
          setUserId((Long)value);
25819
        }
25820
        break;
25821
 
25822
      case MOBILE_NO:
25823
        if (value == null) {
25824
          unsetMobileNo();
25825
        } else {
25826
          setMobileNo((String)value);
25827
        }
25828
        break;
25829
 
25830
      case TEXT:
25831
        if (value == null) {
25832
          unsetText();
25833
        } else {
25834
          setText((String)value);
25835
        }
25836
        break;
25837
 
25838
      case TYPE:
25839
        if (value == null) {
25840
          unsetType();
25841
        } else {
25842
          setType((SmsType)value);
25843
        }
25844
        break;
25845
 
25846
      }
25847
    }
25848
 
25849
    public Object getFieldValue(_Fields field) {
25850
      switch (field) {
25851
      case USER_ID:
25852
        return Long.valueOf(getUserId());
25853
 
25854
      case MOBILE_NO:
25855
        return getMobileNo();
25856
 
25857
      case TEXT:
25858
        return getText();
25859
 
25860
      case TYPE:
25861
        return getType();
25862
 
25863
      }
25864
      throw new IllegalStateException();
25865
    }
25866
 
25867
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25868
    public boolean isSet(_Fields field) {
25869
      if (field == null) {
25870
        throw new IllegalArgumentException();
25871
      }
25872
 
25873
      switch (field) {
25874
      case USER_ID:
25875
        return isSetUserId();
25876
      case MOBILE_NO:
25877
        return isSetMobileNo();
25878
      case TEXT:
25879
        return isSetText();
25880
      case TYPE:
25881
        return isSetType();
25882
      }
25883
      throw new IllegalStateException();
25884
    }
25885
 
25886
    @Override
25887
    public boolean equals(Object that) {
25888
      if (that == null)
25889
        return false;
25890
      if (that instanceof saveUserSmsForSending_args)
25891
        return this.equals((saveUserSmsForSending_args)that);
25892
      return false;
25893
    }
25894
 
25895
    public boolean equals(saveUserSmsForSending_args that) {
25896
      if (that == null)
25897
        return false;
25898
 
25899
      boolean this_present_userId = true;
25900
      boolean that_present_userId = true;
25901
      if (this_present_userId || that_present_userId) {
25902
        if (!(this_present_userId && that_present_userId))
25903
          return false;
25904
        if (this.userId != that.userId)
25905
          return false;
25906
      }
25907
 
25908
      boolean this_present_mobileNo = true && this.isSetMobileNo();
25909
      boolean that_present_mobileNo = true && that.isSetMobileNo();
25910
      if (this_present_mobileNo || that_present_mobileNo) {
25911
        if (!(this_present_mobileNo && that_present_mobileNo))
25912
          return false;
25913
        if (!this.mobileNo.equals(that.mobileNo))
25914
          return false;
25915
      }
25916
 
25917
      boolean this_present_text = true && this.isSetText();
25918
      boolean that_present_text = true && that.isSetText();
25919
      if (this_present_text || that_present_text) {
25920
        if (!(this_present_text && that_present_text))
25921
          return false;
25922
        if (!this.text.equals(that.text))
25923
          return false;
25924
      }
25925
 
25926
      boolean this_present_type = true && this.isSetType();
25927
      boolean that_present_type = true && that.isSetType();
25928
      if (this_present_type || that_present_type) {
25929
        if (!(this_present_type && that_present_type))
25930
          return false;
25931
        if (!this.type.equals(that.type))
25932
          return false;
25933
      }
25934
 
25935
      return true;
25936
    }
25937
 
25938
    @Override
25939
    public int hashCode() {
25940
      return 0;
25941
    }
25942
 
25943
    public int compareTo(saveUserSmsForSending_args other) {
25944
      if (!getClass().equals(other.getClass())) {
25945
        return getClass().getName().compareTo(other.getClass().getName());
25946
      }
25947
 
25948
      int lastComparison = 0;
25949
      saveUserSmsForSending_args typedOther = (saveUserSmsForSending_args)other;
25950
 
25951
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
25952
      if (lastComparison != 0) {
25953
        return lastComparison;
25954
      }
25955
      if (isSetUserId()) {
25956
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
25957
        if (lastComparison != 0) {
25958
          return lastComparison;
25959
        }
25960
      }
25961
      lastComparison = Boolean.valueOf(isSetMobileNo()).compareTo(typedOther.isSetMobileNo());
25962
      if (lastComparison != 0) {
25963
        return lastComparison;
25964
      }
25965
      if (isSetMobileNo()) {
25966
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNo, typedOther.mobileNo);
25967
        if (lastComparison != 0) {
25968
          return lastComparison;
25969
        }
25970
      }
25971
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
25972
      if (lastComparison != 0) {
25973
        return lastComparison;
25974
      }
25975
      if (isSetText()) {
25976
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
25977
        if (lastComparison != 0) {
25978
          return lastComparison;
25979
        }
25980
      }
25981
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
25982
      if (lastComparison != 0) {
25983
        return lastComparison;
25984
      }
25985
      if (isSetType()) {
25986
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
25987
        if (lastComparison != 0) {
25988
          return lastComparison;
25989
        }
25990
      }
25991
      return 0;
25992
    }
25993
 
25994
    public _Fields fieldForId(int fieldId) {
25995
      return _Fields.findByThriftId(fieldId);
25996
    }
25997
 
25998
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25999
      org.apache.thrift.protocol.TField field;
26000
      iprot.readStructBegin();
26001
      while (true)
26002
      {
26003
        field = iprot.readFieldBegin();
26004
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26005
          break;
26006
        }
26007
        switch (field.id) {
26008
          case 1: // USER_ID
26009
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26010
              this.userId = iprot.readI64();
26011
              setUserIdIsSet(true);
26012
            } else { 
26013
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26014
            }
26015
            break;
26016
          case 2: // MOBILE_NO
26017
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26018
              this.mobileNo = iprot.readString();
26019
            } else { 
26020
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26021
            }
26022
            break;
26023
          case 3: // TEXT
26024
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
26025
              this.text = iprot.readString();
26026
            } else { 
26027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26028
            }
26029
            break;
26030
          case 4: // TYPE
26031
            if (field.type == org.apache.thrift.protocol.TType.I32) {
26032
              this.type = SmsType.findByValue(iprot.readI32());
26033
            } else { 
26034
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26035
            }
26036
            break;
26037
          default:
26038
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26039
        }
26040
        iprot.readFieldEnd();
26041
      }
26042
      iprot.readStructEnd();
26043
      validate();
26044
    }
26045
 
26046
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26047
      validate();
26048
 
26049
      oprot.writeStructBegin(STRUCT_DESC);
26050
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
26051
      oprot.writeI64(this.userId);
26052
      oprot.writeFieldEnd();
26053
      if (this.mobileNo != null) {
26054
        oprot.writeFieldBegin(MOBILE_NO_FIELD_DESC);
26055
        oprot.writeString(this.mobileNo);
26056
        oprot.writeFieldEnd();
26057
      }
26058
      if (this.text != null) {
26059
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
26060
        oprot.writeString(this.text);
26061
        oprot.writeFieldEnd();
26062
      }
26063
      if (this.type != null) {
26064
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
26065
        oprot.writeI32(this.type.getValue());
26066
        oprot.writeFieldEnd();
26067
      }
26068
      oprot.writeFieldStop();
26069
      oprot.writeStructEnd();
26070
    }
26071
 
26072
    @Override
26073
    public String toString() {
26074
      StringBuilder sb = new StringBuilder("saveUserSmsForSending_args(");
26075
      boolean first = true;
26076
 
26077
      sb.append("userId:");
26078
      sb.append(this.userId);
26079
      first = false;
26080
      if (!first) sb.append(", ");
26081
      sb.append("mobileNo:");
26082
      if (this.mobileNo == null) {
26083
        sb.append("null");
26084
      } else {
26085
        sb.append(this.mobileNo);
26086
      }
26087
      first = false;
26088
      if (!first) sb.append(", ");
26089
      sb.append("text:");
26090
      if (this.text == null) {
26091
        sb.append("null");
26092
      } else {
26093
        sb.append(this.text);
26094
      }
26095
      first = false;
26096
      if (!first) sb.append(", ");
26097
      sb.append("type:");
26098
      if (this.type == null) {
26099
        sb.append("null");
26100
      } else {
26101
        sb.append(this.type);
26102
      }
26103
      first = false;
26104
      sb.append(")");
26105
      return sb.toString();
26106
    }
26107
 
26108
    public void validate() throws org.apache.thrift.TException {
26109
      // check for required fields
26110
    }
26111
 
26112
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26113
      try {
26114
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26115
      } catch (org.apache.thrift.TException te) {
26116
        throw new java.io.IOException(te);
26117
      }
26118
    }
26119
 
26120
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26121
      try {
26122
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26123
        __isset_bit_vector = new BitSet(1);
26124
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26125
      } catch (org.apache.thrift.TException te) {
26126
        throw new java.io.IOException(te);
26127
      }
26128
    }
26129
 
26130
  }
26131
 
26132
  public static class saveUserSmsForSending_result implements org.apache.thrift.TBase<saveUserSmsForSending_result, saveUserSmsForSending_result._Fields>, java.io.Serializable, Cloneable   {
26133
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserSmsForSending_result");
26134
 
26135
    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);
26136
    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);
26137
 
26138
    private long success; // required
26139
    private HelperServiceException se; // required
26140
 
26141
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26142
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26143
      SUCCESS((short)0, "success"),
26144
      SE((short)1, "se");
26145
 
26146
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26147
 
26148
      static {
26149
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26150
          byName.put(field.getFieldName(), field);
26151
        }
26152
      }
26153
 
26154
      /**
26155
       * Find the _Fields constant that matches fieldId, or null if its not found.
26156
       */
26157
      public static _Fields findByThriftId(int fieldId) {
26158
        switch(fieldId) {
26159
          case 0: // SUCCESS
26160
            return SUCCESS;
26161
          case 1: // SE
26162
            return SE;
26163
          default:
26164
            return null;
26165
        }
26166
      }
26167
 
26168
      /**
26169
       * Find the _Fields constant that matches fieldId, throwing an exception
26170
       * if it is not found.
26171
       */
26172
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26173
        _Fields fields = findByThriftId(fieldId);
26174
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26175
        return fields;
26176
      }
26177
 
26178
      /**
26179
       * Find the _Fields constant that matches name, or null if its not found.
26180
       */
26181
      public static _Fields findByName(String name) {
26182
        return byName.get(name);
26183
      }
26184
 
26185
      private final short _thriftId;
26186
      private final String _fieldName;
26187
 
26188
      _Fields(short thriftId, String fieldName) {
26189
        _thriftId = thriftId;
26190
        _fieldName = fieldName;
26191
      }
26192
 
26193
      public short getThriftFieldId() {
26194
        return _thriftId;
26195
      }
26196
 
26197
      public String getFieldName() {
26198
        return _fieldName;
26199
      }
26200
    }
26201
 
26202
    // isset id assignments
26203
    private static final int __SUCCESS_ISSET_ID = 0;
26204
    private BitSet __isset_bit_vector = new BitSet(1);
26205
 
26206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26207
    static {
26208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26209
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26210
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26211
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26212
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26213
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26214
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserSmsForSending_result.class, metaDataMap);
26215
    }
26216
 
26217
    public saveUserSmsForSending_result() {
26218
    }
26219
 
26220
    public saveUserSmsForSending_result(
26221
      long success,
26222
      HelperServiceException se)
26223
    {
26224
      this();
26225
      this.success = success;
26226
      setSuccessIsSet(true);
26227
      this.se = se;
26228
    }
26229
 
26230
    /**
26231
     * Performs a deep copy on <i>other</i>.
26232
     */
26233
    public saveUserSmsForSending_result(saveUserSmsForSending_result other) {
26234
      __isset_bit_vector.clear();
26235
      __isset_bit_vector.or(other.__isset_bit_vector);
26236
      this.success = other.success;
26237
      if (other.isSetSe()) {
26238
        this.se = new HelperServiceException(other.se);
26239
      }
26240
    }
26241
 
26242
    public saveUserSmsForSending_result deepCopy() {
26243
      return new saveUserSmsForSending_result(this);
26244
    }
26245
 
26246
    @Override
26247
    public void clear() {
26248
      setSuccessIsSet(false);
26249
      this.success = 0;
26250
      this.se = null;
26251
    }
26252
 
26253
    public long getSuccess() {
26254
      return this.success;
26255
    }
26256
 
26257
    public void setSuccess(long success) {
26258
      this.success = success;
26259
      setSuccessIsSet(true);
26260
    }
26261
 
26262
    public void unsetSuccess() {
26263
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
26264
    }
26265
 
26266
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26267
    public boolean isSetSuccess() {
26268
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
26269
    }
26270
 
26271
    public void setSuccessIsSet(boolean value) {
26272
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
26273
    }
26274
 
26275
    public HelperServiceException getSe() {
26276
      return this.se;
26277
    }
26278
 
26279
    public void setSe(HelperServiceException se) {
26280
      this.se = se;
26281
    }
26282
 
26283
    public void unsetSe() {
26284
      this.se = null;
26285
    }
26286
 
26287
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
26288
    public boolean isSetSe() {
26289
      return this.se != null;
26290
    }
26291
 
26292
    public void setSeIsSet(boolean value) {
26293
      if (!value) {
26294
        this.se = null;
26295
      }
26296
    }
26297
 
26298
    public void setFieldValue(_Fields field, Object value) {
26299
      switch (field) {
26300
      case SUCCESS:
26301
        if (value == null) {
26302
          unsetSuccess();
26303
        } else {
26304
          setSuccess((Long)value);
26305
        }
26306
        break;
26307
 
26308
      case SE:
26309
        if (value == null) {
26310
          unsetSe();
26311
        } else {
26312
          setSe((HelperServiceException)value);
26313
        }
26314
        break;
26315
 
26316
      }
26317
    }
26318
 
26319
    public Object getFieldValue(_Fields field) {
26320
      switch (field) {
26321
      case SUCCESS:
26322
        return Long.valueOf(getSuccess());
26323
 
26324
      case SE:
26325
        return getSe();
26326
 
26327
      }
26328
      throw new IllegalStateException();
26329
    }
26330
 
26331
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26332
    public boolean isSet(_Fields field) {
26333
      if (field == null) {
26334
        throw new IllegalArgumentException();
26335
      }
26336
 
26337
      switch (field) {
26338
      case SUCCESS:
26339
        return isSetSuccess();
26340
      case SE:
26341
        return isSetSe();
26342
      }
26343
      throw new IllegalStateException();
26344
    }
26345
 
26346
    @Override
26347
    public boolean equals(Object that) {
26348
      if (that == null)
26349
        return false;
26350
      if (that instanceof saveUserSmsForSending_result)
26351
        return this.equals((saveUserSmsForSending_result)that);
26352
      return false;
26353
    }
26354
 
26355
    public boolean equals(saveUserSmsForSending_result that) {
26356
      if (that == null)
26357
        return false;
26358
 
26359
      boolean this_present_success = true;
26360
      boolean that_present_success = true;
26361
      if (this_present_success || that_present_success) {
26362
        if (!(this_present_success && that_present_success))
26363
          return false;
26364
        if (this.success != that.success)
26365
          return false;
26366
      }
26367
 
26368
      boolean this_present_se = true && this.isSetSe();
26369
      boolean that_present_se = true && that.isSetSe();
26370
      if (this_present_se || that_present_se) {
26371
        if (!(this_present_se && that_present_se))
26372
          return false;
26373
        if (!this.se.equals(that.se))
26374
          return false;
26375
      }
26376
 
26377
      return true;
26378
    }
26379
 
26380
    @Override
26381
    public int hashCode() {
26382
      return 0;
26383
    }
26384
 
26385
    public int compareTo(saveUserSmsForSending_result other) {
26386
      if (!getClass().equals(other.getClass())) {
26387
        return getClass().getName().compareTo(other.getClass().getName());
26388
      }
26389
 
26390
      int lastComparison = 0;
26391
      saveUserSmsForSending_result typedOther = (saveUserSmsForSending_result)other;
26392
 
26393
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26394
      if (lastComparison != 0) {
26395
        return lastComparison;
26396
      }
26397
      if (isSetSuccess()) {
26398
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26399
        if (lastComparison != 0) {
26400
          return lastComparison;
26401
        }
26402
      }
26403
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
26404
      if (lastComparison != 0) {
26405
        return lastComparison;
26406
      }
26407
      if (isSetSe()) {
26408
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
26409
        if (lastComparison != 0) {
26410
          return lastComparison;
26411
        }
26412
      }
26413
      return 0;
26414
    }
26415
 
26416
    public _Fields fieldForId(int fieldId) {
26417
      return _Fields.findByThriftId(fieldId);
26418
    }
26419
 
26420
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26421
      org.apache.thrift.protocol.TField field;
26422
      iprot.readStructBegin();
26423
      while (true)
26424
      {
26425
        field = iprot.readFieldBegin();
26426
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26427
          break;
26428
        }
26429
        switch (field.id) {
26430
          case 0: // SUCCESS
26431
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26432
              this.success = iprot.readI64();
26433
              setSuccessIsSet(true);
26434
            } else { 
26435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26436
            }
26437
            break;
26438
          case 1: // SE
26439
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26440
              this.se = new HelperServiceException();
26441
              this.se.read(iprot);
26442
            } else { 
26443
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26444
            }
26445
            break;
26446
          default:
26447
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26448
        }
26449
        iprot.readFieldEnd();
26450
      }
26451
      iprot.readStructEnd();
26452
      validate();
26453
    }
26454
 
26455
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26456
      oprot.writeStructBegin(STRUCT_DESC);
26457
 
26458
      if (this.isSetSuccess()) {
26459
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26460
        oprot.writeI64(this.success);
26461
        oprot.writeFieldEnd();
26462
      } else if (this.isSetSe()) {
26463
        oprot.writeFieldBegin(SE_FIELD_DESC);
26464
        this.se.write(oprot);
26465
        oprot.writeFieldEnd();
26466
      }
26467
      oprot.writeFieldStop();
26468
      oprot.writeStructEnd();
26469
    }
26470
 
26471
    @Override
26472
    public String toString() {
26473
      StringBuilder sb = new StringBuilder("saveUserSmsForSending_result(");
26474
      boolean first = true;
26475
 
26476
      sb.append("success:");
26477
      sb.append(this.success);
26478
      first = false;
26479
      if (!first) sb.append(", ");
26480
      sb.append("se:");
26481
      if (this.se == null) {
26482
        sb.append("null");
26483
      } else {
26484
        sb.append(this.se);
26485
      }
26486
      first = false;
26487
      sb.append(")");
26488
      return sb.toString();
26489
    }
26490
 
26491
    public void validate() throws org.apache.thrift.TException {
26492
      // check for required fields
26493
    }
26494
 
26495
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26496
      try {
26497
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26498
      } catch (org.apache.thrift.TException te) {
26499
        throw new java.io.IOException(te);
26500
      }
26501
    }
26502
 
26503
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26504
      try {
26505
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26506
      } catch (org.apache.thrift.TException te) {
26507
        throw new java.io.IOException(te);
26508
      }
26509
    }
26510
 
26511
  }
26512
 
26513
  public static class getSmsToBeSent_args implements org.apache.thrift.TBase<getSmsToBeSent_args, getSmsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
26514
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSmsToBeSent_args");
26515
 
26516
 
26517
 
26518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26520
;
26521
 
26522
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26523
 
26524
      static {
26525
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26526
          byName.put(field.getFieldName(), field);
26527
        }
26528
      }
26529
 
26530
      /**
26531
       * Find the _Fields constant that matches fieldId, or null if its not found.
26532
       */
26533
      public static _Fields findByThriftId(int fieldId) {
26534
        switch(fieldId) {
26535
          default:
26536
            return null;
26537
        }
26538
      }
26539
 
26540
      /**
26541
       * Find the _Fields constant that matches fieldId, throwing an exception
26542
       * if it is not found.
26543
       */
26544
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26545
        _Fields fields = findByThriftId(fieldId);
26546
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26547
        return fields;
26548
      }
26549
 
26550
      /**
26551
       * Find the _Fields constant that matches name, or null if its not found.
26552
       */
26553
      public static _Fields findByName(String name) {
26554
        return byName.get(name);
26555
      }
26556
 
26557
      private final short _thriftId;
26558
      private final String _fieldName;
26559
 
26560
      _Fields(short thriftId, String fieldName) {
26561
        _thriftId = thriftId;
26562
        _fieldName = fieldName;
26563
      }
26564
 
26565
      public short getThriftFieldId() {
26566
        return _thriftId;
26567
      }
26568
 
26569
      public String getFieldName() {
26570
        return _fieldName;
26571
      }
26572
    }
26573
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26574
    static {
26575
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26576
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26577
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSmsToBeSent_args.class, metaDataMap);
26578
    }
26579
 
26580
    public getSmsToBeSent_args() {
26581
    }
26582
 
26583
    /**
26584
     * Performs a deep copy on <i>other</i>.
26585
     */
26586
    public getSmsToBeSent_args(getSmsToBeSent_args other) {
26587
    }
26588
 
26589
    public getSmsToBeSent_args deepCopy() {
26590
      return new getSmsToBeSent_args(this);
26591
    }
26592
 
26593
    @Override
26594
    public void clear() {
26595
    }
26596
 
26597
    public void setFieldValue(_Fields field, Object value) {
26598
      switch (field) {
26599
      }
26600
    }
26601
 
26602
    public Object getFieldValue(_Fields field) {
26603
      switch (field) {
26604
      }
26605
      throw new IllegalStateException();
26606
    }
26607
 
26608
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26609
    public boolean isSet(_Fields field) {
26610
      if (field == null) {
26611
        throw new IllegalArgumentException();
26612
      }
26613
 
26614
      switch (field) {
26615
      }
26616
      throw new IllegalStateException();
26617
    }
26618
 
26619
    @Override
26620
    public boolean equals(Object that) {
26621
      if (that == null)
26622
        return false;
26623
      if (that instanceof getSmsToBeSent_args)
26624
        return this.equals((getSmsToBeSent_args)that);
26625
      return false;
26626
    }
26627
 
26628
    public boolean equals(getSmsToBeSent_args that) {
26629
      if (that == null)
26630
        return false;
26631
 
26632
      return true;
26633
    }
26634
 
26635
    @Override
26636
    public int hashCode() {
26637
      return 0;
26638
    }
26639
 
26640
    public int compareTo(getSmsToBeSent_args other) {
26641
      if (!getClass().equals(other.getClass())) {
26642
        return getClass().getName().compareTo(other.getClass().getName());
26643
      }
26644
 
26645
      int lastComparison = 0;
26646
      getSmsToBeSent_args typedOther = (getSmsToBeSent_args)other;
26647
 
26648
      return 0;
26649
    }
26650
 
26651
    public _Fields fieldForId(int fieldId) {
26652
      return _Fields.findByThriftId(fieldId);
26653
    }
26654
 
26655
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26656
      org.apache.thrift.protocol.TField field;
26657
      iprot.readStructBegin();
26658
      while (true)
26659
      {
26660
        field = iprot.readFieldBegin();
26661
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26662
          break;
26663
        }
26664
        switch (field.id) {
26665
          default:
26666
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26667
        }
26668
        iprot.readFieldEnd();
26669
      }
26670
      iprot.readStructEnd();
26671
      validate();
26672
    }
26673
 
26674
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26675
      validate();
26676
 
26677
      oprot.writeStructBegin(STRUCT_DESC);
26678
      oprot.writeFieldStop();
26679
      oprot.writeStructEnd();
26680
    }
26681
 
26682
    @Override
26683
    public String toString() {
26684
      StringBuilder sb = new StringBuilder("getSmsToBeSent_args(");
26685
      boolean first = true;
26686
 
26687
      sb.append(")");
26688
      return sb.toString();
26689
    }
26690
 
26691
    public void validate() throws org.apache.thrift.TException {
26692
      // check for required fields
26693
    }
26694
 
26695
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26696
      try {
26697
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26698
      } catch (org.apache.thrift.TException te) {
26699
        throw new java.io.IOException(te);
26700
      }
26701
    }
26702
 
26703
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26704
      try {
26705
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26706
      } catch (org.apache.thrift.TException te) {
26707
        throw new java.io.IOException(te);
26708
      }
26709
    }
26710
 
26711
  }
26712
 
26713
  public static class getSmsToBeSent_result implements org.apache.thrift.TBase<getSmsToBeSent_result, getSmsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
26714
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSmsToBeSent_result");
26715
 
26716
    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);
26717
    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);
26718
 
26719
    private List<UserSms> success; // required
26720
    private HelperServiceException se; // required
26721
 
26722
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26723
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26724
      SUCCESS((short)0, "success"),
26725
      SE((short)1, "se");
26726
 
26727
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26728
 
26729
      static {
26730
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26731
          byName.put(field.getFieldName(), field);
26732
        }
26733
      }
26734
 
26735
      /**
26736
       * Find the _Fields constant that matches fieldId, or null if its not found.
26737
       */
26738
      public static _Fields findByThriftId(int fieldId) {
26739
        switch(fieldId) {
26740
          case 0: // SUCCESS
26741
            return SUCCESS;
26742
          case 1: // SE
26743
            return SE;
26744
          default:
26745
            return null;
26746
        }
26747
      }
26748
 
26749
      /**
26750
       * Find the _Fields constant that matches fieldId, throwing an exception
26751
       * if it is not found.
26752
       */
26753
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26754
        _Fields fields = findByThriftId(fieldId);
26755
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26756
        return fields;
26757
      }
26758
 
26759
      /**
26760
       * Find the _Fields constant that matches name, or null if its not found.
26761
       */
26762
      public static _Fields findByName(String name) {
26763
        return byName.get(name);
26764
      }
26765
 
26766
      private final short _thriftId;
26767
      private final String _fieldName;
26768
 
26769
      _Fields(short thriftId, String fieldName) {
26770
        _thriftId = thriftId;
26771
        _fieldName = fieldName;
26772
      }
26773
 
26774
      public short getThriftFieldId() {
26775
        return _thriftId;
26776
      }
26777
 
26778
      public String getFieldName() {
26779
        return _fieldName;
26780
      }
26781
    }
26782
 
26783
    // isset id assignments
26784
 
26785
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26786
    static {
26787
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26788
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26789
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26790
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
26791
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26792
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26793
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26794
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSmsToBeSent_result.class, metaDataMap);
26795
    }
26796
 
26797
    public getSmsToBeSent_result() {
26798
    }
26799
 
26800
    public getSmsToBeSent_result(
26801
      List<UserSms> success,
26802
      HelperServiceException se)
26803
    {
26804
      this();
26805
      this.success = success;
26806
      this.se = se;
26807
    }
26808
 
26809
    /**
26810
     * Performs a deep copy on <i>other</i>.
26811
     */
26812
    public getSmsToBeSent_result(getSmsToBeSent_result other) {
26813
      if (other.isSetSuccess()) {
26814
        List<UserSms> __this__success = new ArrayList<UserSms>();
26815
        for (UserSms other_element : other.success) {
26816
          __this__success.add(new UserSms(other_element));
26817
        }
26818
        this.success = __this__success;
26819
      }
26820
      if (other.isSetSe()) {
26821
        this.se = new HelperServiceException(other.se);
26822
      }
26823
    }
26824
 
26825
    public getSmsToBeSent_result deepCopy() {
26826
      return new getSmsToBeSent_result(this);
26827
    }
26828
 
26829
    @Override
26830
    public void clear() {
26831
      this.success = null;
26832
      this.se = null;
26833
    }
26834
 
26835
    public int getSuccessSize() {
26836
      return (this.success == null) ? 0 : this.success.size();
26837
    }
26838
 
26839
    public java.util.Iterator<UserSms> getSuccessIterator() {
26840
      return (this.success == null) ? null : this.success.iterator();
26841
    }
26842
 
26843
    public void addToSuccess(UserSms elem) {
26844
      if (this.success == null) {
26845
        this.success = new ArrayList<UserSms>();
26846
      }
26847
      this.success.add(elem);
26848
    }
26849
 
26850
    public List<UserSms> getSuccess() {
26851
      return this.success;
26852
    }
26853
 
26854
    public void setSuccess(List<UserSms> success) {
26855
      this.success = success;
26856
    }
26857
 
26858
    public void unsetSuccess() {
26859
      this.success = null;
26860
    }
26861
 
26862
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26863
    public boolean isSetSuccess() {
26864
      return this.success != null;
26865
    }
26866
 
26867
    public void setSuccessIsSet(boolean value) {
26868
      if (!value) {
26869
        this.success = null;
26870
      }
26871
    }
26872
 
26873
    public HelperServiceException getSe() {
26874
      return this.se;
26875
    }
26876
 
26877
    public void setSe(HelperServiceException se) {
26878
      this.se = se;
26879
    }
26880
 
26881
    public void unsetSe() {
26882
      this.se = null;
26883
    }
26884
 
26885
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
26886
    public boolean isSetSe() {
26887
      return this.se != null;
26888
    }
26889
 
26890
    public void setSeIsSet(boolean value) {
26891
      if (!value) {
26892
        this.se = null;
26893
      }
26894
    }
26895
 
26896
    public void setFieldValue(_Fields field, Object value) {
26897
      switch (field) {
26898
      case SUCCESS:
26899
        if (value == null) {
26900
          unsetSuccess();
26901
        } else {
26902
          setSuccess((List<UserSms>)value);
26903
        }
26904
        break;
26905
 
26906
      case SE:
26907
        if (value == null) {
26908
          unsetSe();
26909
        } else {
26910
          setSe((HelperServiceException)value);
26911
        }
26912
        break;
26913
 
26914
      }
26915
    }
26916
 
26917
    public Object getFieldValue(_Fields field) {
26918
      switch (field) {
26919
      case SUCCESS:
26920
        return getSuccess();
26921
 
26922
      case SE:
26923
        return getSe();
26924
 
26925
      }
26926
      throw new IllegalStateException();
26927
    }
26928
 
26929
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26930
    public boolean isSet(_Fields field) {
26931
      if (field == null) {
26932
        throw new IllegalArgumentException();
26933
      }
26934
 
26935
      switch (field) {
26936
      case SUCCESS:
26937
        return isSetSuccess();
26938
      case SE:
26939
        return isSetSe();
26940
      }
26941
      throw new IllegalStateException();
26942
    }
26943
 
26944
    @Override
26945
    public boolean equals(Object that) {
26946
      if (that == null)
26947
        return false;
26948
      if (that instanceof getSmsToBeSent_result)
26949
        return this.equals((getSmsToBeSent_result)that);
26950
      return false;
26951
    }
26952
 
26953
    public boolean equals(getSmsToBeSent_result that) {
26954
      if (that == null)
26955
        return false;
26956
 
26957
      boolean this_present_success = true && this.isSetSuccess();
26958
      boolean that_present_success = true && that.isSetSuccess();
26959
      if (this_present_success || that_present_success) {
26960
        if (!(this_present_success && that_present_success))
26961
          return false;
26962
        if (!this.success.equals(that.success))
26963
          return false;
26964
      }
26965
 
26966
      boolean this_present_se = true && this.isSetSe();
26967
      boolean that_present_se = true && that.isSetSe();
26968
      if (this_present_se || that_present_se) {
26969
        if (!(this_present_se && that_present_se))
26970
          return false;
26971
        if (!this.se.equals(that.se))
26972
          return false;
26973
      }
26974
 
26975
      return true;
26976
    }
26977
 
26978
    @Override
26979
    public int hashCode() {
26980
      return 0;
26981
    }
26982
 
26983
    public int compareTo(getSmsToBeSent_result other) {
26984
      if (!getClass().equals(other.getClass())) {
26985
        return getClass().getName().compareTo(other.getClass().getName());
26986
      }
26987
 
26988
      int lastComparison = 0;
26989
      getSmsToBeSent_result typedOther = (getSmsToBeSent_result)other;
26990
 
26991
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26992
      if (lastComparison != 0) {
26993
        return lastComparison;
26994
      }
26995
      if (isSetSuccess()) {
26996
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26997
        if (lastComparison != 0) {
26998
          return lastComparison;
26999
        }
27000
      }
27001
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
27002
      if (lastComparison != 0) {
27003
        return lastComparison;
27004
      }
27005
      if (isSetSe()) {
27006
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
27007
        if (lastComparison != 0) {
27008
          return lastComparison;
27009
        }
27010
      }
27011
      return 0;
27012
    }
27013
 
27014
    public _Fields fieldForId(int fieldId) {
27015
      return _Fields.findByThriftId(fieldId);
27016
    }
27017
 
27018
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27019
      org.apache.thrift.protocol.TField field;
27020
      iprot.readStructBegin();
27021
      while (true)
27022
      {
27023
        field = iprot.readFieldBegin();
27024
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27025
          break;
27026
        }
27027
        switch (field.id) {
27028
          case 0: // SUCCESS
27029
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
27030
              {
27031
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
27032
                this.success = new ArrayList<UserSms>(_list73.size);
27033
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
27034
                {
27035
                  UserSms _elem75; // required
27036
                  _elem75 = new UserSms();
27037
                  _elem75.read(iprot);
27038
                  this.success.add(_elem75);
27039
                }
27040
                iprot.readListEnd();
27041
              }
27042
            } else { 
27043
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27044
            }
27045
            break;
27046
          case 1: // SE
27047
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27048
              this.se = new HelperServiceException();
27049
              this.se.read(iprot);
27050
            } else { 
27051
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27052
            }
27053
            break;
27054
          default:
27055
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27056
        }
27057
        iprot.readFieldEnd();
27058
      }
27059
      iprot.readStructEnd();
27060
      validate();
27061
    }
27062
 
27063
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27064
      oprot.writeStructBegin(STRUCT_DESC);
27065
 
27066
      if (this.isSetSuccess()) {
27067
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
27068
        {
27069
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
27070
          for (UserSms _iter76 : this.success)
27071
          {
27072
            _iter76.write(oprot);
27073
          }
27074
          oprot.writeListEnd();
27075
        }
27076
        oprot.writeFieldEnd();
27077
      } else if (this.isSetSe()) {
27078
        oprot.writeFieldBegin(SE_FIELD_DESC);
27079
        this.se.write(oprot);
27080
        oprot.writeFieldEnd();
27081
      }
27082
      oprot.writeFieldStop();
27083
      oprot.writeStructEnd();
27084
    }
27085
 
27086
    @Override
27087
    public String toString() {
27088
      StringBuilder sb = new StringBuilder("getSmsToBeSent_result(");
27089
      boolean first = true;
27090
 
27091
      sb.append("success:");
27092
      if (this.success == null) {
27093
        sb.append("null");
27094
      } else {
27095
        sb.append(this.success);
27096
      }
27097
      first = false;
27098
      if (!first) sb.append(", ");
27099
      sb.append("se:");
27100
      if (this.se == null) {
27101
        sb.append("null");
27102
      } else {
27103
        sb.append(this.se);
27104
      }
27105
      first = false;
27106
      sb.append(")");
27107
      return sb.toString();
27108
    }
27109
 
27110
    public void validate() throws org.apache.thrift.TException {
27111
      // check for required fields
27112
    }
27113
 
27114
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27115
      try {
27116
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27117
      } catch (org.apache.thrift.TException te) {
27118
        throw new java.io.IOException(te);
27119
      }
27120
    }
27121
 
27122
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27123
      try {
27124
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27125
      } catch (org.apache.thrift.TException te) {
27126
        throw new java.io.IOException(te);
27127
      }
27128
    }
27129
 
27130
  }
27131
 
27132
  public static class addUserSmsInfo_args implements org.apache.thrift.TBase<addUserSmsInfo_args, addUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
27133
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserSmsInfo_args");
27134
 
27135
    private static final org.apache.thrift.protocol.TField USER_SMS_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsInfo", org.apache.thrift.protocol.TType.STRUCT, (short)1);
27136
 
27137
    private UserSmsInfo userSmsInfo; // required
27138
 
27139
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27140
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27141
      USER_SMS_INFO((short)1, "userSmsInfo");
27142
 
27143
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27144
 
27145
      static {
27146
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27147
          byName.put(field.getFieldName(), field);
27148
        }
27149
      }
27150
 
27151
      /**
27152
       * Find the _Fields constant that matches fieldId, or null if its not found.
27153
       */
27154
      public static _Fields findByThriftId(int fieldId) {
27155
        switch(fieldId) {
27156
          case 1: // USER_SMS_INFO
27157
            return USER_SMS_INFO;
27158
          default:
27159
            return null;
27160
        }
27161
      }
27162
 
27163
      /**
27164
       * Find the _Fields constant that matches fieldId, throwing an exception
27165
       * if it is not found.
27166
       */
27167
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27168
        _Fields fields = findByThriftId(fieldId);
27169
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27170
        return fields;
27171
      }
27172
 
27173
      /**
27174
       * Find the _Fields constant that matches name, or null if its not found.
27175
       */
27176
      public static _Fields findByName(String name) {
27177
        return byName.get(name);
27178
      }
27179
 
27180
      private final short _thriftId;
27181
      private final String _fieldName;
27182
 
27183
      _Fields(short thriftId, String fieldName) {
27184
        _thriftId = thriftId;
27185
        _fieldName = fieldName;
27186
      }
27187
 
27188
      public short getThriftFieldId() {
27189
        return _thriftId;
27190
      }
27191
 
27192
      public String getFieldName() {
27193
        return _fieldName;
27194
      }
27195
    }
27196
 
27197
    // isset id assignments
27198
 
27199
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27200
    static {
27201
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27202
      tmpMap.put(_Fields.USER_SMS_INFO, new org.apache.thrift.meta_data.FieldMetaData("userSmsInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27203
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));
27204
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27205
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserSmsInfo_args.class, metaDataMap);
27206
    }
27207
 
27208
    public addUserSmsInfo_args() {
27209
    }
27210
 
27211
    public addUserSmsInfo_args(
27212
      UserSmsInfo userSmsInfo)
27213
    {
27214
      this();
27215
      this.userSmsInfo = userSmsInfo;
27216
    }
27217
 
27218
    /**
27219
     * Performs a deep copy on <i>other</i>.
27220
     */
27221
    public addUserSmsInfo_args(addUserSmsInfo_args other) {
27222
      if (other.isSetUserSmsInfo()) {
27223
        this.userSmsInfo = new UserSmsInfo(other.userSmsInfo);
27224
      }
27225
    }
27226
 
27227
    public addUserSmsInfo_args deepCopy() {
27228
      return new addUserSmsInfo_args(this);
27229
    }
27230
 
27231
    @Override
27232
    public void clear() {
27233
      this.userSmsInfo = null;
27234
    }
27235
 
27236
    public UserSmsInfo getUserSmsInfo() {
27237
      return this.userSmsInfo;
27238
    }
27239
 
27240
    public void setUserSmsInfo(UserSmsInfo userSmsInfo) {
27241
      this.userSmsInfo = userSmsInfo;
27242
    }
27243
 
27244
    public void unsetUserSmsInfo() {
27245
      this.userSmsInfo = null;
27246
    }
27247
 
27248
    /** Returns true if field userSmsInfo is set (has been assigned a value) and false otherwise */
27249
    public boolean isSetUserSmsInfo() {
27250
      return this.userSmsInfo != null;
27251
    }
27252
 
27253
    public void setUserSmsInfoIsSet(boolean value) {
27254
      if (!value) {
27255
        this.userSmsInfo = null;
27256
      }
27257
    }
27258
 
27259
    public void setFieldValue(_Fields field, Object value) {
27260
      switch (field) {
27261
      case USER_SMS_INFO:
27262
        if (value == null) {
27263
          unsetUserSmsInfo();
27264
        } else {
27265
          setUserSmsInfo((UserSmsInfo)value);
27266
        }
27267
        break;
27268
 
27269
      }
27270
    }
27271
 
27272
    public Object getFieldValue(_Fields field) {
27273
      switch (field) {
27274
      case USER_SMS_INFO:
27275
        return getUserSmsInfo();
27276
 
27277
      }
27278
      throw new IllegalStateException();
27279
    }
27280
 
27281
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27282
    public boolean isSet(_Fields field) {
27283
      if (field == null) {
27284
        throw new IllegalArgumentException();
27285
      }
27286
 
27287
      switch (field) {
27288
      case USER_SMS_INFO:
27289
        return isSetUserSmsInfo();
27290
      }
27291
      throw new IllegalStateException();
27292
    }
27293
 
27294
    @Override
27295
    public boolean equals(Object that) {
27296
      if (that == null)
27297
        return false;
27298
      if (that instanceof addUserSmsInfo_args)
27299
        return this.equals((addUserSmsInfo_args)that);
27300
      return false;
27301
    }
27302
 
27303
    public boolean equals(addUserSmsInfo_args that) {
27304
      if (that == null)
27305
        return false;
27306
 
27307
      boolean this_present_userSmsInfo = true && this.isSetUserSmsInfo();
27308
      boolean that_present_userSmsInfo = true && that.isSetUserSmsInfo();
27309
      if (this_present_userSmsInfo || that_present_userSmsInfo) {
27310
        if (!(this_present_userSmsInfo && that_present_userSmsInfo))
27311
          return false;
27312
        if (!this.userSmsInfo.equals(that.userSmsInfo))
27313
          return false;
27314
      }
27315
 
27316
      return true;
27317
    }
27318
 
27319
    @Override
27320
    public int hashCode() {
27321
      return 0;
27322
    }
27323
 
27324
    public int compareTo(addUserSmsInfo_args other) {
27325
      if (!getClass().equals(other.getClass())) {
27326
        return getClass().getName().compareTo(other.getClass().getName());
27327
      }
27328
 
27329
      int lastComparison = 0;
27330
      addUserSmsInfo_args typedOther = (addUserSmsInfo_args)other;
27331
 
27332
      lastComparison = Boolean.valueOf(isSetUserSmsInfo()).compareTo(typedOther.isSetUserSmsInfo());
27333
      if (lastComparison != 0) {
27334
        return lastComparison;
27335
      }
27336
      if (isSetUserSmsInfo()) {
27337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsInfo, typedOther.userSmsInfo);
27338
        if (lastComparison != 0) {
27339
          return lastComparison;
27340
        }
27341
      }
27342
      return 0;
27343
    }
27344
 
27345
    public _Fields fieldForId(int fieldId) {
27346
      return _Fields.findByThriftId(fieldId);
27347
    }
27348
 
27349
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27350
      org.apache.thrift.protocol.TField field;
27351
      iprot.readStructBegin();
27352
      while (true)
27353
      {
27354
        field = iprot.readFieldBegin();
27355
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27356
          break;
27357
        }
27358
        switch (field.id) {
27359
          case 1: // USER_SMS_INFO
27360
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27361
              this.userSmsInfo = new UserSmsInfo();
27362
              this.userSmsInfo.read(iprot);
27363
            } else { 
27364
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27365
            }
27366
            break;
27367
          default:
27368
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27369
        }
27370
        iprot.readFieldEnd();
27371
      }
27372
      iprot.readStructEnd();
27373
      validate();
27374
    }
27375
 
27376
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27377
      validate();
27378
 
27379
      oprot.writeStructBegin(STRUCT_DESC);
27380
      if (this.userSmsInfo != null) {
27381
        oprot.writeFieldBegin(USER_SMS_INFO_FIELD_DESC);
27382
        this.userSmsInfo.write(oprot);
27383
        oprot.writeFieldEnd();
27384
      }
27385
      oprot.writeFieldStop();
27386
      oprot.writeStructEnd();
27387
    }
27388
 
27389
    @Override
27390
    public String toString() {
27391
      StringBuilder sb = new StringBuilder("addUserSmsInfo_args(");
27392
      boolean first = true;
27393
 
27394
      sb.append("userSmsInfo:");
27395
      if (this.userSmsInfo == null) {
27396
        sb.append("null");
27397
      } else {
27398
        sb.append(this.userSmsInfo);
27399
      }
27400
      first = false;
27401
      sb.append(")");
27402
      return sb.toString();
27403
    }
27404
 
27405
    public void validate() throws org.apache.thrift.TException {
27406
      // check for required fields
27407
    }
27408
 
27409
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27410
      try {
27411
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27412
      } catch (org.apache.thrift.TException te) {
27413
        throw new java.io.IOException(te);
27414
      }
27415
    }
27416
 
27417
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27418
      try {
27419
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27420
      } catch (org.apache.thrift.TException te) {
27421
        throw new java.io.IOException(te);
27422
      }
27423
    }
27424
 
27425
  }
27426
 
27427
  public static class addUserSmsInfo_result implements org.apache.thrift.TBase<addUserSmsInfo_result, addUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
27428
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserSmsInfo_result");
27429
 
27430
    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);
27431
 
27432
    private HelperServiceException se; // required
27433
 
27434
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27435
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27436
      SE((short)1, "se");
27437
 
27438
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27439
 
27440
      static {
27441
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27442
          byName.put(field.getFieldName(), field);
27443
        }
27444
      }
27445
 
27446
      /**
27447
       * Find the _Fields constant that matches fieldId, or null if its not found.
27448
       */
27449
      public static _Fields findByThriftId(int fieldId) {
27450
        switch(fieldId) {
27451
          case 1: // SE
27452
            return SE;
27453
          default:
27454
            return null;
27455
        }
27456
      }
27457
 
27458
      /**
27459
       * Find the _Fields constant that matches fieldId, throwing an exception
27460
       * if it is not found.
27461
       */
27462
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27463
        _Fields fields = findByThriftId(fieldId);
27464
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27465
        return fields;
27466
      }
27467
 
27468
      /**
27469
       * Find the _Fields constant that matches name, or null if its not found.
27470
       */
27471
      public static _Fields findByName(String name) {
27472
        return byName.get(name);
27473
      }
27474
 
27475
      private final short _thriftId;
27476
      private final String _fieldName;
27477
 
27478
      _Fields(short thriftId, String fieldName) {
27479
        _thriftId = thriftId;
27480
        _fieldName = fieldName;
27481
      }
27482
 
27483
      public short getThriftFieldId() {
27484
        return _thriftId;
27485
      }
27486
 
27487
      public String getFieldName() {
27488
        return _fieldName;
27489
      }
27490
    }
27491
 
27492
    // isset id assignments
27493
 
27494
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27495
    static {
27496
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27497
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27498
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27499
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27500
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserSmsInfo_result.class, metaDataMap);
27501
    }
27502
 
27503
    public addUserSmsInfo_result() {
27504
    }
27505
 
27506
    public addUserSmsInfo_result(
27507
      HelperServiceException se)
27508
    {
27509
      this();
27510
      this.se = se;
27511
    }
27512
 
27513
    /**
27514
     * Performs a deep copy on <i>other</i>.
27515
     */
27516
    public addUserSmsInfo_result(addUserSmsInfo_result other) {
27517
      if (other.isSetSe()) {
27518
        this.se = new HelperServiceException(other.se);
27519
      }
27520
    }
27521
 
27522
    public addUserSmsInfo_result deepCopy() {
27523
      return new addUserSmsInfo_result(this);
27524
    }
27525
 
27526
    @Override
27527
    public void clear() {
27528
      this.se = null;
27529
    }
27530
 
27531
    public HelperServiceException getSe() {
27532
      return this.se;
27533
    }
27534
 
27535
    public void setSe(HelperServiceException se) {
27536
      this.se = se;
27537
    }
27538
 
27539
    public void unsetSe() {
27540
      this.se = null;
27541
    }
27542
 
27543
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
27544
    public boolean isSetSe() {
27545
      return this.se != null;
27546
    }
27547
 
27548
    public void setSeIsSet(boolean value) {
27549
      if (!value) {
27550
        this.se = null;
27551
      }
27552
    }
27553
 
27554
    public void setFieldValue(_Fields field, Object value) {
27555
      switch (field) {
27556
      case SE:
27557
        if (value == null) {
27558
          unsetSe();
27559
        } else {
27560
          setSe((HelperServiceException)value);
27561
        }
27562
        break;
27563
 
27564
      }
27565
    }
27566
 
27567
    public Object getFieldValue(_Fields field) {
27568
      switch (field) {
27569
      case SE:
27570
        return getSe();
27571
 
27572
      }
27573
      throw new IllegalStateException();
27574
    }
27575
 
27576
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27577
    public boolean isSet(_Fields field) {
27578
      if (field == null) {
27579
        throw new IllegalArgumentException();
27580
      }
27581
 
27582
      switch (field) {
27583
      case SE:
27584
        return isSetSe();
27585
      }
27586
      throw new IllegalStateException();
27587
    }
27588
 
27589
    @Override
27590
    public boolean equals(Object that) {
27591
      if (that == null)
27592
        return false;
27593
      if (that instanceof addUserSmsInfo_result)
27594
        return this.equals((addUserSmsInfo_result)that);
27595
      return false;
27596
    }
27597
 
27598
    public boolean equals(addUserSmsInfo_result that) {
27599
      if (that == null)
27600
        return false;
27601
 
27602
      boolean this_present_se = true && this.isSetSe();
27603
      boolean that_present_se = true && that.isSetSe();
27604
      if (this_present_se || that_present_se) {
27605
        if (!(this_present_se && that_present_se))
27606
          return false;
27607
        if (!this.se.equals(that.se))
27608
          return false;
27609
      }
27610
 
27611
      return true;
27612
    }
27613
 
27614
    @Override
27615
    public int hashCode() {
27616
      return 0;
27617
    }
27618
 
27619
    public int compareTo(addUserSmsInfo_result other) {
27620
      if (!getClass().equals(other.getClass())) {
27621
        return getClass().getName().compareTo(other.getClass().getName());
27622
      }
27623
 
27624
      int lastComparison = 0;
27625
      addUserSmsInfo_result typedOther = (addUserSmsInfo_result)other;
27626
 
27627
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
27628
      if (lastComparison != 0) {
27629
        return lastComparison;
27630
      }
27631
      if (isSetSe()) {
27632
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
27633
        if (lastComparison != 0) {
27634
          return lastComparison;
27635
        }
27636
      }
27637
      return 0;
27638
    }
27639
 
27640
    public _Fields fieldForId(int fieldId) {
27641
      return _Fields.findByThriftId(fieldId);
27642
    }
27643
 
27644
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27645
      org.apache.thrift.protocol.TField field;
27646
      iprot.readStructBegin();
27647
      while (true)
27648
      {
27649
        field = iprot.readFieldBegin();
27650
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27651
          break;
27652
        }
27653
        switch (field.id) {
27654
          case 1: // SE
27655
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27656
              this.se = new HelperServiceException();
27657
              this.se.read(iprot);
27658
            } else { 
27659
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27660
            }
27661
            break;
27662
          default:
27663
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27664
        }
27665
        iprot.readFieldEnd();
27666
      }
27667
      iprot.readStructEnd();
27668
      validate();
27669
    }
27670
 
27671
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27672
      oprot.writeStructBegin(STRUCT_DESC);
27673
 
27674
      if (this.isSetSe()) {
27675
        oprot.writeFieldBegin(SE_FIELD_DESC);
27676
        this.se.write(oprot);
27677
        oprot.writeFieldEnd();
27678
      }
27679
      oprot.writeFieldStop();
27680
      oprot.writeStructEnd();
27681
    }
27682
 
27683
    @Override
27684
    public String toString() {
27685
      StringBuilder sb = new StringBuilder("addUserSmsInfo_result(");
27686
      boolean first = true;
27687
 
27688
      sb.append("se:");
27689
      if (this.se == null) {
27690
        sb.append("null");
27691
      } else {
27692
        sb.append(this.se);
27693
      }
27694
      first = false;
27695
      sb.append(")");
27696
      return sb.toString();
27697
    }
27698
 
27699
    public void validate() throws org.apache.thrift.TException {
27700
      // check for required fields
27701
    }
27702
 
27703
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27704
      try {
27705
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27706
      } catch (org.apache.thrift.TException te) {
27707
        throw new java.io.IOException(te);
27708
      }
27709
    }
27710
 
27711
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27712
      try {
27713
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27714
      } catch (org.apache.thrift.TException te) {
27715
        throw new java.io.IOException(te);
27716
      }
27717
    }
27718
 
27719
  }
27720
 
27721
  public static class updateUserSmsInfo_args implements org.apache.thrift.TBase<updateUserSmsInfo_args, updateUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
27722
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSmsInfo_args");
27723
 
27724
    private static final org.apache.thrift.protocol.TField USER_SMS_INFO_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsInfo", org.apache.thrift.protocol.TType.STRUCT, (short)1);
27725
 
27726
    private UserSmsInfo userSmsInfo; // required
27727
 
27728
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27729
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27730
      USER_SMS_INFO((short)1, "userSmsInfo");
27731
 
27732
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27733
 
27734
      static {
27735
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27736
          byName.put(field.getFieldName(), field);
27737
        }
27738
      }
27739
 
27740
      /**
27741
       * Find the _Fields constant that matches fieldId, or null if its not found.
27742
       */
27743
      public static _Fields findByThriftId(int fieldId) {
27744
        switch(fieldId) {
27745
          case 1: // USER_SMS_INFO
27746
            return USER_SMS_INFO;
27747
          default:
27748
            return null;
27749
        }
27750
      }
27751
 
27752
      /**
27753
       * Find the _Fields constant that matches fieldId, throwing an exception
27754
       * if it is not found.
27755
       */
27756
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27757
        _Fields fields = findByThriftId(fieldId);
27758
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27759
        return fields;
27760
      }
27761
 
27762
      /**
27763
       * Find the _Fields constant that matches name, or null if its not found.
27764
       */
27765
      public static _Fields findByName(String name) {
27766
        return byName.get(name);
27767
      }
27768
 
27769
      private final short _thriftId;
27770
      private final String _fieldName;
27771
 
27772
      _Fields(short thriftId, String fieldName) {
27773
        _thriftId = thriftId;
27774
        _fieldName = fieldName;
27775
      }
27776
 
27777
      public short getThriftFieldId() {
27778
        return _thriftId;
27779
      }
27780
 
27781
      public String getFieldName() {
27782
        return _fieldName;
27783
      }
27784
    }
27785
 
27786
    // isset id assignments
27787
 
27788
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27789
    static {
27790
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27791
      tmpMap.put(_Fields.USER_SMS_INFO, new org.apache.thrift.meta_data.FieldMetaData("userSmsInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27792
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));
27793
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27794
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSmsInfo_args.class, metaDataMap);
27795
    }
27796
 
27797
    public updateUserSmsInfo_args() {
27798
    }
27799
 
27800
    public updateUserSmsInfo_args(
27801
      UserSmsInfo userSmsInfo)
27802
    {
27803
      this();
27804
      this.userSmsInfo = userSmsInfo;
27805
    }
27806
 
27807
    /**
27808
     * Performs a deep copy on <i>other</i>.
27809
     */
27810
    public updateUserSmsInfo_args(updateUserSmsInfo_args other) {
27811
      if (other.isSetUserSmsInfo()) {
27812
        this.userSmsInfo = new UserSmsInfo(other.userSmsInfo);
27813
      }
27814
    }
27815
 
27816
    public updateUserSmsInfo_args deepCopy() {
27817
      return new updateUserSmsInfo_args(this);
27818
    }
27819
 
27820
    @Override
27821
    public void clear() {
27822
      this.userSmsInfo = null;
27823
    }
27824
 
27825
    public UserSmsInfo getUserSmsInfo() {
27826
      return this.userSmsInfo;
27827
    }
27828
 
27829
    public void setUserSmsInfo(UserSmsInfo userSmsInfo) {
27830
      this.userSmsInfo = userSmsInfo;
27831
    }
27832
 
27833
    public void unsetUserSmsInfo() {
27834
      this.userSmsInfo = null;
27835
    }
27836
 
27837
    /** Returns true if field userSmsInfo is set (has been assigned a value) and false otherwise */
27838
    public boolean isSetUserSmsInfo() {
27839
      return this.userSmsInfo != null;
27840
    }
27841
 
27842
    public void setUserSmsInfoIsSet(boolean value) {
27843
      if (!value) {
27844
        this.userSmsInfo = null;
27845
      }
27846
    }
27847
 
27848
    public void setFieldValue(_Fields field, Object value) {
27849
      switch (field) {
27850
      case USER_SMS_INFO:
27851
        if (value == null) {
27852
          unsetUserSmsInfo();
27853
        } else {
27854
          setUserSmsInfo((UserSmsInfo)value);
27855
        }
27856
        break;
27857
 
27858
      }
27859
    }
27860
 
27861
    public Object getFieldValue(_Fields field) {
27862
      switch (field) {
27863
      case USER_SMS_INFO:
27864
        return getUserSmsInfo();
27865
 
27866
      }
27867
      throw new IllegalStateException();
27868
    }
27869
 
27870
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27871
    public boolean isSet(_Fields field) {
27872
      if (field == null) {
27873
        throw new IllegalArgumentException();
27874
      }
27875
 
27876
      switch (field) {
27877
      case USER_SMS_INFO:
27878
        return isSetUserSmsInfo();
27879
      }
27880
      throw new IllegalStateException();
27881
    }
27882
 
27883
    @Override
27884
    public boolean equals(Object that) {
27885
      if (that == null)
27886
        return false;
27887
      if (that instanceof updateUserSmsInfo_args)
27888
        return this.equals((updateUserSmsInfo_args)that);
27889
      return false;
27890
    }
27891
 
27892
    public boolean equals(updateUserSmsInfo_args that) {
27893
      if (that == null)
27894
        return false;
27895
 
27896
      boolean this_present_userSmsInfo = true && this.isSetUserSmsInfo();
27897
      boolean that_present_userSmsInfo = true && that.isSetUserSmsInfo();
27898
      if (this_present_userSmsInfo || that_present_userSmsInfo) {
27899
        if (!(this_present_userSmsInfo && that_present_userSmsInfo))
27900
          return false;
27901
        if (!this.userSmsInfo.equals(that.userSmsInfo))
27902
          return false;
27903
      }
27904
 
27905
      return true;
27906
    }
27907
 
27908
    @Override
27909
    public int hashCode() {
27910
      return 0;
27911
    }
27912
 
27913
    public int compareTo(updateUserSmsInfo_args other) {
27914
      if (!getClass().equals(other.getClass())) {
27915
        return getClass().getName().compareTo(other.getClass().getName());
27916
      }
27917
 
27918
      int lastComparison = 0;
27919
      updateUserSmsInfo_args typedOther = (updateUserSmsInfo_args)other;
27920
 
27921
      lastComparison = Boolean.valueOf(isSetUserSmsInfo()).compareTo(typedOther.isSetUserSmsInfo());
27922
      if (lastComparison != 0) {
27923
        return lastComparison;
27924
      }
27925
      if (isSetUserSmsInfo()) {
27926
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsInfo, typedOther.userSmsInfo);
27927
        if (lastComparison != 0) {
27928
          return lastComparison;
27929
        }
27930
      }
27931
      return 0;
27932
    }
27933
 
27934
    public _Fields fieldForId(int fieldId) {
27935
      return _Fields.findByThriftId(fieldId);
27936
    }
27937
 
27938
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27939
      org.apache.thrift.protocol.TField field;
27940
      iprot.readStructBegin();
27941
      while (true)
27942
      {
27943
        field = iprot.readFieldBegin();
27944
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27945
          break;
27946
        }
27947
        switch (field.id) {
27948
          case 1: // USER_SMS_INFO
27949
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27950
              this.userSmsInfo = new UserSmsInfo();
27951
              this.userSmsInfo.read(iprot);
27952
            } else { 
27953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27954
            }
27955
            break;
27956
          default:
27957
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27958
        }
27959
        iprot.readFieldEnd();
27960
      }
27961
      iprot.readStructEnd();
27962
      validate();
27963
    }
27964
 
27965
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27966
      validate();
27967
 
27968
      oprot.writeStructBegin(STRUCT_DESC);
27969
      if (this.userSmsInfo != null) {
27970
        oprot.writeFieldBegin(USER_SMS_INFO_FIELD_DESC);
27971
        this.userSmsInfo.write(oprot);
27972
        oprot.writeFieldEnd();
27973
      }
27974
      oprot.writeFieldStop();
27975
      oprot.writeStructEnd();
27976
    }
27977
 
27978
    @Override
27979
    public String toString() {
27980
      StringBuilder sb = new StringBuilder("updateUserSmsInfo_args(");
27981
      boolean first = true;
27982
 
27983
      sb.append("userSmsInfo:");
27984
      if (this.userSmsInfo == null) {
27985
        sb.append("null");
27986
      } else {
27987
        sb.append(this.userSmsInfo);
27988
      }
27989
      first = false;
27990
      sb.append(")");
27991
      return sb.toString();
27992
    }
27993
 
27994
    public void validate() throws org.apache.thrift.TException {
27995
      // check for required fields
27996
    }
27997
 
27998
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27999
      try {
28000
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28001
      } catch (org.apache.thrift.TException te) {
28002
        throw new java.io.IOException(te);
28003
      }
28004
    }
28005
 
28006
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28007
      try {
28008
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28009
      } catch (org.apache.thrift.TException te) {
28010
        throw new java.io.IOException(te);
28011
      }
28012
    }
28013
 
28014
  }
28015
 
28016
  public static class updateUserSmsInfo_result implements org.apache.thrift.TBase<updateUserSmsInfo_result, updateUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
28017
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSmsInfo_result");
28018
 
28019
    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);
28020
    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);
28021
 
28022
    private boolean success; // required
28023
    private HelperServiceException se; // required
28024
 
28025
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28026
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28027
      SUCCESS((short)0, "success"),
28028
      SE((short)1, "se");
28029
 
28030
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28031
 
28032
      static {
28033
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28034
          byName.put(field.getFieldName(), field);
28035
        }
28036
      }
28037
 
28038
      /**
28039
       * Find the _Fields constant that matches fieldId, or null if its not found.
28040
       */
28041
      public static _Fields findByThriftId(int fieldId) {
28042
        switch(fieldId) {
28043
          case 0: // SUCCESS
28044
            return SUCCESS;
28045
          case 1: // SE
28046
            return SE;
28047
          default:
28048
            return null;
28049
        }
28050
      }
28051
 
28052
      /**
28053
       * Find the _Fields constant that matches fieldId, throwing an exception
28054
       * if it is not found.
28055
       */
28056
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28057
        _Fields fields = findByThriftId(fieldId);
28058
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28059
        return fields;
28060
      }
28061
 
28062
      /**
28063
       * Find the _Fields constant that matches name, or null if its not found.
28064
       */
28065
      public static _Fields findByName(String name) {
28066
        return byName.get(name);
28067
      }
28068
 
28069
      private final short _thriftId;
28070
      private final String _fieldName;
28071
 
28072
      _Fields(short thriftId, String fieldName) {
28073
        _thriftId = thriftId;
28074
        _fieldName = fieldName;
28075
      }
28076
 
28077
      public short getThriftFieldId() {
28078
        return _thriftId;
28079
      }
28080
 
28081
      public String getFieldName() {
28082
        return _fieldName;
28083
      }
28084
    }
28085
 
28086
    // isset id assignments
28087
    private static final int __SUCCESS_ISSET_ID = 0;
28088
    private BitSet __isset_bit_vector = new BitSet(1);
28089
 
28090
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28091
    static {
28092
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28093
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28094
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
28095
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28096
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28097
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28098
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSmsInfo_result.class, metaDataMap);
28099
    }
28100
 
28101
    public updateUserSmsInfo_result() {
28102
    }
28103
 
28104
    public updateUserSmsInfo_result(
28105
      boolean success,
28106
      HelperServiceException se)
28107
    {
28108
      this();
28109
      this.success = success;
28110
      setSuccessIsSet(true);
28111
      this.se = se;
28112
    }
28113
 
28114
    /**
28115
     * Performs a deep copy on <i>other</i>.
28116
     */
28117
    public updateUserSmsInfo_result(updateUserSmsInfo_result other) {
28118
      __isset_bit_vector.clear();
28119
      __isset_bit_vector.or(other.__isset_bit_vector);
28120
      this.success = other.success;
28121
      if (other.isSetSe()) {
28122
        this.se = new HelperServiceException(other.se);
28123
      }
28124
    }
28125
 
28126
    public updateUserSmsInfo_result deepCopy() {
28127
      return new updateUserSmsInfo_result(this);
28128
    }
28129
 
28130
    @Override
28131
    public void clear() {
28132
      setSuccessIsSet(false);
28133
      this.success = false;
28134
      this.se = null;
28135
    }
28136
 
28137
    public boolean isSuccess() {
28138
      return this.success;
28139
    }
28140
 
28141
    public void setSuccess(boolean success) {
28142
      this.success = success;
28143
      setSuccessIsSet(true);
28144
    }
28145
 
28146
    public void unsetSuccess() {
28147
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28148
    }
28149
 
28150
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28151
    public boolean isSetSuccess() {
28152
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28153
    }
28154
 
28155
    public void setSuccessIsSet(boolean value) {
28156
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28157
    }
28158
 
28159
    public HelperServiceException getSe() {
28160
      return this.se;
28161
    }
28162
 
28163
    public void setSe(HelperServiceException se) {
28164
      this.se = se;
28165
    }
28166
 
28167
    public void unsetSe() {
28168
      this.se = null;
28169
    }
28170
 
28171
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
28172
    public boolean isSetSe() {
28173
      return this.se != null;
28174
    }
28175
 
28176
    public void setSeIsSet(boolean value) {
28177
      if (!value) {
28178
        this.se = null;
28179
      }
28180
    }
28181
 
28182
    public void setFieldValue(_Fields field, Object value) {
28183
      switch (field) {
28184
      case SUCCESS:
28185
        if (value == null) {
28186
          unsetSuccess();
28187
        } else {
28188
          setSuccess((Boolean)value);
28189
        }
28190
        break;
28191
 
28192
      case SE:
28193
        if (value == null) {
28194
          unsetSe();
28195
        } else {
28196
          setSe((HelperServiceException)value);
28197
        }
28198
        break;
28199
 
28200
      }
28201
    }
28202
 
28203
    public Object getFieldValue(_Fields field) {
28204
      switch (field) {
28205
      case SUCCESS:
28206
        return Boolean.valueOf(isSuccess());
28207
 
28208
      case SE:
28209
        return getSe();
28210
 
28211
      }
28212
      throw new IllegalStateException();
28213
    }
28214
 
28215
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28216
    public boolean isSet(_Fields field) {
28217
      if (field == null) {
28218
        throw new IllegalArgumentException();
28219
      }
28220
 
28221
      switch (field) {
28222
      case SUCCESS:
28223
        return isSetSuccess();
28224
      case SE:
28225
        return isSetSe();
28226
      }
28227
      throw new IllegalStateException();
28228
    }
28229
 
28230
    @Override
28231
    public boolean equals(Object that) {
28232
      if (that == null)
28233
        return false;
28234
      if (that instanceof updateUserSmsInfo_result)
28235
        return this.equals((updateUserSmsInfo_result)that);
28236
      return false;
28237
    }
28238
 
28239
    public boolean equals(updateUserSmsInfo_result that) {
28240
      if (that == null)
28241
        return false;
28242
 
28243
      boolean this_present_success = true;
28244
      boolean that_present_success = true;
28245
      if (this_present_success || that_present_success) {
28246
        if (!(this_present_success && that_present_success))
28247
          return false;
28248
        if (this.success != that.success)
28249
          return false;
28250
      }
28251
 
28252
      boolean this_present_se = true && this.isSetSe();
28253
      boolean that_present_se = true && that.isSetSe();
28254
      if (this_present_se || that_present_se) {
28255
        if (!(this_present_se && that_present_se))
28256
          return false;
28257
        if (!this.se.equals(that.se))
28258
          return false;
28259
      }
28260
 
28261
      return true;
28262
    }
28263
 
28264
    @Override
28265
    public int hashCode() {
28266
      return 0;
28267
    }
28268
 
28269
    public int compareTo(updateUserSmsInfo_result other) {
28270
      if (!getClass().equals(other.getClass())) {
28271
        return getClass().getName().compareTo(other.getClass().getName());
28272
      }
28273
 
28274
      int lastComparison = 0;
28275
      updateUserSmsInfo_result typedOther = (updateUserSmsInfo_result)other;
28276
 
28277
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28278
      if (lastComparison != 0) {
28279
        return lastComparison;
28280
      }
28281
      if (isSetSuccess()) {
28282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28283
        if (lastComparison != 0) {
28284
          return lastComparison;
28285
        }
28286
      }
28287
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
28288
      if (lastComparison != 0) {
28289
        return lastComparison;
28290
      }
28291
      if (isSetSe()) {
28292
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
28293
        if (lastComparison != 0) {
28294
          return lastComparison;
28295
        }
28296
      }
28297
      return 0;
28298
    }
28299
 
28300
    public _Fields fieldForId(int fieldId) {
28301
      return _Fields.findByThriftId(fieldId);
28302
    }
28303
 
28304
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28305
      org.apache.thrift.protocol.TField field;
28306
      iprot.readStructBegin();
28307
      while (true)
28308
      {
28309
        field = iprot.readFieldBegin();
28310
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28311
          break;
28312
        }
28313
        switch (field.id) {
28314
          case 0: // SUCCESS
28315
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
28316
              this.success = iprot.readBool();
28317
              setSuccessIsSet(true);
28318
            } else { 
28319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28320
            }
28321
            break;
28322
          case 1: // SE
28323
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28324
              this.se = new HelperServiceException();
28325
              this.se.read(iprot);
28326
            } else { 
28327
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28328
            }
28329
            break;
28330
          default:
28331
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28332
        }
28333
        iprot.readFieldEnd();
28334
      }
28335
      iprot.readStructEnd();
28336
      validate();
28337
    }
28338
 
28339
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28340
      oprot.writeStructBegin(STRUCT_DESC);
28341
 
28342
      if (this.isSetSuccess()) {
28343
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28344
        oprot.writeBool(this.success);
28345
        oprot.writeFieldEnd();
28346
      } else if (this.isSetSe()) {
28347
        oprot.writeFieldBegin(SE_FIELD_DESC);
28348
        this.se.write(oprot);
28349
        oprot.writeFieldEnd();
28350
      }
28351
      oprot.writeFieldStop();
28352
      oprot.writeStructEnd();
28353
    }
28354
 
28355
    @Override
28356
    public String toString() {
28357
      StringBuilder sb = new StringBuilder("updateUserSmsInfo_result(");
28358
      boolean first = true;
28359
 
28360
      sb.append("success:");
28361
      sb.append(this.success);
28362
      first = false;
28363
      if (!first) sb.append(", ");
28364
      sb.append("se:");
28365
      if (this.se == null) {
28366
        sb.append("null");
28367
      } else {
28368
        sb.append(this.se);
28369
      }
28370
      first = false;
28371
      sb.append(")");
28372
      return sb.toString();
28373
    }
28374
 
28375
    public void validate() throws org.apache.thrift.TException {
28376
      // check for required fields
28377
    }
28378
 
28379
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28380
      try {
28381
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28382
      } catch (org.apache.thrift.TException te) {
28383
        throw new java.io.IOException(te);
28384
      }
28385
    }
28386
 
28387
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28388
      try {
28389
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28390
      } catch (org.apache.thrift.TException te) {
28391
        throw new java.io.IOException(te);
28392
      }
28393
    }
28394
 
28395
  }
28396
 
28397
  public static class getUserSmsInfo_args implements org.apache.thrift.TBase<getUserSmsInfo_args, getUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
28398
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSmsInfo_args");
28399
 
28400
    private static final org.apache.thrift.protocol.TField USER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("userId", org.apache.thrift.protocol.TType.I64, (short)1);
28401
 
28402
    private long userId; // required
28403
 
28404
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28405
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28406
      USER_ID((short)1, "userId");
28407
 
28408
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28409
 
28410
      static {
28411
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28412
          byName.put(field.getFieldName(), field);
28413
        }
28414
      }
28415
 
28416
      /**
28417
       * Find the _Fields constant that matches fieldId, or null if its not found.
28418
       */
28419
      public static _Fields findByThriftId(int fieldId) {
28420
        switch(fieldId) {
28421
          case 1: // USER_ID
28422
            return USER_ID;
28423
          default:
28424
            return null;
28425
        }
28426
      }
28427
 
28428
      /**
28429
       * Find the _Fields constant that matches fieldId, throwing an exception
28430
       * if it is not found.
28431
       */
28432
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28433
        _Fields fields = findByThriftId(fieldId);
28434
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28435
        return fields;
28436
      }
28437
 
28438
      /**
28439
       * Find the _Fields constant that matches name, or null if its not found.
28440
       */
28441
      public static _Fields findByName(String name) {
28442
        return byName.get(name);
28443
      }
28444
 
28445
      private final short _thriftId;
28446
      private final String _fieldName;
28447
 
28448
      _Fields(short thriftId, String fieldName) {
28449
        _thriftId = thriftId;
28450
        _fieldName = fieldName;
28451
      }
28452
 
28453
      public short getThriftFieldId() {
28454
        return _thriftId;
28455
      }
28456
 
28457
      public String getFieldName() {
28458
        return _fieldName;
28459
      }
28460
    }
28461
 
28462
    // isset id assignments
28463
    private static final int __USERID_ISSET_ID = 0;
28464
    private BitSet __isset_bit_vector = new BitSet(1);
28465
 
28466
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28467
    static {
28468
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28469
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28470
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28471
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28472
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSmsInfo_args.class, metaDataMap);
28473
    }
28474
 
28475
    public getUserSmsInfo_args() {
28476
    }
28477
 
28478
    public getUserSmsInfo_args(
28479
      long userId)
28480
    {
28481
      this();
28482
      this.userId = userId;
28483
      setUserIdIsSet(true);
28484
    }
28485
 
28486
    /**
28487
     * Performs a deep copy on <i>other</i>.
28488
     */
28489
    public getUserSmsInfo_args(getUserSmsInfo_args other) {
28490
      __isset_bit_vector.clear();
28491
      __isset_bit_vector.or(other.__isset_bit_vector);
28492
      this.userId = other.userId;
28493
    }
28494
 
28495
    public getUserSmsInfo_args deepCopy() {
28496
      return new getUserSmsInfo_args(this);
28497
    }
28498
 
28499
    @Override
28500
    public void clear() {
28501
      setUserIdIsSet(false);
28502
      this.userId = 0;
28503
    }
28504
 
28505
    public long getUserId() {
28506
      return this.userId;
28507
    }
28508
 
28509
    public void setUserId(long userId) {
28510
      this.userId = userId;
28511
      setUserIdIsSet(true);
28512
    }
28513
 
28514
    public void unsetUserId() {
28515
      __isset_bit_vector.clear(__USERID_ISSET_ID);
28516
    }
28517
 
28518
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
28519
    public boolean isSetUserId() {
28520
      return __isset_bit_vector.get(__USERID_ISSET_ID);
28521
    }
28522
 
28523
    public void setUserIdIsSet(boolean value) {
28524
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
28525
    }
28526
 
28527
    public void setFieldValue(_Fields field, Object value) {
28528
      switch (field) {
28529
      case USER_ID:
28530
        if (value == null) {
28531
          unsetUserId();
28532
        } else {
28533
          setUserId((Long)value);
28534
        }
28535
        break;
28536
 
28537
      }
28538
    }
28539
 
28540
    public Object getFieldValue(_Fields field) {
28541
      switch (field) {
28542
      case USER_ID:
28543
        return Long.valueOf(getUserId());
28544
 
28545
      }
28546
      throw new IllegalStateException();
28547
    }
28548
 
28549
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28550
    public boolean isSet(_Fields field) {
28551
      if (field == null) {
28552
        throw new IllegalArgumentException();
28553
      }
28554
 
28555
      switch (field) {
28556
      case USER_ID:
28557
        return isSetUserId();
28558
      }
28559
      throw new IllegalStateException();
28560
    }
28561
 
28562
    @Override
28563
    public boolean equals(Object that) {
28564
      if (that == null)
28565
        return false;
28566
      if (that instanceof getUserSmsInfo_args)
28567
        return this.equals((getUserSmsInfo_args)that);
28568
      return false;
28569
    }
28570
 
28571
    public boolean equals(getUserSmsInfo_args that) {
28572
      if (that == null)
28573
        return false;
28574
 
28575
      boolean this_present_userId = true;
28576
      boolean that_present_userId = true;
28577
      if (this_present_userId || that_present_userId) {
28578
        if (!(this_present_userId && that_present_userId))
28579
          return false;
28580
        if (this.userId != that.userId)
28581
          return false;
28582
      }
28583
 
28584
      return true;
28585
    }
28586
 
28587
    @Override
28588
    public int hashCode() {
28589
      return 0;
28590
    }
28591
 
28592
    public int compareTo(getUserSmsInfo_args other) {
28593
      if (!getClass().equals(other.getClass())) {
28594
        return getClass().getName().compareTo(other.getClass().getName());
28595
      }
28596
 
28597
      int lastComparison = 0;
28598
      getUserSmsInfo_args typedOther = (getUserSmsInfo_args)other;
28599
 
28600
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
28601
      if (lastComparison != 0) {
28602
        return lastComparison;
28603
      }
28604
      if (isSetUserId()) {
28605
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
28606
        if (lastComparison != 0) {
28607
          return lastComparison;
28608
        }
28609
      }
28610
      return 0;
28611
    }
28612
 
28613
    public _Fields fieldForId(int fieldId) {
28614
      return _Fields.findByThriftId(fieldId);
28615
    }
28616
 
28617
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28618
      org.apache.thrift.protocol.TField field;
28619
      iprot.readStructBegin();
28620
      while (true)
28621
      {
28622
        field = iprot.readFieldBegin();
28623
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28624
          break;
28625
        }
28626
        switch (field.id) {
28627
          case 1: // USER_ID
28628
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28629
              this.userId = iprot.readI64();
28630
              setUserIdIsSet(true);
28631
            } else { 
28632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28633
            }
28634
            break;
28635
          default:
28636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28637
        }
28638
        iprot.readFieldEnd();
28639
      }
28640
      iprot.readStructEnd();
28641
      validate();
28642
    }
28643
 
28644
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28645
      validate();
28646
 
28647
      oprot.writeStructBegin(STRUCT_DESC);
28648
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
28649
      oprot.writeI64(this.userId);
28650
      oprot.writeFieldEnd();
28651
      oprot.writeFieldStop();
28652
      oprot.writeStructEnd();
28653
    }
28654
 
28655
    @Override
28656
    public String toString() {
28657
      StringBuilder sb = new StringBuilder("getUserSmsInfo_args(");
28658
      boolean first = true;
28659
 
28660
      sb.append("userId:");
28661
      sb.append(this.userId);
28662
      first = false;
28663
      sb.append(")");
28664
      return sb.toString();
28665
    }
28666
 
28667
    public void validate() throws org.apache.thrift.TException {
28668
      // check for required fields
28669
    }
28670
 
28671
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28672
      try {
28673
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28674
      } catch (org.apache.thrift.TException te) {
28675
        throw new java.io.IOException(te);
28676
      }
28677
    }
28678
 
28679
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28680
      try {
28681
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28682
        __isset_bit_vector = new BitSet(1);
28683
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28684
      } catch (org.apache.thrift.TException te) {
28685
        throw new java.io.IOException(te);
28686
      }
28687
    }
28688
 
28689
  }
28690
 
28691
  public static class getUserSmsInfo_result implements org.apache.thrift.TBase<getUserSmsInfo_result, getUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
28692
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSmsInfo_result");
28693
 
28694
    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);
28695
    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);
28696
 
28697
    private UserSmsInfo success; // required
28698
    private HelperServiceException se; // required
28699
 
28700
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28701
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28702
      SUCCESS((short)0, "success"),
28703
      SE((short)1, "se");
28704
 
28705
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28706
 
28707
      static {
28708
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28709
          byName.put(field.getFieldName(), field);
28710
        }
28711
      }
28712
 
28713
      /**
28714
       * Find the _Fields constant that matches fieldId, or null if its not found.
28715
       */
28716
      public static _Fields findByThriftId(int fieldId) {
28717
        switch(fieldId) {
28718
          case 0: // SUCCESS
28719
            return SUCCESS;
28720
          case 1: // SE
28721
            return SE;
28722
          default:
28723
            return null;
28724
        }
28725
      }
28726
 
28727
      /**
28728
       * Find the _Fields constant that matches fieldId, throwing an exception
28729
       * if it is not found.
28730
       */
28731
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28732
        _Fields fields = findByThriftId(fieldId);
28733
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28734
        return fields;
28735
      }
28736
 
28737
      /**
28738
       * Find the _Fields constant that matches name, or null if its not found.
28739
       */
28740
      public static _Fields findByName(String name) {
28741
        return byName.get(name);
28742
      }
28743
 
28744
      private final short _thriftId;
28745
      private final String _fieldName;
28746
 
28747
      _Fields(short thriftId, String fieldName) {
28748
        _thriftId = thriftId;
28749
        _fieldName = fieldName;
28750
      }
28751
 
28752
      public short getThriftFieldId() {
28753
        return _thriftId;
28754
      }
28755
 
28756
      public String getFieldName() {
28757
        return _fieldName;
28758
      }
28759
    }
28760
 
28761
    // isset id assignments
28762
 
28763
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28764
    static {
28765
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28766
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28767
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));
28768
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28770
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28771
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSmsInfo_result.class, metaDataMap);
28772
    }
28773
 
28774
    public getUserSmsInfo_result() {
28775
    }
28776
 
28777
    public getUserSmsInfo_result(
28778
      UserSmsInfo success,
28779
      HelperServiceException se)
28780
    {
28781
      this();
28782
      this.success = success;
28783
      this.se = se;
28784
    }
28785
 
28786
    /**
28787
     * Performs a deep copy on <i>other</i>.
28788
     */
28789
    public getUserSmsInfo_result(getUserSmsInfo_result other) {
28790
      if (other.isSetSuccess()) {
28791
        this.success = new UserSmsInfo(other.success);
28792
      }
28793
      if (other.isSetSe()) {
28794
        this.se = new HelperServiceException(other.se);
28795
      }
28796
    }
28797
 
28798
    public getUserSmsInfo_result deepCopy() {
28799
      return new getUserSmsInfo_result(this);
28800
    }
28801
 
28802
    @Override
28803
    public void clear() {
28804
      this.success = null;
28805
      this.se = null;
28806
    }
28807
 
28808
    public UserSmsInfo getSuccess() {
28809
      return this.success;
28810
    }
28811
 
28812
    public void setSuccess(UserSmsInfo success) {
28813
      this.success = success;
28814
    }
28815
 
28816
    public void unsetSuccess() {
28817
      this.success = null;
28818
    }
28819
 
28820
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28821
    public boolean isSetSuccess() {
28822
      return this.success != null;
28823
    }
28824
 
28825
    public void setSuccessIsSet(boolean value) {
28826
      if (!value) {
28827
        this.success = null;
28828
      }
28829
    }
28830
 
28831
    public HelperServiceException getSe() {
28832
      return this.se;
28833
    }
28834
 
28835
    public void setSe(HelperServiceException se) {
28836
      this.se = se;
28837
    }
28838
 
28839
    public void unsetSe() {
28840
      this.se = null;
28841
    }
28842
 
28843
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
28844
    public boolean isSetSe() {
28845
      return this.se != null;
28846
    }
28847
 
28848
    public void setSeIsSet(boolean value) {
28849
      if (!value) {
28850
        this.se = null;
28851
      }
28852
    }
28853
 
28854
    public void setFieldValue(_Fields field, Object value) {
28855
      switch (field) {
28856
      case SUCCESS:
28857
        if (value == null) {
28858
          unsetSuccess();
28859
        } else {
28860
          setSuccess((UserSmsInfo)value);
28861
        }
28862
        break;
28863
 
28864
      case SE:
28865
        if (value == null) {
28866
          unsetSe();
28867
        } else {
28868
          setSe((HelperServiceException)value);
28869
        }
28870
        break;
28871
 
28872
      }
28873
    }
28874
 
28875
    public Object getFieldValue(_Fields field) {
28876
      switch (field) {
28877
      case SUCCESS:
28878
        return getSuccess();
28879
 
28880
      case SE:
28881
        return getSe();
28882
 
28883
      }
28884
      throw new IllegalStateException();
28885
    }
28886
 
28887
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28888
    public boolean isSet(_Fields field) {
28889
      if (field == null) {
28890
        throw new IllegalArgumentException();
28891
      }
28892
 
28893
      switch (field) {
28894
      case SUCCESS:
28895
        return isSetSuccess();
28896
      case SE:
28897
        return isSetSe();
28898
      }
28899
      throw new IllegalStateException();
28900
    }
28901
 
28902
    @Override
28903
    public boolean equals(Object that) {
28904
      if (that == null)
28905
        return false;
28906
      if (that instanceof getUserSmsInfo_result)
28907
        return this.equals((getUserSmsInfo_result)that);
28908
      return false;
28909
    }
28910
 
28911
    public boolean equals(getUserSmsInfo_result that) {
28912
      if (that == null)
28913
        return false;
28914
 
28915
      boolean this_present_success = true && this.isSetSuccess();
28916
      boolean that_present_success = true && that.isSetSuccess();
28917
      if (this_present_success || that_present_success) {
28918
        if (!(this_present_success && that_present_success))
28919
          return false;
28920
        if (!this.success.equals(that.success))
28921
          return false;
28922
      }
28923
 
28924
      boolean this_present_se = true && this.isSetSe();
28925
      boolean that_present_se = true && that.isSetSe();
28926
      if (this_present_se || that_present_se) {
28927
        if (!(this_present_se && that_present_se))
28928
          return false;
28929
        if (!this.se.equals(that.se))
28930
          return false;
28931
      }
28932
 
28933
      return true;
28934
    }
28935
 
28936
    @Override
28937
    public int hashCode() {
28938
      return 0;
28939
    }
28940
 
28941
    public int compareTo(getUserSmsInfo_result other) {
28942
      if (!getClass().equals(other.getClass())) {
28943
        return getClass().getName().compareTo(other.getClass().getName());
28944
      }
28945
 
28946
      int lastComparison = 0;
28947
      getUserSmsInfo_result typedOther = (getUserSmsInfo_result)other;
28948
 
28949
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28950
      if (lastComparison != 0) {
28951
        return lastComparison;
28952
      }
28953
      if (isSetSuccess()) {
28954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28955
        if (lastComparison != 0) {
28956
          return lastComparison;
28957
        }
28958
      }
28959
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
28960
      if (lastComparison != 0) {
28961
        return lastComparison;
28962
      }
28963
      if (isSetSe()) {
28964
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
28965
        if (lastComparison != 0) {
28966
          return lastComparison;
28967
        }
28968
      }
28969
      return 0;
28970
    }
28971
 
28972
    public _Fields fieldForId(int fieldId) {
28973
      return _Fields.findByThriftId(fieldId);
28974
    }
28975
 
28976
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28977
      org.apache.thrift.protocol.TField field;
28978
      iprot.readStructBegin();
28979
      while (true)
28980
      {
28981
        field = iprot.readFieldBegin();
28982
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28983
          break;
28984
        }
28985
        switch (field.id) {
28986
          case 0: // SUCCESS
28987
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28988
              this.success = new UserSmsInfo();
28989
              this.success.read(iprot);
28990
            } else { 
28991
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28992
            }
28993
            break;
28994
          case 1: // SE
28995
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28996
              this.se = new HelperServiceException();
28997
              this.se.read(iprot);
28998
            } else { 
28999
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29000
            }
29001
            break;
29002
          default:
29003
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29004
        }
29005
        iprot.readFieldEnd();
29006
      }
29007
      iprot.readStructEnd();
29008
      validate();
29009
    }
29010
 
29011
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29012
      oprot.writeStructBegin(STRUCT_DESC);
29013
 
29014
      if (this.isSetSuccess()) {
29015
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29016
        this.success.write(oprot);
29017
        oprot.writeFieldEnd();
29018
      } else if (this.isSetSe()) {
29019
        oprot.writeFieldBegin(SE_FIELD_DESC);
29020
        this.se.write(oprot);
29021
        oprot.writeFieldEnd();
29022
      }
29023
      oprot.writeFieldStop();
29024
      oprot.writeStructEnd();
29025
    }
29026
 
29027
    @Override
29028
    public String toString() {
29029
      StringBuilder sb = new StringBuilder("getUserSmsInfo_result(");
29030
      boolean first = true;
29031
 
29032
      sb.append("success:");
29033
      if (this.success == null) {
29034
        sb.append("null");
29035
      } else {
29036
        sb.append(this.success);
29037
      }
29038
      first = false;
29039
      if (!first) sb.append(", ");
29040
      sb.append("se:");
29041
      if (this.se == null) {
29042
        sb.append("null");
29043
      } else {
29044
        sb.append(this.se);
29045
      }
29046
      first = false;
29047
      sb.append(")");
29048
      return sb.toString();
29049
    }
29050
 
29051
    public void validate() throws org.apache.thrift.TException {
29052
      // check for required fields
29053
    }
29054
 
29055
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29056
      try {
29057
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29058
      } catch (org.apache.thrift.TException te) {
29059
        throw new java.io.IOException(te);
29060
      }
29061
    }
29062
 
29063
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29064
      try {
29065
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29066
      } catch (org.apache.thrift.TException te) {
29067
        throw new java.io.IOException(te);
29068
      }
29069
    }
29070
 
29071
  }
29072
 
29073
  public static class getAllUsersSmsInfo_args implements org.apache.thrift.TBase<getAllUsersSmsInfo_args, getAllUsersSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
29074
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersSmsInfo_args");
29075
 
29076
    private static final org.apache.thrift.protocol.TField DND_STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("dndStatus", org.apache.thrift.protocol.TType.BOOL, (short)1);
29077
    private static final org.apache.thrift.protocol.TField SMS_SUBSCRIBED_FIELD_DESC = new org.apache.thrift.protocol.TField("smsSubscribed", org.apache.thrift.protocol.TType.BOOL, (short)2);
29078
 
29079
    private boolean dndStatus; // required
29080
    private boolean smsSubscribed; // required
29081
 
29082
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29083
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29084
      DND_STATUS((short)1, "dndStatus"),
29085
      SMS_SUBSCRIBED((short)2, "smsSubscribed");
29086
 
29087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29088
 
29089
      static {
29090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29091
          byName.put(field.getFieldName(), field);
29092
        }
29093
      }
29094
 
29095
      /**
29096
       * Find the _Fields constant that matches fieldId, or null if its not found.
29097
       */
29098
      public static _Fields findByThriftId(int fieldId) {
29099
        switch(fieldId) {
29100
          case 1: // DND_STATUS
29101
            return DND_STATUS;
29102
          case 2: // SMS_SUBSCRIBED
29103
            return SMS_SUBSCRIBED;
29104
          default:
29105
            return null;
29106
        }
29107
      }
29108
 
29109
      /**
29110
       * Find the _Fields constant that matches fieldId, throwing an exception
29111
       * if it is not found.
29112
       */
29113
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29114
        _Fields fields = findByThriftId(fieldId);
29115
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29116
        return fields;
29117
      }
29118
 
29119
      /**
29120
       * Find the _Fields constant that matches name, or null if its not found.
29121
       */
29122
      public static _Fields findByName(String name) {
29123
        return byName.get(name);
29124
      }
29125
 
29126
      private final short _thriftId;
29127
      private final String _fieldName;
29128
 
29129
      _Fields(short thriftId, String fieldName) {
29130
        _thriftId = thriftId;
29131
        _fieldName = fieldName;
29132
      }
29133
 
29134
      public short getThriftFieldId() {
29135
        return _thriftId;
29136
      }
29137
 
29138
      public String getFieldName() {
29139
        return _fieldName;
29140
      }
29141
    }
29142
 
29143
    // isset id assignments
29144
    private static final int __DNDSTATUS_ISSET_ID = 0;
29145
    private static final int __SMSSUBSCRIBED_ISSET_ID = 1;
29146
    private BitSet __isset_bit_vector = new BitSet(2);
29147
 
29148
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29149
    static {
29150
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29151
      tmpMap.put(_Fields.DND_STATUS, new org.apache.thrift.meta_data.FieldMetaData("dndStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29152
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29153
      tmpMap.put(_Fields.SMS_SUBSCRIBED, new org.apache.thrift.meta_data.FieldMetaData("smsSubscribed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29154
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29155
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29156
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersSmsInfo_args.class, metaDataMap);
29157
    }
29158
 
29159
    public getAllUsersSmsInfo_args() {
29160
    }
29161
 
29162
    public getAllUsersSmsInfo_args(
29163
      boolean dndStatus,
29164
      boolean smsSubscribed)
29165
    {
29166
      this();
29167
      this.dndStatus = dndStatus;
29168
      setDndStatusIsSet(true);
29169
      this.smsSubscribed = smsSubscribed;
29170
      setSmsSubscribedIsSet(true);
29171
    }
29172
 
29173
    /**
29174
     * Performs a deep copy on <i>other</i>.
29175
     */
29176
    public getAllUsersSmsInfo_args(getAllUsersSmsInfo_args other) {
29177
      __isset_bit_vector.clear();
29178
      __isset_bit_vector.or(other.__isset_bit_vector);
29179
      this.dndStatus = other.dndStatus;
29180
      this.smsSubscribed = other.smsSubscribed;
29181
    }
29182
 
29183
    public getAllUsersSmsInfo_args deepCopy() {
29184
      return new getAllUsersSmsInfo_args(this);
29185
    }
29186
 
29187
    @Override
29188
    public void clear() {
29189
      setDndStatusIsSet(false);
29190
      this.dndStatus = false;
29191
      setSmsSubscribedIsSet(false);
29192
      this.smsSubscribed = false;
29193
    }
29194
 
29195
    public boolean isDndStatus() {
29196
      return this.dndStatus;
29197
    }
29198
 
29199
    public void setDndStatus(boolean dndStatus) {
29200
      this.dndStatus = dndStatus;
29201
      setDndStatusIsSet(true);
29202
    }
29203
 
29204
    public void unsetDndStatus() {
29205
      __isset_bit_vector.clear(__DNDSTATUS_ISSET_ID);
29206
    }
29207
 
29208
    /** Returns true if field dndStatus is set (has been assigned a value) and false otherwise */
29209
    public boolean isSetDndStatus() {
29210
      return __isset_bit_vector.get(__DNDSTATUS_ISSET_ID);
29211
    }
29212
 
29213
    public void setDndStatusIsSet(boolean value) {
29214
      __isset_bit_vector.set(__DNDSTATUS_ISSET_ID, value);
29215
    }
29216
 
29217
    public boolean isSmsSubscribed() {
29218
      return this.smsSubscribed;
29219
    }
29220
 
29221
    public void setSmsSubscribed(boolean smsSubscribed) {
29222
      this.smsSubscribed = smsSubscribed;
29223
      setSmsSubscribedIsSet(true);
29224
    }
29225
 
29226
    public void unsetSmsSubscribed() {
29227
      __isset_bit_vector.clear(__SMSSUBSCRIBED_ISSET_ID);
29228
    }
29229
 
29230
    /** Returns true if field smsSubscribed is set (has been assigned a value) and false otherwise */
29231
    public boolean isSetSmsSubscribed() {
29232
      return __isset_bit_vector.get(__SMSSUBSCRIBED_ISSET_ID);
29233
    }
29234
 
29235
    public void setSmsSubscribedIsSet(boolean value) {
29236
      __isset_bit_vector.set(__SMSSUBSCRIBED_ISSET_ID, value);
29237
    }
29238
 
29239
    public void setFieldValue(_Fields field, Object value) {
29240
      switch (field) {
29241
      case DND_STATUS:
29242
        if (value == null) {
29243
          unsetDndStatus();
29244
        } else {
29245
          setDndStatus((Boolean)value);
29246
        }
29247
        break;
29248
 
29249
      case SMS_SUBSCRIBED:
29250
        if (value == null) {
29251
          unsetSmsSubscribed();
29252
        } else {
29253
          setSmsSubscribed((Boolean)value);
29254
        }
29255
        break;
29256
 
29257
      }
29258
    }
29259
 
29260
    public Object getFieldValue(_Fields field) {
29261
      switch (field) {
29262
      case DND_STATUS:
29263
        return Boolean.valueOf(isDndStatus());
29264
 
29265
      case SMS_SUBSCRIBED:
29266
        return Boolean.valueOf(isSmsSubscribed());
29267
 
29268
      }
29269
      throw new IllegalStateException();
29270
    }
29271
 
29272
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29273
    public boolean isSet(_Fields field) {
29274
      if (field == null) {
29275
        throw new IllegalArgumentException();
29276
      }
29277
 
29278
      switch (field) {
29279
      case DND_STATUS:
29280
        return isSetDndStatus();
29281
      case SMS_SUBSCRIBED:
29282
        return isSetSmsSubscribed();
29283
      }
29284
      throw new IllegalStateException();
29285
    }
29286
 
29287
    @Override
29288
    public boolean equals(Object that) {
29289
      if (that == null)
29290
        return false;
29291
      if (that instanceof getAllUsersSmsInfo_args)
29292
        return this.equals((getAllUsersSmsInfo_args)that);
29293
      return false;
29294
    }
29295
 
29296
    public boolean equals(getAllUsersSmsInfo_args that) {
29297
      if (that == null)
29298
        return false;
29299
 
29300
      boolean this_present_dndStatus = true;
29301
      boolean that_present_dndStatus = true;
29302
      if (this_present_dndStatus || that_present_dndStatus) {
29303
        if (!(this_present_dndStatus && that_present_dndStatus))
29304
          return false;
29305
        if (this.dndStatus != that.dndStatus)
29306
          return false;
29307
      }
29308
 
29309
      boolean this_present_smsSubscribed = true;
29310
      boolean that_present_smsSubscribed = true;
29311
      if (this_present_smsSubscribed || that_present_smsSubscribed) {
29312
        if (!(this_present_smsSubscribed && that_present_smsSubscribed))
29313
          return false;
29314
        if (this.smsSubscribed != that.smsSubscribed)
29315
          return false;
29316
      }
29317
 
29318
      return true;
29319
    }
29320
 
29321
    @Override
29322
    public int hashCode() {
29323
      return 0;
29324
    }
29325
 
29326
    public int compareTo(getAllUsersSmsInfo_args other) {
29327
      if (!getClass().equals(other.getClass())) {
29328
        return getClass().getName().compareTo(other.getClass().getName());
29329
      }
29330
 
29331
      int lastComparison = 0;
29332
      getAllUsersSmsInfo_args typedOther = (getAllUsersSmsInfo_args)other;
29333
 
29334
      lastComparison = Boolean.valueOf(isSetDndStatus()).compareTo(typedOther.isSetDndStatus());
29335
      if (lastComparison != 0) {
29336
        return lastComparison;
29337
      }
29338
      if (isSetDndStatus()) {
29339
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dndStatus, typedOther.dndStatus);
29340
        if (lastComparison != 0) {
29341
          return lastComparison;
29342
        }
29343
      }
29344
      lastComparison = Boolean.valueOf(isSetSmsSubscribed()).compareTo(typedOther.isSetSmsSubscribed());
29345
      if (lastComparison != 0) {
29346
        return lastComparison;
29347
      }
29348
      if (isSetSmsSubscribed()) {
29349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.smsSubscribed, typedOther.smsSubscribed);
29350
        if (lastComparison != 0) {
29351
          return lastComparison;
29352
        }
29353
      }
29354
      return 0;
29355
    }
29356
 
29357
    public _Fields fieldForId(int fieldId) {
29358
      return _Fields.findByThriftId(fieldId);
29359
    }
29360
 
29361
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29362
      org.apache.thrift.protocol.TField field;
29363
      iprot.readStructBegin();
29364
      while (true)
29365
      {
29366
        field = iprot.readFieldBegin();
29367
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29368
          break;
29369
        }
29370
        switch (field.id) {
29371
          case 1: // DND_STATUS
29372
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29373
              this.dndStatus = iprot.readBool();
29374
              setDndStatusIsSet(true);
29375
            } else { 
29376
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29377
            }
29378
            break;
29379
          case 2: // SMS_SUBSCRIBED
29380
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29381
              this.smsSubscribed = iprot.readBool();
29382
              setSmsSubscribedIsSet(true);
29383
            } else { 
29384
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29385
            }
29386
            break;
29387
          default:
29388
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29389
        }
29390
        iprot.readFieldEnd();
29391
      }
29392
      iprot.readStructEnd();
29393
      validate();
29394
    }
29395
 
29396
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29397
      validate();
29398
 
29399
      oprot.writeStructBegin(STRUCT_DESC);
29400
      oprot.writeFieldBegin(DND_STATUS_FIELD_DESC);
29401
      oprot.writeBool(this.dndStatus);
29402
      oprot.writeFieldEnd();
29403
      oprot.writeFieldBegin(SMS_SUBSCRIBED_FIELD_DESC);
29404
      oprot.writeBool(this.smsSubscribed);
29405
      oprot.writeFieldEnd();
29406
      oprot.writeFieldStop();
29407
      oprot.writeStructEnd();
29408
    }
29409
 
29410
    @Override
29411
    public String toString() {
29412
      StringBuilder sb = new StringBuilder("getAllUsersSmsInfo_args(");
29413
      boolean first = true;
29414
 
29415
      sb.append("dndStatus:");
29416
      sb.append(this.dndStatus);
29417
      first = false;
29418
      if (!first) sb.append(", ");
29419
      sb.append("smsSubscribed:");
29420
      sb.append(this.smsSubscribed);
29421
      first = false;
29422
      sb.append(")");
29423
      return sb.toString();
29424
    }
29425
 
29426
    public void validate() throws org.apache.thrift.TException {
29427
      // check for required fields
29428
    }
29429
 
29430
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29431
      try {
29432
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29433
      } catch (org.apache.thrift.TException te) {
29434
        throw new java.io.IOException(te);
29435
      }
29436
    }
29437
 
29438
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29439
      try {
29440
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29441
        __isset_bit_vector = new BitSet(1);
29442
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29443
      } catch (org.apache.thrift.TException te) {
29444
        throw new java.io.IOException(te);
29445
      }
29446
    }
29447
 
29448
  }
29449
 
29450
  public static class getAllUsersSmsInfo_result implements org.apache.thrift.TBase<getAllUsersSmsInfo_result, getAllUsersSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
29451
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersSmsInfo_result");
29452
 
29453
    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);
29454
    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);
29455
 
29456
    private List<UserSmsInfo> success; // required
29457
    private HelperServiceException se; // required
29458
 
29459
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29460
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29461
      SUCCESS((short)0, "success"),
29462
      SE((short)1, "se");
29463
 
29464
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29465
 
29466
      static {
29467
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29468
          byName.put(field.getFieldName(), field);
29469
        }
29470
      }
29471
 
29472
      /**
29473
       * Find the _Fields constant that matches fieldId, or null if its not found.
29474
       */
29475
      public static _Fields findByThriftId(int fieldId) {
29476
        switch(fieldId) {
29477
          case 0: // SUCCESS
29478
            return SUCCESS;
29479
          case 1: // SE
29480
            return SE;
29481
          default:
29482
            return null;
29483
        }
29484
      }
29485
 
29486
      /**
29487
       * Find the _Fields constant that matches fieldId, throwing an exception
29488
       * if it is not found.
29489
       */
29490
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29491
        _Fields fields = findByThriftId(fieldId);
29492
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29493
        return fields;
29494
      }
29495
 
29496
      /**
29497
       * Find the _Fields constant that matches name, or null if its not found.
29498
       */
29499
      public static _Fields findByName(String name) {
29500
        return byName.get(name);
29501
      }
29502
 
29503
      private final short _thriftId;
29504
      private final String _fieldName;
29505
 
29506
      _Fields(short thriftId, String fieldName) {
29507
        _thriftId = thriftId;
29508
        _fieldName = fieldName;
29509
      }
29510
 
29511
      public short getThriftFieldId() {
29512
        return _thriftId;
29513
      }
29514
 
29515
      public String getFieldName() {
29516
        return _fieldName;
29517
      }
29518
    }
29519
 
29520
    // isset id assignments
29521
 
29522
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29523
    static {
29524
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29525
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29526
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29527
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class))));
29528
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29529
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29530
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29531
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersSmsInfo_result.class, metaDataMap);
29532
    }
29533
 
29534
    public getAllUsersSmsInfo_result() {
29535
    }
29536
 
29537
    public getAllUsersSmsInfo_result(
29538
      List<UserSmsInfo> success,
29539
      HelperServiceException se)
29540
    {
29541
      this();
29542
      this.success = success;
29543
      this.se = se;
29544
    }
29545
 
29546
    /**
29547
     * Performs a deep copy on <i>other</i>.
29548
     */
29549
    public getAllUsersSmsInfo_result(getAllUsersSmsInfo_result other) {
29550
      if (other.isSetSuccess()) {
29551
        List<UserSmsInfo> __this__success = new ArrayList<UserSmsInfo>();
29552
        for (UserSmsInfo other_element : other.success) {
29553
          __this__success.add(new UserSmsInfo(other_element));
29554
        }
29555
        this.success = __this__success;
29556
      }
29557
      if (other.isSetSe()) {
29558
        this.se = new HelperServiceException(other.se);
29559
      }
29560
    }
29561
 
29562
    public getAllUsersSmsInfo_result deepCopy() {
29563
      return new getAllUsersSmsInfo_result(this);
29564
    }
29565
 
29566
    @Override
29567
    public void clear() {
29568
      this.success = null;
29569
      this.se = null;
29570
    }
29571
 
29572
    public int getSuccessSize() {
29573
      return (this.success == null) ? 0 : this.success.size();
29574
    }
29575
 
29576
    public java.util.Iterator<UserSmsInfo> getSuccessIterator() {
29577
      return (this.success == null) ? null : this.success.iterator();
29578
    }
29579
 
29580
    public void addToSuccess(UserSmsInfo elem) {
29581
      if (this.success == null) {
29582
        this.success = new ArrayList<UserSmsInfo>();
29583
      }
29584
      this.success.add(elem);
29585
    }
29586
 
29587
    public List<UserSmsInfo> getSuccess() {
29588
      return this.success;
29589
    }
29590
 
29591
    public void setSuccess(List<UserSmsInfo> success) {
29592
      this.success = success;
29593
    }
29594
 
29595
    public void unsetSuccess() {
29596
      this.success = null;
29597
    }
29598
 
29599
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29600
    public boolean isSetSuccess() {
29601
      return this.success != null;
29602
    }
29603
 
29604
    public void setSuccessIsSet(boolean value) {
29605
      if (!value) {
29606
        this.success = null;
29607
      }
29608
    }
29609
 
29610
    public HelperServiceException getSe() {
29611
      return this.se;
29612
    }
29613
 
29614
    public void setSe(HelperServiceException se) {
29615
      this.se = se;
29616
    }
29617
 
29618
    public void unsetSe() {
29619
      this.se = null;
29620
    }
29621
 
29622
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
29623
    public boolean isSetSe() {
29624
      return this.se != null;
29625
    }
29626
 
29627
    public void setSeIsSet(boolean value) {
29628
      if (!value) {
29629
        this.se = null;
29630
      }
29631
    }
29632
 
29633
    public void setFieldValue(_Fields field, Object value) {
29634
      switch (field) {
29635
      case SUCCESS:
29636
        if (value == null) {
29637
          unsetSuccess();
29638
        } else {
29639
          setSuccess((List<UserSmsInfo>)value);
29640
        }
29641
        break;
29642
 
29643
      case SE:
29644
        if (value == null) {
29645
          unsetSe();
29646
        } else {
29647
          setSe((HelperServiceException)value);
29648
        }
29649
        break;
29650
 
29651
      }
29652
    }
29653
 
29654
    public Object getFieldValue(_Fields field) {
29655
      switch (field) {
29656
      case SUCCESS:
29657
        return getSuccess();
29658
 
29659
      case SE:
29660
        return getSe();
29661
 
29662
      }
29663
      throw new IllegalStateException();
29664
    }
29665
 
29666
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29667
    public boolean isSet(_Fields field) {
29668
      if (field == null) {
29669
        throw new IllegalArgumentException();
29670
      }
29671
 
29672
      switch (field) {
29673
      case SUCCESS:
29674
        return isSetSuccess();
29675
      case SE:
29676
        return isSetSe();
29677
      }
29678
      throw new IllegalStateException();
29679
    }
29680
 
29681
    @Override
29682
    public boolean equals(Object that) {
29683
      if (that == null)
29684
        return false;
29685
      if (that instanceof getAllUsersSmsInfo_result)
29686
        return this.equals((getAllUsersSmsInfo_result)that);
29687
      return false;
29688
    }
29689
 
29690
    public boolean equals(getAllUsersSmsInfo_result that) {
29691
      if (that == null)
29692
        return false;
29693
 
29694
      boolean this_present_success = true && this.isSetSuccess();
29695
      boolean that_present_success = true && that.isSetSuccess();
29696
      if (this_present_success || that_present_success) {
29697
        if (!(this_present_success && that_present_success))
29698
          return false;
29699
        if (!this.success.equals(that.success))
29700
          return false;
29701
      }
29702
 
29703
      boolean this_present_se = true && this.isSetSe();
29704
      boolean that_present_se = true && that.isSetSe();
29705
      if (this_present_se || that_present_se) {
29706
        if (!(this_present_se && that_present_se))
29707
          return false;
29708
        if (!this.se.equals(that.se))
29709
          return false;
29710
      }
29711
 
29712
      return true;
29713
    }
29714
 
29715
    @Override
29716
    public int hashCode() {
29717
      return 0;
29718
    }
29719
 
29720
    public int compareTo(getAllUsersSmsInfo_result other) {
29721
      if (!getClass().equals(other.getClass())) {
29722
        return getClass().getName().compareTo(other.getClass().getName());
29723
      }
29724
 
29725
      int lastComparison = 0;
29726
      getAllUsersSmsInfo_result typedOther = (getAllUsersSmsInfo_result)other;
29727
 
29728
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29729
      if (lastComparison != 0) {
29730
        return lastComparison;
29731
      }
29732
      if (isSetSuccess()) {
29733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29734
        if (lastComparison != 0) {
29735
          return lastComparison;
29736
        }
29737
      }
29738
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
29739
      if (lastComparison != 0) {
29740
        return lastComparison;
29741
      }
29742
      if (isSetSe()) {
29743
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
29744
        if (lastComparison != 0) {
29745
          return lastComparison;
29746
        }
29747
      }
29748
      return 0;
29749
    }
29750
 
29751
    public _Fields fieldForId(int fieldId) {
29752
      return _Fields.findByThriftId(fieldId);
29753
    }
29754
 
29755
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29756
      org.apache.thrift.protocol.TField field;
29757
      iprot.readStructBegin();
29758
      while (true)
29759
      {
29760
        field = iprot.readFieldBegin();
29761
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29762
          break;
29763
        }
29764
        switch (field.id) {
29765
          case 0: // SUCCESS
29766
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29767
              {
29768
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
29769
                this.success = new ArrayList<UserSmsInfo>(_list77.size);
29770
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
29771
                {
29772
                  UserSmsInfo _elem79; // required
29773
                  _elem79 = new UserSmsInfo();
29774
                  _elem79.read(iprot);
29775
                  this.success.add(_elem79);
29776
                }
29777
                iprot.readListEnd();
29778
              }
29779
            } else { 
29780
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29781
            }
29782
            break;
29783
          case 1: // SE
29784
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29785
              this.se = new HelperServiceException();
29786
              this.se.read(iprot);
29787
            } else { 
29788
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29789
            }
29790
            break;
29791
          default:
29792
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29793
        }
29794
        iprot.readFieldEnd();
29795
      }
29796
      iprot.readStructEnd();
29797
      validate();
29798
    }
29799
 
29800
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29801
      oprot.writeStructBegin(STRUCT_DESC);
29802
 
29803
      if (this.isSetSuccess()) {
29804
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29805
        {
29806
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
29807
          for (UserSmsInfo _iter80 : this.success)
29808
          {
29809
            _iter80.write(oprot);
29810
          }
29811
          oprot.writeListEnd();
29812
        }
29813
        oprot.writeFieldEnd();
29814
      } else if (this.isSetSe()) {
29815
        oprot.writeFieldBegin(SE_FIELD_DESC);
29816
        this.se.write(oprot);
29817
        oprot.writeFieldEnd();
29818
      }
29819
      oprot.writeFieldStop();
29820
      oprot.writeStructEnd();
29821
    }
29822
 
29823
    @Override
29824
    public String toString() {
29825
      StringBuilder sb = new StringBuilder("getAllUsersSmsInfo_result(");
29826
      boolean first = true;
29827
 
29828
      sb.append("success:");
29829
      if (this.success == null) {
29830
        sb.append("null");
29831
      } else {
29832
        sb.append(this.success);
29833
      }
29834
      first = false;
29835
      if (!first) sb.append(", ");
29836
      sb.append("se:");
29837
      if (this.se == null) {
29838
        sb.append("null");
29839
      } else {
29840
        sb.append(this.se);
29841
      }
29842
      first = false;
29843
      sb.append(")");
29844
      return sb.toString();
29845
    }
29846
 
29847
    public void validate() throws org.apache.thrift.TException {
29848
      // check for required fields
29849
    }
29850
 
29851
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29852
      try {
29853
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29854
      } catch (org.apache.thrift.TException te) {
29855
        throw new java.io.IOException(te);
29856
      }
29857
    }
29858
 
29859
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29860
      try {
29861
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29862
      } catch (org.apache.thrift.TException te) {
29863
        throw new java.io.IOException(te);
29864
      }
29865
    }
29866
 
29867
  }
29868
 
29869
  public static class listSmsToGetDeliveryInfo_args implements org.apache.thrift.TBase<listSmsToGetDeliveryInfo_args, listSmsToGetDeliveryInfo_args._Fields>, java.io.Serializable, Cloneable   {
29870
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSmsToGetDeliveryInfo_args");
29871
 
29872
 
29873
 
29874
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29875
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29876
;
29877
 
29878
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29879
 
29880
      static {
29881
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29882
          byName.put(field.getFieldName(), field);
29883
        }
29884
      }
29885
 
29886
      /**
29887
       * Find the _Fields constant that matches fieldId, or null if its not found.
29888
       */
29889
      public static _Fields findByThriftId(int fieldId) {
29890
        switch(fieldId) {
29891
          default:
29892
            return null;
29893
        }
29894
      }
29895
 
29896
      /**
29897
       * Find the _Fields constant that matches fieldId, throwing an exception
29898
       * if it is not found.
29899
       */
29900
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29901
        _Fields fields = findByThriftId(fieldId);
29902
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29903
        return fields;
29904
      }
29905
 
29906
      /**
29907
       * Find the _Fields constant that matches name, or null if its not found.
29908
       */
29909
      public static _Fields findByName(String name) {
29910
        return byName.get(name);
29911
      }
29912
 
29913
      private final short _thriftId;
29914
      private final String _fieldName;
29915
 
29916
      _Fields(short thriftId, String fieldName) {
29917
        _thriftId = thriftId;
29918
        _fieldName = fieldName;
29919
      }
29920
 
29921
      public short getThriftFieldId() {
29922
        return _thriftId;
29923
      }
29924
 
29925
      public String getFieldName() {
29926
        return _fieldName;
29927
      }
29928
    }
29929
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29930
    static {
29931
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSmsToGetDeliveryInfo_args.class, metaDataMap);
29934
    }
29935
 
29936
    public listSmsToGetDeliveryInfo_args() {
29937
    }
29938
 
29939
    /**
29940
     * Performs a deep copy on <i>other</i>.
29941
     */
29942
    public listSmsToGetDeliveryInfo_args(listSmsToGetDeliveryInfo_args other) {
29943
    }
29944
 
29945
    public listSmsToGetDeliveryInfo_args deepCopy() {
29946
      return new listSmsToGetDeliveryInfo_args(this);
29947
    }
29948
 
29949
    @Override
29950
    public void clear() {
29951
    }
29952
 
29953
    public void setFieldValue(_Fields field, Object value) {
29954
      switch (field) {
29955
      }
29956
    }
29957
 
29958
    public Object getFieldValue(_Fields field) {
29959
      switch (field) {
29960
      }
29961
      throw new IllegalStateException();
29962
    }
29963
 
29964
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29965
    public boolean isSet(_Fields field) {
29966
      if (field == null) {
29967
        throw new IllegalArgumentException();
29968
      }
29969
 
29970
      switch (field) {
29971
      }
29972
      throw new IllegalStateException();
29973
    }
29974
 
29975
    @Override
29976
    public boolean equals(Object that) {
29977
      if (that == null)
29978
        return false;
29979
      if (that instanceof listSmsToGetDeliveryInfo_args)
29980
        return this.equals((listSmsToGetDeliveryInfo_args)that);
29981
      return false;
29982
    }
29983
 
29984
    public boolean equals(listSmsToGetDeliveryInfo_args that) {
29985
      if (that == null)
29986
        return false;
29987
 
29988
      return true;
29989
    }
29990
 
29991
    @Override
29992
    public int hashCode() {
29993
      return 0;
29994
    }
29995
 
29996
    public int compareTo(listSmsToGetDeliveryInfo_args other) {
29997
      if (!getClass().equals(other.getClass())) {
29998
        return getClass().getName().compareTo(other.getClass().getName());
29999
      }
30000
 
30001
      int lastComparison = 0;
30002
      listSmsToGetDeliveryInfo_args typedOther = (listSmsToGetDeliveryInfo_args)other;
30003
 
30004
      return 0;
30005
    }
30006
 
30007
    public _Fields fieldForId(int fieldId) {
30008
      return _Fields.findByThriftId(fieldId);
30009
    }
30010
 
30011
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30012
      org.apache.thrift.protocol.TField field;
30013
      iprot.readStructBegin();
30014
      while (true)
30015
      {
30016
        field = iprot.readFieldBegin();
30017
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30018
          break;
30019
        }
30020
        switch (field.id) {
30021
          default:
30022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30023
        }
30024
        iprot.readFieldEnd();
30025
      }
30026
      iprot.readStructEnd();
30027
      validate();
30028
    }
30029
 
30030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30031
      validate();
30032
 
30033
      oprot.writeStructBegin(STRUCT_DESC);
30034
      oprot.writeFieldStop();
30035
      oprot.writeStructEnd();
30036
    }
30037
 
30038
    @Override
30039
    public String toString() {
30040
      StringBuilder sb = new StringBuilder("listSmsToGetDeliveryInfo_args(");
30041
      boolean first = true;
30042
 
30043
      sb.append(")");
30044
      return sb.toString();
30045
    }
30046
 
30047
    public void validate() throws org.apache.thrift.TException {
30048
      // check for required fields
30049
    }
30050
 
30051
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30052
      try {
30053
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30054
      } catch (org.apache.thrift.TException te) {
30055
        throw new java.io.IOException(te);
30056
      }
30057
    }
30058
 
30059
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30060
      try {
30061
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30062
      } catch (org.apache.thrift.TException te) {
30063
        throw new java.io.IOException(te);
30064
      }
30065
    }
30066
 
30067
  }
30068
 
30069
  public static class listSmsToGetDeliveryInfo_result implements org.apache.thrift.TBase<listSmsToGetDeliveryInfo_result, listSmsToGetDeliveryInfo_result._Fields>, java.io.Serializable, Cloneable   {
30070
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSmsToGetDeliveryInfo_result");
30071
 
30072
    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);
30073
    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);
30074
 
30075
    private List<UserSms> success; // required
30076
    private HelperServiceException se; // required
30077
 
30078
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30079
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30080
      SUCCESS((short)0, "success"),
30081
      SE((short)1, "se");
30082
 
30083
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30084
 
30085
      static {
30086
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30087
          byName.put(field.getFieldName(), field);
30088
        }
30089
      }
30090
 
30091
      /**
30092
       * Find the _Fields constant that matches fieldId, or null if its not found.
30093
       */
30094
      public static _Fields findByThriftId(int fieldId) {
30095
        switch(fieldId) {
30096
          case 0: // SUCCESS
30097
            return SUCCESS;
30098
          case 1: // SE
30099
            return SE;
30100
          default:
30101
            return null;
30102
        }
30103
      }
30104
 
30105
      /**
30106
       * Find the _Fields constant that matches fieldId, throwing an exception
30107
       * if it is not found.
30108
       */
30109
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30110
        _Fields fields = findByThriftId(fieldId);
30111
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30112
        return fields;
30113
      }
30114
 
30115
      /**
30116
       * Find the _Fields constant that matches name, or null if its not found.
30117
       */
30118
      public static _Fields findByName(String name) {
30119
        return byName.get(name);
30120
      }
30121
 
30122
      private final short _thriftId;
30123
      private final String _fieldName;
30124
 
30125
      _Fields(short thriftId, String fieldName) {
30126
        _thriftId = thriftId;
30127
        _fieldName = fieldName;
30128
      }
30129
 
30130
      public short getThriftFieldId() {
30131
        return _thriftId;
30132
      }
30133
 
30134
      public String getFieldName() {
30135
        return _fieldName;
30136
      }
30137
    }
30138
 
30139
    // isset id assignments
30140
 
30141
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30142
    static {
30143
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30144
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30145
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30146
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
30147
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30148
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30149
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30150
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSmsToGetDeliveryInfo_result.class, metaDataMap);
30151
    }
30152
 
30153
    public listSmsToGetDeliveryInfo_result() {
30154
    }
30155
 
30156
    public listSmsToGetDeliveryInfo_result(
30157
      List<UserSms> success,
30158
      HelperServiceException se)
30159
    {
30160
      this();
30161
      this.success = success;
30162
      this.se = se;
30163
    }
30164
 
30165
    /**
30166
     * Performs a deep copy on <i>other</i>.
30167
     */
30168
    public listSmsToGetDeliveryInfo_result(listSmsToGetDeliveryInfo_result other) {
30169
      if (other.isSetSuccess()) {
30170
        List<UserSms> __this__success = new ArrayList<UserSms>();
30171
        for (UserSms other_element : other.success) {
30172
          __this__success.add(new UserSms(other_element));
30173
        }
30174
        this.success = __this__success;
30175
      }
30176
      if (other.isSetSe()) {
30177
        this.se = new HelperServiceException(other.se);
30178
      }
30179
    }
30180
 
30181
    public listSmsToGetDeliveryInfo_result deepCopy() {
30182
      return new listSmsToGetDeliveryInfo_result(this);
30183
    }
30184
 
30185
    @Override
30186
    public void clear() {
30187
      this.success = null;
30188
      this.se = null;
30189
    }
30190
 
30191
    public int getSuccessSize() {
30192
      return (this.success == null) ? 0 : this.success.size();
30193
    }
30194
 
30195
    public java.util.Iterator<UserSms> getSuccessIterator() {
30196
      return (this.success == null) ? null : this.success.iterator();
30197
    }
30198
 
30199
    public void addToSuccess(UserSms elem) {
30200
      if (this.success == null) {
30201
        this.success = new ArrayList<UserSms>();
30202
      }
30203
      this.success.add(elem);
30204
    }
30205
 
30206
    public List<UserSms> getSuccess() {
30207
      return this.success;
30208
    }
30209
 
30210
    public void setSuccess(List<UserSms> success) {
30211
      this.success = success;
30212
    }
30213
 
30214
    public void unsetSuccess() {
30215
      this.success = null;
30216
    }
30217
 
30218
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30219
    public boolean isSetSuccess() {
30220
      return this.success != null;
30221
    }
30222
 
30223
    public void setSuccessIsSet(boolean value) {
30224
      if (!value) {
30225
        this.success = null;
30226
      }
30227
    }
30228
 
30229
    public HelperServiceException getSe() {
30230
      return this.se;
30231
    }
30232
 
30233
    public void setSe(HelperServiceException se) {
30234
      this.se = se;
30235
    }
30236
 
30237
    public void unsetSe() {
30238
      this.se = null;
30239
    }
30240
 
30241
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
30242
    public boolean isSetSe() {
30243
      return this.se != null;
30244
    }
30245
 
30246
    public void setSeIsSet(boolean value) {
30247
      if (!value) {
30248
        this.se = null;
30249
      }
30250
    }
30251
 
30252
    public void setFieldValue(_Fields field, Object value) {
30253
      switch (field) {
30254
      case SUCCESS:
30255
        if (value == null) {
30256
          unsetSuccess();
30257
        } else {
30258
          setSuccess((List<UserSms>)value);
30259
        }
30260
        break;
30261
 
30262
      case SE:
30263
        if (value == null) {
30264
          unsetSe();
30265
        } else {
30266
          setSe((HelperServiceException)value);
30267
        }
30268
        break;
30269
 
30270
      }
30271
    }
30272
 
30273
    public Object getFieldValue(_Fields field) {
30274
      switch (field) {
30275
      case SUCCESS:
30276
        return getSuccess();
30277
 
30278
      case SE:
30279
        return getSe();
30280
 
30281
      }
30282
      throw new IllegalStateException();
30283
    }
30284
 
30285
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30286
    public boolean isSet(_Fields field) {
30287
      if (field == null) {
30288
        throw new IllegalArgumentException();
30289
      }
30290
 
30291
      switch (field) {
30292
      case SUCCESS:
30293
        return isSetSuccess();
30294
      case SE:
30295
        return isSetSe();
30296
      }
30297
      throw new IllegalStateException();
30298
    }
30299
 
30300
    @Override
30301
    public boolean equals(Object that) {
30302
      if (that == null)
30303
        return false;
30304
      if (that instanceof listSmsToGetDeliveryInfo_result)
30305
        return this.equals((listSmsToGetDeliveryInfo_result)that);
30306
      return false;
30307
    }
30308
 
30309
    public boolean equals(listSmsToGetDeliveryInfo_result that) {
30310
      if (that == null)
30311
        return false;
30312
 
30313
      boolean this_present_success = true && this.isSetSuccess();
30314
      boolean that_present_success = true && that.isSetSuccess();
30315
      if (this_present_success || that_present_success) {
30316
        if (!(this_present_success && that_present_success))
30317
          return false;
30318
        if (!this.success.equals(that.success))
30319
          return false;
30320
      }
30321
 
30322
      boolean this_present_se = true && this.isSetSe();
30323
      boolean that_present_se = true && that.isSetSe();
30324
      if (this_present_se || that_present_se) {
30325
        if (!(this_present_se && that_present_se))
30326
          return false;
30327
        if (!this.se.equals(that.se))
30328
          return false;
30329
      }
30330
 
30331
      return true;
30332
    }
30333
 
30334
    @Override
30335
    public int hashCode() {
30336
      return 0;
30337
    }
30338
 
30339
    public int compareTo(listSmsToGetDeliveryInfo_result other) {
30340
      if (!getClass().equals(other.getClass())) {
30341
        return getClass().getName().compareTo(other.getClass().getName());
30342
      }
30343
 
30344
      int lastComparison = 0;
30345
      listSmsToGetDeliveryInfo_result typedOther = (listSmsToGetDeliveryInfo_result)other;
30346
 
30347
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30348
      if (lastComparison != 0) {
30349
        return lastComparison;
30350
      }
30351
      if (isSetSuccess()) {
30352
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30353
        if (lastComparison != 0) {
30354
          return lastComparison;
30355
        }
30356
      }
30357
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
30358
      if (lastComparison != 0) {
30359
        return lastComparison;
30360
      }
30361
      if (isSetSe()) {
30362
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
30363
        if (lastComparison != 0) {
30364
          return lastComparison;
30365
        }
30366
      }
30367
      return 0;
30368
    }
30369
 
30370
    public _Fields fieldForId(int fieldId) {
30371
      return _Fields.findByThriftId(fieldId);
30372
    }
30373
 
30374
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30375
      org.apache.thrift.protocol.TField field;
30376
      iprot.readStructBegin();
30377
      while (true)
30378
      {
30379
        field = iprot.readFieldBegin();
30380
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30381
          break;
30382
        }
30383
        switch (field.id) {
30384
          case 0: // SUCCESS
30385
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30386
              {
30387
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
30388
                this.success = new ArrayList<UserSms>(_list81.size);
30389
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
30390
                {
30391
                  UserSms _elem83; // required
30392
                  _elem83 = new UserSms();
30393
                  _elem83.read(iprot);
30394
                  this.success.add(_elem83);
30395
                }
30396
                iprot.readListEnd();
30397
              }
30398
            } else { 
30399
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30400
            }
30401
            break;
30402
          case 1: // SE
30403
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30404
              this.se = new HelperServiceException();
30405
              this.se.read(iprot);
30406
            } else { 
30407
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30408
            }
30409
            break;
30410
          default:
30411
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30412
        }
30413
        iprot.readFieldEnd();
30414
      }
30415
      iprot.readStructEnd();
30416
      validate();
30417
    }
30418
 
30419
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30420
      oprot.writeStructBegin(STRUCT_DESC);
30421
 
30422
      if (this.isSetSuccess()) {
30423
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30424
        {
30425
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30426
          for (UserSms _iter84 : this.success)
30427
          {
30428
            _iter84.write(oprot);
30429
          }
30430
          oprot.writeListEnd();
30431
        }
30432
        oprot.writeFieldEnd();
30433
      } else if (this.isSetSe()) {
30434
        oprot.writeFieldBegin(SE_FIELD_DESC);
30435
        this.se.write(oprot);
30436
        oprot.writeFieldEnd();
30437
      }
30438
      oprot.writeFieldStop();
30439
      oprot.writeStructEnd();
30440
    }
30441
 
30442
    @Override
30443
    public String toString() {
30444
      StringBuilder sb = new StringBuilder("listSmsToGetDeliveryInfo_result(");
30445
      boolean first = true;
30446
 
30447
      sb.append("success:");
30448
      if (this.success == null) {
30449
        sb.append("null");
30450
      } else {
30451
        sb.append(this.success);
30452
      }
30453
      first = false;
30454
      if (!first) sb.append(", ");
30455
      sb.append("se:");
30456
      if (this.se == null) {
30457
        sb.append("null");
30458
      } else {
30459
        sb.append(this.se);
30460
      }
30461
      first = false;
30462
      sb.append(")");
30463
      return sb.toString();
30464
    }
30465
 
30466
    public void validate() throws org.apache.thrift.TException {
30467
      // check for required fields
30468
    }
30469
 
30470
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30471
      try {
30472
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30473
      } catch (org.apache.thrift.TException te) {
30474
        throw new java.io.IOException(te);
30475
      }
30476
    }
30477
 
30478
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30479
      try {
30480
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30481
      } catch (org.apache.thrift.TException te) {
30482
        throw new java.io.IOException(te);
30483
      }
30484
    }
30485
 
30486
  }
30487
 
30488
  public static class markMessagesAsSentToOperator_args implements org.apache.thrift.TBase<markMessagesAsSentToOperator_args, markMessagesAsSentToOperator_args._Fields>, java.io.Serializable, Cloneable   {
30489
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSentToOperator_args");
30490
 
30491
    private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);
30492
 
30493
    private List<UserSms> userSmsList; // required
30494
 
30495
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30496
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30497
      USER_SMS_LIST((short)-1, "userSmsList");
30498
 
30499
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30500
 
30501
      static {
30502
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30503
          byName.put(field.getFieldName(), field);
30504
        }
30505
      }
30506
 
30507
      /**
30508
       * Find the _Fields constant that matches fieldId, or null if its not found.
30509
       */
30510
      public static _Fields findByThriftId(int fieldId) {
30511
        switch(fieldId) {
30512
          case -1: // USER_SMS_LIST
30513
            return USER_SMS_LIST;
30514
          default:
30515
            return null;
30516
        }
30517
      }
30518
 
30519
      /**
30520
       * Find the _Fields constant that matches fieldId, throwing an exception
30521
       * if it is not found.
30522
       */
30523
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30524
        _Fields fields = findByThriftId(fieldId);
30525
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30526
        return fields;
30527
      }
30528
 
30529
      /**
30530
       * Find the _Fields constant that matches name, or null if its not found.
30531
       */
30532
      public static _Fields findByName(String name) {
30533
        return byName.get(name);
30534
      }
30535
 
30536
      private final short _thriftId;
30537
      private final String _fieldName;
30538
 
30539
      _Fields(short thriftId, String fieldName) {
30540
        _thriftId = thriftId;
30541
        _fieldName = fieldName;
30542
      }
30543
 
30544
      public short getThriftFieldId() {
30545
        return _thriftId;
30546
      }
30547
 
30548
      public String getFieldName() {
30549
        return _fieldName;
30550
      }
30551
    }
30552
 
30553
    // isset id assignments
30554
 
30555
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30556
    static {
30557
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30558
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30559
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30560
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
30561
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30562
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSentToOperator_args.class, metaDataMap);
30563
    }
30564
 
30565
    public markMessagesAsSentToOperator_args() {
30566
    }
30567
 
30568
    public markMessagesAsSentToOperator_args(
30569
      List<UserSms> userSmsList)
30570
    {
30571
      this();
30572
      this.userSmsList = userSmsList;
30573
    }
30574
 
30575
    /**
30576
     * Performs a deep copy on <i>other</i>.
30577
     */
30578
    public markMessagesAsSentToOperator_args(markMessagesAsSentToOperator_args other) {
30579
      if (other.isSetUserSmsList()) {
30580
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
30581
        for (UserSms other_element : other.userSmsList) {
30582
          __this__userSmsList.add(new UserSms(other_element));
30583
        }
30584
        this.userSmsList = __this__userSmsList;
30585
      }
30586
    }
30587
 
30588
    public markMessagesAsSentToOperator_args deepCopy() {
30589
      return new markMessagesAsSentToOperator_args(this);
30590
    }
30591
 
30592
    @Override
30593
    public void clear() {
30594
      this.userSmsList = null;
30595
    }
30596
 
30597
    public int getUserSmsListSize() {
30598
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
30599
    }
30600
 
30601
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
30602
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
30603
    }
30604
 
30605
    public void addToUserSmsList(UserSms elem) {
30606
      if (this.userSmsList == null) {
30607
        this.userSmsList = new ArrayList<UserSms>();
30608
      }
30609
      this.userSmsList.add(elem);
30610
    }
30611
 
30612
    public List<UserSms> getUserSmsList() {
30613
      return this.userSmsList;
30614
    }
30615
 
30616
    public void setUserSmsList(List<UserSms> userSmsList) {
30617
      this.userSmsList = userSmsList;
30618
    }
30619
 
30620
    public void unsetUserSmsList() {
30621
      this.userSmsList = null;
30622
    }
30623
 
30624
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
30625
    public boolean isSetUserSmsList() {
30626
      return this.userSmsList != null;
30627
    }
30628
 
30629
    public void setUserSmsListIsSet(boolean value) {
30630
      if (!value) {
30631
        this.userSmsList = null;
30632
      }
30633
    }
30634
 
30635
    public void setFieldValue(_Fields field, Object value) {
30636
      switch (field) {
30637
      case USER_SMS_LIST:
30638
        if (value == null) {
30639
          unsetUserSmsList();
30640
        } else {
30641
          setUserSmsList((List<UserSms>)value);
30642
        }
30643
        break;
30644
 
30645
      }
30646
    }
30647
 
30648
    public Object getFieldValue(_Fields field) {
30649
      switch (field) {
30650
      case USER_SMS_LIST:
30651
        return getUserSmsList();
30652
 
30653
      }
30654
      throw new IllegalStateException();
30655
    }
30656
 
30657
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30658
    public boolean isSet(_Fields field) {
30659
      if (field == null) {
30660
        throw new IllegalArgumentException();
30661
      }
30662
 
30663
      switch (field) {
30664
      case USER_SMS_LIST:
30665
        return isSetUserSmsList();
30666
      }
30667
      throw new IllegalStateException();
30668
    }
30669
 
30670
    @Override
30671
    public boolean equals(Object that) {
30672
      if (that == null)
30673
        return false;
30674
      if (that instanceof markMessagesAsSentToOperator_args)
30675
        return this.equals((markMessagesAsSentToOperator_args)that);
30676
      return false;
30677
    }
30678
 
30679
    public boolean equals(markMessagesAsSentToOperator_args that) {
30680
      if (that == null)
30681
        return false;
30682
 
30683
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
30684
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
30685
      if (this_present_userSmsList || that_present_userSmsList) {
30686
        if (!(this_present_userSmsList && that_present_userSmsList))
30687
          return false;
30688
        if (!this.userSmsList.equals(that.userSmsList))
30689
          return false;
30690
      }
30691
 
30692
      return true;
30693
    }
30694
 
30695
    @Override
30696
    public int hashCode() {
30697
      return 0;
30698
    }
30699
 
30700
    public int compareTo(markMessagesAsSentToOperator_args other) {
30701
      if (!getClass().equals(other.getClass())) {
30702
        return getClass().getName().compareTo(other.getClass().getName());
30703
      }
30704
 
30705
      int lastComparison = 0;
30706
      markMessagesAsSentToOperator_args typedOther = (markMessagesAsSentToOperator_args)other;
30707
 
30708
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
30709
      if (lastComparison != 0) {
30710
        return lastComparison;
30711
      }
30712
      if (isSetUserSmsList()) {
30713
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
30714
        if (lastComparison != 0) {
30715
          return lastComparison;
30716
        }
30717
      }
30718
      return 0;
30719
    }
30720
 
30721
    public _Fields fieldForId(int fieldId) {
30722
      return _Fields.findByThriftId(fieldId);
30723
    }
30724
 
30725
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30726
      org.apache.thrift.protocol.TField field;
30727
      iprot.readStructBegin();
30728
      while (true)
30729
      {
30730
        field = iprot.readFieldBegin();
30731
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30732
          break;
30733
        }
30734
        switch (field.id) {
30735
          case -1: // USER_SMS_LIST
30736
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30737
              {
30738
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
30739
                this.userSmsList = new ArrayList<UserSms>(_list85.size);
30740
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
30741
                {
30742
                  UserSms _elem87; // required
30743
                  _elem87 = new UserSms();
30744
                  _elem87.read(iprot);
30745
                  this.userSmsList.add(_elem87);
30746
                }
30747
                iprot.readListEnd();
30748
              }
30749
            } else { 
30750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30751
            }
30752
            break;
30753
          default:
30754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30755
        }
30756
        iprot.readFieldEnd();
30757
      }
30758
      iprot.readStructEnd();
30759
      validate();
30760
    }
30761
 
30762
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30763
      validate();
30764
 
30765
      oprot.writeStructBegin(STRUCT_DESC);
30766
      if (this.userSmsList != null) {
30767
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
30768
        {
30769
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
30770
          for (UserSms _iter88 : this.userSmsList)
30771
          {
30772
            _iter88.write(oprot);
30773
          }
30774
          oprot.writeListEnd();
30775
        }
30776
        oprot.writeFieldEnd();
30777
      }
30778
      oprot.writeFieldStop();
30779
      oprot.writeStructEnd();
30780
    }
30781
 
30782
    @Override
30783
    public String toString() {
30784
      StringBuilder sb = new StringBuilder("markMessagesAsSentToOperator_args(");
30785
      boolean first = true;
30786
 
30787
      sb.append("userSmsList:");
30788
      if (this.userSmsList == null) {
30789
        sb.append("null");
30790
      } else {
30791
        sb.append(this.userSmsList);
30792
      }
30793
      first = false;
30794
      sb.append(")");
30795
      return sb.toString();
30796
    }
30797
 
30798
    public void validate() throws org.apache.thrift.TException {
30799
      // check for required fields
30800
    }
30801
 
30802
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30803
      try {
30804
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30805
      } catch (org.apache.thrift.TException te) {
30806
        throw new java.io.IOException(te);
30807
      }
30808
    }
30809
 
30810
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30811
      try {
30812
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30813
      } catch (org.apache.thrift.TException te) {
30814
        throw new java.io.IOException(te);
30815
      }
30816
    }
30817
 
30818
  }
30819
 
30820
  public static class markMessagesAsSentToOperator_result implements org.apache.thrift.TBase<markMessagesAsSentToOperator_result, markMessagesAsSentToOperator_result._Fields>, java.io.Serializable, Cloneable   {
30821
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSentToOperator_result");
30822
 
30823
    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);
30824
 
30825
    private boolean success; // required
30826
 
30827
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30828
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30829
      SUCCESS((short)0, "success");
30830
 
30831
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30832
 
30833
      static {
30834
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30835
          byName.put(field.getFieldName(), field);
30836
        }
30837
      }
30838
 
30839
      /**
30840
       * Find the _Fields constant that matches fieldId, or null if its not found.
30841
       */
30842
      public static _Fields findByThriftId(int fieldId) {
30843
        switch(fieldId) {
30844
          case 0: // SUCCESS
30845
            return SUCCESS;
30846
          default:
30847
            return null;
30848
        }
30849
      }
30850
 
30851
      /**
30852
       * Find the _Fields constant that matches fieldId, throwing an exception
30853
       * if it is not found.
30854
       */
30855
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30856
        _Fields fields = findByThriftId(fieldId);
30857
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30858
        return fields;
30859
      }
30860
 
30861
      /**
30862
       * Find the _Fields constant that matches name, or null if its not found.
30863
       */
30864
      public static _Fields findByName(String name) {
30865
        return byName.get(name);
30866
      }
30867
 
30868
      private final short _thriftId;
30869
      private final String _fieldName;
30870
 
30871
      _Fields(short thriftId, String fieldName) {
30872
        _thriftId = thriftId;
30873
        _fieldName = fieldName;
30874
      }
30875
 
30876
      public short getThriftFieldId() {
30877
        return _thriftId;
30878
      }
30879
 
30880
      public String getFieldName() {
30881
        return _fieldName;
30882
      }
30883
    }
30884
 
30885
    // isset id assignments
30886
    private static final int __SUCCESS_ISSET_ID = 0;
30887
    private BitSet __isset_bit_vector = new BitSet(1);
30888
 
30889
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30890
    static {
30891
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30892
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30893
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
30894
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30895
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSentToOperator_result.class, metaDataMap);
30896
    }
30897
 
30898
    public markMessagesAsSentToOperator_result() {
30899
    }
30900
 
30901
    public markMessagesAsSentToOperator_result(
30902
      boolean success)
30903
    {
30904
      this();
30905
      this.success = success;
30906
      setSuccessIsSet(true);
30907
    }
30908
 
30909
    /**
30910
     * Performs a deep copy on <i>other</i>.
30911
     */
30912
    public markMessagesAsSentToOperator_result(markMessagesAsSentToOperator_result other) {
30913
      __isset_bit_vector.clear();
30914
      __isset_bit_vector.or(other.__isset_bit_vector);
30915
      this.success = other.success;
30916
    }
30917
 
30918
    public markMessagesAsSentToOperator_result deepCopy() {
30919
      return new markMessagesAsSentToOperator_result(this);
30920
    }
30921
 
30922
    @Override
30923
    public void clear() {
30924
      setSuccessIsSet(false);
30925
      this.success = false;
30926
    }
30927
 
30928
    public boolean isSuccess() {
30929
      return this.success;
30930
    }
30931
 
30932
    public void setSuccess(boolean success) {
30933
      this.success = success;
30934
      setSuccessIsSet(true);
30935
    }
30936
 
30937
    public void unsetSuccess() {
30938
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
30939
    }
30940
 
30941
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30942
    public boolean isSetSuccess() {
30943
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
30944
    }
30945
 
30946
    public void setSuccessIsSet(boolean value) {
30947
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
30948
    }
30949
 
30950
    public void setFieldValue(_Fields field, Object value) {
30951
      switch (field) {
30952
      case SUCCESS:
30953
        if (value == null) {
30954
          unsetSuccess();
30955
        } else {
30956
          setSuccess((Boolean)value);
30957
        }
30958
        break;
30959
 
30960
      }
30961
    }
30962
 
30963
    public Object getFieldValue(_Fields field) {
30964
      switch (field) {
30965
      case SUCCESS:
30966
        return Boolean.valueOf(isSuccess());
30967
 
30968
      }
30969
      throw new IllegalStateException();
30970
    }
30971
 
30972
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30973
    public boolean isSet(_Fields field) {
30974
      if (field == null) {
30975
        throw new IllegalArgumentException();
30976
      }
30977
 
30978
      switch (field) {
30979
      case SUCCESS:
30980
        return isSetSuccess();
30981
      }
30982
      throw new IllegalStateException();
30983
    }
30984
 
30985
    @Override
30986
    public boolean equals(Object that) {
30987
      if (that == null)
30988
        return false;
30989
      if (that instanceof markMessagesAsSentToOperator_result)
30990
        return this.equals((markMessagesAsSentToOperator_result)that);
30991
      return false;
30992
    }
30993
 
30994
    public boolean equals(markMessagesAsSentToOperator_result that) {
30995
      if (that == null)
30996
        return false;
30997
 
30998
      boolean this_present_success = true;
30999
      boolean that_present_success = true;
31000
      if (this_present_success || that_present_success) {
31001
        if (!(this_present_success && that_present_success))
31002
          return false;
31003
        if (this.success != that.success)
31004
          return false;
31005
      }
31006
 
31007
      return true;
31008
    }
31009
 
31010
    @Override
31011
    public int hashCode() {
31012
      return 0;
31013
    }
31014
 
31015
    public int compareTo(markMessagesAsSentToOperator_result other) {
31016
      if (!getClass().equals(other.getClass())) {
31017
        return getClass().getName().compareTo(other.getClass().getName());
31018
      }
31019
 
31020
      int lastComparison = 0;
31021
      markMessagesAsSentToOperator_result typedOther = (markMessagesAsSentToOperator_result)other;
31022
 
31023
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31024
      if (lastComparison != 0) {
31025
        return lastComparison;
31026
      }
31027
      if (isSetSuccess()) {
31028
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31029
        if (lastComparison != 0) {
31030
          return lastComparison;
31031
        }
31032
      }
31033
      return 0;
31034
    }
31035
 
31036
    public _Fields fieldForId(int fieldId) {
31037
      return _Fields.findByThriftId(fieldId);
31038
    }
31039
 
31040
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31041
      org.apache.thrift.protocol.TField field;
31042
      iprot.readStructBegin();
31043
      while (true)
31044
      {
31045
        field = iprot.readFieldBegin();
31046
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31047
          break;
31048
        }
31049
        switch (field.id) {
31050
          case 0: // SUCCESS
31051
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31052
              this.success = iprot.readBool();
31053
              setSuccessIsSet(true);
31054
            } else { 
31055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31056
            }
31057
            break;
31058
          default:
31059
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31060
        }
31061
        iprot.readFieldEnd();
31062
      }
31063
      iprot.readStructEnd();
31064
      validate();
31065
    }
31066
 
31067
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31068
      oprot.writeStructBegin(STRUCT_DESC);
31069
 
31070
      if (this.isSetSuccess()) {
31071
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31072
        oprot.writeBool(this.success);
31073
        oprot.writeFieldEnd();
31074
      }
31075
      oprot.writeFieldStop();
31076
      oprot.writeStructEnd();
31077
    }
31078
 
31079
    @Override
31080
    public String toString() {
31081
      StringBuilder sb = new StringBuilder("markMessagesAsSentToOperator_result(");
31082
      boolean first = true;
31083
 
31084
      sb.append("success:");
31085
      sb.append(this.success);
31086
      first = false;
31087
      sb.append(")");
31088
      return sb.toString();
31089
    }
31090
 
31091
    public void validate() throws org.apache.thrift.TException {
31092
      // check for required fields
31093
    }
31094
 
31095
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31096
      try {
31097
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31098
      } catch (org.apache.thrift.TException te) {
31099
        throw new java.io.IOException(te);
31100
      }
31101
    }
31102
 
31103
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31104
      try {
31105
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31106
      } catch (org.apache.thrift.TException te) {
31107
        throw new java.io.IOException(te);
31108
      }
31109
    }
31110
 
31111
  }
31112
 
31113
  public static class markMessagesAsSubmittedToSmsc_args implements org.apache.thrift.TBase<markMessagesAsSubmittedToSmsc_args, markMessagesAsSubmittedToSmsc_args._Fields>, java.io.Serializable, Cloneable   {
31114
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSubmittedToSmsc_args");
31115
 
31116
    private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);
31117
 
31118
    private List<UserSms> userSmsList; // required
31119
 
31120
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31121
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31122
      USER_SMS_LIST((short)-1, "userSmsList");
31123
 
31124
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31125
 
31126
      static {
31127
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31128
          byName.put(field.getFieldName(), field);
31129
        }
31130
      }
31131
 
31132
      /**
31133
       * Find the _Fields constant that matches fieldId, or null if its not found.
31134
       */
31135
      public static _Fields findByThriftId(int fieldId) {
31136
        switch(fieldId) {
31137
          case -1: // USER_SMS_LIST
31138
            return USER_SMS_LIST;
31139
          default:
31140
            return null;
31141
        }
31142
      }
31143
 
31144
      /**
31145
       * Find the _Fields constant that matches fieldId, throwing an exception
31146
       * if it is not found.
31147
       */
31148
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31149
        _Fields fields = findByThriftId(fieldId);
31150
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31151
        return fields;
31152
      }
31153
 
31154
      /**
31155
       * Find the _Fields constant that matches name, or null if its not found.
31156
       */
31157
      public static _Fields findByName(String name) {
31158
        return byName.get(name);
31159
      }
31160
 
31161
      private final short _thriftId;
31162
      private final String _fieldName;
31163
 
31164
      _Fields(short thriftId, String fieldName) {
31165
        _thriftId = thriftId;
31166
        _fieldName = fieldName;
31167
      }
31168
 
31169
      public short getThriftFieldId() {
31170
        return _thriftId;
31171
      }
31172
 
31173
      public String getFieldName() {
31174
        return _fieldName;
31175
      }
31176
    }
31177
 
31178
    // isset id assignments
31179
 
31180
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31181
    static {
31182
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31183
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31184
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31185
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
31186
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31187
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSubmittedToSmsc_args.class, metaDataMap);
31188
    }
31189
 
31190
    public markMessagesAsSubmittedToSmsc_args() {
31191
    }
31192
 
31193
    public markMessagesAsSubmittedToSmsc_args(
31194
      List<UserSms> userSmsList)
31195
    {
31196
      this();
31197
      this.userSmsList = userSmsList;
31198
    }
31199
 
31200
    /**
31201
     * Performs a deep copy on <i>other</i>.
31202
     */
31203
    public markMessagesAsSubmittedToSmsc_args(markMessagesAsSubmittedToSmsc_args other) {
31204
      if (other.isSetUserSmsList()) {
31205
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
31206
        for (UserSms other_element : other.userSmsList) {
31207
          __this__userSmsList.add(new UserSms(other_element));
31208
        }
31209
        this.userSmsList = __this__userSmsList;
31210
      }
31211
    }
31212
 
31213
    public markMessagesAsSubmittedToSmsc_args deepCopy() {
31214
      return new markMessagesAsSubmittedToSmsc_args(this);
31215
    }
31216
 
31217
    @Override
31218
    public void clear() {
31219
      this.userSmsList = null;
31220
    }
31221
 
31222
    public int getUserSmsListSize() {
31223
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
31224
    }
31225
 
31226
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
31227
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
31228
    }
31229
 
31230
    public void addToUserSmsList(UserSms elem) {
31231
      if (this.userSmsList == null) {
31232
        this.userSmsList = new ArrayList<UserSms>();
31233
      }
31234
      this.userSmsList.add(elem);
31235
    }
31236
 
31237
    public List<UserSms> getUserSmsList() {
31238
      return this.userSmsList;
31239
    }
31240
 
31241
    public void setUserSmsList(List<UserSms> userSmsList) {
31242
      this.userSmsList = userSmsList;
31243
    }
31244
 
31245
    public void unsetUserSmsList() {
31246
      this.userSmsList = null;
31247
    }
31248
 
31249
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
31250
    public boolean isSetUserSmsList() {
31251
      return this.userSmsList != null;
31252
    }
31253
 
31254
    public void setUserSmsListIsSet(boolean value) {
31255
      if (!value) {
31256
        this.userSmsList = null;
31257
      }
31258
    }
31259
 
31260
    public void setFieldValue(_Fields field, Object value) {
31261
      switch (field) {
31262
      case USER_SMS_LIST:
31263
        if (value == null) {
31264
          unsetUserSmsList();
31265
        } else {
31266
          setUserSmsList((List<UserSms>)value);
31267
        }
31268
        break;
31269
 
31270
      }
31271
    }
31272
 
31273
    public Object getFieldValue(_Fields field) {
31274
      switch (field) {
31275
      case USER_SMS_LIST:
31276
        return getUserSmsList();
31277
 
31278
      }
31279
      throw new IllegalStateException();
31280
    }
31281
 
31282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31283
    public boolean isSet(_Fields field) {
31284
      if (field == null) {
31285
        throw new IllegalArgumentException();
31286
      }
31287
 
31288
      switch (field) {
31289
      case USER_SMS_LIST:
31290
        return isSetUserSmsList();
31291
      }
31292
      throw new IllegalStateException();
31293
    }
31294
 
31295
    @Override
31296
    public boolean equals(Object that) {
31297
      if (that == null)
31298
        return false;
31299
      if (that instanceof markMessagesAsSubmittedToSmsc_args)
31300
        return this.equals((markMessagesAsSubmittedToSmsc_args)that);
31301
      return false;
31302
    }
31303
 
31304
    public boolean equals(markMessagesAsSubmittedToSmsc_args that) {
31305
      if (that == null)
31306
        return false;
31307
 
31308
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
31309
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
31310
      if (this_present_userSmsList || that_present_userSmsList) {
31311
        if (!(this_present_userSmsList && that_present_userSmsList))
31312
          return false;
31313
        if (!this.userSmsList.equals(that.userSmsList))
31314
          return false;
31315
      }
31316
 
31317
      return true;
31318
    }
31319
 
31320
    @Override
31321
    public int hashCode() {
31322
      return 0;
31323
    }
31324
 
31325
    public int compareTo(markMessagesAsSubmittedToSmsc_args other) {
31326
      if (!getClass().equals(other.getClass())) {
31327
        return getClass().getName().compareTo(other.getClass().getName());
31328
      }
31329
 
31330
      int lastComparison = 0;
31331
      markMessagesAsSubmittedToSmsc_args typedOther = (markMessagesAsSubmittedToSmsc_args)other;
31332
 
31333
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
31334
      if (lastComparison != 0) {
31335
        return lastComparison;
31336
      }
31337
      if (isSetUserSmsList()) {
31338
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
31339
        if (lastComparison != 0) {
31340
          return lastComparison;
31341
        }
31342
      }
31343
      return 0;
31344
    }
31345
 
31346
    public _Fields fieldForId(int fieldId) {
31347
      return _Fields.findByThriftId(fieldId);
31348
    }
31349
 
31350
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31351
      org.apache.thrift.protocol.TField field;
31352
      iprot.readStructBegin();
31353
      while (true)
31354
      {
31355
        field = iprot.readFieldBegin();
31356
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31357
          break;
31358
        }
31359
        switch (field.id) {
31360
          case -1: // USER_SMS_LIST
31361
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31362
              {
31363
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
31364
                this.userSmsList = new ArrayList<UserSms>(_list89.size);
31365
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
31366
                {
31367
                  UserSms _elem91; // required
31368
                  _elem91 = new UserSms();
31369
                  _elem91.read(iprot);
31370
                  this.userSmsList.add(_elem91);
31371
                }
31372
                iprot.readListEnd();
31373
              }
31374
            } else { 
31375
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31376
            }
31377
            break;
31378
          default:
31379
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31380
        }
31381
        iprot.readFieldEnd();
31382
      }
31383
      iprot.readStructEnd();
31384
      validate();
31385
    }
31386
 
31387
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31388
      validate();
31389
 
31390
      oprot.writeStructBegin(STRUCT_DESC);
31391
      if (this.userSmsList != null) {
31392
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
31393
        {
31394
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
31395
          for (UserSms _iter92 : this.userSmsList)
31396
          {
31397
            _iter92.write(oprot);
31398
          }
31399
          oprot.writeListEnd();
31400
        }
31401
        oprot.writeFieldEnd();
31402
      }
31403
      oprot.writeFieldStop();
31404
      oprot.writeStructEnd();
31405
    }
31406
 
31407
    @Override
31408
    public String toString() {
31409
      StringBuilder sb = new StringBuilder("markMessagesAsSubmittedToSmsc_args(");
31410
      boolean first = true;
31411
 
31412
      sb.append("userSmsList:");
31413
      if (this.userSmsList == null) {
31414
        sb.append("null");
31415
      } else {
31416
        sb.append(this.userSmsList);
31417
      }
31418
      first = false;
31419
      sb.append(")");
31420
      return sb.toString();
31421
    }
31422
 
31423
    public void validate() throws org.apache.thrift.TException {
31424
      // check for required fields
31425
    }
31426
 
31427
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31428
      try {
31429
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31430
      } catch (org.apache.thrift.TException te) {
31431
        throw new java.io.IOException(te);
31432
      }
31433
    }
31434
 
31435
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31436
      try {
31437
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31438
      } catch (org.apache.thrift.TException te) {
31439
        throw new java.io.IOException(te);
31440
      }
31441
    }
31442
 
31443
  }
31444
 
31445
  public static class markMessagesAsSubmittedToSmsc_result implements org.apache.thrift.TBase<markMessagesAsSubmittedToSmsc_result, markMessagesAsSubmittedToSmsc_result._Fields>, java.io.Serializable, Cloneable   {
31446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSubmittedToSmsc_result");
31447
 
31448
    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);
31449
 
31450
    private boolean success; // required
31451
 
31452
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31453
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31454
      SUCCESS((short)0, "success");
31455
 
31456
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31457
 
31458
      static {
31459
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31460
          byName.put(field.getFieldName(), field);
31461
        }
31462
      }
31463
 
31464
      /**
31465
       * Find the _Fields constant that matches fieldId, or null if its not found.
31466
       */
31467
      public static _Fields findByThriftId(int fieldId) {
31468
        switch(fieldId) {
31469
          case 0: // SUCCESS
31470
            return SUCCESS;
31471
          default:
31472
            return null;
31473
        }
31474
      }
31475
 
31476
      /**
31477
       * Find the _Fields constant that matches fieldId, throwing an exception
31478
       * if it is not found.
31479
       */
31480
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31481
        _Fields fields = findByThriftId(fieldId);
31482
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31483
        return fields;
31484
      }
31485
 
31486
      /**
31487
       * Find the _Fields constant that matches name, or null if its not found.
31488
       */
31489
      public static _Fields findByName(String name) {
31490
        return byName.get(name);
31491
      }
31492
 
31493
      private final short _thriftId;
31494
      private final String _fieldName;
31495
 
31496
      _Fields(short thriftId, String fieldName) {
31497
        _thriftId = thriftId;
31498
        _fieldName = fieldName;
31499
      }
31500
 
31501
      public short getThriftFieldId() {
31502
        return _thriftId;
31503
      }
31504
 
31505
      public String getFieldName() {
31506
        return _fieldName;
31507
      }
31508
    }
31509
 
31510
    // isset id assignments
31511
    private static final int __SUCCESS_ISSET_ID = 0;
31512
    private BitSet __isset_bit_vector = new BitSet(1);
31513
 
31514
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31515
    static {
31516
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31517
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31518
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31519
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31520
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSubmittedToSmsc_result.class, metaDataMap);
31521
    }
31522
 
31523
    public markMessagesAsSubmittedToSmsc_result() {
31524
    }
31525
 
31526
    public markMessagesAsSubmittedToSmsc_result(
31527
      boolean success)
31528
    {
31529
      this();
31530
      this.success = success;
31531
      setSuccessIsSet(true);
31532
    }
31533
 
31534
    /**
31535
     * Performs a deep copy on <i>other</i>.
31536
     */
31537
    public markMessagesAsSubmittedToSmsc_result(markMessagesAsSubmittedToSmsc_result other) {
31538
      __isset_bit_vector.clear();
31539
      __isset_bit_vector.or(other.__isset_bit_vector);
31540
      this.success = other.success;
31541
    }
31542
 
31543
    public markMessagesAsSubmittedToSmsc_result deepCopy() {
31544
      return new markMessagesAsSubmittedToSmsc_result(this);
31545
    }
31546
 
31547
    @Override
31548
    public void clear() {
31549
      setSuccessIsSet(false);
31550
      this.success = false;
31551
    }
31552
 
31553
    public boolean isSuccess() {
31554
      return this.success;
31555
    }
31556
 
31557
    public void setSuccess(boolean success) {
31558
      this.success = success;
31559
      setSuccessIsSet(true);
31560
    }
31561
 
31562
    public void unsetSuccess() {
31563
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31564
    }
31565
 
31566
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31567
    public boolean isSetSuccess() {
31568
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31569
    }
31570
 
31571
    public void setSuccessIsSet(boolean value) {
31572
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31573
    }
31574
 
31575
    public void setFieldValue(_Fields field, Object value) {
31576
      switch (field) {
31577
      case SUCCESS:
31578
        if (value == null) {
31579
          unsetSuccess();
31580
        } else {
31581
          setSuccess((Boolean)value);
31582
        }
31583
        break;
31584
 
31585
      }
31586
    }
31587
 
31588
    public Object getFieldValue(_Fields field) {
31589
      switch (field) {
31590
      case SUCCESS:
31591
        return Boolean.valueOf(isSuccess());
31592
 
31593
      }
31594
      throw new IllegalStateException();
31595
    }
31596
 
31597
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31598
    public boolean isSet(_Fields field) {
31599
      if (field == null) {
31600
        throw new IllegalArgumentException();
31601
      }
31602
 
31603
      switch (field) {
31604
      case SUCCESS:
31605
        return isSetSuccess();
31606
      }
31607
      throw new IllegalStateException();
31608
    }
31609
 
31610
    @Override
31611
    public boolean equals(Object that) {
31612
      if (that == null)
31613
        return false;
31614
      if (that instanceof markMessagesAsSubmittedToSmsc_result)
31615
        return this.equals((markMessagesAsSubmittedToSmsc_result)that);
31616
      return false;
31617
    }
31618
 
31619
    public boolean equals(markMessagesAsSubmittedToSmsc_result that) {
31620
      if (that == null)
31621
        return false;
31622
 
31623
      boolean this_present_success = true;
31624
      boolean that_present_success = true;
31625
      if (this_present_success || that_present_success) {
31626
        if (!(this_present_success && that_present_success))
31627
          return false;
31628
        if (this.success != that.success)
31629
          return false;
31630
      }
31631
 
31632
      return true;
31633
    }
31634
 
31635
    @Override
31636
    public int hashCode() {
31637
      return 0;
31638
    }
31639
 
31640
    public int compareTo(markMessagesAsSubmittedToSmsc_result other) {
31641
      if (!getClass().equals(other.getClass())) {
31642
        return getClass().getName().compareTo(other.getClass().getName());
31643
      }
31644
 
31645
      int lastComparison = 0;
31646
      markMessagesAsSubmittedToSmsc_result typedOther = (markMessagesAsSubmittedToSmsc_result)other;
31647
 
31648
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31649
      if (lastComparison != 0) {
31650
        return lastComparison;
31651
      }
31652
      if (isSetSuccess()) {
31653
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31654
        if (lastComparison != 0) {
31655
          return lastComparison;
31656
        }
31657
      }
31658
      return 0;
31659
    }
31660
 
31661
    public _Fields fieldForId(int fieldId) {
31662
      return _Fields.findByThriftId(fieldId);
31663
    }
31664
 
31665
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31666
      org.apache.thrift.protocol.TField field;
31667
      iprot.readStructBegin();
31668
      while (true)
31669
      {
31670
        field = iprot.readFieldBegin();
31671
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31672
          break;
31673
        }
31674
        switch (field.id) {
31675
          case 0: // SUCCESS
31676
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31677
              this.success = iprot.readBool();
31678
              setSuccessIsSet(true);
31679
            } else { 
31680
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31681
            }
31682
            break;
31683
          default:
31684
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31685
        }
31686
        iprot.readFieldEnd();
31687
      }
31688
      iprot.readStructEnd();
31689
      validate();
31690
    }
31691
 
31692
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31693
      oprot.writeStructBegin(STRUCT_DESC);
31694
 
31695
      if (this.isSetSuccess()) {
31696
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31697
        oprot.writeBool(this.success);
31698
        oprot.writeFieldEnd();
31699
      }
31700
      oprot.writeFieldStop();
31701
      oprot.writeStructEnd();
31702
    }
31703
 
31704
    @Override
31705
    public String toString() {
31706
      StringBuilder sb = new StringBuilder("markMessagesAsSubmittedToSmsc_result(");
31707
      boolean first = true;
31708
 
31709
      sb.append("success:");
31710
      sb.append(this.success);
31711
      first = false;
31712
      sb.append(")");
31713
      return sb.toString();
31714
    }
31715
 
31716
    public void validate() throws org.apache.thrift.TException {
31717
      // check for required fields
31718
    }
31719
 
31720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31721
      try {
31722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31723
      } catch (org.apache.thrift.TException te) {
31724
        throw new java.io.IOException(te);
31725
      }
31726
    }
31727
 
31728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31729
      try {
31730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31731
      } catch (org.apache.thrift.TException te) {
31732
        throw new java.io.IOException(te);
31733
      }
31734
    }
31735
 
31736
  }
31737
 
31738
  public static class markMessagesAsSent_args implements org.apache.thrift.TBase<markMessagesAsSent_args, markMessagesAsSent_args._Fields>, java.io.Serializable, Cloneable   {
31739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSent_args");
31740
 
31741
    private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);
31742
 
31743
    private List<UserSms> userSmsList; // required
31744
 
31745
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31746
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31747
      USER_SMS_LIST((short)-1, "userSmsList");
31748
 
31749
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31750
 
31751
      static {
31752
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31753
          byName.put(field.getFieldName(), field);
31754
        }
31755
      }
31756
 
31757
      /**
31758
       * Find the _Fields constant that matches fieldId, or null if its not found.
31759
       */
31760
      public static _Fields findByThriftId(int fieldId) {
31761
        switch(fieldId) {
31762
          case -1: // USER_SMS_LIST
31763
            return USER_SMS_LIST;
31764
          default:
31765
            return null;
31766
        }
31767
      }
31768
 
31769
      /**
31770
       * Find the _Fields constant that matches fieldId, throwing an exception
31771
       * if it is not found.
31772
       */
31773
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31774
        _Fields fields = findByThriftId(fieldId);
31775
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31776
        return fields;
31777
      }
31778
 
31779
      /**
31780
       * Find the _Fields constant that matches name, or null if its not found.
31781
       */
31782
      public static _Fields findByName(String name) {
31783
        return byName.get(name);
31784
      }
31785
 
31786
      private final short _thriftId;
31787
      private final String _fieldName;
31788
 
31789
      _Fields(short thriftId, String fieldName) {
31790
        _thriftId = thriftId;
31791
        _fieldName = fieldName;
31792
      }
31793
 
31794
      public short getThriftFieldId() {
31795
        return _thriftId;
31796
      }
31797
 
31798
      public String getFieldName() {
31799
        return _fieldName;
31800
      }
31801
    }
31802
 
31803
    // isset id assignments
31804
 
31805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31806
    static {
31807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31808
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31809
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31810
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
31811
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31812
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSent_args.class, metaDataMap);
31813
    }
31814
 
31815
    public markMessagesAsSent_args() {
31816
    }
31817
 
31818
    public markMessagesAsSent_args(
31819
      List<UserSms> userSmsList)
31820
    {
31821
      this();
31822
      this.userSmsList = userSmsList;
31823
    }
31824
 
31825
    /**
31826
     * Performs a deep copy on <i>other</i>.
31827
     */
31828
    public markMessagesAsSent_args(markMessagesAsSent_args other) {
31829
      if (other.isSetUserSmsList()) {
31830
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
31831
        for (UserSms other_element : other.userSmsList) {
31832
          __this__userSmsList.add(new UserSms(other_element));
31833
        }
31834
        this.userSmsList = __this__userSmsList;
31835
      }
31836
    }
31837
 
31838
    public markMessagesAsSent_args deepCopy() {
31839
      return new markMessagesAsSent_args(this);
31840
    }
31841
 
31842
    @Override
31843
    public void clear() {
31844
      this.userSmsList = null;
31845
    }
31846
 
31847
    public int getUserSmsListSize() {
31848
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
31849
    }
31850
 
31851
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
31852
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
31853
    }
31854
 
31855
    public void addToUserSmsList(UserSms elem) {
31856
      if (this.userSmsList == null) {
31857
        this.userSmsList = new ArrayList<UserSms>();
31858
      }
31859
      this.userSmsList.add(elem);
31860
    }
31861
 
31862
    public List<UserSms> getUserSmsList() {
31863
      return this.userSmsList;
31864
    }
31865
 
31866
    public void setUserSmsList(List<UserSms> userSmsList) {
31867
      this.userSmsList = userSmsList;
31868
    }
31869
 
31870
    public void unsetUserSmsList() {
31871
      this.userSmsList = null;
31872
    }
31873
 
31874
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
31875
    public boolean isSetUserSmsList() {
31876
      return this.userSmsList != null;
31877
    }
31878
 
31879
    public void setUserSmsListIsSet(boolean value) {
31880
      if (!value) {
31881
        this.userSmsList = null;
31882
      }
31883
    }
31884
 
31885
    public void setFieldValue(_Fields field, Object value) {
31886
      switch (field) {
31887
      case USER_SMS_LIST:
31888
        if (value == null) {
31889
          unsetUserSmsList();
31890
        } else {
31891
          setUserSmsList((List<UserSms>)value);
31892
        }
31893
        break;
31894
 
31895
      }
31896
    }
31897
 
31898
    public Object getFieldValue(_Fields field) {
31899
      switch (field) {
31900
      case USER_SMS_LIST:
31901
        return getUserSmsList();
31902
 
31903
      }
31904
      throw new IllegalStateException();
31905
    }
31906
 
31907
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31908
    public boolean isSet(_Fields field) {
31909
      if (field == null) {
31910
        throw new IllegalArgumentException();
31911
      }
31912
 
31913
      switch (field) {
31914
      case USER_SMS_LIST:
31915
        return isSetUserSmsList();
31916
      }
31917
      throw new IllegalStateException();
31918
    }
31919
 
31920
    @Override
31921
    public boolean equals(Object that) {
31922
      if (that == null)
31923
        return false;
31924
      if (that instanceof markMessagesAsSent_args)
31925
        return this.equals((markMessagesAsSent_args)that);
31926
      return false;
31927
    }
31928
 
31929
    public boolean equals(markMessagesAsSent_args that) {
31930
      if (that == null)
31931
        return false;
31932
 
31933
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
31934
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
31935
      if (this_present_userSmsList || that_present_userSmsList) {
31936
        if (!(this_present_userSmsList && that_present_userSmsList))
31937
          return false;
31938
        if (!this.userSmsList.equals(that.userSmsList))
31939
          return false;
31940
      }
31941
 
31942
      return true;
31943
    }
31944
 
31945
    @Override
31946
    public int hashCode() {
31947
      return 0;
31948
    }
31949
 
31950
    public int compareTo(markMessagesAsSent_args other) {
31951
      if (!getClass().equals(other.getClass())) {
31952
        return getClass().getName().compareTo(other.getClass().getName());
31953
      }
31954
 
31955
      int lastComparison = 0;
31956
      markMessagesAsSent_args typedOther = (markMessagesAsSent_args)other;
31957
 
31958
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
31959
      if (lastComparison != 0) {
31960
        return lastComparison;
31961
      }
31962
      if (isSetUserSmsList()) {
31963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
31964
        if (lastComparison != 0) {
31965
          return lastComparison;
31966
        }
31967
      }
31968
      return 0;
31969
    }
31970
 
31971
    public _Fields fieldForId(int fieldId) {
31972
      return _Fields.findByThriftId(fieldId);
31973
    }
31974
 
31975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31976
      org.apache.thrift.protocol.TField field;
31977
      iprot.readStructBegin();
31978
      while (true)
31979
      {
31980
        field = iprot.readFieldBegin();
31981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31982
          break;
31983
        }
31984
        switch (field.id) {
31985
          case -1: // USER_SMS_LIST
31986
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31987
              {
31988
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
31989
                this.userSmsList = new ArrayList<UserSms>(_list93.size);
31990
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
31991
                {
31992
                  UserSms _elem95; // required
31993
                  _elem95 = new UserSms();
31994
                  _elem95.read(iprot);
31995
                  this.userSmsList.add(_elem95);
31996
                }
31997
                iprot.readListEnd();
31998
              }
31999
            } else { 
32000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32001
            }
32002
            break;
32003
          default:
32004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32005
        }
32006
        iprot.readFieldEnd();
32007
      }
32008
      iprot.readStructEnd();
32009
      validate();
32010
    }
32011
 
32012
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32013
      validate();
32014
 
32015
      oprot.writeStructBegin(STRUCT_DESC);
32016
      if (this.userSmsList != null) {
32017
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
32018
        {
32019
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
32020
          for (UserSms _iter96 : this.userSmsList)
32021
          {
32022
            _iter96.write(oprot);
32023
          }
32024
          oprot.writeListEnd();
32025
        }
32026
        oprot.writeFieldEnd();
32027
      }
32028
      oprot.writeFieldStop();
32029
      oprot.writeStructEnd();
32030
    }
32031
 
32032
    @Override
32033
    public String toString() {
32034
      StringBuilder sb = new StringBuilder("markMessagesAsSent_args(");
32035
      boolean first = true;
32036
 
32037
      sb.append("userSmsList:");
32038
      if (this.userSmsList == null) {
32039
        sb.append("null");
32040
      } else {
32041
        sb.append(this.userSmsList);
32042
      }
32043
      first = false;
32044
      sb.append(")");
32045
      return sb.toString();
32046
    }
32047
 
32048
    public void validate() throws org.apache.thrift.TException {
32049
      // check for required fields
32050
    }
32051
 
32052
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32053
      try {
32054
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32055
      } catch (org.apache.thrift.TException te) {
32056
        throw new java.io.IOException(te);
32057
      }
32058
    }
32059
 
32060
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32061
      try {
32062
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32063
      } catch (org.apache.thrift.TException te) {
32064
        throw new java.io.IOException(te);
32065
      }
32066
    }
32067
 
32068
  }
32069
 
32070
  public static class markMessagesAsSent_result implements org.apache.thrift.TBase<markMessagesAsSent_result, markMessagesAsSent_result._Fields>, java.io.Serializable, Cloneable   {
32071
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSent_result");
32072
 
32073
    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);
32074
 
32075
    private boolean success; // required
32076
 
32077
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32078
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32079
      SUCCESS((short)0, "success");
32080
 
32081
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32082
 
32083
      static {
32084
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32085
          byName.put(field.getFieldName(), field);
32086
        }
32087
      }
32088
 
32089
      /**
32090
       * Find the _Fields constant that matches fieldId, or null if its not found.
32091
       */
32092
      public static _Fields findByThriftId(int fieldId) {
32093
        switch(fieldId) {
32094
          case 0: // SUCCESS
32095
            return SUCCESS;
32096
          default:
32097
            return null;
32098
        }
32099
      }
32100
 
32101
      /**
32102
       * Find the _Fields constant that matches fieldId, throwing an exception
32103
       * if it is not found.
32104
       */
32105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32106
        _Fields fields = findByThriftId(fieldId);
32107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32108
        return fields;
32109
      }
32110
 
32111
      /**
32112
       * Find the _Fields constant that matches name, or null if its not found.
32113
       */
32114
      public static _Fields findByName(String name) {
32115
        return byName.get(name);
32116
      }
32117
 
32118
      private final short _thriftId;
32119
      private final String _fieldName;
32120
 
32121
      _Fields(short thriftId, String fieldName) {
32122
        _thriftId = thriftId;
32123
        _fieldName = fieldName;
32124
      }
32125
 
32126
      public short getThriftFieldId() {
32127
        return _thriftId;
32128
      }
32129
 
32130
      public String getFieldName() {
32131
        return _fieldName;
32132
      }
32133
    }
32134
 
32135
    // isset id assignments
32136
    private static final int __SUCCESS_ISSET_ID = 0;
32137
    private BitSet __isset_bit_vector = new BitSet(1);
32138
 
32139
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32140
    static {
32141
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32142
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32143
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32144
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32145
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSent_result.class, metaDataMap);
32146
    }
32147
 
32148
    public markMessagesAsSent_result() {
32149
    }
32150
 
32151
    public markMessagesAsSent_result(
32152
      boolean success)
32153
    {
32154
      this();
32155
      this.success = success;
32156
      setSuccessIsSet(true);
32157
    }
32158
 
32159
    /**
32160
     * Performs a deep copy on <i>other</i>.
32161
     */
32162
    public markMessagesAsSent_result(markMessagesAsSent_result other) {
32163
      __isset_bit_vector.clear();
32164
      __isset_bit_vector.or(other.__isset_bit_vector);
32165
      this.success = other.success;
32166
    }
32167
 
32168
    public markMessagesAsSent_result deepCopy() {
32169
      return new markMessagesAsSent_result(this);
32170
    }
32171
 
32172
    @Override
32173
    public void clear() {
32174
      setSuccessIsSet(false);
32175
      this.success = false;
32176
    }
32177
 
32178
    public boolean isSuccess() {
32179
      return this.success;
32180
    }
32181
 
32182
    public void setSuccess(boolean success) {
32183
      this.success = success;
32184
      setSuccessIsSet(true);
32185
    }
32186
 
32187
    public void unsetSuccess() {
32188
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32189
    }
32190
 
32191
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32192
    public boolean isSetSuccess() {
32193
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32194
    }
32195
 
32196
    public void setSuccessIsSet(boolean value) {
32197
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32198
    }
32199
 
32200
    public void setFieldValue(_Fields field, Object value) {
32201
      switch (field) {
32202
      case SUCCESS:
32203
        if (value == null) {
32204
          unsetSuccess();
32205
        } else {
32206
          setSuccess((Boolean)value);
32207
        }
32208
        break;
32209
 
32210
      }
32211
    }
32212
 
32213
    public Object getFieldValue(_Fields field) {
32214
      switch (field) {
32215
      case SUCCESS:
32216
        return Boolean.valueOf(isSuccess());
32217
 
32218
      }
32219
      throw new IllegalStateException();
32220
    }
32221
 
32222
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32223
    public boolean isSet(_Fields field) {
32224
      if (field == null) {
32225
        throw new IllegalArgumentException();
32226
      }
32227
 
32228
      switch (field) {
32229
      case SUCCESS:
32230
        return isSetSuccess();
32231
      }
32232
      throw new IllegalStateException();
32233
    }
32234
 
32235
    @Override
32236
    public boolean equals(Object that) {
32237
      if (that == null)
32238
        return false;
32239
      if (that instanceof markMessagesAsSent_result)
32240
        return this.equals((markMessagesAsSent_result)that);
32241
      return false;
32242
    }
32243
 
32244
    public boolean equals(markMessagesAsSent_result that) {
32245
      if (that == null)
32246
        return false;
32247
 
32248
      boolean this_present_success = true;
32249
      boolean that_present_success = true;
32250
      if (this_present_success || that_present_success) {
32251
        if (!(this_present_success && that_present_success))
32252
          return false;
32253
        if (this.success != that.success)
32254
          return false;
32255
      }
32256
 
32257
      return true;
32258
    }
32259
 
32260
    @Override
32261
    public int hashCode() {
32262
      return 0;
32263
    }
32264
 
32265
    public int compareTo(markMessagesAsSent_result other) {
32266
      if (!getClass().equals(other.getClass())) {
32267
        return getClass().getName().compareTo(other.getClass().getName());
32268
      }
32269
 
32270
      int lastComparison = 0;
32271
      markMessagesAsSent_result typedOther = (markMessagesAsSent_result)other;
32272
 
32273
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32274
      if (lastComparison != 0) {
32275
        return lastComparison;
32276
      }
32277
      if (isSetSuccess()) {
32278
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32279
        if (lastComparison != 0) {
32280
          return lastComparison;
32281
        }
32282
      }
32283
      return 0;
32284
    }
32285
 
32286
    public _Fields fieldForId(int fieldId) {
32287
      return _Fields.findByThriftId(fieldId);
32288
    }
32289
 
32290
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32291
      org.apache.thrift.protocol.TField field;
32292
      iprot.readStructBegin();
32293
      while (true)
32294
      {
32295
        field = iprot.readFieldBegin();
32296
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32297
          break;
32298
        }
32299
        switch (field.id) {
32300
          case 0: // SUCCESS
32301
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32302
              this.success = iprot.readBool();
32303
              setSuccessIsSet(true);
32304
            } else { 
32305
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32306
            }
32307
            break;
32308
          default:
32309
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32310
        }
32311
        iprot.readFieldEnd();
32312
      }
32313
      iprot.readStructEnd();
32314
      validate();
32315
    }
32316
 
32317
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32318
      oprot.writeStructBegin(STRUCT_DESC);
32319
 
32320
      if (this.isSetSuccess()) {
32321
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32322
        oprot.writeBool(this.success);
32323
        oprot.writeFieldEnd();
32324
      }
32325
      oprot.writeFieldStop();
32326
      oprot.writeStructEnd();
32327
    }
32328
 
32329
    @Override
32330
    public String toString() {
32331
      StringBuilder sb = new StringBuilder("markMessagesAsSent_result(");
32332
      boolean first = true;
32333
 
32334
      sb.append("success:");
32335
      sb.append(this.success);
32336
      first = false;
32337
      sb.append(")");
32338
      return sb.toString();
32339
    }
32340
 
32341
    public void validate() throws org.apache.thrift.TException {
32342
      // check for required fields
32343
    }
32344
 
32345
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32346
      try {
32347
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32348
      } catch (org.apache.thrift.TException te) {
32349
        throw new java.io.IOException(te);
32350
      }
32351
    }
32352
 
32353
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32354
      try {
32355
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32356
      } catch (org.apache.thrift.TException te) {
32357
        throw new java.io.IOException(te);
32358
      }
32359
    }
32360
 
32361
  }
32362
 
32363
  public static class markMessagesAsRetry_args implements org.apache.thrift.TBase<markMessagesAsRetry_args, markMessagesAsRetry_args._Fields>, java.io.Serializable, Cloneable   {
32364
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsRetry_args");
32365
 
32366
    private static final org.apache.thrift.protocol.TField USER_SMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("userSmsList", org.apache.thrift.protocol.TType.LIST, (short)-1);
32367
 
32368
    private List<UserSms> userSmsList; // required
32369
 
32370
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32371
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32372
      USER_SMS_LIST((short)-1, "userSmsList");
32373
 
32374
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32375
 
32376
      static {
32377
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32378
          byName.put(field.getFieldName(), field);
32379
        }
32380
      }
32381
 
32382
      /**
32383
       * Find the _Fields constant that matches fieldId, or null if its not found.
32384
       */
32385
      public static _Fields findByThriftId(int fieldId) {
32386
        switch(fieldId) {
32387
          case -1: // USER_SMS_LIST
32388
            return USER_SMS_LIST;
32389
          default:
32390
            return null;
32391
        }
32392
      }
32393
 
32394
      /**
32395
       * Find the _Fields constant that matches fieldId, throwing an exception
32396
       * if it is not found.
32397
       */
32398
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32399
        _Fields fields = findByThriftId(fieldId);
32400
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32401
        return fields;
32402
      }
32403
 
32404
      /**
32405
       * Find the _Fields constant that matches name, or null if its not found.
32406
       */
32407
      public static _Fields findByName(String name) {
32408
        return byName.get(name);
32409
      }
32410
 
32411
      private final short _thriftId;
32412
      private final String _fieldName;
32413
 
32414
      _Fields(short thriftId, String fieldName) {
32415
        _thriftId = thriftId;
32416
        _fieldName = fieldName;
32417
      }
32418
 
32419
      public short getThriftFieldId() {
32420
        return _thriftId;
32421
      }
32422
 
32423
      public String getFieldName() {
32424
        return _fieldName;
32425
      }
32426
    }
32427
 
32428
    // isset id assignments
32429
 
32430
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32431
    static {
32432
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32433
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32434
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32435
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
32436
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32437
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsRetry_args.class, metaDataMap);
32438
    }
32439
 
32440
    public markMessagesAsRetry_args() {
32441
    }
32442
 
32443
    public markMessagesAsRetry_args(
32444
      List<UserSms> userSmsList)
32445
    {
32446
      this();
32447
      this.userSmsList = userSmsList;
32448
    }
32449
 
32450
    /**
32451
     * Performs a deep copy on <i>other</i>.
32452
     */
32453
    public markMessagesAsRetry_args(markMessagesAsRetry_args other) {
32454
      if (other.isSetUserSmsList()) {
32455
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
32456
        for (UserSms other_element : other.userSmsList) {
32457
          __this__userSmsList.add(new UserSms(other_element));
32458
        }
32459
        this.userSmsList = __this__userSmsList;
32460
      }
32461
    }
32462
 
32463
    public markMessagesAsRetry_args deepCopy() {
32464
      return new markMessagesAsRetry_args(this);
32465
    }
32466
 
32467
    @Override
32468
    public void clear() {
32469
      this.userSmsList = null;
32470
    }
32471
 
32472
    public int getUserSmsListSize() {
32473
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
32474
    }
32475
 
32476
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
32477
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
32478
    }
32479
 
32480
    public void addToUserSmsList(UserSms elem) {
32481
      if (this.userSmsList == null) {
32482
        this.userSmsList = new ArrayList<UserSms>();
32483
      }
32484
      this.userSmsList.add(elem);
32485
    }
32486
 
32487
    public List<UserSms> getUserSmsList() {
32488
      return this.userSmsList;
32489
    }
32490
 
32491
    public void setUserSmsList(List<UserSms> userSmsList) {
32492
      this.userSmsList = userSmsList;
32493
    }
32494
 
32495
    public void unsetUserSmsList() {
32496
      this.userSmsList = null;
32497
    }
32498
 
32499
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
32500
    public boolean isSetUserSmsList() {
32501
      return this.userSmsList != null;
32502
    }
32503
 
32504
    public void setUserSmsListIsSet(boolean value) {
32505
      if (!value) {
32506
        this.userSmsList = null;
32507
      }
32508
    }
32509
 
32510
    public void setFieldValue(_Fields field, Object value) {
32511
      switch (field) {
32512
      case USER_SMS_LIST:
32513
        if (value == null) {
32514
          unsetUserSmsList();
32515
        } else {
32516
          setUserSmsList((List<UserSms>)value);
32517
        }
32518
        break;
32519
 
32520
      }
32521
    }
32522
 
32523
    public Object getFieldValue(_Fields field) {
32524
      switch (field) {
32525
      case USER_SMS_LIST:
32526
        return getUserSmsList();
32527
 
32528
      }
32529
      throw new IllegalStateException();
32530
    }
32531
 
32532
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32533
    public boolean isSet(_Fields field) {
32534
      if (field == null) {
32535
        throw new IllegalArgumentException();
32536
      }
32537
 
32538
      switch (field) {
32539
      case USER_SMS_LIST:
32540
        return isSetUserSmsList();
32541
      }
32542
      throw new IllegalStateException();
32543
    }
32544
 
32545
    @Override
32546
    public boolean equals(Object that) {
32547
      if (that == null)
32548
        return false;
32549
      if (that instanceof markMessagesAsRetry_args)
32550
        return this.equals((markMessagesAsRetry_args)that);
32551
      return false;
32552
    }
32553
 
32554
    public boolean equals(markMessagesAsRetry_args that) {
32555
      if (that == null)
32556
        return false;
32557
 
32558
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
32559
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
32560
      if (this_present_userSmsList || that_present_userSmsList) {
32561
        if (!(this_present_userSmsList && that_present_userSmsList))
32562
          return false;
32563
        if (!this.userSmsList.equals(that.userSmsList))
32564
          return false;
32565
      }
32566
 
32567
      return true;
32568
    }
32569
 
32570
    @Override
32571
    public int hashCode() {
32572
      return 0;
32573
    }
32574
 
32575
    public int compareTo(markMessagesAsRetry_args other) {
32576
      if (!getClass().equals(other.getClass())) {
32577
        return getClass().getName().compareTo(other.getClass().getName());
32578
      }
32579
 
32580
      int lastComparison = 0;
32581
      markMessagesAsRetry_args typedOther = (markMessagesAsRetry_args)other;
32582
 
32583
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
32584
      if (lastComparison != 0) {
32585
        return lastComparison;
32586
      }
32587
      if (isSetUserSmsList()) {
32588
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
32589
        if (lastComparison != 0) {
32590
          return lastComparison;
32591
        }
32592
      }
32593
      return 0;
32594
    }
32595
 
32596
    public _Fields fieldForId(int fieldId) {
32597
      return _Fields.findByThriftId(fieldId);
32598
    }
32599
 
32600
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32601
      org.apache.thrift.protocol.TField field;
32602
      iprot.readStructBegin();
32603
      while (true)
32604
      {
32605
        field = iprot.readFieldBegin();
32606
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32607
          break;
32608
        }
32609
        switch (field.id) {
32610
          case -1: // USER_SMS_LIST
32611
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32612
              {
32613
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
32614
                this.userSmsList = new ArrayList<UserSms>(_list97.size);
32615
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
32616
                {
32617
                  UserSms _elem99; // required
32618
                  _elem99 = new UserSms();
32619
                  _elem99.read(iprot);
32620
                  this.userSmsList.add(_elem99);
32621
                }
32622
                iprot.readListEnd();
32623
              }
32624
            } else { 
32625
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32626
            }
32627
            break;
32628
          default:
32629
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32630
        }
32631
        iprot.readFieldEnd();
32632
      }
32633
      iprot.readStructEnd();
32634
      validate();
32635
    }
32636
 
32637
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32638
      validate();
32639
 
32640
      oprot.writeStructBegin(STRUCT_DESC);
32641
      if (this.userSmsList != null) {
32642
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
32643
        {
32644
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
32645
          for (UserSms _iter100 : this.userSmsList)
32646
          {
32647
            _iter100.write(oprot);
32648
          }
32649
          oprot.writeListEnd();
32650
        }
32651
        oprot.writeFieldEnd();
32652
      }
32653
      oprot.writeFieldStop();
32654
      oprot.writeStructEnd();
32655
    }
32656
 
32657
    @Override
32658
    public String toString() {
32659
      StringBuilder sb = new StringBuilder("markMessagesAsRetry_args(");
32660
      boolean first = true;
32661
 
32662
      sb.append("userSmsList:");
32663
      if (this.userSmsList == null) {
32664
        sb.append("null");
32665
      } else {
32666
        sb.append(this.userSmsList);
32667
      }
32668
      first = false;
32669
      sb.append(")");
32670
      return sb.toString();
32671
    }
32672
 
32673
    public void validate() throws org.apache.thrift.TException {
32674
      // check for required fields
32675
    }
32676
 
32677
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32678
      try {
32679
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32680
      } catch (org.apache.thrift.TException te) {
32681
        throw new java.io.IOException(te);
32682
      }
32683
    }
32684
 
32685
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32686
      try {
32687
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32688
      } catch (org.apache.thrift.TException te) {
32689
        throw new java.io.IOException(te);
32690
      }
32691
    }
32692
 
32693
  }
32694
 
32695
  public static class markMessagesAsRetry_result implements org.apache.thrift.TBase<markMessagesAsRetry_result, markMessagesAsRetry_result._Fields>, java.io.Serializable, Cloneable   {
32696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsRetry_result");
32697
 
32698
    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);
32699
 
32700
    private boolean success; // required
32701
 
32702
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32703
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32704
      SUCCESS((short)0, "success");
32705
 
32706
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32707
 
32708
      static {
32709
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32710
          byName.put(field.getFieldName(), field);
32711
        }
32712
      }
32713
 
32714
      /**
32715
       * Find the _Fields constant that matches fieldId, or null if its not found.
32716
       */
32717
      public static _Fields findByThriftId(int fieldId) {
32718
        switch(fieldId) {
32719
          case 0: // SUCCESS
32720
            return SUCCESS;
32721
          default:
32722
            return null;
32723
        }
32724
      }
32725
 
32726
      /**
32727
       * Find the _Fields constant that matches fieldId, throwing an exception
32728
       * if it is not found.
32729
       */
32730
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32731
        _Fields fields = findByThriftId(fieldId);
32732
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32733
        return fields;
32734
      }
32735
 
32736
      /**
32737
       * Find the _Fields constant that matches name, or null if its not found.
32738
       */
32739
      public static _Fields findByName(String name) {
32740
        return byName.get(name);
32741
      }
32742
 
32743
      private final short _thriftId;
32744
      private final String _fieldName;
32745
 
32746
      _Fields(short thriftId, String fieldName) {
32747
        _thriftId = thriftId;
32748
        _fieldName = fieldName;
32749
      }
32750
 
32751
      public short getThriftFieldId() {
32752
        return _thriftId;
32753
      }
32754
 
32755
      public String getFieldName() {
32756
        return _fieldName;
32757
      }
32758
    }
32759
 
32760
    // isset id assignments
32761
    private static final int __SUCCESS_ISSET_ID = 0;
32762
    private BitSet __isset_bit_vector = new BitSet(1);
32763
 
32764
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32765
    static {
32766
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32767
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32768
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsRetry_result.class, metaDataMap);
32771
    }
32772
 
32773
    public markMessagesAsRetry_result() {
32774
    }
32775
 
32776
    public markMessagesAsRetry_result(
32777
      boolean success)
32778
    {
32779
      this();
32780
      this.success = success;
32781
      setSuccessIsSet(true);
32782
    }
32783
 
32784
    /**
32785
     * Performs a deep copy on <i>other</i>.
32786
     */
32787
    public markMessagesAsRetry_result(markMessagesAsRetry_result other) {
32788
      __isset_bit_vector.clear();
32789
      __isset_bit_vector.or(other.__isset_bit_vector);
32790
      this.success = other.success;
32791
    }
32792
 
32793
    public markMessagesAsRetry_result deepCopy() {
32794
      return new markMessagesAsRetry_result(this);
32795
    }
32796
 
32797
    @Override
32798
    public void clear() {
32799
      setSuccessIsSet(false);
32800
      this.success = false;
32801
    }
32802
 
32803
    public boolean isSuccess() {
32804
      return this.success;
32805
    }
32806
 
32807
    public void setSuccess(boolean success) {
32808
      this.success = success;
32809
      setSuccessIsSet(true);
32810
    }
32811
 
32812
    public void unsetSuccess() {
32813
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32814
    }
32815
 
32816
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32817
    public boolean isSetSuccess() {
32818
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32819
    }
32820
 
32821
    public void setSuccessIsSet(boolean value) {
32822
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32823
    }
32824
 
32825
    public void setFieldValue(_Fields field, Object value) {
32826
      switch (field) {
32827
      case SUCCESS:
32828
        if (value == null) {
32829
          unsetSuccess();
32830
        } else {
32831
          setSuccess((Boolean)value);
32832
        }
32833
        break;
32834
 
32835
      }
32836
    }
32837
 
32838
    public Object getFieldValue(_Fields field) {
32839
      switch (field) {
32840
      case SUCCESS:
32841
        return Boolean.valueOf(isSuccess());
32842
 
32843
      }
32844
      throw new IllegalStateException();
32845
    }
32846
 
32847
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32848
    public boolean isSet(_Fields field) {
32849
      if (field == null) {
32850
        throw new IllegalArgumentException();
32851
      }
32852
 
32853
      switch (field) {
32854
      case SUCCESS:
32855
        return isSetSuccess();
32856
      }
32857
      throw new IllegalStateException();
32858
    }
32859
 
32860
    @Override
32861
    public boolean equals(Object that) {
32862
      if (that == null)
32863
        return false;
32864
      if (that instanceof markMessagesAsRetry_result)
32865
        return this.equals((markMessagesAsRetry_result)that);
32866
      return false;
32867
    }
32868
 
32869
    public boolean equals(markMessagesAsRetry_result that) {
32870
      if (that == null)
32871
        return false;
32872
 
32873
      boolean this_present_success = true;
32874
      boolean that_present_success = true;
32875
      if (this_present_success || that_present_success) {
32876
        if (!(this_present_success && that_present_success))
32877
          return false;
32878
        if (this.success != that.success)
32879
          return false;
32880
      }
32881
 
32882
      return true;
32883
    }
32884
 
32885
    @Override
32886
    public int hashCode() {
32887
      return 0;
32888
    }
32889
 
32890
    public int compareTo(markMessagesAsRetry_result other) {
32891
      if (!getClass().equals(other.getClass())) {
32892
        return getClass().getName().compareTo(other.getClass().getName());
32893
      }
32894
 
32895
      int lastComparison = 0;
32896
      markMessagesAsRetry_result typedOther = (markMessagesAsRetry_result)other;
32897
 
32898
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32899
      if (lastComparison != 0) {
32900
        return lastComparison;
32901
      }
32902
      if (isSetSuccess()) {
32903
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32904
        if (lastComparison != 0) {
32905
          return lastComparison;
32906
        }
32907
      }
32908
      return 0;
32909
    }
32910
 
32911
    public _Fields fieldForId(int fieldId) {
32912
      return _Fields.findByThriftId(fieldId);
32913
    }
32914
 
32915
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32916
      org.apache.thrift.protocol.TField field;
32917
      iprot.readStructBegin();
32918
      while (true)
32919
      {
32920
        field = iprot.readFieldBegin();
32921
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32922
          break;
32923
        }
32924
        switch (field.id) {
32925
          case 0: // SUCCESS
32926
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32927
              this.success = iprot.readBool();
32928
              setSuccessIsSet(true);
32929
            } else { 
32930
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32931
            }
32932
            break;
32933
          default:
32934
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32935
        }
32936
        iprot.readFieldEnd();
32937
      }
32938
      iprot.readStructEnd();
32939
      validate();
32940
    }
32941
 
32942
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32943
      oprot.writeStructBegin(STRUCT_DESC);
32944
 
32945
      if (this.isSetSuccess()) {
32946
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32947
        oprot.writeBool(this.success);
32948
        oprot.writeFieldEnd();
32949
      }
32950
      oprot.writeFieldStop();
32951
      oprot.writeStructEnd();
32952
    }
32953
 
32954
    @Override
32955
    public String toString() {
32956
      StringBuilder sb = new StringBuilder("markMessagesAsRetry_result(");
32957
      boolean first = true;
32958
 
32959
      sb.append("success:");
32960
      sb.append(this.success);
32961
      first = false;
32962
      sb.append(")");
32963
      return sb.toString();
32964
    }
32965
 
32966
    public void validate() throws org.apache.thrift.TException {
32967
      // check for required fields
32968
    }
32969
 
32970
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32971
      try {
32972
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32973
      } catch (org.apache.thrift.TException te) {
32974
        throw new java.io.IOException(te);
32975
      }
32976
    }
32977
 
32978
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32979
      try {
32980
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32981
      } catch (org.apache.thrift.TException te) {
32982
        throw new java.io.IOException(te);
32983
      }
32984
    }
32985
 
32986
  }
32987
 
12696 amit.gupta 32988
  public static class authoriseDealer_args implements org.apache.thrift.TBase<authoriseDealer_args, authoriseDealer_args._Fields>, java.io.Serializable, Cloneable   {
32989
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authoriseDealer_args");
32990
 
32991
    private static final org.apache.thrift.protocol.TField DEALER_FIELD_DESC = new org.apache.thrift.protocol.TField("dealer", org.apache.thrift.protocol.TType.STRUCT, (short)1);
32992
 
32993
    private DealerAuth dealer; // required
32994
 
32995
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32996
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32997
      DEALER((short)1, "dealer");
32998
 
32999
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33000
 
33001
      static {
33002
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33003
          byName.put(field.getFieldName(), field);
33004
        }
33005
      }
33006
 
33007
      /**
33008
       * Find the _Fields constant that matches fieldId, or null if its not found.
33009
       */
33010
      public static _Fields findByThriftId(int fieldId) {
33011
        switch(fieldId) {
33012
          case 1: // DEALER
33013
            return DEALER;
33014
          default:
33015
            return null;
33016
        }
33017
      }
33018
 
33019
      /**
33020
       * Find the _Fields constant that matches fieldId, throwing an exception
33021
       * if it is not found.
33022
       */
33023
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33024
        _Fields fields = findByThriftId(fieldId);
33025
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33026
        return fields;
33027
      }
33028
 
33029
      /**
33030
       * Find the _Fields constant that matches name, or null if its not found.
33031
       */
33032
      public static _Fields findByName(String name) {
33033
        return byName.get(name);
33034
      }
33035
 
33036
      private final short _thriftId;
33037
      private final String _fieldName;
33038
 
33039
      _Fields(short thriftId, String fieldName) {
33040
        _thriftId = thriftId;
33041
        _fieldName = fieldName;
33042
      }
33043
 
33044
      public short getThriftFieldId() {
33045
        return _thriftId;
33046
      }
33047
 
33048
      public String getFieldName() {
33049
        return _fieldName;
33050
      }
33051
    }
33052
 
33053
    // isset id assignments
33054
 
33055
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33056
    static {
33057
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33058
      tmpMap.put(_Fields.DEALER, new org.apache.thrift.meta_data.FieldMetaData("dealer", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33059
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DealerAuth.class)));
33060
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33061
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authoriseDealer_args.class, metaDataMap);
33062
    }
33063
 
33064
    public authoriseDealer_args() {
33065
    }
33066
 
33067
    public authoriseDealer_args(
33068
      DealerAuth dealer)
33069
    {
33070
      this();
33071
      this.dealer = dealer;
33072
    }
33073
 
33074
    /**
33075
     * Performs a deep copy on <i>other</i>.
33076
     */
33077
    public authoriseDealer_args(authoriseDealer_args other) {
33078
      if (other.isSetDealer()) {
33079
        this.dealer = new DealerAuth(other.dealer);
33080
      }
33081
    }
33082
 
33083
    public authoriseDealer_args deepCopy() {
33084
      return new authoriseDealer_args(this);
33085
    }
33086
 
33087
    @Override
33088
    public void clear() {
33089
      this.dealer = null;
33090
    }
33091
 
33092
    public DealerAuth getDealer() {
33093
      return this.dealer;
33094
    }
33095
 
33096
    public void setDealer(DealerAuth dealer) {
33097
      this.dealer = dealer;
33098
    }
33099
 
33100
    public void unsetDealer() {
33101
      this.dealer = null;
33102
    }
33103
 
33104
    /** Returns true if field dealer is set (has been assigned a value) and false otherwise */
33105
    public boolean isSetDealer() {
33106
      return this.dealer != null;
33107
    }
33108
 
33109
    public void setDealerIsSet(boolean value) {
33110
      if (!value) {
33111
        this.dealer = null;
33112
      }
33113
    }
33114
 
33115
    public void setFieldValue(_Fields field, Object value) {
33116
      switch (field) {
33117
      case DEALER:
33118
        if (value == null) {
33119
          unsetDealer();
33120
        } else {
33121
          setDealer((DealerAuth)value);
33122
        }
33123
        break;
33124
 
33125
      }
33126
    }
33127
 
33128
    public Object getFieldValue(_Fields field) {
33129
      switch (field) {
33130
      case DEALER:
33131
        return getDealer();
33132
 
33133
      }
33134
      throw new IllegalStateException();
33135
    }
33136
 
33137
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33138
    public boolean isSet(_Fields field) {
33139
      if (field == null) {
33140
        throw new IllegalArgumentException();
33141
      }
33142
 
33143
      switch (field) {
33144
      case DEALER:
33145
        return isSetDealer();
33146
      }
33147
      throw new IllegalStateException();
33148
    }
33149
 
33150
    @Override
33151
    public boolean equals(Object that) {
33152
      if (that == null)
33153
        return false;
33154
      if (that instanceof authoriseDealer_args)
33155
        return this.equals((authoriseDealer_args)that);
33156
      return false;
33157
    }
33158
 
33159
    public boolean equals(authoriseDealer_args that) {
33160
      if (that == null)
33161
        return false;
33162
 
33163
      boolean this_present_dealer = true && this.isSetDealer();
33164
      boolean that_present_dealer = true && that.isSetDealer();
33165
      if (this_present_dealer || that_present_dealer) {
33166
        if (!(this_present_dealer && that_present_dealer))
33167
          return false;
33168
        if (!this.dealer.equals(that.dealer))
33169
          return false;
33170
      }
33171
 
33172
      return true;
33173
    }
33174
 
33175
    @Override
33176
    public int hashCode() {
33177
      return 0;
33178
    }
33179
 
33180
    public int compareTo(authoriseDealer_args other) {
33181
      if (!getClass().equals(other.getClass())) {
33182
        return getClass().getName().compareTo(other.getClass().getName());
33183
      }
33184
 
33185
      int lastComparison = 0;
33186
      authoriseDealer_args typedOther = (authoriseDealer_args)other;
33187
 
33188
      lastComparison = Boolean.valueOf(isSetDealer()).compareTo(typedOther.isSetDealer());
33189
      if (lastComparison != 0) {
33190
        return lastComparison;
33191
      }
33192
      if (isSetDealer()) {
33193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dealer, typedOther.dealer);
33194
        if (lastComparison != 0) {
33195
          return lastComparison;
33196
        }
33197
      }
33198
      return 0;
33199
    }
33200
 
33201
    public _Fields fieldForId(int fieldId) {
33202
      return _Fields.findByThriftId(fieldId);
33203
    }
33204
 
33205
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33206
      org.apache.thrift.protocol.TField field;
33207
      iprot.readStructBegin();
33208
      while (true)
33209
      {
33210
        field = iprot.readFieldBegin();
33211
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33212
          break;
33213
        }
33214
        switch (field.id) {
33215
          case 1: // DEALER
33216
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33217
              this.dealer = new DealerAuth();
33218
              this.dealer.read(iprot);
33219
            } else { 
33220
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33221
            }
33222
            break;
33223
          default:
33224
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33225
        }
33226
        iprot.readFieldEnd();
33227
      }
33228
      iprot.readStructEnd();
33229
      validate();
33230
    }
33231
 
33232
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33233
      validate();
33234
 
33235
      oprot.writeStructBegin(STRUCT_DESC);
33236
      if (this.dealer != null) {
33237
        oprot.writeFieldBegin(DEALER_FIELD_DESC);
33238
        this.dealer.write(oprot);
33239
        oprot.writeFieldEnd();
33240
      }
33241
      oprot.writeFieldStop();
33242
      oprot.writeStructEnd();
33243
    }
33244
 
33245
    @Override
33246
    public String toString() {
33247
      StringBuilder sb = new StringBuilder("authoriseDealer_args(");
33248
      boolean first = true;
33249
 
33250
      sb.append("dealer:");
33251
      if (this.dealer == null) {
33252
        sb.append("null");
33253
      } else {
33254
        sb.append(this.dealer);
33255
      }
33256
      first = false;
33257
      sb.append(")");
33258
      return sb.toString();
33259
    }
33260
 
33261
    public void validate() throws org.apache.thrift.TException {
33262
      // check for required fields
33263
    }
33264
 
33265
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33266
      try {
33267
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33268
      } catch (org.apache.thrift.TException te) {
33269
        throw new java.io.IOException(te);
33270
      }
33271
    }
33272
 
33273
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33274
      try {
33275
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33276
      } catch (org.apache.thrift.TException te) {
33277
        throw new java.io.IOException(te);
33278
      }
33279
    }
33280
 
33281
  }
33282
 
33283
  public static class authoriseDealer_result implements org.apache.thrift.TBase<authoriseDealer_result, authoriseDealer_result._Fields>, java.io.Serializable, Cloneable   {
33284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authoriseDealer_result");
33285
 
33286
    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);
33287
 
33288
    private DealerAuth success; // required
33289
 
33290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
33291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
33292
      SUCCESS((short)0, "success");
33293
 
33294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
33295
 
33296
      static {
33297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
33298
          byName.put(field.getFieldName(), field);
33299
        }
33300
      }
33301
 
33302
      /**
33303
       * Find the _Fields constant that matches fieldId, or null if its not found.
33304
       */
33305
      public static _Fields findByThriftId(int fieldId) {
33306
        switch(fieldId) {
33307
          case 0: // SUCCESS
33308
            return SUCCESS;
33309
          default:
33310
            return null;
33311
        }
33312
      }
33313
 
33314
      /**
33315
       * Find the _Fields constant that matches fieldId, throwing an exception
33316
       * if it is not found.
33317
       */
33318
      public static _Fields findByThriftIdOrThrow(int fieldId) {
33319
        _Fields fields = findByThriftId(fieldId);
33320
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
33321
        return fields;
33322
      }
33323
 
33324
      /**
33325
       * Find the _Fields constant that matches name, or null if its not found.
33326
       */
33327
      public static _Fields findByName(String name) {
33328
        return byName.get(name);
33329
      }
33330
 
33331
      private final short _thriftId;
33332
      private final String _fieldName;
33333
 
33334
      _Fields(short thriftId, String fieldName) {
33335
        _thriftId = thriftId;
33336
        _fieldName = fieldName;
33337
      }
33338
 
33339
      public short getThriftFieldId() {
33340
        return _thriftId;
33341
      }
33342
 
33343
      public String getFieldName() {
33344
        return _fieldName;
33345
      }
33346
    }
33347
 
33348
    // isset id assignments
33349
 
33350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
33351
    static {
33352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
33353
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
33354
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DealerAuth.class)));
33355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
33356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authoriseDealer_result.class, metaDataMap);
33357
    }
33358
 
33359
    public authoriseDealer_result() {
33360
    }
33361
 
33362
    public authoriseDealer_result(
33363
      DealerAuth success)
33364
    {
33365
      this();
33366
      this.success = success;
33367
    }
33368
 
33369
    /**
33370
     * Performs a deep copy on <i>other</i>.
33371
     */
33372
    public authoriseDealer_result(authoriseDealer_result other) {
33373
      if (other.isSetSuccess()) {
33374
        this.success = new DealerAuth(other.success);
33375
      }
33376
    }
33377
 
33378
    public authoriseDealer_result deepCopy() {
33379
      return new authoriseDealer_result(this);
33380
    }
33381
 
33382
    @Override
33383
    public void clear() {
33384
      this.success = null;
33385
    }
33386
 
33387
    public DealerAuth getSuccess() {
33388
      return this.success;
33389
    }
33390
 
33391
    public void setSuccess(DealerAuth success) {
33392
      this.success = success;
33393
    }
33394
 
33395
    public void unsetSuccess() {
33396
      this.success = null;
33397
    }
33398
 
33399
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
33400
    public boolean isSetSuccess() {
33401
      return this.success != null;
33402
    }
33403
 
33404
    public void setSuccessIsSet(boolean value) {
33405
      if (!value) {
33406
        this.success = null;
33407
      }
33408
    }
33409
 
33410
    public void setFieldValue(_Fields field, Object value) {
33411
      switch (field) {
33412
      case SUCCESS:
33413
        if (value == null) {
33414
          unsetSuccess();
33415
        } else {
33416
          setSuccess((DealerAuth)value);
33417
        }
33418
        break;
33419
 
33420
      }
33421
    }
33422
 
33423
    public Object getFieldValue(_Fields field) {
33424
      switch (field) {
33425
      case SUCCESS:
33426
        return getSuccess();
33427
 
33428
      }
33429
      throw new IllegalStateException();
33430
    }
33431
 
33432
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
33433
    public boolean isSet(_Fields field) {
33434
      if (field == null) {
33435
        throw new IllegalArgumentException();
33436
      }
33437
 
33438
      switch (field) {
33439
      case SUCCESS:
33440
        return isSetSuccess();
33441
      }
33442
      throw new IllegalStateException();
33443
    }
33444
 
33445
    @Override
33446
    public boolean equals(Object that) {
33447
      if (that == null)
33448
        return false;
33449
      if (that instanceof authoriseDealer_result)
33450
        return this.equals((authoriseDealer_result)that);
33451
      return false;
33452
    }
33453
 
33454
    public boolean equals(authoriseDealer_result that) {
33455
      if (that == null)
33456
        return false;
33457
 
33458
      boolean this_present_success = true && this.isSetSuccess();
33459
      boolean that_present_success = true && that.isSetSuccess();
33460
      if (this_present_success || that_present_success) {
33461
        if (!(this_present_success && that_present_success))
33462
          return false;
33463
        if (!this.success.equals(that.success))
33464
          return false;
33465
      }
33466
 
33467
      return true;
33468
    }
33469
 
33470
    @Override
33471
    public int hashCode() {
33472
      return 0;
33473
    }
33474
 
33475
    public int compareTo(authoriseDealer_result other) {
33476
      if (!getClass().equals(other.getClass())) {
33477
        return getClass().getName().compareTo(other.getClass().getName());
33478
      }
33479
 
33480
      int lastComparison = 0;
33481
      authoriseDealer_result typedOther = (authoriseDealer_result)other;
33482
 
33483
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
33484
      if (lastComparison != 0) {
33485
        return lastComparison;
33486
      }
33487
      if (isSetSuccess()) {
33488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
33489
        if (lastComparison != 0) {
33490
          return lastComparison;
33491
        }
33492
      }
33493
      return 0;
33494
    }
33495
 
33496
    public _Fields fieldForId(int fieldId) {
33497
      return _Fields.findByThriftId(fieldId);
33498
    }
33499
 
33500
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
33501
      org.apache.thrift.protocol.TField field;
33502
      iprot.readStructBegin();
33503
      while (true)
33504
      {
33505
        field = iprot.readFieldBegin();
33506
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
33507
          break;
33508
        }
33509
        switch (field.id) {
33510
          case 0: // SUCCESS
33511
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
33512
              this.success = new DealerAuth();
33513
              this.success.read(iprot);
33514
            } else { 
33515
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33516
            }
33517
            break;
33518
          default:
33519
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
33520
        }
33521
        iprot.readFieldEnd();
33522
      }
33523
      iprot.readStructEnd();
33524
      validate();
33525
    }
33526
 
33527
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
33528
      oprot.writeStructBegin(STRUCT_DESC);
33529
 
33530
      if (this.isSetSuccess()) {
33531
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
33532
        this.success.write(oprot);
33533
        oprot.writeFieldEnd();
33534
      }
33535
      oprot.writeFieldStop();
33536
      oprot.writeStructEnd();
33537
    }
33538
 
33539
    @Override
33540
    public String toString() {
33541
      StringBuilder sb = new StringBuilder("authoriseDealer_result(");
33542
      boolean first = true;
33543
 
33544
      sb.append("success:");
33545
      if (this.success == null) {
33546
        sb.append("null");
33547
      } else {
33548
        sb.append(this.success);
33549
      }
33550
      first = false;
33551
      sb.append(")");
33552
      return sb.toString();
33553
    }
33554
 
33555
    public void validate() throws org.apache.thrift.TException {
33556
      // check for required fields
33557
    }
33558
 
33559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
33560
      try {
33561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
33562
      } catch (org.apache.thrift.TException te) {
33563
        throw new java.io.IOException(te);
33564
      }
33565
    }
33566
 
33567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
33568
      try {
33569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
33570
      } catch (org.apache.thrift.TException te) {
33571
        throw new java.io.IOException(te);
33572
      }
33573
    }
33574
 
33575
  }
33576
 
352 ashish 33577
}