Subversion Repositories SmartDukaan

Rev

Rev 12256 | Rev 12696 | 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
 
352 ashish 191
  }
192
 
3430 rajveer 193
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
194
 
8020 rajveer 195
    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 196
 
197
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
198
 
199
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
200
 
201
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
202
 
203
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
204
 
205
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
206
 
207
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
208
 
209
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
210
 
211
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
212
 
213
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
214
 
215
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
216
 
217
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
218
 
219
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
220
 
221
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
222
 
223
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
224
 
225
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
226
 
227
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
228
 
6788 rajveer 229
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
3430 rajveer 230
 
4544 varun.gupt 231
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.shareEntities_call> resultHandler) throws org.apache.thrift.TException;
232
 
4693 mandeep.dh 233
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
234
 
235
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.validateLogIn_call> resultHandler) throws org.apache.thrift.TException;
236
 
237
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
238
 
239
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
240
 
241
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
242
 
4806 varun.gupt 243
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveQuickLink_call> resultHandler) throws org.apache.thrift.TException;
244
 
245
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getQuickLinks_call> resultHandler) throws org.apache.thrift.TException;
246
 
4996 varun.gupt 247
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateQuickLink_call> resultHandler) throws org.apache.thrift.TException;
248
 
5055 varun.gupt 249
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException;
250
 
6322 amar.kumar 251
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException;
252
 
7221 kshitij.so 253
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException;
254
 
7410 amar.kumar 255
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException;
256
 
12691 manish.sha 257
    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;
258
 
259
    public void getSmsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSmsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
260
 
261
    public void addUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
262
 
263
    public void updateUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
264
 
265
    public void getUserSmsInfo(long userId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
266
 
267
    public void getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllUsersSmsInfo_call> resultHandler) throws org.apache.thrift.TException;
268
 
269
    public void listSmsToGetDeliveryInfo(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.listSmsToGetDeliveryInfo_call> resultHandler) throws org.apache.thrift.TException;
270
 
271
    public void markMessagesAsSentToOperator(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSentToOperator_call> resultHandler) throws org.apache.thrift.TException;
272
 
273
    public void markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSubmittedToSmsc_call> resultHandler) throws org.apache.thrift.TException;
274
 
275
    public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException;
276
 
277
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException;
278
 
3430 rajveer 279
  }
280
 
3374 rajveer 281
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 282
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
283
      public Factory() {}
284
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
285
        return new Client(prot);
286
      }
287
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
288
        return new Client(iprot, oprot);
289
      }
290
    }
291
 
292
    public Client(org.apache.thrift.protocol.TProtocol prot)
352 ashish 293
    {
3430 rajveer 294
      super(prot, prot);
352 ashish 295
    }
296
 
3430 rajveer 297
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 298
      super(iprot, oprot);
352 ashish 299
    }
300
 
8020 rajveer 301
    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 302
    {
8020 rajveer 303
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId);
3206 mandeep.dh 304
      return recv_saveUserEmailForSending();
1395 varun.gupt 305
    }
306
 
8020 rajveer 307
    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 308
    {
309
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
3430 rajveer 310
      args.setEmailTo(emailTo);
311
      args.setEmailFrom(emailFrom);
312
      args.setSubject(subject);
313
      args.setBody(body);
314
      args.setSource(source);
315
      args.setEmailType(emailType);
5864 rajveer 316
      args.setCc(cc);
317
      args.setBcc(bcc);
8020 rajveer 318
      args.setSourceId(sourceId);
3430 rajveer 319
      sendBase("saveUserEmailForSending", args);
1395 varun.gupt 320
    }
321
 
3430 rajveer 322
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
1395 varun.gupt 323
    {
324
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
3430 rajveer 325
      receiveBase(result, "saveUserEmailForSending");
3206 mandeep.dh 326
      if (result.isSetSuccess()) {
327
        return result.success;
328
      }
1395 varun.gupt 329
      if (result.se != null) {
330
        throw result.se;
331
      }
3430 rajveer 332
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
1395 varun.gupt 333
    }
334
 
3430 rajveer 335
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 336
    {
3086 rajveer 337
      send_getEmailsToBeSent();
1422 varun.gupt 338
      return recv_getEmailsToBeSent();
339
    }
340
 
3430 rajveer 341
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
1422 varun.gupt 342
    {
343
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
3430 rajveer 344
      sendBase("getEmailsToBeSent", args);
1422 varun.gupt 345
    }
346
 
3430 rajveer 347
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 348
    {
349
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
3430 rajveer 350
      receiveBase(result, "getEmailsToBeSent");
1422 varun.gupt 351
      if (result.isSetSuccess()) {
352
        return result.success;
353
      }
354
      if (result.se != null) {
355
        throw result.se;
356
      }
3430 rajveer 357
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
1422 varun.gupt 358
    }
359
 
3430 rajveer 360
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 361
    {
362
      send_markEmailAsSent(emailId);
363
      recv_markEmailAsSent();
364
    }
365
 
3430 rajveer 366
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
1422 varun.gupt 367
    {
368
      markEmailAsSent_args args = new markEmailAsSent_args();
3430 rajveer 369
      args.setEmailId(emailId);
370
      sendBase("markEmailAsSent", args);
1422 varun.gupt 371
    }
372
 
3430 rajveer 373
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
1422 varun.gupt 374
    {
375
      markEmailAsSent_result result = new markEmailAsSent_result();
3430 rajveer 376
      receiveBase(result, "markEmailAsSent");
1422 varun.gupt 377
      if (result.se != null) {
378
        throw result.se;
379
      }
380
      return;
381
    }
382
 
3430 rajveer 383
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
352 ashish 384
    {
385
      send_sendMail(mail);
386
      recv_sendMail();
387
    }
388
 
3430 rajveer 389
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
352 ashish 390
    {
391
      sendMail_args args = new sendMail_args();
3430 rajveer 392
      args.setMail(mail);
393
      sendBase("sendMail", args);
352 ashish 394
    }
395
 
3430 rajveer 396
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
352 ashish 397
    {
398
      sendMail_result result = new sendMail_result();
3430 rajveer 399
      receiveBase(result, "sendMail");
352 ashish 400
      if (result.se != null) {
401
        throw result.se;
402
      }
403
      return;
404
    }
405
 
3430 rajveer 406
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 407
    {
408
      send_sendText(message);
409
      recv_sendText();
410
    }
411
 
3430 rajveer 412
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
352 ashish 413
    {
414
      sendText_args args = new sendText_args();
3430 rajveer 415
      args.setMessage(message);
416
      sendBase("sendText", args);
352 ashish 417
    }
418
 
3430 rajveer 419
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
352 ashish 420
    {
421
      sendText_result result = new sendText_result();
3430 rajveer 422
      receiveBase(result, "sendText");
352 ashish 423
      if (result.se != null) {
424
        throw result.se;
425
      }
426
      return;
427
    }
428
 
3430 rajveer 429
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 430
    {
431
      send_addMessage(message);
432
      recv_addMessage();
433
    }
434
 
3430 rajveer 435
    public void send_addMessage(Message message) throws org.apache.thrift.TException
352 ashish 436
    {
437
      addMessage_args args = new addMessage_args();
3430 rajveer 438
      args.setMessage(message);
439
      sendBase("addMessage", args);
352 ashish 440
    }
441
 
3430 rajveer 442
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 443
    {
444
      addMessage_result result = new addMessage_result();
3430 rajveer 445
      receiveBase(result, "addMessage");
352 ashish 446
      if (result.se != null) {
447
        throw result.se;
448
      }
449
      return;
450
    }
451
 
3430 rajveer 452
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
352 ashish 453
    {
454
      send_updateMessage(id, message);
455
      recv_updateMessage();
456
    }
457
 
3430 rajveer 458
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
352 ashish 459
    {
460
      updateMessage_args args = new updateMessage_args();
3430 rajveer 461
      args.setId(id);
462
      args.setMessage(message);
463
      sendBase("updateMessage", args);
352 ashish 464
    }
465
 
3430 rajveer 466
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 467
    {
468
      updateMessage_result result = new updateMessage_result();
3430 rajveer 469
      receiveBase(result, "updateMessage");
352 ashish 470
      if (result.se != null) {
471
        throw result.se;
472
      }
473
      return;
474
    }
475
 
3430 rajveer 476
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
352 ashish 477
    {
478
      send_getMessage(id);
479
      return recv_getMessage();
480
    }
481
 
3430 rajveer 482
    public void send_getMessage(long id) throws org.apache.thrift.TException
352 ashish 483
    {
484
      getMessage_args args = new getMessage_args();
3430 rajveer 485
      args.setId(id);
486
      sendBase("getMessage", args);
352 ashish 487
    }
488
 
3430 rajveer 489
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 490
    {
491
      getMessage_result result = new getMessage_result();
3430 rajveer 492
      receiveBase(result, "getMessage");
352 ashish 493
      if (result.isSetSuccess()) {
494
        return result.success;
495
      }
496
      if (result.se != null) {
497
        throw result.se;
498
      }
3430 rajveer 499
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
352 ashish 500
    }
501
 
3430 rajveer 502
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
352 ashish 503
    {
504
      send_getSubstitutedMessage(id, params);
505
      return recv_getSubstitutedMessage();
506
    }
507
 
3430 rajveer 508
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
352 ashish 509
    {
510
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
3430 rajveer 511
      args.setId(id);
512
      args.setParams(params);
513
      sendBase("getSubstitutedMessage", args);
352 ashish 514
    }
515
 
3430 rajveer 516
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
352 ashish 517
    {
518
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3430 rajveer 519
      receiveBase(result, "getSubstitutedMessage");
352 ashish 520
      if (result.isSetSuccess()) {
521
        return result.success;
522
      }
523
      if (result.se != null) {
524
        throw result.se;
525
      }
3430 rajveer 526
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
352 ashish 527
    }
528
 
3430 rajveer 529
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 530
    {
531
      send_addUser(username, password, warehouseId);
532
      return recv_addUser();
533
    }
534
 
3430 rajveer 535
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
495 rajveer 536
    {
537
      addUser_args args = new addUser_args();
3430 rajveer 538
      args.setUsername(username);
539
      args.setPassword(password);
540
      args.setWarehouseId(warehouseId);
541
      sendBase("addUser", args);
495 rajveer 542
    }
543
 
3430 rajveer 544
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 545
    {
546
      addUser_result result = new addUser_result();
3430 rajveer 547
      receiveBase(result, "addUser");
495 rajveer 548
      if (result.isSetSuccess()) {
549
        return result.success;
550
      }
551
      if (result.se != null) {
552
        throw result.se;
553
      }
3430 rajveer 554
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
495 rajveer 555
    }
556
 
3430 rajveer 557
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 558
    {
559
      send_deleteUser(username);
560
      return recv_deleteUser();
561
    }
562
 
3430 rajveer 563
    public void send_deleteUser(String username) throws org.apache.thrift.TException
495 rajveer 564
    {
565
      deleteUser_args args = new deleteUser_args();
3430 rajveer 566
      args.setUsername(username);
567
      sendBase("deleteUser", args);
495 rajveer 568
    }
569
 
3430 rajveer 570
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 571
    {
572
      deleteUser_result result = new deleteUser_result();
3430 rajveer 573
      receiveBase(result, "deleteUser");
495 rajveer 574
      if (result.isSetSuccess()) {
575
        return result.success;
576
      }
577
      if (result.se != null) {
578
        throw result.se;
579
      }
3430 rajveer 580
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
495 rajveer 581
    }
582
 
3430 rajveer 583
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 584
    {
2443 chandransh 585
      send_authenticateDashboardUser(username, password);
586
      return recv_authenticateDashboardUser();
495 rajveer 587
    }
588
 
3430 rajveer 589
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
495 rajveer 590
    {
2443 chandransh 591
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
3430 rajveer 592
      args.setUsername(username);
593
      args.setPassword(password);
594
      sendBase("authenticateDashboardUser", args);
495 rajveer 595
    }
596
 
3430 rajveer 597
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 598
    {
2443 chandransh 599
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
3430 rajveer 600
      receiveBase(result, "authenticateDashboardUser");
495 rajveer 601
      if (result.isSetSuccess()) {
602
        return result.success;
603
      }
604
      if (result.se != null) {
605
        throw result.se;
606
      }
3430 rajveer 607
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
495 rajveer 608
    }
609
 
3430 rajveer 610
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
495 rajveer 611
    {
612
      send_updatePassword(username, oldPassword, newPassword);
613
      return recv_updatePassword();
614
    }
615
 
3430 rajveer 616
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
495 rajveer 617
    {
618
      updatePassword_args args = new updatePassword_args();
3430 rajveer 619
      args.setUsername(username);
620
      args.setOldPassword(oldPassword);
621
      args.setNewPassword(newPassword);
622
      sendBase("updatePassword", args);
495 rajveer 623
    }
624
 
3430 rajveer 625
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
495 rajveer 626
    {
627
      updatePassword_result result = new updatePassword_result();
3430 rajveer 628
      receiveBase(result, "updatePassword");
495 rajveer 629
      if (result.isSetSuccess()) {
630
        return result.success;
631
      }
632
      if (result.se != null) {
633
        throw result.se;
634
      }
3430 rajveer 635
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
495 rajveer 636
    }
637
 
3430 rajveer 638
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
750 chandransh 639
    {
640
      send_authenticateLogisticsUser(username, password);
641
      return recv_authenticateLogisticsUser();
642
    }
643
 
3430 rajveer 644
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
750 chandransh 645
    {
646
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
3430 rajveer 647
      args.setUsername(username);
648
      args.setPassword(password);
649
      sendBase("authenticateLogisticsUser", args);
750 chandransh 650
    }
651
 
3430 rajveer 652
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
750 chandransh 653
    {
654
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3430 rajveer 655
      receiveBase(result, "authenticateLogisticsUser");
750 chandransh 656
      if (result.isSetSuccess()) {
657
        return result.success;
658
      }
659
      if (result.hse != null) {
660
        throw result.hse;
661
      }
3430 rajveer 662
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
750 chandransh 663
    }
664
 
3430 rajveer 665
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 666
    {
667
      send_authenticateStatisticsUser(username, password);
668
      return recv_authenticateStatisticsUser();
669
    }
670
 
3430 rajveer 671
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
1611 ankur.sing 672
    {
673
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
3430 rajveer 674
      args.setUsername(username);
675
      args.setPassword(password);
676
      sendBase("authenticateStatisticsUser", args);
1611 ankur.sing 677
    }
678
 
3430 rajveer 679
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
1611 ankur.sing 680
    {
681
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3430 rajveer 682
      receiveBase(result, "authenticateStatisticsUser");
1611 ankur.sing 683
      if (result.isSetSuccess()) {
684
        return result.success;
685
      }
686
      if (result.hse != null) {
687
        throw result.hse;
688
      }
3430 rajveer 689
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
1611 ankur.sing 690
    }
691
 
3430 rajveer 692
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 693
    {
694
      send_authenticateReportUser(username, password);
695
      return recv_authenticateReportUser();
696
    }
697
 
3430 rajveer 698
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
1891 ankur.sing 699
    {
700
      authenticateReportUser_args args = new authenticateReportUser_args();
3430 rajveer 701
      args.setUsername(username);
702
      args.setPassword(password);
703
      sendBase("authenticateReportUser", args);
1891 ankur.sing 704
    }
705
 
3430 rajveer 706
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
1891 ankur.sing 707
    {
708
      authenticateReportUser_result result = new authenticateReportUser_result();
3430 rajveer 709
      receiveBase(result, "authenticateReportUser");
1891 ankur.sing 710
      if (result.isSetSuccess()) {
711
        return result.success;
712
      }
713
      if (result.hse != null) {
714
        throw result.hse;
715
      }
3430 rajveer 716
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
1891 ankur.sing 717
    }
718
 
3430 rajveer 719
    public List<Report> getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 720
    {
721
      send_getReports(role);
722
      return recv_getReports();
723
    }
724
 
3430 rajveer 725
    public void send_getReports(long role) throws org.apache.thrift.TException
1891 ankur.sing 726
    {
727
      getReports_args args = new getReports_args();
3430 rajveer 728
      args.setRole(role);
729
      sendBase("getReports", args);
1891 ankur.sing 730
    }
731
 
3430 rajveer 732
    public List<Report> recv_getReports() throws org.apache.thrift.TException
1891 ankur.sing 733
    {
734
      getReports_result result = new getReports_result();
3430 rajveer 735
      receiveBase(result, "getReports");
1891 ankur.sing 736
      if (result.isSetSuccess()) {
737
        return result.success;
738
      }
3430 rajveer 739
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
1891 ankur.sing 740
    }
741
 
6788 rajveer 742
    public CatalogDashboardUser authenticateCatalogUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 743
    {
6788 rajveer 744
      send_authenticateCatalogUser(username, password);
2024 ankur.sing 745
      return recv_authenticateCatalogUser();
746
    }
747
 
6788 rajveer 748
    public void send_authenticateCatalogUser(String username, String password) throws org.apache.thrift.TException
2024 ankur.sing 749
    {
750
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
3430 rajveer 751
      args.setUsername(username);
752
      args.setPassword(password);
753
      sendBase("authenticateCatalogUser", args);
2024 ankur.sing 754
    }
755
 
3430 rajveer 756
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
2024 ankur.sing 757
    {
758
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3430 rajveer 759
      receiveBase(result, "authenticateCatalogUser");
2024 ankur.sing 760
      if (result.isSetSuccess()) {
761
        return result.success;
762
      }
763
      if (result.hse != null) {
764
        throw result.hse;
765
      }
3430 rajveer 766
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
2024 ankur.sing 767
    }
768
 
4544 varun.gupt 769
    public void shareEntities(List<Long> entityIds, String email) throws HelperServiceException, org.apache.thrift.TException
770
    {
771
      send_shareEntities(entityIds, email);
772
      recv_shareEntities();
773
    }
774
 
775
    public void send_shareEntities(List<Long> entityIds, String email) throws org.apache.thrift.TException
776
    {
777
      shareEntities_args args = new shareEntities_args();
778
      args.setEntityIds(entityIds);
779
      args.setEmail(email);
780
      sendBase("shareEntities", args);
781
    }
782
 
783
    public void recv_shareEntities() throws HelperServiceException, org.apache.thrift.TException
784
    {
785
      shareEntities_result result = new shareEntities_result();
786
      receiveBase(result, "shareEntities");
787
      if (result.hse != null) {
788
        throw result.hse;
789
      }
790
      return;
791
    }
792
 
4693 mandeep.dh 793
    public List<Agent> getAgents() throws org.apache.thrift.TException
794
    {
795
      send_getAgents();
796
      return recv_getAgents();
797
    }
798
 
799
    public void send_getAgents() throws org.apache.thrift.TException
800
    {
801
      getAgents_args args = new getAgents_args();
802
      sendBase("getAgents", args);
803
    }
804
 
805
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
806
    {
807
      getAgents_result result = new getAgents_result();
808
      receiveBase(result, "getAgents");
809
      if (result.isSetSuccess()) {
810
        return result.success;
811
      }
812
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
813
    }
814
 
815
    public boolean validateLogIn(String emailId, String password) throws org.apache.thrift.TException
816
    {
817
      send_validateLogIn(emailId, password);
818
      return recv_validateLogIn();
819
    }
820
 
821
    public void send_validateLogIn(String emailId, String password) throws org.apache.thrift.TException
822
    {
823
      validateLogIn_args args = new validateLogIn_args();
824
      args.setEmailId(emailId);
825
      args.setPassword(password);
826
      sendBase("validateLogIn", args);
827
    }
828
 
829
    public boolean recv_validateLogIn() throws org.apache.thrift.TException
830
    {
831
      validateLogIn_result result = new validateLogIn_result();
832
      receiveBase(result, "validateLogIn");
833
      if (result.isSetSuccess()) {
834
        return result.success;
835
      }
836
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "validateLogIn failed: unknown result");
837
    }
838
 
839
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
840
    {
841
      send_updatePasswordForAgent(agentEmailId, password);
842
      recv_updatePasswordForAgent();
843
    }
844
 
845
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
846
    {
847
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
848
      args.setAgentEmailId(agentEmailId);
849
      args.setPassword(password);
850
      sendBase("updatePasswordForAgent", args);
851
    }
852
 
853
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
854
    {
855
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
856
      receiveBase(result, "updatePasswordForAgent");
857
      return;
858
    }
859
 
860
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
861
    {
862
      send_getRoleNamesForAgent(agentEmailId);
863
      return recv_getRoleNamesForAgent();
864
    }
865
 
866
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
867
    {
868
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
869
      args.setAgentEmailId(agentEmailId);
870
      sendBase("getRoleNamesForAgent", args);
871
    }
872
 
873
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
874
    {
875
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
876
      receiveBase(result, "getRoleNamesForAgent");
877
      if (result.isSetSuccess()) {
878
        return result.success;
879
      }
880
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
881
    }
882
 
883
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
884
    {
885
      send_getPermissionsForRoleName(roleName);
886
      return recv_getPermissionsForRoleName();
887
    }
888
 
889
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
890
    {
891
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
892
      args.setRoleName(roleName);
893
      sendBase("getPermissionsForRoleName", args);
894
    }
895
 
896
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
897
    {
898
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
899
      receiveBase(result, "getPermissionsForRoleName");
900
      if (result.isSetSuccess()) {
901
        return result.success;
902
      }
903
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
904
    }
905
 
4806 varun.gupt 906
    public void saveQuickLink(String url, String text) throws HelperServiceException, org.apache.thrift.TException
907
    {
908
      send_saveQuickLink(url, text);
909
      recv_saveQuickLink();
910
    }
911
 
912
    public void send_saveQuickLink(String url, String text) throws org.apache.thrift.TException
913
    {
914
      saveQuickLink_args args = new saveQuickLink_args();
915
      args.setUrl(url);
916
      args.setText(text);
917
      sendBase("saveQuickLink", args);
918
    }
919
 
920
    public void recv_saveQuickLink() throws HelperServiceException, org.apache.thrift.TException
921
    {
922
      saveQuickLink_result result = new saveQuickLink_result();
923
      receiveBase(result, "saveQuickLink");
924
      if (result.hse != null) {
925
        throw result.hse;
926
      }
927
      return;
928
    }
929
 
930
    public List<QuickLink> getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
931
    {
932
      send_getQuickLinks();
933
      return recv_getQuickLinks();
934
    }
935
 
936
    public void send_getQuickLinks() throws org.apache.thrift.TException
937
    {
938
      getQuickLinks_args args = new getQuickLinks_args();
939
      sendBase("getQuickLinks", args);
940
    }
941
 
942
    public List<QuickLink> recv_getQuickLinks() throws HelperServiceException, org.apache.thrift.TException
943
    {
944
      getQuickLinks_result result = new getQuickLinks_result();
945
      receiveBase(result, "getQuickLinks");
946
      if (result.isSetSuccess()) {
947
        return result.success;
948
      }
949
      if (result.hse != null) {
950
        throw result.hse;
951
      }
952
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getQuickLinks failed: unknown result");
953
    }
954
 
4996 varun.gupt 955
    public void updateQuickLink(long id, String url, String text) throws HelperServiceException, org.apache.thrift.TException
956
    {
957
      send_updateQuickLink(id, url, text);
958
      recv_updateQuickLink();
959
    }
960
 
961
    public void send_updateQuickLink(long id, String url, String text) throws org.apache.thrift.TException
962
    {
963
      updateQuickLink_args args = new updateQuickLink_args();
964
      args.setId(id);
965
      args.setUrl(url);
966
      args.setText(text);
967
      sendBase("updateQuickLink", args);
968
    }
969
 
970
    public void recv_updateQuickLink() throws HelperServiceException, org.apache.thrift.TException
971
    {
972
      updateQuickLink_result result = new updateQuickLink_result();
973
      receiveBase(result, "updateQuickLink");
974
      if (result.hse != null) {
975
        throw result.hse;
976
      }
977
      return;
978
    }
979
 
5055 varun.gupt 980
    public List<String> getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws HelperServiceException, org.apache.thrift.TException
981
    {
982
      send_getEmailsForNotificationsSent(startDatetime, endDatetime);
983
      return recv_getEmailsForNotificationsSent();
984
    }
985
 
986
    public void send_getEmailsForNotificationsSent(long startDatetime, long endDatetime) throws org.apache.thrift.TException
987
    {
988
      getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
989
      args.setStartDatetime(startDatetime);
990
      args.setEndDatetime(endDatetime);
991
      sendBase("getEmailsForNotificationsSent", args);
992
    }
993
 
994
    public List<String> recv_getEmailsForNotificationsSent() throws HelperServiceException, org.apache.thrift.TException
995
    {
996
      getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
997
      receiveBase(result, "getEmailsForNotificationsSent");
998
      if (result.isSetSuccess()) {
999
        return result.success;
1000
      }
1001
      if (result.hse != null) {
1002
        throw result.hse;
1003
      }
1004
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsForNotificationsSent failed: unknown result");
1005
    }
1006
 
6322 amar.kumar 1007
    public String getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
1008
    {
1009
      send_getOrderConfirmationMail(orderId);
1010
      return recv_getOrderConfirmationMail();
1011
    }
1012
 
1013
    public void send_getOrderConfirmationMail(long orderId) throws org.apache.thrift.TException
1014
    {
1015
      getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
1016
      args.setOrderId(orderId);
1017
      sendBase("getOrderConfirmationMail", args);
1018
    }
1019
 
1020
    public String recv_getOrderConfirmationMail() throws org.apache.thrift.TException
1021
    {
1022
      getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
1023
      receiveBase(result, "getOrderConfirmationMail");
1024
      if (result.isSetSuccess()) {
1025
        return result.success;
1026
      }
1027
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderConfirmationMail failed: unknown result");
1028
    }
1029
 
7221 kshitij.so 1030
    public String getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
1031
    {
1032
      send_getOrderDeliveryMail(orderId);
1033
      return recv_getOrderDeliveryMail();
1034
    }
1035
 
1036
    public void send_getOrderDeliveryMail(long orderId) throws org.apache.thrift.TException
1037
    {
1038
      getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
1039
      args.setOrderId(orderId);
1040
      sendBase("getOrderDeliveryMail", args);
1041
    }
1042
 
1043
    public String recv_getOrderDeliveryMail() throws org.apache.thrift.TException
1044
    {
1045
      getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
1046
      receiveBase(result, "getOrderDeliveryMail");
1047
      if (result.isSetSuccess()) {
1048
        return result.success;
1049
      }
1050
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOrderDeliveryMail failed: unknown result");
1051
    }
1052
 
7410 amar.kumar 1053
    public List<Long> getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1054
    {
1055
      send_getWarehouseIdsForAgent(agentEmailId);
1056
      return recv_getWarehouseIdsForAgent();
1057
    }
1058
 
1059
    public void send_getWarehouseIdsForAgent(String agentEmailId) throws org.apache.thrift.TException
1060
    {
1061
      getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
1062
      args.setAgentEmailId(agentEmailId);
1063
      sendBase("getWarehouseIdsForAgent", args);
1064
    }
1065
 
1066
    public List<Long> recv_getWarehouseIdsForAgent() throws org.apache.thrift.TException
1067
    {
1068
      getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
1069
      receiveBase(result, "getWarehouseIdsForAgent");
1070
      if (result.isSetSuccess()) {
1071
        return result.success;
1072
      }
1073
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseIdsForAgent failed: unknown result");
1074
    }
1075
 
12691 manish.sha 1076
    public long saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws HelperServiceException, org.apache.thrift.TException
1077
    {
1078
      send_saveUserSmsForSending(userId, mobileNo, text, type);
1079
      return recv_saveUserSmsForSending();
1080
    }
1081
 
1082
    public void send_saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type) throws org.apache.thrift.TException
1083
    {
1084
      saveUserSmsForSending_args args = new saveUserSmsForSending_args();
1085
      args.setUserId(userId);
1086
      args.setMobileNo(mobileNo);
1087
      args.setText(text);
1088
      args.setType(type);
1089
      sendBase("saveUserSmsForSending", args);
1090
    }
1091
 
1092
    public long recv_saveUserSmsForSending() throws HelperServiceException, org.apache.thrift.TException
1093
    {
1094
      saveUserSmsForSending_result result = new saveUserSmsForSending_result();
1095
      receiveBase(result, "saveUserSmsForSending");
1096
      if (result.isSetSuccess()) {
1097
        return result.success;
1098
      }
1099
      if (result.se != null) {
1100
        throw result.se;
1101
      }
1102
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserSmsForSending failed: unknown result");
1103
    }
1104
 
1105
    public List<UserSms> getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1106
    {
1107
      send_getSmsToBeSent();
1108
      return recv_getSmsToBeSent();
1109
    }
1110
 
1111
    public void send_getSmsToBeSent() throws org.apache.thrift.TException
1112
    {
1113
      getSmsToBeSent_args args = new getSmsToBeSent_args();
1114
      sendBase("getSmsToBeSent", args);
1115
    }
1116
 
1117
    public List<UserSms> recv_getSmsToBeSent() throws HelperServiceException, org.apache.thrift.TException
1118
    {
1119
      getSmsToBeSent_result result = new getSmsToBeSent_result();
1120
      receiveBase(result, "getSmsToBeSent");
1121
      if (result.isSetSuccess()) {
1122
        return result.success;
1123
      }
1124
      if (result.se != null) {
1125
        throw result.se;
1126
      }
1127
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSmsToBeSent failed: unknown result");
1128
    }
1129
 
1130
    public void addUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException
1131
    {
1132
      send_addUserSmsInfo(userSmsInfo);
1133
      recv_addUserSmsInfo();
1134
    }
1135
 
1136
    public void send_addUserSmsInfo(UserSmsInfo userSmsInfo) throws org.apache.thrift.TException
1137
    {
1138
      addUserSmsInfo_args args = new addUserSmsInfo_args();
1139
      args.setUserSmsInfo(userSmsInfo);
1140
      sendBase("addUserSmsInfo", args);
1141
    }
1142
 
1143
    public void recv_addUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1144
    {
1145
      addUserSmsInfo_result result = new addUserSmsInfo_result();
1146
      receiveBase(result, "addUserSmsInfo");
1147
      if (result.se != null) {
1148
        throw result.se;
1149
      }
1150
      return;
1151
    }
1152
 
1153
    public boolean updateUserSmsInfo(UserSmsInfo userSmsInfo) throws HelperServiceException, org.apache.thrift.TException
1154
    {
1155
      send_updateUserSmsInfo(userSmsInfo);
1156
      return recv_updateUserSmsInfo();
1157
    }
1158
 
1159
    public void send_updateUserSmsInfo(UserSmsInfo userSmsInfo) throws org.apache.thrift.TException
1160
    {
1161
      updateUserSmsInfo_args args = new updateUserSmsInfo_args();
1162
      args.setUserSmsInfo(userSmsInfo);
1163
      sendBase("updateUserSmsInfo", args);
1164
    }
1165
 
1166
    public boolean recv_updateUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1167
    {
1168
      updateUserSmsInfo_result result = new updateUserSmsInfo_result();
1169
      receiveBase(result, "updateUserSmsInfo");
1170
      if (result.isSetSuccess()) {
1171
        return result.success;
1172
      }
1173
      if (result.se != null) {
1174
        throw result.se;
1175
      }
1176
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updateUserSmsInfo failed: unknown result");
1177
    }
1178
 
1179
    public UserSmsInfo getUserSmsInfo(long userId) throws HelperServiceException, org.apache.thrift.TException
1180
    {
1181
      send_getUserSmsInfo(userId);
1182
      return recv_getUserSmsInfo();
1183
    }
1184
 
1185
    public void send_getUserSmsInfo(long userId) throws org.apache.thrift.TException
1186
    {
1187
      getUserSmsInfo_args args = new getUserSmsInfo_args();
1188
      args.setUserId(userId);
1189
      sendBase("getUserSmsInfo", args);
1190
    }
1191
 
1192
    public UserSmsInfo recv_getUserSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1193
    {
1194
      getUserSmsInfo_result result = new getUserSmsInfo_result();
1195
      receiveBase(result, "getUserSmsInfo");
1196
      if (result.isSetSuccess()) {
1197
        return result.success;
1198
      }
1199
      if (result.se != null) {
1200
        throw result.se;
1201
      }
1202
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUserSmsInfo failed: unknown result");
1203
    }
1204
 
1205
    public List<UserSmsInfo> getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws HelperServiceException, org.apache.thrift.TException
1206
    {
1207
      send_getAllUsersSmsInfo(dndStatus, smsSubscribed);
1208
      return recv_getAllUsersSmsInfo();
1209
    }
1210
 
1211
    public void send_getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed) throws org.apache.thrift.TException
1212
    {
1213
      getAllUsersSmsInfo_args args = new getAllUsersSmsInfo_args();
1214
      args.setDndStatus(dndStatus);
1215
      args.setSmsSubscribed(smsSubscribed);
1216
      sendBase("getAllUsersSmsInfo", args);
1217
    }
1218
 
1219
    public List<UserSmsInfo> recv_getAllUsersSmsInfo() throws HelperServiceException, org.apache.thrift.TException
1220
    {
1221
      getAllUsersSmsInfo_result result = new getAllUsersSmsInfo_result();
1222
      receiveBase(result, "getAllUsersSmsInfo");
1223
      if (result.isSetSuccess()) {
1224
        return result.success;
1225
      }
1226
      if (result.se != null) {
1227
        throw result.se;
1228
      }
1229
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllUsersSmsInfo failed: unknown result");
1230
    }
1231
 
1232
    public List<UserSms> listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException
1233
    {
1234
      send_listSmsToGetDeliveryInfo();
1235
      return recv_listSmsToGetDeliveryInfo();
1236
    }
1237
 
1238
    public void send_listSmsToGetDeliveryInfo() throws org.apache.thrift.TException
1239
    {
1240
      listSmsToGetDeliveryInfo_args args = new listSmsToGetDeliveryInfo_args();
1241
      sendBase("listSmsToGetDeliveryInfo", args);
1242
    }
1243
 
1244
    public List<UserSms> recv_listSmsToGetDeliveryInfo() throws HelperServiceException, org.apache.thrift.TException
1245
    {
1246
      listSmsToGetDeliveryInfo_result result = new listSmsToGetDeliveryInfo_result();
1247
      receiveBase(result, "listSmsToGetDeliveryInfo");
1248
      if (result.isSetSuccess()) {
1249
        return result.success;
1250
      }
1251
      if (result.se != null) {
1252
        throw result.se;
1253
      }
1254
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "listSmsToGetDeliveryInfo failed: unknown result");
1255
    }
1256
 
1257
    public boolean markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException
1258
    {
1259
      send_markMessagesAsSentToOperator(userSmsList);
1260
      return recv_markMessagesAsSentToOperator();
1261
    }
1262
 
1263
    public void send_markMessagesAsSentToOperator(List<UserSms> userSmsList) throws org.apache.thrift.TException
1264
    {
1265
      markMessagesAsSentToOperator_args args = new markMessagesAsSentToOperator_args();
1266
      args.setUserSmsList(userSmsList);
1267
      sendBase("markMessagesAsSentToOperator", args);
1268
    }
1269
 
1270
    public boolean recv_markMessagesAsSentToOperator() throws org.apache.thrift.TException
1271
    {
1272
      markMessagesAsSentToOperator_result result = new markMessagesAsSentToOperator_result();
1273
      receiveBase(result, "markMessagesAsSentToOperator");
1274
      if (result.isSetSuccess()) {
1275
        return result.success;
1276
      }
1277
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSentToOperator failed: unknown result");
1278
    }
1279
 
1280
    public boolean markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException
1281
    {
1282
      send_markMessagesAsSubmittedToSmsc(userSmsList);
1283
      return recv_markMessagesAsSubmittedToSmsc();
1284
    }
1285
 
1286
    public void send_markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList) throws org.apache.thrift.TException
1287
    {
1288
      markMessagesAsSubmittedToSmsc_args args = new markMessagesAsSubmittedToSmsc_args();
1289
      args.setUserSmsList(userSmsList);
1290
      sendBase("markMessagesAsSubmittedToSmsc", args);
1291
    }
1292
 
1293
    public boolean recv_markMessagesAsSubmittedToSmsc() throws org.apache.thrift.TException
1294
    {
1295
      markMessagesAsSubmittedToSmsc_result result = new markMessagesAsSubmittedToSmsc_result();
1296
      receiveBase(result, "markMessagesAsSubmittedToSmsc");
1297
      if (result.isSetSuccess()) {
1298
        return result.success;
1299
      }
1300
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSubmittedToSmsc failed: unknown result");
1301
    }
1302
 
1303
    public boolean markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException
1304
    {
1305
      send_markMessagesAsSent(userSmsList);
1306
      return recv_markMessagesAsSent();
1307
    }
1308
 
1309
    public void send_markMessagesAsSent(List<UserSms> userSmsList) throws org.apache.thrift.TException
1310
    {
1311
      markMessagesAsSent_args args = new markMessagesAsSent_args();
1312
      args.setUserSmsList(userSmsList);
1313
      sendBase("markMessagesAsSent", args);
1314
    }
1315
 
1316
    public boolean recv_markMessagesAsSent() throws org.apache.thrift.TException
1317
    {
1318
      markMessagesAsSent_result result = new markMessagesAsSent_result();
1319
      receiveBase(result, "markMessagesAsSent");
1320
      if (result.isSetSuccess()) {
1321
        return result.success;
1322
      }
1323
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsSent failed: unknown result");
1324
    }
1325
 
1326
    public boolean markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException
1327
    {
1328
      send_markMessagesAsRetry(userSmsList);
1329
      return recv_markMessagesAsRetry();
1330
    }
1331
 
1332
    public void send_markMessagesAsRetry(List<UserSms> userSmsList) throws org.apache.thrift.TException
1333
    {
1334
      markMessagesAsRetry_args args = new markMessagesAsRetry_args();
1335
      args.setUserSmsList(userSmsList);
1336
      sendBase("markMessagesAsRetry", args);
1337
    }
1338
 
1339
    public boolean recv_markMessagesAsRetry() throws org.apache.thrift.TException
1340
    {
1341
      markMessagesAsRetry_result result = new markMessagesAsRetry_result();
1342
      receiveBase(result, "markMessagesAsRetry");
1343
      if (result.isSetSuccess()) {
1344
        return result.success;
1345
      }
1346
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "markMessagesAsRetry failed: unknown result");
1347
    }
1348
 
352 ashish 1349
  }
3430 rajveer 1350
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
1351
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
1352
      private org.apache.thrift.async.TAsyncClientManager clientManager;
1353
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
1354
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
1355
        this.clientManager = clientManager;
1356
        this.protocolFactory = protocolFactory;
1357
      }
1358
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
1359
        return new AsyncClient(protocolFactory, clientManager, transport);
1360
      }
352 ashish 1361
    }
1362
 
3430 rajveer 1363
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
1364
      super(protocolFactory, clientManager, transport);
1365
    }
352 ashish 1366
 
8020 rajveer 1367
    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 1368
      checkReady();
8020 rajveer 1369
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, cc, bcc, sourceId, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1370
      this.___currentMethod = method_call;
1371
      ___manager.call(method_call);
1372
    }
1373
 
1374
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
5864 rajveer 1375
      private List<String> emailTo;
3430 rajveer 1376
      private String emailFrom;
1377
      private String subject;
1378
      private String body;
1379
      private String source;
1380
      private String emailType;
5864 rajveer 1381
      private List<String> cc;
1382
      private List<String> bcc;
8020 rajveer 1383
      private long sourceId;
1384
      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 1385
        super(client, protocolFactory, transport, resultHandler, false);
1386
        this.emailTo = emailTo;
1387
        this.emailFrom = emailFrom;
1388
        this.subject = subject;
1389
        this.body = body;
1390
        this.source = source;
1391
        this.emailType = emailType;
5864 rajveer 1392
        this.cc = cc;
1393
        this.bcc = bcc;
8020 rajveer 1394
        this.sourceId = sourceId;
352 ashish 1395
      }
3430 rajveer 1396
 
1397
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1398
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
1399
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
1400
        args.setEmailTo(emailTo);
1401
        args.setEmailFrom(emailFrom);
1402
        args.setSubject(subject);
1403
        args.setBody(body);
1404
        args.setSource(source);
1405
        args.setEmailType(emailType);
5864 rajveer 1406
        args.setCc(cc);
1407
        args.setBcc(bcc);
8020 rajveer 1408
        args.setSourceId(sourceId);
3430 rajveer 1409
        args.write(prot);
1410
        prot.writeMessageEnd();
1411
      }
1412
 
1413
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
1414
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1415
          throw new IllegalStateException("Method call not finished!");
1416
        }
1417
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1418
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1419
        return (new Client(prot)).recv_saveUserEmailForSending();
1420
      }
352 ashish 1421
    }
1422
 
3430 rajveer 1423
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
1424
      checkReady();
1425
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
1426
      this.___currentMethod = method_call;
1427
      ___manager.call(method_call);
1428
    }
1429
 
1430
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1431
      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 {
1432
        super(client, protocolFactory, transport, resultHandler, false);
1433
      }
1434
 
1435
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1436
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1437
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1438
        args.write(prot);
1439
        prot.writeMessageEnd();
1440
      }
1441
 
1442
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
1443
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1444
          throw new IllegalStateException("Method call not finished!");
1445
        }
1446
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1447
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1448
        return (new Client(prot)).recv_getEmailsToBeSent();
1449
      }
1450
    }
1451
 
1452
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
1453
      checkReady();
1454
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
1455
      this.___currentMethod = method_call;
1456
      ___manager.call(method_call);
1457
    }
1458
 
1459
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
1460
      private long emailId;
1461
      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 {
1462
        super(client, protocolFactory, transport, resultHandler, false);
1463
        this.emailId = emailId;
1464
      }
1465
 
1466
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1467
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1468
        markEmailAsSent_args args = new markEmailAsSent_args();
1469
        args.setEmailId(emailId);
1470
        args.write(prot);
1471
        prot.writeMessageEnd();
1472
      }
1473
 
1474
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1475
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1476
          throw new IllegalStateException("Method call not finished!");
1477
        }
1478
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1479
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1480
        (new Client(prot)).recv_markEmailAsSent();
1481
      }
1482
    }
1483
 
1484
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
1485
      checkReady();
1486
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
1487
      this.___currentMethod = method_call;
1488
      ___manager.call(method_call);
1489
    }
1490
 
1491
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
1492
      private Mail mail;
1493
      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 {
1494
        super(client, protocolFactory, transport, resultHandler, false);
1495
        this.mail = mail;
1496
      }
1497
 
1498
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1499
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
1500
        sendMail_args args = new sendMail_args();
1501
        args.setMail(mail);
1502
        args.write(prot);
1503
        prot.writeMessageEnd();
1504
      }
1505
 
1506
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1507
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1508
          throw new IllegalStateException("Method call not finished!");
1509
        }
1510
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1511
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1512
        (new Client(prot)).recv_sendMail();
1513
      }
1514
    }
1515
 
1516
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
1517
      checkReady();
1518
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
1519
      this.___currentMethod = method_call;
1520
      ___manager.call(method_call);
1521
    }
1522
 
1523
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
1524
      private TextMessage message;
1525
      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 {
1526
        super(client, protocolFactory, transport, resultHandler, false);
1527
        this.message = message;
1528
      }
1529
 
1530
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1531
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
1532
        sendText_args args = new sendText_args();
1533
        args.setMessage(message);
1534
        args.write(prot);
1535
        prot.writeMessageEnd();
1536
      }
1537
 
1538
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1539
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1540
          throw new IllegalStateException("Method call not finished!");
1541
        }
1542
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1543
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1544
        (new Client(prot)).recv_sendText();
1545
      }
1546
    }
1547
 
1548
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
1549
      checkReady();
1550
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
1551
      this.___currentMethod = method_call;
1552
      ___manager.call(method_call);
1553
    }
1554
 
1555
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1556
      private Message message;
1557
      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 {
1558
        super(client, protocolFactory, transport, resultHandler, false);
1559
        this.message = message;
1560
      }
1561
 
1562
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1563
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1564
        addMessage_args args = new addMessage_args();
1565
        args.setMessage(message);
1566
        args.write(prot);
1567
        prot.writeMessageEnd();
1568
      }
1569
 
1570
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1571
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1572
          throw new IllegalStateException("Method call not finished!");
1573
        }
1574
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1575
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1576
        (new Client(prot)).recv_addMessage();
1577
      }
1578
    }
1579
 
1580
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
1581
      checkReady();
1582
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
1583
      this.___currentMethod = method_call;
1584
      ___manager.call(method_call);
1585
    }
1586
 
1587
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1588
      private long id;
1589
      private String message;
1590
      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 {
1591
        super(client, protocolFactory, transport, resultHandler, false);
1592
        this.id = id;
1593
        this.message = message;
1594
      }
1595
 
1596
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1597
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1598
        updateMessage_args args = new updateMessage_args();
1599
        args.setId(id);
1600
        args.setMessage(message);
1601
        args.write(prot);
1602
        prot.writeMessageEnd();
1603
      }
1604
 
1605
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
1606
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1607
          throw new IllegalStateException("Method call not finished!");
1608
        }
1609
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1610
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1611
        (new Client(prot)).recv_updateMessage();
1612
      }
1613
    }
1614
 
1615
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
1616
      checkReady();
1617
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
1618
      this.___currentMethod = method_call;
1619
      ___manager.call(method_call);
1620
    }
1621
 
1622
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1623
      private long id;
1624
      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 {
1625
        super(client, protocolFactory, transport, resultHandler, false);
1626
        this.id = id;
1627
      }
1628
 
1629
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1630
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1631
        getMessage_args args = new getMessage_args();
1632
        args.setId(id);
1633
        args.write(prot);
1634
        prot.writeMessageEnd();
1635
      }
1636
 
1637
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1638
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1639
          throw new IllegalStateException("Method call not finished!");
1640
        }
1641
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1642
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1643
        return (new Client(prot)).recv_getMessage();
1644
      }
1645
    }
1646
 
1647
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
1648
      checkReady();
1649
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
1650
      this.___currentMethod = method_call;
1651
      ___manager.call(method_call);
1652
    }
1653
 
1654
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
1655
      private long id;
1656
      private Map<String,String> params;
1657
      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 {
1658
        super(client, protocolFactory, transport, resultHandler, false);
1659
        this.id = id;
1660
        this.params = params;
1661
      }
1662
 
1663
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1664
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
1665
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1666
        args.setId(id);
1667
        args.setParams(params);
1668
        args.write(prot);
1669
        prot.writeMessageEnd();
1670
      }
1671
 
1672
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
1673
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1674
          throw new IllegalStateException("Method call not finished!");
1675
        }
1676
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1677
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1678
        return (new Client(prot)).recv_getSubstitutedMessage();
1679
      }
1680
    }
1681
 
1682
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
1683
      checkReady();
1684
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
1685
      this.___currentMethod = method_call;
1686
      ___manager.call(method_call);
1687
    }
1688
 
1689
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1690
      private String username;
1691
      private String password;
1692
      private long warehouseId;
1693
      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 {
1694
        super(client, protocolFactory, transport, resultHandler, false);
1695
        this.username = username;
1696
        this.password = password;
1697
        this.warehouseId = warehouseId;
1698
      }
1699
 
1700
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1701
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1702
        addUser_args args = new addUser_args();
1703
        args.setUsername(username);
1704
        args.setPassword(password);
1705
        args.setWarehouseId(warehouseId);
1706
        args.write(prot);
1707
        prot.writeMessageEnd();
1708
      }
1709
 
1710
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1711
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1712
          throw new IllegalStateException("Method call not finished!");
1713
        }
1714
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1715
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1716
        return (new Client(prot)).recv_addUser();
1717
      }
1718
    }
1719
 
1720
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
1721
      checkReady();
1722
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
1723
      this.___currentMethod = method_call;
1724
      ___manager.call(method_call);
1725
    }
1726
 
1727
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1728
      private String username;
1729
      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 {
1730
        super(client, protocolFactory, transport, resultHandler, false);
1731
        this.username = username;
1732
      }
1733
 
1734
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1735
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1736
        deleteUser_args args = new deleteUser_args();
1737
        args.setUsername(username);
1738
        args.write(prot);
1739
        prot.writeMessageEnd();
1740
      }
1741
 
1742
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1743
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1744
          throw new IllegalStateException("Method call not finished!");
1745
        }
1746
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1747
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1748
        return (new Client(prot)).recv_deleteUser();
1749
      }
1750
    }
1751
 
1752
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
1753
      checkReady();
1754
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1755
      this.___currentMethod = method_call;
1756
      ___manager.call(method_call);
1757
    }
1758
 
1759
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1760
      private String username;
1761
      private String password;
1762
      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 {
1763
        super(client, protocolFactory, transport, resultHandler, false);
1764
        this.username = username;
1765
        this.password = password;
1766
      }
1767
 
1768
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1769
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1770
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1771
        args.setUsername(username);
1772
        args.setPassword(password);
1773
        args.write(prot);
1774
        prot.writeMessageEnd();
1775
      }
1776
 
1777
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1778
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1779
          throw new IllegalStateException("Method call not finished!");
1780
        }
1781
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1782
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1783
        return (new Client(prot)).recv_authenticateDashboardUser();
1784
      }
1785
    }
1786
 
1787
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
1788
      checkReady();
1789
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
1790
      this.___currentMethod = method_call;
1791
      ___manager.call(method_call);
1792
    }
1793
 
1794
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
1795
      private String username;
1796
      private String oldPassword;
1797
      private String newPassword;
1798
      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 {
1799
        super(client, protocolFactory, transport, resultHandler, false);
1800
        this.username = username;
1801
        this.oldPassword = oldPassword;
1802
        this.newPassword = newPassword;
1803
      }
1804
 
1805
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1806
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
1807
        updatePassword_args args = new updatePassword_args();
1808
        args.setUsername(username);
1809
        args.setOldPassword(oldPassword);
1810
        args.setNewPassword(newPassword);
1811
        args.write(prot);
1812
        prot.writeMessageEnd();
1813
      }
1814
 
1815
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
1816
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1817
          throw new IllegalStateException("Method call not finished!");
1818
        }
1819
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1820
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1821
        return (new Client(prot)).recv_updatePassword();
1822
      }
1823
    }
1824
 
1825
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1826
      checkReady();
1827
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1828
      this.___currentMethod = method_call;
1829
      ___manager.call(method_call);
1830
    }
1831
 
1832
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1833
      private String username;
1834
      private String password;
1835
      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 {
1836
        super(client, protocolFactory, transport, resultHandler, false);
1837
        this.username = username;
1838
        this.password = password;
1839
      }
1840
 
1841
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1842
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1843
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1844
        args.setUsername(username);
1845
        args.setPassword(password);
1846
        args.write(prot);
1847
        prot.writeMessageEnd();
1848
      }
1849
 
1850
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1851
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1852
          throw new IllegalStateException("Method call not finished!");
1853
        }
1854
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1855
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1856
        return (new Client(prot)).recv_authenticateLogisticsUser();
1857
      }
1858
    }
1859
 
1860
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
1861
      checkReady();
1862
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1863
      this.___currentMethod = method_call;
1864
      ___manager.call(method_call);
1865
    }
1866
 
1867
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1868
      private String username;
1869
      private String password;
1870
      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 {
1871
        super(client, protocolFactory, transport, resultHandler, false);
1872
        this.username = username;
1873
        this.password = password;
1874
      }
1875
 
1876
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1877
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1878
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1879
        args.setUsername(username);
1880
        args.setPassword(password);
1881
        args.write(prot);
1882
        prot.writeMessageEnd();
1883
      }
1884
 
1885
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1886
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1887
          throw new IllegalStateException("Method call not finished!");
1888
        }
1889
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1890
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1891
        return (new Client(prot)).recv_authenticateStatisticsUser();
1892
      }
1893
    }
1894
 
1895
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
1896
      checkReady();
1897
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
1898
      this.___currentMethod = method_call;
1899
      ___manager.call(method_call);
1900
    }
1901
 
1902
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1903
      private String username;
1904
      private String password;
1905
      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 {
1906
        super(client, protocolFactory, transport, resultHandler, false);
1907
        this.username = username;
1908
        this.password = password;
1909
      }
1910
 
1911
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1912
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1913
        authenticateReportUser_args args = new authenticateReportUser_args();
1914
        args.setUsername(username);
1915
        args.setPassword(password);
1916
        args.write(prot);
1917
        prot.writeMessageEnd();
1918
      }
1919
 
1920
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1921
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1922
          throw new IllegalStateException("Method call not finished!");
1923
        }
1924
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1925
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1926
        return (new Client(prot)).recv_authenticateReportUser();
1927
      }
1928
    }
1929
 
1930
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
1931
      checkReady();
1932
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
1933
      this.___currentMethod = method_call;
1934
      ___manager.call(method_call);
1935
    }
1936
 
1937
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
1938
      private long role;
1939
      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 {
1940
        super(client, protocolFactory, transport, resultHandler, false);
1941
        this.role = role;
1942
      }
1943
 
1944
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1945
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
1946
        getReports_args args = new getReports_args();
1947
        args.setRole(role);
1948
        args.write(prot);
1949
        prot.writeMessageEnd();
1950
      }
1951
 
1952
      public List<Report> getResult() throws org.apache.thrift.TException {
1953
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1954
          throw new IllegalStateException("Method call not finished!");
1955
        }
1956
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1957
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1958
        return (new Client(prot)).recv_getReports();
1959
      }
1960
    }
1961
 
6788 rajveer 1962
    public void authenticateCatalogUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
3430 rajveer 1963
      checkReady();
6788 rajveer 1964
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
3430 rajveer 1965
      this.___currentMethod = method_call;
1966
      ___manager.call(method_call);
1967
    }
1968
 
1969
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
1970
      private String username;
1971
      private String password;
6788 rajveer 1972
      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 1973
        super(client, protocolFactory, transport, resultHandler, false);
1974
        this.username = username;
1975
        this.password = password;
1976
      }
1977
 
1978
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1979
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
1980
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1981
        args.setUsername(username);
1982
        args.setPassword(password);
1983
        args.write(prot);
1984
        prot.writeMessageEnd();
1985
      }
1986
 
1987
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
1988
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1989
          throw new IllegalStateException("Method call not finished!");
1990
        }
1991
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1992
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1993
        return (new Client(prot)).recv_authenticateCatalogUser();
1994
      }
1995
    }
1996
 
4544 varun.gupt 1997
    public void shareEntities(List<Long> entityIds, String email, org.apache.thrift.async.AsyncMethodCallback<shareEntities_call> resultHandler) throws org.apache.thrift.TException {
1998
      checkReady();
1999
      shareEntities_call method_call = new shareEntities_call(entityIds, email, resultHandler, this, ___protocolFactory, ___transport);
2000
      this.___currentMethod = method_call;
2001
      ___manager.call(method_call);
2002
    }
2003
 
2004
    public static class shareEntities_call extends org.apache.thrift.async.TAsyncMethodCall {
2005
      private List<Long> entityIds;
2006
      private String email;
2007
      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 {
2008
        super(client, protocolFactory, transport, resultHandler, false);
2009
        this.entityIds = entityIds;
2010
        this.email = email;
2011
      }
2012
 
2013
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2014
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("shareEntities", org.apache.thrift.protocol.TMessageType.CALL, 0));
2015
        shareEntities_args args = new shareEntities_args();
2016
        args.setEntityIds(entityIds);
2017
        args.setEmail(email);
2018
        args.write(prot);
2019
        prot.writeMessageEnd();
2020
      }
2021
 
2022
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2023
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2024
          throw new IllegalStateException("Method call not finished!");
2025
        }
2026
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2027
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2028
        (new Client(prot)).recv_shareEntities();
2029
      }
2030
    }
2031
 
4693 mandeep.dh 2032
    public void getAgents(org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
2033
      checkReady();
2034
      getAgents_call method_call = new getAgents_call(resultHandler, this, ___protocolFactory, ___transport);
2035
      this.___currentMethod = method_call;
2036
      ___manager.call(method_call);
2037
    }
2038
 
2039
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
2040
      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 {
2041
        super(client, protocolFactory, transport, resultHandler, false);
2042
      }
2043
 
2044
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2045
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
2046
        getAgents_args args = new getAgents_args();
2047
        args.write(prot);
2048
        prot.writeMessageEnd();
2049
      }
2050
 
2051
      public List<Agent> getResult() throws org.apache.thrift.TException {
2052
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2053
          throw new IllegalStateException("Method call not finished!");
2054
        }
2055
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2056
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2057
        return (new Client(prot)).recv_getAgents();
2058
      }
2059
    }
2060
 
2061
    public void validateLogIn(String emailId, String password, org.apache.thrift.async.AsyncMethodCallback<validateLogIn_call> resultHandler) throws org.apache.thrift.TException {
2062
      checkReady();
2063
      validateLogIn_call method_call = new validateLogIn_call(emailId, password, resultHandler, this, ___protocolFactory, ___transport);
2064
      this.___currentMethod = method_call;
2065
      ___manager.call(method_call);
2066
    }
2067
 
2068
    public static class validateLogIn_call extends org.apache.thrift.async.TAsyncMethodCall {
2069
      private String emailId;
2070
      private String password;
2071
      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 {
2072
        super(client, protocolFactory, transport, resultHandler, false);
2073
        this.emailId = emailId;
2074
        this.password = password;
2075
      }
2076
 
2077
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2078
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("validateLogIn", org.apache.thrift.protocol.TMessageType.CALL, 0));
2079
        validateLogIn_args args = new validateLogIn_args();
2080
        args.setEmailId(emailId);
2081
        args.setPassword(password);
2082
        args.write(prot);
2083
        prot.writeMessageEnd();
2084
      }
2085
 
2086
      public boolean getResult() throws org.apache.thrift.TException {
2087
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2088
          throw new IllegalStateException("Method call not finished!");
2089
        }
2090
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2091
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2092
        return (new Client(prot)).recv_validateLogIn();
2093
      }
2094
    }
2095
 
2096
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
2097
      checkReady();
2098
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
2099
      this.___currentMethod = method_call;
2100
      ___manager.call(method_call);
2101
    }
2102
 
2103
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2104
      private String agentEmailId;
2105
      private String password;
2106
      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 {
2107
        super(client, protocolFactory, transport, resultHandler, false);
2108
        this.agentEmailId = agentEmailId;
2109
        this.password = password;
2110
      }
2111
 
2112
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2113
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2114
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
2115
        args.setAgentEmailId(agentEmailId);
2116
        args.setPassword(password);
2117
        args.write(prot);
2118
        prot.writeMessageEnd();
2119
      }
2120
 
2121
      public void getResult() throws org.apache.thrift.TException {
2122
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2123
          throw new IllegalStateException("Method call not finished!");
2124
        }
2125
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2126
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2127
        (new Client(prot)).recv_updatePasswordForAgent();
2128
      }
2129
    }
2130
 
2131
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
2132
      checkReady();
2133
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
2134
      this.___currentMethod = method_call;
2135
      ___manager.call(method_call);
2136
    }
2137
 
2138
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2139
      private String agentEmailId;
2140
      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 {
2141
        super(client, protocolFactory, transport, resultHandler, false);
2142
        this.agentEmailId = agentEmailId;
2143
      }
2144
 
2145
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2146
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2147
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
2148
        args.setAgentEmailId(agentEmailId);
2149
        args.write(prot);
2150
        prot.writeMessageEnd();
2151
      }
2152
 
2153
      public List<String> getResult() throws org.apache.thrift.TException {
2154
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2155
          throw new IllegalStateException("Method call not finished!");
2156
        }
2157
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2158
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2159
        return (new Client(prot)).recv_getRoleNamesForAgent();
2160
      }
2161
    }
2162
 
2163
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
2164
      checkReady();
2165
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
2166
      this.___currentMethod = method_call;
2167
      ___manager.call(method_call);
2168
    }
2169
 
2170
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
2171
      private String roleName;
2172
      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 {
2173
        super(client, protocolFactory, transport, resultHandler, false);
2174
        this.roleName = roleName;
2175
      }
2176
 
2177
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2178
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
2179
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
2180
        args.setRoleName(roleName);
2181
        args.write(prot);
2182
        prot.writeMessageEnd();
2183
      }
2184
 
2185
      public List<String> getResult() throws org.apache.thrift.TException {
2186
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2187
          throw new IllegalStateException("Method call not finished!");
2188
        }
2189
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2190
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2191
        return (new Client(prot)).recv_getPermissionsForRoleName();
2192
      }
2193
    }
2194
 
4806 varun.gupt 2195
    public void saveQuickLink(String url, String text, org.apache.thrift.async.AsyncMethodCallback<saveQuickLink_call> resultHandler) throws org.apache.thrift.TException {
2196
      checkReady();
2197
      saveQuickLink_call method_call = new saveQuickLink_call(url, text, resultHandler, this, ___protocolFactory, ___transport);
2198
      this.___currentMethod = method_call;
2199
      ___manager.call(method_call);
2200
    }
2201
 
2202
    public static class saveQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
2203
      private String url;
2204
      private String text;
2205
      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 {
2206
        super(client, protocolFactory, transport, resultHandler, false);
2207
        this.url = url;
2208
        this.text = text;
2209
      }
2210
 
2211
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2212
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
2213
        saveQuickLink_args args = new saveQuickLink_args();
2214
        args.setUrl(url);
2215
        args.setText(text);
2216
        args.write(prot);
2217
        prot.writeMessageEnd();
2218
      }
2219
 
2220
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2221
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2222
          throw new IllegalStateException("Method call not finished!");
2223
        }
2224
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2225
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2226
        (new Client(prot)).recv_saveQuickLink();
2227
      }
2228
    }
2229
 
2230
    public void getQuickLinks(org.apache.thrift.async.AsyncMethodCallback<getQuickLinks_call> resultHandler) throws org.apache.thrift.TException {
2231
      checkReady();
2232
      getQuickLinks_call method_call = new getQuickLinks_call(resultHandler, this, ___protocolFactory, ___transport);
2233
      this.___currentMethod = method_call;
2234
      ___manager.call(method_call);
2235
    }
2236
 
2237
    public static class getQuickLinks_call extends org.apache.thrift.async.TAsyncMethodCall {
2238
      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 {
2239
        super(client, protocolFactory, transport, resultHandler, false);
2240
      }
2241
 
2242
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2243
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getQuickLinks", org.apache.thrift.protocol.TMessageType.CALL, 0));
2244
        getQuickLinks_args args = new getQuickLinks_args();
2245
        args.write(prot);
2246
        prot.writeMessageEnd();
2247
      }
2248
 
2249
      public List<QuickLink> getResult() throws HelperServiceException, org.apache.thrift.TException {
2250
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2251
          throw new IllegalStateException("Method call not finished!");
2252
        }
2253
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2254
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2255
        return (new Client(prot)).recv_getQuickLinks();
2256
      }
2257
    }
2258
 
4996 varun.gupt 2259
    public void updateQuickLink(long id, String url, String text, org.apache.thrift.async.AsyncMethodCallback<updateQuickLink_call> resultHandler) throws org.apache.thrift.TException {
2260
      checkReady();
2261
      updateQuickLink_call method_call = new updateQuickLink_call(id, url, text, resultHandler, this, ___protocolFactory, ___transport);
2262
      this.___currentMethod = method_call;
2263
      ___manager.call(method_call);
2264
    }
2265
 
2266
    public static class updateQuickLink_call extends org.apache.thrift.async.TAsyncMethodCall {
2267
      private long id;
2268
      private String url;
2269
      private String text;
2270
      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 {
2271
        super(client, protocolFactory, transport, resultHandler, false);
2272
        this.id = id;
2273
        this.url = url;
2274
        this.text = text;
2275
      }
2276
 
2277
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2278
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateQuickLink", org.apache.thrift.protocol.TMessageType.CALL, 0));
2279
        updateQuickLink_args args = new updateQuickLink_args();
2280
        args.setId(id);
2281
        args.setUrl(url);
2282
        args.setText(text);
2283
        args.write(prot);
2284
        prot.writeMessageEnd();
2285
      }
2286
 
2287
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2288
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2289
          throw new IllegalStateException("Method call not finished!");
2290
        }
2291
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2292
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2293
        (new Client(prot)).recv_updateQuickLink();
2294
      }
2295
    }
2296
 
5055 varun.gupt 2297
    public void getEmailsForNotificationsSent(long startDatetime, long endDatetime, org.apache.thrift.async.AsyncMethodCallback<getEmailsForNotificationsSent_call> resultHandler) throws org.apache.thrift.TException {
2298
      checkReady();
2299
      getEmailsForNotificationsSent_call method_call = new getEmailsForNotificationsSent_call(startDatetime, endDatetime, resultHandler, this, ___protocolFactory, ___transport);
2300
      this.___currentMethod = method_call;
2301
      ___manager.call(method_call);
2302
    }
2303
 
2304
    public static class getEmailsForNotificationsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
2305
      private long startDatetime;
2306
      private long endDatetime;
2307
      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 {
2308
        super(client, protocolFactory, transport, resultHandler, false);
2309
        this.startDatetime = startDatetime;
2310
        this.endDatetime = endDatetime;
2311
      }
2312
 
2313
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2314
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsForNotificationsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2315
        getEmailsForNotificationsSent_args args = new getEmailsForNotificationsSent_args();
2316
        args.setStartDatetime(startDatetime);
2317
        args.setEndDatetime(endDatetime);
2318
        args.write(prot);
2319
        prot.writeMessageEnd();
2320
      }
2321
 
2322
      public List<String> getResult() throws HelperServiceException, org.apache.thrift.TException {
2323
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2324
          throw new IllegalStateException("Method call not finished!");
2325
        }
2326
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2327
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2328
        return (new Client(prot)).recv_getEmailsForNotificationsSent();
2329
      }
2330
    }
2331
 
6322 amar.kumar 2332
    public void getOrderConfirmationMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderConfirmationMail_call> resultHandler) throws org.apache.thrift.TException {
2333
      checkReady();
2334
      getOrderConfirmationMail_call method_call = new getOrderConfirmationMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2335
      this.___currentMethod = method_call;
2336
      ___manager.call(method_call);
2337
    }
2338
 
2339
    public static class getOrderConfirmationMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2340
      private long orderId;
2341
      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 {
2342
        super(client, protocolFactory, transport, resultHandler, false);
2343
        this.orderId = orderId;
2344
      }
2345
 
2346
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2347
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderConfirmationMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2348
        getOrderConfirmationMail_args args = new getOrderConfirmationMail_args();
2349
        args.setOrderId(orderId);
2350
        args.write(prot);
2351
        prot.writeMessageEnd();
2352
      }
2353
 
2354
      public String getResult() throws org.apache.thrift.TException {
2355
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2356
          throw new IllegalStateException("Method call not finished!");
2357
        }
2358
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2359
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2360
        return (new Client(prot)).recv_getOrderConfirmationMail();
2361
      }
2362
    }
2363
 
7221 kshitij.so 2364
    public void getOrderDeliveryMail(long orderId, org.apache.thrift.async.AsyncMethodCallback<getOrderDeliveryMail_call> resultHandler) throws org.apache.thrift.TException {
2365
      checkReady();
2366
      getOrderDeliveryMail_call method_call = new getOrderDeliveryMail_call(orderId, resultHandler, this, ___protocolFactory, ___transport);
2367
      this.___currentMethod = method_call;
2368
      ___manager.call(method_call);
2369
    }
2370
 
2371
    public static class getOrderDeliveryMail_call extends org.apache.thrift.async.TAsyncMethodCall {
2372
      private long orderId;
2373
      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 {
2374
        super(client, protocolFactory, transport, resultHandler, false);
2375
        this.orderId = orderId;
2376
      }
2377
 
2378
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2379
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOrderDeliveryMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
2380
        getOrderDeliveryMail_args args = new getOrderDeliveryMail_args();
2381
        args.setOrderId(orderId);
2382
        args.write(prot);
2383
        prot.writeMessageEnd();
2384
      }
2385
 
2386
      public String getResult() throws org.apache.thrift.TException {
2387
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2388
          throw new IllegalStateException("Method call not finished!");
2389
        }
2390
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2391
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2392
        return (new Client(prot)).recv_getOrderDeliveryMail();
2393
      }
2394
    }
2395
 
7410 amar.kumar 2396
    public void getWarehouseIdsForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getWarehouseIdsForAgent_call> resultHandler) throws org.apache.thrift.TException {
2397
      checkReady();
2398
      getWarehouseIdsForAgent_call method_call = new getWarehouseIdsForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
2399
      this.___currentMethod = method_call;
2400
      ___manager.call(method_call);
2401
    }
2402
 
2403
    public static class getWarehouseIdsForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
2404
      private String agentEmailId;
2405
      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 {
2406
        super(client, protocolFactory, transport, resultHandler, false);
2407
        this.agentEmailId = agentEmailId;
2408
      }
2409
 
2410
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2411
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseIdsForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2412
        getWarehouseIdsForAgent_args args = new getWarehouseIdsForAgent_args();
2413
        args.setAgentEmailId(agentEmailId);
2414
        args.write(prot);
2415
        prot.writeMessageEnd();
2416
      }
2417
 
2418
      public List<Long> getResult() throws org.apache.thrift.TException {
2419
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2420
          throw new IllegalStateException("Method call not finished!");
2421
        }
2422
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2423
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2424
        return (new Client(prot)).recv_getWarehouseIdsForAgent();
2425
      }
2426
    }
2427
 
12691 manish.sha 2428
    public void saveUserSmsForSending(long userId, String mobileNo, String text, SmsType type, org.apache.thrift.async.AsyncMethodCallback<saveUserSmsForSending_call> resultHandler) throws org.apache.thrift.TException {
2429
      checkReady();
2430
      saveUserSmsForSending_call method_call = new saveUserSmsForSending_call(userId, mobileNo, text, type, resultHandler, this, ___protocolFactory, ___transport);
2431
      this.___currentMethod = method_call;
2432
      ___manager.call(method_call);
2433
    }
2434
 
2435
    public static class saveUserSmsForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
2436
      private long userId;
2437
      private String mobileNo;
2438
      private String text;
2439
      private SmsType type;
2440
      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 {
2441
        super(client, protocolFactory, transport, resultHandler, false);
2442
        this.userId = userId;
2443
        this.mobileNo = mobileNo;
2444
        this.text = text;
2445
        this.type = type;
2446
      }
2447
 
2448
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2449
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserSmsForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
2450
        saveUserSmsForSending_args args = new saveUserSmsForSending_args();
2451
        args.setUserId(userId);
2452
        args.setMobileNo(mobileNo);
2453
        args.setText(text);
2454
        args.setType(type);
2455
        args.write(prot);
2456
        prot.writeMessageEnd();
2457
      }
2458
 
2459
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
2460
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2461
          throw new IllegalStateException("Method call not finished!");
2462
        }
2463
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2464
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2465
        return (new Client(prot)).recv_saveUserSmsForSending();
2466
      }
2467
    }
2468
 
2469
    public void getSmsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getSmsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
2470
      checkReady();
2471
      getSmsToBeSent_call method_call = new getSmsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
2472
      this.___currentMethod = method_call;
2473
      ___manager.call(method_call);
2474
    }
2475
 
2476
    public static class getSmsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
2477
      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 {
2478
        super(client, protocolFactory, transport, resultHandler, false);
2479
      }
2480
 
2481
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2482
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSmsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2483
        getSmsToBeSent_args args = new getSmsToBeSent_args();
2484
        args.write(prot);
2485
        prot.writeMessageEnd();
2486
      }
2487
 
2488
      public List<UserSms> getResult() throws HelperServiceException, org.apache.thrift.TException {
2489
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2490
          throw new IllegalStateException("Method call not finished!");
2491
        }
2492
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2493
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2494
        return (new Client(prot)).recv_getSmsToBeSent();
2495
      }
2496
    }
2497
 
2498
    public void addUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<addUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2499
      checkReady();
2500
      addUserSmsInfo_call method_call = new addUserSmsInfo_call(userSmsInfo, resultHandler, this, ___protocolFactory, ___transport);
2501
      this.___currentMethod = method_call;
2502
      ___manager.call(method_call);
2503
    }
2504
 
2505
    public static class addUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2506
      private UserSmsInfo userSmsInfo;
2507
      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 {
2508
        super(client, protocolFactory, transport, resultHandler, false);
2509
        this.userSmsInfo = userSmsInfo;
2510
      }
2511
 
2512
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2513
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2514
        addUserSmsInfo_args args = new addUserSmsInfo_args();
2515
        args.setUserSmsInfo(userSmsInfo);
2516
        args.write(prot);
2517
        prot.writeMessageEnd();
2518
      }
2519
 
2520
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
2521
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2522
          throw new IllegalStateException("Method call not finished!");
2523
        }
2524
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2525
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2526
        (new Client(prot)).recv_addUserSmsInfo();
2527
      }
2528
    }
2529
 
2530
    public void updateUserSmsInfo(UserSmsInfo userSmsInfo, org.apache.thrift.async.AsyncMethodCallback<updateUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2531
      checkReady();
2532
      updateUserSmsInfo_call method_call = new updateUserSmsInfo_call(userSmsInfo, resultHandler, this, ___protocolFactory, ___transport);
2533
      this.___currentMethod = method_call;
2534
      ___manager.call(method_call);
2535
    }
2536
 
2537
    public static class updateUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2538
      private UserSmsInfo userSmsInfo;
2539
      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 {
2540
        super(client, protocolFactory, transport, resultHandler, false);
2541
        this.userSmsInfo = userSmsInfo;
2542
      }
2543
 
2544
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2545
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2546
        updateUserSmsInfo_args args = new updateUserSmsInfo_args();
2547
        args.setUserSmsInfo(userSmsInfo);
2548
        args.write(prot);
2549
        prot.writeMessageEnd();
2550
      }
2551
 
2552
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
2553
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2554
          throw new IllegalStateException("Method call not finished!");
2555
        }
2556
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2557
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2558
        return (new Client(prot)).recv_updateUserSmsInfo();
2559
      }
2560
    }
2561
 
2562
    public void getUserSmsInfo(long userId, org.apache.thrift.async.AsyncMethodCallback<getUserSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2563
      checkReady();
2564
      getUserSmsInfo_call method_call = new getUserSmsInfo_call(userId, resultHandler, this, ___protocolFactory, ___transport);
2565
      this.___currentMethod = method_call;
2566
      ___manager.call(method_call);
2567
    }
2568
 
2569
    public static class getUserSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2570
      private long userId;
2571
      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 {
2572
        super(client, protocolFactory, transport, resultHandler, false);
2573
        this.userId = userId;
2574
      }
2575
 
2576
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2577
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUserSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2578
        getUserSmsInfo_args args = new getUserSmsInfo_args();
2579
        args.setUserId(userId);
2580
        args.write(prot);
2581
        prot.writeMessageEnd();
2582
      }
2583
 
2584
      public UserSmsInfo getResult() throws HelperServiceException, org.apache.thrift.TException {
2585
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2586
          throw new IllegalStateException("Method call not finished!");
2587
        }
2588
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2589
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2590
        return (new Client(prot)).recv_getUserSmsInfo();
2591
      }
2592
    }
2593
 
2594
    public void getAllUsersSmsInfo(boolean dndStatus, boolean smsSubscribed, org.apache.thrift.async.AsyncMethodCallback<getAllUsersSmsInfo_call> resultHandler) throws org.apache.thrift.TException {
2595
      checkReady();
2596
      getAllUsersSmsInfo_call method_call = new getAllUsersSmsInfo_call(dndStatus, smsSubscribed, resultHandler, this, ___protocolFactory, ___transport);
2597
      this.___currentMethod = method_call;
2598
      ___manager.call(method_call);
2599
    }
2600
 
2601
    public static class getAllUsersSmsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2602
      private boolean dndStatus;
2603
      private boolean smsSubscribed;
2604
      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 {
2605
        super(client, protocolFactory, transport, resultHandler, false);
2606
        this.dndStatus = dndStatus;
2607
        this.smsSubscribed = smsSubscribed;
2608
      }
2609
 
2610
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2611
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllUsersSmsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2612
        getAllUsersSmsInfo_args args = new getAllUsersSmsInfo_args();
2613
        args.setDndStatus(dndStatus);
2614
        args.setSmsSubscribed(smsSubscribed);
2615
        args.write(prot);
2616
        prot.writeMessageEnd();
2617
      }
2618
 
2619
      public List<UserSmsInfo> getResult() throws HelperServiceException, org.apache.thrift.TException {
2620
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2621
          throw new IllegalStateException("Method call not finished!");
2622
        }
2623
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2624
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2625
        return (new Client(prot)).recv_getAllUsersSmsInfo();
2626
      }
2627
    }
2628
 
2629
    public void listSmsToGetDeliveryInfo(org.apache.thrift.async.AsyncMethodCallback<listSmsToGetDeliveryInfo_call> resultHandler) throws org.apache.thrift.TException {
2630
      checkReady();
2631
      listSmsToGetDeliveryInfo_call method_call = new listSmsToGetDeliveryInfo_call(resultHandler, this, ___protocolFactory, ___transport);
2632
      this.___currentMethod = method_call;
2633
      ___manager.call(method_call);
2634
    }
2635
 
2636
    public static class listSmsToGetDeliveryInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
2637
      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 {
2638
        super(client, protocolFactory, transport, resultHandler, false);
2639
      }
2640
 
2641
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2642
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("listSmsToGetDeliveryInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
2643
        listSmsToGetDeliveryInfo_args args = new listSmsToGetDeliveryInfo_args();
2644
        args.write(prot);
2645
        prot.writeMessageEnd();
2646
      }
2647
 
2648
      public List<UserSms> getResult() throws HelperServiceException, org.apache.thrift.TException {
2649
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2650
          throw new IllegalStateException("Method call not finished!");
2651
        }
2652
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2653
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2654
        return (new Client(prot)).recv_listSmsToGetDeliveryInfo();
2655
      }
2656
    }
2657
 
2658
    public void markMessagesAsSentToOperator(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSentToOperator_call> resultHandler) throws org.apache.thrift.TException {
2659
      checkReady();
2660
      markMessagesAsSentToOperator_call method_call = new markMessagesAsSentToOperator_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2661
      this.___currentMethod = method_call;
2662
      ___manager.call(method_call);
2663
    }
2664
 
2665
    public static class markMessagesAsSentToOperator_call extends org.apache.thrift.async.TAsyncMethodCall {
2666
      private List<UserSms> userSmsList;
2667
      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 {
2668
        super(client, protocolFactory, transport, resultHandler, false);
2669
        this.userSmsList = userSmsList;
2670
      }
2671
 
2672
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2673
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSentToOperator", org.apache.thrift.protocol.TMessageType.CALL, 0));
2674
        markMessagesAsSentToOperator_args args = new markMessagesAsSentToOperator_args();
2675
        args.setUserSmsList(userSmsList);
2676
        args.write(prot);
2677
        prot.writeMessageEnd();
2678
      }
2679
 
2680
      public boolean getResult() throws org.apache.thrift.TException {
2681
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2682
          throw new IllegalStateException("Method call not finished!");
2683
        }
2684
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2685
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2686
        return (new Client(prot)).recv_markMessagesAsSentToOperator();
2687
      }
2688
    }
2689
 
2690
    public void markMessagesAsSubmittedToSmsc(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSubmittedToSmsc_call> resultHandler) throws org.apache.thrift.TException {
2691
      checkReady();
2692
      markMessagesAsSubmittedToSmsc_call method_call = new markMessagesAsSubmittedToSmsc_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2693
      this.___currentMethod = method_call;
2694
      ___manager.call(method_call);
2695
    }
2696
 
2697
    public static class markMessagesAsSubmittedToSmsc_call extends org.apache.thrift.async.TAsyncMethodCall {
2698
      private List<UserSms> userSmsList;
2699
      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 {
2700
        super(client, protocolFactory, transport, resultHandler, false);
2701
        this.userSmsList = userSmsList;
2702
      }
2703
 
2704
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2705
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSubmittedToSmsc", org.apache.thrift.protocol.TMessageType.CALL, 0));
2706
        markMessagesAsSubmittedToSmsc_args args = new markMessagesAsSubmittedToSmsc_args();
2707
        args.setUserSmsList(userSmsList);
2708
        args.write(prot);
2709
        prot.writeMessageEnd();
2710
      }
2711
 
2712
      public boolean getResult() throws org.apache.thrift.TException {
2713
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2714
          throw new IllegalStateException("Method call not finished!");
2715
        }
2716
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2717
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2718
        return (new Client(prot)).recv_markMessagesAsSubmittedToSmsc();
2719
      }
2720
    }
2721
 
2722
    public void markMessagesAsSent(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsSent_call> resultHandler) throws org.apache.thrift.TException {
2723
      checkReady();
2724
      markMessagesAsSent_call method_call = new markMessagesAsSent_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2725
      this.___currentMethod = method_call;
2726
      ___manager.call(method_call);
2727
    }
2728
 
2729
    public static class markMessagesAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
2730
      private List<UserSms> userSmsList;
2731
      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 {
2732
        super(client, protocolFactory, transport, resultHandler, false);
2733
        this.userSmsList = userSmsList;
2734
      }
2735
 
2736
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2737
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
2738
        markMessagesAsSent_args args = new markMessagesAsSent_args();
2739
        args.setUserSmsList(userSmsList);
2740
        args.write(prot);
2741
        prot.writeMessageEnd();
2742
      }
2743
 
2744
      public boolean getResult() throws org.apache.thrift.TException {
2745
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2746
          throw new IllegalStateException("Method call not finished!");
2747
        }
2748
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2749
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2750
        return (new Client(prot)).recv_markMessagesAsSent();
2751
      }
2752
    }
2753
 
2754
    public void markMessagesAsRetry(List<UserSms> userSmsList, org.apache.thrift.async.AsyncMethodCallback<markMessagesAsRetry_call> resultHandler) throws org.apache.thrift.TException {
2755
      checkReady();
2756
      markMessagesAsRetry_call method_call = new markMessagesAsRetry_call(userSmsList, resultHandler, this, ___protocolFactory, ___transport);
2757
      this.___currentMethod = method_call;
2758
      ___manager.call(method_call);
2759
    }
2760
 
2761
    public static class markMessagesAsRetry_call extends org.apache.thrift.async.TAsyncMethodCall {
2762
      private List<UserSms> userSmsList;
2763
      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 {
2764
        super(client, protocolFactory, transport, resultHandler, false);
2765
        this.userSmsList = userSmsList;
2766
      }
2767
 
2768
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
2769
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markMessagesAsRetry", org.apache.thrift.protocol.TMessageType.CALL, 0));
2770
        markMessagesAsRetry_args args = new markMessagesAsRetry_args();
2771
        args.setUserSmsList(userSmsList);
2772
        args.write(prot);
2773
        prot.writeMessageEnd();
2774
      }
2775
 
2776
      public boolean getResult() throws org.apache.thrift.TException {
2777
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
2778
          throw new IllegalStateException("Method call not finished!");
2779
        }
2780
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
2781
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
2782
        return (new Client(prot)).recv_markMessagesAsRetry();
2783
      }
2784
    }
2785
 
3430 rajveer 2786
  }
2787
 
2788
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
2789
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
2790
    public Processor(I iface) {
2791
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
2792
    }
2793
 
2794
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
2795
      super(iface, getProcessMap(processMap));
2796
    }
2797
 
2798
    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) {
2799
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
2800
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
2801
      processMap.put("markEmailAsSent", new markEmailAsSent());
2802
      processMap.put("sendMail", new sendMail());
2803
      processMap.put("sendText", new sendText());
2804
      processMap.put("addMessage", new addMessage());
2805
      processMap.put("updateMessage", new updateMessage());
2806
      processMap.put("getMessage", new getMessage());
2807
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
2808
      processMap.put("addUser", new addUser());
2809
      processMap.put("deleteUser", new deleteUser());
2810
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
2811
      processMap.put("updatePassword", new updatePassword());
2812
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
2813
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
2814
      processMap.put("authenticateReportUser", new authenticateReportUser());
2815
      processMap.put("getReports", new getReports());
2816
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
4544 varun.gupt 2817
      processMap.put("shareEntities", new shareEntities());
4693 mandeep.dh 2818
      processMap.put("getAgents", new getAgents());
2819
      processMap.put("validateLogIn", new validateLogIn());
2820
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
2821
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
2822
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
4806 varun.gupt 2823
      processMap.put("saveQuickLink", new saveQuickLink());
2824
      processMap.put("getQuickLinks", new getQuickLinks());
4996 varun.gupt 2825
      processMap.put("updateQuickLink", new updateQuickLink());
5055 varun.gupt 2826
      processMap.put("getEmailsForNotificationsSent", new getEmailsForNotificationsSent());
6322 amar.kumar 2827
      processMap.put("getOrderConfirmationMail", new getOrderConfirmationMail());
7221 kshitij.so 2828
      processMap.put("getOrderDeliveryMail", new getOrderDeliveryMail());
7410 amar.kumar 2829
      processMap.put("getWarehouseIdsForAgent", new getWarehouseIdsForAgent());
12691 manish.sha 2830
      processMap.put("saveUserSmsForSending", new saveUserSmsForSending());
2831
      processMap.put("getSmsToBeSent", new getSmsToBeSent());
2832
      processMap.put("addUserSmsInfo", new addUserSmsInfo());
2833
      processMap.put("updateUserSmsInfo", new updateUserSmsInfo());
2834
      processMap.put("getUserSmsInfo", new getUserSmsInfo());
2835
      processMap.put("getAllUsersSmsInfo", new getAllUsersSmsInfo());
2836
      processMap.put("listSmsToGetDeliveryInfo", new listSmsToGetDeliveryInfo());
2837
      processMap.put("markMessagesAsSentToOperator", new markMessagesAsSentToOperator());
2838
      processMap.put("markMessagesAsSubmittedToSmsc", new markMessagesAsSubmittedToSmsc());
2839
      processMap.put("markMessagesAsSent", new markMessagesAsSent());
2840
      processMap.put("markMessagesAsRetry", new markMessagesAsRetry());
3430 rajveer 2841
      return processMap;
2842
    }
2843
 
2844
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
2845
      public saveUserEmailForSending() {
2846
        super("saveUserEmailForSending");
2847
      }
2848
 
2849
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
2850
        return new saveUserEmailForSending_args();
2851
      }
2852
 
2853
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
1395 varun.gupt 2854
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
2855
        try {
8020 rajveer 2856
          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 2857
          result.setSuccessIsSet(true);
1395 varun.gupt 2858
        } catch (HelperServiceException se) {
2859
          result.se = se;
2860
        }
3430 rajveer 2861
        return result;
1395 varun.gupt 2862
      }
2863
    }
2864
 
3430 rajveer 2865
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
2866
      public getEmailsToBeSent() {
2867
        super("getEmailsToBeSent");
2868
      }
2869
 
2870
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
2871
        return new getEmailsToBeSent_args();
2872
      }
2873
 
2874
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2875
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
2876
        try {
3430 rajveer 2877
          result.success = iface.getEmailsToBeSent();
1422 varun.gupt 2878
        } catch (HelperServiceException se) {
2879
          result.se = se;
2880
        }
3430 rajveer 2881
        return result;
1422 varun.gupt 2882
      }
2883
    }
2884
 
3430 rajveer 2885
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
2886
      public markEmailAsSent() {
2887
        super("markEmailAsSent");
2888
      }
2889
 
2890
      protected markEmailAsSent_args getEmptyArgsInstance() {
2891
        return new markEmailAsSent_args();
2892
      }
2893
 
2894
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
1422 varun.gupt 2895
        markEmailAsSent_result result = new markEmailAsSent_result();
2896
        try {
3430 rajveer 2897
          iface.markEmailAsSent(args.emailId);
1422 varun.gupt 2898
        } catch (HelperServiceException se) {
2899
          result.se = se;
2900
        }
3430 rajveer 2901
        return result;
1422 varun.gupt 2902
      }
2903
    }
2904
 
3430 rajveer 2905
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
2906
      public sendMail() {
2907
        super("sendMail");
2908
      }
2909
 
2910
      protected sendMail_args getEmptyArgsInstance() {
2911
        return new sendMail_args();
2912
      }
2913
 
2914
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
352 ashish 2915
        sendMail_result result = new sendMail_result();
2916
        try {
3430 rajveer 2917
          iface.sendMail(args.mail);
352 ashish 2918
        } catch (HelperServiceException se) {
2919
          result.se = se;
2920
        }
3430 rajveer 2921
        return result;
352 ashish 2922
      }
2923
    }
2924
 
3430 rajveer 2925
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
2926
      public sendText() {
2927
        super("sendText");
2928
      }
2929
 
2930
      protected sendText_args getEmptyArgsInstance() {
2931
        return new sendText_args();
2932
      }
2933
 
2934
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
352 ashish 2935
        sendText_result result = new sendText_result();
2936
        try {
3430 rajveer 2937
          iface.sendText(args.message);
352 ashish 2938
        } catch (HelperServiceException se) {
2939
          result.se = se;
2940
        }
3430 rajveer 2941
        return result;
352 ashish 2942
      }
2943
    }
2944
 
3430 rajveer 2945
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
2946
      public addMessage() {
2947
        super("addMessage");
2948
      }
2949
 
2950
      protected addMessage_args getEmptyArgsInstance() {
2951
        return new addMessage_args();
2952
      }
2953
 
2954
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
352 ashish 2955
        addMessage_result result = new addMessage_result();
2956
        try {
3430 rajveer 2957
          iface.addMessage(args.message);
352 ashish 2958
        } catch (HelperServiceException se) {
2959
          result.se = se;
2960
        }
3430 rajveer 2961
        return result;
352 ashish 2962
      }
2963
    }
2964
 
3430 rajveer 2965
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
2966
      public updateMessage() {
2967
        super("updateMessage");
2968
      }
2969
 
2970
      protected updateMessage_args getEmptyArgsInstance() {
2971
        return new updateMessage_args();
2972
      }
2973
 
2974
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
352 ashish 2975
        updateMessage_result result = new updateMessage_result();
2976
        try {
3430 rajveer 2977
          iface.updateMessage(args.id, args.message);
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 getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
2986
      public getMessage() {
2987
        super("getMessage");
2988
      }
2989
 
2990
      protected getMessage_args getEmptyArgsInstance() {
2991
        return new getMessage_args();
2992
      }
2993
 
2994
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
352 ashish 2995
        getMessage_result result = new getMessage_result();
2996
        try {
3430 rajveer 2997
          result.success = iface.getMessage(args.id);
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 getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
3006
      public getSubstitutedMessage() {
3007
        super("getSubstitutedMessage");
3008
      }
3009
 
3010
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
3011
        return new getSubstitutedMessage_args();
3012
      }
3013
 
3014
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
352 ashish 3015
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
3016
        try {
3430 rajveer 3017
          result.success = iface.getSubstitutedMessage(args.id, args.params);
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 addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
3026
      public addUser() {
3027
        super("addUser");
3028
      }
3029
 
3030
      protected addUser_args getEmptyArgsInstance() {
3031
        return new addUser_args();
3032
      }
3033
 
3034
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
495 rajveer 3035
        addUser_result result = new addUser_result();
3036
        try {
3430 rajveer 3037
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
495 rajveer 3038
          result.setSuccessIsSet(true);
3039
        } catch (HelperServiceException se) {
3040
          result.se = se;
3041
        }
3430 rajveer 3042
        return result;
495 rajveer 3043
      }
3044
    }
3045
 
3430 rajveer 3046
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
3047
      public deleteUser() {
3048
        super("deleteUser");
3049
      }
3050
 
3051
      protected deleteUser_args getEmptyArgsInstance() {
3052
        return new deleteUser_args();
3053
      }
3054
 
3055
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
495 rajveer 3056
        deleteUser_result result = new deleteUser_result();
3057
        try {
3430 rajveer 3058
          result.success = iface.deleteUser(args.username);
495 rajveer 3059
          result.setSuccessIsSet(true);
3060
        } catch (HelperServiceException se) {
3061
          result.se = se;
3062
        }
3430 rajveer 3063
        return result;
495 rajveer 3064
      }
3065
    }
3066
 
3430 rajveer 3067
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
3068
      public authenticateDashboardUser() {
3069
        super("authenticateDashboardUser");
3070
      }
3071
 
3072
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
3073
        return new authenticateDashboardUser_args();
3074
      }
3075
 
3076
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
2443 chandransh 3077
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
495 rajveer 3078
        try {
3430 rajveer 3079
          result.success = iface.authenticateDashboardUser(args.username, args.password);
495 rajveer 3080
        } catch (HelperServiceException se) {
3081
          result.se = se;
3082
        }
3430 rajveer 3083
        return result;
495 rajveer 3084
      }
3085
    }
3086
 
3430 rajveer 3087
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
3088
      public updatePassword() {
3089
        super("updatePassword");
3090
      }
3091
 
3092
      protected updatePassword_args getEmptyArgsInstance() {
3093
        return new updatePassword_args();
3094
      }
3095
 
3096
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
495 rajveer 3097
        updatePassword_result result = new updatePassword_result();
3098
        try {
3430 rajveer 3099
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
495 rajveer 3100
          result.setSuccessIsSet(true);
3101
        } catch (HelperServiceException se) {
3102
          result.se = se;
3103
        }
3430 rajveer 3104
        return result;
495 rajveer 3105
      }
3106
    }
3107
 
3430 rajveer 3108
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
3109
      public authenticateLogisticsUser() {
3110
        super("authenticateLogisticsUser");
3111
      }
3112
 
3113
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
3114
        return new authenticateLogisticsUser_args();
3115
      }
3116
 
3117
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
750 chandransh 3118
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
3119
        try {
3430 rajveer 3120
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
750 chandransh 3121
        } catch (HelperServiceException hse) {
3122
          result.hse = hse;
3123
        }
3430 rajveer 3124
        return result;
750 chandransh 3125
      }
3126
    }
3127
 
3430 rajveer 3128
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
3129
      public authenticateStatisticsUser() {
3130
        super("authenticateStatisticsUser");
3131
      }
3132
 
3133
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
3134
        return new authenticateStatisticsUser_args();
3135
      }
3136
 
3137
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1611 ankur.sing 3138
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
3139
        try {
3430 rajveer 3140
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1611 ankur.sing 3141
        } catch (HelperServiceException hse) {
3142
          result.hse = hse;
3143
        }
3430 rajveer 3144
        return result;
1611 ankur.sing 3145
      }
3146
    }
3147
 
3430 rajveer 3148
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
3149
      public authenticateReportUser() {
3150
        super("authenticateReportUser");
3151
      }
3152
 
3153
      protected authenticateReportUser_args getEmptyArgsInstance() {
3154
        return new authenticateReportUser_args();
3155
      }
3156
 
3157
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1891 ankur.sing 3158
        authenticateReportUser_result result = new authenticateReportUser_result();
3159
        try {
3430 rajveer 3160
          result.success = iface.authenticateReportUser(args.username, args.password);
1891 ankur.sing 3161
        } catch (HelperServiceException hse) {
3162
          result.hse = hse;
3163
        }
3430 rajveer 3164
        return result;
1891 ankur.sing 3165
      }
3166
    }
3167
 
3430 rajveer 3168
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
3169
      public getReports() {
3170
        super("getReports");
3171
      }
3172
 
3173
      protected getReports_args getEmptyArgsInstance() {
3174
        return new getReports_args();
3175
      }
3176
 
3177
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
1891 ankur.sing 3178
        getReports_result result = new getReports_result();
3430 rajveer 3179
        result.success = iface.getReports(args.role);
3180
        return result;
1891 ankur.sing 3181
      }
3182
    }
3183
 
3430 rajveer 3184
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
3185
      public authenticateCatalogUser() {
3186
        super("authenticateCatalogUser");
3187
      }
3188
 
3189
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
3190
        return new authenticateCatalogUser_args();
3191
      }
3192
 
3193
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
2024 ankur.sing 3194
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
3195
        try {
6788 rajveer 3196
          result.success = iface.authenticateCatalogUser(args.username, args.password);
2024 ankur.sing 3197
        } catch (HelperServiceException hse) {
3198
          result.hse = hse;
3199
        }
3430 rajveer 3200
        return result;
2024 ankur.sing 3201
      }
3202
    }
3203
 
4544 varun.gupt 3204
    private static class shareEntities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, shareEntities_args> {
3205
      public shareEntities() {
3206
        super("shareEntities");
3207
      }
3208
 
3209
      protected shareEntities_args getEmptyArgsInstance() {
3210
        return new shareEntities_args();
3211
      }
3212
 
3213
      protected shareEntities_result getResult(I iface, shareEntities_args args) throws org.apache.thrift.TException {
3214
        shareEntities_result result = new shareEntities_result();
3215
        try {
3216
          iface.shareEntities(args.entityIds, args.email);
3217
        } catch (HelperServiceException hse) {
3218
          result.hse = hse;
3219
        }
3220
        return result;
3221
      }
3222
    }
3223
 
4693 mandeep.dh 3224
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
3225
      public getAgents() {
3226
        super("getAgents");
3227
      }
3228
 
3229
      protected getAgents_args getEmptyArgsInstance() {
3230
        return new getAgents_args();
3231
      }
3232
 
3233
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
3234
        getAgents_result result = new getAgents_result();
3235
        result.success = iface.getAgents();
3236
        return result;
3237
      }
3238
    }
3239
 
3240
    private static class validateLogIn<I extends Iface> extends org.apache.thrift.ProcessFunction<I, validateLogIn_args> {
3241
      public validateLogIn() {
3242
        super("validateLogIn");
3243
      }
3244
 
3245
      protected validateLogIn_args getEmptyArgsInstance() {
3246
        return new validateLogIn_args();
3247
      }
3248
 
3249
      protected validateLogIn_result getResult(I iface, validateLogIn_args args) throws org.apache.thrift.TException {
3250
        validateLogIn_result result = new validateLogIn_result();
3251
        result.success = iface.validateLogIn(args.emailId, args.password);
3252
        result.setSuccessIsSet(true);
3253
        return result;
3254
      }
3255
    }
3256
 
3257
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
3258
      public updatePasswordForAgent() {
3259
        super("updatePasswordForAgent");
3260
      }
3261
 
3262
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
3263
        return new updatePasswordForAgent_args();
3264
      }
3265
 
3266
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
3267
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
3268
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
3269
        return result;
3270
      }
3271
    }
3272
 
3273
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
3274
      public getRoleNamesForAgent() {
3275
        super("getRoleNamesForAgent");
3276
      }
3277
 
3278
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
3279
        return new getRoleNamesForAgent_args();
3280
      }
3281
 
3282
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
3283
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
3284
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
3285
        return result;
3286
      }
3287
    }
3288
 
3289
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
3290
      public getPermissionsForRoleName() {
3291
        super("getPermissionsForRoleName");
3292
      }
3293
 
3294
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
3295
        return new getPermissionsForRoleName_args();
3296
      }
3297
 
3298
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
3299
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
3300
        result.success = iface.getPermissionsForRoleName(args.roleName);
3301
        return result;
3302
      }
3303
    }
3304
 
4806 varun.gupt 3305
    private static class saveQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveQuickLink_args> {
3306
      public saveQuickLink() {
3307
        super("saveQuickLink");
3308
      }
3309
 
3310
      protected saveQuickLink_args getEmptyArgsInstance() {
3311
        return new saveQuickLink_args();
3312
      }
3313
 
3314
      protected saveQuickLink_result getResult(I iface, saveQuickLink_args args) throws org.apache.thrift.TException {
3315
        saveQuickLink_result result = new saveQuickLink_result();
3316
        try {
3317
          iface.saveQuickLink(args.url, args.text);
3318
        } catch (HelperServiceException hse) {
3319
          result.hse = hse;
3320
        }
3321
        return result;
3322
      }
3323
    }
3324
 
3325
    private static class getQuickLinks<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getQuickLinks_args> {
3326
      public getQuickLinks() {
3327
        super("getQuickLinks");
3328
      }
3329
 
3330
      protected getQuickLinks_args getEmptyArgsInstance() {
3331
        return new getQuickLinks_args();
3332
      }
3333
 
3334
      protected getQuickLinks_result getResult(I iface, getQuickLinks_args args) throws org.apache.thrift.TException {
3335
        getQuickLinks_result result = new getQuickLinks_result();
3336
        try {
3337
          result.success = iface.getQuickLinks();
3338
        } catch (HelperServiceException hse) {
3339
          result.hse = hse;
3340
        }
3341
        return result;
3342
      }
3343
    }
3344
 
4996 varun.gupt 3345
    private static class updateQuickLink<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateQuickLink_args> {
3346
      public updateQuickLink() {
3347
        super("updateQuickLink");
3348
      }
3349
 
3350
      protected updateQuickLink_args getEmptyArgsInstance() {
3351
        return new updateQuickLink_args();
3352
      }
3353
 
3354
      protected updateQuickLink_result getResult(I iface, updateQuickLink_args args) throws org.apache.thrift.TException {
3355
        updateQuickLink_result result = new updateQuickLink_result();
3356
        try {
3357
          iface.updateQuickLink(args.id, args.url, args.text);
3358
        } catch (HelperServiceException hse) {
3359
          result.hse = hse;
3360
        }
3361
        return result;
3362
      }
3363
    }
3364
 
5055 varun.gupt 3365
    private static class getEmailsForNotificationsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsForNotificationsSent_args> {
3366
      public getEmailsForNotificationsSent() {
3367
        super("getEmailsForNotificationsSent");
3368
      }
3369
 
3370
      protected getEmailsForNotificationsSent_args getEmptyArgsInstance() {
3371
        return new getEmailsForNotificationsSent_args();
3372
      }
3373
 
3374
      protected getEmailsForNotificationsSent_result getResult(I iface, getEmailsForNotificationsSent_args args) throws org.apache.thrift.TException {
3375
        getEmailsForNotificationsSent_result result = new getEmailsForNotificationsSent_result();
3376
        try {
3377
          result.success = iface.getEmailsForNotificationsSent(args.startDatetime, args.endDatetime);
3378
        } catch (HelperServiceException hse) {
3379
          result.hse = hse;
3380
        }
3381
        return result;
3382
      }
3383
    }
3384
 
6322 amar.kumar 3385
    private static class getOrderConfirmationMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderConfirmationMail_args> {
3386
      public getOrderConfirmationMail() {
3387
        super("getOrderConfirmationMail");
3388
      }
3389
 
3390
      protected getOrderConfirmationMail_args getEmptyArgsInstance() {
3391
        return new getOrderConfirmationMail_args();
3392
      }
3393
 
3394
      protected getOrderConfirmationMail_result getResult(I iface, getOrderConfirmationMail_args args) throws org.apache.thrift.TException {
3395
        getOrderConfirmationMail_result result = new getOrderConfirmationMail_result();
3396
        result.success = iface.getOrderConfirmationMail(args.orderId);
3397
        return result;
3398
      }
3399
    }
3400
 
7221 kshitij.so 3401
    private static class getOrderDeliveryMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOrderDeliveryMail_args> {
3402
      public getOrderDeliveryMail() {
3403
        super("getOrderDeliveryMail");
3404
      }
3405
 
3406
      protected getOrderDeliveryMail_args getEmptyArgsInstance() {
3407
        return new getOrderDeliveryMail_args();
3408
      }
3409
 
3410
      protected getOrderDeliveryMail_result getResult(I iface, getOrderDeliveryMail_args args) throws org.apache.thrift.TException {
3411
        getOrderDeliveryMail_result result = new getOrderDeliveryMail_result();
3412
        result.success = iface.getOrderDeliveryMail(args.orderId);
3413
        return result;
3414
      }
3415
    }
3416
 
7410 amar.kumar 3417
    private static class getWarehouseIdsForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseIdsForAgent_args> {
3418
      public getWarehouseIdsForAgent() {
3419
        super("getWarehouseIdsForAgent");
3420
      }
3421
 
3422
      protected getWarehouseIdsForAgent_args getEmptyArgsInstance() {
3423
        return new getWarehouseIdsForAgent_args();
3424
      }
3425
 
3426
      protected getWarehouseIdsForAgent_result getResult(I iface, getWarehouseIdsForAgent_args args) throws org.apache.thrift.TException {
3427
        getWarehouseIdsForAgent_result result = new getWarehouseIdsForAgent_result();
3428
        result.success = iface.getWarehouseIdsForAgent(args.agentEmailId);
3429
        return result;
3430
      }
3431
    }
3432
 
12691 manish.sha 3433
    private static class saveUserSmsForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserSmsForSending_args> {
3434
      public saveUserSmsForSending() {
3435
        super("saveUserSmsForSending");
3436
      }
3437
 
3438
      protected saveUserSmsForSending_args getEmptyArgsInstance() {
3439
        return new saveUserSmsForSending_args();
3440
      }
3441
 
3442
      protected saveUserSmsForSending_result getResult(I iface, saveUserSmsForSending_args args) throws org.apache.thrift.TException {
3443
        saveUserSmsForSending_result result = new saveUserSmsForSending_result();
3444
        try {
3445
          result.success = iface.saveUserSmsForSending(args.userId, args.mobileNo, args.text, args.type);
3446
          result.setSuccessIsSet(true);
3447
        } catch (HelperServiceException se) {
3448
          result.se = se;
3449
        }
3450
        return result;
3451
      }
3452
    }
3453
 
3454
    private static class getSmsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSmsToBeSent_args> {
3455
      public getSmsToBeSent() {
3456
        super("getSmsToBeSent");
3457
      }
3458
 
3459
      protected getSmsToBeSent_args getEmptyArgsInstance() {
3460
        return new getSmsToBeSent_args();
3461
      }
3462
 
3463
      protected getSmsToBeSent_result getResult(I iface, getSmsToBeSent_args args) throws org.apache.thrift.TException {
3464
        getSmsToBeSent_result result = new getSmsToBeSent_result();
3465
        try {
3466
          result.success = iface.getSmsToBeSent();
3467
        } catch (HelperServiceException se) {
3468
          result.se = se;
3469
        }
3470
        return result;
3471
      }
3472
    }
3473
 
3474
    private static class addUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUserSmsInfo_args> {
3475
      public addUserSmsInfo() {
3476
        super("addUserSmsInfo");
3477
      }
3478
 
3479
      protected addUserSmsInfo_args getEmptyArgsInstance() {
3480
        return new addUserSmsInfo_args();
3481
      }
3482
 
3483
      protected addUserSmsInfo_result getResult(I iface, addUserSmsInfo_args args) throws org.apache.thrift.TException {
3484
        addUserSmsInfo_result result = new addUserSmsInfo_result();
3485
        try {
3486
          iface.addUserSmsInfo(args.userSmsInfo);
3487
        } catch (HelperServiceException se) {
3488
          result.se = se;
3489
        }
3490
        return result;
3491
      }
3492
    }
3493
 
3494
    private static class updateUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateUserSmsInfo_args> {
3495
      public updateUserSmsInfo() {
3496
        super("updateUserSmsInfo");
3497
      }
3498
 
3499
      protected updateUserSmsInfo_args getEmptyArgsInstance() {
3500
        return new updateUserSmsInfo_args();
3501
      }
3502
 
3503
      protected updateUserSmsInfo_result getResult(I iface, updateUserSmsInfo_args args) throws org.apache.thrift.TException {
3504
        updateUserSmsInfo_result result = new updateUserSmsInfo_result();
3505
        try {
3506
          result.success = iface.updateUserSmsInfo(args.userSmsInfo);
3507
          result.setSuccessIsSet(true);
3508
        } catch (HelperServiceException se) {
3509
          result.se = se;
3510
        }
3511
        return result;
3512
      }
3513
    }
3514
 
3515
    private static class getUserSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUserSmsInfo_args> {
3516
      public getUserSmsInfo() {
3517
        super("getUserSmsInfo");
3518
      }
3519
 
3520
      protected getUserSmsInfo_args getEmptyArgsInstance() {
3521
        return new getUserSmsInfo_args();
3522
      }
3523
 
3524
      protected getUserSmsInfo_result getResult(I iface, getUserSmsInfo_args args) throws org.apache.thrift.TException {
3525
        getUserSmsInfo_result result = new getUserSmsInfo_result();
3526
        try {
3527
          result.success = iface.getUserSmsInfo(args.userId);
3528
        } catch (HelperServiceException se) {
3529
          result.se = se;
3530
        }
3531
        return result;
3532
      }
3533
    }
3534
 
3535
    private static class getAllUsersSmsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllUsersSmsInfo_args> {
3536
      public getAllUsersSmsInfo() {
3537
        super("getAllUsersSmsInfo");
3538
      }
3539
 
3540
      protected getAllUsersSmsInfo_args getEmptyArgsInstance() {
3541
        return new getAllUsersSmsInfo_args();
3542
      }
3543
 
3544
      protected getAllUsersSmsInfo_result getResult(I iface, getAllUsersSmsInfo_args args) throws org.apache.thrift.TException {
3545
        getAllUsersSmsInfo_result result = new getAllUsersSmsInfo_result();
3546
        try {
3547
          result.success = iface.getAllUsersSmsInfo(args.dndStatus, args.smsSubscribed);
3548
        } catch (HelperServiceException se) {
3549
          result.se = se;
3550
        }
3551
        return result;
3552
      }
3553
    }
3554
 
3555
    private static class listSmsToGetDeliveryInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, listSmsToGetDeliveryInfo_args> {
3556
      public listSmsToGetDeliveryInfo() {
3557
        super("listSmsToGetDeliveryInfo");
3558
      }
3559
 
3560
      protected listSmsToGetDeliveryInfo_args getEmptyArgsInstance() {
3561
        return new listSmsToGetDeliveryInfo_args();
3562
      }
3563
 
3564
      protected listSmsToGetDeliveryInfo_result getResult(I iface, listSmsToGetDeliveryInfo_args args) throws org.apache.thrift.TException {
3565
        listSmsToGetDeliveryInfo_result result = new listSmsToGetDeliveryInfo_result();
3566
        try {
3567
          result.success = iface.listSmsToGetDeliveryInfo();
3568
        } catch (HelperServiceException se) {
3569
          result.se = se;
3570
        }
3571
        return result;
3572
      }
3573
    }
3574
 
3575
    private static class markMessagesAsSentToOperator<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSentToOperator_args> {
3576
      public markMessagesAsSentToOperator() {
3577
        super("markMessagesAsSentToOperator");
3578
      }
3579
 
3580
      protected markMessagesAsSentToOperator_args getEmptyArgsInstance() {
3581
        return new markMessagesAsSentToOperator_args();
3582
      }
3583
 
3584
      protected markMessagesAsSentToOperator_result getResult(I iface, markMessagesAsSentToOperator_args args) throws org.apache.thrift.TException {
3585
        markMessagesAsSentToOperator_result result = new markMessagesAsSentToOperator_result();
3586
        result.success = iface.markMessagesAsSentToOperator(args.userSmsList);
3587
        result.setSuccessIsSet(true);
3588
        return result;
3589
      }
3590
    }
3591
 
3592
    private static class markMessagesAsSubmittedToSmsc<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSubmittedToSmsc_args> {
3593
      public markMessagesAsSubmittedToSmsc() {
3594
        super("markMessagesAsSubmittedToSmsc");
3595
      }
3596
 
3597
      protected markMessagesAsSubmittedToSmsc_args getEmptyArgsInstance() {
3598
        return new markMessagesAsSubmittedToSmsc_args();
3599
      }
3600
 
3601
      protected markMessagesAsSubmittedToSmsc_result getResult(I iface, markMessagesAsSubmittedToSmsc_args args) throws org.apache.thrift.TException {
3602
        markMessagesAsSubmittedToSmsc_result result = new markMessagesAsSubmittedToSmsc_result();
3603
        result.success = iface.markMessagesAsSubmittedToSmsc(args.userSmsList);
3604
        result.setSuccessIsSet(true);
3605
        return result;
3606
      }
3607
    }
3608
 
3609
    private static class markMessagesAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsSent_args> {
3610
      public markMessagesAsSent() {
3611
        super("markMessagesAsSent");
3612
      }
3613
 
3614
      protected markMessagesAsSent_args getEmptyArgsInstance() {
3615
        return new markMessagesAsSent_args();
3616
      }
3617
 
3618
      protected markMessagesAsSent_result getResult(I iface, markMessagesAsSent_args args) throws org.apache.thrift.TException {
3619
        markMessagesAsSent_result result = new markMessagesAsSent_result();
3620
        result.success = iface.markMessagesAsSent(args.userSmsList);
3621
        result.setSuccessIsSet(true);
3622
        return result;
3623
      }
3624
    }
3625
 
3626
    private static class markMessagesAsRetry<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markMessagesAsRetry_args> {
3627
      public markMessagesAsRetry() {
3628
        super("markMessagesAsRetry");
3629
      }
3630
 
3631
      protected markMessagesAsRetry_args getEmptyArgsInstance() {
3632
        return new markMessagesAsRetry_args();
3633
      }
3634
 
3635
      protected markMessagesAsRetry_result getResult(I iface, markMessagesAsRetry_args args) throws org.apache.thrift.TException {
3636
        markMessagesAsRetry_result result = new markMessagesAsRetry_result();
3637
        result.success = iface.markMessagesAsRetry(args.userSmsList);
3638
        result.setSuccessIsSet(true);
3639
        return result;
3640
      }
3641
    }
3642
 
352 ashish 3643
  }
3644
 
3430 rajveer 3645
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
3646
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1395 varun.gupt 3647
 
5864 rajveer 3648
    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 3649
    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);
3650
    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);
3651
    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);
3652
    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);
3653
    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 3654
    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);
3655
    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 3656
    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 3657
 
5864 rajveer 3658
    private List<String> emailTo; // required
3430 rajveer 3659
    private String emailFrom; // required
3660
    private String subject; // required
3661
    private String body; // required
3662
    private String source; // required
3663
    private String emailType; // required
5864 rajveer 3664
    private List<String> cc; // required
3665
    private List<String> bcc; // required
8020 rajveer 3666
    private long sourceId; // required
1395 varun.gupt 3667
 
3668
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3669
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1395 varun.gupt 3670
      EMAIL_TO((short)1, "emailTo"),
3671
      EMAIL_FROM((short)2, "emailFrom"),
3672
      SUBJECT((short)3, "subject"),
3673
      BODY((short)4, "body"),
3674
      SOURCE((short)5, "source"),
5864 rajveer 3675
      EMAIL_TYPE((short)6, "emailType"),
3676
      CC((short)7, "cc"),
8020 rajveer 3677
      BCC((short)8, "bcc"),
3678
      SOURCE_ID((short)9, "sourceId");
1395 varun.gupt 3679
 
3680
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3681
 
3682
      static {
3683
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3684
          byName.put(field.getFieldName(), field);
3685
        }
3686
      }
3687
 
3688
      /**
3689
       * Find the _Fields constant that matches fieldId, or null if its not found.
3690
       */
3691
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3692
        switch(fieldId) {
3693
          case 1: // EMAIL_TO
3694
            return EMAIL_TO;
3695
          case 2: // EMAIL_FROM
3696
            return EMAIL_FROM;
3697
          case 3: // SUBJECT
3698
            return SUBJECT;
3699
          case 4: // BODY
3700
            return BODY;
3701
          case 5: // SOURCE
3702
            return SOURCE;
3703
          case 6: // EMAIL_TYPE
3704
            return EMAIL_TYPE;
5864 rajveer 3705
          case 7: // CC
3706
            return CC;
3707
          case 8: // BCC
3708
            return BCC;
8020 rajveer 3709
          case 9: // SOURCE_ID
3710
            return SOURCE_ID;
3430 rajveer 3711
          default:
3712
            return null;
3713
        }
1395 varun.gupt 3714
      }
3715
 
3716
      /**
3717
       * Find the _Fields constant that matches fieldId, throwing an exception
3718
       * if it is not found.
3719
       */
3720
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3721
        _Fields fields = findByThriftId(fieldId);
3722
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3723
        return fields;
3724
      }
3725
 
3726
      /**
3727
       * Find the _Fields constant that matches name, or null if its not found.
3728
       */
3729
      public static _Fields findByName(String name) {
3730
        return byName.get(name);
3731
      }
3732
 
3733
      private final short _thriftId;
3734
      private final String _fieldName;
3735
 
3736
      _Fields(short thriftId, String fieldName) {
3737
        _thriftId = thriftId;
3738
        _fieldName = fieldName;
3739
      }
3740
 
3741
      public short getThriftFieldId() {
3742
        return _thriftId;
3743
      }
3744
 
3745
      public String getFieldName() {
3746
        return _fieldName;
3747
      }
3748
    }
3749
 
3750
    // isset id assignments
8020 rajveer 3751
    private static final int __SOURCEID_ISSET_ID = 0;
3752
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 3753
 
3430 rajveer 3754
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 3755
    static {
3430 rajveer 3756
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3757
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5864 rajveer 3758
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3759
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3430 rajveer 3760
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3762
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3764
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3765
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3766
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3767
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
3768
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3769
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
5864 rajveer 3770
      tmpMap.put(_Fields.CC, new org.apache.thrift.meta_data.FieldMetaData("cc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3771
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3772
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
3773
      tmpMap.put(_Fields.BCC, new org.apache.thrift.meta_data.FieldMetaData("bcc", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3774
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
3775
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8020 rajveer 3776
      tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("sourceId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3777
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3430 rajveer 3778
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3779
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1395 varun.gupt 3780
    }
3781
 
3782
    public saveUserEmailForSending_args() {
3783
    }
3784
 
3785
    public saveUserEmailForSending_args(
5864 rajveer 3786
      List<String> emailTo,
1395 varun.gupt 3787
      String emailFrom,
3788
      String subject,
3789
      String body,
3790
      String source,
5864 rajveer 3791
      String emailType,
3792
      List<String> cc,
8020 rajveer 3793
      List<String> bcc,
3794
      long sourceId)
1395 varun.gupt 3795
    {
3796
      this();
3797
      this.emailTo = emailTo;
3798
      this.emailFrom = emailFrom;
3799
      this.subject = subject;
3800
      this.body = body;
3801
      this.source = source;
3802
      this.emailType = emailType;
5864 rajveer 3803
      this.cc = cc;
3804
      this.bcc = bcc;
8020 rajveer 3805
      this.sourceId = sourceId;
3806
      setSourceIdIsSet(true);
1395 varun.gupt 3807
    }
3808
 
3809
    /**
3810
     * Performs a deep copy on <i>other</i>.
3811
     */
3812
    public saveUserEmailForSending_args(saveUserEmailForSending_args other) {
8020 rajveer 3813
      __isset_bit_vector.clear();
3814
      __isset_bit_vector.or(other.__isset_bit_vector);
1395 varun.gupt 3815
      if (other.isSetEmailTo()) {
5864 rajveer 3816
        List<String> __this__emailTo = new ArrayList<String>();
3817
        for (String other_element : other.emailTo) {
3818
          __this__emailTo.add(other_element);
3819
        }
3820
        this.emailTo = __this__emailTo;
1395 varun.gupt 3821
      }
3822
      if (other.isSetEmailFrom()) {
3823
        this.emailFrom = other.emailFrom;
3824
      }
3825
      if (other.isSetSubject()) {
3826
        this.subject = other.subject;
3827
      }
3828
      if (other.isSetBody()) {
3829
        this.body = other.body;
3830
      }
3831
      if (other.isSetSource()) {
3832
        this.source = other.source;
3833
      }
3834
      if (other.isSetEmailType()) {
3835
        this.emailType = other.emailType;
3836
      }
5864 rajveer 3837
      if (other.isSetCc()) {
3838
        List<String> __this__cc = new ArrayList<String>();
3839
        for (String other_element : other.cc) {
3840
          __this__cc.add(other_element);
3841
        }
3842
        this.cc = __this__cc;
3843
      }
3844
      if (other.isSetBcc()) {
3845
        List<String> __this__bcc = new ArrayList<String>();
3846
        for (String other_element : other.bcc) {
3847
          __this__bcc.add(other_element);
3848
        }
3849
        this.bcc = __this__bcc;
3850
      }
8020 rajveer 3851
      this.sourceId = other.sourceId;
1395 varun.gupt 3852
    }
3853
 
3854
    public saveUserEmailForSending_args deepCopy() {
3855
      return new saveUserEmailForSending_args(this);
3856
    }
3857
 
3430 rajveer 3858
    @Override
3859
    public void clear() {
3860
      this.emailTo = null;
3861
      this.emailFrom = null;
3862
      this.subject = null;
3863
      this.body = null;
3864
      this.source = null;
3865
      this.emailType = null;
5864 rajveer 3866
      this.cc = null;
3867
      this.bcc = null;
8020 rajveer 3868
      setSourceIdIsSet(false);
3869
      this.sourceId = 0;
1395 varun.gupt 3870
    }
3871
 
5864 rajveer 3872
    public int getEmailToSize() {
3873
      return (this.emailTo == null) ? 0 : this.emailTo.size();
3874
    }
3875
 
3876
    public java.util.Iterator<String> getEmailToIterator() {
3877
      return (this.emailTo == null) ? null : this.emailTo.iterator();
3878
    }
3879
 
3880
    public void addToEmailTo(String elem) {
3881
      if (this.emailTo == null) {
3882
        this.emailTo = new ArrayList<String>();
3883
      }
3884
      this.emailTo.add(elem);
3885
    }
3886
 
3887
    public List<String> getEmailTo() {
1395 varun.gupt 3888
      return this.emailTo;
3889
    }
3890
 
5864 rajveer 3891
    public void setEmailTo(List<String> emailTo) {
1395 varun.gupt 3892
      this.emailTo = emailTo;
3893
    }
3894
 
3895
    public void unsetEmailTo() {
3896
      this.emailTo = null;
3897
    }
3898
 
3430 rajveer 3899
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3900
    public boolean isSetEmailTo() {
3901
      return this.emailTo != null;
3902
    }
3903
 
3904
    public void setEmailToIsSet(boolean value) {
3905
      if (!value) {
3906
        this.emailTo = null;
3907
      }
3908
    }
3909
 
3910
    public String getEmailFrom() {
3911
      return this.emailFrom;
3912
    }
3913
 
3430 rajveer 3914
    public void setEmailFrom(String emailFrom) {
1395 varun.gupt 3915
      this.emailFrom = emailFrom;
3916
    }
3917
 
3918
    public void unsetEmailFrom() {
3919
      this.emailFrom = null;
3920
    }
3921
 
3430 rajveer 3922
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3923
    public boolean isSetEmailFrom() {
3924
      return this.emailFrom != null;
3925
    }
3926
 
3927
    public void setEmailFromIsSet(boolean value) {
3928
      if (!value) {
3929
        this.emailFrom = null;
3930
      }
3931
    }
3932
 
3933
    public String getSubject() {
3934
      return this.subject;
3935
    }
3936
 
3430 rajveer 3937
    public void setSubject(String subject) {
1395 varun.gupt 3938
      this.subject = subject;
3939
    }
3940
 
3941
    public void unsetSubject() {
3942
      this.subject = null;
3943
    }
3944
 
3430 rajveer 3945
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3946
    public boolean isSetSubject() {
3947
      return this.subject != null;
3948
    }
3949
 
3950
    public void setSubjectIsSet(boolean value) {
3951
      if (!value) {
3952
        this.subject = null;
3953
      }
3954
    }
3955
 
3956
    public String getBody() {
3957
      return this.body;
3958
    }
3959
 
3430 rajveer 3960
    public void setBody(String body) {
1395 varun.gupt 3961
      this.body = body;
3962
    }
3963
 
3964
    public void unsetBody() {
3965
      this.body = null;
3966
    }
3967
 
3430 rajveer 3968
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3969
    public boolean isSetBody() {
3970
      return this.body != null;
3971
    }
3972
 
3973
    public void setBodyIsSet(boolean value) {
3974
      if (!value) {
3975
        this.body = null;
3976
      }
3977
    }
3978
 
3979
    public String getSource() {
3980
      return this.source;
3981
    }
3982
 
3430 rajveer 3983
    public void setSource(String source) {
1395 varun.gupt 3984
      this.source = source;
3985
    }
3986
 
3987
    public void unsetSource() {
3988
      this.source = null;
3989
    }
3990
 
3430 rajveer 3991
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1395 varun.gupt 3992
    public boolean isSetSource() {
3993
      return this.source != null;
3994
    }
3995
 
3996
    public void setSourceIsSet(boolean value) {
3997
      if (!value) {
3998
        this.source = null;
3999
      }
4000
    }
4001
 
4002
    public String getEmailType() {
4003
      return this.emailType;
4004
    }
4005
 
3430 rajveer 4006
    public void setEmailType(String emailType) {
1395 varun.gupt 4007
      this.emailType = emailType;
4008
    }
4009
 
4010
    public void unsetEmailType() {
4011
      this.emailType = null;
4012
    }
4013
 
3430 rajveer 4014
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4015
    public boolean isSetEmailType() {
4016
      return this.emailType != null;
4017
    }
4018
 
4019
    public void setEmailTypeIsSet(boolean value) {
4020
      if (!value) {
4021
        this.emailType = null;
4022
      }
4023
    }
4024
 
5864 rajveer 4025
    public int getCcSize() {
4026
      return (this.cc == null) ? 0 : this.cc.size();
4027
    }
4028
 
4029
    public java.util.Iterator<String> getCcIterator() {
4030
      return (this.cc == null) ? null : this.cc.iterator();
4031
    }
4032
 
4033
    public void addToCc(String elem) {
4034
      if (this.cc == null) {
4035
        this.cc = new ArrayList<String>();
4036
      }
4037
      this.cc.add(elem);
4038
    }
4039
 
4040
    public List<String> getCc() {
4041
      return this.cc;
4042
    }
4043
 
4044
    public void setCc(List<String> cc) {
4045
      this.cc = cc;
4046
    }
4047
 
4048
    public void unsetCc() {
4049
      this.cc = null;
4050
    }
4051
 
4052
    /** Returns true if field cc is set (has been assigned a value) and false otherwise */
4053
    public boolean isSetCc() {
4054
      return this.cc != null;
4055
    }
4056
 
4057
    public void setCcIsSet(boolean value) {
4058
      if (!value) {
4059
        this.cc = null;
4060
      }
4061
    }
4062
 
4063
    public int getBccSize() {
4064
      return (this.bcc == null) ? 0 : this.bcc.size();
4065
    }
4066
 
4067
    public java.util.Iterator<String> getBccIterator() {
4068
      return (this.bcc == null) ? null : this.bcc.iterator();
4069
    }
4070
 
4071
    public void addToBcc(String elem) {
4072
      if (this.bcc == null) {
4073
        this.bcc = new ArrayList<String>();
4074
      }
4075
      this.bcc.add(elem);
4076
    }
4077
 
4078
    public List<String> getBcc() {
4079
      return this.bcc;
4080
    }
4081
 
4082
    public void setBcc(List<String> bcc) {
4083
      this.bcc = bcc;
4084
    }
4085
 
4086
    public void unsetBcc() {
4087
      this.bcc = null;
4088
    }
4089
 
4090
    /** Returns true if field bcc is set (has been assigned a value) and false otherwise */
4091
    public boolean isSetBcc() {
4092
      return this.bcc != null;
4093
    }
4094
 
4095
    public void setBccIsSet(boolean value) {
4096
      if (!value) {
4097
        this.bcc = null;
4098
      }
4099
    }
4100
 
8020 rajveer 4101
    public long getSourceId() {
4102
      return this.sourceId;
4103
    }
4104
 
4105
    public void setSourceId(long sourceId) {
4106
      this.sourceId = sourceId;
4107
      setSourceIdIsSet(true);
4108
    }
4109
 
4110
    public void unsetSourceId() {
4111
      __isset_bit_vector.clear(__SOURCEID_ISSET_ID);
4112
    }
4113
 
4114
    /** Returns true if field sourceId is set (has been assigned a value) and false otherwise */
4115
    public boolean isSetSourceId() {
4116
      return __isset_bit_vector.get(__SOURCEID_ISSET_ID);
4117
    }
4118
 
4119
    public void setSourceIdIsSet(boolean value) {
4120
      __isset_bit_vector.set(__SOURCEID_ISSET_ID, value);
4121
    }
4122
 
1395 varun.gupt 4123
    public void setFieldValue(_Fields field, Object value) {
4124
      switch (field) {
4125
      case EMAIL_TO:
4126
        if (value == null) {
4127
          unsetEmailTo();
4128
        } else {
5864 rajveer 4129
          setEmailTo((List<String>)value);
1395 varun.gupt 4130
        }
4131
        break;
4132
 
4133
      case EMAIL_FROM:
4134
        if (value == null) {
4135
          unsetEmailFrom();
4136
        } else {
4137
          setEmailFrom((String)value);
4138
        }
4139
        break;
4140
 
4141
      case SUBJECT:
4142
        if (value == null) {
4143
          unsetSubject();
4144
        } else {
4145
          setSubject((String)value);
4146
        }
4147
        break;
4148
 
4149
      case BODY:
4150
        if (value == null) {
4151
          unsetBody();
4152
        } else {
4153
          setBody((String)value);
4154
        }
4155
        break;
4156
 
4157
      case SOURCE:
4158
        if (value == null) {
4159
          unsetSource();
4160
        } else {
4161
          setSource((String)value);
4162
        }
4163
        break;
4164
 
4165
      case EMAIL_TYPE:
4166
        if (value == null) {
4167
          unsetEmailType();
4168
        } else {
4169
          setEmailType((String)value);
4170
        }
4171
        break;
4172
 
5864 rajveer 4173
      case CC:
4174
        if (value == null) {
4175
          unsetCc();
4176
        } else {
4177
          setCc((List<String>)value);
4178
        }
4179
        break;
4180
 
4181
      case BCC:
4182
        if (value == null) {
4183
          unsetBcc();
4184
        } else {
4185
          setBcc((List<String>)value);
4186
        }
4187
        break;
4188
 
8020 rajveer 4189
      case SOURCE_ID:
4190
        if (value == null) {
4191
          unsetSourceId();
4192
        } else {
4193
          setSourceId((Long)value);
4194
        }
4195
        break;
4196
 
1395 varun.gupt 4197
      }
4198
    }
4199
 
4200
    public Object getFieldValue(_Fields field) {
4201
      switch (field) {
4202
      case EMAIL_TO:
4203
        return getEmailTo();
4204
 
4205
      case EMAIL_FROM:
4206
        return getEmailFrom();
4207
 
4208
      case SUBJECT:
4209
        return getSubject();
4210
 
4211
      case BODY:
4212
        return getBody();
4213
 
4214
      case SOURCE:
4215
        return getSource();
4216
 
4217
      case EMAIL_TYPE:
4218
        return getEmailType();
4219
 
5864 rajveer 4220
      case CC:
4221
        return getCc();
4222
 
4223
      case BCC:
4224
        return getBcc();
4225
 
8020 rajveer 4226
      case SOURCE_ID:
4227
        return Long.valueOf(getSourceId());
4228
 
1395 varun.gupt 4229
      }
4230
      throw new IllegalStateException();
4231
    }
4232
 
3430 rajveer 4233
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4234
    public boolean isSet(_Fields field) {
4235
      if (field == null) {
4236
        throw new IllegalArgumentException();
4237
      }
1395 varun.gupt 4238
 
4239
      switch (field) {
4240
      case EMAIL_TO:
4241
        return isSetEmailTo();
4242
      case EMAIL_FROM:
4243
        return isSetEmailFrom();
4244
      case SUBJECT:
4245
        return isSetSubject();
4246
      case BODY:
4247
        return isSetBody();
4248
      case SOURCE:
4249
        return isSetSource();
4250
      case EMAIL_TYPE:
4251
        return isSetEmailType();
5864 rajveer 4252
      case CC:
4253
        return isSetCc();
4254
      case BCC:
4255
        return isSetBcc();
8020 rajveer 4256
      case SOURCE_ID:
4257
        return isSetSourceId();
1395 varun.gupt 4258
      }
4259
      throw new IllegalStateException();
4260
    }
4261
 
4262
    @Override
4263
    public boolean equals(Object that) {
4264
      if (that == null)
4265
        return false;
4266
      if (that instanceof saveUserEmailForSending_args)
4267
        return this.equals((saveUserEmailForSending_args)that);
4268
      return false;
4269
    }
4270
 
4271
    public boolean equals(saveUserEmailForSending_args that) {
4272
      if (that == null)
4273
        return false;
4274
 
4275
      boolean this_present_emailTo = true && this.isSetEmailTo();
4276
      boolean that_present_emailTo = true && that.isSetEmailTo();
4277
      if (this_present_emailTo || that_present_emailTo) {
4278
        if (!(this_present_emailTo && that_present_emailTo))
4279
          return false;
4280
        if (!this.emailTo.equals(that.emailTo))
4281
          return false;
4282
      }
4283
 
4284
      boolean this_present_emailFrom = true && this.isSetEmailFrom();
4285
      boolean that_present_emailFrom = true && that.isSetEmailFrom();
4286
      if (this_present_emailFrom || that_present_emailFrom) {
4287
        if (!(this_present_emailFrom && that_present_emailFrom))
4288
          return false;
4289
        if (!this.emailFrom.equals(that.emailFrom))
4290
          return false;
4291
      }
4292
 
4293
      boolean this_present_subject = true && this.isSetSubject();
4294
      boolean that_present_subject = true && that.isSetSubject();
4295
      if (this_present_subject || that_present_subject) {
4296
        if (!(this_present_subject && that_present_subject))
4297
          return false;
4298
        if (!this.subject.equals(that.subject))
4299
          return false;
4300
      }
4301
 
4302
      boolean this_present_body = true && this.isSetBody();
4303
      boolean that_present_body = true && that.isSetBody();
4304
      if (this_present_body || that_present_body) {
4305
        if (!(this_present_body && that_present_body))
4306
          return false;
4307
        if (!this.body.equals(that.body))
4308
          return false;
4309
      }
4310
 
4311
      boolean this_present_source = true && this.isSetSource();
4312
      boolean that_present_source = true && that.isSetSource();
4313
      if (this_present_source || that_present_source) {
4314
        if (!(this_present_source && that_present_source))
4315
          return false;
4316
        if (!this.source.equals(that.source))
4317
          return false;
4318
      }
4319
 
4320
      boolean this_present_emailType = true && this.isSetEmailType();
4321
      boolean that_present_emailType = true && that.isSetEmailType();
4322
      if (this_present_emailType || that_present_emailType) {
4323
        if (!(this_present_emailType && that_present_emailType))
4324
          return false;
4325
        if (!this.emailType.equals(that.emailType))
4326
          return false;
4327
      }
4328
 
5864 rajveer 4329
      boolean this_present_cc = true && this.isSetCc();
4330
      boolean that_present_cc = true && that.isSetCc();
4331
      if (this_present_cc || that_present_cc) {
4332
        if (!(this_present_cc && that_present_cc))
4333
          return false;
4334
        if (!this.cc.equals(that.cc))
4335
          return false;
4336
      }
4337
 
4338
      boolean this_present_bcc = true && this.isSetBcc();
4339
      boolean that_present_bcc = true && that.isSetBcc();
4340
      if (this_present_bcc || that_present_bcc) {
4341
        if (!(this_present_bcc && that_present_bcc))
4342
          return false;
4343
        if (!this.bcc.equals(that.bcc))
4344
          return false;
4345
      }
4346
 
8020 rajveer 4347
      boolean this_present_sourceId = true;
4348
      boolean that_present_sourceId = true;
4349
      if (this_present_sourceId || that_present_sourceId) {
4350
        if (!(this_present_sourceId && that_present_sourceId))
4351
          return false;
4352
        if (this.sourceId != that.sourceId)
4353
          return false;
4354
      }
4355
 
1395 varun.gupt 4356
      return true;
4357
    }
4358
 
4359
    @Override
4360
    public int hashCode() {
4361
      return 0;
4362
    }
4363
 
4364
    public int compareTo(saveUserEmailForSending_args other) {
4365
      if (!getClass().equals(other.getClass())) {
4366
        return getClass().getName().compareTo(other.getClass().getName());
4367
      }
4368
 
4369
      int lastComparison = 0;
4370
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
4371
 
3430 rajveer 4372
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1395 varun.gupt 4373
      if (lastComparison != 0) {
4374
        return lastComparison;
4375
      }
3430 rajveer 4376
      if (isSetEmailTo()) {
4377
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
4378
        if (lastComparison != 0) {
4379
          return lastComparison;
4380
        }
1395 varun.gupt 4381
      }
3430 rajveer 4382
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1395 varun.gupt 4383
      if (lastComparison != 0) {
4384
        return lastComparison;
4385
      }
3430 rajveer 4386
      if (isSetEmailFrom()) {
4387
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
4388
        if (lastComparison != 0) {
4389
          return lastComparison;
4390
        }
1395 varun.gupt 4391
      }
3430 rajveer 4392
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1395 varun.gupt 4393
      if (lastComparison != 0) {
4394
        return lastComparison;
4395
      }
3430 rajveer 4396
      if (isSetSubject()) {
4397
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
4398
        if (lastComparison != 0) {
4399
          return lastComparison;
4400
        }
1395 varun.gupt 4401
      }
3430 rajveer 4402
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1395 varun.gupt 4403
      if (lastComparison != 0) {
4404
        return lastComparison;
4405
      }
3430 rajveer 4406
      if (isSetBody()) {
4407
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
4408
        if (lastComparison != 0) {
4409
          return lastComparison;
4410
        }
1395 varun.gupt 4411
      }
3430 rajveer 4412
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1395 varun.gupt 4413
      if (lastComparison != 0) {
4414
        return lastComparison;
4415
      }
3430 rajveer 4416
      if (isSetSource()) {
4417
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
4418
        if (lastComparison != 0) {
4419
          return lastComparison;
4420
        }
1395 varun.gupt 4421
      }
3430 rajveer 4422
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1395 varun.gupt 4423
      if (lastComparison != 0) {
4424
        return lastComparison;
4425
      }
3430 rajveer 4426
      if (isSetEmailType()) {
4427
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
4428
        if (lastComparison != 0) {
4429
          return lastComparison;
4430
        }
1395 varun.gupt 4431
      }
5864 rajveer 4432
      lastComparison = Boolean.valueOf(isSetCc()).compareTo(typedOther.isSetCc());
4433
      if (lastComparison != 0) {
4434
        return lastComparison;
4435
      }
4436
      if (isSetCc()) {
4437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.cc, typedOther.cc);
4438
        if (lastComparison != 0) {
4439
          return lastComparison;
4440
        }
4441
      }
4442
      lastComparison = Boolean.valueOf(isSetBcc()).compareTo(typedOther.isSetBcc());
4443
      if (lastComparison != 0) {
4444
        return lastComparison;
4445
      }
4446
      if (isSetBcc()) {
4447
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bcc, typedOther.bcc);
4448
        if (lastComparison != 0) {
4449
          return lastComparison;
4450
        }
4451
      }
8020 rajveer 4452
      lastComparison = Boolean.valueOf(isSetSourceId()).compareTo(typedOther.isSetSourceId());
4453
      if (lastComparison != 0) {
4454
        return lastComparison;
4455
      }
4456
      if (isSetSourceId()) {
4457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.sourceId, typedOther.sourceId);
4458
        if (lastComparison != 0) {
4459
          return lastComparison;
4460
        }
4461
      }
1395 varun.gupt 4462
      return 0;
4463
    }
4464
 
3430 rajveer 4465
    public _Fields fieldForId(int fieldId) {
4466
      return _Fields.findByThriftId(fieldId);
4467
    }
4468
 
4469
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4470
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 4471
      iprot.readStructBegin();
4472
      while (true)
4473
      {
4474
        field = iprot.readFieldBegin();
3430 rajveer 4475
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 4476
          break;
4477
        }
3430 rajveer 4478
        switch (field.id) {
4479
          case 1: // EMAIL_TO
5864 rajveer 4480
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4481
              {
4482
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
4483
                this.emailTo = new ArrayList<String>(_list20.size);
4484
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
4485
                {
4486
                  String _elem22; // required
4487
                  _elem22 = iprot.readString();
4488
                  this.emailTo.add(_elem22);
4489
                }
4490
                iprot.readListEnd();
4491
              }
3430 rajveer 4492
            } else { 
4493
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4494
            }
4495
            break;
4496
          case 2: // EMAIL_FROM
4497
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4498
              this.emailFrom = iprot.readString();
4499
            } else { 
4500
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4501
            }
4502
            break;
4503
          case 3: // SUBJECT
4504
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4505
              this.subject = iprot.readString();
4506
            } else { 
4507
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4508
            }
4509
            break;
4510
          case 4: // BODY
4511
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4512
              this.body = iprot.readString();
4513
            } else { 
4514
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4515
            }
4516
            break;
4517
          case 5: // SOURCE
4518
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4519
              this.source = iprot.readString();
4520
            } else { 
4521
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4522
            }
4523
            break;
4524
          case 6: // EMAIL_TYPE
4525
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4526
              this.emailType = iprot.readString();
4527
            } else { 
4528
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4529
            }
4530
            break;
5864 rajveer 4531
          case 7: // CC
4532
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4533
              {
4534
                org.apache.thrift.protocol.TList _list23 = iprot.readListBegin();
4535
                this.cc = new ArrayList<String>(_list23.size);
4536
                for (int _i24 = 0; _i24 < _list23.size; ++_i24)
4537
                {
4538
                  String _elem25; // required
4539
                  _elem25 = iprot.readString();
4540
                  this.cc.add(_elem25);
4541
                }
4542
                iprot.readListEnd();
4543
              }
4544
            } else { 
4545
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4546
            }
4547
            break;
4548
          case 8: // BCC
4549
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4550
              {
4551
                org.apache.thrift.protocol.TList _list26 = iprot.readListBegin();
4552
                this.bcc = new ArrayList<String>(_list26.size);
4553
                for (int _i27 = 0; _i27 < _list26.size; ++_i27)
4554
                {
4555
                  String _elem28; // required
4556
                  _elem28 = iprot.readString();
4557
                  this.bcc.add(_elem28);
4558
                }
4559
                iprot.readListEnd();
4560
              }
4561
            } else { 
4562
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4563
            }
4564
            break;
8020 rajveer 4565
          case 9: // SOURCE_ID
4566
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4567
              this.sourceId = iprot.readI64();
4568
              setSourceIdIsSet(true);
4569
            } else { 
4570
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4571
            }
4572
            break;
3430 rajveer 4573
          default:
4574
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 4575
        }
3430 rajveer 4576
        iprot.readFieldEnd();
1395 varun.gupt 4577
      }
4578
      iprot.readStructEnd();
4579
      validate();
4580
    }
4581
 
3430 rajveer 4582
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 4583
      validate();
4584
 
4585
      oprot.writeStructBegin(STRUCT_DESC);
4586
      if (this.emailTo != null) {
4587
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
5864 rajveer 4588
        {
4589
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.emailTo.size()));
4590
          for (String _iter29 : this.emailTo)
4591
          {
4592
            oprot.writeString(_iter29);
4593
          }
4594
          oprot.writeListEnd();
4595
        }
1395 varun.gupt 4596
        oprot.writeFieldEnd();
4597
      }
4598
      if (this.emailFrom != null) {
4599
        oprot.writeFieldBegin(EMAIL_FROM_FIELD_DESC);
4600
        oprot.writeString(this.emailFrom);
4601
        oprot.writeFieldEnd();
4602
      }
4603
      if (this.subject != null) {
4604
        oprot.writeFieldBegin(SUBJECT_FIELD_DESC);
4605
        oprot.writeString(this.subject);
4606
        oprot.writeFieldEnd();
4607
      }
4608
      if (this.body != null) {
4609
        oprot.writeFieldBegin(BODY_FIELD_DESC);
4610
        oprot.writeString(this.body);
4611
        oprot.writeFieldEnd();
4612
      }
4613
      if (this.source != null) {
4614
        oprot.writeFieldBegin(SOURCE_FIELD_DESC);
4615
        oprot.writeString(this.source);
4616
        oprot.writeFieldEnd();
4617
      }
4618
      if (this.emailType != null) {
4619
        oprot.writeFieldBegin(EMAIL_TYPE_FIELD_DESC);
4620
        oprot.writeString(this.emailType);
4621
        oprot.writeFieldEnd();
4622
      }
5864 rajveer 4623
      if (this.cc != null) {
4624
        oprot.writeFieldBegin(CC_FIELD_DESC);
4625
        {
4626
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.cc.size()));
4627
          for (String _iter30 : this.cc)
4628
          {
4629
            oprot.writeString(_iter30);
4630
          }
4631
          oprot.writeListEnd();
4632
        }
4633
        oprot.writeFieldEnd();
4634
      }
4635
      if (this.bcc != null) {
4636
        oprot.writeFieldBegin(BCC_FIELD_DESC);
4637
        {
4638
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.bcc.size()));
4639
          for (String _iter31 : this.bcc)
4640
          {
4641
            oprot.writeString(_iter31);
4642
          }
4643
          oprot.writeListEnd();
4644
        }
4645
        oprot.writeFieldEnd();
4646
      }
8020 rajveer 4647
      oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
4648
      oprot.writeI64(this.sourceId);
4649
      oprot.writeFieldEnd();
1395 varun.gupt 4650
      oprot.writeFieldStop();
4651
      oprot.writeStructEnd();
4652
    }
4653
 
4654
    @Override
4655
    public String toString() {
4656
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_args(");
4657
      boolean first = true;
4658
 
4659
      sb.append("emailTo:");
4660
      if (this.emailTo == null) {
4661
        sb.append("null");
4662
      } else {
4663
        sb.append(this.emailTo);
4664
      }
4665
      first = false;
4666
      if (!first) sb.append(", ");
4667
      sb.append("emailFrom:");
4668
      if (this.emailFrom == null) {
4669
        sb.append("null");
4670
      } else {
4671
        sb.append(this.emailFrom);
4672
      }
4673
      first = false;
4674
      if (!first) sb.append(", ");
4675
      sb.append("subject:");
4676
      if (this.subject == null) {
4677
        sb.append("null");
4678
      } else {
4679
        sb.append(this.subject);
4680
      }
4681
      first = false;
4682
      if (!first) sb.append(", ");
4683
      sb.append("body:");
4684
      if (this.body == null) {
4685
        sb.append("null");
4686
      } else {
4687
        sb.append(this.body);
4688
      }
4689
      first = false;
4690
      if (!first) sb.append(", ");
4691
      sb.append("source:");
4692
      if (this.source == null) {
4693
        sb.append("null");
4694
      } else {
4695
        sb.append(this.source);
4696
      }
4697
      first = false;
4698
      if (!first) sb.append(", ");
4699
      sb.append("emailType:");
4700
      if (this.emailType == null) {
4701
        sb.append("null");
4702
      } else {
4703
        sb.append(this.emailType);
4704
      }
4705
      first = false;
5864 rajveer 4706
      if (!first) sb.append(", ");
4707
      sb.append("cc:");
4708
      if (this.cc == null) {
4709
        sb.append("null");
4710
      } else {
4711
        sb.append(this.cc);
4712
      }
4713
      first = false;
4714
      if (!first) sb.append(", ");
4715
      sb.append("bcc:");
4716
      if (this.bcc == null) {
4717
        sb.append("null");
4718
      } else {
4719
        sb.append(this.bcc);
4720
      }
4721
      first = false;
8020 rajveer 4722
      if (!first) sb.append(", ");
4723
      sb.append("sourceId:");
4724
      sb.append(this.sourceId);
4725
      first = false;
1395 varun.gupt 4726
      sb.append(")");
4727
      return sb.toString();
4728
    }
4729
 
3430 rajveer 4730
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 4731
      // check for required fields
4732
    }
4733
 
3430 rajveer 4734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4735
      try {
4736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4737
      } catch (org.apache.thrift.TException te) {
4738
        throw new java.io.IOException(te);
4739
      }
4740
    }
4741
 
4742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4743
      try {
12691 manish.sha 4744
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4745
        __isset_bit_vector = new BitSet(1);
3430 rajveer 4746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4747
      } catch (org.apache.thrift.TException te) {
4748
        throw new java.io.IOException(te);
4749
      }
4750
    }
4751
 
1395 varun.gupt 4752
  }
4753
 
3430 rajveer 4754
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
4755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
1395 varun.gupt 4756
 
3430 rajveer 4757
    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);
4758
    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 4759
 
3430 rajveer 4760
    private long success; // required
4761
    private HelperServiceException se; // required
1395 varun.gupt 4762
 
4763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 4765
      SUCCESS((short)0, "success"),
1395 varun.gupt 4766
      SE((short)1, "se");
4767
 
4768
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4769
 
4770
      static {
4771
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4772
          byName.put(field.getFieldName(), field);
4773
        }
4774
      }
4775
 
4776
      /**
4777
       * Find the _Fields constant that matches fieldId, or null if its not found.
4778
       */
4779
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4780
        switch(fieldId) {
4781
          case 0: // SUCCESS
4782
            return SUCCESS;
4783
          case 1: // SE
4784
            return SE;
4785
          default:
4786
            return null;
4787
        }
1395 varun.gupt 4788
      }
4789
 
4790
      /**
4791
       * Find the _Fields constant that matches fieldId, throwing an exception
4792
       * if it is not found.
4793
       */
4794
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4795
        _Fields fields = findByThriftId(fieldId);
4796
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4797
        return fields;
4798
      }
4799
 
4800
      /**
4801
       * Find the _Fields constant that matches name, or null if its not found.
4802
       */
4803
      public static _Fields findByName(String name) {
4804
        return byName.get(name);
4805
      }
4806
 
4807
      private final short _thriftId;
4808
      private final String _fieldName;
4809
 
4810
      _Fields(short thriftId, String fieldName) {
4811
        _thriftId = thriftId;
4812
        _fieldName = fieldName;
4813
      }
4814
 
4815
      public short getThriftFieldId() {
4816
        return _thriftId;
4817
      }
4818
 
4819
      public String getFieldName() {
4820
        return _fieldName;
4821
      }
4822
    }
4823
 
4824
    // isset id assignments
3206 mandeep.dh 4825
    private static final int __SUCCESS_ISSET_ID = 0;
4826
    private BitSet __isset_bit_vector = new BitSet(1);
1395 varun.gupt 4827
 
3430 rajveer 4828
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1395 varun.gupt 4829
    static {
3430 rajveer 4830
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4831
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4833
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4834
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
4835
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4836
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
1395 varun.gupt 4837
    }
4838
 
4839
    public saveUserEmailForSending_result() {
4840
    }
4841
 
4842
    public saveUserEmailForSending_result(
3206 mandeep.dh 4843
      long success,
1395 varun.gupt 4844
      HelperServiceException se)
4845
    {
4846
      this();
3206 mandeep.dh 4847
      this.success = success;
4848
      setSuccessIsSet(true);
1395 varun.gupt 4849
      this.se = se;
4850
    }
4851
 
4852
    /**
4853
     * Performs a deep copy on <i>other</i>.
4854
     */
4855
    public saveUserEmailForSending_result(saveUserEmailForSending_result other) {
3206 mandeep.dh 4856
      __isset_bit_vector.clear();
4857
      __isset_bit_vector.or(other.__isset_bit_vector);
4858
      this.success = other.success;
1395 varun.gupt 4859
      if (other.isSetSe()) {
4860
        this.se = new HelperServiceException(other.se);
4861
      }
4862
    }
4863
 
4864
    public saveUserEmailForSending_result deepCopy() {
4865
      return new saveUserEmailForSending_result(this);
4866
    }
4867
 
3430 rajveer 4868
    @Override
4869
    public void clear() {
4870
      setSuccessIsSet(false);
4871
      this.success = 0;
4872
      this.se = null;
1395 varun.gupt 4873
    }
4874
 
3206 mandeep.dh 4875
    public long getSuccess() {
4876
      return this.success;
4877
    }
4878
 
3430 rajveer 4879
    public void setSuccess(long success) {
3206 mandeep.dh 4880
      this.success = success;
4881
      setSuccessIsSet(true);
4882
    }
4883
 
4884
    public void unsetSuccess() {
4885
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
4886
    }
4887
 
3430 rajveer 4888
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 4889
    public boolean isSetSuccess() {
4890
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
4891
    }
4892
 
4893
    public void setSuccessIsSet(boolean value) {
4894
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
4895
    }
4896
 
1395 varun.gupt 4897
    public HelperServiceException getSe() {
4898
      return this.se;
4899
    }
4900
 
3430 rajveer 4901
    public void setSe(HelperServiceException se) {
1395 varun.gupt 4902
      this.se = se;
4903
    }
4904
 
4905
    public void unsetSe() {
4906
      this.se = null;
4907
    }
4908
 
3430 rajveer 4909
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1395 varun.gupt 4910
    public boolean isSetSe() {
4911
      return this.se != null;
4912
    }
4913
 
4914
    public void setSeIsSet(boolean value) {
4915
      if (!value) {
4916
        this.se = null;
4917
      }
4918
    }
4919
 
4920
    public void setFieldValue(_Fields field, Object value) {
4921
      switch (field) {
3206 mandeep.dh 4922
      case SUCCESS:
4923
        if (value == null) {
4924
          unsetSuccess();
4925
        } else {
4926
          setSuccess((Long)value);
4927
        }
4928
        break;
4929
 
1395 varun.gupt 4930
      case SE:
4931
        if (value == null) {
4932
          unsetSe();
4933
        } else {
4934
          setSe((HelperServiceException)value);
4935
        }
4936
        break;
4937
 
4938
      }
4939
    }
4940
 
4941
    public Object getFieldValue(_Fields field) {
4942
      switch (field) {
3206 mandeep.dh 4943
      case SUCCESS:
3430 rajveer 4944
        return Long.valueOf(getSuccess());
3206 mandeep.dh 4945
 
1395 varun.gupt 4946
      case SE:
4947
        return getSe();
4948
 
4949
      }
4950
      throw new IllegalStateException();
4951
    }
4952
 
3430 rajveer 4953
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4954
    public boolean isSet(_Fields field) {
4955
      if (field == null) {
4956
        throw new IllegalArgumentException();
4957
      }
1395 varun.gupt 4958
 
4959
      switch (field) {
3206 mandeep.dh 4960
      case SUCCESS:
4961
        return isSetSuccess();
1395 varun.gupt 4962
      case SE:
4963
        return isSetSe();
4964
      }
4965
      throw new IllegalStateException();
4966
    }
4967
 
4968
    @Override
4969
    public boolean equals(Object that) {
4970
      if (that == null)
4971
        return false;
4972
      if (that instanceof saveUserEmailForSending_result)
4973
        return this.equals((saveUserEmailForSending_result)that);
4974
      return false;
4975
    }
4976
 
4977
    public boolean equals(saveUserEmailForSending_result that) {
4978
      if (that == null)
4979
        return false;
4980
 
3206 mandeep.dh 4981
      boolean this_present_success = true;
4982
      boolean that_present_success = true;
4983
      if (this_present_success || that_present_success) {
4984
        if (!(this_present_success && that_present_success))
4985
          return false;
4986
        if (this.success != that.success)
4987
          return false;
4988
      }
4989
 
1395 varun.gupt 4990
      boolean this_present_se = true && this.isSetSe();
4991
      boolean that_present_se = true && that.isSetSe();
4992
      if (this_present_se || that_present_se) {
4993
        if (!(this_present_se && that_present_se))
4994
          return false;
4995
        if (!this.se.equals(that.se))
4996
          return false;
4997
      }
4998
 
4999
      return true;
5000
    }
5001
 
5002
    @Override
5003
    public int hashCode() {
5004
      return 0;
5005
    }
5006
 
5007
    public int compareTo(saveUserEmailForSending_result other) {
5008
      if (!getClass().equals(other.getClass())) {
5009
        return getClass().getName().compareTo(other.getClass().getName());
5010
      }
5011
 
5012
      int lastComparison = 0;
5013
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
5014
 
3430 rajveer 5015
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3206 mandeep.dh 5016
      if (lastComparison != 0) {
5017
        return lastComparison;
5018
      }
3430 rajveer 5019
      if (isSetSuccess()) {
5020
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5021
        if (lastComparison != 0) {
5022
          return lastComparison;
5023
        }
3206 mandeep.dh 5024
      }
3430 rajveer 5025
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1395 varun.gupt 5026
      if (lastComparison != 0) {
5027
        return lastComparison;
5028
      }
3430 rajveer 5029
      if (isSetSe()) {
5030
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5031
        if (lastComparison != 0) {
5032
          return lastComparison;
5033
        }
1395 varun.gupt 5034
      }
5035
      return 0;
5036
    }
5037
 
3430 rajveer 5038
    public _Fields fieldForId(int fieldId) {
5039
      return _Fields.findByThriftId(fieldId);
5040
    }
5041
 
5042
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5043
      org.apache.thrift.protocol.TField field;
1395 varun.gupt 5044
      iprot.readStructBegin();
5045
      while (true)
5046
      {
5047
        field = iprot.readFieldBegin();
3430 rajveer 5048
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1395 varun.gupt 5049
          break;
5050
        }
3430 rajveer 5051
        switch (field.id) {
5052
          case 0: // SUCCESS
5053
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5054
              this.success = iprot.readI64();
5055
              setSuccessIsSet(true);
5056
            } else { 
5057
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5058
            }
5059
            break;
5060
          case 1: // SE
5061
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5062
              this.se = new HelperServiceException();
5063
              this.se.read(iprot);
5064
            } else { 
5065
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5066
            }
5067
            break;
5068
          default:
5069
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1395 varun.gupt 5070
        }
3430 rajveer 5071
        iprot.readFieldEnd();
1395 varun.gupt 5072
      }
5073
      iprot.readStructEnd();
5074
      validate();
5075
    }
5076
 
3430 rajveer 5077
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1395 varun.gupt 5078
      oprot.writeStructBegin(STRUCT_DESC);
5079
 
3206 mandeep.dh 5080
      if (this.isSetSuccess()) {
5081
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5082
        oprot.writeI64(this.success);
5083
        oprot.writeFieldEnd();
5084
      } else if (this.isSetSe()) {
1395 varun.gupt 5085
        oprot.writeFieldBegin(SE_FIELD_DESC);
5086
        this.se.write(oprot);
5087
        oprot.writeFieldEnd();
5088
      }
5089
      oprot.writeFieldStop();
5090
      oprot.writeStructEnd();
5091
    }
5092
 
5093
    @Override
5094
    public String toString() {
5095
      StringBuilder sb = new StringBuilder("saveUserEmailForSending_result(");
5096
      boolean first = true;
5097
 
3206 mandeep.dh 5098
      sb.append("success:");
5099
      sb.append(this.success);
5100
      first = false;
5101
      if (!first) sb.append(", ");
1395 varun.gupt 5102
      sb.append("se:");
5103
      if (this.se == null) {
5104
        sb.append("null");
5105
      } else {
5106
        sb.append(this.se);
5107
      }
5108
      first = false;
5109
      sb.append(")");
5110
      return sb.toString();
5111
    }
5112
 
3430 rajveer 5113
    public void validate() throws org.apache.thrift.TException {
1395 varun.gupt 5114
      // check for required fields
5115
    }
5116
 
3430 rajveer 5117
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5118
      try {
5119
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5120
      } catch (org.apache.thrift.TException te) {
5121
        throw new java.io.IOException(te);
5122
      }
5123
    }
5124
 
5125
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5126
      try {
5127
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5128
      } catch (org.apache.thrift.TException te) {
5129
        throw new java.io.IOException(te);
5130
      }
5131
    }
5132
 
1395 varun.gupt 5133
  }
5134
 
3430 rajveer 5135
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
5136
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
1422 varun.gupt 5137
 
5138
 
5139
 
5140
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5141
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3086 rajveer 5142
;
1422 varun.gupt 5143
 
5144
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5145
 
5146
      static {
5147
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5148
          byName.put(field.getFieldName(), field);
5149
        }
5150
      }
5151
 
5152
      /**
5153
       * Find the _Fields constant that matches fieldId, or null if its not found.
5154
       */
5155
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5156
        switch(fieldId) {
5157
          default:
5158
            return null;
5159
        }
1422 varun.gupt 5160
      }
5161
 
5162
      /**
5163
       * Find the _Fields constant that matches fieldId, throwing an exception
5164
       * if it is not found.
5165
       */
5166
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5167
        _Fields fields = findByThriftId(fieldId);
5168
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5169
        return fields;
5170
      }
5171
 
5172
      /**
5173
       * Find the _Fields constant that matches name, or null if its not found.
5174
       */
5175
      public static _Fields findByName(String name) {
5176
        return byName.get(name);
5177
      }
5178
 
5179
      private final short _thriftId;
5180
      private final String _fieldName;
5181
 
5182
      _Fields(short thriftId, String fieldName) {
5183
        _thriftId = thriftId;
5184
        _fieldName = fieldName;
5185
      }
5186
 
5187
      public short getThriftFieldId() {
5188
        return _thriftId;
5189
      }
5190
 
5191
      public String getFieldName() {
5192
        return _fieldName;
5193
      }
5194
    }
3430 rajveer 5195
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5196
    static {
3430 rajveer 5197
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5198
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5199
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
1422 varun.gupt 5200
    }
5201
 
5202
    public getEmailsToBeSent_args() {
5203
    }
5204
 
5205
    /**
5206
     * Performs a deep copy on <i>other</i>.
5207
     */
5208
    public getEmailsToBeSent_args(getEmailsToBeSent_args other) {
5209
    }
5210
 
5211
    public getEmailsToBeSent_args deepCopy() {
5212
      return new getEmailsToBeSent_args(this);
5213
    }
5214
 
3430 rajveer 5215
    @Override
5216
    public void clear() {
1422 varun.gupt 5217
    }
5218
 
5219
    public void setFieldValue(_Fields field, Object value) {
5220
      switch (field) {
5221
      }
5222
    }
5223
 
5224
    public Object getFieldValue(_Fields field) {
5225
      switch (field) {
5226
      }
5227
      throw new IllegalStateException();
5228
    }
5229
 
3430 rajveer 5230
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5231
    public boolean isSet(_Fields field) {
5232
      if (field == null) {
5233
        throw new IllegalArgumentException();
5234
      }
1422 varun.gupt 5235
 
5236
      switch (field) {
5237
      }
5238
      throw new IllegalStateException();
5239
    }
5240
 
5241
    @Override
5242
    public boolean equals(Object that) {
5243
      if (that == null)
5244
        return false;
5245
      if (that instanceof getEmailsToBeSent_args)
5246
        return this.equals((getEmailsToBeSent_args)that);
5247
      return false;
5248
    }
5249
 
5250
    public boolean equals(getEmailsToBeSent_args that) {
5251
      if (that == null)
5252
        return false;
5253
 
5254
      return true;
5255
    }
5256
 
5257
    @Override
5258
    public int hashCode() {
5259
      return 0;
5260
    }
5261
 
5262
    public int compareTo(getEmailsToBeSent_args other) {
5263
      if (!getClass().equals(other.getClass())) {
5264
        return getClass().getName().compareTo(other.getClass().getName());
5265
      }
5266
 
5267
      int lastComparison = 0;
5268
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
5269
 
5270
      return 0;
5271
    }
5272
 
3430 rajveer 5273
    public _Fields fieldForId(int fieldId) {
5274
      return _Fields.findByThriftId(fieldId);
5275
    }
5276
 
5277
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5278
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5279
      iprot.readStructBegin();
5280
      while (true)
5281
      {
5282
        field = iprot.readFieldBegin();
3430 rajveer 5283
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5284
          break;
5285
        }
3430 rajveer 5286
        switch (field.id) {
5287
          default:
5288
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5289
        }
3430 rajveer 5290
        iprot.readFieldEnd();
1422 varun.gupt 5291
      }
5292
      iprot.readStructEnd();
5293
      validate();
5294
    }
5295
 
3430 rajveer 5296
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5297
      validate();
5298
 
5299
      oprot.writeStructBegin(STRUCT_DESC);
5300
      oprot.writeFieldStop();
5301
      oprot.writeStructEnd();
5302
    }
5303
 
5304
    @Override
5305
    public String toString() {
5306
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_args(");
5307
      boolean first = true;
5308
 
5309
      sb.append(")");
5310
      return sb.toString();
5311
    }
5312
 
3430 rajveer 5313
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5314
      // check for required fields
5315
    }
5316
 
3430 rajveer 5317
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5318
      try {
5319
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5320
      } catch (org.apache.thrift.TException te) {
5321
        throw new java.io.IOException(te);
5322
      }
5323
    }
5324
 
5325
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5326
      try {
5327
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5328
      } catch (org.apache.thrift.TException te) {
5329
        throw new java.io.IOException(te);
5330
      }
5331
    }
5332
 
1422 varun.gupt 5333
  }
5334
 
3430 rajveer 5335
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
5336
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
1422 varun.gupt 5337
 
3430 rajveer 5338
    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);
5339
    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 5340
 
3430 rajveer 5341
    private List<UserEmail> success; // required
5342
    private HelperServiceException se; // required
1422 varun.gupt 5343
 
5344
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5345
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 5346
      SUCCESS((short)0, "success"),
5347
      SE((short)1, "se");
5348
 
5349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5350
 
5351
      static {
5352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5353
          byName.put(field.getFieldName(), field);
5354
        }
5355
      }
5356
 
5357
      /**
5358
       * Find the _Fields constant that matches fieldId, or null if its not found.
5359
       */
5360
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5361
        switch(fieldId) {
5362
          case 0: // SUCCESS
5363
            return SUCCESS;
5364
          case 1: // SE
5365
            return SE;
5366
          default:
5367
            return null;
5368
        }
1422 varun.gupt 5369
      }
5370
 
5371
      /**
5372
       * Find the _Fields constant that matches fieldId, throwing an exception
5373
       * if it is not found.
5374
       */
5375
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5376
        _Fields fields = findByThriftId(fieldId);
5377
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5378
        return fields;
5379
      }
5380
 
5381
      /**
5382
       * Find the _Fields constant that matches name, or null if its not found.
5383
       */
5384
      public static _Fields findByName(String name) {
5385
        return byName.get(name);
5386
      }
5387
 
5388
      private final short _thriftId;
5389
      private final String _fieldName;
5390
 
5391
      _Fields(short thriftId, String fieldName) {
5392
        _thriftId = thriftId;
5393
        _fieldName = fieldName;
5394
      }
5395
 
5396
      public short getThriftFieldId() {
5397
        return _thriftId;
5398
      }
5399
 
5400
      public String getFieldName() {
5401
        return _fieldName;
5402
      }
5403
    }
5404
 
5405
    // isset id assignments
5406
 
3430 rajveer 5407
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5408
    static {
3430 rajveer 5409
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5410
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5411
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
5412
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
5413
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5414
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
5415
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5416
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
1422 varun.gupt 5417
    }
5418
 
5419
    public getEmailsToBeSent_result() {
5420
    }
5421
 
5422
    public getEmailsToBeSent_result(
5423
      List<UserEmail> success,
5424
      HelperServiceException se)
5425
    {
5426
      this();
5427
      this.success = success;
5428
      this.se = se;
5429
    }
5430
 
5431
    /**
5432
     * Performs a deep copy on <i>other</i>.
5433
     */
5434
    public getEmailsToBeSent_result(getEmailsToBeSent_result other) {
5435
      if (other.isSetSuccess()) {
5436
        List<UserEmail> __this__success = new ArrayList<UserEmail>();
5437
        for (UserEmail other_element : other.success) {
5438
          __this__success.add(new UserEmail(other_element));
5439
        }
5440
        this.success = __this__success;
5441
      }
5442
      if (other.isSetSe()) {
5443
        this.se = new HelperServiceException(other.se);
5444
      }
5445
    }
5446
 
5447
    public getEmailsToBeSent_result deepCopy() {
5448
      return new getEmailsToBeSent_result(this);
5449
    }
5450
 
3430 rajveer 5451
    @Override
5452
    public void clear() {
5453
      this.success = null;
5454
      this.se = null;
1422 varun.gupt 5455
    }
5456
 
5457
    public int getSuccessSize() {
5458
      return (this.success == null) ? 0 : this.success.size();
5459
    }
5460
 
5461
    public java.util.Iterator<UserEmail> getSuccessIterator() {
5462
      return (this.success == null) ? null : this.success.iterator();
5463
    }
5464
 
5465
    public void addToSuccess(UserEmail elem) {
5466
      if (this.success == null) {
5467
        this.success = new ArrayList<UserEmail>();
5468
      }
5469
      this.success.add(elem);
5470
    }
5471
 
5472
    public List<UserEmail> getSuccess() {
5473
      return this.success;
5474
    }
5475
 
3430 rajveer 5476
    public void setSuccess(List<UserEmail> success) {
1422 varun.gupt 5477
      this.success = success;
5478
    }
5479
 
5480
    public void unsetSuccess() {
5481
      this.success = null;
5482
    }
5483
 
3430 rajveer 5484
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5485
    public boolean isSetSuccess() {
5486
      return this.success != null;
5487
    }
5488
 
5489
    public void setSuccessIsSet(boolean value) {
5490
      if (!value) {
5491
        this.success = null;
5492
      }
5493
    }
5494
 
5495
    public HelperServiceException getSe() {
5496
      return this.se;
5497
    }
5498
 
3430 rajveer 5499
    public void setSe(HelperServiceException se) {
1422 varun.gupt 5500
      this.se = se;
5501
    }
5502
 
5503
    public void unsetSe() {
5504
      this.se = null;
5505
    }
5506
 
3430 rajveer 5507
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5508
    public boolean isSetSe() {
5509
      return this.se != null;
5510
    }
5511
 
5512
    public void setSeIsSet(boolean value) {
5513
      if (!value) {
5514
        this.se = null;
5515
      }
5516
    }
5517
 
5518
    public void setFieldValue(_Fields field, Object value) {
5519
      switch (field) {
5520
      case SUCCESS:
5521
        if (value == null) {
5522
          unsetSuccess();
5523
        } else {
5524
          setSuccess((List<UserEmail>)value);
5525
        }
5526
        break;
5527
 
5528
      case SE:
5529
        if (value == null) {
5530
          unsetSe();
5531
        } else {
5532
          setSe((HelperServiceException)value);
5533
        }
5534
        break;
5535
 
5536
      }
5537
    }
5538
 
5539
    public Object getFieldValue(_Fields field) {
5540
      switch (field) {
5541
      case SUCCESS:
5542
        return getSuccess();
5543
 
5544
      case SE:
5545
        return getSe();
5546
 
5547
      }
5548
      throw new IllegalStateException();
5549
    }
5550
 
3430 rajveer 5551
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5552
    public boolean isSet(_Fields field) {
5553
      if (field == null) {
5554
        throw new IllegalArgumentException();
5555
      }
1422 varun.gupt 5556
 
5557
      switch (field) {
5558
      case SUCCESS:
5559
        return isSetSuccess();
5560
      case SE:
5561
        return isSetSe();
5562
      }
5563
      throw new IllegalStateException();
5564
    }
5565
 
5566
    @Override
5567
    public boolean equals(Object that) {
5568
      if (that == null)
5569
        return false;
5570
      if (that instanceof getEmailsToBeSent_result)
5571
        return this.equals((getEmailsToBeSent_result)that);
5572
      return false;
5573
    }
5574
 
5575
    public boolean equals(getEmailsToBeSent_result that) {
5576
      if (that == null)
5577
        return false;
5578
 
5579
      boolean this_present_success = true && this.isSetSuccess();
5580
      boolean that_present_success = true && that.isSetSuccess();
5581
      if (this_present_success || that_present_success) {
5582
        if (!(this_present_success && that_present_success))
5583
          return false;
5584
        if (!this.success.equals(that.success))
5585
          return false;
5586
      }
5587
 
5588
      boolean this_present_se = true && this.isSetSe();
5589
      boolean that_present_se = true && that.isSetSe();
5590
      if (this_present_se || that_present_se) {
5591
        if (!(this_present_se && that_present_se))
5592
          return false;
5593
        if (!this.se.equals(that.se))
5594
          return false;
5595
      }
5596
 
5597
      return true;
5598
    }
5599
 
5600
    @Override
5601
    public int hashCode() {
5602
      return 0;
5603
    }
5604
 
5605
    public int compareTo(getEmailsToBeSent_result other) {
5606
      if (!getClass().equals(other.getClass())) {
5607
        return getClass().getName().compareTo(other.getClass().getName());
5608
      }
5609
 
5610
      int lastComparison = 0;
5611
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
5612
 
3430 rajveer 5613
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1422 varun.gupt 5614
      if (lastComparison != 0) {
5615
        return lastComparison;
5616
      }
3430 rajveer 5617
      if (isSetSuccess()) {
5618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5619
        if (lastComparison != 0) {
5620
          return lastComparison;
5621
        }
1422 varun.gupt 5622
      }
3430 rajveer 5623
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 5624
      if (lastComparison != 0) {
5625
        return lastComparison;
5626
      }
3430 rajveer 5627
      if (isSetSe()) {
5628
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5629
        if (lastComparison != 0) {
5630
          return lastComparison;
5631
        }
1422 varun.gupt 5632
      }
5633
      return 0;
5634
    }
5635
 
3430 rajveer 5636
    public _Fields fieldForId(int fieldId) {
5637
      return _Fields.findByThriftId(fieldId);
5638
    }
5639
 
5640
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5641
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5642
      iprot.readStructBegin();
5643
      while (true)
5644
      {
5645
        field = iprot.readFieldBegin();
3430 rajveer 5646
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5647
          break;
5648
        }
3430 rajveer 5649
        switch (field.id) {
5650
          case 0: // SUCCESS
5651
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5652
              {
5864 rajveer 5653
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
5654
                this.success = new ArrayList<UserEmail>(_list32.size);
5655
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
1422 varun.gupt 5656
                {
5864 rajveer 5657
                  UserEmail _elem34; // required
5658
                  _elem34 = new UserEmail();
5659
                  _elem34.read(iprot);
5660
                  this.success.add(_elem34);
1422 varun.gupt 5661
                }
3430 rajveer 5662
                iprot.readListEnd();
1422 varun.gupt 5663
              }
3430 rajveer 5664
            } else { 
5665
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5666
            }
5667
            break;
5668
          case 1: // SE
5669
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5670
              this.se = new HelperServiceException();
5671
              this.se.read(iprot);
5672
            } else { 
5673
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5674
            }
5675
            break;
5676
          default:
5677
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5678
        }
3430 rajveer 5679
        iprot.readFieldEnd();
1422 varun.gupt 5680
      }
5681
      iprot.readStructEnd();
5682
      validate();
5683
    }
5684
 
3430 rajveer 5685
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 5686
      oprot.writeStructBegin(STRUCT_DESC);
5687
 
5688
      if (this.isSetSuccess()) {
5689
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5690
        {
3430 rajveer 5691
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 5692
          for (UserEmail _iter35 : this.success)
1422 varun.gupt 5693
          {
5864 rajveer 5694
            _iter35.write(oprot);
1422 varun.gupt 5695
          }
5696
          oprot.writeListEnd();
5697
        }
5698
        oprot.writeFieldEnd();
5699
      } else if (this.isSetSe()) {
5700
        oprot.writeFieldBegin(SE_FIELD_DESC);
5701
        this.se.write(oprot);
5702
        oprot.writeFieldEnd();
5703
      }
5704
      oprot.writeFieldStop();
5705
      oprot.writeStructEnd();
5706
    }
5707
 
5708
    @Override
5709
    public String toString() {
5710
      StringBuilder sb = new StringBuilder("getEmailsToBeSent_result(");
5711
      boolean first = true;
5712
 
5713
      sb.append("success:");
5714
      if (this.success == null) {
5715
        sb.append("null");
5716
      } else {
5717
        sb.append(this.success);
5718
      }
5719
      first = false;
5720
      if (!first) sb.append(", ");
5721
      sb.append("se:");
5722
      if (this.se == null) {
5723
        sb.append("null");
5724
      } else {
5725
        sb.append(this.se);
5726
      }
5727
      first = false;
5728
      sb.append(")");
5729
      return sb.toString();
5730
    }
5731
 
3430 rajveer 5732
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 5733
      // check for required fields
5734
    }
5735
 
3430 rajveer 5736
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5737
      try {
5738
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5739
      } catch (org.apache.thrift.TException te) {
5740
        throw new java.io.IOException(te);
5741
      }
5742
    }
5743
 
5744
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5745
      try {
5746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5747
      } catch (org.apache.thrift.TException te) {
5748
        throw new java.io.IOException(te);
5749
      }
5750
    }
5751
 
1422 varun.gupt 5752
  }
5753
 
3430 rajveer 5754
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
5755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
1422 varun.gupt 5756
 
3430 rajveer 5757
    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 5758
 
3430 rajveer 5759
    private long emailId; // required
1422 varun.gupt 5760
 
5761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 5763
      EMAIL_ID((short)1, "emailId");
5764
 
5765
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5766
 
5767
      static {
5768
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5769
          byName.put(field.getFieldName(), field);
5770
        }
5771
      }
5772
 
5773
      /**
5774
       * Find the _Fields constant that matches fieldId, or null if its not found.
5775
       */
5776
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5777
        switch(fieldId) {
5778
          case 1: // EMAIL_ID
5779
            return EMAIL_ID;
5780
          default:
5781
            return null;
5782
        }
1422 varun.gupt 5783
      }
5784
 
5785
      /**
5786
       * Find the _Fields constant that matches fieldId, throwing an exception
5787
       * if it is not found.
5788
       */
5789
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5790
        _Fields fields = findByThriftId(fieldId);
5791
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5792
        return fields;
5793
      }
5794
 
5795
      /**
5796
       * Find the _Fields constant that matches name, or null if its not found.
5797
       */
5798
      public static _Fields findByName(String name) {
5799
        return byName.get(name);
5800
      }
5801
 
5802
      private final short _thriftId;
5803
      private final String _fieldName;
5804
 
5805
      _Fields(short thriftId, String fieldName) {
5806
        _thriftId = thriftId;
5807
        _fieldName = fieldName;
5808
      }
5809
 
5810
      public short getThriftFieldId() {
5811
        return _thriftId;
5812
      }
5813
 
5814
      public String getFieldName() {
5815
        return _fieldName;
5816
      }
5817
    }
5818
 
5819
    // isset id assignments
5820
    private static final int __EMAILID_ISSET_ID = 0;
5821
    private BitSet __isset_bit_vector = new BitSet(1);
5822
 
3430 rajveer 5823
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 5824
    static {
3430 rajveer 5825
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5826
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5827
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5828
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5829
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
1422 varun.gupt 5830
    }
5831
 
5832
    public markEmailAsSent_args() {
5833
    }
5834
 
5835
    public markEmailAsSent_args(
5836
      long emailId)
5837
    {
5838
      this();
5839
      this.emailId = emailId;
5840
      setEmailIdIsSet(true);
5841
    }
5842
 
5843
    /**
5844
     * Performs a deep copy on <i>other</i>.
5845
     */
5846
    public markEmailAsSent_args(markEmailAsSent_args other) {
5847
      __isset_bit_vector.clear();
5848
      __isset_bit_vector.or(other.__isset_bit_vector);
5849
      this.emailId = other.emailId;
5850
    }
5851
 
5852
    public markEmailAsSent_args deepCopy() {
5853
      return new markEmailAsSent_args(this);
5854
    }
5855
 
3430 rajveer 5856
    @Override
5857
    public void clear() {
5858
      setEmailIdIsSet(false);
5859
      this.emailId = 0;
1422 varun.gupt 5860
    }
5861
 
5862
    public long getEmailId() {
5863
      return this.emailId;
5864
    }
5865
 
3430 rajveer 5866
    public void setEmailId(long emailId) {
1422 varun.gupt 5867
      this.emailId = emailId;
5868
      setEmailIdIsSet(true);
5869
    }
5870
 
5871
    public void unsetEmailId() {
5872
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
5873
    }
5874
 
3430 rajveer 5875
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
1422 varun.gupt 5876
    public boolean isSetEmailId() {
5877
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
5878
    }
5879
 
5880
    public void setEmailIdIsSet(boolean value) {
5881
      __isset_bit_vector.set(__EMAILID_ISSET_ID, value);
5882
    }
5883
 
5884
    public void setFieldValue(_Fields field, Object value) {
5885
      switch (field) {
5886
      case EMAIL_ID:
5887
        if (value == null) {
5888
          unsetEmailId();
5889
        } else {
5890
          setEmailId((Long)value);
5891
        }
5892
        break;
5893
 
5894
      }
5895
    }
5896
 
5897
    public Object getFieldValue(_Fields field) {
5898
      switch (field) {
5899
      case EMAIL_ID:
3430 rajveer 5900
        return Long.valueOf(getEmailId());
1422 varun.gupt 5901
 
5902
      }
5903
      throw new IllegalStateException();
5904
    }
5905
 
3430 rajveer 5906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5907
    public boolean isSet(_Fields field) {
5908
      if (field == null) {
5909
        throw new IllegalArgumentException();
5910
      }
1422 varun.gupt 5911
 
5912
      switch (field) {
5913
      case EMAIL_ID:
5914
        return isSetEmailId();
5915
      }
5916
      throw new IllegalStateException();
5917
    }
5918
 
5919
    @Override
5920
    public boolean equals(Object that) {
5921
      if (that == null)
5922
        return false;
5923
      if (that instanceof markEmailAsSent_args)
5924
        return this.equals((markEmailAsSent_args)that);
5925
      return false;
5926
    }
5927
 
5928
    public boolean equals(markEmailAsSent_args that) {
5929
      if (that == null)
5930
        return false;
5931
 
5932
      boolean this_present_emailId = true;
5933
      boolean that_present_emailId = true;
5934
      if (this_present_emailId || that_present_emailId) {
5935
        if (!(this_present_emailId && that_present_emailId))
5936
          return false;
5937
        if (this.emailId != that.emailId)
5938
          return false;
5939
      }
5940
 
5941
      return true;
5942
    }
5943
 
5944
    @Override
5945
    public int hashCode() {
5946
      return 0;
5947
    }
5948
 
5949
    public int compareTo(markEmailAsSent_args other) {
5950
      if (!getClass().equals(other.getClass())) {
5951
        return getClass().getName().compareTo(other.getClass().getName());
5952
      }
5953
 
5954
      int lastComparison = 0;
5955
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
5956
 
3430 rajveer 5957
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
1422 varun.gupt 5958
      if (lastComparison != 0) {
5959
        return lastComparison;
5960
      }
3430 rajveer 5961
      if (isSetEmailId()) {
5962
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
5963
        if (lastComparison != 0) {
5964
          return lastComparison;
5965
        }
1422 varun.gupt 5966
      }
5967
      return 0;
5968
    }
5969
 
3430 rajveer 5970
    public _Fields fieldForId(int fieldId) {
5971
      return _Fields.findByThriftId(fieldId);
5972
    }
5973
 
5974
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5975
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 5976
      iprot.readStructBegin();
5977
      while (true)
5978
      {
5979
        field = iprot.readFieldBegin();
3430 rajveer 5980
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 5981
          break;
5982
        }
3430 rajveer 5983
        switch (field.id) {
5984
          case 1: // EMAIL_ID
5985
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5986
              this.emailId = iprot.readI64();
5987
              setEmailIdIsSet(true);
5988
            } else { 
5989
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5990
            }
5991
            break;
5992
          default:
5993
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 5994
        }
3430 rajveer 5995
        iprot.readFieldEnd();
1422 varun.gupt 5996
      }
5997
      iprot.readStructEnd();
5998
      validate();
5999
    }
6000
 
3430 rajveer 6001
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 6002
      validate();
6003
 
6004
      oprot.writeStructBegin(STRUCT_DESC);
6005
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
6006
      oprot.writeI64(this.emailId);
6007
      oprot.writeFieldEnd();
6008
      oprot.writeFieldStop();
6009
      oprot.writeStructEnd();
6010
    }
6011
 
6012
    @Override
6013
    public String toString() {
6014
      StringBuilder sb = new StringBuilder("markEmailAsSent_args(");
6015
      boolean first = true;
6016
 
6017
      sb.append("emailId:");
6018
      sb.append(this.emailId);
6019
      first = false;
6020
      sb.append(")");
6021
      return sb.toString();
6022
    }
6023
 
3430 rajveer 6024
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 6025
      // check for required fields
6026
    }
6027
 
3430 rajveer 6028
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6029
      try {
6030
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6031
      } catch (org.apache.thrift.TException te) {
6032
        throw new java.io.IOException(te);
6033
      }
6034
    }
6035
 
6036
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6037
      try {
6038
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6039
      } catch (org.apache.thrift.TException te) {
6040
        throw new java.io.IOException(te);
6041
      }
6042
    }
6043
 
1422 varun.gupt 6044
  }
6045
 
3430 rajveer 6046
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
6047
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
1422 varun.gupt 6048
 
3430 rajveer 6049
    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 6050
 
3430 rajveer 6051
    private HelperServiceException se; // required
1422 varun.gupt 6052
 
6053
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6054
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1422 varun.gupt 6055
      SE((short)1, "se");
6056
 
6057
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6058
 
6059
      static {
6060
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6061
          byName.put(field.getFieldName(), field);
6062
        }
6063
      }
6064
 
6065
      /**
6066
       * Find the _Fields constant that matches fieldId, or null if its not found.
6067
       */
6068
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6069
        switch(fieldId) {
6070
          case 1: // SE
6071
            return SE;
6072
          default:
6073
            return null;
6074
        }
1422 varun.gupt 6075
      }
6076
 
6077
      /**
6078
       * Find the _Fields constant that matches fieldId, throwing an exception
6079
       * if it is not found.
6080
       */
6081
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6082
        _Fields fields = findByThriftId(fieldId);
6083
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6084
        return fields;
6085
      }
6086
 
6087
      /**
6088
       * Find the _Fields constant that matches name, or null if its not found.
6089
       */
6090
      public static _Fields findByName(String name) {
6091
        return byName.get(name);
6092
      }
6093
 
6094
      private final short _thriftId;
6095
      private final String _fieldName;
6096
 
6097
      _Fields(short thriftId, String fieldName) {
6098
        _thriftId = thriftId;
6099
        _fieldName = fieldName;
6100
      }
6101
 
6102
      public short getThriftFieldId() {
6103
        return _thriftId;
6104
      }
6105
 
6106
      public String getFieldName() {
6107
        return _fieldName;
6108
      }
6109
    }
6110
 
6111
    // isset id assignments
6112
 
3430 rajveer 6113
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1422 varun.gupt 6114
    static {
3430 rajveer 6115
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6116
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6117
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6118
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6119
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
1422 varun.gupt 6120
    }
6121
 
6122
    public markEmailAsSent_result() {
6123
    }
6124
 
6125
    public markEmailAsSent_result(
6126
      HelperServiceException se)
6127
    {
6128
      this();
6129
      this.se = se;
6130
    }
6131
 
6132
    /**
6133
     * Performs a deep copy on <i>other</i>.
6134
     */
6135
    public markEmailAsSent_result(markEmailAsSent_result other) {
6136
      if (other.isSetSe()) {
6137
        this.se = new HelperServiceException(other.se);
6138
      }
6139
    }
6140
 
6141
    public markEmailAsSent_result deepCopy() {
6142
      return new markEmailAsSent_result(this);
6143
    }
6144
 
3430 rajveer 6145
    @Override
6146
    public void clear() {
6147
      this.se = null;
1422 varun.gupt 6148
    }
6149
 
6150
    public HelperServiceException getSe() {
6151
      return this.se;
6152
    }
6153
 
3430 rajveer 6154
    public void setSe(HelperServiceException se) {
1422 varun.gupt 6155
      this.se = se;
6156
    }
6157
 
6158
    public void unsetSe() {
6159
      this.se = null;
6160
    }
6161
 
3430 rajveer 6162
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
1422 varun.gupt 6163
    public boolean isSetSe() {
6164
      return this.se != null;
6165
    }
6166
 
6167
    public void setSeIsSet(boolean value) {
6168
      if (!value) {
6169
        this.se = null;
6170
      }
6171
    }
6172
 
6173
    public void setFieldValue(_Fields field, Object value) {
6174
      switch (field) {
6175
      case SE:
6176
        if (value == null) {
6177
          unsetSe();
6178
        } else {
6179
          setSe((HelperServiceException)value);
6180
        }
6181
        break;
6182
 
6183
      }
6184
    }
6185
 
6186
    public Object getFieldValue(_Fields field) {
6187
      switch (field) {
6188
      case SE:
6189
        return getSe();
6190
 
6191
      }
6192
      throw new IllegalStateException();
6193
    }
6194
 
3430 rajveer 6195
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6196
    public boolean isSet(_Fields field) {
6197
      if (field == null) {
6198
        throw new IllegalArgumentException();
6199
      }
1422 varun.gupt 6200
 
6201
      switch (field) {
6202
      case SE:
6203
        return isSetSe();
6204
      }
6205
      throw new IllegalStateException();
6206
    }
6207
 
6208
    @Override
6209
    public boolean equals(Object that) {
6210
      if (that == null)
6211
        return false;
6212
      if (that instanceof markEmailAsSent_result)
6213
        return this.equals((markEmailAsSent_result)that);
6214
      return false;
6215
    }
6216
 
6217
    public boolean equals(markEmailAsSent_result that) {
6218
      if (that == null)
6219
        return false;
6220
 
6221
      boolean this_present_se = true && this.isSetSe();
6222
      boolean that_present_se = true && that.isSetSe();
6223
      if (this_present_se || that_present_se) {
6224
        if (!(this_present_se && that_present_se))
6225
          return false;
6226
        if (!this.se.equals(that.se))
6227
          return false;
6228
      }
6229
 
6230
      return true;
6231
    }
6232
 
6233
    @Override
6234
    public int hashCode() {
6235
      return 0;
6236
    }
6237
 
6238
    public int compareTo(markEmailAsSent_result other) {
6239
      if (!getClass().equals(other.getClass())) {
6240
        return getClass().getName().compareTo(other.getClass().getName());
6241
      }
6242
 
6243
      int lastComparison = 0;
6244
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
6245
 
3430 rajveer 6246
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
1422 varun.gupt 6247
      if (lastComparison != 0) {
6248
        return lastComparison;
6249
      }
3430 rajveer 6250
      if (isSetSe()) {
6251
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6252
        if (lastComparison != 0) {
6253
          return lastComparison;
6254
        }
1422 varun.gupt 6255
      }
6256
      return 0;
6257
    }
6258
 
3430 rajveer 6259
    public _Fields fieldForId(int fieldId) {
6260
      return _Fields.findByThriftId(fieldId);
6261
    }
6262
 
6263
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6264
      org.apache.thrift.protocol.TField field;
1422 varun.gupt 6265
      iprot.readStructBegin();
6266
      while (true)
6267
      {
6268
        field = iprot.readFieldBegin();
3430 rajveer 6269
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1422 varun.gupt 6270
          break;
6271
        }
3430 rajveer 6272
        switch (field.id) {
6273
          case 1: // SE
6274
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6275
              this.se = new HelperServiceException();
6276
              this.se.read(iprot);
6277
            } else { 
6278
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6279
            }
6280
            break;
6281
          default:
6282
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1422 varun.gupt 6283
        }
3430 rajveer 6284
        iprot.readFieldEnd();
1422 varun.gupt 6285
      }
6286
      iprot.readStructEnd();
6287
      validate();
6288
    }
6289
 
3430 rajveer 6290
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1422 varun.gupt 6291
      oprot.writeStructBegin(STRUCT_DESC);
6292
 
6293
      if (this.isSetSe()) {
6294
        oprot.writeFieldBegin(SE_FIELD_DESC);
6295
        this.se.write(oprot);
6296
        oprot.writeFieldEnd();
6297
      }
6298
      oprot.writeFieldStop();
6299
      oprot.writeStructEnd();
6300
    }
6301
 
6302
    @Override
6303
    public String toString() {
6304
      StringBuilder sb = new StringBuilder("markEmailAsSent_result(");
6305
      boolean first = true;
6306
 
6307
      sb.append("se:");
6308
      if (this.se == null) {
6309
        sb.append("null");
6310
      } else {
6311
        sb.append(this.se);
6312
      }
6313
      first = false;
6314
      sb.append(")");
6315
      return sb.toString();
6316
    }
6317
 
3430 rajveer 6318
    public void validate() throws org.apache.thrift.TException {
1422 varun.gupt 6319
      // check for required fields
6320
    }
6321
 
3430 rajveer 6322
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6323
      try {
6324
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6325
      } catch (org.apache.thrift.TException te) {
6326
        throw new java.io.IOException(te);
6327
      }
6328
    }
6329
 
6330
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6331
      try {
6332
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6333
      } catch (org.apache.thrift.TException te) {
6334
        throw new java.io.IOException(te);
6335
      }
6336
    }
6337
 
1422 varun.gupt 6338
  }
6339
 
3430 rajveer 6340
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
6341
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
352 ashish 6342
 
3430 rajveer 6343
    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 6344
 
3430 rajveer 6345
    private Mail mail; // required
352 ashish 6346
 
6347
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6348
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6349
      MAIL((short)1, "mail");
6350
 
6351
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6352
 
6353
      static {
6354
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6355
          byName.put(field.getFieldName(), field);
6356
        }
6357
      }
6358
 
6359
      /**
6360
       * Find the _Fields constant that matches fieldId, or null if its not found.
6361
       */
6362
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6363
        switch(fieldId) {
6364
          case 1: // MAIL
6365
            return MAIL;
6366
          default:
6367
            return null;
6368
        }
352 ashish 6369
      }
6370
 
6371
      /**
6372
       * Find the _Fields constant that matches fieldId, throwing an exception
6373
       * if it is not found.
6374
       */
6375
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6376
        _Fields fields = findByThriftId(fieldId);
6377
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6378
        return fields;
6379
      }
6380
 
6381
      /**
6382
       * Find the _Fields constant that matches name, or null if its not found.
6383
       */
6384
      public static _Fields findByName(String name) {
6385
        return byName.get(name);
6386
      }
6387
 
6388
      private final short _thriftId;
6389
      private final String _fieldName;
6390
 
6391
      _Fields(short thriftId, String fieldName) {
6392
        _thriftId = thriftId;
6393
        _fieldName = fieldName;
6394
      }
6395
 
6396
      public short getThriftFieldId() {
6397
        return _thriftId;
6398
      }
6399
 
6400
      public String getFieldName() {
6401
        return _fieldName;
6402
      }
6403
    }
6404
 
6405
    // isset id assignments
6406
 
3430 rajveer 6407
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6408
    static {
3430 rajveer 6409
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6410
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6411
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
6412
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6413
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
352 ashish 6414
    }
6415
 
6416
    public sendMail_args() {
6417
    }
6418
 
6419
    public sendMail_args(
6420
      Mail mail)
6421
    {
6422
      this();
6423
      this.mail = mail;
6424
    }
6425
 
6426
    /**
6427
     * Performs a deep copy on <i>other</i>.
6428
     */
6429
    public sendMail_args(sendMail_args other) {
6430
      if (other.isSetMail()) {
6431
        this.mail = new Mail(other.mail);
6432
      }
6433
    }
6434
 
6435
    public sendMail_args deepCopy() {
6436
      return new sendMail_args(this);
6437
    }
6438
 
3430 rajveer 6439
    @Override
6440
    public void clear() {
6441
      this.mail = null;
352 ashish 6442
    }
6443
 
6444
    public Mail getMail() {
6445
      return this.mail;
6446
    }
6447
 
3430 rajveer 6448
    public void setMail(Mail mail) {
352 ashish 6449
      this.mail = mail;
6450
    }
6451
 
6452
    public void unsetMail() {
6453
      this.mail = null;
6454
    }
6455
 
3430 rajveer 6456
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
352 ashish 6457
    public boolean isSetMail() {
6458
      return this.mail != null;
6459
    }
6460
 
6461
    public void setMailIsSet(boolean value) {
6462
      if (!value) {
6463
        this.mail = null;
6464
      }
6465
    }
6466
 
6467
    public void setFieldValue(_Fields field, Object value) {
6468
      switch (field) {
6469
      case MAIL:
6470
        if (value == null) {
6471
          unsetMail();
6472
        } else {
6473
          setMail((Mail)value);
6474
        }
6475
        break;
6476
 
6477
      }
6478
    }
6479
 
6480
    public Object getFieldValue(_Fields field) {
6481
      switch (field) {
6482
      case MAIL:
6483
        return getMail();
6484
 
6485
      }
6486
      throw new IllegalStateException();
6487
    }
6488
 
3430 rajveer 6489
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6490
    public boolean isSet(_Fields field) {
6491
      if (field == null) {
6492
        throw new IllegalArgumentException();
6493
      }
352 ashish 6494
 
6495
      switch (field) {
6496
      case MAIL:
6497
        return isSetMail();
6498
      }
6499
      throw new IllegalStateException();
6500
    }
6501
 
6502
    @Override
6503
    public boolean equals(Object that) {
6504
      if (that == null)
6505
        return false;
6506
      if (that instanceof sendMail_args)
6507
        return this.equals((sendMail_args)that);
6508
      return false;
6509
    }
6510
 
6511
    public boolean equals(sendMail_args that) {
6512
      if (that == null)
6513
        return false;
6514
 
6515
      boolean this_present_mail = true && this.isSetMail();
6516
      boolean that_present_mail = true && that.isSetMail();
6517
      if (this_present_mail || that_present_mail) {
6518
        if (!(this_present_mail && that_present_mail))
6519
          return false;
6520
        if (!this.mail.equals(that.mail))
6521
          return false;
6522
      }
6523
 
6524
      return true;
6525
    }
6526
 
6527
    @Override
6528
    public int hashCode() {
6529
      return 0;
6530
    }
6531
 
6532
    public int compareTo(sendMail_args other) {
6533
      if (!getClass().equals(other.getClass())) {
6534
        return getClass().getName().compareTo(other.getClass().getName());
6535
      }
6536
 
6537
      int lastComparison = 0;
6538
      sendMail_args typedOther = (sendMail_args)other;
6539
 
3430 rajveer 6540
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
352 ashish 6541
      if (lastComparison != 0) {
6542
        return lastComparison;
6543
      }
3430 rajveer 6544
      if (isSetMail()) {
6545
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
6546
        if (lastComparison != 0) {
6547
          return lastComparison;
6548
        }
352 ashish 6549
      }
6550
      return 0;
6551
    }
6552
 
3430 rajveer 6553
    public _Fields fieldForId(int fieldId) {
6554
      return _Fields.findByThriftId(fieldId);
6555
    }
6556
 
6557
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6558
      org.apache.thrift.protocol.TField field;
352 ashish 6559
      iprot.readStructBegin();
6560
      while (true)
6561
      {
6562
        field = iprot.readFieldBegin();
3430 rajveer 6563
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6564
          break;
6565
        }
3430 rajveer 6566
        switch (field.id) {
6567
          case 1: // MAIL
6568
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6569
              this.mail = new Mail();
6570
              this.mail.read(iprot);
6571
            } else { 
6572
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6573
            }
6574
            break;
6575
          default:
6576
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6577
        }
3430 rajveer 6578
        iprot.readFieldEnd();
352 ashish 6579
      }
6580
      iprot.readStructEnd();
6581
      validate();
6582
    }
6583
 
3430 rajveer 6584
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6585
      validate();
6586
 
6587
      oprot.writeStructBegin(STRUCT_DESC);
6588
      if (this.mail != null) {
6589
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
6590
        this.mail.write(oprot);
6591
        oprot.writeFieldEnd();
6592
      }
6593
      oprot.writeFieldStop();
6594
      oprot.writeStructEnd();
6595
    }
6596
 
6597
    @Override
6598
    public String toString() {
6599
      StringBuilder sb = new StringBuilder("sendMail_args(");
6600
      boolean first = true;
6601
 
6602
      sb.append("mail:");
6603
      if (this.mail == null) {
6604
        sb.append("null");
6605
      } else {
6606
        sb.append(this.mail);
6607
      }
6608
      first = false;
6609
      sb.append(")");
6610
      return sb.toString();
6611
    }
6612
 
3430 rajveer 6613
    public void validate() throws org.apache.thrift.TException {
352 ashish 6614
      // check for required fields
6615
    }
6616
 
3430 rajveer 6617
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6618
      try {
6619
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6620
      } catch (org.apache.thrift.TException te) {
6621
        throw new java.io.IOException(te);
6622
      }
6623
    }
6624
 
6625
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6626
      try {
6627
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6628
      } catch (org.apache.thrift.TException te) {
6629
        throw new java.io.IOException(te);
6630
      }
6631
    }
6632
 
352 ashish 6633
  }
6634
 
3430 rajveer 6635
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
6636
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
352 ashish 6637
 
3430 rajveer 6638
    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 6639
 
3430 rajveer 6640
    private HelperServiceException se; // required
352 ashish 6641
 
6642
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6643
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6644
      SE((short)1, "se");
6645
 
6646
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6647
 
6648
      static {
6649
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6650
          byName.put(field.getFieldName(), field);
6651
        }
6652
      }
6653
 
6654
      /**
6655
       * Find the _Fields constant that matches fieldId, or null if its not found.
6656
       */
6657
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6658
        switch(fieldId) {
6659
          case 1: // SE
6660
            return SE;
6661
          default:
6662
            return null;
6663
        }
352 ashish 6664
      }
6665
 
6666
      /**
6667
       * Find the _Fields constant that matches fieldId, throwing an exception
6668
       * if it is not found.
6669
       */
6670
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6671
        _Fields fields = findByThriftId(fieldId);
6672
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6673
        return fields;
6674
      }
6675
 
6676
      /**
6677
       * Find the _Fields constant that matches name, or null if its not found.
6678
       */
6679
      public static _Fields findByName(String name) {
6680
        return byName.get(name);
6681
      }
6682
 
6683
      private final short _thriftId;
6684
      private final String _fieldName;
6685
 
6686
      _Fields(short thriftId, String fieldName) {
6687
        _thriftId = thriftId;
6688
        _fieldName = fieldName;
6689
      }
6690
 
6691
      public short getThriftFieldId() {
6692
        return _thriftId;
6693
      }
6694
 
6695
      public String getFieldName() {
6696
        return _fieldName;
6697
      }
6698
    }
6699
 
6700
    // isset id assignments
6701
 
3430 rajveer 6702
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6703
    static {
3430 rajveer 6704
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6705
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6706
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
6707
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6708
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
352 ashish 6709
    }
6710
 
6711
    public sendMail_result() {
6712
    }
6713
 
6714
    public sendMail_result(
6715
      HelperServiceException se)
6716
    {
6717
      this();
6718
      this.se = se;
6719
    }
6720
 
6721
    /**
6722
     * Performs a deep copy on <i>other</i>.
6723
     */
6724
    public sendMail_result(sendMail_result other) {
6725
      if (other.isSetSe()) {
6726
        this.se = new HelperServiceException(other.se);
6727
      }
6728
    }
6729
 
6730
    public sendMail_result deepCopy() {
6731
      return new sendMail_result(this);
6732
    }
6733
 
3430 rajveer 6734
    @Override
6735
    public void clear() {
6736
      this.se = null;
352 ashish 6737
    }
6738
 
6739
    public HelperServiceException getSe() {
6740
      return this.se;
6741
    }
6742
 
3430 rajveer 6743
    public void setSe(HelperServiceException se) {
352 ashish 6744
      this.se = se;
6745
    }
6746
 
6747
    public void unsetSe() {
6748
      this.se = null;
6749
    }
6750
 
3430 rajveer 6751
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 6752
    public boolean isSetSe() {
6753
      return this.se != null;
6754
    }
6755
 
6756
    public void setSeIsSet(boolean value) {
6757
      if (!value) {
6758
        this.se = null;
6759
      }
6760
    }
6761
 
6762
    public void setFieldValue(_Fields field, Object value) {
6763
      switch (field) {
6764
      case SE:
6765
        if (value == null) {
6766
          unsetSe();
6767
        } else {
6768
          setSe((HelperServiceException)value);
6769
        }
6770
        break;
6771
 
6772
      }
6773
    }
6774
 
6775
    public Object getFieldValue(_Fields field) {
6776
      switch (field) {
6777
      case SE:
6778
        return getSe();
6779
 
6780
      }
6781
      throw new IllegalStateException();
6782
    }
6783
 
3430 rajveer 6784
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6785
    public boolean isSet(_Fields field) {
6786
      if (field == null) {
6787
        throw new IllegalArgumentException();
6788
      }
352 ashish 6789
 
6790
      switch (field) {
6791
      case SE:
6792
        return isSetSe();
6793
      }
6794
      throw new IllegalStateException();
6795
    }
6796
 
6797
    @Override
6798
    public boolean equals(Object that) {
6799
      if (that == null)
6800
        return false;
6801
      if (that instanceof sendMail_result)
6802
        return this.equals((sendMail_result)that);
6803
      return false;
6804
    }
6805
 
6806
    public boolean equals(sendMail_result that) {
6807
      if (that == null)
6808
        return false;
6809
 
6810
      boolean this_present_se = true && this.isSetSe();
6811
      boolean that_present_se = true && that.isSetSe();
6812
      if (this_present_se || that_present_se) {
6813
        if (!(this_present_se && that_present_se))
6814
          return false;
6815
        if (!this.se.equals(that.se))
6816
          return false;
6817
      }
6818
 
6819
      return true;
6820
    }
6821
 
6822
    @Override
6823
    public int hashCode() {
6824
      return 0;
6825
    }
6826
 
6827
    public int compareTo(sendMail_result other) {
6828
      if (!getClass().equals(other.getClass())) {
6829
        return getClass().getName().compareTo(other.getClass().getName());
6830
      }
6831
 
6832
      int lastComparison = 0;
6833
      sendMail_result typedOther = (sendMail_result)other;
6834
 
3430 rajveer 6835
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 6836
      if (lastComparison != 0) {
6837
        return lastComparison;
6838
      }
3430 rajveer 6839
      if (isSetSe()) {
6840
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6841
        if (lastComparison != 0) {
6842
          return lastComparison;
6843
        }
352 ashish 6844
      }
6845
      return 0;
6846
    }
6847
 
3430 rajveer 6848
    public _Fields fieldForId(int fieldId) {
6849
      return _Fields.findByThriftId(fieldId);
6850
    }
6851
 
6852
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6853
      org.apache.thrift.protocol.TField field;
352 ashish 6854
      iprot.readStructBegin();
6855
      while (true)
6856
      {
6857
        field = iprot.readFieldBegin();
3430 rajveer 6858
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 6859
          break;
6860
        }
3430 rajveer 6861
        switch (field.id) {
6862
          case 1: // SE
6863
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6864
              this.se = new HelperServiceException();
6865
              this.se.read(iprot);
6866
            } else { 
6867
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6868
            }
6869
            break;
6870
          default:
6871
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 6872
        }
3430 rajveer 6873
        iprot.readFieldEnd();
352 ashish 6874
      }
6875
      iprot.readStructEnd();
6876
      validate();
6877
    }
6878
 
3430 rajveer 6879
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 6880
      oprot.writeStructBegin(STRUCT_DESC);
6881
 
6882
      if (this.isSetSe()) {
6883
        oprot.writeFieldBegin(SE_FIELD_DESC);
6884
        this.se.write(oprot);
6885
        oprot.writeFieldEnd();
6886
      }
6887
      oprot.writeFieldStop();
6888
      oprot.writeStructEnd();
6889
    }
6890
 
6891
    @Override
6892
    public String toString() {
6893
      StringBuilder sb = new StringBuilder("sendMail_result(");
6894
      boolean first = true;
6895
 
6896
      sb.append("se:");
6897
      if (this.se == null) {
6898
        sb.append("null");
6899
      } else {
6900
        sb.append(this.se);
6901
      }
6902
      first = false;
6903
      sb.append(")");
6904
      return sb.toString();
6905
    }
6906
 
3430 rajveer 6907
    public void validate() throws org.apache.thrift.TException {
352 ashish 6908
      // check for required fields
6909
    }
6910
 
3430 rajveer 6911
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6912
      try {
6913
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6914
      } catch (org.apache.thrift.TException te) {
6915
        throw new java.io.IOException(te);
6916
      }
6917
    }
6918
 
6919
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6920
      try {
6921
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6922
      } catch (org.apache.thrift.TException te) {
6923
        throw new java.io.IOException(te);
6924
      }
6925
    }
6926
 
352 ashish 6927
  }
6928
 
3430 rajveer 6929
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
6930
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
352 ashish 6931
 
3430 rajveer 6932
    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 6933
 
3430 rajveer 6934
    private TextMessage message; // required
352 ashish 6935
 
6936
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6937
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 6938
      MESSAGE((short)1, "message");
6939
 
6940
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6941
 
6942
      static {
6943
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6944
          byName.put(field.getFieldName(), field);
6945
        }
6946
      }
6947
 
6948
      /**
6949
       * Find the _Fields constant that matches fieldId, or null if its not found.
6950
       */
6951
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6952
        switch(fieldId) {
6953
          case 1: // MESSAGE
6954
            return MESSAGE;
6955
          default:
6956
            return null;
6957
        }
352 ashish 6958
      }
6959
 
6960
      /**
6961
       * Find the _Fields constant that matches fieldId, throwing an exception
6962
       * if it is not found.
6963
       */
6964
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6965
        _Fields fields = findByThriftId(fieldId);
6966
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6967
        return fields;
6968
      }
6969
 
6970
      /**
6971
       * Find the _Fields constant that matches name, or null if its not found.
6972
       */
6973
      public static _Fields findByName(String name) {
6974
        return byName.get(name);
6975
      }
6976
 
6977
      private final short _thriftId;
6978
      private final String _fieldName;
6979
 
6980
      _Fields(short thriftId, String fieldName) {
6981
        _thriftId = thriftId;
6982
        _fieldName = fieldName;
6983
      }
6984
 
6985
      public short getThriftFieldId() {
6986
        return _thriftId;
6987
      }
6988
 
6989
      public String getFieldName() {
6990
        return _fieldName;
6991
      }
6992
    }
6993
 
6994
    // isset id assignments
6995
 
3430 rajveer 6996
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 6997
    static {
3430 rajveer 6998
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6999
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7000
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
7001
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7002
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
352 ashish 7003
    }
7004
 
7005
    public sendText_args() {
7006
    }
7007
 
7008
    public sendText_args(
7009
      TextMessage message)
7010
    {
7011
      this();
7012
      this.message = message;
7013
    }
7014
 
7015
    /**
7016
     * Performs a deep copy on <i>other</i>.
7017
     */
7018
    public sendText_args(sendText_args other) {
7019
      if (other.isSetMessage()) {
7020
        this.message = new TextMessage(other.message);
7021
      }
7022
    }
7023
 
7024
    public sendText_args deepCopy() {
7025
      return new sendText_args(this);
7026
    }
7027
 
3430 rajveer 7028
    @Override
7029
    public void clear() {
7030
      this.message = null;
352 ashish 7031
    }
7032
 
7033
    public TextMessage getMessage() {
7034
      return this.message;
7035
    }
7036
 
3430 rajveer 7037
    public void setMessage(TextMessage message) {
352 ashish 7038
      this.message = message;
7039
    }
7040
 
7041
    public void unsetMessage() {
7042
      this.message = null;
7043
    }
7044
 
3430 rajveer 7045
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7046
    public boolean isSetMessage() {
7047
      return this.message != null;
7048
    }
7049
 
7050
    public void setMessageIsSet(boolean value) {
7051
      if (!value) {
7052
        this.message = null;
7053
      }
7054
    }
7055
 
7056
    public void setFieldValue(_Fields field, Object value) {
7057
      switch (field) {
7058
      case MESSAGE:
7059
        if (value == null) {
7060
          unsetMessage();
7061
        } else {
7062
          setMessage((TextMessage)value);
7063
        }
7064
        break;
7065
 
7066
      }
7067
    }
7068
 
7069
    public Object getFieldValue(_Fields field) {
7070
      switch (field) {
7071
      case MESSAGE:
7072
        return getMessage();
7073
 
7074
      }
7075
      throw new IllegalStateException();
7076
    }
7077
 
3430 rajveer 7078
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7079
    public boolean isSet(_Fields field) {
7080
      if (field == null) {
7081
        throw new IllegalArgumentException();
7082
      }
352 ashish 7083
 
7084
      switch (field) {
7085
      case MESSAGE:
7086
        return isSetMessage();
7087
      }
7088
      throw new IllegalStateException();
7089
    }
7090
 
7091
    @Override
7092
    public boolean equals(Object that) {
7093
      if (that == null)
7094
        return false;
7095
      if (that instanceof sendText_args)
7096
        return this.equals((sendText_args)that);
7097
      return false;
7098
    }
7099
 
7100
    public boolean equals(sendText_args that) {
7101
      if (that == null)
7102
        return false;
7103
 
7104
      boolean this_present_message = true && this.isSetMessage();
7105
      boolean that_present_message = true && that.isSetMessage();
7106
      if (this_present_message || that_present_message) {
7107
        if (!(this_present_message && that_present_message))
7108
          return false;
7109
        if (!this.message.equals(that.message))
7110
          return false;
7111
      }
7112
 
7113
      return true;
7114
    }
7115
 
7116
    @Override
7117
    public int hashCode() {
7118
      return 0;
7119
    }
7120
 
7121
    public int compareTo(sendText_args other) {
7122
      if (!getClass().equals(other.getClass())) {
7123
        return getClass().getName().compareTo(other.getClass().getName());
7124
      }
7125
 
7126
      int lastComparison = 0;
7127
      sendText_args typedOther = (sendText_args)other;
7128
 
3430 rajveer 7129
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7130
      if (lastComparison != 0) {
7131
        return lastComparison;
7132
      }
3430 rajveer 7133
      if (isSetMessage()) {
7134
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7135
        if (lastComparison != 0) {
7136
          return lastComparison;
7137
        }
352 ashish 7138
      }
7139
      return 0;
7140
    }
7141
 
3430 rajveer 7142
    public _Fields fieldForId(int fieldId) {
7143
      return _Fields.findByThriftId(fieldId);
7144
    }
7145
 
7146
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7147
      org.apache.thrift.protocol.TField field;
352 ashish 7148
      iprot.readStructBegin();
7149
      while (true)
7150
      {
7151
        field = iprot.readFieldBegin();
3430 rajveer 7152
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7153
          break;
7154
        }
3430 rajveer 7155
        switch (field.id) {
7156
          case 1: // MESSAGE
7157
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7158
              this.message = new TextMessage();
7159
              this.message.read(iprot);
7160
            } else { 
7161
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7162
            }
7163
            break;
7164
          default:
7165
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7166
        }
3430 rajveer 7167
        iprot.readFieldEnd();
352 ashish 7168
      }
7169
      iprot.readStructEnd();
7170
      validate();
7171
    }
7172
 
3430 rajveer 7173
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7174
      validate();
7175
 
7176
      oprot.writeStructBegin(STRUCT_DESC);
7177
      if (this.message != null) {
7178
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7179
        this.message.write(oprot);
7180
        oprot.writeFieldEnd();
7181
      }
7182
      oprot.writeFieldStop();
7183
      oprot.writeStructEnd();
7184
    }
7185
 
7186
    @Override
7187
    public String toString() {
7188
      StringBuilder sb = new StringBuilder("sendText_args(");
7189
      boolean first = true;
7190
 
7191
      sb.append("message:");
7192
      if (this.message == null) {
7193
        sb.append("null");
7194
      } else {
7195
        sb.append(this.message);
7196
      }
7197
      first = false;
7198
      sb.append(")");
7199
      return sb.toString();
7200
    }
7201
 
3430 rajveer 7202
    public void validate() throws org.apache.thrift.TException {
352 ashish 7203
      // check for required fields
7204
    }
7205
 
3430 rajveer 7206
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7207
      try {
7208
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7209
      } catch (org.apache.thrift.TException te) {
7210
        throw new java.io.IOException(te);
7211
      }
7212
    }
7213
 
7214
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7215
      try {
7216
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7217
      } catch (org.apache.thrift.TException te) {
7218
        throw new java.io.IOException(te);
7219
      }
7220
    }
7221
 
352 ashish 7222
  }
7223
 
3430 rajveer 7224
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
7225
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
352 ashish 7226
 
3430 rajveer 7227
    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 7228
 
3430 rajveer 7229
    private HelperServiceException se; // required
352 ashish 7230
 
7231
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7232
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7233
      SE((short)1, "se");
7234
 
7235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7236
 
7237
      static {
7238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7239
          byName.put(field.getFieldName(), field);
7240
        }
7241
      }
7242
 
7243
      /**
7244
       * Find the _Fields constant that matches fieldId, or null if its not found.
7245
       */
7246
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7247
        switch(fieldId) {
7248
          case 1: // SE
7249
            return SE;
7250
          default:
7251
            return null;
7252
        }
352 ashish 7253
      }
7254
 
7255
      /**
7256
       * Find the _Fields constant that matches fieldId, throwing an exception
7257
       * if it is not found.
7258
       */
7259
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7260
        _Fields fields = findByThriftId(fieldId);
7261
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7262
        return fields;
7263
      }
7264
 
7265
      /**
7266
       * Find the _Fields constant that matches name, or null if its not found.
7267
       */
7268
      public static _Fields findByName(String name) {
7269
        return byName.get(name);
7270
      }
7271
 
7272
      private final short _thriftId;
7273
      private final String _fieldName;
7274
 
7275
      _Fields(short thriftId, String fieldName) {
7276
        _thriftId = thriftId;
7277
        _fieldName = fieldName;
7278
      }
7279
 
7280
      public short getThriftFieldId() {
7281
        return _thriftId;
7282
      }
7283
 
7284
      public String getFieldName() {
7285
        return _fieldName;
7286
      }
7287
    }
7288
 
7289
    // isset id assignments
7290
 
3430 rajveer 7291
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7292
    static {
3430 rajveer 7293
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7294
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7295
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7296
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7297
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
352 ashish 7298
    }
7299
 
7300
    public sendText_result() {
7301
    }
7302
 
7303
    public sendText_result(
7304
      HelperServiceException se)
7305
    {
7306
      this();
7307
      this.se = se;
7308
    }
7309
 
7310
    /**
7311
     * Performs a deep copy on <i>other</i>.
7312
     */
7313
    public sendText_result(sendText_result other) {
7314
      if (other.isSetSe()) {
7315
        this.se = new HelperServiceException(other.se);
7316
      }
7317
    }
7318
 
7319
    public sendText_result deepCopy() {
7320
      return new sendText_result(this);
7321
    }
7322
 
3430 rajveer 7323
    @Override
7324
    public void clear() {
7325
      this.se = null;
352 ashish 7326
    }
7327
 
7328
    public HelperServiceException getSe() {
7329
      return this.se;
7330
    }
7331
 
3430 rajveer 7332
    public void setSe(HelperServiceException se) {
352 ashish 7333
      this.se = se;
7334
    }
7335
 
7336
    public void unsetSe() {
7337
      this.se = null;
7338
    }
7339
 
3430 rajveer 7340
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7341
    public boolean isSetSe() {
7342
      return this.se != null;
7343
    }
7344
 
7345
    public void setSeIsSet(boolean value) {
7346
      if (!value) {
7347
        this.se = null;
7348
      }
7349
    }
7350
 
7351
    public void setFieldValue(_Fields field, Object value) {
7352
      switch (field) {
7353
      case SE:
7354
        if (value == null) {
7355
          unsetSe();
7356
        } else {
7357
          setSe((HelperServiceException)value);
7358
        }
7359
        break;
7360
 
7361
      }
7362
    }
7363
 
7364
    public Object getFieldValue(_Fields field) {
7365
      switch (field) {
7366
      case SE:
7367
        return getSe();
7368
 
7369
      }
7370
      throw new IllegalStateException();
7371
    }
7372
 
3430 rajveer 7373
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7374
    public boolean isSet(_Fields field) {
7375
      if (field == null) {
7376
        throw new IllegalArgumentException();
7377
      }
352 ashish 7378
 
7379
      switch (field) {
7380
      case SE:
7381
        return isSetSe();
7382
      }
7383
      throw new IllegalStateException();
7384
    }
7385
 
7386
    @Override
7387
    public boolean equals(Object that) {
7388
      if (that == null)
7389
        return false;
7390
      if (that instanceof sendText_result)
7391
        return this.equals((sendText_result)that);
7392
      return false;
7393
    }
7394
 
7395
    public boolean equals(sendText_result that) {
7396
      if (that == null)
7397
        return false;
7398
 
7399
      boolean this_present_se = true && this.isSetSe();
7400
      boolean that_present_se = true && that.isSetSe();
7401
      if (this_present_se || that_present_se) {
7402
        if (!(this_present_se && that_present_se))
7403
          return false;
7404
        if (!this.se.equals(that.se))
7405
          return false;
7406
      }
7407
 
7408
      return true;
7409
    }
7410
 
7411
    @Override
7412
    public int hashCode() {
7413
      return 0;
7414
    }
7415
 
7416
    public int compareTo(sendText_result other) {
7417
      if (!getClass().equals(other.getClass())) {
7418
        return getClass().getName().compareTo(other.getClass().getName());
7419
      }
7420
 
7421
      int lastComparison = 0;
7422
      sendText_result typedOther = (sendText_result)other;
7423
 
3430 rajveer 7424
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 7425
      if (lastComparison != 0) {
7426
        return lastComparison;
7427
      }
3430 rajveer 7428
      if (isSetSe()) {
7429
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7430
        if (lastComparison != 0) {
7431
          return lastComparison;
7432
        }
352 ashish 7433
      }
7434
      return 0;
7435
    }
7436
 
3430 rajveer 7437
    public _Fields fieldForId(int fieldId) {
7438
      return _Fields.findByThriftId(fieldId);
7439
    }
7440
 
7441
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7442
      org.apache.thrift.protocol.TField field;
352 ashish 7443
      iprot.readStructBegin();
7444
      while (true)
7445
      {
7446
        field = iprot.readFieldBegin();
3430 rajveer 7447
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7448
          break;
7449
        }
3430 rajveer 7450
        switch (field.id) {
7451
          case 1: // SE
7452
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7453
              this.se = new HelperServiceException();
7454
              this.se.read(iprot);
7455
            } else { 
7456
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7457
            }
7458
            break;
7459
          default:
7460
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7461
        }
3430 rajveer 7462
        iprot.readFieldEnd();
352 ashish 7463
      }
7464
      iprot.readStructEnd();
7465
      validate();
7466
    }
7467
 
3430 rajveer 7468
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7469
      oprot.writeStructBegin(STRUCT_DESC);
7470
 
7471
      if (this.isSetSe()) {
7472
        oprot.writeFieldBegin(SE_FIELD_DESC);
7473
        this.se.write(oprot);
7474
        oprot.writeFieldEnd();
7475
      }
7476
      oprot.writeFieldStop();
7477
      oprot.writeStructEnd();
7478
    }
7479
 
7480
    @Override
7481
    public String toString() {
7482
      StringBuilder sb = new StringBuilder("sendText_result(");
7483
      boolean first = true;
7484
 
7485
      sb.append("se:");
7486
      if (this.se == null) {
7487
        sb.append("null");
7488
      } else {
7489
        sb.append(this.se);
7490
      }
7491
      first = false;
7492
      sb.append(")");
7493
      return sb.toString();
7494
    }
7495
 
3430 rajveer 7496
    public void validate() throws org.apache.thrift.TException {
352 ashish 7497
      // check for required fields
7498
    }
7499
 
3430 rajveer 7500
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7501
      try {
7502
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7503
      } catch (org.apache.thrift.TException te) {
7504
        throw new java.io.IOException(te);
7505
      }
7506
    }
7507
 
7508
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7509
      try {
7510
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7511
      } catch (org.apache.thrift.TException te) {
7512
        throw new java.io.IOException(te);
7513
      }
7514
    }
7515
 
352 ashish 7516
  }
7517
 
3430 rajveer 7518
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
7519
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
352 ashish 7520
 
3430 rajveer 7521
    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 7522
 
3430 rajveer 7523
    private Message message; // required
352 ashish 7524
 
7525
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7526
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7527
      MESSAGE((short)1, "message");
7528
 
7529
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7530
 
7531
      static {
7532
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7533
          byName.put(field.getFieldName(), field);
7534
        }
7535
      }
7536
 
7537
      /**
7538
       * Find the _Fields constant that matches fieldId, or null if its not found.
7539
       */
7540
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7541
        switch(fieldId) {
7542
          case 1: // MESSAGE
7543
            return MESSAGE;
7544
          default:
7545
            return null;
7546
        }
352 ashish 7547
      }
7548
 
7549
      /**
7550
       * Find the _Fields constant that matches fieldId, throwing an exception
7551
       * if it is not found.
7552
       */
7553
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7554
        _Fields fields = findByThriftId(fieldId);
7555
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7556
        return fields;
7557
      }
7558
 
7559
      /**
7560
       * Find the _Fields constant that matches name, or null if its not found.
7561
       */
7562
      public static _Fields findByName(String name) {
7563
        return byName.get(name);
7564
      }
7565
 
7566
      private final short _thriftId;
7567
      private final String _fieldName;
7568
 
7569
      _Fields(short thriftId, String fieldName) {
7570
        _thriftId = thriftId;
7571
        _fieldName = fieldName;
7572
      }
7573
 
7574
      public short getThriftFieldId() {
7575
        return _thriftId;
7576
      }
7577
 
7578
      public String getFieldName() {
7579
        return _fieldName;
7580
      }
7581
    }
7582
 
7583
    // isset id assignments
7584
 
3430 rajveer 7585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7586
    static {
3430 rajveer 7587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7588
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7589
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
7590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
352 ashish 7592
    }
7593
 
7594
    public addMessage_args() {
7595
    }
7596
 
7597
    public addMessage_args(
7598
      Message message)
7599
    {
7600
      this();
7601
      this.message = message;
7602
    }
7603
 
7604
    /**
7605
     * Performs a deep copy on <i>other</i>.
7606
     */
7607
    public addMessage_args(addMessage_args other) {
7608
      if (other.isSetMessage()) {
7609
        this.message = new Message(other.message);
7610
      }
7611
    }
7612
 
7613
    public addMessage_args deepCopy() {
7614
      return new addMessage_args(this);
7615
    }
7616
 
3430 rajveer 7617
    @Override
7618
    public void clear() {
7619
      this.message = null;
352 ashish 7620
    }
7621
 
7622
    public Message getMessage() {
7623
      return this.message;
7624
    }
7625
 
3430 rajveer 7626
    public void setMessage(Message message) {
352 ashish 7627
      this.message = message;
7628
    }
7629
 
7630
    public void unsetMessage() {
7631
      this.message = null;
7632
    }
7633
 
3430 rajveer 7634
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 7635
    public boolean isSetMessage() {
7636
      return this.message != null;
7637
    }
7638
 
7639
    public void setMessageIsSet(boolean value) {
7640
      if (!value) {
7641
        this.message = null;
7642
      }
7643
    }
7644
 
7645
    public void setFieldValue(_Fields field, Object value) {
7646
      switch (field) {
7647
      case MESSAGE:
7648
        if (value == null) {
7649
          unsetMessage();
7650
        } else {
7651
          setMessage((Message)value);
7652
        }
7653
        break;
7654
 
7655
      }
7656
    }
7657
 
7658
    public Object getFieldValue(_Fields field) {
7659
      switch (field) {
7660
      case MESSAGE:
7661
        return getMessage();
7662
 
7663
      }
7664
      throw new IllegalStateException();
7665
    }
7666
 
3430 rajveer 7667
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7668
    public boolean isSet(_Fields field) {
7669
      if (field == null) {
7670
        throw new IllegalArgumentException();
7671
      }
352 ashish 7672
 
7673
      switch (field) {
7674
      case MESSAGE:
7675
        return isSetMessage();
7676
      }
7677
      throw new IllegalStateException();
7678
    }
7679
 
7680
    @Override
7681
    public boolean equals(Object that) {
7682
      if (that == null)
7683
        return false;
7684
      if (that instanceof addMessage_args)
7685
        return this.equals((addMessage_args)that);
7686
      return false;
7687
    }
7688
 
7689
    public boolean equals(addMessage_args that) {
7690
      if (that == null)
7691
        return false;
7692
 
7693
      boolean this_present_message = true && this.isSetMessage();
7694
      boolean that_present_message = true && that.isSetMessage();
7695
      if (this_present_message || that_present_message) {
7696
        if (!(this_present_message && that_present_message))
7697
          return false;
7698
        if (!this.message.equals(that.message))
7699
          return false;
7700
      }
7701
 
7702
      return true;
7703
    }
7704
 
7705
    @Override
7706
    public int hashCode() {
7707
      return 0;
7708
    }
7709
 
7710
    public int compareTo(addMessage_args other) {
7711
      if (!getClass().equals(other.getClass())) {
7712
        return getClass().getName().compareTo(other.getClass().getName());
7713
      }
7714
 
7715
      int lastComparison = 0;
7716
      addMessage_args typedOther = (addMessage_args)other;
7717
 
3430 rajveer 7718
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 7719
      if (lastComparison != 0) {
7720
        return lastComparison;
7721
      }
3430 rajveer 7722
      if (isSetMessage()) {
7723
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
7724
        if (lastComparison != 0) {
7725
          return lastComparison;
7726
        }
352 ashish 7727
      }
7728
      return 0;
7729
    }
7730
 
3430 rajveer 7731
    public _Fields fieldForId(int fieldId) {
7732
      return _Fields.findByThriftId(fieldId);
7733
    }
7734
 
7735
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7736
      org.apache.thrift.protocol.TField field;
352 ashish 7737
      iprot.readStructBegin();
7738
      while (true)
7739
      {
7740
        field = iprot.readFieldBegin();
3430 rajveer 7741
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 7742
          break;
7743
        }
3430 rajveer 7744
        switch (field.id) {
7745
          case 1: // MESSAGE
7746
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7747
              this.message = new Message();
7748
              this.message.read(iprot);
7749
            } else { 
7750
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7751
            }
7752
            break;
7753
          default:
7754
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 7755
        }
3430 rajveer 7756
        iprot.readFieldEnd();
352 ashish 7757
      }
7758
      iprot.readStructEnd();
7759
      validate();
7760
    }
7761
 
3430 rajveer 7762
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 7763
      validate();
7764
 
7765
      oprot.writeStructBegin(STRUCT_DESC);
7766
      if (this.message != null) {
7767
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
7768
        this.message.write(oprot);
7769
        oprot.writeFieldEnd();
7770
      }
7771
      oprot.writeFieldStop();
7772
      oprot.writeStructEnd();
7773
    }
7774
 
7775
    @Override
7776
    public String toString() {
7777
      StringBuilder sb = new StringBuilder("addMessage_args(");
7778
      boolean first = true;
7779
 
7780
      sb.append("message:");
7781
      if (this.message == null) {
7782
        sb.append("null");
7783
      } else {
7784
        sb.append(this.message);
7785
      }
7786
      first = false;
7787
      sb.append(")");
7788
      return sb.toString();
7789
    }
7790
 
3430 rajveer 7791
    public void validate() throws org.apache.thrift.TException {
352 ashish 7792
      // check for required fields
7793
    }
7794
 
3430 rajveer 7795
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7796
      try {
7797
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7798
      } catch (org.apache.thrift.TException te) {
7799
        throw new java.io.IOException(te);
7800
      }
7801
    }
7802
 
7803
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7804
      try {
7805
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7806
      } catch (org.apache.thrift.TException te) {
7807
        throw new java.io.IOException(te);
7808
      }
7809
    }
7810
 
352 ashish 7811
  }
7812
 
3430 rajveer 7813
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
7814
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
352 ashish 7815
 
3430 rajveer 7816
    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 7817
 
3430 rajveer 7818
    private HelperServiceException se; // required
352 ashish 7819
 
7820
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7821
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 7822
      SE((short)1, "se");
7823
 
7824
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7825
 
7826
      static {
7827
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7828
          byName.put(field.getFieldName(), field);
7829
        }
7830
      }
7831
 
7832
      /**
7833
       * Find the _Fields constant that matches fieldId, or null if its not found.
7834
       */
7835
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7836
        switch(fieldId) {
7837
          case 1: // SE
7838
            return SE;
7839
          default:
7840
            return null;
7841
        }
352 ashish 7842
      }
7843
 
7844
      /**
7845
       * Find the _Fields constant that matches fieldId, throwing an exception
7846
       * if it is not found.
7847
       */
7848
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7849
        _Fields fields = findByThriftId(fieldId);
7850
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7851
        return fields;
7852
      }
7853
 
7854
      /**
7855
       * Find the _Fields constant that matches name, or null if its not found.
7856
       */
7857
      public static _Fields findByName(String name) {
7858
        return byName.get(name);
7859
      }
7860
 
7861
      private final short _thriftId;
7862
      private final String _fieldName;
7863
 
7864
      _Fields(short thriftId, String fieldName) {
7865
        _thriftId = thriftId;
7866
        _fieldName = fieldName;
7867
      }
7868
 
7869
      public short getThriftFieldId() {
7870
        return _thriftId;
7871
      }
7872
 
7873
      public String getFieldName() {
7874
        return _fieldName;
7875
      }
7876
    }
7877
 
7878
    // isset id assignments
7879
 
3430 rajveer 7880
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 7881
    static {
3430 rajveer 7882
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7883
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7884
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
7885
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7886
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
352 ashish 7887
    }
7888
 
7889
    public addMessage_result() {
7890
    }
7891
 
7892
    public addMessage_result(
7893
      HelperServiceException se)
7894
    {
7895
      this();
7896
      this.se = se;
7897
    }
7898
 
7899
    /**
7900
     * Performs a deep copy on <i>other</i>.
7901
     */
7902
    public addMessage_result(addMessage_result other) {
7903
      if (other.isSetSe()) {
7904
        this.se = new HelperServiceException(other.se);
7905
      }
7906
    }
7907
 
7908
    public addMessage_result deepCopy() {
7909
      return new addMessage_result(this);
7910
    }
7911
 
3430 rajveer 7912
    @Override
7913
    public void clear() {
7914
      this.se = null;
352 ashish 7915
    }
7916
 
7917
    public HelperServiceException getSe() {
7918
      return this.se;
7919
    }
7920
 
3430 rajveer 7921
    public void setSe(HelperServiceException se) {
352 ashish 7922
      this.se = se;
7923
    }
7924
 
7925
    public void unsetSe() {
7926
      this.se = null;
7927
    }
7928
 
3430 rajveer 7929
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 7930
    public boolean isSetSe() {
7931
      return this.se != null;
7932
    }
7933
 
7934
    public void setSeIsSet(boolean value) {
7935
      if (!value) {
7936
        this.se = null;
7937
      }
7938
    }
7939
 
7940
    public void setFieldValue(_Fields field, Object value) {
7941
      switch (field) {
7942
      case SE:
7943
        if (value == null) {
7944
          unsetSe();
7945
        } else {
7946
          setSe((HelperServiceException)value);
7947
        }
7948
        break;
7949
 
7950
      }
7951
    }
7952
 
7953
    public Object getFieldValue(_Fields field) {
7954
      switch (field) {
7955
      case SE:
7956
        return getSe();
7957
 
7958
      }
7959
      throw new IllegalStateException();
7960
    }
7961
 
3430 rajveer 7962
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7963
    public boolean isSet(_Fields field) {
7964
      if (field == null) {
7965
        throw new IllegalArgumentException();
7966
      }
352 ashish 7967
 
7968
      switch (field) {
7969
      case SE:
7970
        return isSetSe();
7971
      }
7972
      throw new IllegalStateException();
7973
    }
7974
 
7975
    @Override
7976
    public boolean equals(Object that) {
7977
      if (that == null)
7978
        return false;
7979
      if (that instanceof addMessage_result)
7980
        return this.equals((addMessage_result)that);
7981
      return false;
7982
    }
7983
 
7984
    public boolean equals(addMessage_result that) {
7985
      if (that == null)
7986
        return false;
7987
 
7988
      boolean this_present_se = true && this.isSetSe();
7989
      boolean that_present_se = true && that.isSetSe();
7990
      if (this_present_se || that_present_se) {
7991
        if (!(this_present_se && that_present_se))
7992
          return false;
7993
        if (!this.se.equals(that.se))
7994
          return false;
7995
      }
7996
 
7997
      return true;
7998
    }
7999
 
8000
    @Override
8001
    public int hashCode() {
8002
      return 0;
8003
    }
8004
 
8005
    public int compareTo(addMessage_result other) {
8006
      if (!getClass().equals(other.getClass())) {
8007
        return getClass().getName().compareTo(other.getClass().getName());
8008
      }
8009
 
8010
      int lastComparison = 0;
8011
      addMessage_result typedOther = (addMessage_result)other;
8012
 
3430 rajveer 8013
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8014
      if (lastComparison != 0) {
8015
        return lastComparison;
8016
      }
3430 rajveer 8017
      if (isSetSe()) {
8018
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8019
        if (lastComparison != 0) {
8020
          return lastComparison;
8021
        }
352 ashish 8022
      }
8023
      return 0;
8024
    }
8025
 
3430 rajveer 8026
    public _Fields fieldForId(int fieldId) {
8027
      return _Fields.findByThriftId(fieldId);
8028
    }
8029
 
8030
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8031
      org.apache.thrift.protocol.TField field;
352 ashish 8032
      iprot.readStructBegin();
8033
      while (true)
8034
      {
8035
        field = iprot.readFieldBegin();
3430 rajveer 8036
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8037
          break;
8038
        }
3430 rajveer 8039
        switch (field.id) {
8040
          case 1: // SE
8041
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8042
              this.se = new HelperServiceException();
8043
              this.se.read(iprot);
8044
            } else { 
8045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8046
            }
8047
            break;
8048
          default:
8049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8050
        }
3430 rajveer 8051
        iprot.readFieldEnd();
352 ashish 8052
      }
8053
      iprot.readStructEnd();
8054
      validate();
8055
    }
8056
 
3430 rajveer 8057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8058
      oprot.writeStructBegin(STRUCT_DESC);
8059
 
8060
      if (this.isSetSe()) {
8061
        oprot.writeFieldBegin(SE_FIELD_DESC);
8062
        this.se.write(oprot);
8063
        oprot.writeFieldEnd();
8064
      }
8065
      oprot.writeFieldStop();
8066
      oprot.writeStructEnd();
8067
    }
8068
 
8069
    @Override
8070
    public String toString() {
8071
      StringBuilder sb = new StringBuilder("addMessage_result(");
8072
      boolean first = true;
8073
 
8074
      sb.append("se:");
8075
      if (this.se == null) {
8076
        sb.append("null");
8077
      } else {
8078
        sb.append(this.se);
8079
      }
8080
      first = false;
8081
      sb.append(")");
8082
      return sb.toString();
8083
    }
8084
 
3430 rajveer 8085
    public void validate() throws org.apache.thrift.TException {
352 ashish 8086
      // check for required fields
8087
    }
8088
 
3430 rajveer 8089
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8090
      try {
8091
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8092
      } catch (org.apache.thrift.TException te) {
8093
        throw new java.io.IOException(te);
8094
      }
8095
    }
8096
 
8097
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8098
      try {
8099
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8100
      } catch (org.apache.thrift.TException te) {
8101
        throw new java.io.IOException(te);
8102
      }
8103
    }
8104
 
352 ashish 8105
  }
8106
 
3430 rajveer 8107
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
8108
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
352 ashish 8109
 
3430 rajveer 8110
    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);
8111
    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 8112
 
3430 rajveer 8113
    private long id; // required
8114
    private String message; // required
352 ashish 8115
 
8116
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8117
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8118
      ID((short)1, "id"),
8119
      MESSAGE((short)2, "message");
8120
 
8121
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8122
 
8123
      static {
8124
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8125
          byName.put(field.getFieldName(), field);
8126
        }
8127
      }
8128
 
8129
      /**
8130
       * Find the _Fields constant that matches fieldId, or null if its not found.
8131
       */
8132
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8133
        switch(fieldId) {
8134
          case 1: // ID
8135
            return ID;
8136
          case 2: // MESSAGE
8137
            return MESSAGE;
8138
          default:
8139
            return null;
8140
        }
352 ashish 8141
      }
8142
 
8143
      /**
8144
       * Find the _Fields constant that matches fieldId, throwing an exception
8145
       * if it is not found.
8146
       */
8147
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8148
        _Fields fields = findByThriftId(fieldId);
8149
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8150
        return fields;
8151
      }
8152
 
8153
      /**
8154
       * Find the _Fields constant that matches name, or null if its not found.
8155
       */
8156
      public static _Fields findByName(String name) {
8157
        return byName.get(name);
8158
      }
8159
 
8160
      private final short _thriftId;
8161
      private final String _fieldName;
8162
 
8163
      _Fields(short thriftId, String fieldName) {
8164
        _thriftId = thriftId;
8165
        _fieldName = fieldName;
8166
      }
8167
 
8168
      public short getThriftFieldId() {
8169
        return _thriftId;
8170
      }
8171
 
8172
      public String getFieldName() {
8173
        return _fieldName;
8174
      }
8175
    }
8176
 
8177
    // isset id assignments
8178
    private static final int __ID_ISSET_ID = 0;
8179
    private BitSet __isset_bit_vector = new BitSet(1);
8180
 
3430 rajveer 8181
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8182
    static {
3430 rajveer 8183
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8184
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8185
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8186
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8187
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8188
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8189
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
352 ashish 8190
    }
8191
 
8192
    public updateMessage_args() {
8193
    }
8194
 
8195
    public updateMessage_args(
8196
      long id,
8197
      String message)
8198
    {
8199
      this();
8200
      this.id = id;
8201
      setIdIsSet(true);
8202
      this.message = message;
8203
    }
8204
 
8205
    /**
8206
     * Performs a deep copy on <i>other</i>.
8207
     */
8208
    public updateMessage_args(updateMessage_args other) {
8209
      __isset_bit_vector.clear();
8210
      __isset_bit_vector.or(other.__isset_bit_vector);
8211
      this.id = other.id;
8212
      if (other.isSetMessage()) {
8213
        this.message = other.message;
8214
      }
8215
    }
8216
 
8217
    public updateMessage_args deepCopy() {
8218
      return new updateMessage_args(this);
8219
    }
8220
 
3430 rajveer 8221
    @Override
8222
    public void clear() {
8223
      setIdIsSet(false);
8224
      this.id = 0;
8225
      this.message = null;
352 ashish 8226
    }
8227
 
8228
    public long getId() {
8229
      return this.id;
8230
    }
8231
 
3430 rajveer 8232
    public void setId(long id) {
352 ashish 8233
      this.id = id;
8234
      setIdIsSet(true);
8235
    }
8236
 
8237
    public void unsetId() {
8238
      __isset_bit_vector.clear(__ID_ISSET_ID);
8239
    }
8240
 
3430 rajveer 8241
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8242
    public boolean isSetId() {
8243
      return __isset_bit_vector.get(__ID_ISSET_ID);
8244
    }
8245
 
8246
    public void setIdIsSet(boolean value) {
8247
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8248
    }
8249
 
8250
    public String getMessage() {
8251
      return this.message;
8252
    }
8253
 
3430 rajveer 8254
    public void setMessage(String message) {
352 ashish 8255
      this.message = message;
8256
    }
8257
 
8258
    public void unsetMessage() {
8259
      this.message = null;
8260
    }
8261
 
3430 rajveer 8262
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
352 ashish 8263
    public boolean isSetMessage() {
8264
      return this.message != null;
8265
    }
8266
 
8267
    public void setMessageIsSet(boolean value) {
8268
      if (!value) {
8269
        this.message = null;
8270
      }
8271
    }
8272
 
8273
    public void setFieldValue(_Fields field, Object value) {
8274
      switch (field) {
8275
      case ID:
8276
        if (value == null) {
8277
          unsetId();
8278
        } else {
8279
          setId((Long)value);
8280
        }
8281
        break;
8282
 
8283
      case MESSAGE:
8284
        if (value == null) {
8285
          unsetMessage();
8286
        } else {
8287
          setMessage((String)value);
8288
        }
8289
        break;
8290
 
8291
      }
8292
    }
8293
 
8294
    public Object getFieldValue(_Fields field) {
8295
      switch (field) {
8296
      case ID:
3430 rajveer 8297
        return Long.valueOf(getId());
352 ashish 8298
 
8299
      case MESSAGE:
8300
        return getMessage();
8301
 
8302
      }
8303
      throw new IllegalStateException();
8304
    }
8305
 
3430 rajveer 8306
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8307
    public boolean isSet(_Fields field) {
8308
      if (field == null) {
8309
        throw new IllegalArgumentException();
8310
      }
352 ashish 8311
 
8312
      switch (field) {
8313
      case ID:
8314
        return isSetId();
8315
      case MESSAGE:
8316
        return isSetMessage();
8317
      }
8318
      throw new IllegalStateException();
8319
    }
8320
 
8321
    @Override
8322
    public boolean equals(Object that) {
8323
      if (that == null)
8324
        return false;
8325
      if (that instanceof updateMessage_args)
8326
        return this.equals((updateMessage_args)that);
8327
      return false;
8328
    }
8329
 
8330
    public boolean equals(updateMessage_args that) {
8331
      if (that == null)
8332
        return false;
8333
 
8334
      boolean this_present_id = true;
8335
      boolean that_present_id = true;
8336
      if (this_present_id || that_present_id) {
8337
        if (!(this_present_id && that_present_id))
8338
          return false;
8339
        if (this.id != that.id)
8340
          return false;
8341
      }
8342
 
8343
      boolean this_present_message = true && this.isSetMessage();
8344
      boolean that_present_message = true && that.isSetMessage();
8345
      if (this_present_message || that_present_message) {
8346
        if (!(this_present_message && that_present_message))
8347
          return false;
8348
        if (!this.message.equals(that.message))
8349
          return false;
8350
      }
8351
 
8352
      return true;
8353
    }
8354
 
8355
    @Override
8356
    public int hashCode() {
8357
      return 0;
8358
    }
8359
 
8360
    public int compareTo(updateMessage_args other) {
8361
      if (!getClass().equals(other.getClass())) {
8362
        return getClass().getName().compareTo(other.getClass().getName());
8363
      }
8364
 
8365
      int lastComparison = 0;
8366
      updateMessage_args typedOther = (updateMessage_args)other;
8367
 
3430 rajveer 8368
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 8369
      if (lastComparison != 0) {
8370
        return lastComparison;
8371
      }
3430 rajveer 8372
      if (isSetId()) {
8373
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8374
        if (lastComparison != 0) {
8375
          return lastComparison;
8376
        }
352 ashish 8377
      }
3430 rajveer 8378
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
352 ashish 8379
      if (lastComparison != 0) {
8380
        return lastComparison;
8381
      }
3430 rajveer 8382
      if (isSetMessage()) {
8383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
8384
        if (lastComparison != 0) {
8385
          return lastComparison;
8386
        }
352 ashish 8387
      }
8388
      return 0;
8389
    }
8390
 
3430 rajveer 8391
    public _Fields fieldForId(int fieldId) {
8392
      return _Fields.findByThriftId(fieldId);
8393
    }
8394
 
8395
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8396
      org.apache.thrift.protocol.TField field;
352 ashish 8397
      iprot.readStructBegin();
8398
      while (true)
8399
      {
8400
        field = iprot.readFieldBegin();
3430 rajveer 8401
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8402
          break;
8403
        }
3430 rajveer 8404
        switch (field.id) {
8405
          case 1: // ID
8406
            if (field.type == org.apache.thrift.protocol.TType.I64) {
8407
              this.id = iprot.readI64();
8408
              setIdIsSet(true);
8409
            } else { 
8410
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8411
            }
8412
            break;
8413
          case 2: // MESSAGE
8414
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8415
              this.message = iprot.readString();
8416
            } else { 
8417
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8418
            }
8419
            break;
8420
          default:
8421
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8422
        }
3430 rajveer 8423
        iprot.readFieldEnd();
352 ashish 8424
      }
8425
      iprot.readStructEnd();
8426
      validate();
8427
    }
8428
 
3430 rajveer 8429
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8430
      validate();
8431
 
8432
      oprot.writeStructBegin(STRUCT_DESC);
8433
      oprot.writeFieldBegin(ID_FIELD_DESC);
8434
      oprot.writeI64(this.id);
8435
      oprot.writeFieldEnd();
8436
      if (this.message != null) {
8437
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
8438
        oprot.writeString(this.message);
8439
        oprot.writeFieldEnd();
8440
      }
8441
      oprot.writeFieldStop();
8442
      oprot.writeStructEnd();
8443
    }
8444
 
8445
    @Override
8446
    public String toString() {
8447
      StringBuilder sb = new StringBuilder("updateMessage_args(");
8448
      boolean first = true;
8449
 
8450
      sb.append("id:");
8451
      sb.append(this.id);
8452
      first = false;
8453
      if (!first) sb.append(", ");
8454
      sb.append("message:");
8455
      if (this.message == null) {
8456
        sb.append("null");
8457
      } else {
8458
        sb.append(this.message);
8459
      }
8460
      first = false;
8461
      sb.append(")");
8462
      return sb.toString();
8463
    }
8464
 
3430 rajveer 8465
    public void validate() throws org.apache.thrift.TException {
352 ashish 8466
      // check for required fields
8467
    }
8468
 
3430 rajveer 8469
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8470
      try {
8471
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8472
      } catch (org.apache.thrift.TException te) {
8473
        throw new java.io.IOException(te);
8474
      }
8475
    }
8476
 
8477
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8478
      try {
8479
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
8480
        __isset_bit_vector = new BitSet(1);
8481
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8482
      } catch (org.apache.thrift.TException te) {
8483
        throw new java.io.IOException(te);
8484
      }
8485
    }
8486
 
352 ashish 8487
  }
8488
 
3430 rajveer 8489
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
8490
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
352 ashish 8491
 
3430 rajveer 8492
    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 8493
 
3430 rajveer 8494
    private HelperServiceException se; // required
352 ashish 8495
 
8496
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8497
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8498
      SE((short)1, "se");
8499
 
8500
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8501
 
8502
      static {
8503
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8504
          byName.put(field.getFieldName(), field);
8505
        }
8506
      }
8507
 
8508
      /**
8509
       * Find the _Fields constant that matches fieldId, or null if its not found.
8510
       */
8511
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8512
        switch(fieldId) {
8513
          case 1: // SE
8514
            return SE;
8515
          default:
8516
            return null;
8517
        }
352 ashish 8518
      }
8519
 
8520
      /**
8521
       * Find the _Fields constant that matches fieldId, throwing an exception
8522
       * if it is not found.
8523
       */
8524
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8525
        _Fields fields = findByThriftId(fieldId);
8526
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8527
        return fields;
8528
      }
8529
 
8530
      /**
8531
       * Find the _Fields constant that matches name, or null if its not found.
8532
       */
8533
      public static _Fields findByName(String name) {
8534
        return byName.get(name);
8535
      }
8536
 
8537
      private final short _thriftId;
8538
      private final String _fieldName;
8539
 
8540
      _Fields(short thriftId, String fieldName) {
8541
        _thriftId = thriftId;
8542
        _fieldName = fieldName;
8543
      }
8544
 
8545
      public short getThriftFieldId() {
8546
        return _thriftId;
8547
      }
8548
 
8549
      public String getFieldName() {
8550
        return _fieldName;
8551
      }
8552
    }
8553
 
8554
    // isset id assignments
8555
 
3430 rajveer 8556
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8557
    static {
3430 rajveer 8558
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8559
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8560
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
8561
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8562
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
352 ashish 8563
    }
8564
 
8565
    public updateMessage_result() {
8566
    }
8567
 
8568
    public updateMessage_result(
8569
      HelperServiceException se)
8570
    {
8571
      this();
8572
      this.se = se;
8573
    }
8574
 
8575
    /**
8576
     * Performs a deep copy on <i>other</i>.
8577
     */
8578
    public updateMessage_result(updateMessage_result other) {
8579
      if (other.isSetSe()) {
8580
        this.se = new HelperServiceException(other.se);
8581
      }
8582
    }
8583
 
8584
    public updateMessage_result deepCopy() {
8585
      return new updateMessage_result(this);
8586
    }
8587
 
3430 rajveer 8588
    @Override
8589
    public void clear() {
8590
      this.se = null;
352 ashish 8591
    }
8592
 
8593
    public HelperServiceException getSe() {
8594
      return this.se;
8595
    }
8596
 
3430 rajveer 8597
    public void setSe(HelperServiceException se) {
352 ashish 8598
      this.se = se;
8599
    }
8600
 
8601
    public void unsetSe() {
8602
      this.se = null;
8603
    }
8604
 
3430 rajveer 8605
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 8606
    public boolean isSetSe() {
8607
      return this.se != null;
8608
    }
8609
 
8610
    public void setSeIsSet(boolean value) {
8611
      if (!value) {
8612
        this.se = null;
8613
      }
8614
    }
8615
 
8616
    public void setFieldValue(_Fields field, Object value) {
8617
      switch (field) {
8618
      case SE:
8619
        if (value == null) {
8620
          unsetSe();
8621
        } else {
8622
          setSe((HelperServiceException)value);
8623
        }
8624
        break;
8625
 
8626
      }
8627
    }
8628
 
8629
    public Object getFieldValue(_Fields field) {
8630
      switch (field) {
8631
      case SE:
8632
        return getSe();
8633
 
8634
      }
8635
      throw new IllegalStateException();
8636
    }
8637
 
3430 rajveer 8638
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8639
    public boolean isSet(_Fields field) {
8640
      if (field == null) {
8641
        throw new IllegalArgumentException();
8642
      }
352 ashish 8643
 
8644
      switch (field) {
8645
      case SE:
8646
        return isSetSe();
8647
      }
8648
      throw new IllegalStateException();
8649
    }
8650
 
8651
    @Override
8652
    public boolean equals(Object that) {
8653
      if (that == null)
8654
        return false;
8655
      if (that instanceof updateMessage_result)
8656
        return this.equals((updateMessage_result)that);
8657
      return false;
8658
    }
8659
 
8660
    public boolean equals(updateMessage_result that) {
8661
      if (that == null)
8662
        return false;
8663
 
8664
      boolean this_present_se = true && this.isSetSe();
8665
      boolean that_present_se = true && that.isSetSe();
8666
      if (this_present_se || that_present_se) {
8667
        if (!(this_present_se && that_present_se))
8668
          return false;
8669
        if (!this.se.equals(that.se))
8670
          return false;
8671
      }
8672
 
8673
      return true;
8674
    }
8675
 
8676
    @Override
8677
    public int hashCode() {
8678
      return 0;
8679
    }
8680
 
8681
    public int compareTo(updateMessage_result other) {
8682
      if (!getClass().equals(other.getClass())) {
8683
        return getClass().getName().compareTo(other.getClass().getName());
8684
      }
8685
 
8686
      int lastComparison = 0;
8687
      updateMessage_result typedOther = (updateMessage_result)other;
8688
 
3430 rajveer 8689
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 8690
      if (lastComparison != 0) {
8691
        return lastComparison;
8692
      }
3430 rajveer 8693
      if (isSetSe()) {
8694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8695
        if (lastComparison != 0) {
8696
          return lastComparison;
8697
        }
352 ashish 8698
      }
8699
      return 0;
8700
    }
8701
 
3430 rajveer 8702
    public _Fields fieldForId(int fieldId) {
8703
      return _Fields.findByThriftId(fieldId);
8704
    }
8705
 
8706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8707
      org.apache.thrift.protocol.TField field;
352 ashish 8708
      iprot.readStructBegin();
8709
      while (true)
8710
      {
8711
        field = iprot.readFieldBegin();
3430 rajveer 8712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 8713
          break;
8714
        }
3430 rajveer 8715
        switch (field.id) {
8716
          case 1: // SE
8717
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8718
              this.se = new HelperServiceException();
8719
              this.se.read(iprot);
8720
            } else { 
8721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8722
            }
8723
            break;
8724
          default:
8725
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 8726
        }
3430 rajveer 8727
        iprot.readFieldEnd();
352 ashish 8728
      }
8729
      iprot.readStructEnd();
8730
      validate();
8731
    }
8732
 
3430 rajveer 8733
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 8734
      oprot.writeStructBegin(STRUCT_DESC);
8735
 
8736
      if (this.isSetSe()) {
8737
        oprot.writeFieldBegin(SE_FIELD_DESC);
8738
        this.se.write(oprot);
8739
        oprot.writeFieldEnd();
8740
      }
8741
      oprot.writeFieldStop();
8742
      oprot.writeStructEnd();
8743
    }
8744
 
8745
    @Override
8746
    public String toString() {
8747
      StringBuilder sb = new StringBuilder("updateMessage_result(");
8748
      boolean first = true;
8749
 
8750
      sb.append("se:");
8751
      if (this.se == null) {
8752
        sb.append("null");
8753
      } else {
8754
        sb.append(this.se);
8755
      }
8756
      first = false;
8757
      sb.append(")");
8758
      return sb.toString();
8759
    }
8760
 
3430 rajveer 8761
    public void validate() throws org.apache.thrift.TException {
352 ashish 8762
      // check for required fields
8763
    }
8764
 
3430 rajveer 8765
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8766
      try {
8767
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8768
      } catch (org.apache.thrift.TException te) {
8769
        throw new java.io.IOException(te);
8770
      }
8771
    }
8772
 
8773
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8774
      try {
8775
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8776
      } catch (org.apache.thrift.TException te) {
8777
        throw new java.io.IOException(te);
8778
      }
8779
    }
8780
 
352 ashish 8781
  }
8782
 
3430 rajveer 8783
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
8784
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
352 ashish 8785
 
3430 rajveer 8786
    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 8787
 
3430 rajveer 8788
    private long id; // required
352 ashish 8789
 
8790
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8791
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 8792
      ID((short)1, "id");
8793
 
8794
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8795
 
8796
      static {
8797
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8798
          byName.put(field.getFieldName(), field);
8799
        }
8800
      }
8801
 
8802
      /**
8803
       * Find the _Fields constant that matches fieldId, or null if its not found.
8804
       */
8805
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8806
        switch(fieldId) {
8807
          case 1: // ID
8808
            return ID;
8809
          default:
8810
            return null;
8811
        }
352 ashish 8812
      }
8813
 
8814
      /**
8815
       * Find the _Fields constant that matches fieldId, throwing an exception
8816
       * if it is not found.
8817
       */
8818
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8819
        _Fields fields = findByThriftId(fieldId);
8820
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8821
        return fields;
8822
      }
8823
 
8824
      /**
8825
       * Find the _Fields constant that matches name, or null if its not found.
8826
       */
8827
      public static _Fields findByName(String name) {
8828
        return byName.get(name);
8829
      }
8830
 
8831
      private final short _thriftId;
8832
      private final String _fieldName;
8833
 
8834
      _Fields(short thriftId, String fieldName) {
8835
        _thriftId = thriftId;
8836
        _fieldName = fieldName;
8837
      }
8838
 
8839
      public short getThriftFieldId() {
8840
        return _thriftId;
8841
      }
8842
 
8843
      public String getFieldName() {
8844
        return _fieldName;
8845
      }
8846
    }
8847
 
8848
    // isset id assignments
8849
    private static final int __ID_ISSET_ID = 0;
8850
    private BitSet __isset_bit_vector = new BitSet(1);
8851
 
3430 rajveer 8852
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 8853
    static {
3430 rajveer 8854
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8855
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8856
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
8857
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8858
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
352 ashish 8859
    }
8860
 
8861
    public getMessage_args() {
8862
    }
8863
 
8864
    public getMessage_args(
8865
      long id)
8866
    {
8867
      this();
8868
      this.id = id;
8869
      setIdIsSet(true);
8870
    }
8871
 
8872
    /**
8873
     * Performs a deep copy on <i>other</i>.
8874
     */
8875
    public getMessage_args(getMessage_args other) {
8876
      __isset_bit_vector.clear();
8877
      __isset_bit_vector.or(other.__isset_bit_vector);
8878
      this.id = other.id;
8879
    }
8880
 
8881
    public getMessage_args deepCopy() {
8882
      return new getMessage_args(this);
8883
    }
8884
 
3430 rajveer 8885
    @Override
8886
    public void clear() {
8887
      setIdIsSet(false);
8888
      this.id = 0;
352 ashish 8889
    }
8890
 
8891
    public long getId() {
8892
      return this.id;
8893
    }
8894
 
3430 rajveer 8895
    public void setId(long id) {
352 ashish 8896
      this.id = id;
8897
      setIdIsSet(true);
8898
    }
8899
 
8900
    public void unsetId() {
8901
      __isset_bit_vector.clear(__ID_ISSET_ID);
8902
    }
8903
 
3430 rajveer 8904
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 8905
    public boolean isSetId() {
8906
      return __isset_bit_vector.get(__ID_ISSET_ID);
8907
    }
8908
 
8909
    public void setIdIsSet(boolean value) {
8910
      __isset_bit_vector.set(__ID_ISSET_ID, value);
8911
    }
8912
 
8913
    public void setFieldValue(_Fields field, Object value) {
8914
      switch (field) {
8915
      case ID:
8916
        if (value == null) {
8917
          unsetId();
8918
        } else {
8919
          setId((Long)value);
8920
        }
8921
        break;
8922
 
8923
      }
8924
    }
8925
 
8926
    public Object getFieldValue(_Fields field) {
8927
      switch (field) {
8928
      case ID:
3430 rajveer 8929
        return Long.valueOf(getId());
352 ashish 8930
 
8931
      }
8932
      throw new IllegalStateException();
8933
    }
8934
 
3430 rajveer 8935
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8936
    public boolean isSet(_Fields field) {
8937
      if (field == null) {
8938
        throw new IllegalArgumentException();
8939
      }
352 ashish 8940
 
8941
      switch (field) {
8942
      case ID:
8943
        return isSetId();
8944
      }
8945
      throw new IllegalStateException();
8946
    }
8947
 
8948
    @Override
8949
    public boolean equals(Object that) {
8950
      if (that == null)
8951
        return false;
8952
      if (that instanceof getMessage_args)
8953
        return this.equals((getMessage_args)that);
8954
      return false;
8955
    }
8956
 
8957
    public boolean equals(getMessage_args that) {
8958
      if (that == null)
8959
        return false;
8960
 
8961
      boolean this_present_id = true;
8962
      boolean that_present_id = true;
8963
      if (this_present_id || that_present_id) {
8964
        if (!(this_present_id && that_present_id))
8965
          return false;
8966
        if (this.id != that.id)
8967
          return false;
8968
      }
8969
 
8970
      return true;
8971
    }
8972
 
8973
    @Override
8974
    public int hashCode() {
8975
      return 0;
8976
    }
8977
 
8978
    public int compareTo(getMessage_args other) {
8979
      if (!getClass().equals(other.getClass())) {
8980
        return getClass().getName().compareTo(other.getClass().getName());
8981
      }
8982
 
8983
      int lastComparison = 0;
8984
      getMessage_args typedOther = (getMessage_args)other;
8985
 
3430 rajveer 8986
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
352 ashish 8987
      if (lastComparison != 0) {
8988
        return lastComparison;
8989
      }
3430 rajveer 8990
      if (isSetId()) {
8991
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
8992
        if (lastComparison != 0) {
8993
          return lastComparison;
8994
        }
352 ashish 8995
      }
8996
      return 0;
8997
    }
8998
 
3430 rajveer 8999
    public _Fields fieldForId(int fieldId) {
9000
      return _Fields.findByThriftId(fieldId);
9001
    }
9002
 
9003
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9004
      org.apache.thrift.protocol.TField field;
352 ashish 9005
      iprot.readStructBegin();
9006
      while (true)
9007
      {
9008
        field = iprot.readFieldBegin();
3430 rajveer 9009
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9010
          break;
9011
        }
3430 rajveer 9012
        switch (field.id) {
9013
          case 1: // ID
9014
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9015
              this.id = iprot.readI64();
9016
              setIdIsSet(true);
9017
            } else { 
9018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9019
            }
9020
            break;
9021
          default:
9022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9023
        }
3430 rajveer 9024
        iprot.readFieldEnd();
352 ashish 9025
      }
9026
      iprot.readStructEnd();
9027
      validate();
9028
    }
9029
 
3430 rajveer 9030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9031
      validate();
9032
 
9033
      oprot.writeStructBegin(STRUCT_DESC);
9034
      oprot.writeFieldBegin(ID_FIELD_DESC);
9035
      oprot.writeI64(this.id);
9036
      oprot.writeFieldEnd();
9037
      oprot.writeFieldStop();
9038
      oprot.writeStructEnd();
9039
    }
9040
 
9041
    @Override
9042
    public String toString() {
9043
      StringBuilder sb = new StringBuilder("getMessage_args(");
9044
      boolean first = true;
9045
 
9046
      sb.append("id:");
9047
      sb.append(this.id);
9048
      first = false;
9049
      sb.append(")");
9050
      return sb.toString();
9051
    }
9052
 
3430 rajveer 9053
    public void validate() throws org.apache.thrift.TException {
352 ashish 9054
      // check for required fields
9055
    }
9056
 
3430 rajveer 9057
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9058
      try {
9059
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9060
      } catch (org.apache.thrift.TException te) {
9061
        throw new java.io.IOException(te);
9062
      }
9063
    }
9064
 
9065
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9066
      try {
9067
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9068
        __isset_bit_vector = new BitSet(1);
9069
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9070
      } catch (org.apache.thrift.TException te) {
9071
        throw new java.io.IOException(te);
9072
      }
9073
    }
9074
 
352 ashish 9075
  }
9076
 
3430 rajveer 9077
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
9078
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
352 ashish 9079
 
3430 rajveer 9080
    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);
9081
    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 9082
 
3430 rajveer 9083
    private Message success; // required
9084
    private HelperServiceException se; // required
352 ashish 9085
 
9086
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9087
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 9088
      SUCCESS((short)0, "success"),
9089
      SE((short)1, "se");
9090
 
9091
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9092
 
9093
      static {
9094
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9095
          byName.put(field.getFieldName(), field);
9096
        }
9097
      }
9098
 
9099
      /**
9100
       * Find the _Fields constant that matches fieldId, or null if its not found.
9101
       */
9102
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9103
        switch(fieldId) {
9104
          case 0: // SUCCESS
9105
            return SUCCESS;
9106
          case 1: // SE
9107
            return SE;
9108
          default:
9109
            return null;
9110
        }
352 ashish 9111
      }
9112
 
9113
      /**
9114
       * Find the _Fields constant that matches fieldId, throwing an exception
9115
       * if it is not found.
9116
       */
9117
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9118
        _Fields fields = findByThriftId(fieldId);
9119
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9120
        return fields;
9121
      }
9122
 
9123
      /**
9124
       * Find the _Fields constant that matches name, or null if its not found.
9125
       */
9126
      public static _Fields findByName(String name) {
9127
        return byName.get(name);
9128
      }
9129
 
9130
      private final short _thriftId;
9131
      private final String _fieldName;
9132
 
9133
      _Fields(short thriftId, String fieldName) {
9134
        _thriftId = thriftId;
9135
        _fieldName = fieldName;
9136
      }
9137
 
9138
      public short getThriftFieldId() {
9139
        return _thriftId;
9140
      }
9141
 
9142
      public String getFieldName() {
9143
        return _fieldName;
9144
      }
9145
    }
9146
 
9147
    // isset id assignments
9148
 
3430 rajveer 9149
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9150
    static {
3430 rajveer 9151
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9152
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9153
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
9154
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9155
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9156
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9157
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
352 ashish 9158
    }
9159
 
9160
    public getMessage_result() {
9161
    }
9162
 
9163
    public getMessage_result(
9164
      Message success,
9165
      HelperServiceException se)
9166
    {
9167
      this();
9168
      this.success = success;
9169
      this.se = se;
9170
    }
9171
 
9172
    /**
9173
     * Performs a deep copy on <i>other</i>.
9174
     */
9175
    public getMessage_result(getMessage_result other) {
9176
      if (other.isSetSuccess()) {
9177
        this.success = new Message(other.success);
9178
      }
9179
      if (other.isSetSe()) {
9180
        this.se = new HelperServiceException(other.se);
9181
      }
9182
    }
9183
 
9184
    public getMessage_result deepCopy() {
9185
      return new getMessage_result(this);
9186
    }
9187
 
3430 rajveer 9188
    @Override
9189
    public void clear() {
9190
      this.success = null;
9191
      this.se = null;
352 ashish 9192
    }
9193
 
9194
    public Message getSuccess() {
9195
      return this.success;
9196
    }
9197
 
3430 rajveer 9198
    public void setSuccess(Message success) {
352 ashish 9199
      this.success = success;
9200
    }
9201
 
9202
    public void unsetSuccess() {
9203
      this.success = null;
9204
    }
9205
 
3430 rajveer 9206
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 9207
    public boolean isSetSuccess() {
9208
      return this.success != null;
9209
    }
9210
 
9211
    public void setSuccessIsSet(boolean value) {
9212
      if (!value) {
9213
        this.success = null;
9214
      }
9215
    }
9216
 
9217
    public HelperServiceException getSe() {
9218
      return this.se;
9219
    }
9220
 
3430 rajveer 9221
    public void setSe(HelperServiceException se) {
352 ashish 9222
      this.se = se;
9223
    }
9224
 
9225
    public void unsetSe() {
9226
      this.se = null;
9227
    }
9228
 
3430 rajveer 9229
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 9230
    public boolean isSetSe() {
9231
      return this.se != null;
9232
    }
9233
 
9234
    public void setSeIsSet(boolean value) {
9235
      if (!value) {
9236
        this.se = null;
9237
      }
9238
    }
9239
 
9240
    public void setFieldValue(_Fields field, Object value) {
9241
      switch (field) {
9242
      case SUCCESS:
9243
        if (value == null) {
9244
          unsetSuccess();
9245
        } else {
9246
          setSuccess((Message)value);
9247
        }
9248
        break;
9249
 
9250
      case SE:
9251
        if (value == null) {
9252
          unsetSe();
9253
        } else {
9254
          setSe((HelperServiceException)value);
9255
        }
9256
        break;
9257
 
9258
      }
9259
    }
9260
 
9261
    public Object getFieldValue(_Fields field) {
9262
      switch (field) {
9263
      case SUCCESS:
9264
        return getSuccess();
9265
 
9266
      case SE:
9267
        return getSe();
9268
 
9269
      }
9270
      throw new IllegalStateException();
9271
    }
9272
 
3430 rajveer 9273
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9274
    public boolean isSet(_Fields field) {
9275
      if (field == null) {
9276
        throw new IllegalArgumentException();
9277
      }
352 ashish 9278
 
9279
      switch (field) {
9280
      case SUCCESS:
9281
        return isSetSuccess();
9282
      case SE:
9283
        return isSetSe();
9284
      }
9285
      throw new IllegalStateException();
9286
    }
9287
 
9288
    @Override
9289
    public boolean equals(Object that) {
9290
      if (that == null)
9291
        return false;
9292
      if (that instanceof getMessage_result)
9293
        return this.equals((getMessage_result)that);
9294
      return false;
9295
    }
9296
 
9297
    public boolean equals(getMessage_result that) {
9298
      if (that == null)
9299
        return false;
9300
 
9301
      boolean this_present_success = true && this.isSetSuccess();
9302
      boolean that_present_success = true && that.isSetSuccess();
9303
      if (this_present_success || that_present_success) {
9304
        if (!(this_present_success && that_present_success))
9305
          return false;
9306
        if (!this.success.equals(that.success))
9307
          return false;
9308
      }
9309
 
9310
      boolean this_present_se = true && this.isSetSe();
9311
      boolean that_present_se = true && that.isSetSe();
9312
      if (this_present_se || that_present_se) {
9313
        if (!(this_present_se && that_present_se))
9314
          return false;
9315
        if (!this.se.equals(that.se))
9316
          return false;
9317
      }
9318
 
9319
      return true;
9320
    }
9321
 
9322
    @Override
9323
    public int hashCode() {
9324
      return 0;
9325
    }
9326
 
9327
    public int compareTo(getMessage_result other) {
9328
      if (!getClass().equals(other.getClass())) {
9329
        return getClass().getName().compareTo(other.getClass().getName());
9330
      }
9331
 
9332
      int lastComparison = 0;
9333
      getMessage_result typedOther = (getMessage_result)other;
9334
 
3430 rajveer 9335
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 9336
      if (lastComparison != 0) {
9337
        return lastComparison;
9338
      }
3430 rajveer 9339
      if (isSetSuccess()) {
9340
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9341
        if (lastComparison != 0) {
9342
          return lastComparison;
9343
        }
352 ashish 9344
      }
3430 rajveer 9345
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 9346
      if (lastComparison != 0) {
9347
        return lastComparison;
9348
      }
3430 rajveer 9349
      if (isSetSe()) {
9350
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9351
        if (lastComparison != 0) {
9352
          return lastComparison;
9353
        }
352 ashish 9354
      }
9355
      return 0;
9356
    }
9357
 
3430 rajveer 9358
    public _Fields fieldForId(int fieldId) {
9359
      return _Fields.findByThriftId(fieldId);
9360
    }
9361
 
9362
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9363
      org.apache.thrift.protocol.TField field;
352 ashish 9364
      iprot.readStructBegin();
9365
      while (true)
9366
      {
9367
        field = iprot.readFieldBegin();
3430 rajveer 9368
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9369
          break;
9370
        }
3430 rajveer 9371
        switch (field.id) {
9372
          case 0: // SUCCESS
9373
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9374
              this.success = new Message();
9375
              this.success.read(iprot);
9376
            } else { 
9377
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9378
            }
9379
            break;
9380
          case 1: // SE
9381
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9382
              this.se = new HelperServiceException();
9383
              this.se.read(iprot);
9384
            } else { 
9385
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9386
            }
9387
            break;
9388
          default:
9389
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9390
        }
3430 rajveer 9391
        iprot.readFieldEnd();
352 ashish 9392
      }
9393
      iprot.readStructEnd();
9394
      validate();
9395
    }
9396
 
3430 rajveer 9397
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9398
      oprot.writeStructBegin(STRUCT_DESC);
9399
 
9400
      if (this.isSetSuccess()) {
9401
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9402
        this.success.write(oprot);
9403
        oprot.writeFieldEnd();
9404
      } else if (this.isSetSe()) {
9405
        oprot.writeFieldBegin(SE_FIELD_DESC);
9406
        this.se.write(oprot);
9407
        oprot.writeFieldEnd();
9408
      }
9409
      oprot.writeFieldStop();
9410
      oprot.writeStructEnd();
9411
    }
9412
 
9413
    @Override
9414
    public String toString() {
9415
      StringBuilder sb = new StringBuilder("getMessage_result(");
9416
      boolean first = true;
9417
 
9418
      sb.append("success:");
9419
      if (this.success == null) {
9420
        sb.append("null");
9421
      } else {
9422
        sb.append(this.success);
9423
      }
9424
      first = false;
9425
      if (!first) sb.append(", ");
9426
      sb.append("se:");
9427
      if (this.se == null) {
9428
        sb.append("null");
9429
      } else {
9430
        sb.append(this.se);
9431
      }
9432
      first = false;
9433
      sb.append(")");
9434
      return sb.toString();
9435
    }
9436
 
3430 rajveer 9437
    public void validate() throws org.apache.thrift.TException {
352 ashish 9438
      // check for required fields
9439
    }
9440
 
3430 rajveer 9441
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9442
      try {
9443
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9444
      } catch (org.apache.thrift.TException te) {
9445
        throw new java.io.IOException(te);
9446
      }
9447
    }
9448
 
9449
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9450
      try {
9451
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9452
      } catch (org.apache.thrift.TException te) {
9453
        throw new java.io.IOException(te);
9454
      }
9455
    }
9456
 
352 ashish 9457
  }
9458
 
3430 rajveer 9459
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
9460
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
352 ashish 9461
 
3430 rajveer 9462
    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);
9463
    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 9464
 
3430 rajveer 9465
    private long id; // required
9466
    private Map<String,String> params; // required
352 ashish 9467
 
9468
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9469
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 9470
      ID((short)1, "id"),
9471
      PARAMS((short)2, "params");
9472
 
9473
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9474
 
9475
      static {
9476
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9477
          byName.put(field.getFieldName(), field);
9478
        }
9479
      }
9480
 
9481
      /**
9482
       * Find the _Fields constant that matches fieldId, or null if its not found.
9483
       */
9484
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9485
        switch(fieldId) {
9486
          case 1: // ID
9487
            return ID;
9488
          case 2: // PARAMS
9489
            return PARAMS;
9490
          default:
9491
            return null;
9492
        }
352 ashish 9493
      }
9494
 
9495
      /**
9496
       * Find the _Fields constant that matches fieldId, throwing an exception
9497
       * if it is not found.
9498
       */
9499
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9500
        _Fields fields = findByThriftId(fieldId);
9501
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9502
        return fields;
9503
      }
9504
 
9505
      /**
9506
       * Find the _Fields constant that matches name, or null if its not found.
9507
       */
9508
      public static _Fields findByName(String name) {
9509
        return byName.get(name);
9510
      }
9511
 
9512
      private final short _thriftId;
9513
      private final String _fieldName;
9514
 
9515
      _Fields(short thriftId, String fieldName) {
9516
        _thriftId = thriftId;
9517
        _fieldName = fieldName;
9518
      }
9519
 
9520
      public short getThriftFieldId() {
9521
        return _thriftId;
9522
      }
9523
 
9524
      public String getFieldName() {
9525
        return _fieldName;
9526
      }
9527
    }
9528
 
9529
    // isset id assignments
9530
    private static final int __ID_ISSET_ID = 0;
9531
    private BitSet __isset_bit_vector = new BitSet(1);
9532
 
3430 rajveer 9533
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9534
    static {
3430 rajveer 9535
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9536
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9537
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9538
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9539
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
9540
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
9541
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9542
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9543
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
352 ashish 9544
    }
9545
 
9546
    public getSubstitutedMessage_args() {
9547
    }
9548
 
9549
    public getSubstitutedMessage_args(
9550
      long id,
9551
      Map<String,String> params)
9552
    {
9553
      this();
9554
      this.id = id;
9555
      setIdIsSet(true);
9556
      this.params = params;
9557
    }
9558
 
9559
    /**
9560
     * Performs a deep copy on <i>other</i>.
9561
     */
9562
    public getSubstitutedMessage_args(getSubstitutedMessage_args other) {
9563
      __isset_bit_vector.clear();
9564
      __isset_bit_vector.or(other.__isset_bit_vector);
9565
      this.id = other.id;
9566
      if (other.isSetParams()) {
9567
        Map<String,String> __this__params = new HashMap<String,String>();
9568
        for (Map.Entry<String, String> other_element : other.params.entrySet()) {
9569
 
9570
          String other_element_key = other_element.getKey();
9571
          String other_element_value = other_element.getValue();
9572
 
9573
          String __this__params_copy_key = other_element_key;
9574
 
9575
          String __this__params_copy_value = other_element_value;
9576
 
9577
          __this__params.put(__this__params_copy_key, __this__params_copy_value);
9578
        }
9579
        this.params = __this__params;
9580
      }
9581
    }
9582
 
9583
    public getSubstitutedMessage_args deepCopy() {
9584
      return new getSubstitutedMessage_args(this);
9585
    }
9586
 
3430 rajveer 9587
    @Override
9588
    public void clear() {
9589
      setIdIsSet(false);
9590
      this.id = 0;
9591
      this.params = null;
352 ashish 9592
    }
9593
 
9594
    public long getId() {
9595
      return this.id;
9596
    }
9597
 
3430 rajveer 9598
    public void setId(long id) {
352 ashish 9599
      this.id = id;
9600
      setIdIsSet(true);
9601
    }
9602
 
9603
    public void unsetId() {
9604
      __isset_bit_vector.clear(__ID_ISSET_ID);
9605
    }
9606
 
3430 rajveer 9607
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
352 ashish 9608
    public boolean isSetId() {
9609
      return __isset_bit_vector.get(__ID_ISSET_ID);
9610
    }
9611
 
9612
    public void setIdIsSet(boolean value) {
9613
      __isset_bit_vector.set(__ID_ISSET_ID, value);
9614
    }
9615
 
9616
    public int getParamsSize() {
9617
      return (this.params == null) ? 0 : this.params.size();
9618
    }
9619
 
9620
    public void putToParams(String key, String val) {
9621
      if (this.params == null) {
9622
        this.params = new HashMap<String,String>();
9623
      }
9624
      this.params.put(key, val);
9625
    }
9626
 
9627
    public Map<String,String> getParams() {
9628
      return this.params;
9629
    }
9630
 
3430 rajveer 9631
    public void setParams(Map<String,String> params) {
352 ashish 9632
      this.params = params;
9633
    }
9634
 
9635
    public void unsetParams() {
9636
      this.params = null;
9637
    }
9638
 
3430 rajveer 9639
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
352 ashish 9640
    public boolean isSetParams() {
9641
      return this.params != null;
9642
    }
9643
 
9644
    public void setParamsIsSet(boolean value) {
9645
      if (!value) {
9646
        this.params = null;
9647
      }
9648
    }
9649
 
9650
    public void setFieldValue(_Fields field, Object value) {
9651
      switch (field) {
9652
      case ID:
9653
        if (value == null) {
9654
          unsetId();
9655
        } else {
9656
          setId((Long)value);
9657
        }
9658
        break;
9659
 
9660
      case PARAMS:
9661
        if (value == null) {
9662
          unsetParams();
9663
        } else {
9664
          setParams((Map<String,String>)value);
9665
        }
9666
        break;
9667
 
9668
      }
9669
    }
9670
 
9671
    public Object getFieldValue(_Fields field) {
9672
      switch (field) {
9673
      case ID:
3430 rajveer 9674
        return Long.valueOf(getId());
352 ashish 9675
 
9676
      case PARAMS:
9677
        return getParams();
9678
 
9679
      }
9680
      throw new IllegalStateException();
9681
    }
9682
 
3430 rajveer 9683
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9684
    public boolean isSet(_Fields field) {
9685
      if (field == null) {
9686
        throw new IllegalArgumentException();
9687
      }
352 ashish 9688
 
9689
      switch (field) {
9690
      case ID:
9691
        return isSetId();
9692
      case PARAMS:
9693
        return isSetParams();
9694
      }
9695
      throw new IllegalStateException();
9696
    }
9697
 
9698
    @Override
9699
    public boolean equals(Object that) {
9700
      if (that == null)
9701
        return false;
9702
      if (that instanceof getSubstitutedMessage_args)
9703
        return this.equals((getSubstitutedMessage_args)that);
9704
      return false;
9705
    }
9706
 
9707
    public boolean equals(getSubstitutedMessage_args that) {
9708
      if (that == null)
9709
        return false;
9710
 
9711
      boolean this_present_id = true;
9712
      boolean that_present_id = true;
9713
      if (this_present_id || that_present_id) {
9714
        if (!(this_present_id && that_present_id))
9715
          return false;
9716
        if (this.id != that.id)
9717
          return false;
9718
      }
9719
 
9720
      boolean this_present_params = true && this.isSetParams();
9721
      boolean that_present_params = true && that.isSetParams();
9722
      if (this_present_params || that_present_params) {
9723
        if (!(this_present_params && that_present_params))
9724
          return false;
9725
        if (!this.params.equals(that.params))
9726
          return false;
9727
      }
9728
 
9729
      return true;
9730
    }
9731
 
9732
    @Override
9733
    public int hashCode() {
9734
      return 0;
9735
    }
9736
 
3430 rajveer 9737
    public int compareTo(getSubstitutedMessage_args other) {
9738
      if (!getClass().equals(other.getClass())) {
9739
        return getClass().getName().compareTo(other.getClass().getName());
9740
      }
9741
 
9742
      int lastComparison = 0;
9743
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
9744
 
9745
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
9746
      if (lastComparison != 0) {
9747
        return lastComparison;
9748
      }
9749
      if (isSetId()) {
9750
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
9751
        if (lastComparison != 0) {
9752
          return lastComparison;
9753
        }
9754
      }
9755
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
9756
      if (lastComparison != 0) {
9757
        return lastComparison;
9758
      }
9759
      if (isSetParams()) {
9760
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
9761
        if (lastComparison != 0) {
9762
          return lastComparison;
9763
        }
9764
      }
9765
      return 0;
9766
    }
9767
 
9768
    public _Fields fieldForId(int fieldId) {
9769
      return _Fields.findByThriftId(fieldId);
9770
    }
9771
 
9772
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9773
      org.apache.thrift.protocol.TField field;
352 ashish 9774
      iprot.readStructBegin();
9775
      while (true)
9776
      {
9777
        field = iprot.readFieldBegin();
3430 rajveer 9778
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 9779
          break;
9780
        }
3430 rajveer 9781
        switch (field.id) {
9782
          case 1: // ID
9783
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9784
              this.id = iprot.readI64();
9785
              setIdIsSet(true);
9786
            } else { 
9787
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9788
            }
9789
            break;
9790
          case 2: // PARAMS
9791
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
9792
              {
5864 rajveer 9793
                org.apache.thrift.protocol.TMap _map36 = iprot.readMapBegin();
9794
                this.params = new HashMap<String,String>(2*_map36.size);
9795
                for (int _i37 = 0; _i37 < _map36.size; ++_i37)
352 ashish 9796
                {
5864 rajveer 9797
                  String _key38; // required
9798
                  String _val39; // required
9799
                  _key38 = iprot.readString();
9800
                  _val39 = iprot.readString();
9801
                  this.params.put(_key38, _val39);
352 ashish 9802
                }
3430 rajveer 9803
                iprot.readMapEnd();
352 ashish 9804
              }
3430 rajveer 9805
            } else { 
9806
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9807
            }
9808
            break;
9809
          default:
9810
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 9811
        }
3430 rajveer 9812
        iprot.readFieldEnd();
352 ashish 9813
      }
9814
      iprot.readStructEnd();
9815
      validate();
9816
    }
9817
 
3430 rajveer 9818
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 9819
      validate();
9820
 
9821
      oprot.writeStructBegin(STRUCT_DESC);
9822
      oprot.writeFieldBegin(ID_FIELD_DESC);
9823
      oprot.writeI64(this.id);
9824
      oprot.writeFieldEnd();
9825
      if (this.params != null) {
9826
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
9827
        {
3430 rajveer 9828
          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 9829
          for (Map.Entry<String, String> _iter40 : this.params.entrySet())
352 ashish 9830
          {
5864 rajveer 9831
            oprot.writeString(_iter40.getKey());
9832
            oprot.writeString(_iter40.getValue());
352 ashish 9833
          }
9834
          oprot.writeMapEnd();
9835
        }
9836
        oprot.writeFieldEnd();
9837
      }
9838
      oprot.writeFieldStop();
9839
      oprot.writeStructEnd();
9840
    }
9841
 
9842
    @Override
9843
    public String toString() {
9844
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_args(");
9845
      boolean first = true;
9846
 
9847
      sb.append("id:");
9848
      sb.append(this.id);
9849
      first = false;
9850
      if (!first) sb.append(", ");
9851
      sb.append("params:");
9852
      if (this.params == null) {
9853
        sb.append("null");
9854
      } else {
9855
        sb.append(this.params);
9856
      }
9857
      first = false;
9858
      sb.append(")");
9859
      return sb.toString();
9860
    }
9861
 
3430 rajveer 9862
    public void validate() throws org.apache.thrift.TException {
352 ashish 9863
      // check for required fields
9864
    }
9865
 
3430 rajveer 9866
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9867
      try {
9868
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9869
      } catch (org.apache.thrift.TException te) {
9870
        throw new java.io.IOException(te);
9871
      }
9872
    }
9873
 
9874
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9875
      try {
9876
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
9877
        __isset_bit_vector = new BitSet(1);
9878
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9879
      } catch (org.apache.thrift.TException te) {
9880
        throw new java.io.IOException(te);
9881
      }
9882
    }
9883
 
352 ashish 9884
  }
9885
 
3430 rajveer 9886
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
9887
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
352 ashish 9888
 
3430 rajveer 9889
    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);
9890
    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 9891
 
3430 rajveer 9892
    private Message success; // required
9893
    private HelperServiceException se; // required
352 ashish 9894
 
9895
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9896
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
352 ashish 9897
      SUCCESS((short)0, "success"),
9898
      SE((short)1, "se");
9899
 
9900
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9901
 
9902
      static {
9903
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9904
          byName.put(field.getFieldName(), field);
9905
        }
9906
      }
9907
 
9908
      /**
9909
       * Find the _Fields constant that matches fieldId, or null if its not found.
9910
       */
9911
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9912
        switch(fieldId) {
9913
          case 0: // SUCCESS
9914
            return SUCCESS;
9915
          case 1: // SE
9916
            return SE;
9917
          default:
9918
            return null;
9919
        }
352 ashish 9920
      }
9921
 
9922
      /**
9923
       * Find the _Fields constant that matches fieldId, throwing an exception
9924
       * if it is not found.
9925
       */
9926
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9927
        _Fields fields = findByThriftId(fieldId);
9928
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9929
        return fields;
9930
      }
9931
 
9932
      /**
9933
       * Find the _Fields constant that matches name, or null if its not found.
9934
       */
9935
      public static _Fields findByName(String name) {
9936
        return byName.get(name);
9937
      }
9938
 
9939
      private final short _thriftId;
9940
      private final String _fieldName;
9941
 
9942
      _Fields(short thriftId, String fieldName) {
9943
        _thriftId = thriftId;
9944
        _fieldName = fieldName;
9945
      }
9946
 
9947
      public short getThriftFieldId() {
9948
        return _thriftId;
9949
      }
9950
 
9951
      public String getFieldName() {
9952
        return _fieldName;
9953
      }
9954
    }
9955
 
9956
    // isset id assignments
9957
 
3430 rajveer 9958
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
352 ashish 9959
    static {
3430 rajveer 9960
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9961
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9962
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
9963
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9964
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
9965
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9966
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
352 ashish 9967
    }
9968
 
9969
    public getSubstitutedMessage_result() {
9970
    }
9971
 
9972
    public getSubstitutedMessage_result(
9973
      Message success,
9974
      HelperServiceException se)
9975
    {
9976
      this();
9977
      this.success = success;
9978
      this.se = se;
9979
    }
9980
 
9981
    /**
9982
     * Performs a deep copy on <i>other</i>.
9983
     */
9984
    public getSubstitutedMessage_result(getSubstitutedMessage_result other) {
9985
      if (other.isSetSuccess()) {
9986
        this.success = new Message(other.success);
9987
      }
9988
      if (other.isSetSe()) {
9989
        this.se = new HelperServiceException(other.se);
9990
      }
9991
    }
9992
 
9993
    public getSubstitutedMessage_result deepCopy() {
9994
      return new getSubstitutedMessage_result(this);
9995
    }
9996
 
3430 rajveer 9997
    @Override
9998
    public void clear() {
9999
      this.success = null;
10000
      this.se = null;
352 ashish 10001
    }
10002
 
10003
    public Message getSuccess() {
10004
      return this.success;
10005
    }
10006
 
3430 rajveer 10007
    public void setSuccess(Message success) {
352 ashish 10008
      this.success = success;
10009
    }
10010
 
10011
    public void unsetSuccess() {
10012
      this.success = null;
10013
    }
10014
 
3430 rajveer 10015
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
352 ashish 10016
    public boolean isSetSuccess() {
10017
      return this.success != null;
10018
    }
10019
 
10020
    public void setSuccessIsSet(boolean value) {
10021
      if (!value) {
10022
        this.success = null;
10023
      }
10024
    }
10025
 
10026
    public HelperServiceException getSe() {
10027
      return this.se;
10028
    }
10029
 
3430 rajveer 10030
    public void setSe(HelperServiceException se) {
352 ashish 10031
      this.se = se;
10032
    }
10033
 
10034
    public void unsetSe() {
10035
      this.se = null;
10036
    }
10037
 
3430 rajveer 10038
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
352 ashish 10039
    public boolean isSetSe() {
10040
      return this.se != null;
10041
    }
10042
 
10043
    public void setSeIsSet(boolean value) {
10044
      if (!value) {
10045
        this.se = null;
10046
      }
10047
    }
10048
 
10049
    public void setFieldValue(_Fields field, Object value) {
10050
      switch (field) {
10051
      case SUCCESS:
10052
        if (value == null) {
10053
          unsetSuccess();
10054
        } else {
10055
          setSuccess((Message)value);
10056
        }
10057
        break;
10058
 
10059
      case SE:
10060
        if (value == null) {
10061
          unsetSe();
10062
        } else {
10063
          setSe((HelperServiceException)value);
10064
        }
10065
        break;
10066
 
10067
      }
10068
    }
10069
 
10070
    public Object getFieldValue(_Fields field) {
10071
      switch (field) {
10072
      case SUCCESS:
10073
        return getSuccess();
10074
 
10075
      case SE:
10076
        return getSe();
10077
 
10078
      }
10079
      throw new IllegalStateException();
10080
    }
10081
 
3430 rajveer 10082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10083
    public boolean isSet(_Fields field) {
10084
      if (field == null) {
10085
        throw new IllegalArgumentException();
10086
      }
352 ashish 10087
 
10088
      switch (field) {
10089
      case SUCCESS:
10090
        return isSetSuccess();
10091
      case SE:
10092
        return isSetSe();
10093
      }
10094
      throw new IllegalStateException();
10095
    }
10096
 
10097
    @Override
10098
    public boolean equals(Object that) {
10099
      if (that == null)
10100
        return false;
10101
      if (that instanceof getSubstitutedMessage_result)
10102
        return this.equals((getSubstitutedMessage_result)that);
10103
      return false;
10104
    }
10105
 
10106
    public boolean equals(getSubstitutedMessage_result that) {
10107
      if (that == null)
10108
        return false;
10109
 
10110
      boolean this_present_success = true && this.isSetSuccess();
10111
      boolean that_present_success = true && that.isSetSuccess();
10112
      if (this_present_success || that_present_success) {
10113
        if (!(this_present_success && that_present_success))
10114
          return false;
10115
        if (!this.success.equals(that.success))
10116
          return false;
10117
      }
10118
 
10119
      boolean this_present_se = true && this.isSetSe();
10120
      boolean that_present_se = true && that.isSetSe();
10121
      if (this_present_se || that_present_se) {
10122
        if (!(this_present_se && that_present_se))
10123
          return false;
10124
        if (!this.se.equals(that.se))
10125
          return false;
10126
      }
10127
 
10128
      return true;
10129
    }
10130
 
10131
    @Override
10132
    public int hashCode() {
10133
      return 0;
10134
    }
10135
 
10136
    public int compareTo(getSubstitutedMessage_result other) {
10137
      if (!getClass().equals(other.getClass())) {
10138
        return getClass().getName().compareTo(other.getClass().getName());
10139
      }
10140
 
10141
      int lastComparison = 0;
10142
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
10143
 
3430 rajveer 10144
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
352 ashish 10145
      if (lastComparison != 0) {
10146
        return lastComparison;
10147
      }
3430 rajveer 10148
      if (isSetSuccess()) {
10149
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10150
        if (lastComparison != 0) {
10151
          return lastComparison;
10152
        }
352 ashish 10153
      }
3430 rajveer 10154
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
352 ashish 10155
      if (lastComparison != 0) {
10156
        return lastComparison;
10157
      }
3430 rajveer 10158
      if (isSetSe()) {
10159
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10160
        if (lastComparison != 0) {
10161
          return lastComparison;
10162
        }
352 ashish 10163
      }
10164
      return 0;
10165
    }
10166
 
3430 rajveer 10167
    public _Fields fieldForId(int fieldId) {
10168
      return _Fields.findByThriftId(fieldId);
10169
    }
10170
 
10171
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10172
      org.apache.thrift.protocol.TField field;
352 ashish 10173
      iprot.readStructBegin();
10174
      while (true)
10175
      {
10176
        field = iprot.readFieldBegin();
3430 rajveer 10177
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
352 ashish 10178
          break;
10179
        }
3430 rajveer 10180
        switch (field.id) {
10181
          case 0: // SUCCESS
10182
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10183
              this.success = new Message();
10184
              this.success.read(iprot);
10185
            } else { 
10186
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10187
            }
10188
            break;
10189
          case 1: // SE
10190
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10191
              this.se = new HelperServiceException();
10192
              this.se.read(iprot);
10193
            } else { 
10194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10195
            }
10196
            break;
10197
          default:
10198
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
352 ashish 10199
        }
3430 rajveer 10200
        iprot.readFieldEnd();
352 ashish 10201
      }
10202
      iprot.readStructEnd();
10203
      validate();
10204
    }
10205
 
3430 rajveer 10206
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
352 ashish 10207
      oprot.writeStructBegin(STRUCT_DESC);
10208
 
10209
      if (this.isSetSuccess()) {
10210
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10211
        this.success.write(oprot);
10212
        oprot.writeFieldEnd();
10213
      } else if (this.isSetSe()) {
10214
        oprot.writeFieldBegin(SE_FIELD_DESC);
10215
        this.se.write(oprot);
10216
        oprot.writeFieldEnd();
10217
      }
10218
      oprot.writeFieldStop();
10219
      oprot.writeStructEnd();
10220
    }
10221
 
10222
    @Override
10223
    public String toString() {
10224
      StringBuilder sb = new StringBuilder("getSubstitutedMessage_result(");
10225
      boolean first = true;
10226
 
10227
      sb.append("success:");
10228
      if (this.success == null) {
10229
        sb.append("null");
10230
      } else {
10231
        sb.append(this.success);
10232
      }
10233
      first = false;
10234
      if (!first) sb.append(", ");
10235
      sb.append("se:");
10236
      if (this.se == null) {
10237
        sb.append("null");
10238
      } else {
10239
        sb.append(this.se);
10240
      }
10241
      first = false;
10242
      sb.append(")");
10243
      return sb.toString();
10244
    }
10245
 
3430 rajveer 10246
    public void validate() throws org.apache.thrift.TException {
352 ashish 10247
      // check for required fields
10248
    }
10249
 
3430 rajveer 10250
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10251
      try {
10252
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10253
      } catch (org.apache.thrift.TException te) {
10254
        throw new java.io.IOException(te);
10255
      }
10256
    }
10257
 
10258
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10259
      try {
10260
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10261
      } catch (org.apache.thrift.TException te) {
10262
        throw new java.io.IOException(te);
10263
      }
10264
    }
10265
 
352 ashish 10266
  }
10267
 
3430 rajveer 10268
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
10269
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
495 rajveer 10270
 
3430 rajveer 10271
    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);
10272
    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);
10273
    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 10274
 
3430 rajveer 10275
    private String username; // required
10276
    private String password; // required
10277
    private long warehouseId; // required
495 rajveer 10278
 
10279
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10280
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10281
      USERNAME((short)1, "username"),
10282
      PASSWORD((short)2, "password"),
10283
      WAREHOUSE_ID((short)3, "warehouseId");
10284
 
10285
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10286
 
10287
      static {
10288
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10289
          byName.put(field.getFieldName(), field);
10290
        }
10291
      }
10292
 
10293
      /**
10294
       * Find the _Fields constant that matches fieldId, or null if its not found.
10295
       */
10296
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10297
        switch(fieldId) {
10298
          case 1: // USERNAME
10299
            return USERNAME;
10300
          case 2: // PASSWORD
10301
            return PASSWORD;
10302
          case 3: // WAREHOUSE_ID
10303
            return WAREHOUSE_ID;
10304
          default:
10305
            return null;
10306
        }
495 rajveer 10307
      }
10308
 
10309
      /**
10310
       * Find the _Fields constant that matches fieldId, throwing an exception
10311
       * if it is not found.
10312
       */
10313
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10314
        _Fields fields = findByThriftId(fieldId);
10315
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10316
        return fields;
10317
      }
10318
 
10319
      /**
10320
       * Find the _Fields constant that matches name, or null if its not found.
10321
       */
10322
      public static _Fields findByName(String name) {
10323
        return byName.get(name);
10324
      }
10325
 
10326
      private final short _thriftId;
10327
      private final String _fieldName;
10328
 
10329
      _Fields(short thriftId, String fieldName) {
10330
        _thriftId = thriftId;
10331
        _fieldName = fieldName;
10332
      }
10333
 
10334
      public short getThriftFieldId() {
10335
        return _thriftId;
10336
      }
10337
 
10338
      public String getFieldName() {
10339
        return _fieldName;
10340
      }
10341
    }
10342
 
10343
    // isset id assignments
10344
    private static final int __WAREHOUSEID_ISSET_ID = 0;
10345
    private BitSet __isset_bit_vector = new BitSet(1);
10346
 
3430 rajveer 10347
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10348
    static {
3430 rajveer 10349
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10350
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10351
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10352
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10353
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10354
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10355
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10356
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10357
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
495 rajveer 10358
    }
10359
 
10360
    public addUser_args() {
10361
    }
10362
 
10363
    public addUser_args(
10364
      String username,
10365
      String password,
10366
      long warehouseId)
10367
    {
10368
      this();
10369
      this.username = username;
10370
      this.password = password;
10371
      this.warehouseId = warehouseId;
10372
      setWarehouseIdIsSet(true);
10373
    }
10374
 
10375
    /**
10376
     * Performs a deep copy on <i>other</i>.
10377
     */
10378
    public addUser_args(addUser_args other) {
10379
      __isset_bit_vector.clear();
10380
      __isset_bit_vector.or(other.__isset_bit_vector);
10381
      if (other.isSetUsername()) {
10382
        this.username = other.username;
10383
      }
10384
      if (other.isSetPassword()) {
10385
        this.password = other.password;
10386
      }
10387
      this.warehouseId = other.warehouseId;
10388
    }
10389
 
10390
    public addUser_args deepCopy() {
10391
      return new addUser_args(this);
10392
    }
10393
 
3430 rajveer 10394
    @Override
10395
    public void clear() {
10396
      this.username = null;
10397
      this.password = null;
10398
      setWarehouseIdIsSet(false);
10399
      this.warehouseId = 0;
495 rajveer 10400
    }
10401
 
10402
    public String getUsername() {
10403
      return this.username;
10404
    }
10405
 
3430 rajveer 10406
    public void setUsername(String username) {
495 rajveer 10407
      this.username = username;
10408
    }
10409
 
10410
    public void unsetUsername() {
10411
      this.username = null;
10412
    }
10413
 
3430 rajveer 10414
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 10415
    public boolean isSetUsername() {
10416
      return this.username != null;
10417
    }
10418
 
10419
    public void setUsernameIsSet(boolean value) {
10420
      if (!value) {
10421
        this.username = null;
10422
      }
10423
    }
10424
 
10425
    public String getPassword() {
10426
      return this.password;
10427
    }
10428
 
3430 rajveer 10429
    public void setPassword(String password) {
495 rajveer 10430
      this.password = password;
10431
    }
10432
 
10433
    public void unsetPassword() {
10434
      this.password = null;
10435
    }
10436
 
3430 rajveer 10437
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 10438
    public boolean isSetPassword() {
10439
      return this.password != null;
10440
    }
10441
 
10442
    public void setPasswordIsSet(boolean value) {
10443
      if (!value) {
10444
        this.password = null;
10445
      }
10446
    }
10447
 
10448
    public long getWarehouseId() {
10449
      return this.warehouseId;
10450
    }
10451
 
3430 rajveer 10452
    public void setWarehouseId(long warehouseId) {
495 rajveer 10453
      this.warehouseId = warehouseId;
10454
      setWarehouseIdIsSet(true);
10455
    }
10456
 
10457
    public void unsetWarehouseId() {
10458
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
10459
    }
10460
 
3430 rajveer 10461
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
495 rajveer 10462
    public boolean isSetWarehouseId() {
10463
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
10464
    }
10465
 
10466
    public void setWarehouseIdIsSet(boolean value) {
10467
      __isset_bit_vector.set(__WAREHOUSEID_ISSET_ID, value);
10468
    }
10469
 
10470
    public void setFieldValue(_Fields field, Object value) {
10471
      switch (field) {
10472
      case USERNAME:
10473
        if (value == null) {
10474
          unsetUsername();
10475
        } else {
10476
          setUsername((String)value);
10477
        }
10478
        break;
10479
 
10480
      case PASSWORD:
10481
        if (value == null) {
10482
          unsetPassword();
10483
        } else {
10484
          setPassword((String)value);
10485
        }
10486
        break;
10487
 
10488
      case WAREHOUSE_ID:
10489
        if (value == null) {
10490
          unsetWarehouseId();
10491
        } else {
10492
          setWarehouseId((Long)value);
10493
        }
10494
        break;
10495
 
10496
      }
10497
    }
10498
 
10499
    public Object getFieldValue(_Fields field) {
10500
      switch (field) {
10501
      case USERNAME:
10502
        return getUsername();
10503
 
10504
      case PASSWORD:
10505
        return getPassword();
10506
 
10507
      case WAREHOUSE_ID:
3430 rajveer 10508
        return Long.valueOf(getWarehouseId());
495 rajveer 10509
 
10510
      }
10511
      throw new IllegalStateException();
10512
    }
10513
 
3430 rajveer 10514
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10515
    public boolean isSet(_Fields field) {
10516
      if (field == null) {
10517
        throw new IllegalArgumentException();
10518
      }
495 rajveer 10519
 
10520
      switch (field) {
10521
      case USERNAME:
10522
        return isSetUsername();
10523
      case PASSWORD:
10524
        return isSetPassword();
10525
      case WAREHOUSE_ID:
10526
        return isSetWarehouseId();
10527
      }
10528
      throw new IllegalStateException();
10529
    }
10530
 
10531
    @Override
10532
    public boolean equals(Object that) {
10533
      if (that == null)
10534
        return false;
10535
      if (that instanceof addUser_args)
10536
        return this.equals((addUser_args)that);
10537
      return false;
10538
    }
10539
 
10540
    public boolean equals(addUser_args that) {
10541
      if (that == null)
10542
        return false;
10543
 
10544
      boolean this_present_username = true && this.isSetUsername();
10545
      boolean that_present_username = true && that.isSetUsername();
10546
      if (this_present_username || that_present_username) {
10547
        if (!(this_present_username && that_present_username))
10548
          return false;
10549
        if (!this.username.equals(that.username))
10550
          return false;
10551
      }
10552
 
10553
      boolean this_present_password = true && this.isSetPassword();
10554
      boolean that_present_password = true && that.isSetPassword();
10555
      if (this_present_password || that_present_password) {
10556
        if (!(this_present_password && that_present_password))
10557
          return false;
10558
        if (!this.password.equals(that.password))
10559
          return false;
10560
      }
10561
 
10562
      boolean this_present_warehouseId = true;
10563
      boolean that_present_warehouseId = true;
10564
      if (this_present_warehouseId || that_present_warehouseId) {
10565
        if (!(this_present_warehouseId && that_present_warehouseId))
10566
          return false;
10567
        if (this.warehouseId != that.warehouseId)
10568
          return false;
10569
      }
10570
 
10571
      return true;
10572
    }
10573
 
10574
    @Override
10575
    public int hashCode() {
10576
      return 0;
10577
    }
10578
 
10579
    public int compareTo(addUser_args other) {
10580
      if (!getClass().equals(other.getClass())) {
10581
        return getClass().getName().compareTo(other.getClass().getName());
10582
      }
10583
 
10584
      int lastComparison = 0;
10585
      addUser_args typedOther = (addUser_args)other;
10586
 
3430 rajveer 10587
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 10588
      if (lastComparison != 0) {
10589
        return lastComparison;
10590
      }
3430 rajveer 10591
      if (isSetUsername()) {
10592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10593
        if (lastComparison != 0) {
10594
          return lastComparison;
10595
        }
495 rajveer 10596
      }
3430 rajveer 10597
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 10598
      if (lastComparison != 0) {
10599
        return lastComparison;
10600
      }
3430 rajveer 10601
      if (isSetPassword()) {
10602
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10603
        if (lastComparison != 0) {
10604
          return lastComparison;
10605
        }
495 rajveer 10606
      }
3430 rajveer 10607
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
495 rajveer 10608
      if (lastComparison != 0) {
10609
        return lastComparison;
10610
      }
3430 rajveer 10611
      if (isSetWarehouseId()) {
10612
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
10613
        if (lastComparison != 0) {
10614
          return lastComparison;
10615
        }
495 rajveer 10616
      }
10617
      return 0;
10618
    }
10619
 
3430 rajveer 10620
    public _Fields fieldForId(int fieldId) {
10621
      return _Fields.findByThriftId(fieldId);
10622
    }
10623
 
10624
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10625
      org.apache.thrift.protocol.TField field;
495 rajveer 10626
      iprot.readStructBegin();
10627
      while (true)
10628
      {
10629
        field = iprot.readFieldBegin();
3430 rajveer 10630
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 10631
          break;
10632
        }
3430 rajveer 10633
        switch (field.id) {
10634
          case 1: // USERNAME
10635
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10636
              this.username = iprot.readString();
10637
            } else { 
10638
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10639
            }
10640
            break;
10641
          case 2: // PASSWORD
10642
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10643
              this.password = iprot.readString();
10644
            } else { 
10645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10646
            }
10647
            break;
10648
          case 3: // WAREHOUSE_ID
10649
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10650
              this.warehouseId = iprot.readI64();
10651
              setWarehouseIdIsSet(true);
10652
            } else { 
10653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10654
            }
10655
            break;
10656
          default:
10657
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 10658
        }
3430 rajveer 10659
        iprot.readFieldEnd();
495 rajveer 10660
      }
10661
      iprot.readStructEnd();
10662
      validate();
10663
    }
10664
 
3430 rajveer 10665
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 10666
      validate();
10667
 
10668
      oprot.writeStructBegin(STRUCT_DESC);
10669
      if (this.username != null) {
10670
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10671
        oprot.writeString(this.username);
10672
        oprot.writeFieldEnd();
10673
      }
10674
      if (this.password != null) {
10675
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
10676
        oprot.writeString(this.password);
10677
        oprot.writeFieldEnd();
10678
      }
10679
      oprot.writeFieldBegin(WAREHOUSE_ID_FIELD_DESC);
10680
      oprot.writeI64(this.warehouseId);
10681
      oprot.writeFieldEnd();
10682
      oprot.writeFieldStop();
10683
      oprot.writeStructEnd();
10684
    }
10685
 
10686
    @Override
10687
    public String toString() {
10688
      StringBuilder sb = new StringBuilder("addUser_args(");
10689
      boolean first = true;
10690
 
10691
      sb.append("username:");
10692
      if (this.username == null) {
10693
        sb.append("null");
10694
      } else {
10695
        sb.append(this.username);
10696
      }
10697
      first = false;
10698
      if (!first) sb.append(", ");
10699
      sb.append("password:");
10700
      if (this.password == null) {
10701
        sb.append("null");
10702
      } else {
10703
        sb.append(this.password);
10704
      }
10705
      first = false;
10706
      if (!first) sb.append(", ");
10707
      sb.append("warehouseId:");
10708
      sb.append(this.warehouseId);
10709
      first = false;
10710
      sb.append(")");
10711
      return sb.toString();
10712
    }
10713
 
3430 rajveer 10714
    public void validate() throws org.apache.thrift.TException {
495 rajveer 10715
      // check for required fields
10716
    }
10717
 
3430 rajveer 10718
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10719
      try {
10720
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10721
      } catch (org.apache.thrift.TException te) {
10722
        throw new java.io.IOException(te);
10723
      }
10724
    }
10725
 
10726
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10727
      try {
10728
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10729
        __isset_bit_vector = new BitSet(1);
10730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10731
      } catch (org.apache.thrift.TException te) {
10732
        throw new java.io.IOException(te);
10733
      }
10734
    }
10735
 
495 rajveer 10736
  }
10737
 
3430 rajveer 10738
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
10739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
495 rajveer 10740
 
3430 rajveer 10741
    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);
10742
    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 10743
 
3430 rajveer 10744
    private boolean success; // required
10745
    private HelperServiceException se; // required
495 rajveer 10746
 
10747
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10748
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 10749
      SUCCESS((short)0, "success"),
10750
      SE((short)1, "se");
10751
 
10752
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10753
 
10754
      static {
10755
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10756
          byName.put(field.getFieldName(), field);
10757
        }
10758
      }
10759
 
10760
      /**
10761
       * Find the _Fields constant that matches fieldId, or null if its not found.
10762
       */
10763
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10764
        switch(fieldId) {
10765
          case 0: // SUCCESS
10766
            return SUCCESS;
10767
          case 1: // SE
10768
            return SE;
10769
          default:
10770
            return null;
10771
        }
495 rajveer 10772
      }
10773
 
10774
      /**
10775
       * Find the _Fields constant that matches fieldId, throwing an exception
10776
       * if it is not found.
10777
       */
10778
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10779
        _Fields fields = findByThriftId(fieldId);
10780
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10781
        return fields;
10782
      }
10783
 
10784
      /**
10785
       * Find the _Fields constant that matches name, or null if its not found.
10786
       */
10787
      public static _Fields findByName(String name) {
10788
        return byName.get(name);
10789
      }
10790
 
10791
      private final short _thriftId;
10792
      private final String _fieldName;
10793
 
10794
      _Fields(short thriftId, String fieldName) {
10795
        _thriftId = thriftId;
10796
        _fieldName = fieldName;
10797
      }
10798
 
10799
      public short getThriftFieldId() {
10800
        return _thriftId;
10801
      }
10802
 
10803
      public String getFieldName() {
10804
        return _fieldName;
10805
      }
10806
    }
10807
 
10808
    // isset id assignments
10809
    private static final int __SUCCESS_ISSET_ID = 0;
10810
    private BitSet __isset_bit_vector = new BitSet(1);
10811
 
3430 rajveer 10812
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 10813
    static {
3430 rajveer 10814
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10815
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10816
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10817
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10818
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
10819
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10820
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
495 rajveer 10821
    }
10822
 
10823
    public addUser_result() {
10824
    }
10825
 
10826
    public addUser_result(
10827
      boolean success,
10828
      HelperServiceException se)
10829
    {
10830
      this();
10831
      this.success = success;
10832
      setSuccessIsSet(true);
10833
      this.se = se;
10834
    }
10835
 
10836
    /**
10837
     * Performs a deep copy on <i>other</i>.
10838
     */
10839
    public addUser_result(addUser_result other) {
10840
      __isset_bit_vector.clear();
10841
      __isset_bit_vector.or(other.__isset_bit_vector);
10842
      this.success = other.success;
10843
      if (other.isSetSe()) {
10844
        this.se = new HelperServiceException(other.se);
10845
      }
10846
    }
10847
 
10848
    public addUser_result deepCopy() {
10849
      return new addUser_result(this);
10850
    }
10851
 
3430 rajveer 10852
    @Override
10853
    public void clear() {
10854
      setSuccessIsSet(false);
10855
      this.success = false;
10856
      this.se = null;
495 rajveer 10857
    }
10858
 
10859
    public boolean isSuccess() {
10860
      return this.success;
10861
    }
10862
 
3430 rajveer 10863
    public void setSuccess(boolean success) {
495 rajveer 10864
      this.success = success;
10865
      setSuccessIsSet(true);
10866
    }
10867
 
10868
    public void unsetSuccess() {
10869
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10870
    }
10871
 
3430 rajveer 10872
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 10873
    public boolean isSetSuccess() {
10874
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10875
    }
10876
 
10877
    public void setSuccessIsSet(boolean value) {
10878
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
10879
    }
10880
 
10881
    public HelperServiceException getSe() {
10882
      return this.se;
10883
    }
10884
 
3430 rajveer 10885
    public void setSe(HelperServiceException se) {
495 rajveer 10886
      this.se = se;
10887
    }
10888
 
10889
    public void unsetSe() {
10890
      this.se = null;
10891
    }
10892
 
3430 rajveer 10893
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 10894
    public boolean isSetSe() {
10895
      return this.se != null;
10896
    }
10897
 
10898
    public void setSeIsSet(boolean value) {
10899
      if (!value) {
10900
        this.se = null;
10901
      }
10902
    }
10903
 
10904
    public void setFieldValue(_Fields field, Object value) {
10905
      switch (field) {
10906
      case SUCCESS:
10907
        if (value == null) {
10908
          unsetSuccess();
10909
        } else {
10910
          setSuccess((Boolean)value);
10911
        }
10912
        break;
10913
 
10914
      case SE:
10915
        if (value == null) {
10916
          unsetSe();
10917
        } else {
10918
          setSe((HelperServiceException)value);
10919
        }
10920
        break;
10921
 
10922
      }
10923
    }
10924
 
10925
    public Object getFieldValue(_Fields field) {
10926
      switch (field) {
10927
      case SUCCESS:
3430 rajveer 10928
        return Boolean.valueOf(isSuccess());
495 rajveer 10929
 
10930
      case SE:
10931
        return getSe();
10932
 
10933
      }
10934
      throw new IllegalStateException();
10935
    }
10936
 
3430 rajveer 10937
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10938
    public boolean isSet(_Fields field) {
10939
      if (field == null) {
10940
        throw new IllegalArgumentException();
10941
      }
495 rajveer 10942
 
10943
      switch (field) {
10944
      case SUCCESS:
10945
        return isSetSuccess();
10946
      case SE:
10947
        return isSetSe();
10948
      }
10949
      throw new IllegalStateException();
10950
    }
10951
 
10952
    @Override
10953
    public boolean equals(Object that) {
10954
      if (that == null)
10955
        return false;
10956
      if (that instanceof addUser_result)
10957
        return this.equals((addUser_result)that);
10958
      return false;
10959
    }
10960
 
10961
    public boolean equals(addUser_result that) {
10962
      if (that == null)
10963
        return false;
10964
 
10965
      boolean this_present_success = true;
10966
      boolean that_present_success = true;
10967
      if (this_present_success || that_present_success) {
10968
        if (!(this_present_success && that_present_success))
10969
          return false;
10970
        if (this.success != that.success)
10971
          return false;
10972
      }
10973
 
10974
      boolean this_present_se = true && this.isSetSe();
10975
      boolean that_present_se = true && that.isSetSe();
10976
      if (this_present_se || that_present_se) {
10977
        if (!(this_present_se && that_present_se))
10978
          return false;
10979
        if (!this.se.equals(that.se))
10980
          return false;
10981
      }
10982
 
10983
      return true;
10984
    }
10985
 
10986
    @Override
10987
    public int hashCode() {
10988
      return 0;
10989
    }
10990
 
10991
    public int compareTo(addUser_result other) {
10992
      if (!getClass().equals(other.getClass())) {
10993
        return getClass().getName().compareTo(other.getClass().getName());
10994
      }
10995
 
10996
      int lastComparison = 0;
10997
      addUser_result typedOther = (addUser_result)other;
10998
 
3430 rajveer 10999
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11000
      if (lastComparison != 0) {
11001
        return lastComparison;
11002
      }
3430 rajveer 11003
      if (isSetSuccess()) {
11004
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11005
        if (lastComparison != 0) {
11006
          return lastComparison;
11007
        }
495 rajveer 11008
      }
3430 rajveer 11009
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11010
      if (lastComparison != 0) {
11011
        return lastComparison;
11012
      }
3430 rajveer 11013
      if (isSetSe()) {
11014
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11015
        if (lastComparison != 0) {
11016
          return lastComparison;
11017
        }
495 rajveer 11018
      }
11019
      return 0;
11020
    }
11021
 
3430 rajveer 11022
    public _Fields fieldForId(int fieldId) {
11023
      return _Fields.findByThriftId(fieldId);
11024
    }
11025
 
11026
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11027
      org.apache.thrift.protocol.TField field;
495 rajveer 11028
      iprot.readStructBegin();
11029
      while (true)
11030
      {
11031
        field = iprot.readFieldBegin();
3430 rajveer 11032
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11033
          break;
11034
        }
3430 rajveer 11035
        switch (field.id) {
11036
          case 0: // SUCCESS
11037
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11038
              this.success = iprot.readBool();
11039
              setSuccessIsSet(true);
11040
            } else { 
11041
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11042
            }
11043
            break;
11044
          case 1: // SE
11045
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11046
              this.se = new HelperServiceException();
11047
              this.se.read(iprot);
11048
            } else { 
11049
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11050
            }
11051
            break;
11052
          default:
11053
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11054
        }
3430 rajveer 11055
        iprot.readFieldEnd();
495 rajveer 11056
      }
11057
      iprot.readStructEnd();
11058
      validate();
11059
    }
11060
 
3430 rajveer 11061
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11062
      oprot.writeStructBegin(STRUCT_DESC);
11063
 
11064
      if (this.isSetSuccess()) {
11065
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11066
        oprot.writeBool(this.success);
11067
        oprot.writeFieldEnd();
11068
      } else if (this.isSetSe()) {
11069
        oprot.writeFieldBegin(SE_FIELD_DESC);
11070
        this.se.write(oprot);
11071
        oprot.writeFieldEnd();
11072
      }
11073
      oprot.writeFieldStop();
11074
      oprot.writeStructEnd();
11075
    }
11076
 
11077
    @Override
11078
    public String toString() {
11079
      StringBuilder sb = new StringBuilder("addUser_result(");
11080
      boolean first = true;
11081
 
11082
      sb.append("success:");
11083
      sb.append(this.success);
11084
      first = false;
11085
      if (!first) sb.append(", ");
11086
      sb.append("se:");
11087
      if (this.se == null) {
11088
        sb.append("null");
11089
      } else {
11090
        sb.append(this.se);
11091
      }
11092
      first = false;
11093
      sb.append(")");
11094
      return sb.toString();
11095
    }
11096
 
3430 rajveer 11097
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11098
      // check for required fields
11099
    }
11100
 
3430 rajveer 11101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11102
      try {
11103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11104
      } catch (org.apache.thrift.TException te) {
11105
        throw new java.io.IOException(te);
11106
      }
11107
    }
11108
 
11109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11110
      try {
11111
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11112
      } catch (org.apache.thrift.TException te) {
11113
        throw new java.io.IOException(te);
11114
      }
11115
    }
11116
 
495 rajveer 11117
  }
11118
 
3430 rajveer 11119
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
11120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
495 rajveer 11121
 
3430 rajveer 11122
    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 11123
 
3430 rajveer 11124
    private String username; // required
495 rajveer 11125
 
11126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11128
      USERNAME((short)1, "username");
11129
 
11130
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11131
 
11132
      static {
11133
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11134
          byName.put(field.getFieldName(), field);
11135
        }
11136
      }
11137
 
11138
      /**
11139
       * Find the _Fields constant that matches fieldId, or null if its not found.
11140
       */
11141
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11142
        switch(fieldId) {
11143
          case 1: // USERNAME
11144
            return USERNAME;
11145
          default:
11146
            return null;
11147
        }
495 rajveer 11148
      }
11149
 
11150
      /**
11151
       * Find the _Fields constant that matches fieldId, throwing an exception
11152
       * if it is not found.
11153
       */
11154
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11155
        _Fields fields = findByThriftId(fieldId);
11156
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11157
        return fields;
11158
      }
11159
 
11160
      /**
11161
       * Find the _Fields constant that matches name, or null if its not found.
11162
       */
11163
      public static _Fields findByName(String name) {
11164
        return byName.get(name);
11165
      }
11166
 
11167
      private final short _thriftId;
11168
      private final String _fieldName;
11169
 
11170
      _Fields(short thriftId, String fieldName) {
11171
        _thriftId = thriftId;
11172
        _fieldName = fieldName;
11173
      }
11174
 
11175
      public short getThriftFieldId() {
11176
        return _thriftId;
11177
      }
11178
 
11179
      public String getFieldName() {
11180
        return _fieldName;
11181
      }
11182
    }
11183
 
11184
    // isset id assignments
11185
 
3430 rajveer 11186
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11187
    static {
3430 rajveer 11188
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11189
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11190
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11191
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11192
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
495 rajveer 11193
    }
11194
 
11195
    public deleteUser_args() {
11196
    }
11197
 
11198
    public deleteUser_args(
11199
      String username)
11200
    {
11201
      this();
11202
      this.username = username;
11203
    }
11204
 
11205
    /**
11206
     * Performs a deep copy on <i>other</i>.
11207
     */
11208
    public deleteUser_args(deleteUser_args other) {
11209
      if (other.isSetUsername()) {
11210
        this.username = other.username;
11211
      }
11212
    }
11213
 
11214
    public deleteUser_args deepCopy() {
11215
      return new deleteUser_args(this);
11216
    }
11217
 
3430 rajveer 11218
    @Override
11219
    public void clear() {
11220
      this.username = null;
495 rajveer 11221
    }
11222
 
11223
    public String getUsername() {
11224
      return this.username;
11225
    }
11226
 
3430 rajveer 11227
    public void setUsername(String username) {
495 rajveer 11228
      this.username = username;
11229
    }
11230
 
11231
    public void unsetUsername() {
11232
      this.username = null;
11233
    }
11234
 
3430 rajveer 11235
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11236
    public boolean isSetUsername() {
11237
      return this.username != null;
11238
    }
11239
 
11240
    public void setUsernameIsSet(boolean value) {
11241
      if (!value) {
11242
        this.username = null;
11243
      }
11244
    }
11245
 
11246
    public void setFieldValue(_Fields field, Object value) {
11247
      switch (field) {
11248
      case USERNAME:
11249
        if (value == null) {
11250
          unsetUsername();
11251
        } else {
11252
          setUsername((String)value);
11253
        }
11254
        break;
11255
 
11256
      }
11257
    }
11258
 
11259
    public Object getFieldValue(_Fields field) {
11260
      switch (field) {
11261
      case USERNAME:
11262
        return getUsername();
11263
 
11264
      }
11265
      throw new IllegalStateException();
11266
    }
11267
 
3430 rajveer 11268
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11269
    public boolean isSet(_Fields field) {
11270
      if (field == null) {
11271
        throw new IllegalArgumentException();
11272
      }
495 rajveer 11273
 
11274
      switch (field) {
11275
      case USERNAME:
11276
        return isSetUsername();
11277
      }
11278
      throw new IllegalStateException();
11279
    }
11280
 
11281
    @Override
11282
    public boolean equals(Object that) {
11283
      if (that == null)
11284
        return false;
11285
      if (that instanceof deleteUser_args)
11286
        return this.equals((deleteUser_args)that);
11287
      return false;
11288
    }
11289
 
11290
    public boolean equals(deleteUser_args that) {
11291
      if (that == null)
11292
        return false;
11293
 
11294
      boolean this_present_username = true && this.isSetUsername();
11295
      boolean that_present_username = true && that.isSetUsername();
11296
      if (this_present_username || that_present_username) {
11297
        if (!(this_present_username && that_present_username))
11298
          return false;
11299
        if (!this.username.equals(that.username))
11300
          return false;
11301
      }
11302
 
11303
      return true;
11304
    }
11305
 
11306
    @Override
11307
    public int hashCode() {
11308
      return 0;
11309
    }
11310
 
11311
    public int compareTo(deleteUser_args other) {
11312
      if (!getClass().equals(other.getClass())) {
11313
        return getClass().getName().compareTo(other.getClass().getName());
11314
      }
11315
 
11316
      int lastComparison = 0;
11317
      deleteUser_args typedOther = (deleteUser_args)other;
11318
 
3430 rajveer 11319
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 11320
      if (lastComparison != 0) {
11321
        return lastComparison;
11322
      }
3430 rajveer 11323
      if (isSetUsername()) {
11324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11325
        if (lastComparison != 0) {
11326
          return lastComparison;
11327
        }
495 rajveer 11328
      }
11329
      return 0;
11330
    }
11331
 
3430 rajveer 11332
    public _Fields fieldForId(int fieldId) {
11333
      return _Fields.findByThriftId(fieldId);
11334
    }
11335
 
11336
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11337
      org.apache.thrift.protocol.TField field;
495 rajveer 11338
      iprot.readStructBegin();
11339
      while (true)
11340
      {
11341
        field = iprot.readFieldBegin();
3430 rajveer 11342
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11343
          break;
11344
        }
3430 rajveer 11345
        switch (field.id) {
11346
          case 1: // USERNAME
11347
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11348
              this.username = iprot.readString();
11349
            } else { 
11350
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11351
            }
11352
            break;
11353
          default:
11354
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11355
        }
3430 rajveer 11356
        iprot.readFieldEnd();
495 rajveer 11357
      }
11358
      iprot.readStructEnd();
11359
      validate();
11360
    }
11361
 
3430 rajveer 11362
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11363
      validate();
11364
 
11365
      oprot.writeStructBegin(STRUCT_DESC);
11366
      if (this.username != null) {
11367
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11368
        oprot.writeString(this.username);
11369
        oprot.writeFieldEnd();
11370
      }
11371
      oprot.writeFieldStop();
11372
      oprot.writeStructEnd();
11373
    }
11374
 
11375
    @Override
11376
    public String toString() {
11377
      StringBuilder sb = new StringBuilder("deleteUser_args(");
11378
      boolean first = true;
11379
 
11380
      sb.append("username:");
11381
      if (this.username == null) {
11382
        sb.append("null");
11383
      } else {
11384
        sb.append(this.username);
11385
      }
11386
      first = false;
11387
      sb.append(")");
11388
      return sb.toString();
11389
    }
11390
 
3430 rajveer 11391
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11392
      // check for required fields
11393
    }
11394
 
3430 rajveer 11395
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11396
      try {
11397
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11398
      } catch (org.apache.thrift.TException te) {
11399
        throw new java.io.IOException(te);
11400
      }
11401
    }
11402
 
11403
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11404
      try {
11405
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11406
      } catch (org.apache.thrift.TException te) {
11407
        throw new java.io.IOException(te);
11408
      }
11409
    }
11410
 
495 rajveer 11411
  }
11412
 
3430 rajveer 11413
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
11414
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
495 rajveer 11415
 
3430 rajveer 11416
    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);
11417
    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 11418
 
3430 rajveer 11419
    private boolean success; // required
11420
    private HelperServiceException se; // required
495 rajveer 11421
 
11422
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11423
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11424
      SUCCESS((short)0, "success"),
11425
      SE((short)1, "se");
11426
 
11427
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11428
 
11429
      static {
11430
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11431
          byName.put(field.getFieldName(), field);
11432
        }
11433
      }
11434
 
11435
      /**
11436
       * Find the _Fields constant that matches fieldId, or null if its not found.
11437
       */
11438
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11439
        switch(fieldId) {
11440
          case 0: // SUCCESS
11441
            return SUCCESS;
11442
          case 1: // SE
11443
            return SE;
11444
          default:
11445
            return null;
11446
        }
495 rajveer 11447
      }
11448
 
11449
      /**
11450
       * Find the _Fields constant that matches fieldId, throwing an exception
11451
       * if it is not found.
11452
       */
11453
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11454
        _Fields fields = findByThriftId(fieldId);
11455
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11456
        return fields;
11457
      }
11458
 
11459
      /**
11460
       * Find the _Fields constant that matches name, or null if its not found.
11461
       */
11462
      public static _Fields findByName(String name) {
11463
        return byName.get(name);
11464
      }
11465
 
11466
      private final short _thriftId;
11467
      private final String _fieldName;
11468
 
11469
      _Fields(short thriftId, String fieldName) {
11470
        _thriftId = thriftId;
11471
        _fieldName = fieldName;
11472
      }
11473
 
11474
      public short getThriftFieldId() {
11475
        return _thriftId;
11476
      }
11477
 
11478
      public String getFieldName() {
11479
        return _fieldName;
11480
      }
11481
    }
11482
 
11483
    // isset id assignments
11484
    private static final int __SUCCESS_ISSET_ID = 0;
11485
    private BitSet __isset_bit_vector = new BitSet(1);
11486
 
3430 rajveer 11487
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11488
    static {
3430 rajveer 11489
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11490
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11491
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
11492
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11493
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
11494
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11495
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
495 rajveer 11496
    }
11497
 
11498
    public deleteUser_result() {
11499
    }
11500
 
11501
    public deleteUser_result(
11502
      boolean success,
11503
      HelperServiceException se)
11504
    {
11505
      this();
11506
      this.success = success;
11507
      setSuccessIsSet(true);
11508
      this.se = se;
11509
    }
11510
 
11511
    /**
11512
     * Performs a deep copy on <i>other</i>.
11513
     */
11514
    public deleteUser_result(deleteUser_result other) {
11515
      __isset_bit_vector.clear();
11516
      __isset_bit_vector.or(other.__isset_bit_vector);
11517
      this.success = other.success;
11518
      if (other.isSetSe()) {
11519
        this.se = new HelperServiceException(other.se);
11520
      }
11521
    }
11522
 
11523
    public deleteUser_result deepCopy() {
11524
      return new deleteUser_result(this);
11525
    }
11526
 
3430 rajveer 11527
    @Override
11528
    public void clear() {
11529
      setSuccessIsSet(false);
11530
      this.success = false;
11531
      this.se = null;
495 rajveer 11532
    }
11533
 
11534
    public boolean isSuccess() {
11535
      return this.success;
11536
    }
11537
 
3430 rajveer 11538
    public void setSuccess(boolean success) {
495 rajveer 11539
      this.success = success;
11540
      setSuccessIsSet(true);
11541
    }
11542
 
11543
    public void unsetSuccess() {
11544
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
11545
    }
11546
 
3430 rajveer 11547
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 11548
    public boolean isSetSuccess() {
11549
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
11550
    }
11551
 
11552
    public void setSuccessIsSet(boolean value) {
11553
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
11554
    }
11555
 
11556
    public HelperServiceException getSe() {
11557
      return this.se;
11558
    }
11559
 
3430 rajveer 11560
    public void setSe(HelperServiceException se) {
495 rajveer 11561
      this.se = se;
11562
    }
11563
 
11564
    public void unsetSe() {
11565
      this.se = null;
11566
    }
11567
 
3430 rajveer 11568
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 11569
    public boolean isSetSe() {
11570
      return this.se != null;
11571
    }
11572
 
11573
    public void setSeIsSet(boolean value) {
11574
      if (!value) {
11575
        this.se = null;
11576
      }
11577
    }
11578
 
11579
    public void setFieldValue(_Fields field, Object value) {
11580
      switch (field) {
11581
      case SUCCESS:
11582
        if (value == null) {
11583
          unsetSuccess();
11584
        } else {
11585
          setSuccess((Boolean)value);
11586
        }
11587
        break;
11588
 
11589
      case SE:
11590
        if (value == null) {
11591
          unsetSe();
11592
        } else {
11593
          setSe((HelperServiceException)value);
11594
        }
11595
        break;
11596
 
11597
      }
11598
    }
11599
 
11600
    public Object getFieldValue(_Fields field) {
11601
      switch (field) {
11602
      case SUCCESS:
3430 rajveer 11603
        return Boolean.valueOf(isSuccess());
495 rajveer 11604
 
11605
      case SE:
11606
        return getSe();
11607
 
11608
      }
11609
      throw new IllegalStateException();
11610
    }
11611
 
3430 rajveer 11612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11613
    public boolean isSet(_Fields field) {
11614
      if (field == null) {
11615
        throw new IllegalArgumentException();
11616
      }
495 rajveer 11617
 
11618
      switch (field) {
11619
      case SUCCESS:
11620
        return isSetSuccess();
11621
      case SE:
11622
        return isSetSe();
11623
      }
11624
      throw new IllegalStateException();
11625
    }
11626
 
11627
    @Override
11628
    public boolean equals(Object that) {
11629
      if (that == null)
11630
        return false;
11631
      if (that instanceof deleteUser_result)
11632
        return this.equals((deleteUser_result)that);
11633
      return false;
11634
    }
11635
 
11636
    public boolean equals(deleteUser_result that) {
11637
      if (that == null)
11638
        return false;
11639
 
11640
      boolean this_present_success = true;
11641
      boolean that_present_success = true;
11642
      if (this_present_success || that_present_success) {
11643
        if (!(this_present_success && that_present_success))
11644
          return false;
11645
        if (this.success != that.success)
11646
          return false;
11647
      }
11648
 
11649
      boolean this_present_se = true && this.isSetSe();
11650
      boolean that_present_se = true && that.isSetSe();
11651
      if (this_present_se || that_present_se) {
11652
        if (!(this_present_se && that_present_se))
11653
          return false;
11654
        if (!this.se.equals(that.se))
11655
          return false;
11656
      }
11657
 
11658
      return true;
11659
    }
11660
 
11661
    @Override
11662
    public int hashCode() {
11663
      return 0;
11664
    }
11665
 
11666
    public int compareTo(deleteUser_result other) {
11667
      if (!getClass().equals(other.getClass())) {
11668
        return getClass().getName().compareTo(other.getClass().getName());
11669
      }
11670
 
11671
      int lastComparison = 0;
11672
      deleteUser_result typedOther = (deleteUser_result)other;
11673
 
3430 rajveer 11674
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 11675
      if (lastComparison != 0) {
11676
        return lastComparison;
11677
      }
3430 rajveer 11678
      if (isSetSuccess()) {
11679
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11680
        if (lastComparison != 0) {
11681
          return lastComparison;
11682
        }
495 rajveer 11683
      }
3430 rajveer 11684
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 11685
      if (lastComparison != 0) {
11686
        return lastComparison;
11687
      }
3430 rajveer 11688
      if (isSetSe()) {
11689
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
11690
        if (lastComparison != 0) {
11691
          return lastComparison;
11692
        }
495 rajveer 11693
      }
11694
      return 0;
11695
    }
11696
 
3430 rajveer 11697
    public _Fields fieldForId(int fieldId) {
11698
      return _Fields.findByThriftId(fieldId);
11699
    }
11700
 
11701
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11702
      org.apache.thrift.protocol.TField field;
495 rajveer 11703
      iprot.readStructBegin();
11704
      while (true)
11705
      {
11706
        field = iprot.readFieldBegin();
3430 rajveer 11707
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 11708
          break;
11709
        }
3430 rajveer 11710
        switch (field.id) {
11711
          case 0: // SUCCESS
11712
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
11713
              this.success = iprot.readBool();
11714
              setSuccessIsSet(true);
11715
            } else { 
11716
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11717
            }
11718
            break;
11719
          case 1: // SE
11720
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11721
              this.se = new HelperServiceException();
11722
              this.se.read(iprot);
11723
            } else { 
11724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11725
            }
11726
            break;
11727
          default:
11728
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 11729
        }
3430 rajveer 11730
        iprot.readFieldEnd();
495 rajveer 11731
      }
11732
      iprot.readStructEnd();
11733
      validate();
11734
    }
11735
 
3430 rajveer 11736
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 11737
      oprot.writeStructBegin(STRUCT_DESC);
11738
 
11739
      if (this.isSetSuccess()) {
11740
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11741
        oprot.writeBool(this.success);
11742
        oprot.writeFieldEnd();
11743
      } else if (this.isSetSe()) {
11744
        oprot.writeFieldBegin(SE_FIELD_DESC);
11745
        this.se.write(oprot);
11746
        oprot.writeFieldEnd();
11747
      }
11748
      oprot.writeFieldStop();
11749
      oprot.writeStructEnd();
11750
    }
11751
 
11752
    @Override
11753
    public String toString() {
11754
      StringBuilder sb = new StringBuilder("deleteUser_result(");
11755
      boolean first = true;
11756
 
11757
      sb.append("success:");
11758
      sb.append(this.success);
11759
      first = false;
11760
      if (!first) sb.append(", ");
11761
      sb.append("se:");
11762
      if (this.se == null) {
11763
        sb.append("null");
11764
      } else {
11765
        sb.append(this.se);
11766
      }
11767
      first = false;
11768
      sb.append(")");
11769
      return sb.toString();
11770
    }
11771
 
3430 rajveer 11772
    public void validate() throws org.apache.thrift.TException {
495 rajveer 11773
      // check for required fields
11774
    }
11775
 
3430 rajveer 11776
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11777
      try {
11778
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11779
      } catch (org.apache.thrift.TException te) {
11780
        throw new java.io.IOException(te);
11781
      }
11782
    }
11783
 
11784
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11785
      try {
11786
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11787
      } catch (org.apache.thrift.TException te) {
11788
        throw new java.io.IOException(te);
11789
      }
11790
    }
11791
 
495 rajveer 11792
  }
11793
 
3430 rajveer 11794
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
11795
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
495 rajveer 11796
 
3430 rajveer 11797
    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);
11798
    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 11799
 
3430 rajveer 11800
    private String username; // required
11801
    private String password; // required
495 rajveer 11802
 
11803
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 11804
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 11805
      USERNAME((short)1, "username"),
11806
      PASSWORD((short)2, "password");
11807
 
11808
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11809
 
11810
      static {
11811
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11812
          byName.put(field.getFieldName(), field);
11813
        }
11814
      }
11815
 
11816
      /**
11817
       * Find the _Fields constant that matches fieldId, or null if its not found.
11818
       */
11819
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 11820
        switch(fieldId) {
11821
          case 1: // USERNAME
11822
            return USERNAME;
11823
          case 2: // PASSWORD
11824
            return PASSWORD;
11825
          default:
11826
            return null;
11827
        }
495 rajveer 11828
      }
11829
 
11830
      /**
11831
       * Find the _Fields constant that matches fieldId, throwing an exception
11832
       * if it is not found.
11833
       */
11834
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11835
        _Fields fields = findByThriftId(fieldId);
11836
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11837
        return fields;
11838
      }
11839
 
11840
      /**
11841
       * Find the _Fields constant that matches name, or null if its not found.
11842
       */
11843
      public static _Fields findByName(String name) {
11844
        return byName.get(name);
11845
      }
11846
 
11847
      private final short _thriftId;
11848
      private final String _fieldName;
11849
 
11850
      _Fields(short thriftId, String fieldName) {
11851
        _thriftId = thriftId;
11852
        _fieldName = fieldName;
11853
      }
11854
 
11855
      public short getThriftFieldId() {
11856
        return _thriftId;
11857
      }
11858
 
11859
      public String getFieldName() {
11860
        return _fieldName;
11861
      }
11862
    }
11863
 
11864
    // isset id assignments
11865
 
3430 rajveer 11866
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 11867
    static {
3430 rajveer 11868
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11869
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11870
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11871
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11872
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
11873
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11874
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
495 rajveer 11875
    }
11876
 
2443 chandransh 11877
    public authenticateDashboardUser_args() {
495 rajveer 11878
    }
11879
 
2443 chandransh 11880
    public authenticateDashboardUser_args(
495 rajveer 11881
      String username,
11882
      String password)
11883
    {
11884
      this();
11885
      this.username = username;
11886
      this.password = password;
11887
    }
11888
 
11889
    /**
11890
     * Performs a deep copy on <i>other</i>.
11891
     */
2443 chandransh 11892
    public authenticateDashboardUser_args(authenticateDashboardUser_args other) {
495 rajveer 11893
      if (other.isSetUsername()) {
11894
        this.username = other.username;
11895
      }
11896
      if (other.isSetPassword()) {
11897
        this.password = other.password;
11898
      }
11899
    }
11900
 
2443 chandransh 11901
    public authenticateDashboardUser_args deepCopy() {
11902
      return new authenticateDashboardUser_args(this);
495 rajveer 11903
    }
11904
 
3430 rajveer 11905
    @Override
11906
    public void clear() {
11907
      this.username = null;
11908
      this.password = null;
495 rajveer 11909
    }
11910
 
11911
    public String getUsername() {
11912
      return this.username;
11913
    }
11914
 
3430 rajveer 11915
    public void setUsername(String username) {
495 rajveer 11916
      this.username = username;
11917
    }
11918
 
11919
    public void unsetUsername() {
11920
      this.username = null;
11921
    }
11922
 
3430 rajveer 11923
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 11924
    public boolean isSetUsername() {
11925
      return this.username != null;
11926
    }
11927
 
11928
    public void setUsernameIsSet(boolean value) {
11929
      if (!value) {
11930
        this.username = null;
11931
      }
11932
    }
11933
 
11934
    public String getPassword() {
11935
      return this.password;
11936
    }
11937
 
3430 rajveer 11938
    public void setPassword(String password) {
495 rajveer 11939
      this.password = password;
11940
    }
11941
 
11942
    public void unsetPassword() {
11943
      this.password = null;
11944
    }
11945
 
3430 rajveer 11946
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
495 rajveer 11947
    public boolean isSetPassword() {
11948
      return this.password != null;
11949
    }
11950
 
11951
    public void setPasswordIsSet(boolean value) {
11952
      if (!value) {
11953
        this.password = null;
11954
      }
11955
    }
11956
 
11957
    public void setFieldValue(_Fields field, Object value) {
11958
      switch (field) {
11959
      case USERNAME:
11960
        if (value == null) {
11961
          unsetUsername();
11962
        } else {
11963
          setUsername((String)value);
11964
        }
11965
        break;
11966
 
11967
      case PASSWORD:
11968
        if (value == null) {
11969
          unsetPassword();
11970
        } else {
11971
          setPassword((String)value);
11972
        }
11973
        break;
11974
 
11975
      }
11976
    }
11977
 
11978
    public Object getFieldValue(_Fields field) {
11979
      switch (field) {
11980
      case USERNAME:
11981
        return getUsername();
11982
 
11983
      case PASSWORD:
11984
        return getPassword();
11985
 
11986
      }
11987
      throw new IllegalStateException();
11988
    }
11989
 
3430 rajveer 11990
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11991
    public boolean isSet(_Fields field) {
11992
      if (field == null) {
11993
        throw new IllegalArgumentException();
11994
      }
495 rajveer 11995
 
11996
      switch (field) {
11997
      case USERNAME:
11998
        return isSetUsername();
11999
      case PASSWORD:
12000
        return isSetPassword();
12001
      }
12002
      throw new IllegalStateException();
12003
    }
12004
 
12005
    @Override
12006
    public boolean equals(Object that) {
12007
      if (that == null)
12008
        return false;
2443 chandransh 12009
      if (that instanceof authenticateDashboardUser_args)
12010
        return this.equals((authenticateDashboardUser_args)that);
495 rajveer 12011
      return false;
12012
    }
12013
 
2443 chandransh 12014
    public boolean equals(authenticateDashboardUser_args that) {
495 rajveer 12015
      if (that == null)
12016
        return false;
12017
 
12018
      boolean this_present_username = true && this.isSetUsername();
12019
      boolean that_present_username = true && that.isSetUsername();
12020
      if (this_present_username || that_present_username) {
12021
        if (!(this_present_username && that_present_username))
12022
          return false;
12023
        if (!this.username.equals(that.username))
12024
          return false;
12025
      }
12026
 
12027
      boolean this_present_password = true && this.isSetPassword();
12028
      boolean that_present_password = true && that.isSetPassword();
12029
      if (this_present_password || that_present_password) {
12030
        if (!(this_present_password && that_present_password))
12031
          return false;
12032
        if (!this.password.equals(that.password))
12033
          return false;
12034
      }
12035
 
12036
      return true;
12037
    }
12038
 
12039
    @Override
12040
    public int hashCode() {
12041
      return 0;
12042
    }
12043
 
2443 chandransh 12044
    public int compareTo(authenticateDashboardUser_args other) {
495 rajveer 12045
      if (!getClass().equals(other.getClass())) {
12046
        return getClass().getName().compareTo(other.getClass().getName());
12047
      }
12048
 
12049
      int lastComparison = 0;
2443 chandransh 12050
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
495 rajveer 12051
 
3430 rajveer 12052
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 12053
      if (lastComparison != 0) {
12054
        return lastComparison;
12055
      }
3430 rajveer 12056
      if (isSetUsername()) {
12057
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12058
        if (lastComparison != 0) {
12059
          return lastComparison;
12060
        }
495 rajveer 12061
      }
3430 rajveer 12062
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
495 rajveer 12063
      if (lastComparison != 0) {
12064
        return lastComparison;
12065
      }
3430 rajveer 12066
      if (isSetPassword()) {
12067
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12068
        if (lastComparison != 0) {
12069
          return lastComparison;
12070
        }
495 rajveer 12071
      }
12072
      return 0;
12073
    }
12074
 
3430 rajveer 12075
    public _Fields fieldForId(int fieldId) {
12076
      return _Fields.findByThriftId(fieldId);
12077
    }
12078
 
12079
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12080
      org.apache.thrift.protocol.TField field;
495 rajveer 12081
      iprot.readStructBegin();
12082
      while (true)
12083
      {
12084
        field = iprot.readFieldBegin();
3430 rajveer 12085
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12086
          break;
12087
        }
3430 rajveer 12088
        switch (field.id) {
12089
          case 1: // USERNAME
12090
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12091
              this.username = iprot.readString();
12092
            } else { 
12093
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12094
            }
12095
            break;
12096
          case 2: // PASSWORD
12097
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12098
              this.password = iprot.readString();
12099
            } else { 
12100
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12101
            }
12102
            break;
12103
          default:
12104
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12105
        }
3430 rajveer 12106
        iprot.readFieldEnd();
495 rajveer 12107
      }
12108
      iprot.readStructEnd();
12109
      validate();
12110
    }
12111
 
3430 rajveer 12112
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12113
      validate();
12114
 
12115
      oprot.writeStructBegin(STRUCT_DESC);
12116
      if (this.username != null) {
12117
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12118
        oprot.writeString(this.username);
12119
        oprot.writeFieldEnd();
12120
      }
12121
      if (this.password != null) {
12122
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12123
        oprot.writeString(this.password);
12124
        oprot.writeFieldEnd();
12125
      }
12126
      oprot.writeFieldStop();
12127
      oprot.writeStructEnd();
12128
    }
12129
 
12130
    @Override
12131
    public String toString() {
2443 chandransh 12132
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_args(");
495 rajveer 12133
      boolean first = true;
12134
 
12135
      sb.append("username:");
12136
      if (this.username == null) {
12137
        sb.append("null");
12138
      } else {
12139
        sb.append(this.username);
12140
      }
12141
      first = false;
12142
      if (!first) sb.append(", ");
12143
      sb.append("password:");
12144
      if (this.password == null) {
12145
        sb.append("null");
12146
      } else {
12147
        sb.append(this.password);
12148
      }
12149
      first = false;
12150
      sb.append(")");
12151
      return sb.toString();
12152
    }
12153
 
3430 rajveer 12154
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12155
      // check for required fields
12156
    }
12157
 
3430 rajveer 12158
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12159
      try {
12160
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12161
      } catch (org.apache.thrift.TException te) {
12162
        throw new java.io.IOException(te);
12163
      }
12164
    }
12165
 
12166
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12167
      try {
12168
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12169
      } catch (org.apache.thrift.TException te) {
12170
        throw new java.io.IOException(te);
12171
      }
12172
    }
12173
 
495 rajveer 12174
  }
12175
 
3430 rajveer 12176
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
12177
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
495 rajveer 12178
 
3430 rajveer 12179
    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);
12180
    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 12181
 
3430 rajveer 12182
    private DashboardUser success; // required
12183
    private HelperServiceException se; // required
495 rajveer 12184
 
12185
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12186
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 12187
      SUCCESS((short)0, "success"),
12188
      SE((short)1, "se");
12189
 
12190
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12191
 
12192
      static {
12193
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12194
          byName.put(field.getFieldName(), field);
12195
        }
12196
      }
12197
 
12198
      /**
12199
       * Find the _Fields constant that matches fieldId, or null if its not found.
12200
       */
12201
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12202
        switch(fieldId) {
12203
          case 0: // SUCCESS
12204
            return SUCCESS;
12205
          case 1: // SE
12206
            return SE;
12207
          default:
12208
            return null;
12209
        }
495 rajveer 12210
      }
12211
 
12212
      /**
12213
       * Find the _Fields constant that matches fieldId, throwing an exception
12214
       * if it is not found.
12215
       */
12216
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12217
        _Fields fields = findByThriftId(fieldId);
12218
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12219
        return fields;
12220
      }
12221
 
12222
      /**
12223
       * Find the _Fields constant that matches name, or null if its not found.
12224
       */
12225
      public static _Fields findByName(String name) {
12226
        return byName.get(name);
12227
      }
12228
 
12229
      private final short _thriftId;
12230
      private final String _fieldName;
12231
 
12232
      _Fields(short thriftId, String fieldName) {
12233
        _thriftId = thriftId;
12234
        _fieldName = fieldName;
12235
      }
12236
 
12237
      public short getThriftFieldId() {
12238
        return _thriftId;
12239
      }
12240
 
12241
      public String getFieldName() {
12242
        return _fieldName;
12243
      }
12244
    }
12245
 
12246
    // isset id assignments
12247
 
3430 rajveer 12248
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12249
    static {
3430 rajveer 12250
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12251
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12252
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
12253
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12254
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
12255
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12256
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
495 rajveer 12257
    }
12258
 
2443 chandransh 12259
    public authenticateDashboardUser_result() {
495 rajveer 12260
    }
12261
 
2443 chandransh 12262
    public authenticateDashboardUser_result(
12263
      DashboardUser success,
495 rajveer 12264
      HelperServiceException se)
12265
    {
12266
      this();
12267
      this.success = success;
12268
      this.se = se;
12269
    }
12270
 
12271
    /**
12272
     * Performs a deep copy on <i>other</i>.
12273
     */
2443 chandransh 12274
    public authenticateDashboardUser_result(authenticateDashboardUser_result other) {
12275
      if (other.isSetSuccess()) {
12276
        this.success = new DashboardUser(other.success);
12277
      }
495 rajveer 12278
      if (other.isSetSe()) {
12279
        this.se = new HelperServiceException(other.se);
12280
      }
12281
    }
12282
 
2443 chandransh 12283
    public authenticateDashboardUser_result deepCopy() {
12284
      return new authenticateDashboardUser_result(this);
495 rajveer 12285
    }
12286
 
3430 rajveer 12287
    @Override
12288
    public void clear() {
12289
      this.success = null;
12290
      this.se = null;
495 rajveer 12291
    }
12292
 
2443 chandransh 12293
    public DashboardUser getSuccess() {
495 rajveer 12294
      return this.success;
12295
    }
12296
 
3430 rajveer 12297
    public void setSuccess(DashboardUser success) {
495 rajveer 12298
      this.success = success;
12299
    }
12300
 
12301
    public void unsetSuccess() {
2443 chandransh 12302
      this.success = null;
495 rajveer 12303
    }
12304
 
3430 rajveer 12305
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 12306
    public boolean isSetSuccess() {
2443 chandransh 12307
      return this.success != null;
495 rajveer 12308
    }
12309
 
12310
    public void setSuccessIsSet(boolean value) {
2443 chandransh 12311
      if (!value) {
12312
        this.success = null;
12313
      }
495 rajveer 12314
    }
12315
 
12316
    public HelperServiceException getSe() {
12317
      return this.se;
12318
    }
12319
 
3430 rajveer 12320
    public void setSe(HelperServiceException se) {
495 rajveer 12321
      this.se = se;
12322
    }
12323
 
12324
    public void unsetSe() {
12325
      this.se = null;
12326
    }
12327
 
3430 rajveer 12328
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 12329
    public boolean isSetSe() {
12330
      return this.se != null;
12331
    }
12332
 
12333
    public void setSeIsSet(boolean value) {
12334
      if (!value) {
12335
        this.se = null;
12336
      }
12337
    }
12338
 
12339
    public void setFieldValue(_Fields field, Object value) {
12340
      switch (field) {
12341
      case SUCCESS:
12342
        if (value == null) {
12343
          unsetSuccess();
12344
        } else {
2443 chandransh 12345
          setSuccess((DashboardUser)value);
495 rajveer 12346
        }
12347
        break;
12348
 
12349
      case SE:
12350
        if (value == null) {
12351
          unsetSe();
12352
        } else {
12353
          setSe((HelperServiceException)value);
12354
        }
12355
        break;
12356
 
12357
      }
12358
    }
12359
 
12360
    public Object getFieldValue(_Fields field) {
12361
      switch (field) {
12362
      case SUCCESS:
2443 chandransh 12363
        return getSuccess();
495 rajveer 12364
 
12365
      case SE:
12366
        return getSe();
12367
 
12368
      }
12369
      throw new IllegalStateException();
12370
    }
12371
 
3430 rajveer 12372
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12373
    public boolean isSet(_Fields field) {
12374
      if (field == null) {
12375
        throw new IllegalArgumentException();
12376
      }
495 rajveer 12377
 
12378
      switch (field) {
12379
      case SUCCESS:
12380
        return isSetSuccess();
12381
      case SE:
12382
        return isSetSe();
12383
      }
12384
      throw new IllegalStateException();
12385
    }
12386
 
12387
    @Override
12388
    public boolean equals(Object that) {
12389
      if (that == null)
12390
        return false;
2443 chandransh 12391
      if (that instanceof authenticateDashboardUser_result)
12392
        return this.equals((authenticateDashboardUser_result)that);
495 rajveer 12393
      return false;
12394
    }
12395
 
2443 chandransh 12396
    public boolean equals(authenticateDashboardUser_result that) {
495 rajveer 12397
      if (that == null)
12398
        return false;
12399
 
2443 chandransh 12400
      boolean this_present_success = true && this.isSetSuccess();
12401
      boolean that_present_success = true && that.isSetSuccess();
495 rajveer 12402
      if (this_present_success || that_present_success) {
12403
        if (!(this_present_success && that_present_success))
12404
          return false;
2443 chandransh 12405
        if (!this.success.equals(that.success))
495 rajveer 12406
          return false;
12407
      }
12408
 
12409
      boolean this_present_se = true && this.isSetSe();
12410
      boolean that_present_se = true && that.isSetSe();
12411
      if (this_present_se || that_present_se) {
12412
        if (!(this_present_se && that_present_se))
12413
          return false;
12414
        if (!this.se.equals(that.se))
12415
          return false;
12416
      }
12417
 
12418
      return true;
12419
    }
12420
 
12421
    @Override
12422
    public int hashCode() {
12423
      return 0;
12424
    }
12425
 
2443 chandransh 12426
    public int compareTo(authenticateDashboardUser_result other) {
495 rajveer 12427
      if (!getClass().equals(other.getClass())) {
12428
        return getClass().getName().compareTo(other.getClass().getName());
12429
      }
12430
 
12431
      int lastComparison = 0;
2443 chandransh 12432
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
495 rajveer 12433
 
3430 rajveer 12434
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 12435
      if (lastComparison != 0) {
12436
        return lastComparison;
12437
      }
3430 rajveer 12438
      if (isSetSuccess()) {
12439
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12440
        if (lastComparison != 0) {
12441
          return lastComparison;
12442
        }
495 rajveer 12443
      }
3430 rajveer 12444
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 12445
      if (lastComparison != 0) {
12446
        return lastComparison;
12447
      }
3430 rajveer 12448
      if (isSetSe()) {
12449
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
12450
        if (lastComparison != 0) {
12451
          return lastComparison;
12452
        }
495 rajveer 12453
      }
12454
      return 0;
12455
    }
12456
 
3430 rajveer 12457
    public _Fields fieldForId(int fieldId) {
12458
      return _Fields.findByThriftId(fieldId);
12459
    }
12460
 
12461
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12462
      org.apache.thrift.protocol.TField field;
495 rajveer 12463
      iprot.readStructBegin();
12464
      while (true)
12465
      {
12466
        field = iprot.readFieldBegin();
3430 rajveer 12467
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12468
          break;
12469
        }
3430 rajveer 12470
        switch (field.id) {
12471
          case 0: // SUCCESS
12472
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12473
              this.success = new DashboardUser();
12474
              this.success.read(iprot);
12475
            } else { 
12476
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12477
            }
12478
            break;
12479
          case 1: // SE
12480
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12481
              this.se = new HelperServiceException();
12482
              this.se.read(iprot);
12483
            } else { 
12484
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12485
            }
12486
            break;
12487
          default:
12488
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12489
        }
3430 rajveer 12490
        iprot.readFieldEnd();
495 rajveer 12491
      }
12492
      iprot.readStructEnd();
12493
      validate();
12494
    }
12495
 
3430 rajveer 12496
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12497
      oprot.writeStructBegin(STRUCT_DESC);
12498
 
12499
      if (this.isSetSuccess()) {
12500
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2443 chandransh 12501
        this.success.write(oprot);
495 rajveer 12502
        oprot.writeFieldEnd();
12503
      } else if (this.isSetSe()) {
12504
        oprot.writeFieldBegin(SE_FIELD_DESC);
12505
        this.se.write(oprot);
12506
        oprot.writeFieldEnd();
12507
      }
12508
      oprot.writeFieldStop();
12509
      oprot.writeStructEnd();
12510
    }
12511
 
12512
    @Override
12513
    public String toString() {
2443 chandransh 12514
      StringBuilder sb = new StringBuilder("authenticateDashboardUser_result(");
495 rajveer 12515
      boolean first = true;
12516
 
12517
      sb.append("success:");
2443 chandransh 12518
      if (this.success == null) {
12519
        sb.append("null");
12520
      } else {
12521
        sb.append(this.success);
12522
      }
495 rajveer 12523
      first = false;
12524
      if (!first) sb.append(", ");
12525
      sb.append("se:");
12526
      if (this.se == null) {
12527
        sb.append("null");
12528
      } else {
12529
        sb.append(this.se);
12530
      }
12531
      first = false;
12532
      sb.append(")");
12533
      return sb.toString();
12534
    }
12535
 
3430 rajveer 12536
    public void validate() throws org.apache.thrift.TException {
495 rajveer 12537
      // check for required fields
12538
    }
12539
 
3430 rajveer 12540
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12541
      try {
12542
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12543
      } catch (org.apache.thrift.TException te) {
12544
        throw new java.io.IOException(te);
12545
      }
12546
    }
12547
 
12548
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12549
      try {
12550
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12551
      } catch (org.apache.thrift.TException te) {
12552
        throw new java.io.IOException(te);
12553
      }
12554
    }
12555
 
495 rajveer 12556
  }
12557
 
3430 rajveer 12558
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
12559
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
495 rajveer 12560
 
3430 rajveer 12561
    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);
12562
    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);
12563
    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 12564
 
3430 rajveer 12565
    private String username; // required
12566
    private String oldPassword; // required
12567
    private String newPassword; // required
495 rajveer 12568
 
12569
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 12570
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 12571
      USERNAME((short)1, "username"),
12572
      OLD_PASSWORD((short)2, "oldPassword"),
12573
      NEW_PASSWORD((short)3, "newPassword");
12574
 
12575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12576
 
12577
      static {
12578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12579
          byName.put(field.getFieldName(), field);
12580
        }
12581
      }
12582
 
12583
      /**
12584
       * Find the _Fields constant that matches fieldId, or null if its not found.
12585
       */
12586
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 12587
        switch(fieldId) {
12588
          case 1: // USERNAME
12589
            return USERNAME;
12590
          case 2: // OLD_PASSWORD
12591
            return OLD_PASSWORD;
12592
          case 3: // NEW_PASSWORD
12593
            return NEW_PASSWORD;
12594
          default:
12595
            return null;
12596
        }
495 rajveer 12597
      }
12598
 
12599
      /**
12600
       * Find the _Fields constant that matches fieldId, throwing an exception
12601
       * if it is not found.
12602
       */
12603
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12604
        _Fields fields = findByThriftId(fieldId);
12605
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12606
        return fields;
12607
      }
12608
 
12609
      /**
12610
       * Find the _Fields constant that matches name, or null if its not found.
12611
       */
12612
      public static _Fields findByName(String name) {
12613
        return byName.get(name);
12614
      }
12615
 
12616
      private final short _thriftId;
12617
      private final String _fieldName;
12618
 
12619
      _Fields(short thriftId, String fieldName) {
12620
        _thriftId = thriftId;
12621
        _fieldName = fieldName;
12622
      }
12623
 
12624
      public short getThriftFieldId() {
12625
        return _thriftId;
12626
      }
12627
 
12628
      public String getFieldName() {
12629
        return _fieldName;
12630
      }
12631
    }
12632
 
12633
    // isset id assignments
12634
 
3430 rajveer 12635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 12636
    static {
3430 rajveer 12637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12638
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12639
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12640
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12641
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12642
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12643
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
12644
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12645
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
495 rajveer 12646
    }
12647
 
12648
    public updatePassword_args() {
12649
    }
12650
 
12651
    public updatePassword_args(
12652
      String username,
12653
      String oldPassword,
12654
      String newPassword)
12655
    {
12656
      this();
12657
      this.username = username;
12658
      this.oldPassword = oldPassword;
12659
      this.newPassword = newPassword;
12660
    }
12661
 
12662
    /**
12663
     * Performs a deep copy on <i>other</i>.
12664
     */
12665
    public updatePassword_args(updatePassword_args other) {
12666
      if (other.isSetUsername()) {
12667
        this.username = other.username;
12668
      }
12669
      if (other.isSetOldPassword()) {
12670
        this.oldPassword = other.oldPassword;
12671
      }
12672
      if (other.isSetNewPassword()) {
12673
        this.newPassword = other.newPassword;
12674
      }
12675
    }
12676
 
12677
    public updatePassword_args deepCopy() {
12678
      return new updatePassword_args(this);
12679
    }
12680
 
3430 rajveer 12681
    @Override
12682
    public void clear() {
12683
      this.username = null;
12684
      this.oldPassword = null;
12685
      this.newPassword = null;
495 rajveer 12686
    }
12687
 
12688
    public String getUsername() {
12689
      return this.username;
12690
    }
12691
 
3430 rajveer 12692
    public void setUsername(String username) {
495 rajveer 12693
      this.username = username;
12694
    }
12695
 
12696
    public void unsetUsername() {
12697
      this.username = null;
12698
    }
12699
 
3430 rajveer 12700
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
495 rajveer 12701
    public boolean isSetUsername() {
12702
      return this.username != null;
12703
    }
12704
 
12705
    public void setUsernameIsSet(boolean value) {
12706
      if (!value) {
12707
        this.username = null;
12708
      }
12709
    }
12710
 
12711
    public String getOldPassword() {
12712
      return this.oldPassword;
12713
    }
12714
 
3430 rajveer 12715
    public void setOldPassword(String oldPassword) {
495 rajveer 12716
      this.oldPassword = oldPassword;
12717
    }
12718
 
12719
    public void unsetOldPassword() {
12720
      this.oldPassword = null;
12721
    }
12722
 
3430 rajveer 12723
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
495 rajveer 12724
    public boolean isSetOldPassword() {
12725
      return this.oldPassword != null;
12726
    }
12727
 
12728
    public void setOldPasswordIsSet(boolean value) {
12729
      if (!value) {
12730
        this.oldPassword = null;
12731
      }
12732
    }
12733
 
12734
    public String getNewPassword() {
12735
      return this.newPassword;
12736
    }
12737
 
3430 rajveer 12738
    public void setNewPassword(String newPassword) {
495 rajveer 12739
      this.newPassword = newPassword;
12740
    }
12741
 
12742
    public void unsetNewPassword() {
12743
      this.newPassword = null;
12744
    }
12745
 
3430 rajveer 12746
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
495 rajveer 12747
    public boolean isSetNewPassword() {
12748
      return this.newPassword != null;
12749
    }
12750
 
12751
    public void setNewPasswordIsSet(boolean value) {
12752
      if (!value) {
12753
        this.newPassword = null;
12754
      }
12755
    }
12756
 
12757
    public void setFieldValue(_Fields field, Object value) {
12758
      switch (field) {
12759
      case USERNAME:
12760
        if (value == null) {
12761
          unsetUsername();
12762
        } else {
12763
          setUsername((String)value);
12764
        }
12765
        break;
12766
 
12767
      case OLD_PASSWORD:
12768
        if (value == null) {
12769
          unsetOldPassword();
12770
        } else {
12771
          setOldPassword((String)value);
12772
        }
12773
        break;
12774
 
12775
      case NEW_PASSWORD:
12776
        if (value == null) {
12777
          unsetNewPassword();
12778
        } else {
12779
          setNewPassword((String)value);
12780
        }
12781
        break;
12782
 
12783
      }
12784
    }
12785
 
12786
    public Object getFieldValue(_Fields field) {
12787
      switch (field) {
12788
      case USERNAME:
12789
        return getUsername();
12790
 
12791
      case OLD_PASSWORD:
12792
        return getOldPassword();
12793
 
12794
      case NEW_PASSWORD:
12795
        return getNewPassword();
12796
 
12797
      }
12798
      throw new IllegalStateException();
12799
    }
12800
 
3430 rajveer 12801
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12802
    public boolean isSet(_Fields field) {
12803
      if (field == null) {
12804
        throw new IllegalArgumentException();
12805
      }
495 rajveer 12806
 
12807
      switch (field) {
12808
      case USERNAME:
12809
        return isSetUsername();
12810
      case OLD_PASSWORD:
12811
        return isSetOldPassword();
12812
      case NEW_PASSWORD:
12813
        return isSetNewPassword();
12814
      }
12815
      throw new IllegalStateException();
12816
    }
12817
 
12818
    @Override
12819
    public boolean equals(Object that) {
12820
      if (that == null)
12821
        return false;
12822
      if (that instanceof updatePassword_args)
12823
        return this.equals((updatePassword_args)that);
12824
      return false;
12825
    }
12826
 
12827
    public boolean equals(updatePassword_args that) {
12828
      if (that == null)
12829
        return false;
12830
 
12831
      boolean this_present_username = true && this.isSetUsername();
12832
      boolean that_present_username = true && that.isSetUsername();
12833
      if (this_present_username || that_present_username) {
12834
        if (!(this_present_username && that_present_username))
12835
          return false;
12836
        if (!this.username.equals(that.username))
12837
          return false;
12838
      }
12839
 
12840
      boolean this_present_oldPassword = true && this.isSetOldPassword();
12841
      boolean that_present_oldPassword = true && that.isSetOldPassword();
12842
      if (this_present_oldPassword || that_present_oldPassword) {
12843
        if (!(this_present_oldPassword && that_present_oldPassword))
12844
          return false;
12845
        if (!this.oldPassword.equals(that.oldPassword))
12846
          return false;
12847
      }
12848
 
12849
      boolean this_present_newPassword = true && this.isSetNewPassword();
12850
      boolean that_present_newPassword = true && that.isSetNewPassword();
12851
      if (this_present_newPassword || that_present_newPassword) {
12852
        if (!(this_present_newPassword && that_present_newPassword))
12853
          return false;
12854
        if (!this.newPassword.equals(that.newPassword))
12855
          return false;
12856
      }
12857
 
12858
      return true;
12859
    }
12860
 
12861
    @Override
12862
    public int hashCode() {
12863
      return 0;
12864
    }
12865
 
12866
    public int compareTo(updatePassword_args other) {
12867
      if (!getClass().equals(other.getClass())) {
12868
        return getClass().getName().compareTo(other.getClass().getName());
12869
      }
12870
 
12871
      int lastComparison = 0;
12872
      updatePassword_args typedOther = (updatePassword_args)other;
12873
 
3430 rajveer 12874
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
495 rajveer 12875
      if (lastComparison != 0) {
12876
        return lastComparison;
12877
      }
3430 rajveer 12878
      if (isSetUsername()) {
12879
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
12880
        if (lastComparison != 0) {
12881
          return lastComparison;
12882
        }
495 rajveer 12883
      }
3430 rajveer 12884
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
495 rajveer 12885
      if (lastComparison != 0) {
12886
        return lastComparison;
12887
      }
3430 rajveer 12888
      if (isSetOldPassword()) {
12889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
12890
        if (lastComparison != 0) {
12891
          return lastComparison;
12892
        }
495 rajveer 12893
      }
3430 rajveer 12894
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
495 rajveer 12895
      if (lastComparison != 0) {
12896
        return lastComparison;
12897
      }
3430 rajveer 12898
      if (isSetNewPassword()) {
12899
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
12900
        if (lastComparison != 0) {
12901
          return lastComparison;
12902
        }
495 rajveer 12903
      }
12904
      return 0;
12905
    }
12906
 
3430 rajveer 12907
    public _Fields fieldForId(int fieldId) {
12908
      return _Fields.findByThriftId(fieldId);
12909
    }
12910
 
12911
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12912
      org.apache.thrift.protocol.TField field;
495 rajveer 12913
      iprot.readStructBegin();
12914
      while (true)
12915
      {
12916
        field = iprot.readFieldBegin();
3430 rajveer 12917
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 12918
          break;
12919
        }
3430 rajveer 12920
        switch (field.id) {
12921
          case 1: // USERNAME
12922
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12923
              this.username = iprot.readString();
12924
            } else { 
12925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12926
            }
12927
            break;
12928
          case 2: // OLD_PASSWORD
12929
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12930
              this.oldPassword = iprot.readString();
12931
            } else { 
12932
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12933
            }
12934
            break;
12935
          case 3: // NEW_PASSWORD
12936
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12937
              this.newPassword = iprot.readString();
12938
            } else { 
12939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12940
            }
12941
            break;
12942
          default:
12943
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 12944
        }
3430 rajveer 12945
        iprot.readFieldEnd();
495 rajveer 12946
      }
12947
      iprot.readStructEnd();
12948
      validate();
12949
    }
12950
 
3430 rajveer 12951
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 12952
      validate();
12953
 
12954
      oprot.writeStructBegin(STRUCT_DESC);
12955
      if (this.username != null) {
12956
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12957
        oprot.writeString(this.username);
12958
        oprot.writeFieldEnd();
12959
      }
12960
      if (this.oldPassword != null) {
12961
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
12962
        oprot.writeString(this.oldPassword);
12963
        oprot.writeFieldEnd();
12964
      }
12965
      if (this.newPassword != null) {
12966
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
12967
        oprot.writeString(this.newPassword);
12968
        oprot.writeFieldEnd();
12969
      }
12970
      oprot.writeFieldStop();
12971
      oprot.writeStructEnd();
12972
    }
12973
 
12974
    @Override
12975
    public String toString() {
12976
      StringBuilder sb = new StringBuilder("updatePassword_args(");
12977
      boolean first = true;
12978
 
12979
      sb.append("username:");
12980
      if (this.username == null) {
12981
        sb.append("null");
12982
      } else {
12983
        sb.append(this.username);
12984
      }
12985
      first = false;
12986
      if (!first) sb.append(", ");
12987
      sb.append("oldPassword:");
12988
      if (this.oldPassword == null) {
12989
        sb.append("null");
12990
      } else {
12991
        sb.append(this.oldPassword);
12992
      }
12993
      first = false;
12994
      if (!first) sb.append(", ");
12995
      sb.append("newPassword:");
12996
      if (this.newPassword == null) {
12997
        sb.append("null");
12998
      } else {
12999
        sb.append(this.newPassword);
13000
      }
13001
      first = false;
13002
      sb.append(")");
13003
      return sb.toString();
13004
    }
13005
 
3430 rajveer 13006
    public void validate() throws org.apache.thrift.TException {
495 rajveer 13007
      // check for required fields
13008
    }
13009
 
3430 rajveer 13010
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13011
      try {
13012
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13013
      } catch (org.apache.thrift.TException te) {
13014
        throw new java.io.IOException(te);
13015
      }
13016
    }
13017
 
13018
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13019
      try {
13020
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13021
      } catch (org.apache.thrift.TException te) {
13022
        throw new java.io.IOException(te);
13023
      }
13024
    }
13025
 
495 rajveer 13026
  }
13027
 
3430 rajveer 13028
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
13029
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
495 rajveer 13030
 
3430 rajveer 13031
    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);
13032
    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 13033
 
3430 rajveer 13034
    private boolean success; // required
13035
    private HelperServiceException se; // required
495 rajveer 13036
 
13037
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13038
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
495 rajveer 13039
      SUCCESS((short)0, "success"),
13040
      SE((short)1, "se");
13041
 
13042
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13043
 
13044
      static {
13045
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13046
          byName.put(field.getFieldName(), field);
13047
        }
13048
      }
13049
 
13050
      /**
13051
       * Find the _Fields constant that matches fieldId, or null if its not found.
13052
       */
13053
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13054
        switch(fieldId) {
13055
          case 0: // SUCCESS
13056
            return SUCCESS;
13057
          case 1: // SE
13058
            return SE;
13059
          default:
13060
            return null;
13061
        }
495 rajveer 13062
      }
13063
 
13064
      /**
13065
       * Find the _Fields constant that matches fieldId, throwing an exception
13066
       * if it is not found.
13067
       */
13068
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13069
        _Fields fields = findByThriftId(fieldId);
13070
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13071
        return fields;
13072
      }
13073
 
13074
      /**
13075
       * Find the _Fields constant that matches name, or null if its not found.
13076
       */
13077
      public static _Fields findByName(String name) {
13078
        return byName.get(name);
13079
      }
13080
 
13081
      private final short _thriftId;
13082
      private final String _fieldName;
13083
 
13084
      _Fields(short thriftId, String fieldName) {
13085
        _thriftId = thriftId;
13086
        _fieldName = fieldName;
13087
      }
13088
 
13089
      public short getThriftFieldId() {
13090
        return _thriftId;
13091
      }
13092
 
13093
      public String getFieldName() {
13094
        return _fieldName;
13095
      }
13096
    }
13097
 
13098
    // isset id assignments
13099
    private static final int __SUCCESS_ISSET_ID = 0;
13100
    private BitSet __isset_bit_vector = new BitSet(1);
13101
 
3430 rajveer 13102
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
495 rajveer 13103
    static {
3430 rajveer 13104
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13105
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13106
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
13107
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13108
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13109
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13110
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
495 rajveer 13111
    }
13112
 
13113
    public updatePassword_result() {
13114
    }
13115
 
13116
    public updatePassword_result(
13117
      boolean success,
13118
      HelperServiceException se)
13119
    {
13120
      this();
13121
      this.success = success;
13122
      setSuccessIsSet(true);
13123
      this.se = se;
13124
    }
13125
 
13126
    /**
13127
     * Performs a deep copy on <i>other</i>.
13128
     */
13129
    public updatePassword_result(updatePassword_result other) {
13130
      __isset_bit_vector.clear();
13131
      __isset_bit_vector.or(other.__isset_bit_vector);
13132
      this.success = other.success;
13133
      if (other.isSetSe()) {
13134
        this.se = new HelperServiceException(other.se);
13135
      }
13136
    }
13137
 
13138
    public updatePassword_result deepCopy() {
13139
      return new updatePassword_result(this);
13140
    }
13141
 
3430 rajveer 13142
    @Override
13143
    public void clear() {
13144
      setSuccessIsSet(false);
13145
      this.success = false;
13146
      this.se = null;
495 rajveer 13147
    }
13148
 
13149
    public boolean isSuccess() {
13150
      return this.success;
13151
    }
13152
 
3430 rajveer 13153
    public void setSuccess(boolean success) {
495 rajveer 13154
      this.success = success;
13155
      setSuccessIsSet(true);
13156
    }
13157
 
13158
    public void unsetSuccess() {
13159
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
13160
    }
13161
 
3430 rajveer 13162
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
495 rajveer 13163
    public boolean isSetSuccess() {
13164
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
13165
    }
13166
 
13167
    public void setSuccessIsSet(boolean value) {
13168
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
13169
    }
13170
 
13171
    public HelperServiceException getSe() {
13172
      return this.se;
13173
    }
13174
 
3430 rajveer 13175
    public void setSe(HelperServiceException se) {
495 rajveer 13176
      this.se = se;
13177
    }
13178
 
13179
    public void unsetSe() {
13180
      this.se = null;
13181
    }
13182
 
3430 rajveer 13183
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
495 rajveer 13184
    public boolean isSetSe() {
13185
      return this.se != null;
13186
    }
13187
 
13188
    public void setSeIsSet(boolean value) {
13189
      if (!value) {
13190
        this.se = null;
13191
      }
13192
    }
13193
 
13194
    public void setFieldValue(_Fields field, Object value) {
13195
      switch (field) {
13196
      case SUCCESS:
13197
        if (value == null) {
13198
          unsetSuccess();
13199
        } else {
13200
          setSuccess((Boolean)value);
13201
        }
13202
        break;
13203
 
13204
      case SE:
13205
        if (value == null) {
13206
          unsetSe();
13207
        } else {
13208
          setSe((HelperServiceException)value);
13209
        }
13210
        break;
13211
 
13212
      }
13213
    }
13214
 
13215
    public Object getFieldValue(_Fields field) {
13216
      switch (field) {
13217
      case SUCCESS:
3430 rajveer 13218
        return Boolean.valueOf(isSuccess());
495 rajveer 13219
 
13220
      case SE:
13221
        return getSe();
13222
 
13223
      }
13224
      throw new IllegalStateException();
13225
    }
13226
 
3430 rajveer 13227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13228
    public boolean isSet(_Fields field) {
13229
      if (field == null) {
13230
        throw new IllegalArgumentException();
13231
      }
495 rajveer 13232
 
13233
      switch (field) {
13234
      case SUCCESS:
13235
        return isSetSuccess();
13236
      case SE:
13237
        return isSetSe();
13238
      }
13239
      throw new IllegalStateException();
13240
    }
13241
 
13242
    @Override
13243
    public boolean equals(Object that) {
13244
      if (that == null)
13245
        return false;
13246
      if (that instanceof updatePassword_result)
13247
        return this.equals((updatePassword_result)that);
13248
      return false;
13249
    }
13250
 
13251
    public boolean equals(updatePassword_result that) {
13252
      if (that == null)
13253
        return false;
13254
 
13255
      boolean this_present_success = true;
13256
      boolean that_present_success = true;
13257
      if (this_present_success || that_present_success) {
13258
        if (!(this_present_success && that_present_success))
13259
          return false;
13260
        if (this.success != that.success)
13261
          return false;
13262
      }
13263
 
13264
      boolean this_present_se = true && this.isSetSe();
13265
      boolean that_present_se = true && that.isSetSe();
13266
      if (this_present_se || that_present_se) {
13267
        if (!(this_present_se && that_present_se))
13268
          return false;
13269
        if (!this.se.equals(that.se))
13270
          return false;
13271
      }
13272
 
13273
      return true;
13274
    }
13275
 
13276
    @Override
13277
    public int hashCode() {
13278
      return 0;
13279
    }
13280
 
13281
    public int compareTo(updatePassword_result other) {
13282
      if (!getClass().equals(other.getClass())) {
13283
        return getClass().getName().compareTo(other.getClass().getName());
13284
      }
13285
 
13286
      int lastComparison = 0;
13287
      updatePassword_result typedOther = (updatePassword_result)other;
13288
 
3430 rajveer 13289
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
495 rajveer 13290
      if (lastComparison != 0) {
13291
        return lastComparison;
13292
      }
3430 rajveer 13293
      if (isSetSuccess()) {
13294
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13295
        if (lastComparison != 0) {
13296
          return lastComparison;
13297
        }
495 rajveer 13298
      }
3430 rajveer 13299
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
495 rajveer 13300
      if (lastComparison != 0) {
13301
        return lastComparison;
13302
      }
3430 rajveer 13303
      if (isSetSe()) {
13304
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
13305
        if (lastComparison != 0) {
13306
          return lastComparison;
13307
        }
495 rajveer 13308
      }
13309
      return 0;
13310
    }
13311
 
3430 rajveer 13312
    public _Fields fieldForId(int fieldId) {
13313
      return _Fields.findByThriftId(fieldId);
13314
    }
13315
 
13316
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13317
      org.apache.thrift.protocol.TField field;
495 rajveer 13318
      iprot.readStructBegin();
13319
      while (true)
13320
      {
13321
        field = iprot.readFieldBegin();
3430 rajveer 13322
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
495 rajveer 13323
          break;
13324
        }
3430 rajveer 13325
        switch (field.id) {
13326
          case 0: // SUCCESS
13327
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
13328
              this.success = iprot.readBool();
13329
              setSuccessIsSet(true);
13330
            } else { 
13331
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13332
            }
13333
            break;
13334
          case 1: // SE
13335
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13336
              this.se = new HelperServiceException();
13337
              this.se.read(iprot);
13338
            } else { 
13339
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13340
            }
13341
            break;
13342
          default:
13343
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
495 rajveer 13344
        }
3430 rajveer 13345
        iprot.readFieldEnd();
495 rajveer 13346
      }
13347
      iprot.readStructEnd();
13348
      validate();
13349
    }
13350
 
3430 rajveer 13351
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 rajveer 13352
      oprot.writeStructBegin(STRUCT_DESC);
13353
 
13354
      if (this.isSetSuccess()) {
13355
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13356
        oprot.writeBool(this.success);
13357
        oprot.writeFieldEnd();
13358
      } else if (this.isSetSe()) {
13359
        oprot.writeFieldBegin(SE_FIELD_DESC);
13360
        this.se.write(oprot);
13361
        oprot.writeFieldEnd();
13362
      }
13363
      oprot.writeFieldStop();
13364
      oprot.writeStructEnd();
13365
    }
13366
 
13367
    @Override
13368
    public String toString() {
13369
      StringBuilder sb = new StringBuilder("updatePassword_result(");
13370
      boolean first = true;
13371
 
13372
      sb.append("success:");
13373
      sb.append(this.success);
13374
      first = false;
13375
      if (!first) sb.append(", ");
13376
      sb.append("se:");
13377
      if (this.se == null) {
13378
        sb.append("null");
13379
      } else {
13380
        sb.append(this.se);
13381
      }
13382
      first = false;
13383
      sb.append(")");
13384
      return sb.toString();
13385
    }
13386
 
3430 rajveer 13387
    public void validate() throws org.apache.thrift.TException {
495 rajveer 13388
      // check for required fields
13389
    }
13390
 
3430 rajveer 13391
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13392
      try {
13393
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13394
      } catch (org.apache.thrift.TException te) {
13395
        throw new java.io.IOException(te);
13396
      }
13397
    }
13398
 
13399
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13400
      try {
13401
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13402
      } catch (org.apache.thrift.TException te) {
13403
        throw new java.io.IOException(te);
13404
      }
13405
    }
13406
 
495 rajveer 13407
  }
13408
 
3430 rajveer 13409
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
13410
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
750 chandransh 13411
 
3430 rajveer 13412
    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);
13413
    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 13414
 
3430 rajveer 13415
    private String username; // required
13416
    private String password; // required
750 chandransh 13417
 
13418
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13419
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 13420
      USERNAME((short)1, "username"),
13421
      PASSWORD((short)2, "password");
13422
 
13423
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13424
 
13425
      static {
13426
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13427
          byName.put(field.getFieldName(), field);
13428
        }
13429
      }
13430
 
13431
      /**
13432
       * Find the _Fields constant that matches fieldId, or null if its not found.
13433
       */
13434
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13435
        switch(fieldId) {
13436
          case 1: // USERNAME
13437
            return USERNAME;
13438
          case 2: // PASSWORD
13439
            return PASSWORD;
13440
          default:
13441
            return null;
13442
        }
750 chandransh 13443
      }
13444
 
13445
      /**
13446
       * Find the _Fields constant that matches fieldId, throwing an exception
13447
       * if it is not found.
13448
       */
13449
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13450
        _Fields fields = findByThriftId(fieldId);
13451
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13452
        return fields;
13453
      }
13454
 
13455
      /**
13456
       * Find the _Fields constant that matches name, or null if its not found.
13457
       */
13458
      public static _Fields findByName(String name) {
13459
        return byName.get(name);
13460
      }
13461
 
13462
      private final short _thriftId;
13463
      private final String _fieldName;
13464
 
13465
      _Fields(short thriftId, String fieldName) {
13466
        _thriftId = thriftId;
13467
        _fieldName = fieldName;
13468
      }
13469
 
13470
      public short getThriftFieldId() {
13471
        return _thriftId;
13472
      }
13473
 
13474
      public String getFieldName() {
13475
        return _fieldName;
13476
      }
13477
    }
13478
 
13479
    // isset id assignments
13480
 
3430 rajveer 13481
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 13482
    static {
3430 rajveer 13483
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13484
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13485
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13486
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13487
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13488
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13489
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
750 chandransh 13490
    }
13491
 
13492
    public authenticateLogisticsUser_args() {
13493
    }
13494
 
13495
    public authenticateLogisticsUser_args(
13496
      String username,
13497
      String password)
13498
    {
13499
      this();
13500
      this.username = username;
13501
      this.password = password;
13502
    }
13503
 
13504
    /**
13505
     * Performs a deep copy on <i>other</i>.
13506
     */
13507
    public authenticateLogisticsUser_args(authenticateLogisticsUser_args other) {
13508
      if (other.isSetUsername()) {
13509
        this.username = other.username;
13510
      }
13511
      if (other.isSetPassword()) {
13512
        this.password = other.password;
13513
      }
13514
    }
13515
 
13516
    public authenticateLogisticsUser_args deepCopy() {
13517
      return new authenticateLogisticsUser_args(this);
13518
    }
13519
 
3430 rajveer 13520
    @Override
13521
    public void clear() {
13522
      this.username = null;
13523
      this.password = null;
750 chandransh 13524
    }
13525
 
13526
    public String getUsername() {
13527
      return this.username;
13528
    }
13529
 
3430 rajveer 13530
    public void setUsername(String username) {
750 chandransh 13531
      this.username = username;
13532
    }
13533
 
13534
    public void unsetUsername() {
13535
      this.username = null;
13536
    }
13537
 
3430 rajveer 13538
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
750 chandransh 13539
    public boolean isSetUsername() {
13540
      return this.username != null;
13541
    }
13542
 
13543
    public void setUsernameIsSet(boolean value) {
13544
      if (!value) {
13545
        this.username = null;
13546
      }
13547
    }
13548
 
13549
    public String getPassword() {
13550
      return this.password;
13551
    }
13552
 
3430 rajveer 13553
    public void setPassword(String password) {
750 chandransh 13554
      this.password = password;
13555
    }
13556
 
13557
    public void unsetPassword() {
13558
      this.password = null;
13559
    }
13560
 
3430 rajveer 13561
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
750 chandransh 13562
    public boolean isSetPassword() {
13563
      return this.password != null;
13564
    }
13565
 
13566
    public void setPasswordIsSet(boolean value) {
13567
      if (!value) {
13568
        this.password = null;
13569
      }
13570
    }
13571
 
13572
    public void setFieldValue(_Fields field, Object value) {
13573
      switch (field) {
13574
      case USERNAME:
13575
        if (value == null) {
13576
          unsetUsername();
13577
        } else {
13578
          setUsername((String)value);
13579
        }
13580
        break;
13581
 
13582
      case PASSWORD:
13583
        if (value == null) {
13584
          unsetPassword();
13585
        } else {
13586
          setPassword((String)value);
13587
        }
13588
        break;
13589
 
13590
      }
13591
    }
13592
 
13593
    public Object getFieldValue(_Fields field) {
13594
      switch (field) {
13595
      case USERNAME:
13596
        return getUsername();
13597
 
13598
      case PASSWORD:
13599
        return getPassword();
13600
 
13601
      }
13602
      throw new IllegalStateException();
13603
    }
13604
 
3430 rajveer 13605
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13606
    public boolean isSet(_Fields field) {
13607
      if (field == null) {
13608
        throw new IllegalArgumentException();
13609
      }
750 chandransh 13610
 
13611
      switch (field) {
13612
      case USERNAME:
13613
        return isSetUsername();
13614
      case PASSWORD:
13615
        return isSetPassword();
13616
      }
13617
      throw new IllegalStateException();
13618
    }
13619
 
13620
    @Override
13621
    public boolean equals(Object that) {
13622
      if (that == null)
13623
        return false;
13624
      if (that instanceof authenticateLogisticsUser_args)
13625
        return this.equals((authenticateLogisticsUser_args)that);
13626
      return false;
13627
    }
13628
 
13629
    public boolean equals(authenticateLogisticsUser_args that) {
13630
      if (that == null)
13631
        return false;
13632
 
13633
      boolean this_present_username = true && this.isSetUsername();
13634
      boolean that_present_username = true && that.isSetUsername();
13635
      if (this_present_username || that_present_username) {
13636
        if (!(this_present_username && that_present_username))
13637
          return false;
13638
        if (!this.username.equals(that.username))
13639
          return false;
13640
      }
13641
 
13642
      boolean this_present_password = true && this.isSetPassword();
13643
      boolean that_present_password = true && that.isSetPassword();
13644
      if (this_present_password || that_present_password) {
13645
        if (!(this_present_password && that_present_password))
13646
          return false;
13647
        if (!this.password.equals(that.password))
13648
          return false;
13649
      }
13650
 
13651
      return true;
13652
    }
13653
 
13654
    @Override
13655
    public int hashCode() {
13656
      return 0;
13657
    }
13658
 
13659
    public int compareTo(authenticateLogisticsUser_args other) {
13660
      if (!getClass().equals(other.getClass())) {
13661
        return getClass().getName().compareTo(other.getClass().getName());
13662
      }
13663
 
13664
      int lastComparison = 0;
13665
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
13666
 
3430 rajveer 13667
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
750 chandransh 13668
      if (lastComparison != 0) {
13669
        return lastComparison;
13670
      }
3430 rajveer 13671
      if (isSetUsername()) {
13672
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13673
        if (lastComparison != 0) {
13674
          return lastComparison;
13675
        }
750 chandransh 13676
      }
3430 rajveer 13677
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
750 chandransh 13678
      if (lastComparison != 0) {
13679
        return lastComparison;
13680
      }
3430 rajveer 13681
      if (isSetPassword()) {
13682
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13683
        if (lastComparison != 0) {
13684
          return lastComparison;
13685
        }
750 chandransh 13686
      }
13687
      return 0;
13688
    }
13689
 
3430 rajveer 13690
    public _Fields fieldForId(int fieldId) {
13691
      return _Fields.findByThriftId(fieldId);
13692
    }
13693
 
13694
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13695
      org.apache.thrift.protocol.TField field;
750 chandransh 13696
      iprot.readStructBegin();
13697
      while (true)
13698
      {
13699
        field = iprot.readFieldBegin();
3430 rajveer 13700
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 13701
          break;
13702
        }
3430 rajveer 13703
        switch (field.id) {
13704
          case 1: // USERNAME
13705
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13706
              this.username = iprot.readString();
13707
            } else { 
13708
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13709
            }
13710
            break;
13711
          case 2: // PASSWORD
13712
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13713
              this.password = iprot.readString();
13714
            } else { 
13715
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13716
            }
13717
            break;
13718
          default:
13719
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 13720
        }
3430 rajveer 13721
        iprot.readFieldEnd();
750 chandransh 13722
      }
13723
      iprot.readStructEnd();
13724
      validate();
13725
    }
13726
 
3430 rajveer 13727
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 13728
      validate();
13729
 
13730
      oprot.writeStructBegin(STRUCT_DESC);
13731
      if (this.username != null) {
13732
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
13733
        oprot.writeString(this.username);
13734
        oprot.writeFieldEnd();
13735
      }
13736
      if (this.password != null) {
13737
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
13738
        oprot.writeString(this.password);
13739
        oprot.writeFieldEnd();
13740
      }
13741
      oprot.writeFieldStop();
13742
      oprot.writeStructEnd();
13743
    }
13744
 
13745
    @Override
13746
    public String toString() {
13747
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_args(");
13748
      boolean first = true;
13749
 
13750
      sb.append("username:");
13751
      if (this.username == null) {
13752
        sb.append("null");
13753
      } else {
13754
        sb.append(this.username);
13755
      }
13756
      first = false;
13757
      if (!first) sb.append(", ");
13758
      sb.append("password:");
13759
      if (this.password == null) {
13760
        sb.append("null");
13761
      } else {
13762
        sb.append(this.password);
13763
      }
13764
      first = false;
13765
      sb.append(")");
13766
      return sb.toString();
13767
    }
13768
 
3430 rajveer 13769
    public void validate() throws org.apache.thrift.TException {
750 chandransh 13770
      // check for required fields
13771
    }
13772
 
3430 rajveer 13773
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13774
      try {
13775
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13776
      } catch (org.apache.thrift.TException te) {
13777
        throw new java.io.IOException(te);
13778
      }
13779
    }
13780
 
13781
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13782
      try {
13783
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13784
      } catch (org.apache.thrift.TException te) {
13785
        throw new java.io.IOException(te);
13786
      }
13787
    }
13788
 
750 chandransh 13789
  }
13790
 
3430 rajveer 13791
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
13792
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
750 chandransh 13793
 
3430 rajveer 13794
    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);
13795
    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 13796
 
3430 rajveer 13797
    private LogisticsUser success; // required
13798
    private HelperServiceException hse; // required
750 chandransh 13799
 
13800
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 13801
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
750 chandransh 13802
      SUCCESS((short)0, "success"),
13803
      HSE((short)1, "hse");
13804
 
13805
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13806
 
13807
      static {
13808
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13809
          byName.put(field.getFieldName(), field);
13810
        }
13811
      }
13812
 
13813
      /**
13814
       * Find the _Fields constant that matches fieldId, or null if its not found.
13815
       */
13816
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 13817
        switch(fieldId) {
13818
          case 0: // SUCCESS
13819
            return SUCCESS;
13820
          case 1: // HSE
13821
            return HSE;
13822
          default:
13823
            return null;
13824
        }
750 chandransh 13825
      }
13826
 
13827
      /**
13828
       * Find the _Fields constant that matches fieldId, throwing an exception
13829
       * if it is not found.
13830
       */
13831
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13832
        _Fields fields = findByThriftId(fieldId);
13833
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13834
        return fields;
13835
      }
13836
 
13837
      /**
13838
       * Find the _Fields constant that matches name, or null if its not found.
13839
       */
13840
      public static _Fields findByName(String name) {
13841
        return byName.get(name);
13842
      }
13843
 
13844
      private final short _thriftId;
13845
      private final String _fieldName;
13846
 
13847
      _Fields(short thriftId, String fieldName) {
13848
        _thriftId = thriftId;
13849
        _fieldName = fieldName;
13850
      }
13851
 
13852
      public short getThriftFieldId() {
13853
        return _thriftId;
13854
      }
13855
 
13856
      public String getFieldName() {
13857
        return _fieldName;
13858
      }
13859
    }
13860
 
13861
    // isset id assignments
13862
 
3430 rajveer 13863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
750 chandransh 13864
    static {
3430 rajveer 13865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13866
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13867
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
13868
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13869
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
13870
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13871
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
750 chandransh 13872
    }
13873
 
13874
    public authenticateLogisticsUser_result() {
13875
    }
13876
 
13877
    public authenticateLogisticsUser_result(
13878
      LogisticsUser success,
13879
      HelperServiceException hse)
13880
    {
13881
      this();
13882
      this.success = success;
13883
      this.hse = hse;
13884
    }
13885
 
13886
    /**
13887
     * Performs a deep copy on <i>other</i>.
13888
     */
13889
    public authenticateLogisticsUser_result(authenticateLogisticsUser_result other) {
13890
      if (other.isSetSuccess()) {
13891
        this.success = new LogisticsUser(other.success);
13892
      }
13893
      if (other.isSetHse()) {
13894
        this.hse = new HelperServiceException(other.hse);
13895
      }
13896
    }
13897
 
13898
    public authenticateLogisticsUser_result deepCopy() {
13899
      return new authenticateLogisticsUser_result(this);
13900
    }
13901
 
3430 rajveer 13902
    @Override
13903
    public void clear() {
13904
      this.success = null;
13905
      this.hse = null;
750 chandransh 13906
    }
13907
 
13908
    public LogisticsUser getSuccess() {
13909
      return this.success;
13910
    }
13911
 
3430 rajveer 13912
    public void setSuccess(LogisticsUser success) {
750 chandransh 13913
      this.success = success;
13914
    }
13915
 
13916
    public void unsetSuccess() {
13917
      this.success = null;
13918
    }
13919
 
3430 rajveer 13920
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
750 chandransh 13921
    public boolean isSetSuccess() {
13922
      return this.success != null;
13923
    }
13924
 
13925
    public void setSuccessIsSet(boolean value) {
13926
      if (!value) {
13927
        this.success = null;
13928
      }
13929
    }
13930
 
13931
    public HelperServiceException getHse() {
13932
      return this.hse;
13933
    }
13934
 
3430 rajveer 13935
    public void setHse(HelperServiceException hse) {
750 chandransh 13936
      this.hse = hse;
13937
    }
13938
 
13939
    public void unsetHse() {
13940
      this.hse = null;
13941
    }
13942
 
3430 rajveer 13943
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
750 chandransh 13944
    public boolean isSetHse() {
13945
      return this.hse != null;
13946
    }
13947
 
13948
    public void setHseIsSet(boolean value) {
13949
      if (!value) {
13950
        this.hse = null;
13951
      }
13952
    }
13953
 
13954
    public void setFieldValue(_Fields field, Object value) {
13955
      switch (field) {
13956
      case SUCCESS:
13957
        if (value == null) {
13958
          unsetSuccess();
13959
        } else {
13960
          setSuccess((LogisticsUser)value);
13961
        }
13962
        break;
13963
 
13964
      case HSE:
13965
        if (value == null) {
13966
          unsetHse();
13967
        } else {
13968
          setHse((HelperServiceException)value);
13969
        }
13970
        break;
13971
 
13972
      }
13973
    }
13974
 
13975
    public Object getFieldValue(_Fields field) {
13976
      switch (field) {
13977
      case SUCCESS:
13978
        return getSuccess();
13979
 
13980
      case HSE:
13981
        return getHse();
13982
 
13983
      }
13984
      throw new IllegalStateException();
13985
    }
13986
 
3430 rajveer 13987
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13988
    public boolean isSet(_Fields field) {
13989
      if (field == null) {
13990
        throw new IllegalArgumentException();
13991
      }
750 chandransh 13992
 
13993
      switch (field) {
13994
      case SUCCESS:
13995
        return isSetSuccess();
13996
      case HSE:
13997
        return isSetHse();
13998
      }
13999
      throw new IllegalStateException();
14000
    }
14001
 
14002
    @Override
14003
    public boolean equals(Object that) {
14004
      if (that == null)
14005
        return false;
14006
      if (that instanceof authenticateLogisticsUser_result)
14007
        return this.equals((authenticateLogisticsUser_result)that);
14008
      return false;
14009
    }
14010
 
14011
    public boolean equals(authenticateLogisticsUser_result that) {
14012
      if (that == null)
14013
        return false;
14014
 
14015
      boolean this_present_success = true && this.isSetSuccess();
14016
      boolean that_present_success = true && that.isSetSuccess();
14017
      if (this_present_success || that_present_success) {
14018
        if (!(this_present_success && that_present_success))
14019
          return false;
14020
        if (!this.success.equals(that.success))
14021
          return false;
14022
      }
14023
 
14024
      boolean this_present_hse = true && this.isSetHse();
14025
      boolean that_present_hse = true && that.isSetHse();
14026
      if (this_present_hse || that_present_hse) {
14027
        if (!(this_present_hse && that_present_hse))
14028
          return false;
14029
        if (!this.hse.equals(that.hse))
14030
          return false;
14031
      }
14032
 
14033
      return true;
14034
    }
14035
 
14036
    @Override
14037
    public int hashCode() {
14038
      return 0;
14039
    }
14040
 
14041
    public int compareTo(authenticateLogisticsUser_result other) {
14042
      if (!getClass().equals(other.getClass())) {
14043
        return getClass().getName().compareTo(other.getClass().getName());
14044
      }
14045
 
14046
      int lastComparison = 0;
14047
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
14048
 
3430 rajveer 14049
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
750 chandransh 14050
      if (lastComparison != 0) {
14051
        return lastComparison;
14052
      }
3430 rajveer 14053
      if (isSetSuccess()) {
14054
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14055
        if (lastComparison != 0) {
14056
          return lastComparison;
14057
        }
750 chandransh 14058
      }
3430 rajveer 14059
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
750 chandransh 14060
      if (lastComparison != 0) {
14061
        return lastComparison;
14062
      }
3430 rajveer 14063
      if (isSetHse()) {
14064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14065
        if (lastComparison != 0) {
14066
          return lastComparison;
14067
        }
750 chandransh 14068
      }
14069
      return 0;
14070
    }
14071
 
3430 rajveer 14072
    public _Fields fieldForId(int fieldId) {
14073
      return _Fields.findByThriftId(fieldId);
14074
    }
14075
 
14076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14077
      org.apache.thrift.protocol.TField field;
750 chandransh 14078
      iprot.readStructBegin();
14079
      while (true)
14080
      {
14081
        field = iprot.readFieldBegin();
3430 rajveer 14082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
750 chandransh 14083
          break;
14084
        }
3430 rajveer 14085
        switch (field.id) {
14086
          case 0: // SUCCESS
14087
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14088
              this.success = new LogisticsUser();
14089
              this.success.read(iprot);
14090
            } else { 
14091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14092
            }
14093
            break;
14094
          case 1: // HSE
14095
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14096
              this.hse = new HelperServiceException();
14097
              this.hse.read(iprot);
14098
            } else { 
14099
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14100
            }
14101
            break;
14102
          default:
14103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
750 chandransh 14104
        }
3430 rajveer 14105
        iprot.readFieldEnd();
750 chandransh 14106
      }
14107
      iprot.readStructEnd();
14108
      validate();
14109
    }
14110
 
3430 rajveer 14111
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
750 chandransh 14112
      oprot.writeStructBegin(STRUCT_DESC);
14113
 
14114
      if (this.isSetSuccess()) {
14115
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14116
        this.success.write(oprot);
14117
        oprot.writeFieldEnd();
14118
      } else if (this.isSetHse()) {
14119
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14120
        this.hse.write(oprot);
14121
        oprot.writeFieldEnd();
14122
      }
14123
      oprot.writeFieldStop();
14124
      oprot.writeStructEnd();
14125
    }
14126
 
14127
    @Override
14128
    public String toString() {
14129
      StringBuilder sb = new StringBuilder("authenticateLogisticsUser_result(");
14130
      boolean first = true;
14131
 
14132
      sb.append("success:");
14133
      if (this.success == null) {
14134
        sb.append("null");
14135
      } else {
14136
        sb.append(this.success);
14137
      }
14138
      first = false;
14139
      if (!first) sb.append(", ");
14140
      sb.append("hse:");
14141
      if (this.hse == null) {
14142
        sb.append("null");
14143
      } else {
14144
        sb.append(this.hse);
14145
      }
14146
      first = false;
14147
      sb.append(")");
14148
      return sb.toString();
14149
    }
14150
 
3430 rajveer 14151
    public void validate() throws org.apache.thrift.TException {
750 chandransh 14152
      // check for required fields
14153
    }
14154
 
3430 rajveer 14155
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14156
      try {
14157
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14158
      } catch (org.apache.thrift.TException te) {
14159
        throw new java.io.IOException(te);
14160
      }
14161
    }
14162
 
14163
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14164
      try {
14165
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14166
      } catch (org.apache.thrift.TException te) {
14167
        throw new java.io.IOException(te);
14168
      }
14169
    }
14170
 
750 chandransh 14171
  }
14172
 
3430 rajveer 14173
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
14174
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
1611 ankur.sing 14175
 
3430 rajveer 14176
    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);
14177
    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 14178
 
3430 rajveer 14179
    private String username; // required
14180
    private String password; // required
1611 ankur.sing 14181
 
14182
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14183
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 14184
      USERNAME((short)1, "username"),
14185
      PASSWORD((short)2, "password");
14186
 
14187
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14188
 
14189
      static {
14190
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14191
          byName.put(field.getFieldName(), field);
14192
        }
14193
      }
14194
 
14195
      /**
14196
       * Find the _Fields constant that matches fieldId, or null if its not found.
14197
       */
14198
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14199
        switch(fieldId) {
14200
          case 1: // USERNAME
14201
            return USERNAME;
14202
          case 2: // PASSWORD
14203
            return PASSWORD;
14204
          default:
14205
            return null;
14206
        }
1611 ankur.sing 14207
      }
14208
 
14209
      /**
14210
       * Find the _Fields constant that matches fieldId, throwing an exception
14211
       * if it is not found.
14212
       */
14213
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14214
        _Fields fields = findByThriftId(fieldId);
14215
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14216
        return fields;
14217
      }
14218
 
14219
      /**
14220
       * Find the _Fields constant that matches name, or null if its not found.
14221
       */
14222
      public static _Fields findByName(String name) {
14223
        return byName.get(name);
14224
      }
14225
 
14226
      private final short _thriftId;
14227
      private final String _fieldName;
14228
 
14229
      _Fields(short thriftId, String fieldName) {
14230
        _thriftId = thriftId;
14231
        _fieldName = fieldName;
14232
      }
14233
 
14234
      public short getThriftFieldId() {
14235
        return _thriftId;
14236
      }
14237
 
14238
      public String getFieldName() {
14239
        return _fieldName;
14240
      }
14241
    }
14242
 
14243
    // isset id assignments
14244
 
3430 rajveer 14245
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 14246
    static {
3430 rajveer 14247
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14248
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14249
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14250
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14251
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
14252
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14253
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
1611 ankur.sing 14254
    }
14255
 
14256
    public authenticateStatisticsUser_args() {
14257
    }
14258
 
14259
    public authenticateStatisticsUser_args(
14260
      String username,
14261
      String password)
14262
    {
14263
      this();
14264
      this.username = username;
14265
      this.password = password;
14266
    }
14267
 
14268
    /**
14269
     * Performs a deep copy on <i>other</i>.
14270
     */
14271
    public authenticateStatisticsUser_args(authenticateStatisticsUser_args other) {
14272
      if (other.isSetUsername()) {
14273
        this.username = other.username;
14274
      }
14275
      if (other.isSetPassword()) {
14276
        this.password = other.password;
14277
      }
14278
    }
14279
 
14280
    public authenticateStatisticsUser_args deepCopy() {
14281
      return new authenticateStatisticsUser_args(this);
14282
    }
14283
 
3430 rajveer 14284
    @Override
14285
    public void clear() {
14286
      this.username = null;
14287
      this.password = null;
1611 ankur.sing 14288
    }
14289
 
14290
    public String getUsername() {
14291
      return this.username;
14292
    }
14293
 
3430 rajveer 14294
    public void setUsername(String username) {
1611 ankur.sing 14295
      this.username = username;
14296
    }
14297
 
14298
    public void unsetUsername() {
14299
      this.username = null;
14300
    }
14301
 
3430 rajveer 14302
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14303
    public boolean isSetUsername() {
14304
      return this.username != null;
14305
    }
14306
 
14307
    public void setUsernameIsSet(boolean value) {
14308
      if (!value) {
14309
        this.username = null;
14310
      }
14311
    }
14312
 
14313
    public String getPassword() {
14314
      return this.password;
14315
    }
14316
 
3430 rajveer 14317
    public void setPassword(String password) {
1611 ankur.sing 14318
      this.password = password;
14319
    }
14320
 
14321
    public void unsetPassword() {
14322
      this.password = null;
14323
    }
14324
 
3430 rajveer 14325
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14326
    public boolean isSetPassword() {
14327
      return this.password != null;
14328
    }
14329
 
14330
    public void setPasswordIsSet(boolean value) {
14331
      if (!value) {
14332
        this.password = null;
14333
      }
14334
    }
14335
 
14336
    public void setFieldValue(_Fields field, Object value) {
14337
      switch (field) {
14338
      case USERNAME:
14339
        if (value == null) {
14340
          unsetUsername();
14341
        } else {
14342
          setUsername((String)value);
14343
        }
14344
        break;
14345
 
14346
      case PASSWORD:
14347
        if (value == null) {
14348
          unsetPassword();
14349
        } else {
14350
          setPassword((String)value);
14351
        }
14352
        break;
14353
 
14354
      }
14355
    }
14356
 
14357
    public Object getFieldValue(_Fields field) {
14358
      switch (field) {
14359
      case USERNAME:
14360
        return getUsername();
14361
 
14362
      case PASSWORD:
14363
        return getPassword();
14364
 
14365
      }
14366
      throw new IllegalStateException();
14367
    }
14368
 
3430 rajveer 14369
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14370
    public boolean isSet(_Fields field) {
14371
      if (field == null) {
14372
        throw new IllegalArgumentException();
14373
      }
1611 ankur.sing 14374
 
14375
      switch (field) {
14376
      case USERNAME:
14377
        return isSetUsername();
14378
      case PASSWORD:
14379
        return isSetPassword();
14380
      }
14381
      throw new IllegalStateException();
14382
    }
14383
 
14384
    @Override
14385
    public boolean equals(Object that) {
14386
      if (that == null)
14387
        return false;
14388
      if (that instanceof authenticateStatisticsUser_args)
14389
        return this.equals((authenticateStatisticsUser_args)that);
14390
      return false;
14391
    }
14392
 
14393
    public boolean equals(authenticateStatisticsUser_args that) {
14394
      if (that == null)
14395
        return false;
14396
 
14397
      boolean this_present_username = true && this.isSetUsername();
14398
      boolean that_present_username = true && that.isSetUsername();
14399
      if (this_present_username || that_present_username) {
14400
        if (!(this_present_username && that_present_username))
14401
          return false;
14402
        if (!this.username.equals(that.username))
14403
          return false;
14404
      }
14405
 
14406
      boolean this_present_password = true && this.isSetPassword();
14407
      boolean that_present_password = true && that.isSetPassword();
14408
      if (this_present_password || that_present_password) {
14409
        if (!(this_present_password && that_present_password))
14410
          return false;
14411
        if (!this.password.equals(that.password))
14412
          return false;
14413
      }
14414
 
14415
      return true;
14416
    }
14417
 
14418
    @Override
14419
    public int hashCode() {
14420
      return 0;
14421
    }
14422
 
14423
    public int compareTo(authenticateStatisticsUser_args other) {
14424
      if (!getClass().equals(other.getClass())) {
14425
        return getClass().getName().compareTo(other.getClass().getName());
14426
      }
14427
 
14428
      int lastComparison = 0;
14429
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
14430
 
3430 rajveer 14431
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1611 ankur.sing 14432
      if (lastComparison != 0) {
14433
        return lastComparison;
14434
      }
3430 rajveer 14435
      if (isSetUsername()) {
14436
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
14437
        if (lastComparison != 0) {
14438
          return lastComparison;
14439
        }
1611 ankur.sing 14440
      }
3430 rajveer 14441
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1611 ankur.sing 14442
      if (lastComparison != 0) {
14443
        return lastComparison;
14444
      }
3430 rajveer 14445
      if (isSetPassword()) {
14446
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
14447
        if (lastComparison != 0) {
14448
          return lastComparison;
14449
        }
1611 ankur.sing 14450
      }
14451
      return 0;
14452
    }
14453
 
3430 rajveer 14454
    public _Fields fieldForId(int fieldId) {
14455
      return _Fields.findByThriftId(fieldId);
14456
    }
14457
 
14458
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14459
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 14460
      iprot.readStructBegin();
14461
      while (true)
14462
      {
14463
        field = iprot.readFieldBegin();
3430 rajveer 14464
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 14465
          break;
14466
        }
3430 rajveer 14467
        switch (field.id) {
14468
          case 1: // USERNAME
14469
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14470
              this.username = iprot.readString();
14471
            } else { 
14472
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14473
            }
14474
            break;
14475
          case 2: // PASSWORD
14476
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
14477
              this.password = iprot.readString();
14478
            } else { 
14479
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14480
            }
14481
            break;
14482
          default:
14483
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 14484
        }
3430 rajveer 14485
        iprot.readFieldEnd();
1611 ankur.sing 14486
      }
14487
      iprot.readStructEnd();
14488
      validate();
14489
    }
14490
 
3430 rajveer 14491
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 14492
      validate();
14493
 
14494
      oprot.writeStructBegin(STRUCT_DESC);
14495
      if (this.username != null) {
14496
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14497
        oprot.writeString(this.username);
14498
        oprot.writeFieldEnd();
14499
      }
14500
      if (this.password != null) {
14501
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
14502
        oprot.writeString(this.password);
14503
        oprot.writeFieldEnd();
14504
      }
14505
      oprot.writeFieldStop();
14506
      oprot.writeStructEnd();
14507
    }
14508
 
14509
    @Override
14510
    public String toString() {
14511
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_args(");
14512
      boolean first = true;
14513
 
14514
      sb.append("username:");
14515
      if (this.username == null) {
14516
        sb.append("null");
14517
      } else {
14518
        sb.append(this.username);
14519
      }
14520
      first = false;
14521
      if (!first) sb.append(", ");
14522
      sb.append("password:");
14523
      if (this.password == null) {
14524
        sb.append("null");
14525
      } else {
14526
        sb.append(this.password);
14527
      }
14528
      first = false;
14529
      sb.append(")");
14530
      return sb.toString();
14531
    }
14532
 
3430 rajveer 14533
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 14534
      // check for required fields
14535
    }
14536
 
3430 rajveer 14537
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14538
      try {
14539
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14540
      } catch (org.apache.thrift.TException te) {
14541
        throw new java.io.IOException(te);
14542
      }
14543
    }
14544
 
14545
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14546
      try {
14547
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14548
      } catch (org.apache.thrift.TException te) {
14549
        throw new java.io.IOException(te);
14550
      }
14551
    }
14552
 
1611 ankur.sing 14553
  }
14554
 
3430 rajveer 14555
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
14556
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
1611 ankur.sing 14557
 
3430 rajveer 14558
    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);
14559
    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 14560
 
3430 rajveer 14561
    private StatisticsUser success; // required
14562
    private HelperServiceException hse; // required
1611 ankur.sing 14563
 
14564
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14565
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1611 ankur.sing 14566
      SUCCESS((short)0, "success"),
14567
      HSE((short)1, "hse");
14568
 
14569
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14570
 
14571
      static {
14572
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14573
          byName.put(field.getFieldName(), field);
14574
        }
14575
      }
14576
 
14577
      /**
14578
       * Find the _Fields constant that matches fieldId, or null if its not found.
14579
       */
14580
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14581
        switch(fieldId) {
14582
          case 0: // SUCCESS
14583
            return SUCCESS;
14584
          case 1: // HSE
14585
            return HSE;
14586
          default:
14587
            return null;
14588
        }
1611 ankur.sing 14589
      }
14590
 
14591
      /**
14592
       * Find the _Fields constant that matches fieldId, throwing an exception
14593
       * if it is not found.
14594
       */
14595
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14596
        _Fields fields = findByThriftId(fieldId);
14597
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14598
        return fields;
14599
      }
14600
 
14601
      /**
14602
       * Find the _Fields constant that matches name, or null if its not found.
14603
       */
14604
      public static _Fields findByName(String name) {
14605
        return byName.get(name);
14606
      }
14607
 
14608
      private final short _thriftId;
14609
      private final String _fieldName;
14610
 
14611
      _Fields(short thriftId, String fieldName) {
14612
        _thriftId = thriftId;
14613
        _fieldName = fieldName;
14614
      }
14615
 
14616
      public short getThriftFieldId() {
14617
        return _thriftId;
14618
      }
14619
 
14620
      public String getFieldName() {
14621
        return _fieldName;
14622
      }
14623
    }
14624
 
14625
    // isset id assignments
14626
 
3430 rajveer 14627
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1611 ankur.sing 14628
    static {
3430 rajveer 14629
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
14630
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14631
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
14632
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
14633
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
14634
      metaDataMap = Collections.unmodifiableMap(tmpMap);
14635
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
1611 ankur.sing 14636
    }
14637
 
14638
    public authenticateStatisticsUser_result() {
14639
    }
14640
 
14641
    public authenticateStatisticsUser_result(
14642
      StatisticsUser success,
14643
      HelperServiceException hse)
14644
    {
14645
      this();
14646
      this.success = success;
14647
      this.hse = hse;
14648
    }
14649
 
14650
    /**
14651
     * Performs a deep copy on <i>other</i>.
14652
     */
14653
    public authenticateStatisticsUser_result(authenticateStatisticsUser_result other) {
14654
      if (other.isSetSuccess()) {
14655
        this.success = new StatisticsUser(other.success);
14656
      }
14657
      if (other.isSetHse()) {
14658
        this.hse = new HelperServiceException(other.hse);
14659
      }
14660
    }
14661
 
14662
    public authenticateStatisticsUser_result deepCopy() {
14663
      return new authenticateStatisticsUser_result(this);
14664
    }
14665
 
3430 rajveer 14666
    @Override
14667
    public void clear() {
14668
      this.success = null;
14669
      this.hse = null;
1611 ankur.sing 14670
    }
14671
 
14672
    public StatisticsUser getSuccess() {
14673
      return this.success;
14674
    }
14675
 
3430 rajveer 14676
    public void setSuccess(StatisticsUser success) {
1611 ankur.sing 14677
      this.success = success;
14678
    }
14679
 
14680
    public void unsetSuccess() {
14681
      this.success = null;
14682
    }
14683
 
3430 rajveer 14684
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14685
    public boolean isSetSuccess() {
14686
      return this.success != null;
14687
    }
14688
 
14689
    public void setSuccessIsSet(boolean value) {
14690
      if (!value) {
14691
        this.success = null;
14692
      }
14693
    }
14694
 
14695
    public HelperServiceException getHse() {
14696
      return this.hse;
14697
    }
14698
 
3430 rajveer 14699
    public void setHse(HelperServiceException hse) {
1611 ankur.sing 14700
      this.hse = hse;
14701
    }
14702
 
14703
    public void unsetHse() {
14704
      this.hse = null;
14705
    }
14706
 
3430 rajveer 14707
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1611 ankur.sing 14708
    public boolean isSetHse() {
14709
      return this.hse != null;
14710
    }
14711
 
14712
    public void setHseIsSet(boolean value) {
14713
      if (!value) {
14714
        this.hse = null;
14715
      }
14716
    }
14717
 
14718
    public void setFieldValue(_Fields field, Object value) {
14719
      switch (field) {
14720
      case SUCCESS:
14721
        if (value == null) {
14722
          unsetSuccess();
14723
        } else {
14724
          setSuccess((StatisticsUser)value);
14725
        }
14726
        break;
14727
 
14728
      case HSE:
14729
        if (value == null) {
14730
          unsetHse();
14731
        } else {
14732
          setHse((HelperServiceException)value);
14733
        }
14734
        break;
14735
 
14736
      }
14737
    }
14738
 
14739
    public Object getFieldValue(_Fields field) {
14740
      switch (field) {
14741
      case SUCCESS:
14742
        return getSuccess();
14743
 
14744
      case HSE:
14745
        return getHse();
14746
 
14747
      }
14748
      throw new IllegalStateException();
14749
    }
14750
 
3430 rajveer 14751
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
14752
    public boolean isSet(_Fields field) {
14753
      if (field == null) {
14754
        throw new IllegalArgumentException();
14755
      }
1611 ankur.sing 14756
 
14757
      switch (field) {
14758
      case SUCCESS:
14759
        return isSetSuccess();
14760
      case HSE:
14761
        return isSetHse();
14762
      }
14763
      throw new IllegalStateException();
14764
    }
14765
 
14766
    @Override
14767
    public boolean equals(Object that) {
14768
      if (that == null)
14769
        return false;
14770
      if (that instanceof authenticateStatisticsUser_result)
14771
        return this.equals((authenticateStatisticsUser_result)that);
14772
      return false;
14773
    }
14774
 
14775
    public boolean equals(authenticateStatisticsUser_result that) {
14776
      if (that == null)
14777
        return false;
14778
 
14779
      boolean this_present_success = true && this.isSetSuccess();
14780
      boolean that_present_success = true && that.isSetSuccess();
14781
      if (this_present_success || that_present_success) {
14782
        if (!(this_present_success && that_present_success))
14783
          return false;
14784
        if (!this.success.equals(that.success))
14785
          return false;
14786
      }
14787
 
14788
      boolean this_present_hse = true && this.isSetHse();
14789
      boolean that_present_hse = true && that.isSetHse();
14790
      if (this_present_hse || that_present_hse) {
14791
        if (!(this_present_hse && that_present_hse))
14792
          return false;
14793
        if (!this.hse.equals(that.hse))
14794
          return false;
14795
      }
14796
 
14797
      return true;
14798
    }
14799
 
14800
    @Override
14801
    public int hashCode() {
14802
      return 0;
14803
    }
14804
 
14805
    public int compareTo(authenticateStatisticsUser_result other) {
14806
      if (!getClass().equals(other.getClass())) {
14807
        return getClass().getName().compareTo(other.getClass().getName());
14808
      }
14809
 
14810
      int lastComparison = 0;
14811
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
14812
 
3430 rajveer 14813
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1611 ankur.sing 14814
      if (lastComparison != 0) {
14815
        return lastComparison;
14816
      }
3430 rajveer 14817
      if (isSetSuccess()) {
14818
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14819
        if (lastComparison != 0) {
14820
          return lastComparison;
14821
        }
1611 ankur.sing 14822
      }
3430 rajveer 14823
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1611 ankur.sing 14824
      if (lastComparison != 0) {
14825
        return lastComparison;
14826
      }
3430 rajveer 14827
      if (isSetHse()) {
14828
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
14829
        if (lastComparison != 0) {
14830
          return lastComparison;
14831
        }
1611 ankur.sing 14832
      }
14833
      return 0;
14834
    }
14835
 
3430 rajveer 14836
    public _Fields fieldForId(int fieldId) {
14837
      return _Fields.findByThriftId(fieldId);
14838
    }
14839
 
14840
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14841
      org.apache.thrift.protocol.TField field;
1611 ankur.sing 14842
      iprot.readStructBegin();
14843
      while (true)
14844
      {
14845
        field = iprot.readFieldBegin();
3430 rajveer 14846
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1611 ankur.sing 14847
          break;
14848
        }
3430 rajveer 14849
        switch (field.id) {
14850
          case 0: // SUCCESS
14851
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14852
              this.success = new StatisticsUser();
14853
              this.success.read(iprot);
14854
            } else { 
14855
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14856
            }
14857
            break;
14858
          case 1: // HSE
14859
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
14860
              this.hse = new HelperServiceException();
14861
              this.hse.read(iprot);
14862
            } else { 
14863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14864
            }
14865
            break;
14866
          default:
14867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1611 ankur.sing 14868
        }
3430 rajveer 14869
        iprot.readFieldEnd();
1611 ankur.sing 14870
      }
14871
      iprot.readStructEnd();
14872
      validate();
14873
    }
14874
 
3430 rajveer 14875
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1611 ankur.sing 14876
      oprot.writeStructBegin(STRUCT_DESC);
14877
 
14878
      if (this.isSetSuccess()) {
14879
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14880
        this.success.write(oprot);
14881
        oprot.writeFieldEnd();
14882
      } else if (this.isSetHse()) {
14883
        oprot.writeFieldBegin(HSE_FIELD_DESC);
14884
        this.hse.write(oprot);
14885
        oprot.writeFieldEnd();
14886
      }
14887
      oprot.writeFieldStop();
14888
      oprot.writeStructEnd();
14889
    }
14890
 
14891
    @Override
14892
    public String toString() {
14893
      StringBuilder sb = new StringBuilder("authenticateStatisticsUser_result(");
14894
      boolean first = true;
14895
 
14896
      sb.append("success:");
14897
      if (this.success == null) {
14898
        sb.append("null");
14899
      } else {
14900
        sb.append(this.success);
14901
      }
14902
      first = false;
14903
      if (!first) sb.append(", ");
14904
      sb.append("hse:");
14905
      if (this.hse == null) {
14906
        sb.append("null");
14907
      } else {
14908
        sb.append(this.hse);
14909
      }
14910
      first = false;
14911
      sb.append(")");
14912
      return sb.toString();
14913
    }
14914
 
3430 rajveer 14915
    public void validate() throws org.apache.thrift.TException {
1611 ankur.sing 14916
      // check for required fields
14917
    }
14918
 
3430 rajveer 14919
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14920
      try {
14921
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14922
      } catch (org.apache.thrift.TException te) {
14923
        throw new java.io.IOException(te);
14924
      }
14925
    }
14926
 
14927
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14928
      try {
14929
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14930
      } catch (org.apache.thrift.TException te) {
14931
        throw new java.io.IOException(te);
14932
      }
14933
    }
14934
 
1611 ankur.sing 14935
  }
14936
 
3430 rajveer 14937
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
14938
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
1891 ankur.sing 14939
 
3430 rajveer 14940
    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);
14941
    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 14942
 
3430 rajveer 14943
    private String username; // required
14944
    private String password; // required
1891 ankur.sing 14945
 
14946
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 14947
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 14948
      USERNAME((short)1, "username"),
14949
      PASSWORD((short)2, "password");
14950
 
14951
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14952
 
14953
      static {
14954
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14955
          byName.put(field.getFieldName(), field);
14956
        }
14957
      }
14958
 
14959
      /**
14960
       * Find the _Fields constant that matches fieldId, or null if its not found.
14961
       */
14962
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 14963
        switch(fieldId) {
14964
          case 1: // USERNAME
14965
            return USERNAME;
14966
          case 2: // PASSWORD
14967
            return PASSWORD;
14968
          default:
14969
            return null;
14970
        }
1891 ankur.sing 14971
      }
14972
 
14973
      /**
14974
       * Find the _Fields constant that matches fieldId, throwing an exception
14975
       * if it is not found.
14976
       */
14977
      public static _Fields findByThriftIdOrThrow(int fieldId) {
14978
        _Fields fields = findByThriftId(fieldId);
14979
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
14980
        return fields;
14981
      }
14982
 
14983
      /**
14984
       * Find the _Fields constant that matches name, or null if its not found.
14985
       */
14986
      public static _Fields findByName(String name) {
14987
        return byName.get(name);
14988
      }
14989
 
14990
      private final short _thriftId;
14991
      private final String _fieldName;
14992
 
14993
      _Fields(short thriftId, String fieldName) {
14994
        _thriftId = thriftId;
14995
        _fieldName = fieldName;
14996
      }
14997
 
14998
      public short getThriftFieldId() {
14999
        return _thriftId;
15000
      }
15001
 
15002
      public String getFieldName() {
15003
        return _fieldName;
15004
      }
15005
    }
15006
 
15007
    // isset id assignments
15008
 
3430 rajveer 15009
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15010
    static {
3430 rajveer 15011
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15012
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15013
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15014
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15015
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
15016
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15017
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
1891 ankur.sing 15018
    }
15019
 
15020
    public authenticateReportUser_args() {
15021
    }
15022
 
15023
    public authenticateReportUser_args(
15024
      String username,
15025
      String password)
15026
    {
15027
      this();
15028
      this.username = username;
15029
      this.password = password;
15030
    }
15031
 
15032
    /**
15033
     * Performs a deep copy on <i>other</i>.
15034
     */
15035
    public authenticateReportUser_args(authenticateReportUser_args other) {
15036
      if (other.isSetUsername()) {
15037
        this.username = other.username;
15038
      }
15039
      if (other.isSetPassword()) {
15040
        this.password = other.password;
15041
      }
15042
    }
15043
 
15044
    public authenticateReportUser_args deepCopy() {
15045
      return new authenticateReportUser_args(this);
15046
    }
15047
 
3430 rajveer 15048
    @Override
15049
    public void clear() {
15050
      this.username = null;
15051
      this.password = null;
1891 ankur.sing 15052
    }
15053
 
15054
    public String getUsername() {
15055
      return this.username;
15056
    }
15057
 
3430 rajveer 15058
    public void setUsername(String username) {
1891 ankur.sing 15059
      this.username = username;
15060
    }
15061
 
15062
    public void unsetUsername() {
15063
      this.username = null;
15064
    }
15065
 
3430 rajveer 15066
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15067
    public boolean isSetUsername() {
15068
      return this.username != null;
15069
    }
15070
 
15071
    public void setUsernameIsSet(boolean value) {
15072
      if (!value) {
15073
        this.username = null;
15074
      }
15075
    }
15076
 
15077
    public String getPassword() {
15078
      return this.password;
15079
    }
15080
 
3430 rajveer 15081
    public void setPassword(String password) {
1891 ankur.sing 15082
      this.password = password;
15083
    }
15084
 
15085
    public void unsetPassword() {
15086
      this.password = null;
15087
    }
15088
 
3430 rajveer 15089
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15090
    public boolean isSetPassword() {
15091
      return this.password != null;
15092
    }
15093
 
15094
    public void setPasswordIsSet(boolean value) {
15095
      if (!value) {
15096
        this.password = null;
15097
      }
15098
    }
15099
 
15100
    public void setFieldValue(_Fields field, Object value) {
15101
      switch (field) {
15102
      case USERNAME:
15103
        if (value == null) {
15104
          unsetUsername();
15105
        } else {
15106
          setUsername((String)value);
15107
        }
15108
        break;
15109
 
15110
      case PASSWORD:
15111
        if (value == null) {
15112
          unsetPassword();
15113
        } else {
15114
          setPassword((String)value);
15115
        }
15116
        break;
15117
 
15118
      }
15119
    }
15120
 
15121
    public Object getFieldValue(_Fields field) {
15122
      switch (field) {
15123
      case USERNAME:
15124
        return getUsername();
15125
 
15126
      case PASSWORD:
15127
        return getPassword();
15128
 
15129
      }
15130
      throw new IllegalStateException();
15131
    }
15132
 
3430 rajveer 15133
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15134
    public boolean isSet(_Fields field) {
15135
      if (field == null) {
15136
        throw new IllegalArgumentException();
15137
      }
1891 ankur.sing 15138
 
15139
      switch (field) {
15140
      case USERNAME:
15141
        return isSetUsername();
15142
      case PASSWORD:
15143
        return isSetPassword();
15144
      }
15145
      throw new IllegalStateException();
15146
    }
15147
 
15148
    @Override
15149
    public boolean equals(Object that) {
15150
      if (that == null)
15151
        return false;
15152
      if (that instanceof authenticateReportUser_args)
15153
        return this.equals((authenticateReportUser_args)that);
15154
      return false;
15155
    }
15156
 
15157
    public boolean equals(authenticateReportUser_args that) {
15158
      if (that == null)
15159
        return false;
15160
 
15161
      boolean this_present_username = true && this.isSetUsername();
15162
      boolean that_present_username = true && that.isSetUsername();
15163
      if (this_present_username || that_present_username) {
15164
        if (!(this_present_username && that_present_username))
15165
          return false;
15166
        if (!this.username.equals(that.username))
15167
          return false;
15168
      }
15169
 
15170
      boolean this_present_password = true && this.isSetPassword();
15171
      boolean that_present_password = true && that.isSetPassword();
15172
      if (this_present_password || that_present_password) {
15173
        if (!(this_present_password && that_present_password))
15174
          return false;
15175
        if (!this.password.equals(that.password))
15176
          return false;
15177
      }
15178
 
15179
      return true;
15180
    }
15181
 
15182
    @Override
15183
    public int hashCode() {
15184
      return 0;
15185
    }
15186
 
15187
    public int compareTo(authenticateReportUser_args other) {
15188
      if (!getClass().equals(other.getClass())) {
15189
        return getClass().getName().compareTo(other.getClass().getName());
15190
      }
15191
 
15192
      int lastComparison = 0;
15193
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
15194
 
3430 rajveer 15195
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
1891 ankur.sing 15196
      if (lastComparison != 0) {
15197
        return lastComparison;
15198
      }
3430 rajveer 15199
      if (isSetUsername()) {
15200
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
15201
        if (lastComparison != 0) {
15202
          return lastComparison;
15203
        }
1891 ankur.sing 15204
      }
3430 rajveer 15205
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
1891 ankur.sing 15206
      if (lastComparison != 0) {
15207
        return lastComparison;
15208
      }
3430 rajveer 15209
      if (isSetPassword()) {
15210
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
15211
        if (lastComparison != 0) {
15212
          return lastComparison;
15213
        }
1891 ankur.sing 15214
      }
15215
      return 0;
15216
    }
15217
 
3430 rajveer 15218
    public _Fields fieldForId(int fieldId) {
15219
      return _Fields.findByThriftId(fieldId);
15220
    }
15221
 
15222
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15223
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15224
      iprot.readStructBegin();
15225
      while (true)
15226
      {
15227
        field = iprot.readFieldBegin();
3430 rajveer 15228
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15229
          break;
15230
        }
3430 rajveer 15231
        switch (field.id) {
15232
          case 1: // USERNAME
15233
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15234
              this.username = iprot.readString();
15235
            } else { 
15236
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15237
            }
15238
            break;
15239
          case 2: // PASSWORD
15240
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
15241
              this.password = iprot.readString();
15242
            } else { 
15243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15244
            }
15245
            break;
15246
          default:
15247
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15248
        }
3430 rajveer 15249
        iprot.readFieldEnd();
1891 ankur.sing 15250
      }
15251
      iprot.readStructEnd();
15252
      validate();
15253
    }
15254
 
3430 rajveer 15255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15256
      validate();
15257
 
15258
      oprot.writeStructBegin(STRUCT_DESC);
15259
      if (this.username != null) {
15260
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
15261
        oprot.writeString(this.username);
15262
        oprot.writeFieldEnd();
15263
      }
15264
      if (this.password != null) {
15265
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
15266
        oprot.writeString(this.password);
15267
        oprot.writeFieldEnd();
15268
      }
15269
      oprot.writeFieldStop();
15270
      oprot.writeStructEnd();
15271
    }
15272
 
15273
    @Override
15274
    public String toString() {
15275
      StringBuilder sb = new StringBuilder("authenticateReportUser_args(");
15276
      boolean first = true;
15277
 
15278
      sb.append("username:");
15279
      if (this.username == null) {
15280
        sb.append("null");
15281
      } else {
15282
        sb.append(this.username);
15283
      }
15284
      first = false;
15285
      if (!first) sb.append(", ");
15286
      sb.append("password:");
15287
      if (this.password == null) {
15288
        sb.append("null");
15289
      } else {
15290
        sb.append(this.password);
15291
      }
15292
      first = false;
15293
      sb.append(")");
15294
      return sb.toString();
15295
    }
15296
 
3430 rajveer 15297
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15298
      // check for required fields
15299
    }
15300
 
3430 rajveer 15301
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15302
      try {
15303
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15304
      } catch (org.apache.thrift.TException te) {
15305
        throw new java.io.IOException(te);
15306
      }
15307
    }
15308
 
15309
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15310
      try {
15311
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15312
      } catch (org.apache.thrift.TException te) {
15313
        throw new java.io.IOException(te);
15314
      }
15315
    }
15316
 
1891 ankur.sing 15317
  }
15318
 
3430 rajveer 15319
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
15320
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
1891 ankur.sing 15321
 
3430 rajveer 15322
    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);
15323
    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 15324
 
3430 rajveer 15325
    private ReportUser success; // required
15326
    private HelperServiceException hse; // required
1891 ankur.sing 15327
 
15328
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15329
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15330
      SUCCESS((short)0, "success"),
15331
      HSE((short)1, "hse");
15332
 
15333
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15334
 
15335
      static {
15336
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15337
          byName.put(field.getFieldName(), field);
15338
        }
15339
      }
15340
 
15341
      /**
15342
       * Find the _Fields constant that matches fieldId, or null if its not found.
15343
       */
15344
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15345
        switch(fieldId) {
15346
          case 0: // SUCCESS
15347
            return SUCCESS;
15348
          case 1: // HSE
15349
            return HSE;
15350
          default:
15351
            return null;
15352
        }
1891 ankur.sing 15353
      }
15354
 
15355
      /**
15356
       * Find the _Fields constant that matches fieldId, throwing an exception
15357
       * if it is not found.
15358
       */
15359
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15360
        _Fields fields = findByThriftId(fieldId);
15361
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15362
        return fields;
15363
      }
15364
 
15365
      /**
15366
       * Find the _Fields constant that matches name, or null if its not found.
15367
       */
15368
      public static _Fields findByName(String name) {
15369
        return byName.get(name);
15370
      }
15371
 
15372
      private final short _thriftId;
15373
      private final String _fieldName;
15374
 
15375
      _Fields(short thriftId, String fieldName) {
15376
        _thriftId = thriftId;
15377
        _fieldName = fieldName;
15378
      }
15379
 
15380
      public short getThriftFieldId() {
15381
        return _thriftId;
15382
      }
15383
 
15384
      public String getFieldName() {
15385
        return _fieldName;
15386
      }
15387
    }
15388
 
15389
    // isset id assignments
15390
 
3430 rajveer 15391
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15392
    static {
3430 rajveer 15393
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15394
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15395
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
15396
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15397
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
15398
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15399
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
1891 ankur.sing 15400
    }
15401
 
15402
    public authenticateReportUser_result() {
15403
    }
15404
 
15405
    public authenticateReportUser_result(
15406
      ReportUser success,
15407
      HelperServiceException hse)
15408
    {
15409
      this();
15410
      this.success = success;
15411
      this.hse = hse;
15412
    }
15413
 
15414
    /**
15415
     * Performs a deep copy on <i>other</i>.
15416
     */
15417
    public authenticateReportUser_result(authenticateReportUser_result other) {
15418
      if (other.isSetSuccess()) {
15419
        this.success = new ReportUser(other.success);
15420
      }
15421
      if (other.isSetHse()) {
15422
        this.hse = new HelperServiceException(other.hse);
15423
      }
15424
    }
15425
 
15426
    public authenticateReportUser_result deepCopy() {
15427
      return new authenticateReportUser_result(this);
15428
    }
15429
 
3430 rajveer 15430
    @Override
15431
    public void clear() {
15432
      this.success = null;
15433
      this.hse = null;
1891 ankur.sing 15434
    }
15435
 
15436
    public ReportUser getSuccess() {
15437
      return this.success;
15438
    }
15439
 
3430 rajveer 15440
    public void setSuccess(ReportUser success) {
1891 ankur.sing 15441
      this.success = success;
15442
    }
15443
 
15444
    public void unsetSuccess() {
15445
      this.success = null;
15446
    }
15447
 
3430 rajveer 15448
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15449
    public boolean isSetSuccess() {
15450
      return this.success != null;
15451
    }
15452
 
15453
    public void setSuccessIsSet(boolean value) {
15454
      if (!value) {
15455
        this.success = null;
15456
      }
15457
    }
15458
 
15459
    public HelperServiceException getHse() {
15460
      return this.hse;
15461
    }
15462
 
3430 rajveer 15463
    public void setHse(HelperServiceException hse) {
1891 ankur.sing 15464
      this.hse = hse;
15465
    }
15466
 
15467
    public void unsetHse() {
15468
      this.hse = null;
15469
    }
15470
 
3430 rajveer 15471
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15472
    public boolean isSetHse() {
15473
      return this.hse != null;
15474
    }
15475
 
15476
    public void setHseIsSet(boolean value) {
15477
      if (!value) {
15478
        this.hse = null;
15479
      }
15480
    }
15481
 
15482
    public void setFieldValue(_Fields field, Object value) {
15483
      switch (field) {
15484
      case SUCCESS:
15485
        if (value == null) {
15486
          unsetSuccess();
15487
        } else {
15488
          setSuccess((ReportUser)value);
15489
        }
15490
        break;
15491
 
15492
      case HSE:
15493
        if (value == null) {
15494
          unsetHse();
15495
        } else {
15496
          setHse((HelperServiceException)value);
15497
        }
15498
        break;
15499
 
15500
      }
15501
    }
15502
 
15503
    public Object getFieldValue(_Fields field) {
15504
      switch (field) {
15505
      case SUCCESS:
15506
        return getSuccess();
15507
 
15508
      case HSE:
15509
        return getHse();
15510
 
15511
      }
15512
      throw new IllegalStateException();
15513
    }
15514
 
3430 rajveer 15515
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15516
    public boolean isSet(_Fields field) {
15517
      if (field == null) {
15518
        throw new IllegalArgumentException();
15519
      }
1891 ankur.sing 15520
 
15521
      switch (field) {
15522
      case SUCCESS:
15523
        return isSetSuccess();
15524
      case HSE:
15525
        return isSetHse();
15526
      }
15527
      throw new IllegalStateException();
15528
    }
15529
 
15530
    @Override
15531
    public boolean equals(Object that) {
15532
      if (that == null)
15533
        return false;
15534
      if (that instanceof authenticateReportUser_result)
15535
        return this.equals((authenticateReportUser_result)that);
15536
      return false;
15537
    }
15538
 
15539
    public boolean equals(authenticateReportUser_result that) {
15540
      if (that == null)
15541
        return false;
15542
 
15543
      boolean this_present_success = true && this.isSetSuccess();
15544
      boolean that_present_success = true && that.isSetSuccess();
15545
      if (this_present_success || that_present_success) {
15546
        if (!(this_present_success && that_present_success))
15547
          return false;
15548
        if (!this.success.equals(that.success))
15549
          return false;
15550
      }
15551
 
15552
      boolean this_present_hse = true && this.isSetHse();
15553
      boolean that_present_hse = true && that.isSetHse();
15554
      if (this_present_hse || that_present_hse) {
15555
        if (!(this_present_hse && that_present_hse))
15556
          return false;
15557
        if (!this.hse.equals(that.hse))
15558
          return false;
15559
      }
15560
 
15561
      return true;
15562
    }
15563
 
15564
    @Override
15565
    public int hashCode() {
15566
      return 0;
15567
    }
15568
 
15569
    public int compareTo(authenticateReportUser_result other) {
15570
      if (!getClass().equals(other.getClass())) {
15571
        return getClass().getName().compareTo(other.getClass().getName());
15572
      }
15573
 
15574
      int lastComparison = 0;
15575
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
15576
 
3430 rajveer 15577
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 15578
      if (lastComparison != 0) {
15579
        return lastComparison;
15580
      }
3430 rajveer 15581
      if (isSetSuccess()) {
15582
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
15583
        if (lastComparison != 0) {
15584
          return lastComparison;
15585
        }
1891 ankur.sing 15586
      }
3430 rajveer 15587
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
1891 ankur.sing 15588
      if (lastComparison != 0) {
15589
        return lastComparison;
15590
      }
3430 rajveer 15591
      if (isSetHse()) {
15592
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
15593
        if (lastComparison != 0) {
15594
          return lastComparison;
15595
        }
1891 ankur.sing 15596
      }
15597
      return 0;
15598
    }
15599
 
3430 rajveer 15600
    public _Fields fieldForId(int fieldId) {
15601
      return _Fields.findByThriftId(fieldId);
15602
    }
15603
 
15604
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15605
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15606
      iprot.readStructBegin();
15607
      while (true)
15608
      {
15609
        field = iprot.readFieldBegin();
3430 rajveer 15610
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15611
          break;
15612
        }
3430 rajveer 15613
        switch (field.id) {
15614
          case 0: // SUCCESS
15615
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15616
              this.success = new ReportUser();
15617
              this.success.read(iprot);
15618
            } else { 
15619
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15620
            }
15621
            break;
15622
          case 1: // HSE
15623
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
15624
              this.hse = new HelperServiceException();
15625
              this.hse.read(iprot);
15626
            } else { 
15627
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15628
            }
15629
            break;
15630
          default:
15631
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15632
        }
3430 rajveer 15633
        iprot.readFieldEnd();
1891 ankur.sing 15634
      }
15635
      iprot.readStructEnd();
15636
      validate();
15637
    }
15638
 
3430 rajveer 15639
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15640
      oprot.writeStructBegin(STRUCT_DESC);
15641
 
15642
      if (this.isSetSuccess()) {
15643
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15644
        this.success.write(oprot);
15645
        oprot.writeFieldEnd();
15646
      } else if (this.isSetHse()) {
15647
        oprot.writeFieldBegin(HSE_FIELD_DESC);
15648
        this.hse.write(oprot);
15649
        oprot.writeFieldEnd();
15650
      }
15651
      oprot.writeFieldStop();
15652
      oprot.writeStructEnd();
15653
    }
15654
 
15655
    @Override
15656
    public String toString() {
15657
      StringBuilder sb = new StringBuilder("authenticateReportUser_result(");
15658
      boolean first = true;
15659
 
15660
      sb.append("success:");
15661
      if (this.success == null) {
15662
        sb.append("null");
15663
      } else {
15664
        sb.append(this.success);
15665
      }
15666
      first = false;
15667
      if (!first) sb.append(", ");
15668
      sb.append("hse:");
15669
      if (this.hse == null) {
15670
        sb.append("null");
15671
      } else {
15672
        sb.append(this.hse);
15673
      }
15674
      first = false;
15675
      sb.append(")");
15676
      return sb.toString();
15677
    }
15678
 
3430 rajveer 15679
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15680
      // check for required fields
15681
    }
15682
 
3430 rajveer 15683
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15684
      try {
15685
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15686
      } catch (org.apache.thrift.TException te) {
15687
        throw new java.io.IOException(te);
15688
      }
15689
    }
15690
 
15691
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15692
      try {
15693
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15694
      } catch (org.apache.thrift.TException te) {
15695
        throw new java.io.IOException(te);
15696
      }
15697
    }
15698
 
1891 ankur.sing 15699
  }
15700
 
3430 rajveer 15701
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
15702
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
1891 ankur.sing 15703
 
3430 rajveer 15704
    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 15705
 
3430 rajveer 15706
    private long role; // required
1891 ankur.sing 15707
 
15708
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 15709
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 15710
      ROLE((short)1, "role");
15711
 
15712
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
15713
 
15714
      static {
15715
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
15716
          byName.put(field.getFieldName(), field);
15717
        }
15718
      }
15719
 
15720
      /**
15721
       * Find the _Fields constant that matches fieldId, or null if its not found.
15722
       */
15723
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 15724
        switch(fieldId) {
15725
          case 1: // ROLE
15726
            return ROLE;
15727
          default:
15728
            return null;
15729
        }
1891 ankur.sing 15730
      }
15731
 
15732
      /**
15733
       * Find the _Fields constant that matches fieldId, throwing an exception
15734
       * if it is not found.
15735
       */
15736
      public static _Fields findByThriftIdOrThrow(int fieldId) {
15737
        _Fields fields = findByThriftId(fieldId);
15738
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
15739
        return fields;
15740
      }
15741
 
15742
      /**
15743
       * Find the _Fields constant that matches name, or null if its not found.
15744
       */
15745
      public static _Fields findByName(String name) {
15746
        return byName.get(name);
15747
      }
15748
 
15749
      private final short _thriftId;
15750
      private final String _fieldName;
15751
 
15752
      _Fields(short thriftId, String fieldName) {
15753
        _thriftId = thriftId;
15754
        _fieldName = fieldName;
15755
      }
15756
 
15757
      public short getThriftFieldId() {
15758
        return _thriftId;
15759
      }
15760
 
15761
      public String getFieldName() {
15762
        return _fieldName;
15763
      }
15764
    }
15765
 
15766
    // isset id assignments
15767
    private static final int __ROLE_ISSET_ID = 0;
15768
    private BitSet __isset_bit_vector = new BitSet(1);
15769
 
3430 rajveer 15770
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 15771
    static {
3430 rajveer 15772
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
15773
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
15774
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
15775
      metaDataMap = Collections.unmodifiableMap(tmpMap);
15776
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
1891 ankur.sing 15777
    }
15778
 
15779
    public getReports_args() {
15780
    }
15781
 
15782
    public getReports_args(
15783
      long role)
15784
    {
15785
      this();
15786
      this.role = role;
15787
      setRoleIsSet(true);
15788
    }
15789
 
15790
    /**
15791
     * Performs a deep copy on <i>other</i>.
15792
     */
15793
    public getReports_args(getReports_args other) {
15794
      __isset_bit_vector.clear();
15795
      __isset_bit_vector.or(other.__isset_bit_vector);
15796
      this.role = other.role;
15797
    }
15798
 
15799
    public getReports_args deepCopy() {
15800
      return new getReports_args(this);
15801
    }
15802
 
3430 rajveer 15803
    @Override
15804
    public void clear() {
15805
      setRoleIsSet(false);
15806
      this.role = 0;
1891 ankur.sing 15807
    }
15808
 
15809
    public long getRole() {
15810
      return this.role;
15811
    }
15812
 
3430 rajveer 15813
    public void setRole(long role) {
1891 ankur.sing 15814
      this.role = role;
15815
      setRoleIsSet(true);
15816
    }
15817
 
15818
    public void unsetRole() {
15819
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
15820
    }
15821
 
3430 rajveer 15822
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
1891 ankur.sing 15823
    public boolean isSetRole() {
15824
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
15825
    }
15826
 
15827
    public void setRoleIsSet(boolean value) {
15828
      __isset_bit_vector.set(__ROLE_ISSET_ID, value);
15829
    }
15830
 
15831
    public void setFieldValue(_Fields field, Object value) {
15832
      switch (field) {
15833
      case ROLE:
15834
        if (value == null) {
15835
          unsetRole();
15836
        } else {
15837
          setRole((Long)value);
15838
        }
15839
        break;
15840
 
15841
      }
15842
    }
15843
 
15844
    public Object getFieldValue(_Fields field) {
15845
      switch (field) {
15846
      case ROLE:
3430 rajveer 15847
        return Long.valueOf(getRole());
1891 ankur.sing 15848
 
15849
      }
15850
      throw new IllegalStateException();
15851
    }
15852
 
3430 rajveer 15853
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
15854
    public boolean isSet(_Fields field) {
15855
      if (field == null) {
15856
        throw new IllegalArgumentException();
15857
      }
1891 ankur.sing 15858
 
15859
      switch (field) {
15860
      case ROLE:
15861
        return isSetRole();
15862
      }
15863
      throw new IllegalStateException();
15864
    }
15865
 
15866
    @Override
15867
    public boolean equals(Object that) {
15868
      if (that == null)
15869
        return false;
15870
      if (that instanceof getReports_args)
15871
        return this.equals((getReports_args)that);
15872
      return false;
15873
    }
15874
 
15875
    public boolean equals(getReports_args that) {
15876
      if (that == null)
15877
        return false;
15878
 
15879
      boolean this_present_role = true;
15880
      boolean that_present_role = true;
15881
      if (this_present_role || that_present_role) {
15882
        if (!(this_present_role && that_present_role))
15883
          return false;
15884
        if (this.role != that.role)
15885
          return false;
15886
      }
15887
 
15888
      return true;
15889
    }
15890
 
15891
    @Override
15892
    public int hashCode() {
15893
      return 0;
15894
    }
15895
 
15896
    public int compareTo(getReports_args other) {
15897
      if (!getClass().equals(other.getClass())) {
15898
        return getClass().getName().compareTo(other.getClass().getName());
15899
      }
15900
 
15901
      int lastComparison = 0;
15902
      getReports_args typedOther = (getReports_args)other;
15903
 
3430 rajveer 15904
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
1891 ankur.sing 15905
      if (lastComparison != 0) {
15906
        return lastComparison;
15907
      }
3430 rajveer 15908
      if (isSetRole()) {
15909
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
15910
        if (lastComparison != 0) {
15911
          return lastComparison;
15912
        }
1891 ankur.sing 15913
      }
15914
      return 0;
15915
    }
15916
 
3430 rajveer 15917
    public _Fields fieldForId(int fieldId) {
15918
      return _Fields.findByThriftId(fieldId);
15919
    }
15920
 
15921
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
15922
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 15923
      iprot.readStructBegin();
15924
      while (true)
15925
      {
15926
        field = iprot.readFieldBegin();
3430 rajveer 15927
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 15928
          break;
15929
        }
3430 rajveer 15930
        switch (field.id) {
15931
          case 1: // ROLE
15932
            if (field.type == org.apache.thrift.protocol.TType.I64) {
15933
              this.role = iprot.readI64();
15934
              setRoleIsSet(true);
15935
            } else { 
15936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
15937
            }
15938
            break;
15939
          default:
15940
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 15941
        }
3430 rajveer 15942
        iprot.readFieldEnd();
1891 ankur.sing 15943
      }
15944
      iprot.readStructEnd();
15945
      validate();
15946
    }
15947
 
3430 rajveer 15948
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 15949
      validate();
15950
 
15951
      oprot.writeStructBegin(STRUCT_DESC);
15952
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
15953
      oprot.writeI64(this.role);
15954
      oprot.writeFieldEnd();
15955
      oprot.writeFieldStop();
15956
      oprot.writeStructEnd();
15957
    }
15958
 
15959
    @Override
15960
    public String toString() {
15961
      StringBuilder sb = new StringBuilder("getReports_args(");
15962
      boolean first = true;
15963
 
15964
      sb.append("role:");
15965
      sb.append(this.role);
15966
      first = false;
15967
      sb.append(")");
15968
      return sb.toString();
15969
    }
15970
 
3430 rajveer 15971
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 15972
      // check for required fields
15973
    }
15974
 
3430 rajveer 15975
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
15976
      try {
15977
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
15978
      } catch (org.apache.thrift.TException te) {
15979
        throw new java.io.IOException(te);
15980
      }
15981
    }
15982
 
15983
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
15984
      try {
15985
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
15986
        __isset_bit_vector = new BitSet(1);
15987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
15988
      } catch (org.apache.thrift.TException te) {
15989
        throw new java.io.IOException(te);
15990
      }
15991
    }
15992
 
1891 ankur.sing 15993
  }
15994
 
3430 rajveer 15995
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
15996
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
1891 ankur.sing 15997
 
3430 rajveer 15998
    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 15999
 
3430 rajveer 16000
    private List<Report> success; // required
1891 ankur.sing 16001
 
16002
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16003
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1891 ankur.sing 16004
      SUCCESS((short)0, "success");
16005
 
16006
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16007
 
16008
      static {
16009
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16010
          byName.put(field.getFieldName(), field);
16011
        }
16012
      }
16013
 
16014
      /**
16015
       * Find the _Fields constant that matches fieldId, or null if its not found.
16016
       */
16017
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16018
        switch(fieldId) {
16019
          case 0: // SUCCESS
16020
            return SUCCESS;
16021
          default:
16022
            return null;
16023
        }
1891 ankur.sing 16024
      }
16025
 
16026
      /**
16027
       * Find the _Fields constant that matches fieldId, throwing an exception
16028
       * if it is not found.
16029
       */
16030
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16031
        _Fields fields = findByThriftId(fieldId);
16032
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16033
        return fields;
16034
      }
16035
 
16036
      /**
16037
       * Find the _Fields constant that matches name, or null if its not found.
16038
       */
16039
      public static _Fields findByName(String name) {
16040
        return byName.get(name);
16041
      }
16042
 
16043
      private final short _thriftId;
16044
      private final String _fieldName;
16045
 
16046
      _Fields(short thriftId, String fieldName) {
16047
        _thriftId = thriftId;
16048
        _fieldName = fieldName;
16049
      }
16050
 
16051
      public short getThriftFieldId() {
16052
        return _thriftId;
16053
      }
16054
 
16055
      public String getFieldName() {
16056
        return _fieldName;
16057
      }
16058
    }
16059
 
16060
    // isset id assignments
16061
 
3430 rajveer 16062
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1891 ankur.sing 16063
    static {
3430 rajveer 16064
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16065
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16066
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
16067
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
16068
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16069
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
1891 ankur.sing 16070
    }
16071
 
16072
    public getReports_result() {
16073
    }
16074
 
16075
    public getReports_result(
16076
      List<Report> success)
16077
    {
16078
      this();
16079
      this.success = success;
16080
    }
16081
 
16082
    /**
16083
     * Performs a deep copy on <i>other</i>.
16084
     */
16085
    public getReports_result(getReports_result other) {
16086
      if (other.isSetSuccess()) {
16087
        List<Report> __this__success = new ArrayList<Report>();
16088
        for (Report other_element : other.success) {
16089
          __this__success.add(new Report(other_element));
16090
        }
16091
        this.success = __this__success;
16092
      }
16093
    }
16094
 
16095
    public getReports_result deepCopy() {
16096
      return new getReports_result(this);
16097
    }
16098
 
3430 rajveer 16099
    @Override
16100
    public void clear() {
16101
      this.success = null;
1891 ankur.sing 16102
    }
16103
 
16104
    public int getSuccessSize() {
16105
      return (this.success == null) ? 0 : this.success.size();
16106
    }
16107
 
16108
    public java.util.Iterator<Report> getSuccessIterator() {
16109
      return (this.success == null) ? null : this.success.iterator();
16110
    }
16111
 
16112
    public void addToSuccess(Report elem) {
16113
      if (this.success == null) {
16114
        this.success = new ArrayList<Report>();
16115
      }
16116
      this.success.add(elem);
16117
    }
16118
 
16119
    public List<Report> getSuccess() {
16120
      return this.success;
16121
    }
16122
 
3430 rajveer 16123
    public void setSuccess(List<Report> success) {
1891 ankur.sing 16124
      this.success = success;
16125
    }
16126
 
16127
    public void unsetSuccess() {
16128
      this.success = null;
16129
    }
16130
 
3430 rajveer 16131
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1891 ankur.sing 16132
    public boolean isSetSuccess() {
16133
      return this.success != null;
16134
    }
16135
 
16136
    public void setSuccessIsSet(boolean value) {
16137
      if (!value) {
16138
        this.success = null;
16139
      }
16140
    }
16141
 
16142
    public void setFieldValue(_Fields field, Object value) {
16143
      switch (field) {
16144
      case SUCCESS:
16145
        if (value == null) {
16146
          unsetSuccess();
16147
        } else {
16148
          setSuccess((List<Report>)value);
16149
        }
16150
        break;
16151
 
16152
      }
16153
    }
16154
 
16155
    public Object getFieldValue(_Fields field) {
16156
      switch (field) {
16157
      case SUCCESS:
16158
        return getSuccess();
16159
 
16160
      }
16161
      throw new IllegalStateException();
16162
    }
16163
 
3430 rajveer 16164
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16165
    public boolean isSet(_Fields field) {
16166
      if (field == null) {
16167
        throw new IllegalArgumentException();
16168
      }
1891 ankur.sing 16169
 
16170
      switch (field) {
16171
      case SUCCESS:
16172
        return isSetSuccess();
16173
      }
16174
      throw new IllegalStateException();
16175
    }
16176
 
16177
    @Override
16178
    public boolean equals(Object that) {
16179
      if (that == null)
16180
        return false;
16181
      if (that instanceof getReports_result)
16182
        return this.equals((getReports_result)that);
16183
      return false;
16184
    }
16185
 
16186
    public boolean equals(getReports_result that) {
16187
      if (that == null)
16188
        return false;
16189
 
16190
      boolean this_present_success = true && this.isSetSuccess();
16191
      boolean that_present_success = true && that.isSetSuccess();
16192
      if (this_present_success || that_present_success) {
16193
        if (!(this_present_success && that_present_success))
16194
          return false;
16195
        if (!this.success.equals(that.success))
16196
          return false;
16197
      }
16198
 
16199
      return true;
16200
    }
16201
 
16202
    @Override
16203
    public int hashCode() {
16204
      return 0;
16205
    }
16206
 
16207
    public int compareTo(getReports_result other) {
16208
      if (!getClass().equals(other.getClass())) {
16209
        return getClass().getName().compareTo(other.getClass().getName());
16210
      }
16211
 
16212
      int lastComparison = 0;
16213
      getReports_result typedOther = (getReports_result)other;
16214
 
3430 rajveer 16215
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1891 ankur.sing 16216
      if (lastComparison != 0) {
16217
        return lastComparison;
16218
      }
3430 rajveer 16219
      if (isSetSuccess()) {
16220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16221
        if (lastComparison != 0) {
16222
          return lastComparison;
16223
        }
1891 ankur.sing 16224
      }
16225
      return 0;
16226
    }
16227
 
3430 rajveer 16228
    public _Fields fieldForId(int fieldId) {
16229
      return _Fields.findByThriftId(fieldId);
16230
    }
16231
 
16232
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16233
      org.apache.thrift.protocol.TField field;
1891 ankur.sing 16234
      iprot.readStructBegin();
16235
      while (true)
16236
      {
16237
        field = iprot.readFieldBegin();
3430 rajveer 16238
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1891 ankur.sing 16239
          break;
16240
        }
3430 rajveer 16241
        switch (field.id) {
16242
          case 0: // SUCCESS
16243
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
16244
              {
5864 rajveer 16245
                org.apache.thrift.protocol.TList _list41 = iprot.readListBegin();
16246
                this.success = new ArrayList<Report>(_list41.size);
16247
                for (int _i42 = 0; _i42 < _list41.size; ++_i42)
1891 ankur.sing 16248
                {
5864 rajveer 16249
                  Report _elem43; // required
16250
                  _elem43 = new Report();
16251
                  _elem43.read(iprot);
16252
                  this.success.add(_elem43);
1891 ankur.sing 16253
                }
3430 rajveer 16254
                iprot.readListEnd();
1891 ankur.sing 16255
              }
3430 rajveer 16256
            } else { 
16257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16258
            }
16259
            break;
16260
          default:
16261
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891 ankur.sing 16262
        }
3430 rajveer 16263
        iprot.readFieldEnd();
1891 ankur.sing 16264
      }
16265
      iprot.readStructEnd();
16266
      validate();
16267
    }
16268
 
3430 rajveer 16269
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1891 ankur.sing 16270
      oprot.writeStructBegin(STRUCT_DESC);
16271
 
16272
      if (this.isSetSuccess()) {
16273
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16274
        {
3430 rajveer 16275
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 16276
          for (Report _iter44 : this.success)
1891 ankur.sing 16277
          {
5864 rajveer 16278
            _iter44.write(oprot);
1891 ankur.sing 16279
          }
16280
          oprot.writeListEnd();
16281
        }
16282
        oprot.writeFieldEnd();
16283
      }
16284
      oprot.writeFieldStop();
16285
      oprot.writeStructEnd();
16286
    }
16287
 
16288
    @Override
16289
    public String toString() {
16290
      StringBuilder sb = new StringBuilder("getReports_result(");
16291
      boolean first = true;
16292
 
16293
      sb.append("success:");
16294
      if (this.success == null) {
16295
        sb.append("null");
16296
      } else {
16297
        sb.append(this.success);
16298
      }
16299
      first = false;
16300
      sb.append(")");
16301
      return sb.toString();
16302
    }
16303
 
3430 rajveer 16304
    public void validate() throws org.apache.thrift.TException {
1891 ankur.sing 16305
      // check for required fields
16306
    }
16307
 
3430 rajveer 16308
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16309
      try {
16310
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16311
      } catch (org.apache.thrift.TException te) {
16312
        throw new java.io.IOException(te);
16313
      }
16314
    }
16315
 
16316
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16317
      try {
16318
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16319
      } catch (org.apache.thrift.TException te) {
16320
        throw new java.io.IOException(te);
16321
      }
16322
    }
16323
 
1891 ankur.sing 16324
  }
16325
 
3430 rajveer 16326
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
16327
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
2024 ankur.sing 16328
 
3430 rajveer 16329
    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);
16330
    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 16331
 
3430 rajveer 16332
    private String username; // required
16333
    private String password; // required
2024 ankur.sing 16334
 
16335
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16336
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 16337
      USERNAME((short)1, "username"),
6788 rajveer 16338
      PASSWORD((short)2, "password");
2024 ankur.sing 16339
 
16340
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16341
 
16342
      static {
16343
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16344
          byName.put(field.getFieldName(), field);
16345
        }
16346
      }
16347
 
16348
      /**
16349
       * Find the _Fields constant that matches fieldId, or null if its not found.
16350
       */
16351
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16352
        switch(fieldId) {
16353
          case 1: // USERNAME
16354
            return USERNAME;
16355
          case 2: // PASSWORD
16356
            return PASSWORD;
16357
          default:
16358
            return null;
16359
        }
2024 ankur.sing 16360
      }
16361
 
16362
      /**
16363
       * Find the _Fields constant that matches fieldId, throwing an exception
16364
       * if it is not found.
16365
       */
16366
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16367
        _Fields fields = findByThriftId(fieldId);
16368
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16369
        return fields;
16370
      }
16371
 
16372
      /**
16373
       * Find the _Fields constant that matches name, or null if its not found.
16374
       */
16375
      public static _Fields findByName(String name) {
16376
        return byName.get(name);
16377
      }
16378
 
16379
      private final short _thriftId;
16380
      private final String _fieldName;
16381
 
16382
      _Fields(short thriftId, String fieldName) {
16383
        _thriftId = thriftId;
16384
        _fieldName = fieldName;
16385
      }
16386
 
16387
      public short getThriftFieldId() {
16388
        return _thriftId;
16389
      }
16390
 
16391
      public String getFieldName() {
16392
        return _fieldName;
16393
      }
16394
    }
16395
 
16396
    // isset id assignments
16397
 
3430 rajveer 16398
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 16399
    static {
3430 rajveer 16400
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16401
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16402
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16403
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16404
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
16405
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16406
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
2024 ankur.sing 16407
    }
16408
 
16409
    public authenticateCatalogUser_args() {
16410
    }
16411
 
16412
    public authenticateCatalogUser_args(
16413
      String username,
6788 rajveer 16414
      String password)
2024 ankur.sing 16415
    {
16416
      this();
16417
      this.username = username;
16418
      this.password = password;
16419
    }
16420
 
16421
    /**
16422
     * Performs a deep copy on <i>other</i>.
16423
     */
16424
    public authenticateCatalogUser_args(authenticateCatalogUser_args other) {
16425
      if (other.isSetUsername()) {
16426
        this.username = other.username;
16427
      }
16428
      if (other.isSetPassword()) {
16429
        this.password = other.password;
16430
      }
16431
    }
16432
 
16433
    public authenticateCatalogUser_args deepCopy() {
16434
      return new authenticateCatalogUser_args(this);
16435
    }
16436
 
3430 rajveer 16437
    @Override
16438
    public void clear() {
16439
      this.username = null;
16440
      this.password = null;
2024 ankur.sing 16441
    }
16442
 
16443
    public String getUsername() {
16444
      return this.username;
16445
    }
16446
 
3430 rajveer 16447
    public void setUsername(String username) {
2024 ankur.sing 16448
      this.username = username;
16449
    }
16450
 
16451
    public void unsetUsername() {
16452
      this.username = null;
16453
    }
16454
 
3430 rajveer 16455
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16456
    public boolean isSetUsername() {
16457
      return this.username != null;
16458
    }
16459
 
16460
    public void setUsernameIsSet(boolean value) {
16461
      if (!value) {
16462
        this.username = null;
16463
      }
16464
    }
16465
 
16466
    public String getPassword() {
16467
      return this.password;
16468
    }
16469
 
3430 rajveer 16470
    public void setPassword(String password) {
2024 ankur.sing 16471
      this.password = password;
16472
    }
16473
 
16474
    public void unsetPassword() {
16475
      this.password = null;
16476
    }
16477
 
3430 rajveer 16478
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16479
    public boolean isSetPassword() {
16480
      return this.password != null;
16481
    }
16482
 
16483
    public void setPasswordIsSet(boolean value) {
16484
      if (!value) {
16485
        this.password = null;
16486
      }
16487
    }
16488
 
16489
    public void setFieldValue(_Fields field, Object value) {
16490
      switch (field) {
16491
      case USERNAME:
16492
        if (value == null) {
16493
          unsetUsername();
16494
        } else {
16495
          setUsername((String)value);
16496
        }
16497
        break;
16498
 
16499
      case PASSWORD:
16500
        if (value == null) {
16501
          unsetPassword();
16502
        } else {
16503
          setPassword((String)value);
16504
        }
16505
        break;
16506
 
16507
      }
16508
    }
16509
 
16510
    public Object getFieldValue(_Fields field) {
16511
      switch (field) {
16512
      case USERNAME:
16513
        return getUsername();
16514
 
16515
      case PASSWORD:
16516
        return getPassword();
16517
 
16518
      }
16519
      throw new IllegalStateException();
16520
    }
16521
 
3430 rajveer 16522
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16523
    public boolean isSet(_Fields field) {
16524
      if (field == null) {
16525
        throw new IllegalArgumentException();
16526
      }
2024 ankur.sing 16527
 
16528
      switch (field) {
16529
      case USERNAME:
16530
        return isSetUsername();
16531
      case PASSWORD:
16532
        return isSetPassword();
16533
      }
16534
      throw new IllegalStateException();
16535
    }
16536
 
16537
    @Override
16538
    public boolean equals(Object that) {
16539
      if (that == null)
16540
        return false;
16541
      if (that instanceof authenticateCatalogUser_args)
16542
        return this.equals((authenticateCatalogUser_args)that);
16543
      return false;
16544
    }
16545
 
16546
    public boolean equals(authenticateCatalogUser_args that) {
16547
      if (that == null)
16548
        return false;
16549
 
16550
      boolean this_present_username = true && this.isSetUsername();
16551
      boolean that_present_username = true && that.isSetUsername();
16552
      if (this_present_username || that_present_username) {
16553
        if (!(this_present_username && that_present_username))
16554
          return false;
16555
        if (!this.username.equals(that.username))
16556
          return false;
16557
      }
16558
 
16559
      boolean this_present_password = true && this.isSetPassword();
16560
      boolean that_present_password = true && that.isSetPassword();
16561
      if (this_present_password || that_present_password) {
16562
        if (!(this_present_password && that_present_password))
16563
          return false;
16564
        if (!this.password.equals(that.password))
16565
          return false;
16566
      }
16567
 
16568
      return true;
16569
    }
16570
 
16571
    @Override
16572
    public int hashCode() {
16573
      return 0;
16574
    }
16575
 
16576
    public int compareTo(authenticateCatalogUser_args other) {
16577
      if (!getClass().equals(other.getClass())) {
16578
        return getClass().getName().compareTo(other.getClass().getName());
16579
      }
16580
 
16581
      int lastComparison = 0;
16582
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
16583
 
3430 rajveer 16584
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
2024 ankur.sing 16585
      if (lastComparison != 0) {
16586
        return lastComparison;
16587
      }
3430 rajveer 16588
      if (isSetUsername()) {
16589
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
16590
        if (lastComparison != 0) {
16591
          return lastComparison;
16592
        }
2024 ankur.sing 16593
      }
3430 rajveer 16594
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
2024 ankur.sing 16595
      if (lastComparison != 0) {
16596
        return lastComparison;
16597
      }
3430 rajveer 16598
      if (isSetPassword()) {
16599
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
16600
        if (lastComparison != 0) {
16601
          return lastComparison;
16602
        }
2024 ankur.sing 16603
      }
16604
      return 0;
16605
    }
16606
 
3430 rajveer 16607
    public _Fields fieldForId(int fieldId) {
16608
      return _Fields.findByThriftId(fieldId);
16609
    }
16610
 
16611
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16612
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 16613
      iprot.readStructBegin();
16614
      while (true)
16615
      {
16616
        field = iprot.readFieldBegin();
3430 rajveer 16617
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 16618
          break;
16619
        }
3430 rajveer 16620
        switch (field.id) {
16621
          case 1: // USERNAME
16622
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16623
              this.username = iprot.readString();
16624
            } else { 
16625
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16626
            }
16627
            break;
16628
          case 2: // PASSWORD
16629
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
16630
              this.password = iprot.readString();
16631
            } else { 
16632
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
16633
            }
16634
            break;
16635
          default:
16636
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 16637
        }
3430 rajveer 16638
        iprot.readFieldEnd();
2024 ankur.sing 16639
      }
16640
      iprot.readStructEnd();
16641
      validate();
16642
    }
16643
 
3430 rajveer 16644
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 16645
      validate();
16646
 
16647
      oprot.writeStructBegin(STRUCT_DESC);
16648
      if (this.username != null) {
16649
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
16650
        oprot.writeString(this.username);
16651
        oprot.writeFieldEnd();
16652
      }
16653
      if (this.password != null) {
16654
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
16655
        oprot.writeString(this.password);
16656
        oprot.writeFieldEnd();
16657
      }
16658
      oprot.writeFieldStop();
16659
      oprot.writeStructEnd();
16660
    }
16661
 
16662
    @Override
16663
    public String toString() {
16664
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_args(");
16665
      boolean first = true;
16666
 
16667
      sb.append("username:");
16668
      if (this.username == null) {
16669
        sb.append("null");
16670
      } else {
16671
        sb.append(this.username);
16672
      }
16673
      first = false;
16674
      if (!first) sb.append(", ");
16675
      sb.append("password:");
16676
      if (this.password == null) {
16677
        sb.append("null");
16678
      } else {
16679
        sb.append(this.password);
16680
      }
16681
      first = false;
16682
      sb.append(")");
16683
      return sb.toString();
16684
    }
16685
 
3430 rajveer 16686
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 16687
      // check for required fields
16688
    }
16689
 
3430 rajveer 16690
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
16691
      try {
16692
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
16693
      } catch (org.apache.thrift.TException te) {
16694
        throw new java.io.IOException(te);
16695
      }
16696
    }
16697
 
16698
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
16699
      try {
16700
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
16701
      } catch (org.apache.thrift.TException te) {
16702
        throw new java.io.IOException(te);
16703
      }
16704
    }
16705
 
2024 ankur.sing 16706
  }
16707
 
3430 rajveer 16708
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
16709
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
2024 ankur.sing 16710
 
3430 rajveer 16711
    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);
16712
    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 16713
 
3430 rajveer 16714
    private CatalogDashboardUser success; // required
16715
    private HelperServiceException hse; // required
2024 ankur.sing 16716
 
16717
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 16718
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2024 ankur.sing 16719
      SUCCESS((short)0, "success"),
16720
      HSE((short)1, "hse");
16721
 
16722
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
16723
 
16724
      static {
16725
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
16726
          byName.put(field.getFieldName(), field);
16727
        }
16728
      }
16729
 
16730
      /**
16731
       * Find the _Fields constant that matches fieldId, or null if its not found.
16732
       */
16733
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 16734
        switch(fieldId) {
16735
          case 0: // SUCCESS
16736
            return SUCCESS;
16737
          case 1: // HSE
16738
            return HSE;
16739
          default:
16740
            return null;
16741
        }
2024 ankur.sing 16742
      }
16743
 
16744
      /**
16745
       * Find the _Fields constant that matches fieldId, throwing an exception
16746
       * if it is not found.
16747
       */
16748
      public static _Fields findByThriftIdOrThrow(int fieldId) {
16749
        _Fields fields = findByThriftId(fieldId);
16750
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
16751
        return fields;
16752
      }
16753
 
16754
      /**
16755
       * Find the _Fields constant that matches name, or null if its not found.
16756
       */
16757
      public static _Fields findByName(String name) {
16758
        return byName.get(name);
16759
      }
16760
 
16761
      private final short _thriftId;
16762
      private final String _fieldName;
16763
 
16764
      _Fields(short thriftId, String fieldName) {
16765
        _thriftId = thriftId;
16766
        _fieldName = fieldName;
16767
      }
16768
 
16769
      public short getThriftFieldId() {
16770
        return _thriftId;
16771
      }
16772
 
16773
      public String getFieldName() {
16774
        return _fieldName;
16775
      }
16776
    }
16777
 
16778
    // isset id assignments
16779
 
3430 rajveer 16780
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2024 ankur.sing 16781
    static {
3430 rajveer 16782
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
16783
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16784
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
16785
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
16786
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
16787
      metaDataMap = Collections.unmodifiableMap(tmpMap);
16788
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
2024 ankur.sing 16789
    }
16790
 
16791
    public authenticateCatalogUser_result() {
16792
    }
16793
 
16794
    public authenticateCatalogUser_result(
16795
      CatalogDashboardUser success,
16796
      HelperServiceException hse)
16797
    {
16798
      this();
16799
      this.success = success;
16800
      this.hse = hse;
16801
    }
16802
 
16803
    /**
16804
     * Performs a deep copy on <i>other</i>.
16805
     */
16806
    public authenticateCatalogUser_result(authenticateCatalogUser_result other) {
16807
      if (other.isSetSuccess()) {
16808
        this.success = new CatalogDashboardUser(other.success);
16809
      }
16810
      if (other.isSetHse()) {
16811
        this.hse = new HelperServiceException(other.hse);
16812
      }
16813
    }
16814
 
16815
    public authenticateCatalogUser_result deepCopy() {
16816
      return new authenticateCatalogUser_result(this);
16817
    }
16818
 
3430 rajveer 16819
    @Override
16820
    public void clear() {
16821
      this.success = null;
16822
      this.hse = null;
2024 ankur.sing 16823
    }
16824
 
16825
    public CatalogDashboardUser getSuccess() {
16826
      return this.success;
16827
    }
16828
 
3430 rajveer 16829
    public void setSuccess(CatalogDashboardUser success) {
2024 ankur.sing 16830
      this.success = success;
16831
    }
16832
 
16833
    public void unsetSuccess() {
16834
      this.success = null;
16835
    }
16836
 
3430 rajveer 16837
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16838
    public boolean isSetSuccess() {
16839
      return this.success != null;
16840
    }
16841
 
16842
    public void setSuccessIsSet(boolean value) {
16843
      if (!value) {
16844
        this.success = null;
16845
      }
16846
    }
16847
 
16848
    public HelperServiceException getHse() {
16849
      return this.hse;
16850
    }
16851
 
3430 rajveer 16852
    public void setHse(HelperServiceException hse) {
2024 ankur.sing 16853
      this.hse = hse;
16854
    }
16855
 
16856
    public void unsetHse() {
16857
      this.hse = null;
16858
    }
16859
 
3430 rajveer 16860
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
2024 ankur.sing 16861
    public boolean isSetHse() {
16862
      return this.hse != null;
16863
    }
16864
 
16865
    public void setHseIsSet(boolean value) {
16866
      if (!value) {
16867
        this.hse = null;
16868
      }
16869
    }
16870
 
16871
    public void setFieldValue(_Fields field, Object value) {
16872
      switch (field) {
16873
      case SUCCESS:
16874
        if (value == null) {
16875
          unsetSuccess();
16876
        } else {
16877
          setSuccess((CatalogDashboardUser)value);
16878
        }
16879
        break;
16880
 
16881
      case HSE:
16882
        if (value == null) {
16883
          unsetHse();
16884
        } else {
16885
          setHse((HelperServiceException)value);
16886
        }
16887
        break;
16888
 
16889
      }
16890
    }
16891
 
16892
    public Object getFieldValue(_Fields field) {
16893
      switch (field) {
16894
      case SUCCESS:
16895
        return getSuccess();
16896
 
16897
      case HSE:
16898
        return getHse();
16899
 
16900
      }
16901
      throw new IllegalStateException();
16902
    }
16903
 
3430 rajveer 16904
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
16905
    public boolean isSet(_Fields field) {
16906
      if (field == null) {
16907
        throw new IllegalArgumentException();
16908
      }
2024 ankur.sing 16909
 
16910
      switch (field) {
16911
      case SUCCESS:
16912
        return isSetSuccess();
16913
      case HSE:
16914
        return isSetHse();
16915
      }
16916
      throw new IllegalStateException();
16917
    }
16918
 
16919
    @Override
16920
    public boolean equals(Object that) {
16921
      if (that == null)
16922
        return false;
16923
      if (that instanceof authenticateCatalogUser_result)
16924
        return this.equals((authenticateCatalogUser_result)that);
16925
      return false;
16926
    }
16927
 
16928
    public boolean equals(authenticateCatalogUser_result that) {
16929
      if (that == null)
16930
        return false;
16931
 
16932
      boolean this_present_success = true && this.isSetSuccess();
16933
      boolean that_present_success = true && that.isSetSuccess();
16934
      if (this_present_success || that_present_success) {
16935
        if (!(this_present_success && that_present_success))
16936
          return false;
16937
        if (!this.success.equals(that.success))
16938
          return false;
16939
      }
16940
 
16941
      boolean this_present_hse = true && this.isSetHse();
16942
      boolean that_present_hse = true && that.isSetHse();
16943
      if (this_present_hse || that_present_hse) {
16944
        if (!(this_present_hse && that_present_hse))
16945
          return false;
16946
        if (!this.hse.equals(that.hse))
16947
          return false;
16948
      }
16949
 
16950
      return true;
16951
    }
16952
 
16953
    @Override
16954
    public int hashCode() {
16955
      return 0;
16956
    }
16957
 
16958
    public int compareTo(authenticateCatalogUser_result other) {
16959
      if (!getClass().equals(other.getClass())) {
16960
        return getClass().getName().compareTo(other.getClass().getName());
16961
      }
16962
 
16963
      int lastComparison = 0;
16964
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
16965
 
3430 rajveer 16966
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2024 ankur.sing 16967
      if (lastComparison != 0) {
16968
        return lastComparison;
16969
      }
3430 rajveer 16970
      if (isSetSuccess()) {
16971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
16972
        if (lastComparison != 0) {
16973
          return lastComparison;
16974
        }
2024 ankur.sing 16975
      }
3430 rajveer 16976
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
2024 ankur.sing 16977
      if (lastComparison != 0) {
16978
        return lastComparison;
16979
      }
3430 rajveer 16980
      if (isSetHse()) {
16981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
16982
        if (lastComparison != 0) {
16983
          return lastComparison;
16984
        }
2024 ankur.sing 16985
      }
16986
      return 0;
16987
    }
16988
 
3430 rajveer 16989
    public _Fields fieldForId(int fieldId) {
16990
      return _Fields.findByThriftId(fieldId);
16991
    }
16992
 
16993
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
16994
      org.apache.thrift.protocol.TField field;
2024 ankur.sing 16995
      iprot.readStructBegin();
16996
      while (true)
16997
      {
16998
        field = iprot.readFieldBegin();
3430 rajveer 16999
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2024 ankur.sing 17000
          break;
17001
        }
3430 rajveer 17002
        switch (field.id) {
17003
          case 0: // SUCCESS
17004
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17005
              this.success = new CatalogDashboardUser();
17006
              this.success.read(iprot);
17007
            } else { 
17008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17009
            }
17010
            break;
17011
          case 1: // HSE
17012
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17013
              this.hse = new HelperServiceException();
17014
              this.hse.read(iprot);
17015
            } else { 
17016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17017
            }
17018
            break;
17019
          default:
17020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2024 ankur.sing 17021
        }
3430 rajveer 17022
        iprot.readFieldEnd();
2024 ankur.sing 17023
      }
17024
      iprot.readStructEnd();
17025
      validate();
17026
    }
17027
 
3430 rajveer 17028
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2024 ankur.sing 17029
      oprot.writeStructBegin(STRUCT_DESC);
17030
 
17031
      if (this.isSetSuccess()) {
17032
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17033
        this.success.write(oprot);
17034
        oprot.writeFieldEnd();
17035
      } else if (this.isSetHse()) {
17036
        oprot.writeFieldBegin(HSE_FIELD_DESC);
17037
        this.hse.write(oprot);
17038
        oprot.writeFieldEnd();
17039
      }
17040
      oprot.writeFieldStop();
17041
      oprot.writeStructEnd();
17042
    }
17043
 
17044
    @Override
17045
    public String toString() {
17046
      StringBuilder sb = new StringBuilder("authenticateCatalogUser_result(");
17047
      boolean first = true;
17048
 
17049
      sb.append("success:");
17050
      if (this.success == null) {
17051
        sb.append("null");
17052
      } else {
17053
        sb.append(this.success);
17054
      }
17055
      first = false;
17056
      if (!first) sb.append(", ");
17057
      sb.append("hse:");
17058
      if (this.hse == null) {
17059
        sb.append("null");
17060
      } else {
17061
        sb.append(this.hse);
17062
      }
17063
      first = false;
17064
      sb.append(")");
17065
      return sb.toString();
17066
    }
17067
 
3430 rajveer 17068
    public void validate() throws org.apache.thrift.TException {
2024 ankur.sing 17069
      // check for required fields
17070
    }
17071
 
3430 rajveer 17072
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17073
      try {
17074
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17075
      } catch (org.apache.thrift.TException te) {
17076
        throw new java.io.IOException(te);
17077
      }
17078
    }
17079
 
17080
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17081
      try {
17082
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17083
      } catch (org.apache.thrift.TException te) {
17084
        throw new java.io.IOException(te);
17085
      }
17086
    }
17087
 
2024 ankur.sing 17088
  }
17089
 
4544 varun.gupt 17090
  public static class shareEntities_args implements org.apache.thrift.TBase<shareEntities_args, shareEntities_args._Fields>, java.io.Serializable, Cloneable   {
17091
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_args");
17092
 
17093
    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);
17094
    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);
17095
 
17096
    private List<Long> entityIds; // required
17097
    private String email; // required
17098
 
17099
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17100
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17101
      ENTITY_IDS((short)1, "entityIds"),
17102
      EMAIL((short)2, "email");
17103
 
17104
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17105
 
17106
      static {
17107
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17108
          byName.put(field.getFieldName(), field);
17109
        }
17110
      }
17111
 
17112
      /**
17113
       * Find the _Fields constant that matches fieldId, or null if its not found.
17114
       */
17115
      public static _Fields findByThriftId(int fieldId) {
17116
        switch(fieldId) {
17117
          case 1: // ENTITY_IDS
17118
            return ENTITY_IDS;
17119
          case 2: // EMAIL
17120
            return EMAIL;
17121
          default:
17122
            return null;
17123
        }
17124
      }
17125
 
17126
      /**
17127
       * Find the _Fields constant that matches fieldId, throwing an exception
17128
       * if it is not found.
17129
       */
17130
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17131
        _Fields fields = findByThriftId(fieldId);
17132
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17133
        return fields;
17134
      }
17135
 
17136
      /**
17137
       * Find the _Fields constant that matches name, or null if its not found.
17138
       */
17139
      public static _Fields findByName(String name) {
17140
        return byName.get(name);
17141
      }
17142
 
17143
      private final short _thriftId;
17144
      private final String _fieldName;
17145
 
17146
      _Fields(short thriftId, String fieldName) {
17147
        _thriftId = thriftId;
17148
        _fieldName = fieldName;
17149
      }
17150
 
17151
      public short getThriftFieldId() {
17152
        return _thriftId;
17153
      }
17154
 
17155
      public String getFieldName() {
17156
        return _fieldName;
17157
      }
17158
    }
17159
 
17160
    // isset id assignments
17161
 
17162
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17163
    static {
17164
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17165
      tmpMap.put(_Fields.ENTITY_IDS, new org.apache.thrift.meta_data.FieldMetaData("entityIds", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17166
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
17167
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
17168
      tmpMap.put(_Fields.EMAIL, new org.apache.thrift.meta_data.FieldMetaData("email", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17169
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
17170
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17171
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_args.class, metaDataMap);
17172
    }
17173
 
17174
    public shareEntities_args() {
17175
    }
17176
 
17177
    public shareEntities_args(
17178
      List<Long> entityIds,
17179
      String email)
17180
    {
17181
      this();
17182
      this.entityIds = entityIds;
17183
      this.email = email;
17184
    }
17185
 
17186
    /**
17187
     * Performs a deep copy on <i>other</i>.
17188
     */
17189
    public shareEntities_args(shareEntities_args other) {
17190
      if (other.isSetEntityIds()) {
17191
        List<Long> __this__entityIds = new ArrayList<Long>();
17192
        for (Long other_element : other.entityIds) {
17193
          __this__entityIds.add(other_element);
17194
        }
17195
        this.entityIds = __this__entityIds;
17196
      }
17197
      if (other.isSetEmail()) {
17198
        this.email = other.email;
17199
      }
17200
    }
17201
 
17202
    public shareEntities_args deepCopy() {
17203
      return new shareEntities_args(this);
17204
    }
17205
 
17206
    @Override
17207
    public void clear() {
17208
      this.entityIds = null;
17209
      this.email = null;
17210
    }
17211
 
17212
    public int getEntityIdsSize() {
17213
      return (this.entityIds == null) ? 0 : this.entityIds.size();
17214
    }
17215
 
17216
    public java.util.Iterator<Long> getEntityIdsIterator() {
17217
      return (this.entityIds == null) ? null : this.entityIds.iterator();
17218
    }
17219
 
17220
    public void addToEntityIds(long elem) {
17221
      if (this.entityIds == null) {
17222
        this.entityIds = new ArrayList<Long>();
17223
      }
17224
      this.entityIds.add(elem);
17225
    }
17226
 
17227
    public List<Long> getEntityIds() {
17228
      return this.entityIds;
17229
    }
17230
 
17231
    public void setEntityIds(List<Long> entityIds) {
17232
      this.entityIds = entityIds;
17233
    }
17234
 
17235
    public void unsetEntityIds() {
17236
      this.entityIds = null;
17237
    }
17238
 
17239
    /** Returns true if field entityIds is set (has been assigned a value) and false otherwise */
17240
    public boolean isSetEntityIds() {
17241
      return this.entityIds != null;
17242
    }
17243
 
17244
    public void setEntityIdsIsSet(boolean value) {
17245
      if (!value) {
17246
        this.entityIds = null;
17247
      }
17248
    }
17249
 
17250
    public String getEmail() {
17251
      return this.email;
17252
    }
17253
 
17254
    public void setEmail(String email) {
17255
      this.email = email;
17256
    }
17257
 
17258
    public void unsetEmail() {
17259
      this.email = null;
17260
    }
17261
 
17262
    /** Returns true if field email is set (has been assigned a value) and false otherwise */
17263
    public boolean isSetEmail() {
17264
      return this.email != null;
17265
    }
17266
 
17267
    public void setEmailIsSet(boolean value) {
17268
      if (!value) {
17269
        this.email = null;
17270
      }
17271
    }
17272
 
17273
    public void setFieldValue(_Fields field, Object value) {
17274
      switch (field) {
17275
      case ENTITY_IDS:
17276
        if (value == null) {
17277
          unsetEntityIds();
17278
        } else {
17279
          setEntityIds((List<Long>)value);
17280
        }
17281
        break;
17282
 
17283
      case EMAIL:
17284
        if (value == null) {
17285
          unsetEmail();
17286
        } else {
17287
          setEmail((String)value);
17288
        }
17289
        break;
17290
 
17291
      }
17292
    }
17293
 
17294
    public Object getFieldValue(_Fields field) {
17295
      switch (field) {
17296
      case ENTITY_IDS:
17297
        return getEntityIds();
17298
 
17299
      case EMAIL:
17300
        return getEmail();
17301
 
17302
      }
17303
      throw new IllegalStateException();
17304
    }
17305
 
17306
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17307
    public boolean isSet(_Fields field) {
17308
      if (field == null) {
17309
        throw new IllegalArgumentException();
17310
      }
17311
 
17312
      switch (field) {
17313
      case ENTITY_IDS:
17314
        return isSetEntityIds();
17315
      case EMAIL:
17316
        return isSetEmail();
17317
      }
17318
      throw new IllegalStateException();
17319
    }
17320
 
17321
    @Override
17322
    public boolean equals(Object that) {
17323
      if (that == null)
17324
        return false;
17325
      if (that instanceof shareEntities_args)
17326
        return this.equals((shareEntities_args)that);
17327
      return false;
17328
    }
17329
 
17330
    public boolean equals(shareEntities_args that) {
17331
      if (that == null)
17332
        return false;
17333
 
17334
      boolean this_present_entityIds = true && this.isSetEntityIds();
17335
      boolean that_present_entityIds = true && that.isSetEntityIds();
17336
      if (this_present_entityIds || that_present_entityIds) {
17337
        if (!(this_present_entityIds && that_present_entityIds))
17338
          return false;
17339
        if (!this.entityIds.equals(that.entityIds))
17340
          return false;
17341
      }
17342
 
17343
      boolean this_present_email = true && this.isSetEmail();
17344
      boolean that_present_email = true && that.isSetEmail();
17345
      if (this_present_email || that_present_email) {
17346
        if (!(this_present_email && that_present_email))
17347
          return false;
17348
        if (!this.email.equals(that.email))
17349
          return false;
17350
      }
17351
 
17352
      return true;
17353
    }
17354
 
17355
    @Override
17356
    public int hashCode() {
17357
      return 0;
17358
    }
17359
 
17360
    public int compareTo(shareEntities_args other) {
17361
      if (!getClass().equals(other.getClass())) {
17362
        return getClass().getName().compareTo(other.getClass().getName());
17363
      }
17364
 
17365
      int lastComparison = 0;
17366
      shareEntities_args typedOther = (shareEntities_args)other;
17367
 
17368
      lastComparison = Boolean.valueOf(isSetEntityIds()).compareTo(typedOther.isSetEntityIds());
17369
      if (lastComparison != 0) {
17370
        return lastComparison;
17371
      }
17372
      if (isSetEntityIds()) {
17373
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.entityIds, typedOther.entityIds);
17374
        if (lastComparison != 0) {
17375
          return lastComparison;
17376
        }
17377
      }
17378
      lastComparison = Boolean.valueOf(isSetEmail()).compareTo(typedOther.isSetEmail());
17379
      if (lastComparison != 0) {
17380
        return lastComparison;
17381
      }
17382
      if (isSetEmail()) {
17383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.email, typedOther.email);
17384
        if (lastComparison != 0) {
17385
          return lastComparison;
17386
        }
17387
      }
17388
      return 0;
17389
    }
17390
 
17391
    public _Fields fieldForId(int fieldId) {
17392
      return _Fields.findByThriftId(fieldId);
17393
    }
17394
 
17395
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17396
      org.apache.thrift.protocol.TField field;
17397
      iprot.readStructBegin();
17398
      while (true)
17399
      {
17400
        field = iprot.readFieldBegin();
17401
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17402
          break;
17403
        }
17404
        switch (field.id) {
17405
          case 1: // ENTITY_IDS
17406
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
17407
              {
5864 rajveer 17408
                org.apache.thrift.protocol.TList _list45 = iprot.readListBegin();
17409
                this.entityIds = new ArrayList<Long>(_list45.size);
17410
                for (int _i46 = 0; _i46 < _list45.size; ++_i46)
4544 varun.gupt 17411
                {
5864 rajveer 17412
                  long _elem47; // required
17413
                  _elem47 = iprot.readI64();
17414
                  this.entityIds.add(_elem47);
4544 varun.gupt 17415
                }
17416
                iprot.readListEnd();
17417
              }
17418
            } else { 
17419
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17420
            }
17421
            break;
17422
          case 2: // EMAIL
17423
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
17424
              this.email = iprot.readString();
17425
            } else { 
17426
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17427
            }
17428
            break;
17429
          default:
17430
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17431
        }
17432
        iprot.readFieldEnd();
17433
      }
17434
      iprot.readStructEnd();
17435
      validate();
17436
    }
17437
 
17438
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17439
      validate();
17440
 
17441
      oprot.writeStructBegin(STRUCT_DESC);
17442
      if (this.entityIds != null) {
17443
        oprot.writeFieldBegin(ENTITY_IDS_FIELD_DESC);
17444
        {
17445
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.entityIds.size()));
5864 rajveer 17446
          for (long _iter48 : this.entityIds)
4544 varun.gupt 17447
          {
5864 rajveer 17448
            oprot.writeI64(_iter48);
4544 varun.gupt 17449
          }
17450
          oprot.writeListEnd();
17451
        }
17452
        oprot.writeFieldEnd();
17453
      }
17454
      if (this.email != null) {
17455
        oprot.writeFieldBegin(EMAIL_FIELD_DESC);
17456
        oprot.writeString(this.email);
17457
        oprot.writeFieldEnd();
17458
      }
17459
      oprot.writeFieldStop();
17460
      oprot.writeStructEnd();
17461
    }
17462
 
17463
    @Override
17464
    public String toString() {
17465
      StringBuilder sb = new StringBuilder("shareEntities_args(");
17466
      boolean first = true;
17467
 
17468
      sb.append("entityIds:");
17469
      if (this.entityIds == null) {
17470
        sb.append("null");
17471
      } else {
17472
        sb.append(this.entityIds);
17473
      }
17474
      first = false;
17475
      if (!first) sb.append(", ");
17476
      sb.append("email:");
17477
      if (this.email == null) {
17478
        sb.append("null");
17479
      } else {
17480
        sb.append(this.email);
17481
      }
17482
      first = false;
17483
      sb.append(")");
17484
      return sb.toString();
17485
    }
17486
 
17487
    public void validate() throws org.apache.thrift.TException {
17488
      // check for required fields
17489
    }
17490
 
17491
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17492
      try {
17493
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17494
      } catch (org.apache.thrift.TException te) {
17495
        throw new java.io.IOException(te);
17496
      }
17497
    }
17498
 
17499
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17500
      try {
17501
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17502
      } catch (org.apache.thrift.TException te) {
17503
        throw new java.io.IOException(te);
17504
      }
17505
    }
17506
 
17507
  }
17508
 
17509
  public static class shareEntities_result implements org.apache.thrift.TBase<shareEntities_result, shareEntities_result._Fields>, java.io.Serializable, Cloneable   {
17510
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("shareEntities_result");
17511
 
17512
    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);
17513
 
17514
    private HelperServiceException hse; // required
17515
 
17516
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17517
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17518
      HSE((short)1, "hse");
17519
 
17520
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17521
 
17522
      static {
17523
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17524
          byName.put(field.getFieldName(), field);
17525
        }
17526
      }
17527
 
17528
      /**
17529
       * Find the _Fields constant that matches fieldId, or null if its not found.
17530
       */
17531
      public static _Fields findByThriftId(int fieldId) {
17532
        switch(fieldId) {
17533
          case 1: // HSE
17534
            return HSE;
17535
          default:
17536
            return null;
17537
        }
17538
      }
17539
 
17540
      /**
17541
       * Find the _Fields constant that matches fieldId, throwing an exception
17542
       * if it is not found.
17543
       */
17544
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17545
        _Fields fields = findByThriftId(fieldId);
17546
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17547
        return fields;
17548
      }
17549
 
17550
      /**
17551
       * Find the _Fields constant that matches name, or null if its not found.
17552
       */
17553
      public static _Fields findByName(String name) {
17554
        return byName.get(name);
17555
      }
17556
 
17557
      private final short _thriftId;
17558
      private final String _fieldName;
17559
 
17560
      _Fields(short thriftId, String fieldName) {
17561
        _thriftId = thriftId;
17562
        _fieldName = fieldName;
17563
      }
17564
 
17565
      public short getThriftFieldId() {
17566
        return _thriftId;
17567
      }
17568
 
17569
      public String getFieldName() {
17570
        return _fieldName;
17571
      }
17572
    }
17573
 
17574
    // isset id assignments
17575
 
17576
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17577
    static {
17578
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17579
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
17580
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
17581
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17582
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(shareEntities_result.class, metaDataMap);
17583
    }
17584
 
17585
    public shareEntities_result() {
17586
    }
17587
 
17588
    public shareEntities_result(
17589
      HelperServiceException hse)
17590
    {
17591
      this();
17592
      this.hse = hse;
17593
    }
17594
 
17595
    /**
17596
     * Performs a deep copy on <i>other</i>.
17597
     */
17598
    public shareEntities_result(shareEntities_result other) {
17599
      if (other.isSetHse()) {
17600
        this.hse = new HelperServiceException(other.hse);
17601
      }
17602
    }
17603
 
17604
    public shareEntities_result deepCopy() {
17605
      return new shareEntities_result(this);
17606
    }
17607
 
17608
    @Override
17609
    public void clear() {
17610
      this.hse = null;
17611
    }
17612
 
17613
    public HelperServiceException getHse() {
17614
      return this.hse;
17615
    }
17616
 
17617
    public void setHse(HelperServiceException hse) {
17618
      this.hse = hse;
17619
    }
17620
 
17621
    public void unsetHse() {
17622
      this.hse = null;
17623
    }
17624
 
17625
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
17626
    public boolean isSetHse() {
17627
      return this.hse != null;
17628
    }
17629
 
17630
    public void setHseIsSet(boolean value) {
17631
      if (!value) {
17632
        this.hse = null;
17633
      }
17634
    }
17635
 
17636
    public void setFieldValue(_Fields field, Object value) {
17637
      switch (field) {
17638
      case HSE:
17639
        if (value == null) {
17640
          unsetHse();
17641
        } else {
17642
          setHse((HelperServiceException)value);
17643
        }
17644
        break;
17645
 
17646
      }
17647
    }
17648
 
17649
    public Object getFieldValue(_Fields field) {
17650
      switch (field) {
17651
      case HSE:
17652
        return getHse();
17653
 
17654
      }
17655
      throw new IllegalStateException();
17656
    }
17657
 
17658
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17659
    public boolean isSet(_Fields field) {
17660
      if (field == null) {
17661
        throw new IllegalArgumentException();
17662
      }
17663
 
17664
      switch (field) {
17665
      case HSE:
17666
        return isSetHse();
17667
      }
17668
      throw new IllegalStateException();
17669
    }
17670
 
17671
    @Override
17672
    public boolean equals(Object that) {
17673
      if (that == null)
17674
        return false;
17675
      if (that instanceof shareEntities_result)
17676
        return this.equals((shareEntities_result)that);
17677
      return false;
17678
    }
17679
 
17680
    public boolean equals(shareEntities_result that) {
17681
      if (that == null)
17682
        return false;
17683
 
17684
      boolean this_present_hse = true && this.isSetHse();
17685
      boolean that_present_hse = true && that.isSetHse();
17686
      if (this_present_hse || that_present_hse) {
17687
        if (!(this_present_hse && that_present_hse))
17688
          return false;
17689
        if (!this.hse.equals(that.hse))
17690
          return false;
17691
      }
17692
 
17693
      return true;
17694
    }
17695
 
17696
    @Override
17697
    public int hashCode() {
17698
      return 0;
17699
    }
17700
 
17701
    public int compareTo(shareEntities_result other) {
17702
      if (!getClass().equals(other.getClass())) {
17703
        return getClass().getName().compareTo(other.getClass().getName());
17704
      }
17705
 
17706
      int lastComparison = 0;
17707
      shareEntities_result typedOther = (shareEntities_result)other;
17708
 
17709
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
17710
      if (lastComparison != 0) {
17711
        return lastComparison;
17712
      }
17713
      if (isSetHse()) {
17714
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
17715
        if (lastComparison != 0) {
17716
          return lastComparison;
17717
        }
17718
      }
17719
      return 0;
17720
    }
17721
 
17722
    public _Fields fieldForId(int fieldId) {
17723
      return _Fields.findByThriftId(fieldId);
17724
    }
17725
 
17726
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17727
      org.apache.thrift.protocol.TField field;
17728
      iprot.readStructBegin();
17729
      while (true)
17730
      {
17731
        field = iprot.readFieldBegin();
17732
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17733
          break;
17734
        }
17735
        switch (field.id) {
17736
          case 1: // HSE
17737
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
17738
              this.hse = new HelperServiceException();
17739
              this.hse.read(iprot);
17740
            } else { 
17741
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17742
            }
17743
            break;
17744
          default:
17745
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17746
        }
17747
        iprot.readFieldEnd();
17748
      }
17749
      iprot.readStructEnd();
17750
      validate();
17751
    }
17752
 
17753
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17754
      oprot.writeStructBegin(STRUCT_DESC);
17755
 
17756
      if (this.isSetHse()) {
17757
        oprot.writeFieldBegin(HSE_FIELD_DESC);
17758
        this.hse.write(oprot);
17759
        oprot.writeFieldEnd();
17760
      }
17761
      oprot.writeFieldStop();
17762
      oprot.writeStructEnd();
17763
    }
17764
 
17765
    @Override
17766
    public String toString() {
17767
      StringBuilder sb = new StringBuilder("shareEntities_result(");
17768
      boolean first = true;
17769
 
17770
      sb.append("hse:");
17771
      if (this.hse == null) {
17772
        sb.append("null");
17773
      } else {
17774
        sb.append(this.hse);
17775
      }
17776
      first = false;
17777
      sb.append(")");
17778
      return sb.toString();
17779
    }
17780
 
17781
    public void validate() throws org.apache.thrift.TException {
17782
      // check for required fields
17783
    }
17784
 
17785
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17786
      try {
17787
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17788
      } catch (org.apache.thrift.TException te) {
17789
        throw new java.io.IOException(te);
17790
      }
17791
    }
17792
 
17793
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17794
      try {
17795
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17796
      } catch (org.apache.thrift.TException te) {
17797
        throw new java.io.IOException(te);
17798
      }
17799
    }
17800
 
17801
  }
17802
 
4693 mandeep.dh 17803
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
17804
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
17805
 
17806
 
17807
 
17808
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
17809
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
17810
;
17811
 
17812
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
17813
 
17814
      static {
17815
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
17816
          byName.put(field.getFieldName(), field);
17817
        }
17818
      }
17819
 
17820
      /**
17821
       * Find the _Fields constant that matches fieldId, or null if its not found.
17822
       */
17823
      public static _Fields findByThriftId(int fieldId) {
17824
        switch(fieldId) {
17825
          default:
17826
            return null;
17827
        }
17828
      }
17829
 
17830
      /**
17831
       * Find the _Fields constant that matches fieldId, throwing an exception
17832
       * if it is not found.
17833
       */
17834
      public static _Fields findByThriftIdOrThrow(int fieldId) {
17835
        _Fields fields = findByThriftId(fieldId);
17836
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
17837
        return fields;
17838
      }
17839
 
17840
      /**
17841
       * Find the _Fields constant that matches name, or null if its not found.
17842
       */
17843
      public static _Fields findByName(String name) {
17844
        return byName.get(name);
17845
      }
17846
 
17847
      private final short _thriftId;
17848
      private final String _fieldName;
17849
 
17850
      _Fields(short thriftId, String fieldName) {
17851
        _thriftId = thriftId;
17852
        _fieldName = fieldName;
17853
      }
17854
 
17855
      public short getThriftFieldId() {
17856
        return _thriftId;
17857
      }
17858
 
17859
      public String getFieldName() {
17860
        return _fieldName;
17861
      }
17862
    }
17863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
17864
    static {
17865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
17866
      metaDataMap = Collections.unmodifiableMap(tmpMap);
17867
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
17868
    }
17869
 
17870
    public getAgents_args() {
17871
    }
17872
 
17873
    /**
17874
     * Performs a deep copy on <i>other</i>.
17875
     */
17876
    public getAgents_args(getAgents_args other) {
17877
    }
17878
 
17879
    public getAgents_args deepCopy() {
17880
      return new getAgents_args(this);
17881
    }
17882
 
17883
    @Override
17884
    public void clear() {
17885
    }
17886
 
17887
    public void setFieldValue(_Fields field, Object value) {
17888
      switch (field) {
17889
      }
17890
    }
17891
 
17892
    public Object getFieldValue(_Fields field) {
17893
      switch (field) {
17894
      }
17895
      throw new IllegalStateException();
17896
    }
17897
 
17898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
17899
    public boolean isSet(_Fields field) {
17900
      if (field == null) {
17901
        throw new IllegalArgumentException();
17902
      }
17903
 
17904
      switch (field) {
17905
      }
17906
      throw new IllegalStateException();
17907
    }
17908
 
17909
    @Override
17910
    public boolean equals(Object that) {
17911
      if (that == null)
17912
        return false;
17913
      if (that instanceof getAgents_args)
17914
        return this.equals((getAgents_args)that);
17915
      return false;
17916
    }
17917
 
17918
    public boolean equals(getAgents_args that) {
17919
      if (that == null)
17920
        return false;
17921
 
17922
      return true;
17923
    }
17924
 
17925
    @Override
17926
    public int hashCode() {
17927
      return 0;
17928
    }
17929
 
17930
    public int compareTo(getAgents_args other) {
17931
      if (!getClass().equals(other.getClass())) {
17932
        return getClass().getName().compareTo(other.getClass().getName());
17933
      }
17934
 
17935
      int lastComparison = 0;
17936
      getAgents_args typedOther = (getAgents_args)other;
17937
 
17938
      return 0;
17939
    }
17940
 
17941
    public _Fields fieldForId(int fieldId) {
17942
      return _Fields.findByThriftId(fieldId);
17943
    }
17944
 
17945
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
17946
      org.apache.thrift.protocol.TField field;
17947
      iprot.readStructBegin();
17948
      while (true)
17949
      {
17950
        field = iprot.readFieldBegin();
17951
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
17952
          break;
17953
        }
17954
        switch (field.id) {
17955
          default:
17956
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
17957
        }
17958
        iprot.readFieldEnd();
17959
      }
17960
      iprot.readStructEnd();
17961
      validate();
17962
    }
17963
 
17964
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
17965
      validate();
17966
 
17967
      oprot.writeStructBegin(STRUCT_DESC);
17968
      oprot.writeFieldStop();
17969
      oprot.writeStructEnd();
17970
    }
17971
 
17972
    @Override
17973
    public String toString() {
17974
      StringBuilder sb = new StringBuilder("getAgents_args(");
17975
      boolean first = true;
17976
 
17977
      sb.append(")");
17978
      return sb.toString();
17979
    }
17980
 
17981
    public void validate() throws org.apache.thrift.TException {
17982
      // check for required fields
17983
    }
17984
 
17985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
17986
      try {
17987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
17988
      } catch (org.apache.thrift.TException te) {
17989
        throw new java.io.IOException(te);
17990
      }
17991
    }
17992
 
17993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
17994
      try {
17995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
17996
      } catch (org.apache.thrift.TException te) {
17997
        throw new java.io.IOException(te);
17998
      }
17999
    }
18000
 
18001
  }
18002
 
18003
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
18004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
18005
 
18006
    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);
18007
 
18008
    private List<Agent> success; // required
18009
 
18010
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18011
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18012
      SUCCESS((short)0, "success");
18013
 
18014
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18015
 
18016
      static {
18017
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18018
          byName.put(field.getFieldName(), field);
18019
        }
18020
      }
18021
 
18022
      /**
18023
       * Find the _Fields constant that matches fieldId, or null if its not found.
18024
       */
18025
      public static _Fields findByThriftId(int fieldId) {
18026
        switch(fieldId) {
18027
          case 0: // SUCCESS
18028
            return SUCCESS;
18029
          default:
18030
            return null;
18031
        }
18032
      }
18033
 
18034
      /**
18035
       * Find the _Fields constant that matches fieldId, throwing an exception
18036
       * if it is not found.
18037
       */
18038
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18039
        _Fields fields = findByThriftId(fieldId);
18040
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18041
        return fields;
18042
      }
18043
 
18044
      /**
18045
       * Find the _Fields constant that matches name, or null if its not found.
18046
       */
18047
      public static _Fields findByName(String name) {
18048
        return byName.get(name);
18049
      }
18050
 
18051
      private final short _thriftId;
18052
      private final String _fieldName;
18053
 
18054
      _Fields(short thriftId, String fieldName) {
18055
        _thriftId = thriftId;
18056
        _fieldName = fieldName;
18057
      }
18058
 
18059
      public short getThriftFieldId() {
18060
        return _thriftId;
18061
      }
18062
 
18063
      public String getFieldName() {
18064
        return _fieldName;
18065
      }
18066
    }
18067
 
18068
    // isset id assignments
18069
 
18070
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18071
    static {
18072
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18073
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18074
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
18075
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
18076
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18077
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
18078
    }
18079
 
18080
    public getAgents_result() {
18081
    }
18082
 
18083
    public getAgents_result(
18084
      List<Agent> success)
18085
    {
18086
      this();
18087
      this.success = success;
18088
    }
18089
 
18090
    /**
18091
     * Performs a deep copy on <i>other</i>.
18092
     */
18093
    public getAgents_result(getAgents_result other) {
18094
      if (other.isSetSuccess()) {
18095
        List<Agent> __this__success = new ArrayList<Agent>();
18096
        for (Agent other_element : other.success) {
18097
          __this__success.add(new Agent(other_element));
18098
        }
18099
        this.success = __this__success;
18100
      }
18101
    }
18102
 
18103
    public getAgents_result deepCopy() {
18104
      return new getAgents_result(this);
18105
    }
18106
 
18107
    @Override
18108
    public void clear() {
18109
      this.success = null;
18110
    }
18111
 
18112
    public int getSuccessSize() {
18113
      return (this.success == null) ? 0 : this.success.size();
18114
    }
18115
 
18116
    public java.util.Iterator<Agent> getSuccessIterator() {
18117
      return (this.success == null) ? null : this.success.iterator();
18118
    }
18119
 
18120
    public void addToSuccess(Agent elem) {
18121
      if (this.success == null) {
18122
        this.success = new ArrayList<Agent>();
18123
      }
18124
      this.success.add(elem);
18125
    }
18126
 
18127
    public List<Agent> getSuccess() {
18128
      return this.success;
18129
    }
18130
 
18131
    public void setSuccess(List<Agent> success) {
18132
      this.success = success;
18133
    }
18134
 
18135
    public void unsetSuccess() {
18136
      this.success = null;
18137
    }
18138
 
18139
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18140
    public boolean isSetSuccess() {
18141
      return this.success != null;
18142
    }
18143
 
18144
    public void setSuccessIsSet(boolean value) {
18145
      if (!value) {
18146
        this.success = null;
18147
      }
18148
    }
18149
 
18150
    public void setFieldValue(_Fields field, Object value) {
18151
      switch (field) {
18152
      case SUCCESS:
18153
        if (value == null) {
18154
          unsetSuccess();
18155
        } else {
18156
          setSuccess((List<Agent>)value);
18157
        }
18158
        break;
18159
 
18160
      }
18161
    }
18162
 
18163
    public Object getFieldValue(_Fields field) {
18164
      switch (field) {
18165
      case SUCCESS:
18166
        return getSuccess();
18167
 
18168
      }
18169
      throw new IllegalStateException();
18170
    }
18171
 
18172
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18173
    public boolean isSet(_Fields field) {
18174
      if (field == null) {
18175
        throw new IllegalArgumentException();
18176
      }
18177
 
18178
      switch (field) {
18179
      case SUCCESS:
18180
        return isSetSuccess();
18181
      }
18182
      throw new IllegalStateException();
18183
    }
18184
 
18185
    @Override
18186
    public boolean equals(Object that) {
18187
      if (that == null)
18188
        return false;
18189
      if (that instanceof getAgents_result)
18190
        return this.equals((getAgents_result)that);
18191
      return false;
18192
    }
18193
 
18194
    public boolean equals(getAgents_result that) {
18195
      if (that == null)
18196
        return false;
18197
 
18198
      boolean this_present_success = true && this.isSetSuccess();
18199
      boolean that_present_success = true && that.isSetSuccess();
18200
      if (this_present_success || that_present_success) {
18201
        if (!(this_present_success && that_present_success))
18202
          return false;
18203
        if (!this.success.equals(that.success))
18204
          return false;
18205
      }
18206
 
18207
      return true;
18208
    }
18209
 
18210
    @Override
18211
    public int hashCode() {
18212
      return 0;
18213
    }
18214
 
18215
    public int compareTo(getAgents_result other) {
18216
      if (!getClass().equals(other.getClass())) {
18217
        return getClass().getName().compareTo(other.getClass().getName());
18218
      }
18219
 
18220
      int lastComparison = 0;
18221
      getAgents_result typedOther = (getAgents_result)other;
18222
 
18223
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18224
      if (lastComparison != 0) {
18225
        return lastComparison;
18226
      }
18227
      if (isSetSuccess()) {
18228
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18229
        if (lastComparison != 0) {
18230
          return lastComparison;
18231
        }
18232
      }
18233
      return 0;
18234
    }
18235
 
18236
    public _Fields fieldForId(int fieldId) {
18237
      return _Fields.findByThriftId(fieldId);
18238
    }
18239
 
18240
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18241
      org.apache.thrift.protocol.TField field;
18242
      iprot.readStructBegin();
18243
      while (true)
18244
      {
18245
        field = iprot.readFieldBegin();
18246
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18247
          break;
18248
        }
18249
        switch (field.id) {
18250
          case 0: // SUCCESS
18251
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
18252
              {
5864 rajveer 18253
                org.apache.thrift.protocol.TList _list49 = iprot.readListBegin();
18254
                this.success = new ArrayList<Agent>(_list49.size);
18255
                for (int _i50 = 0; _i50 < _list49.size; ++_i50)
4693 mandeep.dh 18256
                {
5864 rajveer 18257
                  Agent _elem51; // required
18258
                  _elem51 = new Agent();
18259
                  _elem51.read(iprot);
18260
                  this.success.add(_elem51);
4693 mandeep.dh 18261
                }
18262
                iprot.readListEnd();
18263
              }
18264
            } else { 
18265
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18266
            }
18267
            break;
18268
          default:
18269
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18270
        }
18271
        iprot.readFieldEnd();
18272
      }
18273
      iprot.readStructEnd();
18274
      validate();
18275
    }
18276
 
18277
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18278
      oprot.writeStructBegin(STRUCT_DESC);
18279
 
18280
      if (this.isSetSuccess()) {
18281
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18282
        {
18283
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 18284
          for (Agent _iter52 : this.success)
4693 mandeep.dh 18285
          {
5864 rajveer 18286
            _iter52.write(oprot);
4693 mandeep.dh 18287
          }
18288
          oprot.writeListEnd();
18289
        }
18290
        oprot.writeFieldEnd();
18291
      }
18292
      oprot.writeFieldStop();
18293
      oprot.writeStructEnd();
18294
    }
18295
 
18296
    @Override
18297
    public String toString() {
18298
      StringBuilder sb = new StringBuilder("getAgents_result(");
18299
      boolean first = true;
18300
 
18301
      sb.append("success:");
18302
      if (this.success == null) {
18303
        sb.append("null");
18304
      } else {
18305
        sb.append(this.success);
18306
      }
18307
      first = false;
18308
      sb.append(")");
18309
      return sb.toString();
18310
    }
18311
 
18312
    public void validate() throws org.apache.thrift.TException {
18313
      // check for required fields
18314
    }
18315
 
18316
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18317
      try {
18318
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18319
      } catch (org.apache.thrift.TException te) {
18320
        throw new java.io.IOException(te);
18321
      }
18322
    }
18323
 
18324
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18325
      try {
18326
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18327
      } catch (org.apache.thrift.TException te) {
18328
        throw new java.io.IOException(te);
18329
      }
18330
    }
18331
 
18332
  }
18333
 
18334
  public static class validateLogIn_args implements org.apache.thrift.TBase<validateLogIn_args, validateLogIn_args._Fields>, java.io.Serializable, Cloneable   {
18335
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_args");
18336
 
18337
    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);
18338
    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);
18339
 
18340
    private String emailId; // required
18341
    private String password; // required
18342
 
18343
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18344
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18345
      EMAIL_ID((short)1, "emailId"),
18346
      PASSWORD((short)2, "password");
18347
 
18348
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18349
 
18350
      static {
18351
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18352
          byName.put(field.getFieldName(), field);
18353
        }
18354
      }
18355
 
18356
      /**
18357
       * Find the _Fields constant that matches fieldId, or null if its not found.
18358
       */
18359
      public static _Fields findByThriftId(int fieldId) {
18360
        switch(fieldId) {
18361
          case 1: // EMAIL_ID
18362
            return EMAIL_ID;
18363
          case 2: // PASSWORD
18364
            return PASSWORD;
18365
          default:
18366
            return null;
18367
        }
18368
      }
18369
 
18370
      /**
18371
       * Find the _Fields constant that matches fieldId, throwing an exception
18372
       * if it is not found.
18373
       */
18374
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18375
        _Fields fields = findByThriftId(fieldId);
18376
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18377
        return fields;
18378
      }
18379
 
18380
      /**
18381
       * Find the _Fields constant that matches name, or null if its not found.
18382
       */
18383
      public static _Fields findByName(String name) {
18384
        return byName.get(name);
18385
      }
18386
 
18387
      private final short _thriftId;
18388
      private final String _fieldName;
18389
 
18390
      _Fields(short thriftId, String fieldName) {
18391
        _thriftId = thriftId;
18392
        _fieldName = fieldName;
18393
      }
18394
 
18395
      public short getThriftFieldId() {
18396
        return _thriftId;
18397
      }
18398
 
18399
      public String getFieldName() {
18400
        return _fieldName;
18401
      }
18402
    }
18403
 
18404
    // isset id assignments
18405
 
18406
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18407
    static {
18408
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18409
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18410
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18411
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18412
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
18413
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18414
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_args.class, metaDataMap);
18415
    }
18416
 
18417
    public validateLogIn_args() {
18418
    }
18419
 
18420
    public validateLogIn_args(
18421
      String emailId,
18422
      String password)
18423
    {
18424
      this();
18425
      this.emailId = emailId;
18426
      this.password = password;
18427
    }
18428
 
18429
    /**
18430
     * Performs a deep copy on <i>other</i>.
18431
     */
18432
    public validateLogIn_args(validateLogIn_args other) {
18433
      if (other.isSetEmailId()) {
18434
        this.emailId = other.emailId;
18435
      }
18436
      if (other.isSetPassword()) {
18437
        this.password = other.password;
18438
      }
18439
    }
18440
 
18441
    public validateLogIn_args deepCopy() {
18442
      return new validateLogIn_args(this);
18443
    }
18444
 
18445
    @Override
18446
    public void clear() {
18447
      this.emailId = null;
18448
      this.password = null;
18449
    }
18450
 
18451
    public String getEmailId() {
18452
      return this.emailId;
18453
    }
18454
 
18455
    public void setEmailId(String emailId) {
18456
      this.emailId = emailId;
18457
    }
18458
 
18459
    public void unsetEmailId() {
18460
      this.emailId = null;
18461
    }
18462
 
18463
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
18464
    public boolean isSetEmailId() {
18465
      return this.emailId != null;
18466
    }
18467
 
18468
    public void setEmailIdIsSet(boolean value) {
18469
      if (!value) {
18470
        this.emailId = null;
18471
      }
18472
    }
18473
 
18474
    public String getPassword() {
18475
      return this.password;
18476
    }
18477
 
18478
    public void setPassword(String password) {
18479
      this.password = password;
18480
    }
18481
 
18482
    public void unsetPassword() {
18483
      this.password = null;
18484
    }
18485
 
18486
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
18487
    public boolean isSetPassword() {
18488
      return this.password != null;
18489
    }
18490
 
18491
    public void setPasswordIsSet(boolean value) {
18492
      if (!value) {
18493
        this.password = null;
18494
      }
18495
    }
18496
 
18497
    public void setFieldValue(_Fields field, Object value) {
18498
      switch (field) {
18499
      case EMAIL_ID:
18500
        if (value == null) {
18501
          unsetEmailId();
18502
        } else {
18503
          setEmailId((String)value);
18504
        }
18505
        break;
18506
 
18507
      case PASSWORD:
18508
        if (value == null) {
18509
          unsetPassword();
18510
        } else {
18511
          setPassword((String)value);
18512
        }
18513
        break;
18514
 
18515
      }
18516
    }
18517
 
18518
    public Object getFieldValue(_Fields field) {
18519
      switch (field) {
18520
      case EMAIL_ID:
18521
        return getEmailId();
18522
 
18523
      case PASSWORD:
18524
        return getPassword();
18525
 
18526
      }
18527
      throw new IllegalStateException();
18528
    }
18529
 
18530
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18531
    public boolean isSet(_Fields field) {
18532
      if (field == null) {
18533
        throw new IllegalArgumentException();
18534
      }
18535
 
18536
      switch (field) {
18537
      case EMAIL_ID:
18538
        return isSetEmailId();
18539
      case PASSWORD:
18540
        return isSetPassword();
18541
      }
18542
      throw new IllegalStateException();
18543
    }
18544
 
18545
    @Override
18546
    public boolean equals(Object that) {
18547
      if (that == null)
18548
        return false;
18549
      if (that instanceof validateLogIn_args)
18550
        return this.equals((validateLogIn_args)that);
18551
      return false;
18552
    }
18553
 
18554
    public boolean equals(validateLogIn_args that) {
18555
      if (that == null)
18556
        return false;
18557
 
18558
      boolean this_present_emailId = true && this.isSetEmailId();
18559
      boolean that_present_emailId = true && that.isSetEmailId();
18560
      if (this_present_emailId || that_present_emailId) {
18561
        if (!(this_present_emailId && that_present_emailId))
18562
          return false;
18563
        if (!this.emailId.equals(that.emailId))
18564
          return false;
18565
      }
18566
 
18567
      boolean this_present_password = true && this.isSetPassword();
18568
      boolean that_present_password = true && that.isSetPassword();
18569
      if (this_present_password || that_present_password) {
18570
        if (!(this_present_password && that_present_password))
18571
          return false;
18572
        if (!this.password.equals(that.password))
18573
          return false;
18574
      }
18575
 
18576
      return true;
18577
    }
18578
 
18579
    @Override
18580
    public int hashCode() {
18581
      return 0;
18582
    }
18583
 
18584
    public int compareTo(validateLogIn_args other) {
18585
      if (!getClass().equals(other.getClass())) {
18586
        return getClass().getName().compareTo(other.getClass().getName());
18587
      }
18588
 
18589
      int lastComparison = 0;
18590
      validateLogIn_args typedOther = (validateLogIn_args)other;
18591
 
18592
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
18593
      if (lastComparison != 0) {
18594
        return lastComparison;
18595
      }
18596
      if (isSetEmailId()) {
18597
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
18598
        if (lastComparison != 0) {
18599
          return lastComparison;
18600
        }
18601
      }
18602
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
18603
      if (lastComparison != 0) {
18604
        return lastComparison;
18605
      }
18606
      if (isSetPassword()) {
18607
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
18608
        if (lastComparison != 0) {
18609
          return lastComparison;
18610
        }
18611
      }
18612
      return 0;
18613
    }
18614
 
18615
    public _Fields fieldForId(int fieldId) {
18616
      return _Fields.findByThriftId(fieldId);
18617
    }
18618
 
18619
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18620
      org.apache.thrift.protocol.TField field;
18621
      iprot.readStructBegin();
18622
      while (true)
18623
      {
18624
        field = iprot.readFieldBegin();
18625
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18626
          break;
18627
        }
18628
        switch (field.id) {
18629
          case 1: // EMAIL_ID
18630
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18631
              this.emailId = iprot.readString();
18632
            } else { 
18633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18634
            }
18635
            break;
18636
          case 2: // PASSWORD
18637
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
18638
              this.password = iprot.readString();
18639
            } else { 
18640
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18641
            }
18642
            break;
18643
          default:
18644
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18645
        }
18646
        iprot.readFieldEnd();
18647
      }
18648
      iprot.readStructEnd();
18649
      validate();
18650
    }
18651
 
18652
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18653
      validate();
18654
 
18655
      oprot.writeStructBegin(STRUCT_DESC);
18656
      if (this.emailId != null) {
18657
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
18658
        oprot.writeString(this.emailId);
18659
        oprot.writeFieldEnd();
18660
      }
18661
      if (this.password != null) {
18662
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
18663
        oprot.writeString(this.password);
18664
        oprot.writeFieldEnd();
18665
      }
18666
      oprot.writeFieldStop();
18667
      oprot.writeStructEnd();
18668
    }
18669
 
18670
    @Override
18671
    public String toString() {
18672
      StringBuilder sb = new StringBuilder("validateLogIn_args(");
18673
      boolean first = true;
18674
 
18675
      sb.append("emailId:");
18676
      if (this.emailId == null) {
18677
        sb.append("null");
18678
      } else {
18679
        sb.append(this.emailId);
18680
      }
18681
      first = false;
18682
      if (!first) sb.append(", ");
18683
      sb.append("password:");
18684
      if (this.password == null) {
18685
        sb.append("null");
18686
      } else {
18687
        sb.append(this.password);
18688
      }
18689
      first = false;
18690
      sb.append(")");
18691
      return sb.toString();
18692
    }
18693
 
18694
    public void validate() throws org.apache.thrift.TException {
18695
      // check for required fields
18696
    }
18697
 
18698
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18699
      try {
18700
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18701
      } catch (org.apache.thrift.TException te) {
18702
        throw new java.io.IOException(te);
18703
      }
18704
    }
18705
 
18706
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
18707
      try {
18708
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
18709
      } catch (org.apache.thrift.TException te) {
18710
        throw new java.io.IOException(te);
18711
      }
18712
    }
18713
 
18714
  }
18715
 
18716
  public static class validateLogIn_result implements org.apache.thrift.TBase<validateLogIn_result, validateLogIn_result._Fields>, java.io.Serializable, Cloneable   {
18717
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("validateLogIn_result");
18718
 
18719
    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);
18720
 
18721
    private boolean success; // required
18722
 
18723
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
18724
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
18725
      SUCCESS((short)0, "success");
18726
 
18727
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
18728
 
18729
      static {
18730
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
18731
          byName.put(field.getFieldName(), field);
18732
        }
18733
      }
18734
 
18735
      /**
18736
       * Find the _Fields constant that matches fieldId, or null if its not found.
18737
       */
18738
      public static _Fields findByThriftId(int fieldId) {
18739
        switch(fieldId) {
18740
          case 0: // SUCCESS
18741
            return SUCCESS;
18742
          default:
18743
            return null;
18744
        }
18745
      }
18746
 
18747
      /**
18748
       * Find the _Fields constant that matches fieldId, throwing an exception
18749
       * if it is not found.
18750
       */
18751
      public static _Fields findByThriftIdOrThrow(int fieldId) {
18752
        _Fields fields = findByThriftId(fieldId);
18753
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
18754
        return fields;
18755
      }
18756
 
18757
      /**
18758
       * Find the _Fields constant that matches name, or null if its not found.
18759
       */
18760
      public static _Fields findByName(String name) {
18761
        return byName.get(name);
18762
      }
18763
 
18764
      private final short _thriftId;
18765
      private final String _fieldName;
18766
 
18767
      _Fields(short thriftId, String fieldName) {
18768
        _thriftId = thriftId;
18769
        _fieldName = fieldName;
18770
      }
18771
 
18772
      public short getThriftFieldId() {
18773
        return _thriftId;
18774
      }
18775
 
18776
      public String getFieldName() {
18777
        return _fieldName;
18778
      }
18779
    }
18780
 
18781
    // isset id assignments
18782
    private static final int __SUCCESS_ISSET_ID = 0;
18783
    private BitSet __isset_bit_vector = new BitSet(1);
18784
 
18785
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
18786
    static {
18787
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
18788
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
18789
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
18790
      metaDataMap = Collections.unmodifiableMap(tmpMap);
18791
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(validateLogIn_result.class, metaDataMap);
18792
    }
18793
 
18794
    public validateLogIn_result() {
18795
    }
18796
 
18797
    public validateLogIn_result(
18798
      boolean success)
18799
    {
18800
      this();
18801
      this.success = success;
18802
      setSuccessIsSet(true);
18803
    }
18804
 
18805
    /**
18806
     * Performs a deep copy on <i>other</i>.
18807
     */
18808
    public validateLogIn_result(validateLogIn_result other) {
18809
      __isset_bit_vector.clear();
18810
      __isset_bit_vector.or(other.__isset_bit_vector);
18811
      this.success = other.success;
18812
    }
18813
 
18814
    public validateLogIn_result deepCopy() {
18815
      return new validateLogIn_result(this);
18816
    }
18817
 
18818
    @Override
18819
    public void clear() {
18820
      setSuccessIsSet(false);
18821
      this.success = false;
18822
    }
18823
 
18824
    public boolean isSuccess() {
18825
      return this.success;
18826
    }
18827
 
18828
    public void setSuccess(boolean success) {
18829
      this.success = success;
18830
      setSuccessIsSet(true);
18831
    }
18832
 
18833
    public void unsetSuccess() {
18834
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
18835
    }
18836
 
18837
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
18838
    public boolean isSetSuccess() {
18839
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
18840
    }
18841
 
18842
    public void setSuccessIsSet(boolean value) {
18843
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
18844
    }
18845
 
18846
    public void setFieldValue(_Fields field, Object value) {
18847
      switch (field) {
18848
      case SUCCESS:
18849
        if (value == null) {
18850
          unsetSuccess();
18851
        } else {
18852
          setSuccess((Boolean)value);
18853
        }
18854
        break;
18855
 
18856
      }
18857
    }
18858
 
18859
    public Object getFieldValue(_Fields field) {
18860
      switch (field) {
18861
      case SUCCESS:
18862
        return Boolean.valueOf(isSuccess());
18863
 
18864
      }
18865
      throw new IllegalStateException();
18866
    }
18867
 
18868
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
18869
    public boolean isSet(_Fields field) {
18870
      if (field == null) {
18871
        throw new IllegalArgumentException();
18872
      }
18873
 
18874
      switch (field) {
18875
      case SUCCESS:
18876
        return isSetSuccess();
18877
      }
18878
      throw new IllegalStateException();
18879
    }
18880
 
18881
    @Override
18882
    public boolean equals(Object that) {
18883
      if (that == null)
18884
        return false;
18885
      if (that instanceof validateLogIn_result)
18886
        return this.equals((validateLogIn_result)that);
18887
      return false;
18888
    }
18889
 
18890
    public boolean equals(validateLogIn_result that) {
18891
      if (that == null)
18892
        return false;
18893
 
18894
      boolean this_present_success = true;
18895
      boolean that_present_success = true;
18896
      if (this_present_success || that_present_success) {
18897
        if (!(this_present_success && that_present_success))
18898
          return false;
18899
        if (this.success != that.success)
18900
          return false;
18901
      }
18902
 
18903
      return true;
18904
    }
18905
 
18906
    @Override
18907
    public int hashCode() {
18908
      return 0;
18909
    }
18910
 
18911
    public int compareTo(validateLogIn_result other) {
18912
      if (!getClass().equals(other.getClass())) {
18913
        return getClass().getName().compareTo(other.getClass().getName());
18914
      }
18915
 
18916
      int lastComparison = 0;
18917
      validateLogIn_result typedOther = (validateLogIn_result)other;
18918
 
18919
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
18920
      if (lastComparison != 0) {
18921
        return lastComparison;
18922
      }
18923
      if (isSetSuccess()) {
18924
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
18925
        if (lastComparison != 0) {
18926
          return lastComparison;
18927
        }
18928
      }
18929
      return 0;
18930
    }
18931
 
18932
    public _Fields fieldForId(int fieldId) {
18933
      return _Fields.findByThriftId(fieldId);
18934
    }
18935
 
18936
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
18937
      org.apache.thrift.protocol.TField field;
18938
      iprot.readStructBegin();
18939
      while (true)
18940
      {
18941
        field = iprot.readFieldBegin();
18942
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
18943
          break;
18944
        }
18945
        switch (field.id) {
18946
          case 0: // SUCCESS
18947
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
18948
              this.success = iprot.readBool();
18949
              setSuccessIsSet(true);
18950
            } else { 
18951
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18952
            }
18953
            break;
18954
          default:
18955
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
18956
        }
18957
        iprot.readFieldEnd();
18958
      }
18959
      iprot.readStructEnd();
18960
      validate();
18961
    }
18962
 
18963
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
18964
      oprot.writeStructBegin(STRUCT_DESC);
18965
 
18966
      if (this.isSetSuccess()) {
18967
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18968
        oprot.writeBool(this.success);
18969
        oprot.writeFieldEnd();
18970
      }
18971
      oprot.writeFieldStop();
18972
      oprot.writeStructEnd();
18973
    }
18974
 
18975
    @Override
18976
    public String toString() {
18977
      StringBuilder sb = new StringBuilder("validateLogIn_result(");
18978
      boolean first = true;
18979
 
18980
      sb.append("success:");
18981
      sb.append(this.success);
18982
      first = false;
18983
      sb.append(")");
18984
      return sb.toString();
18985
    }
18986
 
18987
    public void validate() throws org.apache.thrift.TException {
18988
      // check for required fields
18989
    }
18990
 
18991
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
18992
      try {
18993
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
18994
      } catch (org.apache.thrift.TException te) {
18995
        throw new java.io.IOException(te);
18996
      }
18997
    }
18998
 
18999
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19000
      try {
19001
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19002
      } catch (org.apache.thrift.TException te) {
19003
        throw new java.io.IOException(te);
19004
      }
19005
    }
19006
 
19007
  }
19008
 
19009
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
19010
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
19011
 
19012
    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);
19013
    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);
19014
 
19015
    private String agentEmailId; // required
19016
    private String password; // required
19017
 
19018
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19019
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19020
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
19021
      PASSWORD((short)2, "password");
19022
 
19023
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19024
 
19025
      static {
19026
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19027
          byName.put(field.getFieldName(), field);
19028
        }
19029
      }
19030
 
19031
      /**
19032
       * Find the _Fields constant that matches fieldId, or null if its not found.
19033
       */
19034
      public static _Fields findByThriftId(int fieldId) {
19035
        switch(fieldId) {
19036
          case 1: // AGENT_EMAIL_ID
19037
            return AGENT_EMAIL_ID;
19038
          case 2: // PASSWORD
19039
            return PASSWORD;
19040
          default:
19041
            return null;
19042
        }
19043
      }
19044
 
19045
      /**
19046
       * Find the _Fields constant that matches fieldId, throwing an exception
19047
       * if it is not found.
19048
       */
19049
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19050
        _Fields fields = findByThriftId(fieldId);
19051
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19052
        return fields;
19053
      }
19054
 
19055
      /**
19056
       * Find the _Fields constant that matches name, or null if its not found.
19057
       */
19058
      public static _Fields findByName(String name) {
19059
        return byName.get(name);
19060
      }
19061
 
19062
      private final short _thriftId;
19063
      private final String _fieldName;
19064
 
19065
      _Fields(short thriftId, String fieldName) {
19066
        _thriftId = thriftId;
19067
        _fieldName = fieldName;
19068
      }
19069
 
19070
      public short getThriftFieldId() {
19071
        return _thriftId;
19072
      }
19073
 
19074
      public String getFieldName() {
19075
        return _fieldName;
19076
      }
19077
    }
19078
 
19079
    // isset id assignments
19080
 
19081
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19082
    static {
19083
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19084
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19085
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19086
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19087
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19088
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19089
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
19090
    }
19091
 
19092
    public updatePasswordForAgent_args() {
19093
    }
19094
 
19095
    public updatePasswordForAgent_args(
19096
      String agentEmailId,
19097
      String password)
19098
    {
19099
      this();
19100
      this.agentEmailId = agentEmailId;
19101
      this.password = password;
19102
    }
19103
 
19104
    /**
19105
     * Performs a deep copy on <i>other</i>.
19106
     */
19107
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
19108
      if (other.isSetAgentEmailId()) {
19109
        this.agentEmailId = other.agentEmailId;
19110
      }
19111
      if (other.isSetPassword()) {
19112
        this.password = other.password;
19113
      }
19114
    }
19115
 
19116
    public updatePasswordForAgent_args deepCopy() {
19117
      return new updatePasswordForAgent_args(this);
19118
    }
19119
 
19120
    @Override
19121
    public void clear() {
19122
      this.agentEmailId = null;
19123
      this.password = null;
19124
    }
19125
 
19126
    public String getAgentEmailId() {
19127
      return this.agentEmailId;
19128
    }
19129
 
19130
    public void setAgentEmailId(String agentEmailId) {
19131
      this.agentEmailId = agentEmailId;
19132
    }
19133
 
19134
    public void unsetAgentEmailId() {
19135
      this.agentEmailId = null;
19136
    }
19137
 
19138
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
19139
    public boolean isSetAgentEmailId() {
19140
      return this.agentEmailId != null;
19141
    }
19142
 
19143
    public void setAgentEmailIdIsSet(boolean value) {
19144
      if (!value) {
19145
        this.agentEmailId = null;
19146
      }
19147
    }
19148
 
19149
    public String getPassword() {
19150
      return this.password;
19151
    }
19152
 
19153
    public void setPassword(String password) {
19154
      this.password = password;
19155
    }
19156
 
19157
    public void unsetPassword() {
19158
      this.password = null;
19159
    }
19160
 
19161
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
19162
    public boolean isSetPassword() {
19163
      return this.password != null;
19164
    }
19165
 
19166
    public void setPasswordIsSet(boolean value) {
19167
      if (!value) {
19168
        this.password = null;
19169
      }
19170
    }
19171
 
19172
    public void setFieldValue(_Fields field, Object value) {
19173
      switch (field) {
19174
      case AGENT_EMAIL_ID:
19175
        if (value == null) {
19176
          unsetAgentEmailId();
19177
        } else {
19178
          setAgentEmailId((String)value);
19179
        }
19180
        break;
19181
 
19182
      case PASSWORD:
19183
        if (value == null) {
19184
          unsetPassword();
19185
        } else {
19186
          setPassword((String)value);
19187
        }
19188
        break;
19189
 
19190
      }
19191
    }
19192
 
19193
    public Object getFieldValue(_Fields field) {
19194
      switch (field) {
19195
      case AGENT_EMAIL_ID:
19196
        return getAgentEmailId();
19197
 
19198
      case PASSWORD:
19199
        return getPassword();
19200
 
19201
      }
19202
      throw new IllegalStateException();
19203
    }
19204
 
19205
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19206
    public boolean isSet(_Fields field) {
19207
      if (field == null) {
19208
        throw new IllegalArgumentException();
19209
      }
19210
 
19211
      switch (field) {
19212
      case AGENT_EMAIL_ID:
19213
        return isSetAgentEmailId();
19214
      case PASSWORD:
19215
        return isSetPassword();
19216
      }
19217
      throw new IllegalStateException();
19218
    }
19219
 
19220
    @Override
19221
    public boolean equals(Object that) {
19222
      if (that == null)
19223
        return false;
19224
      if (that instanceof updatePasswordForAgent_args)
19225
        return this.equals((updatePasswordForAgent_args)that);
19226
      return false;
19227
    }
19228
 
19229
    public boolean equals(updatePasswordForAgent_args that) {
19230
      if (that == null)
19231
        return false;
19232
 
19233
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
19234
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
19235
      if (this_present_agentEmailId || that_present_agentEmailId) {
19236
        if (!(this_present_agentEmailId && that_present_agentEmailId))
19237
          return false;
19238
        if (!this.agentEmailId.equals(that.agentEmailId))
19239
          return false;
19240
      }
19241
 
19242
      boolean this_present_password = true && this.isSetPassword();
19243
      boolean that_present_password = true && that.isSetPassword();
19244
      if (this_present_password || that_present_password) {
19245
        if (!(this_present_password && that_present_password))
19246
          return false;
19247
        if (!this.password.equals(that.password))
19248
          return false;
19249
      }
19250
 
19251
      return true;
19252
    }
19253
 
19254
    @Override
19255
    public int hashCode() {
19256
      return 0;
19257
    }
19258
 
19259
    public int compareTo(updatePasswordForAgent_args other) {
19260
      if (!getClass().equals(other.getClass())) {
19261
        return getClass().getName().compareTo(other.getClass().getName());
19262
      }
19263
 
19264
      int lastComparison = 0;
19265
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
19266
 
19267
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
19268
      if (lastComparison != 0) {
19269
        return lastComparison;
19270
      }
19271
      if (isSetAgentEmailId()) {
19272
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
19273
        if (lastComparison != 0) {
19274
          return lastComparison;
19275
        }
19276
      }
19277
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
19278
      if (lastComparison != 0) {
19279
        return lastComparison;
19280
      }
19281
      if (isSetPassword()) {
19282
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
19283
        if (lastComparison != 0) {
19284
          return lastComparison;
19285
        }
19286
      }
19287
      return 0;
19288
    }
19289
 
19290
    public _Fields fieldForId(int fieldId) {
19291
      return _Fields.findByThriftId(fieldId);
19292
    }
19293
 
19294
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19295
      org.apache.thrift.protocol.TField field;
19296
      iprot.readStructBegin();
19297
      while (true)
19298
      {
19299
        field = iprot.readFieldBegin();
19300
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19301
          break;
19302
        }
19303
        switch (field.id) {
19304
          case 1: // AGENT_EMAIL_ID
19305
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19306
              this.agentEmailId = iprot.readString();
19307
            } else { 
19308
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19309
            }
19310
            break;
19311
          case 2: // PASSWORD
19312
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19313
              this.password = iprot.readString();
19314
            } else { 
19315
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19316
            }
19317
            break;
19318
          default:
19319
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19320
        }
19321
        iprot.readFieldEnd();
19322
      }
19323
      iprot.readStructEnd();
19324
      validate();
19325
    }
19326
 
19327
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19328
      validate();
19329
 
19330
      oprot.writeStructBegin(STRUCT_DESC);
19331
      if (this.agentEmailId != null) {
19332
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
19333
        oprot.writeString(this.agentEmailId);
19334
        oprot.writeFieldEnd();
19335
      }
19336
      if (this.password != null) {
19337
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
19338
        oprot.writeString(this.password);
19339
        oprot.writeFieldEnd();
19340
      }
19341
      oprot.writeFieldStop();
19342
      oprot.writeStructEnd();
19343
    }
19344
 
19345
    @Override
19346
    public String toString() {
19347
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
19348
      boolean first = true;
19349
 
19350
      sb.append("agentEmailId:");
19351
      if (this.agentEmailId == null) {
19352
        sb.append("null");
19353
      } else {
19354
        sb.append(this.agentEmailId);
19355
      }
19356
      first = false;
19357
      if (!first) sb.append(", ");
19358
      sb.append("password:");
19359
      if (this.password == null) {
19360
        sb.append("null");
19361
      } else {
19362
        sb.append(this.password);
19363
      }
19364
      first = false;
19365
      sb.append(")");
19366
      return sb.toString();
19367
    }
19368
 
19369
    public void validate() throws org.apache.thrift.TException {
19370
      // check for required fields
19371
    }
19372
 
19373
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19374
      try {
19375
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19376
      } catch (org.apache.thrift.TException te) {
19377
        throw new java.io.IOException(te);
19378
      }
19379
    }
19380
 
19381
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19382
      try {
19383
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19384
      } catch (org.apache.thrift.TException te) {
19385
        throw new java.io.IOException(te);
19386
      }
19387
    }
19388
 
19389
  }
19390
 
19391
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
19392
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
19393
 
19394
 
19395
 
19396
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19397
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19398
;
19399
 
19400
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19401
 
19402
      static {
19403
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19404
          byName.put(field.getFieldName(), field);
19405
        }
19406
      }
19407
 
19408
      /**
19409
       * Find the _Fields constant that matches fieldId, or null if its not found.
19410
       */
19411
      public static _Fields findByThriftId(int fieldId) {
19412
        switch(fieldId) {
19413
          default:
19414
            return null;
19415
        }
19416
      }
19417
 
19418
      /**
19419
       * Find the _Fields constant that matches fieldId, throwing an exception
19420
       * if it is not found.
19421
       */
19422
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19423
        _Fields fields = findByThriftId(fieldId);
19424
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19425
        return fields;
19426
      }
19427
 
19428
      /**
19429
       * Find the _Fields constant that matches name, or null if its not found.
19430
       */
19431
      public static _Fields findByName(String name) {
19432
        return byName.get(name);
19433
      }
19434
 
19435
      private final short _thriftId;
19436
      private final String _fieldName;
19437
 
19438
      _Fields(short thriftId, String fieldName) {
19439
        _thriftId = thriftId;
19440
        _fieldName = fieldName;
19441
      }
19442
 
19443
      public short getThriftFieldId() {
19444
        return _thriftId;
19445
      }
19446
 
19447
      public String getFieldName() {
19448
        return _fieldName;
19449
      }
19450
    }
19451
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19452
    static {
19453
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19454
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19455
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
19456
    }
19457
 
19458
    public updatePasswordForAgent_result() {
19459
    }
19460
 
19461
    /**
19462
     * Performs a deep copy on <i>other</i>.
19463
     */
19464
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
19465
    }
19466
 
19467
    public updatePasswordForAgent_result deepCopy() {
19468
      return new updatePasswordForAgent_result(this);
19469
    }
19470
 
19471
    @Override
19472
    public void clear() {
19473
    }
19474
 
19475
    public void setFieldValue(_Fields field, Object value) {
19476
      switch (field) {
19477
      }
19478
    }
19479
 
19480
    public Object getFieldValue(_Fields field) {
19481
      switch (field) {
19482
      }
19483
      throw new IllegalStateException();
19484
    }
19485
 
19486
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19487
    public boolean isSet(_Fields field) {
19488
      if (field == null) {
19489
        throw new IllegalArgumentException();
19490
      }
19491
 
19492
      switch (field) {
19493
      }
19494
      throw new IllegalStateException();
19495
    }
19496
 
19497
    @Override
19498
    public boolean equals(Object that) {
19499
      if (that == null)
19500
        return false;
19501
      if (that instanceof updatePasswordForAgent_result)
19502
        return this.equals((updatePasswordForAgent_result)that);
19503
      return false;
19504
    }
19505
 
19506
    public boolean equals(updatePasswordForAgent_result that) {
19507
      if (that == null)
19508
        return false;
19509
 
19510
      return true;
19511
    }
19512
 
19513
    @Override
19514
    public int hashCode() {
19515
      return 0;
19516
    }
19517
 
19518
    public int compareTo(updatePasswordForAgent_result other) {
19519
      if (!getClass().equals(other.getClass())) {
19520
        return getClass().getName().compareTo(other.getClass().getName());
19521
      }
19522
 
19523
      int lastComparison = 0;
19524
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
19525
 
19526
      return 0;
19527
    }
19528
 
19529
    public _Fields fieldForId(int fieldId) {
19530
      return _Fields.findByThriftId(fieldId);
19531
    }
19532
 
19533
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19534
      org.apache.thrift.protocol.TField field;
19535
      iprot.readStructBegin();
19536
      while (true)
19537
      {
19538
        field = iprot.readFieldBegin();
19539
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19540
          break;
19541
        }
19542
        switch (field.id) {
19543
          default:
19544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19545
        }
19546
        iprot.readFieldEnd();
19547
      }
19548
      iprot.readStructEnd();
19549
      validate();
19550
    }
19551
 
19552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19553
      oprot.writeStructBegin(STRUCT_DESC);
19554
 
19555
      oprot.writeFieldStop();
19556
      oprot.writeStructEnd();
19557
    }
19558
 
19559
    @Override
19560
    public String toString() {
19561
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
19562
      boolean first = true;
19563
 
19564
      sb.append(")");
19565
      return sb.toString();
19566
    }
19567
 
19568
    public void validate() throws org.apache.thrift.TException {
19569
      // check for required fields
19570
    }
19571
 
19572
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19573
      try {
19574
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19575
      } catch (org.apache.thrift.TException te) {
19576
        throw new java.io.IOException(te);
19577
      }
19578
    }
19579
 
19580
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19581
      try {
19582
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19583
      } catch (org.apache.thrift.TException te) {
19584
        throw new java.io.IOException(te);
19585
      }
19586
    }
19587
 
19588
  }
19589
 
19590
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
19591
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
19592
 
19593
    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);
19594
 
19595
    private String agentEmailId; // required
19596
 
19597
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19598
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19599
      AGENT_EMAIL_ID((short)1, "agentEmailId");
19600
 
19601
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19602
 
19603
      static {
19604
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19605
          byName.put(field.getFieldName(), field);
19606
        }
19607
      }
19608
 
19609
      /**
19610
       * Find the _Fields constant that matches fieldId, or null if its not found.
19611
       */
19612
      public static _Fields findByThriftId(int fieldId) {
19613
        switch(fieldId) {
19614
          case 1: // AGENT_EMAIL_ID
19615
            return AGENT_EMAIL_ID;
19616
          default:
19617
            return null;
19618
        }
19619
      }
19620
 
19621
      /**
19622
       * Find the _Fields constant that matches fieldId, throwing an exception
19623
       * if it is not found.
19624
       */
19625
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19626
        _Fields fields = findByThriftId(fieldId);
19627
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19628
        return fields;
19629
      }
19630
 
19631
      /**
19632
       * Find the _Fields constant that matches name, or null if its not found.
19633
       */
19634
      public static _Fields findByName(String name) {
19635
        return byName.get(name);
19636
      }
19637
 
19638
      private final short _thriftId;
19639
      private final String _fieldName;
19640
 
19641
      _Fields(short thriftId, String fieldName) {
19642
        _thriftId = thriftId;
19643
        _fieldName = fieldName;
19644
      }
19645
 
19646
      public short getThriftFieldId() {
19647
        return _thriftId;
19648
      }
19649
 
19650
      public String getFieldName() {
19651
        return _fieldName;
19652
      }
19653
    }
19654
 
19655
    // isset id assignments
19656
 
19657
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19658
    static {
19659
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19660
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19661
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
19662
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19663
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
19664
    }
19665
 
19666
    public getRoleNamesForAgent_args() {
19667
    }
19668
 
19669
    public getRoleNamesForAgent_args(
19670
      String agentEmailId)
19671
    {
19672
      this();
19673
      this.agentEmailId = agentEmailId;
19674
    }
19675
 
19676
    /**
19677
     * Performs a deep copy on <i>other</i>.
19678
     */
19679
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
19680
      if (other.isSetAgentEmailId()) {
19681
        this.agentEmailId = other.agentEmailId;
19682
      }
19683
    }
19684
 
19685
    public getRoleNamesForAgent_args deepCopy() {
19686
      return new getRoleNamesForAgent_args(this);
19687
    }
19688
 
19689
    @Override
19690
    public void clear() {
19691
      this.agentEmailId = null;
19692
    }
19693
 
19694
    public String getAgentEmailId() {
19695
      return this.agentEmailId;
19696
    }
19697
 
19698
    public void setAgentEmailId(String agentEmailId) {
19699
      this.agentEmailId = agentEmailId;
19700
    }
19701
 
19702
    public void unsetAgentEmailId() {
19703
      this.agentEmailId = null;
19704
    }
19705
 
19706
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
19707
    public boolean isSetAgentEmailId() {
19708
      return this.agentEmailId != null;
19709
    }
19710
 
19711
    public void setAgentEmailIdIsSet(boolean value) {
19712
      if (!value) {
19713
        this.agentEmailId = null;
19714
      }
19715
    }
19716
 
19717
    public void setFieldValue(_Fields field, Object value) {
19718
      switch (field) {
19719
      case AGENT_EMAIL_ID:
19720
        if (value == null) {
19721
          unsetAgentEmailId();
19722
        } else {
19723
          setAgentEmailId((String)value);
19724
        }
19725
        break;
19726
 
19727
      }
19728
    }
19729
 
19730
    public Object getFieldValue(_Fields field) {
19731
      switch (field) {
19732
      case AGENT_EMAIL_ID:
19733
        return getAgentEmailId();
19734
 
19735
      }
19736
      throw new IllegalStateException();
19737
    }
19738
 
19739
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
19740
    public boolean isSet(_Fields field) {
19741
      if (field == null) {
19742
        throw new IllegalArgumentException();
19743
      }
19744
 
19745
      switch (field) {
19746
      case AGENT_EMAIL_ID:
19747
        return isSetAgentEmailId();
19748
      }
19749
      throw new IllegalStateException();
19750
    }
19751
 
19752
    @Override
19753
    public boolean equals(Object that) {
19754
      if (that == null)
19755
        return false;
19756
      if (that instanceof getRoleNamesForAgent_args)
19757
        return this.equals((getRoleNamesForAgent_args)that);
19758
      return false;
19759
    }
19760
 
19761
    public boolean equals(getRoleNamesForAgent_args that) {
19762
      if (that == null)
19763
        return false;
19764
 
19765
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
19766
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
19767
      if (this_present_agentEmailId || that_present_agentEmailId) {
19768
        if (!(this_present_agentEmailId && that_present_agentEmailId))
19769
          return false;
19770
        if (!this.agentEmailId.equals(that.agentEmailId))
19771
          return false;
19772
      }
19773
 
19774
      return true;
19775
    }
19776
 
19777
    @Override
19778
    public int hashCode() {
19779
      return 0;
19780
    }
19781
 
19782
    public int compareTo(getRoleNamesForAgent_args other) {
19783
      if (!getClass().equals(other.getClass())) {
19784
        return getClass().getName().compareTo(other.getClass().getName());
19785
      }
19786
 
19787
      int lastComparison = 0;
19788
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
19789
 
19790
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
19791
      if (lastComparison != 0) {
19792
        return lastComparison;
19793
      }
19794
      if (isSetAgentEmailId()) {
19795
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
19796
        if (lastComparison != 0) {
19797
          return lastComparison;
19798
        }
19799
      }
19800
      return 0;
19801
    }
19802
 
19803
    public _Fields fieldForId(int fieldId) {
19804
      return _Fields.findByThriftId(fieldId);
19805
    }
19806
 
19807
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
19808
      org.apache.thrift.protocol.TField field;
19809
      iprot.readStructBegin();
19810
      while (true)
19811
      {
19812
        field = iprot.readFieldBegin();
19813
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
19814
          break;
19815
        }
19816
        switch (field.id) {
19817
          case 1: // AGENT_EMAIL_ID
19818
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
19819
              this.agentEmailId = iprot.readString();
19820
            } else { 
19821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19822
            }
19823
            break;
19824
          default:
19825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
19826
        }
19827
        iprot.readFieldEnd();
19828
      }
19829
      iprot.readStructEnd();
19830
      validate();
19831
    }
19832
 
19833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
19834
      validate();
19835
 
19836
      oprot.writeStructBegin(STRUCT_DESC);
19837
      if (this.agentEmailId != null) {
19838
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
19839
        oprot.writeString(this.agentEmailId);
19840
        oprot.writeFieldEnd();
19841
      }
19842
      oprot.writeFieldStop();
19843
      oprot.writeStructEnd();
19844
    }
19845
 
19846
    @Override
19847
    public String toString() {
19848
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
19849
      boolean first = true;
19850
 
19851
      sb.append("agentEmailId:");
19852
      if (this.agentEmailId == null) {
19853
        sb.append("null");
19854
      } else {
19855
        sb.append(this.agentEmailId);
19856
      }
19857
      first = false;
19858
      sb.append(")");
19859
      return sb.toString();
19860
    }
19861
 
19862
    public void validate() throws org.apache.thrift.TException {
19863
      // check for required fields
19864
    }
19865
 
19866
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
19867
      try {
19868
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
19869
      } catch (org.apache.thrift.TException te) {
19870
        throw new java.io.IOException(te);
19871
      }
19872
    }
19873
 
19874
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
19875
      try {
19876
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
19877
      } catch (org.apache.thrift.TException te) {
19878
        throw new java.io.IOException(te);
19879
      }
19880
    }
19881
 
19882
  }
19883
 
19884
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
19885
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
19886
 
19887
    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);
19888
 
19889
    private List<String> success; // required
19890
 
19891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
19892
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
19893
      SUCCESS((short)0, "success");
19894
 
19895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
19896
 
19897
      static {
19898
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
19899
          byName.put(field.getFieldName(), field);
19900
        }
19901
      }
19902
 
19903
      /**
19904
       * Find the _Fields constant that matches fieldId, or null if its not found.
19905
       */
19906
      public static _Fields findByThriftId(int fieldId) {
19907
        switch(fieldId) {
19908
          case 0: // SUCCESS
19909
            return SUCCESS;
19910
          default:
19911
            return null;
19912
        }
19913
      }
19914
 
19915
      /**
19916
       * Find the _Fields constant that matches fieldId, throwing an exception
19917
       * if it is not found.
19918
       */
19919
      public static _Fields findByThriftIdOrThrow(int fieldId) {
19920
        _Fields fields = findByThriftId(fieldId);
19921
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
19922
        return fields;
19923
      }
19924
 
19925
      /**
19926
       * Find the _Fields constant that matches name, or null if its not found.
19927
       */
19928
      public static _Fields findByName(String name) {
19929
        return byName.get(name);
19930
      }
19931
 
19932
      private final short _thriftId;
19933
      private final String _fieldName;
19934
 
19935
      _Fields(short thriftId, String fieldName) {
19936
        _thriftId = thriftId;
19937
        _fieldName = fieldName;
19938
      }
19939
 
19940
      public short getThriftFieldId() {
19941
        return _thriftId;
19942
      }
19943
 
19944
      public String getFieldName() {
19945
        return _fieldName;
19946
      }
19947
    }
19948
 
19949
    // isset id assignments
19950
 
19951
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
19952
    static {
19953
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
19954
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
19955
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
19956
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
19957
      metaDataMap = Collections.unmodifiableMap(tmpMap);
19958
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
19959
    }
19960
 
19961
    public getRoleNamesForAgent_result() {
19962
    }
19963
 
19964
    public getRoleNamesForAgent_result(
19965
      List<String> success)
19966
    {
19967
      this();
19968
      this.success = success;
19969
    }
19970
 
19971
    /**
19972
     * Performs a deep copy on <i>other</i>.
19973
     */
19974
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
19975
      if (other.isSetSuccess()) {
19976
        List<String> __this__success = new ArrayList<String>();
19977
        for (String other_element : other.success) {
19978
          __this__success.add(other_element);
19979
        }
19980
        this.success = __this__success;
19981
      }
19982
    }
19983
 
19984
    public getRoleNamesForAgent_result deepCopy() {
19985
      return new getRoleNamesForAgent_result(this);
19986
    }
19987
 
19988
    @Override
19989
    public void clear() {
19990
      this.success = null;
19991
    }
19992
 
19993
    public int getSuccessSize() {
19994
      return (this.success == null) ? 0 : this.success.size();
19995
    }
19996
 
19997
    public java.util.Iterator<String> getSuccessIterator() {
19998
      return (this.success == null) ? null : this.success.iterator();
19999
    }
20000
 
20001
    public void addToSuccess(String elem) {
20002
      if (this.success == null) {
20003
        this.success = new ArrayList<String>();
20004
      }
20005
      this.success.add(elem);
20006
    }
20007
 
20008
    public List<String> getSuccess() {
20009
      return this.success;
20010
    }
20011
 
20012
    public void setSuccess(List<String> success) {
20013
      this.success = success;
20014
    }
20015
 
20016
    public void unsetSuccess() {
20017
      this.success = null;
20018
    }
20019
 
20020
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20021
    public boolean isSetSuccess() {
20022
      return this.success != null;
20023
    }
20024
 
20025
    public void setSuccessIsSet(boolean value) {
20026
      if (!value) {
20027
        this.success = null;
20028
      }
20029
    }
20030
 
20031
    public void setFieldValue(_Fields field, Object value) {
20032
      switch (field) {
20033
      case SUCCESS:
20034
        if (value == null) {
20035
          unsetSuccess();
20036
        } else {
20037
          setSuccess((List<String>)value);
20038
        }
20039
        break;
20040
 
20041
      }
20042
    }
20043
 
20044
    public Object getFieldValue(_Fields field) {
20045
      switch (field) {
20046
      case SUCCESS:
20047
        return getSuccess();
20048
 
20049
      }
20050
      throw new IllegalStateException();
20051
    }
20052
 
20053
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20054
    public boolean isSet(_Fields field) {
20055
      if (field == null) {
20056
        throw new IllegalArgumentException();
20057
      }
20058
 
20059
      switch (field) {
20060
      case SUCCESS:
20061
        return isSetSuccess();
20062
      }
20063
      throw new IllegalStateException();
20064
    }
20065
 
20066
    @Override
20067
    public boolean equals(Object that) {
20068
      if (that == null)
20069
        return false;
20070
      if (that instanceof getRoleNamesForAgent_result)
20071
        return this.equals((getRoleNamesForAgent_result)that);
20072
      return false;
20073
    }
20074
 
20075
    public boolean equals(getRoleNamesForAgent_result that) {
20076
      if (that == null)
20077
        return false;
20078
 
20079
      boolean this_present_success = true && this.isSetSuccess();
20080
      boolean that_present_success = true && that.isSetSuccess();
20081
      if (this_present_success || that_present_success) {
20082
        if (!(this_present_success && that_present_success))
20083
          return false;
20084
        if (!this.success.equals(that.success))
20085
          return false;
20086
      }
20087
 
20088
      return true;
20089
    }
20090
 
20091
    @Override
20092
    public int hashCode() {
20093
      return 0;
20094
    }
20095
 
20096
    public int compareTo(getRoleNamesForAgent_result other) {
20097
      if (!getClass().equals(other.getClass())) {
20098
        return getClass().getName().compareTo(other.getClass().getName());
20099
      }
20100
 
20101
      int lastComparison = 0;
20102
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
20103
 
20104
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20105
      if (lastComparison != 0) {
20106
        return lastComparison;
20107
      }
20108
      if (isSetSuccess()) {
20109
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20110
        if (lastComparison != 0) {
20111
          return lastComparison;
20112
        }
20113
      }
20114
      return 0;
20115
    }
20116
 
20117
    public _Fields fieldForId(int fieldId) {
20118
      return _Fields.findByThriftId(fieldId);
20119
    }
20120
 
20121
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20122
      org.apache.thrift.protocol.TField field;
20123
      iprot.readStructBegin();
20124
      while (true)
20125
      {
20126
        field = iprot.readFieldBegin();
20127
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20128
          break;
20129
        }
20130
        switch (field.id) {
20131
          case 0: // SUCCESS
20132
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20133
              {
5864 rajveer 20134
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
20135
                this.success = new ArrayList<String>(_list53.size);
20136
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
4693 mandeep.dh 20137
                {
5864 rajveer 20138
                  String _elem55; // required
20139
                  _elem55 = iprot.readString();
20140
                  this.success.add(_elem55);
4693 mandeep.dh 20141
                }
20142
                iprot.readListEnd();
20143
              }
20144
            } else { 
20145
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20146
            }
20147
            break;
20148
          default:
20149
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20150
        }
20151
        iprot.readFieldEnd();
20152
      }
20153
      iprot.readStructEnd();
20154
      validate();
20155
    }
20156
 
20157
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20158
      oprot.writeStructBegin(STRUCT_DESC);
20159
 
20160
      if (this.isSetSuccess()) {
20161
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20162
        {
20163
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 20164
          for (String _iter56 : this.success)
4693 mandeep.dh 20165
          {
5864 rajveer 20166
            oprot.writeString(_iter56);
4693 mandeep.dh 20167
          }
20168
          oprot.writeListEnd();
20169
        }
20170
        oprot.writeFieldEnd();
20171
      }
20172
      oprot.writeFieldStop();
20173
      oprot.writeStructEnd();
20174
    }
20175
 
20176
    @Override
20177
    public String toString() {
20178
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
20179
      boolean first = true;
20180
 
20181
      sb.append("success:");
20182
      if (this.success == null) {
20183
        sb.append("null");
20184
      } else {
20185
        sb.append(this.success);
20186
      }
20187
      first = false;
20188
      sb.append(")");
20189
      return sb.toString();
20190
    }
20191
 
20192
    public void validate() throws org.apache.thrift.TException {
20193
      // check for required fields
20194
    }
20195
 
20196
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20197
      try {
20198
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20199
      } catch (org.apache.thrift.TException te) {
20200
        throw new java.io.IOException(te);
20201
      }
20202
    }
20203
 
20204
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20205
      try {
20206
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20207
      } catch (org.apache.thrift.TException te) {
20208
        throw new java.io.IOException(te);
20209
      }
20210
    }
20211
 
20212
  }
20213
 
20214
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
20215
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
20216
 
20217
    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);
20218
 
20219
    private String roleName; // required
20220
 
20221
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20222
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20223
      ROLE_NAME((short)1, "roleName");
20224
 
20225
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20226
 
20227
      static {
20228
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20229
          byName.put(field.getFieldName(), field);
20230
        }
20231
      }
20232
 
20233
      /**
20234
       * Find the _Fields constant that matches fieldId, or null if its not found.
20235
       */
20236
      public static _Fields findByThriftId(int fieldId) {
20237
        switch(fieldId) {
20238
          case 1: // ROLE_NAME
20239
            return ROLE_NAME;
20240
          default:
20241
            return null;
20242
        }
20243
      }
20244
 
20245
      /**
20246
       * Find the _Fields constant that matches fieldId, throwing an exception
20247
       * if it is not found.
20248
       */
20249
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20250
        _Fields fields = findByThriftId(fieldId);
20251
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20252
        return fields;
20253
      }
20254
 
20255
      /**
20256
       * Find the _Fields constant that matches name, or null if its not found.
20257
       */
20258
      public static _Fields findByName(String name) {
20259
        return byName.get(name);
20260
      }
20261
 
20262
      private final short _thriftId;
20263
      private final String _fieldName;
20264
 
20265
      _Fields(short thriftId, String fieldName) {
20266
        _thriftId = thriftId;
20267
        _fieldName = fieldName;
20268
      }
20269
 
20270
      public short getThriftFieldId() {
20271
        return _thriftId;
20272
      }
20273
 
20274
      public String getFieldName() {
20275
        return _fieldName;
20276
      }
20277
    }
20278
 
20279
    // isset id assignments
20280
 
20281
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20282
    static {
20283
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20284
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20285
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20286
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20287
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
20288
    }
20289
 
20290
    public getPermissionsForRoleName_args() {
20291
    }
20292
 
20293
    public getPermissionsForRoleName_args(
20294
      String roleName)
20295
    {
20296
      this();
20297
      this.roleName = roleName;
20298
    }
20299
 
20300
    /**
20301
     * Performs a deep copy on <i>other</i>.
20302
     */
20303
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
20304
      if (other.isSetRoleName()) {
20305
        this.roleName = other.roleName;
20306
      }
20307
    }
20308
 
20309
    public getPermissionsForRoleName_args deepCopy() {
20310
      return new getPermissionsForRoleName_args(this);
20311
    }
20312
 
20313
    @Override
20314
    public void clear() {
20315
      this.roleName = null;
20316
    }
20317
 
20318
    public String getRoleName() {
20319
      return this.roleName;
20320
    }
20321
 
20322
    public void setRoleName(String roleName) {
20323
      this.roleName = roleName;
20324
    }
20325
 
20326
    public void unsetRoleName() {
20327
      this.roleName = null;
20328
    }
20329
 
20330
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
20331
    public boolean isSetRoleName() {
20332
      return this.roleName != null;
20333
    }
20334
 
20335
    public void setRoleNameIsSet(boolean value) {
20336
      if (!value) {
20337
        this.roleName = null;
20338
      }
20339
    }
20340
 
20341
    public void setFieldValue(_Fields field, Object value) {
20342
      switch (field) {
20343
      case ROLE_NAME:
20344
        if (value == null) {
20345
          unsetRoleName();
20346
        } else {
20347
          setRoleName((String)value);
20348
        }
20349
        break;
20350
 
20351
      }
20352
    }
20353
 
20354
    public Object getFieldValue(_Fields field) {
20355
      switch (field) {
20356
      case ROLE_NAME:
20357
        return getRoleName();
20358
 
20359
      }
20360
      throw new IllegalStateException();
20361
    }
20362
 
20363
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20364
    public boolean isSet(_Fields field) {
20365
      if (field == null) {
20366
        throw new IllegalArgumentException();
20367
      }
20368
 
20369
      switch (field) {
20370
      case ROLE_NAME:
20371
        return isSetRoleName();
20372
      }
20373
      throw new IllegalStateException();
20374
    }
20375
 
20376
    @Override
20377
    public boolean equals(Object that) {
20378
      if (that == null)
20379
        return false;
20380
      if (that instanceof getPermissionsForRoleName_args)
20381
        return this.equals((getPermissionsForRoleName_args)that);
20382
      return false;
20383
    }
20384
 
20385
    public boolean equals(getPermissionsForRoleName_args that) {
20386
      if (that == null)
20387
        return false;
20388
 
20389
      boolean this_present_roleName = true && this.isSetRoleName();
20390
      boolean that_present_roleName = true && that.isSetRoleName();
20391
      if (this_present_roleName || that_present_roleName) {
20392
        if (!(this_present_roleName && that_present_roleName))
20393
          return false;
20394
        if (!this.roleName.equals(that.roleName))
20395
          return false;
20396
      }
20397
 
20398
      return true;
20399
    }
20400
 
20401
    @Override
20402
    public int hashCode() {
20403
      return 0;
20404
    }
20405
 
20406
    public int compareTo(getPermissionsForRoleName_args other) {
20407
      if (!getClass().equals(other.getClass())) {
20408
        return getClass().getName().compareTo(other.getClass().getName());
20409
      }
20410
 
20411
      int lastComparison = 0;
20412
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
20413
 
20414
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
20415
      if (lastComparison != 0) {
20416
        return lastComparison;
20417
      }
20418
      if (isSetRoleName()) {
20419
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
20420
        if (lastComparison != 0) {
20421
          return lastComparison;
20422
        }
20423
      }
20424
      return 0;
20425
    }
20426
 
20427
    public _Fields fieldForId(int fieldId) {
20428
      return _Fields.findByThriftId(fieldId);
20429
    }
20430
 
20431
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20432
      org.apache.thrift.protocol.TField field;
20433
      iprot.readStructBegin();
20434
      while (true)
20435
      {
20436
        field = iprot.readFieldBegin();
20437
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20438
          break;
20439
        }
20440
        switch (field.id) {
20441
          case 1: // ROLE_NAME
20442
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
20443
              this.roleName = iprot.readString();
20444
            } else { 
20445
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20446
            }
20447
            break;
20448
          default:
20449
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20450
        }
20451
        iprot.readFieldEnd();
20452
      }
20453
      iprot.readStructEnd();
20454
      validate();
20455
    }
20456
 
20457
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20458
      validate();
20459
 
20460
      oprot.writeStructBegin(STRUCT_DESC);
20461
      if (this.roleName != null) {
20462
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
20463
        oprot.writeString(this.roleName);
20464
        oprot.writeFieldEnd();
20465
      }
20466
      oprot.writeFieldStop();
20467
      oprot.writeStructEnd();
20468
    }
20469
 
20470
    @Override
20471
    public String toString() {
20472
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
20473
      boolean first = true;
20474
 
20475
      sb.append("roleName:");
20476
      if (this.roleName == null) {
20477
        sb.append("null");
20478
      } else {
20479
        sb.append(this.roleName);
20480
      }
20481
      first = false;
20482
      sb.append(")");
20483
      return sb.toString();
20484
    }
20485
 
20486
    public void validate() throws org.apache.thrift.TException {
20487
      // check for required fields
20488
    }
20489
 
20490
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20491
      try {
20492
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20493
      } catch (org.apache.thrift.TException te) {
20494
        throw new java.io.IOException(te);
20495
      }
20496
    }
20497
 
20498
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20499
      try {
20500
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20501
      } catch (org.apache.thrift.TException te) {
20502
        throw new java.io.IOException(te);
20503
      }
20504
    }
20505
 
20506
  }
20507
 
20508
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
20509
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
20510
 
20511
    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);
20512
 
20513
    private List<String> success; // required
20514
 
20515
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20516
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20517
      SUCCESS((short)0, "success");
20518
 
20519
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20520
 
20521
      static {
20522
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20523
          byName.put(field.getFieldName(), field);
20524
        }
20525
      }
20526
 
20527
      /**
20528
       * Find the _Fields constant that matches fieldId, or null if its not found.
20529
       */
20530
      public static _Fields findByThriftId(int fieldId) {
20531
        switch(fieldId) {
20532
          case 0: // SUCCESS
20533
            return SUCCESS;
20534
          default:
20535
            return null;
20536
        }
20537
      }
20538
 
20539
      /**
20540
       * Find the _Fields constant that matches fieldId, throwing an exception
20541
       * if it is not found.
20542
       */
20543
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20544
        _Fields fields = findByThriftId(fieldId);
20545
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20546
        return fields;
20547
      }
20548
 
20549
      /**
20550
       * Find the _Fields constant that matches name, or null if its not found.
20551
       */
20552
      public static _Fields findByName(String name) {
20553
        return byName.get(name);
20554
      }
20555
 
20556
      private final short _thriftId;
20557
      private final String _fieldName;
20558
 
20559
      _Fields(short thriftId, String fieldName) {
20560
        _thriftId = thriftId;
20561
        _fieldName = fieldName;
20562
      }
20563
 
20564
      public short getThriftFieldId() {
20565
        return _thriftId;
20566
      }
20567
 
20568
      public String getFieldName() {
20569
        return _fieldName;
20570
      }
20571
    }
20572
 
20573
    // isset id assignments
20574
 
20575
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20576
    static {
20577
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20578
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20579
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
20580
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
20581
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20582
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
20583
    }
20584
 
20585
    public getPermissionsForRoleName_result() {
20586
    }
20587
 
20588
    public getPermissionsForRoleName_result(
20589
      List<String> success)
20590
    {
20591
      this();
20592
      this.success = success;
20593
    }
20594
 
20595
    /**
20596
     * Performs a deep copy on <i>other</i>.
20597
     */
20598
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
20599
      if (other.isSetSuccess()) {
20600
        List<String> __this__success = new ArrayList<String>();
20601
        for (String other_element : other.success) {
20602
          __this__success.add(other_element);
20603
        }
20604
        this.success = __this__success;
20605
      }
20606
    }
20607
 
20608
    public getPermissionsForRoleName_result deepCopy() {
20609
      return new getPermissionsForRoleName_result(this);
20610
    }
20611
 
20612
    @Override
20613
    public void clear() {
20614
      this.success = null;
20615
    }
20616
 
20617
    public int getSuccessSize() {
20618
      return (this.success == null) ? 0 : this.success.size();
20619
    }
20620
 
20621
    public java.util.Iterator<String> getSuccessIterator() {
20622
      return (this.success == null) ? null : this.success.iterator();
20623
    }
20624
 
20625
    public void addToSuccess(String elem) {
20626
      if (this.success == null) {
20627
        this.success = new ArrayList<String>();
20628
      }
20629
      this.success.add(elem);
20630
    }
20631
 
20632
    public List<String> getSuccess() {
20633
      return this.success;
20634
    }
20635
 
20636
    public void setSuccess(List<String> success) {
20637
      this.success = success;
20638
    }
20639
 
20640
    public void unsetSuccess() {
20641
      this.success = null;
20642
    }
20643
 
20644
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
20645
    public boolean isSetSuccess() {
20646
      return this.success != null;
20647
    }
20648
 
20649
    public void setSuccessIsSet(boolean value) {
20650
      if (!value) {
20651
        this.success = null;
20652
      }
20653
    }
20654
 
20655
    public void setFieldValue(_Fields field, Object value) {
20656
      switch (field) {
20657
      case SUCCESS:
20658
        if (value == null) {
20659
          unsetSuccess();
20660
        } else {
20661
          setSuccess((List<String>)value);
20662
        }
20663
        break;
20664
 
20665
      }
20666
    }
20667
 
20668
    public Object getFieldValue(_Fields field) {
20669
      switch (field) {
20670
      case SUCCESS:
20671
        return getSuccess();
20672
 
20673
      }
20674
      throw new IllegalStateException();
20675
    }
20676
 
20677
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
20678
    public boolean isSet(_Fields field) {
20679
      if (field == null) {
20680
        throw new IllegalArgumentException();
20681
      }
20682
 
20683
      switch (field) {
20684
      case SUCCESS:
20685
        return isSetSuccess();
20686
      }
20687
      throw new IllegalStateException();
20688
    }
20689
 
20690
    @Override
20691
    public boolean equals(Object that) {
20692
      if (that == null)
20693
        return false;
20694
      if (that instanceof getPermissionsForRoleName_result)
20695
        return this.equals((getPermissionsForRoleName_result)that);
20696
      return false;
20697
    }
20698
 
20699
    public boolean equals(getPermissionsForRoleName_result that) {
20700
      if (that == null)
20701
        return false;
20702
 
20703
      boolean this_present_success = true && this.isSetSuccess();
20704
      boolean that_present_success = true && that.isSetSuccess();
20705
      if (this_present_success || that_present_success) {
20706
        if (!(this_present_success && that_present_success))
20707
          return false;
20708
        if (!this.success.equals(that.success))
20709
          return false;
20710
      }
20711
 
20712
      return true;
20713
    }
20714
 
20715
    @Override
20716
    public int hashCode() {
20717
      return 0;
20718
    }
20719
 
20720
    public int compareTo(getPermissionsForRoleName_result other) {
20721
      if (!getClass().equals(other.getClass())) {
20722
        return getClass().getName().compareTo(other.getClass().getName());
20723
      }
20724
 
20725
      int lastComparison = 0;
20726
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
20727
 
20728
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
20729
      if (lastComparison != 0) {
20730
        return lastComparison;
20731
      }
20732
      if (isSetSuccess()) {
20733
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
20734
        if (lastComparison != 0) {
20735
          return lastComparison;
20736
        }
20737
      }
20738
      return 0;
20739
    }
20740
 
20741
    public _Fields fieldForId(int fieldId) {
20742
      return _Fields.findByThriftId(fieldId);
20743
    }
20744
 
20745
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
20746
      org.apache.thrift.protocol.TField field;
20747
      iprot.readStructBegin();
20748
      while (true)
20749
      {
20750
        field = iprot.readFieldBegin();
20751
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
20752
          break;
20753
        }
20754
        switch (field.id) {
20755
          case 0: // SUCCESS
20756
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
20757
              {
5864 rajveer 20758
                org.apache.thrift.protocol.TList _list57 = iprot.readListBegin();
20759
                this.success = new ArrayList<String>(_list57.size);
20760
                for (int _i58 = 0; _i58 < _list57.size; ++_i58)
4693 mandeep.dh 20761
                {
5864 rajveer 20762
                  String _elem59; // required
20763
                  _elem59 = iprot.readString();
20764
                  this.success.add(_elem59);
4693 mandeep.dh 20765
                }
20766
                iprot.readListEnd();
20767
              }
20768
            } else { 
20769
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20770
            }
20771
            break;
20772
          default:
20773
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
20774
        }
20775
        iprot.readFieldEnd();
20776
      }
20777
      iprot.readStructEnd();
20778
      validate();
20779
    }
20780
 
20781
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
20782
      oprot.writeStructBegin(STRUCT_DESC);
20783
 
20784
      if (this.isSetSuccess()) {
20785
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
20786
        {
20787
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 20788
          for (String _iter60 : this.success)
4693 mandeep.dh 20789
          {
5864 rajveer 20790
            oprot.writeString(_iter60);
4693 mandeep.dh 20791
          }
20792
          oprot.writeListEnd();
20793
        }
20794
        oprot.writeFieldEnd();
20795
      }
20796
      oprot.writeFieldStop();
20797
      oprot.writeStructEnd();
20798
    }
20799
 
20800
    @Override
20801
    public String toString() {
20802
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
20803
      boolean first = true;
20804
 
20805
      sb.append("success:");
20806
      if (this.success == null) {
20807
        sb.append("null");
20808
      } else {
20809
        sb.append(this.success);
20810
      }
20811
      first = false;
20812
      sb.append(")");
20813
      return sb.toString();
20814
    }
20815
 
20816
    public void validate() throws org.apache.thrift.TException {
20817
      // check for required fields
20818
    }
20819
 
20820
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
20821
      try {
20822
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
20823
      } catch (org.apache.thrift.TException te) {
20824
        throw new java.io.IOException(te);
20825
      }
20826
    }
20827
 
20828
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
20829
      try {
20830
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
20831
      } catch (org.apache.thrift.TException te) {
20832
        throw new java.io.IOException(te);
20833
      }
20834
    }
20835
 
20836
  }
20837
 
4806 varun.gupt 20838
  public static class saveQuickLink_args implements org.apache.thrift.TBase<saveQuickLink_args, saveQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
20839
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_args");
20840
 
20841
    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);
20842
    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);
20843
 
20844
    private String url; // required
20845
    private String text; // required
20846
 
20847
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
20848
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
20849
      URL((short)1, "url"),
20850
      TEXT((short)2, "text");
20851
 
20852
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
20853
 
20854
      static {
20855
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
20856
          byName.put(field.getFieldName(), field);
20857
        }
20858
      }
20859
 
20860
      /**
20861
       * Find the _Fields constant that matches fieldId, or null if its not found.
20862
       */
20863
      public static _Fields findByThriftId(int fieldId) {
20864
        switch(fieldId) {
20865
          case 1: // URL
20866
            return URL;
20867
          case 2: // TEXT
20868
            return TEXT;
20869
          default:
20870
            return null;
20871
        }
20872
      }
20873
 
20874
      /**
20875
       * Find the _Fields constant that matches fieldId, throwing an exception
20876
       * if it is not found.
20877
       */
20878
      public static _Fields findByThriftIdOrThrow(int fieldId) {
20879
        _Fields fields = findByThriftId(fieldId);
20880
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
20881
        return fields;
20882
      }
20883
 
20884
      /**
20885
       * Find the _Fields constant that matches name, or null if its not found.
20886
       */
20887
      public static _Fields findByName(String name) {
20888
        return byName.get(name);
20889
      }
20890
 
20891
      private final short _thriftId;
20892
      private final String _fieldName;
20893
 
20894
      _Fields(short thriftId, String fieldName) {
20895
        _thriftId = thriftId;
20896
        _fieldName = fieldName;
20897
      }
20898
 
20899
      public short getThriftFieldId() {
20900
        return _thriftId;
20901
      }
20902
 
20903
      public String getFieldName() {
20904
        return _fieldName;
20905
      }
20906
    }
20907
 
20908
    // isset id assignments
20909
 
20910
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
20911
    static {
20912
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
20913
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20914
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20915
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
20916
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
20917
      metaDataMap = Collections.unmodifiableMap(tmpMap);
20918
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_args.class, metaDataMap);
20919
    }
20920
 
20921
    public saveQuickLink_args() {
20922
    }
20923
 
20924
    public saveQuickLink_args(
20925
      String url,
20926
      String text)
20927
    {
20928
      this();
20929
      this.url = url;
20930
      this.text = text;
20931
    }
20932
 
20933
    /**
20934
     * Performs a deep copy on <i>other</i>.
20935
     */
20936
    public saveQuickLink_args(saveQuickLink_args other) {
20937
      if (other.isSetUrl()) {
20938
        this.url = other.url;
20939
      }
20940
      if (other.isSetText()) {
20941
        this.text = other.text;
20942
      }
20943
    }
20944
 
20945
    public saveQuickLink_args deepCopy() {
20946
      return new saveQuickLink_args(this);
20947
    }
20948
 
20949
    @Override
20950
    public void clear() {
20951
      this.url = null;
20952
      this.text = null;
20953
    }
20954
 
20955
    public String getUrl() {
20956
      return this.url;
20957
    }
20958
 
20959
    public void setUrl(String url) {
20960
      this.url = url;
20961
    }
20962
 
20963
    public void unsetUrl() {
20964
      this.url = null;
20965
    }
20966
 
20967
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
20968
    public boolean isSetUrl() {
20969
      return this.url != null;
20970
    }
20971
 
20972
    public void setUrlIsSet(boolean value) {
20973
      if (!value) {
20974
        this.url = null;
20975
      }
20976
    }
20977
 
20978
    public String getText() {
20979
      return this.text;
20980
    }
20981
 
20982
    public void setText(String text) {
20983
      this.text = text;
20984
    }
20985
 
20986
    public void unsetText() {
20987
      this.text = null;
20988
    }
20989
 
20990
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
20991
    public boolean isSetText() {
20992
      return this.text != null;
20993
    }
20994
 
20995
    public void setTextIsSet(boolean value) {
20996
      if (!value) {
20997
        this.text = null;
20998
      }
20999
    }
21000
 
21001
    public void setFieldValue(_Fields field, Object value) {
21002
      switch (field) {
21003
      case URL:
21004
        if (value == null) {
21005
          unsetUrl();
21006
        } else {
21007
          setUrl((String)value);
21008
        }
21009
        break;
21010
 
21011
      case TEXT:
21012
        if (value == null) {
21013
          unsetText();
21014
        } else {
21015
          setText((String)value);
21016
        }
21017
        break;
21018
 
21019
      }
21020
    }
21021
 
21022
    public Object getFieldValue(_Fields field) {
21023
      switch (field) {
21024
      case URL:
21025
        return getUrl();
21026
 
21027
      case TEXT:
21028
        return getText();
21029
 
21030
      }
21031
      throw new IllegalStateException();
21032
    }
21033
 
21034
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21035
    public boolean isSet(_Fields field) {
21036
      if (field == null) {
21037
        throw new IllegalArgumentException();
21038
      }
21039
 
21040
      switch (field) {
21041
      case URL:
21042
        return isSetUrl();
21043
      case TEXT:
21044
        return isSetText();
21045
      }
21046
      throw new IllegalStateException();
21047
    }
21048
 
21049
    @Override
21050
    public boolean equals(Object that) {
21051
      if (that == null)
21052
        return false;
21053
      if (that instanceof saveQuickLink_args)
21054
        return this.equals((saveQuickLink_args)that);
21055
      return false;
21056
    }
21057
 
21058
    public boolean equals(saveQuickLink_args that) {
21059
      if (that == null)
21060
        return false;
21061
 
21062
      boolean this_present_url = true && this.isSetUrl();
21063
      boolean that_present_url = true && that.isSetUrl();
21064
      if (this_present_url || that_present_url) {
21065
        if (!(this_present_url && that_present_url))
21066
          return false;
21067
        if (!this.url.equals(that.url))
21068
          return false;
21069
      }
21070
 
21071
      boolean this_present_text = true && this.isSetText();
21072
      boolean that_present_text = true && that.isSetText();
21073
      if (this_present_text || that_present_text) {
21074
        if (!(this_present_text && that_present_text))
21075
          return false;
21076
        if (!this.text.equals(that.text))
21077
          return false;
21078
      }
21079
 
21080
      return true;
21081
    }
21082
 
21083
    @Override
21084
    public int hashCode() {
21085
      return 0;
21086
    }
21087
 
21088
    public int compareTo(saveQuickLink_args other) {
21089
      if (!getClass().equals(other.getClass())) {
21090
        return getClass().getName().compareTo(other.getClass().getName());
21091
      }
21092
 
21093
      int lastComparison = 0;
21094
      saveQuickLink_args typedOther = (saveQuickLink_args)other;
21095
 
21096
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
21097
      if (lastComparison != 0) {
21098
        return lastComparison;
21099
      }
21100
      if (isSetUrl()) {
21101
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
21102
        if (lastComparison != 0) {
21103
          return lastComparison;
21104
        }
21105
      }
21106
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
21107
      if (lastComparison != 0) {
21108
        return lastComparison;
21109
      }
21110
      if (isSetText()) {
21111
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
21112
        if (lastComparison != 0) {
21113
          return lastComparison;
21114
        }
21115
      }
21116
      return 0;
21117
    }
21118
 
21119
    public _Fields fieldForId(int fieldId) {
21120
      return _Fields.findByThriftId(fieldId);
21121
    }
21122
 
21123
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21124
      org.apache.thrift.protocol.TField field;
21125
      iprot.readStructBegin();
21126
      while (true)
21127
      {
21128
        field = iprot.readFieldBegin();
21129
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21130
          break;
21131
        }
21132
        switch (field.id) {
21133
          case 1: // URL
21134
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21135
              this.url = iprot.readString();
21136
            } else { 
21137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21138
            }
21139
            break;
21140
          case 2: // TEXT
21141
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
21142
              this.text = iprot.readString();
21143
            } else { 
21144
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21145
            }
21146
            break;
21147
          default:
21148
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21149
        }
21150
        iprot.readFieldEnd();
21151
      }
21152
      iprot.readStructEnd();
21153
      validate();
21154
    }
21155
 
21156
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21157
      validate();
21158
 
21159
      oprot.writeStructBegin(STRUCT_DESC);
21160
      if (this.url != null) {
21161
        oprot.writeFieldBegin(URL_FIELD_DESC);
21162
        oprot.writeString(this.url);
21163
        oprot.writeFieldEnd();
21164
      }
21165
      if (this.text != null) {
21166
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
21167
        oprot.writeString(this.text);
21168
        oprot.writeFieldEnd();
21169
      }
21170
      oprot.writeFieldStop();
21171
      oprot.writeStructEnd();
21172
    }
21173
 
21174
    @Override
21175
    public String toString() {
21176
      StringBuilder sb = new StringBuilder("saveQuickLink_args(");
21177
      boolean first = true;
21178
 
21179
      sb.append("url:");
21180
      if (this.url == null) {
21181
        sb.append("null");
21182
      } else {
21183
        sb.append(this.url);
21184
      }
21185
      first = false;
21186
      if (!first) sb.append(", ");
21187
      sb.append("text:");
21188
      if (this.text == null) {
21189
        sb.append("null");
21190
      } else {
21191
        sb.append(this.text);
21192
      }
21193
      first = false;
21194
      sb.append(")");
21195
      return sb.toString();
21196
    }
21197
 
21198
    public void validate() throws org.apache.thrift.TException {
21199
      // check for required fields
21200
    }
21201
 
21202
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21203
      try {
21204
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21205
      } catch (org.apache.thrift.TException te) {
21206
        throw new java.io.IOException(te);
21207
      }
21208
    }
21209
 
21210
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21211
      try {
21212
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21213
      } catch (org.apache.thrift.TException te) {
21214
        throw new java.io.IOException(te);
21215
      }
21216
    }
21217
 
21218
  }
21219
 
21220
  public static class saveQuickLink_result implements org.apache.thrift.TBase<saveQuickLink_result, saveQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
21221
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveQuickLink_result");
21222
 
21223
    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);
21224
 
21225
    private HelperServiceException hse; // required
21226
 
21227
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21228
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21229
      HSE((short)1, "hse");
21230
 
21231
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21232
 
21233
      static {
21234
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21235
          byName.put(field.getFieldName(), field);
21236
        }
21237
      }
21238
 
21239
      /**
21240
       * Find the _Fields constant that matches fieldId, or null if its not found.
21241
       */
21242
      public static _Fields findByThriftId(int fieldId) {
21243
        switch(fieldId) {
21244
          case 1: // HSE
21245
            return HSE;
21246
          default:
21247
            return null;
21248
        }
21249
      }
21250
 
21251
      /**
21252
       * Find the _Fields constant that matches fieldId, throwing an exception
21253
       * if it is not found.
21254
       */
21255
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21256
        _Fields fields = findByThriftId(fieldId);
21257
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21258
        return fields;
21259
      }
21260
 
21261
      /**
21262
       * Find the _Fields constant that matches name, or null if its not found.
21263
       */
21264
      public static _Fields findByName(String name) {
21265
        return byName.get(name);
21266
      }
21267
 
21268
      private final short _thriftId;
21269
      private final String _fieldName;
21270
 
21271
      _Fields(short thriftId, String fieldName) {
21272
        _thriftId = thriftId;
21273
        _fieldName = fieldName;
21274
      }
21275
 
21276
      public short getThriftFieldId() {
21277
        return _thriftId;
21278
      }
21279
 
21280
      public String getFieldName() {
21281
        return _fieldName;
21282
      }
21283
    }
21284
 
21285
    // isset id assignments
21286
 
21287
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21288
    static {
21289
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21290
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21291
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21292
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21293
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveQuickLink_result.class, metaDataMap);
21294
    }
21295
 
21296
    public saveQuickLink_result() {
21297
    }
21298
 
21299
    public saveQuickLink_result(
21300
      HelperServiceException hse)
21301
    {
21302
      this();
21303
      this.hse = hse;
21304
    }
21305
 
21306
    /**
21307
     * Performs a deep copy on <i>other</i>.
21308
     */
21309
    public saveQuickLink_result(saveQuickLink_result other) {
21310
      if (other.isSetHse()) {
21311
        this.hse = new HelperServiceException(other.hse);
21312
      }
21313
    }
21314
 
21315
    public saveQuickLink_result deepCopy() {
21316
      return new saveQuickLink_result(this);
21317
    }
21318
 
21319
    @Override
21320
    public void clear() {
21321
      this.hse = null;
21322
    }
21323
 
21324
    public HelperServiceException getHse() {
21325
      return this.hse;
21326
    }
21327
 
21328
    public void setHse(HelperServiceException hse) {
21329
      this.hse = hse;
21330
    }
21331
 
21332
    public void unsetHse() {
21333
      this.hse = null;
21334
    }
21335
 
21336
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21337
    public boolean isSetHse() {
21338
      return this.hse != null;
21339
    }
21340
 
21341
    public void setHseIsSet(boolean value) {
21342
      if (!value) {
21343
        this.hse = null;
21344
      }
21345
    }
21346
 
21347
    public void setFieldValue(_Fields field, Object value) {
21348
      switch (field) {
21349
      case HSE:
21350
        if (value == null) {
21351
          unsetHse();
21352
        } else {
21353
          setHse((HelperServiceException)value);
21354
        }
21355
        break;
21356
 
21357
      }
21358
    }
21359
 
21360
    public Object getFieldValue(_Fields field) {
21361
      switch (field) {
21362
      case HSE:
21363
        return getHse();
21364
 
21365
      }
21366
      throw new IllegalStateException();
21367
    }
21368
 
21369
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21370
    public boolean isSet(_Fields field) {
21371
      if (field == null) {
21372
        throw new IllegalArgumentException();
21373
      }
21374
 
21375
      switch (field) {
21376
      case HSE:
21377
        return isSetHse();
21378
      }
21379
      throw new IllegalStateException();
21380
    }
21381
 
21382
    @Override
21383
    public boolean equals(Object that) {
21384
      if (that == null)
21385
        return false;
21386
      if (that instanceof saveQuickLink_result)
21387
        return this.equals((saveQuickLink_result)that);
21388
      return false;
21389
    }
21390
 
21391
    public boolean equals(saveQuickLink_result that) {
21392
      if (that == null)
21393
        return false;
21394
 
21395
      boolean this_present_hse = true && this.isSetHse();
21396
      boolean that_present_hse = true && that.isSetHse();
21397
      if (this_present_hse || that_present_hse) {
21398
        if (!(this_present_hse && that_present_hse))
21399
          return false;
21400
        if (!this.hse.equals(that.hse))
21401
          return false;
21402
      }
21403
 
21404
      return true;
21405
    }
21406
 
21407
    @Override
21408
    public int hashCode() {
21409
      return 0;
21410
    }
21411
 
21412
    public int compareTo(saveQuickLink_result other) {
21413
      if (!getClass().equals(other.getClass())) {
21414
        return getClass().getName().compareTo(other.getClass().getName());
21415
      }
21416
 
21417
      int lastComparison = 0;
21418
      saveQuickLink_result typedOther = (saveQuickLink_result)other;
21419
 
21420
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
21421
      if (lastComparison != 0) {
21422
        return lastComparison;
21423
      }
21424
      if (isSetHse()) {
21425
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
21426
        if (lastComparison != 0) {
21427
          return lastComparison;
21428
        }
21429
      }
21430
      return 0;
21431
    }
21432
 
21433
    public _Fields fieldForId(int fieldId) {
21434
      return _Fields.findByThriftId(fieldId);
21435
    }
21436
 
21437
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21438
      org.apache.thrift.protocol.TField field;
21439
      iprot.readStructBegin();
21440
      while (true)
21441
      {
21442
        field = iprot.readFieldBegin();
21443
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21444
          break;
21445
        }
21446
        switch (field.id) {
21447
          case 1: // HSE
21448
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
21449
              this.hse = new HelperServiceException();
21450
              this.hse.read(iprot);
21451
            } else { 
21452
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21453
            }
21454
            break;
21455
          default:
21456
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21457
        }
21458
        iprot.readFieldEnd();
21459
      }
21460
      iprot.readStructEnd();
21461
      validate();
21462
    }
21463
 
21464
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21465
      oprot.writeStructBegin(STRUCT_DESC);
21466
 
21467
      if (this.isSetHse()) {
21468
        oprot.writeFieldBegin(HSE_FIELD_DESC);
21469
        this.hse.write(oprot);
21470
        oprot.writeFieldEnd();
21471
      }
21472
      oprot.writeFieldStop();
21473
      oprot.writeStructEnd();
21474
    }
21475
 
21476
    @Override
21477
    public String toString() {
21478
      StringBuilder sb = new StringBuilder("saveQuickLink_result(");
21479
      boolean first = true;
21480
 
21481
      sb.append("hse:");
21482
      if (this.hse == null) {
21483
        sb.append("null");
21484
      } else {
21485
        sb.append(this.hse);
21486
      }
21487
      first = false;
21488
      sb.append(")");
21489
      return sb.toString();
21490
    }
21491
 
21492
    public void validate() throws org.apache.thrift.TException {
21493
      // check for required fields
21494
    }
21495
 
21496
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21497
      try {
21498
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21499
      } catch (org.apache.thrift.TException te) {
21500
        throw new java.io.IOException(te);
21501
      }
21502
    }
21503
 
21504
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21505
      try {
21506
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21507
      } catch (org.apache.thrift.TException te) {
21508
        throw new java.io.IOException(te);
21509
      }
21510
    }
21511
 
21512
  }
21513
 
21514
  public static class getQuickLinks_args implements org.apache.thrift.TBase<getQuickLinks_args, getQuickLinks_args._Fields>, java.io.Serializable, Cloneable   {
21515
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_args");
21516
 
21517
 
21518
 
21519
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21520
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21521
;
21522
 
21523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21524
 
21525
      static {
21526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21527
          byName.put(field.getFieldName(), field);
21528
        }
21529
      }
21530
 
21531
      /**
21532
       * Find the _Fields constant that matches fieldId, or null if its not found.
21533
       */
21534
      public static _Fields findByThriftId(int fieldId) {
21535
        switch(fieldId) {
21536
          default:
21537
            return null;
21538
        }
21539
      }
21540
 
21541
      /**
21542
       * Find the _Fields constant that matches fieldId, throwing an exception
21543
       * if it is not found.
21544
       */
21545
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21546
        _Fields fields = findByThriftId(fieldId);
21547
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21548
        return fields;
21549
      }
21550
 
21551
      /**
21552
       * Find the _Fields constant that matches name, or null if its not found.
21553
       */
21554
      public static _Fields findByName(String name) {
21555
        return byName.get(name);
21556
      }
21557
 
21558
      private final short _thriftId;
21559
      private final String _fieldName;
21560
 
21561
      _Fields(short thriftId, String fieldName) {
21562
        _thriftId = thriftId;
21563
        _fieldName = fieldName;
21564
      }
21565
 
21566
      public short getThriftFieldId() {
21567
        return _thriftId;
21568
      }
21569
 
21570
      public String getFieldName() {
21571
        return _fieldName;
21572
      }
21573
    }
21574
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21575
    static {
21576
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21577
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21578
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_args.class, metaDataMap);
21579
    }
21580
 
21581
    public getQuickLinks_args() {
21582
    }
21583
 
21584
    /**
21585
     * Performs a deep copy on <i>other</i>.
21586
     */
21587
    public getQuickLinks_args(getQuickLinks_args other) {
21588
    }
21589
 
21590
    public getQuickLinks_args deepCopy() {
21591
      return new getQuickLinks_args(this);
21592
    }
21593
 
21594
    @Override
21595
    public void clear() {
21596
    }
21597
 
21598
    public void setFieldValue(_Fields field, Object value) {
21599
      switch (field) {
21600
      }
21601
    }
21602
 
21603
    public Object getFieldValue(_Fields field) {
21604
      switch (field) {
21605
      }
21606
      throw new IllegalStateException();
21607
    }
21608
 
21609
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21610
    public boolean isSet(_Fields field) {
21611
      if (field == null) {
21612
        throw new IllegalArgumentException();
21613
      }
21614
 
21615
      switch (field) {
21616
      }
21617
      throw new IllegalStateException();
21618
    }
21619
 
21620
    @Override
21621
    public boolean equals(Object that) {
21622
      if (that == null)
21623
        return false;
21624
      if (that instanceof getQuickLinks_args)
21625
        return this.equals((getQuickLinks_args)that);
21626
      return false;
21627
    }
21628
 
21629
    public boolean equals(getQuickLinks_args that) {
21630
      if (that == null)
21631
        return false;
21632
 
21633
      return true;
21634
    }
21635
 
21636
    @Override
21637
    public int hashCode() {
21638
      return 0;
21639
    }
21640
 
21641
    public int compareTo(getQuickLinks_args other) {
21642
      if (!getClass().equals(other.getClass())) {
21643
        return getClass().getName().compareTo(other.getClass().getName());
21644
      }
21645
 
21646
      int lastComparison = 0;
21647
      getQuickLinks_args typedOther = (getQuickLinks_args)other;
21648
 
21649
      return 0;
21650
    }
21651
 
21652
    public _Fields fieldForId(int fieldId) {
21653
      return _Fields.findByThriftId(fieldId);
21654
    }
21655
 
21656
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
21657
      org.apache.thrift.protocol.TField field;
21658
      iprot.readStructBegin();
21659
      while (true)
21660
      {
21661
        field = iprot.readFieldBegin();
21662
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
21663
          break;
21664
        }
21665
        switch (field.id) {
21666
          default:
21667
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
21668
        }
21669
        iprot.readFieldEnd();
21670
      }
21671
      iprot.readStructEnd();
21672
      validate();
21673
    }
21674
 
21675
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
21676
      validate();
21677
 
21678
      oprot.writeStructBegin(STRUCT_DESC);
21679
      oprot.writeFieldStop();
21680
      oprot.writeStructEnd();
21681
    }
21682
 
21683
    @Override
21684
    public String toString() {
21685
      StringBuilder sb = new StringBuilder("getQuickLinks_args(");
21686
      boolean first = true;
21687
 
21688
      sb.append(")");
21689
      return sb.toString();
21690
    }
21691
 
21692
    public void validate() throws org.apache.thrift.TException {
21693
      // check for required fields
21694
    }
21695
 
21696
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
21697
      try {
21698
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
21699
      } catch (org.apache.thrift.TException te) {
21700
        throw new java.io.IOException(te);
21701
      }
21702
    }
21703
 
21704
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
21705
      try {
21706
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
21707
      } catch (org.apache.thrift.TException te) {
21708
        throw new java.io.IOException(te);
21709
      }
21710
    }
21711
 
21712
  }
21713
 
21714
  public static class getQuickLinks_result implements org.apache.thrift.TBase<getQuickLinks_result, getQuickLinks_result._Fields>, java.io.Serializable, Cloneable   {
21715
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getQuickLinks_result");
21716
 
21717
    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);
21718
    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);
21719
 
21720
    private List<QuickLink> success; // required
21721
    private HelperServiceException hse; // required
21722
 
21723
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
21724
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
21725
      SUCCESS((short)0, "success"),
21726
      HSE((short)1, "hse");
21727
 
21728
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
21729
 
21730
      static {
21731
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
21732
          byName.put(field.getFieldName(), field);
21733
        }
21734
      }
21735
 
21736
      /**
21737
       * Find the _Fields constant that matches fieldId, or null if its not found.
21738
       */
21739
      public static _Fields findByThriftId(int fieldId) {
21740
        switch(fieldId) {
21741
          case 0: // SUCCESS
21742
            return SUCCESS;
21743
          case 1: // HSE
21744
            return HSE;
21745
          default:
21746
            return null;
21747
        }
21748
      }
21749
 
21750
      /**
21751
       * Find the _Fields constant that matches fieldId, throwing an exception
21752
       * if it is not found.
21753
       */
21754
      public static _Fields findByThriftIdOrThrow(int fieldId) {
21755
        _Fields fields = findByThriftId(fieldId);
21756
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
21757
        return fields;
21758
      }
21759
 
21760
      /**
21761
       * Find the _Fields constant that matches name, or null if its not found.
21762
       */
21763
      public static _Fields findByName(String name) {
21764
        return byName.get(name);
21765
      }
21766
 
21767
      private final short _thriftId;
21768
      private final String _fieldName;
21769
 
21770
      _Fields(short thriftId, String fieldName) {
21771
        _thriftId = thriftId;
21772
        _fieldName = fieldName;
21773
      }
21774
 
21775
      public short getThriftFieldId() {
21776
        return _thriftId;
21777
      }
21778
 
21779
      public String getFieldName() {
21780
        return _fieldName;
21781
      }
21782
    }
21783
 
21784
    // isset id assignments
21785
 
21786
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
21787
    static {
21788
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
21789
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21790
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
21791
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, QuickLink.class))));
21792
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
21793
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
21794
      metaDataMap = Collections.unmodifiableMap(tmpMap);
21795
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getQuickLinks_result.class, metaDataMap);
21796
    }
21797
 
21798
    public getQuickLinks_result() {
21799
    }
21800
 
21801
    public getQuickLinks_result(
21802
      List<QuickLink> success,
21803
      HelperServiceException hse)
21804
    {
21805
      this();
21806
      this.success = success;
21807
      this.hse = hse;
21808
    }
21809
 
21810
    /**
21811
     * Performs a deep copy on <i>other</i>.
21812
     */
21813
    public getQuickLinks_result(getQuickLinks_result other) {
21814
      if (other.isSetSuccess()) {
21815
        List<QuickLink> __this__success = new ArrayList<QuickLink>();
21816
        for (QuickLink other_element : other.success) {
21817
          __this__success.add(new QuickLink(other_element));
21818
        }
21819
        this.success = __this__success;
21820
      }
21821
      if (other.isSetHse()) {
21822
        this.hse = new HelperServiceException(other.hse);
21823
      }
21824
    }
21825
 
21826
    public getQuickLinks_result deepCopy() {
21827
      return new getQuickLinks_result(this);
21828
    }
21829
 
21830
    @Override
21831
    public void clear() {
21832
      this.success = null;
21833
      this.hse = null;
21834
    }
21835
 
21836
    public int getSuccessSize() {
21837
      return (this.success == null) ? 0 : this.success.size();
21838
    }
21839
 
21840
    public java.util.Iterator<QuickLink> getSuccessIterator() {
21841
      return (this.success == null) ? null : this.success.iterator();
21842
    }
21843
 
21844
    public void addToSuccess(QuickLink elem) {
21845
      if (this.success == null) {
21846
        this.success = new ArrayList<QuickLink>();
21847
      }
21848
      this.success.add(elem);
21849
    }
21850
 
21851
    public List<QuickLink> getSuccess() {
21852
      return this.success;
21853
    }
21854
 
21855
    public void setSuccess(List<QuickLink> success) {
21856
      this.success = success;
21857
    }
21858
 
21859
    public void unsetSuccess() {
21860
      this.success = null;
21861
    }
21862
 
21863
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
21864
    public boolean isSetSuccess() {
21865
      return this.success != null;
21866
    }
21867
 
21868
    public void setSuccessIsSet(boolean value) {
21869
      if (!value) {
21870
        this.success = null;
21871
      }
21872
    }
21873
 
21874
    public HelperServiceException getHse() {
21875
      return this.hse;
21876
    }
21877
 
21878
    public void setHse(HelperServiceException hse) {
21879
      this.hse = hse;
21880
    }
21881
 
21882
    public void unsetHse() {
21883
      this.hse = null;
21884
    }
21885
 
21886
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
21887
    public boolean isSetHse() {
21888
      return this.hse != null;
21889
    }
21890
 
21891
    public void setHseIsSet(boolean value) {
21892
      if (!value) {
21893
        this.hse = null;
21894
      }
21895
    }
21896
 
21897
    public void setFieldValue(_Fields field, Object value) {
21898
      switch (field) {
21899
      case SUCCESS:
21900
        if (value == null) {
21901
          unsetSuccess();
21902
        } else {
21903
          setSuccess((List<QuickLink>)value);
21904
        }
21905
        break;
21906
 
21907
      case HSE:
21908
        if (value == null) {
21909
          unsetHse();
21910
        } else {
21911
          setHse((HelperServiceException)value);
21912
        }
21913
        break;
21914
 
21915
      }
21916
    }
21917
 
21918
    public Object getFieldValue(_Fields field) {
21919
      switch (field) {
21920
      case SUCCESS:
21921
        return getSuccess();
21922
 
21923
      case HSE:
21924
        return getHse();
21925
 
21926
      }
21927
      throw new IllegalStateException();
21928
    }
21929
 
21930
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
21931
    public boolean isSet(_Fields field) {
21932
      if (field == null) {
21933
        throw new IllegalArgumentException();
21934
      }
21935
 
21936
      switch (field) {
21937
      case SUCCESS:
21938
        return isSetSuccess();
21939
      case HSE:
21940
        return isSetHse();
21941
      }
21942
      throw new IllegalStateException();
21943
    }
21944
 
21945
    @Override
21946
    public boolean equals(Object that) {
21947
      if (that == null)
21948
        return false;
21949
      if (that instanceof getQuickLinks_result)
21950
        return this.equals((getQuickLinks_result)that);
21951
      return false;
21952
    }
21953
 
21954
    public boolean equals(getQuickLinks_result that) {
21955
      if (that == null)
21956
        return false;
21957
 
21958
      boolean this_present_success = true && this.isSetSuccess();
21959
      boolean that_present_success = true && that.isSetSuccess();
21960
      if (this_present_success || that_present_success) {
21961
        if (!(this_present_success && that_present_success))
21962
          return false;
21963
        if (!this.success.equals(that.success))
21964
          return false;
21965
      }
21966
 
21967
      boolean this_present_hse = true && this.isSetHse();
21968
      boolean that_present_hse = true && that.isSetHse();
21969
      if (this_present_hse || that_present_hse) {
21970
        if (!(this_present_hse && that_present_hse))
21971
          return false;
21972
        if (!this.hse.equals(that.hse))
21973
          return false;
21974
      }
21975
 
21976
      return true;
21977
    }
21978
 
21979
    @Override
21980
    public int hashCode() {
21981
      return 0;
21982
    }
21983
 
21984
    public int compareTo(getQuickLinks_result other) {
21985
      if (!getClass().equals(other.getClass())) {
21986
        return getClass().getName().compareTo(other.getClass().getName());
21987
      }
21988
 
21989
      int lastComparison = 0;
21990
      getQuickLinks_result typedOther = (getQuickLinks_result)other;
21991
 
21992
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
21993
      if (lastComparison != 0) {
21994
        return lastComparison;
21995
      }
21996
      if (isSetSuccess()) {
21997
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
21998
        if (lastComparison != 0) {
21999
          return lastComparison;
22000
        }
22001
      }
22002
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22003
      if (lastComparison != 0) {
22004
        return lastComparison;
22005
      }
22006
      if (isSetHse()) {
22007
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22008
        if (lastComparison != 0) {
22009
          return lastComparison;
22010
        }
22011
      }
22012
      return 0;
22013
    }
22014
 
22015
    public _Fields fieldForId(int fieldId) {
22016
      return _Fields.findByThriftId(fieldId);
22017
    }
22018
 
22019
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22020
      org.apache.thrift.protocol.TField field;
22021
      iprot.readStructBegin();
22022
      while (true)
22023
      {
22024
        field = iprot.readFieldBegin();
22025
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22026
          break;
22027
        }
22028
        switch (field.id) {
22029
          case 0: // SUCCESS
22030
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
22031
              {
5864 rajveer 22032
                org.apache.thrift.protocol.TList _list61 = iprot.readListBegin();
22033
                this.success = new ArrayList<QuickLink>(_list61.size);
22034
                for (int _i62 = 0; _i62 < _list61.size; ++_i62)
4806 varun.gupt 22035
                {
5864 rajveer 22036
                  QuickLink _elem63; // required
22037
                  _elem63 = new QuickLink();
22038
                  _elem63.read(iprot);
22039
                  this.success.add(_elem63);
4806 varun.gupt 22040
                }
22041
                iprot.readListEnd();
22042
              }
22043
            } else { 
22044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22045
            }
22046
            break;
22047
          case 1: // HSE
22048
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22049
              this.hse = new HelperServiceException();
22050
              this.hse.read(iprot);
22051
            } else { 
22052
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22053
            }
22054
            break;
22055
          default:
22056
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22057
        }
22058
        iprot.readFieldEnd();
22059
      }
22060
      iprot.readStructEnd();
22061
      validate();
22062
    }
22063
 
22064
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22065
      oprot.writeStructBegin(STRUCT_DESC);
22066
 
22067
      if (this.isSetSuccess()) {
22068
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
22069
        {
22070
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5864 rajveer 22071
          for (QuickLink _iter64 : this.success)
4806 varun.gupt 22072
          {
5864 rajveer 22073
            _iter64.write(oprot);
4806 varun.gupt 22074
          }
22075
          oprot.writeListEnd();
22076
        }
22077
        oprot.writeFieldEnd();
22078
      } else if (this.isSetHse()) {
22079
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22080
        this.hse.write(oprot);
22081
        oprot.writeFieldEnd();
22082
      }
22083
      oprot.writeFieldStop();
22084
      oprot.writeStructEnd();
22085
    }
22086
 
22087
    @Override
22088
    public String toString() {
22089
      StringBuilder sb = new StringBuilder("getQuickLinks_result(");
22090
      boolean first = true;
22091
 
22092
      sb.append("success:");
22093
      if (this.success == null) {
22094
        sb.append("null");
22095
      } else {
22096
        sb.append(this.success);
22097
      }
22098
      first = false;
22099
      if (!first) sb.append(", ");
22100
      sb.append("hse:");
22101
      if (this.hse == null) {
22102
        sb.append("null");
22103
      } else {
22104
        sb.append(this.hse);
22105
      }
22106
      first = false;
22107
      sb.append(")");
22108
      return sb.toString();
22109
    }
22110
 
22111
    public void validate() throws org.apache.thrift.TException {
22112
      // check for required fields
22113
    }
22114
 
22115
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22116
      try {
22117
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22118
      } catch (org.apache.thrift.TException te) {
22119
        throw new java.io.IOException(te);
22120
      }
22121
    }
22122
 
22123
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22124
      try {
22125
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22126
      } catch (org.apache.thrift.TException te) {
22127
        throw new java.io.IOException(te);
22128
      }
22129
    }
22130
 
22131
  }
22132
 
4996 varun.gupt 22133
  public static class updateQuickLink_args implements org.apache.thrift.TBase<updateQuickLink_args, updateQuickLink_args._Fields>, java.io.Serializable, Cloneable   {
22134
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_args");
22135
 
22136
    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);
22137
    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);
22138
    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);
22139
 
22140
    private long id; // required
22141
    private String url; // required
22142
    private String text; // required
22143
 
22144
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22145
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22146
      ID((short)1, "id"),
22147
      URL((short)2, "url"),
22148
      TEXT((short)3, "text");
22149
 
22150
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22151
 
22152
      static {
22153
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22154
          byName.put(field.getFieldName(), field);
22155
        }
22156
      }
22157
 
22158
      /**
22159
       * Find the _Fields constant that matches fieldId, or null if its not found.
22160
       */
22161
      public static _Fields findByThriftId(int fieldId) {
22162
        switch(fieldId) {
22163
          case 1: // ID
22164
            return ID;
22165
          case 2: // URL
22166
            return URL;
22167
          case 3: // TEXT
22168
            return TEXT;
22169
          default:
22170
            return null;
22171
        }
22172
      }
22173
 
22174
      /**
22175
       * Find the _Fields constant that matches fieldId, throwing an exception
22176
       * if it is not found.
22177
       */
22178
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22179
        _Fields fields = findByThriftId(fieldId);
22180
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22181
        return fields;
22182
      }
22183
 
22184
      /**
22185
       * Find the _Fields constant that matches name, or null if its not found.
22186
       */
22187
      public static _Fields findByName(String name) {
22188
        return byName.get(name);
22189
      }
22190
 
22191
      private final short _thriftId;
22192
      private final String _fieldName;
22193
 
22194
      _Fields(short thriftId, String fieldName) {
22195
        _thriftId = thriftId;
22196
        _fieldName = fieldName;
22197
      }
22198
 
22199
      public short getThriftFieldId() {
22200
        return _thriftId;
22201
      }
22202
 
22203
      public String getFieldName() {
22204
        return _fieldName;
22205
      }
22206
    }
22207
 
22208
    // isset id assignments
22209
    private static final int __ID_ISSET_ID = 0;
22210
    private BitSet __isset_bit_vector = new BitSet(1);
22211
 
22212
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22213
    static {
22214
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22215
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22216
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22217
      tmpMap.put(_Fields.URL, new org.apache.thrift.meta_data.FieldMetaData("url", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22218
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22219
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22220
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
22221
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22222
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_args.class, metaDataMap);
22223
    }
22224
 
22225
    public updateQuickLink_args() {
22226
    }
22227
 
22228
    public updateQuickLink_args(
22229
      long id,
22230
      String url,
22231
      String text)
22232
    {
22233
      this();
22234
      this.id = id;
22235
      setIdIsSet(true);
22236
      this.url = url;
22237
      this.text = text;
22238
    }
22239
 
22240
    /**
22241
     * Performs a deep copy on <i>other</i>.
22242
     */
22243
    public updateQuickLink_args(updateQuickLink_args other) {
22244
      __isset_bit_vector.clear();
22245
      __isset_bit_vector.or(other.__isset_bit_vector);
22246
      this.id = other.id;
22247
      if (other.isSetUrl()) {
22248
        this.url = other.url;
22249
      }
22250
      if (other.isSetText()) {
22251
        this.text = other.text;
22252
      }
22253
    }
22254
 
22255
    public updateQuickLink_args deepCopy() {
22256
      return new updateQuickLink_args(this);
22257
    }
22258
 
22259
    @Override
22260
    public void clear() {
22261
      setIdIsSet(false);
22262
      this.id = 0;
22263
      this.url = null;
22264
      this.text = null;
22265
    }
22266
 
22267
    public long getId() {
22268
      return this.id;
22269
    }
22270
 
22271
    public void setId(long id) {
22272
      this.id = id;
22273
      setIdIsSet(true);
22274
    }
22275
 
22276
    public void unsetId() {
22277
      __isset_bit_vector.clear(__ID_ISSET_ID);
22278
    }
22279
 
22280
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
22281
    public boolean isSetId() {
22282
      return __isset_bit_vector.get(__ID_ISSET_ID);
22283
    }
22284
 
22285
    public void setIdIsSet(boolean value) {
22286
      __isset_bit_vector.set(__ID_ISSET_ID, value);
22287
    }
22288
 
22289
    public String getUrl() {
22290
      return this.url;
22291
    }
22292
 
22293
    public void setUrl(String url) {
22294
      this.url = url;
22295
    }
22296
 
22297
    public void unsetUrl() {
22298
      this.url = null;
22299
    }
22300
 
22301
    /** Returns true if field url is set (has been assigned a value) and false otherwise */
22302
    public boolean isSetUrl() {
22303
      return this.url != null;
22304
    }
22305
 
22306
    public void setUrlIsSet(boolean value) {
22307
      if (!value) {
22308
        this.url = null;
22309
      }
22310
    }
22311
 
22312
    public String getText() {
22313
      return this.text;
22314
    }
22315
 
22316
    public void setText(String text) {
22317
      this.text = text;
22318
    }
22319
 
22320
    public void unsetText() {
22321
      this.text = null;
22322
    }
22323
 
22324
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
22325
    public boolean isSetText() {
22326
      return this.text != null;
22327
    }
22328
 
22329
    public void setTextIsSet(boolean value) {
22330
      if (!value) {
22331
        this.text = null;
22332
      }
22333
    }
22334
 
22335
    public void setFieldValue(_Fields field, Object value) {
22336
      switch (field) {
22337
      case ID:
22338
        if (value == null) {
22339
          unsetId();
22340
        } else {
22341
          setId((Long)value);
22342
        }
22343
        break;
22344
 
22345
      case URL:
22346
        if (value == null) {
22347
          unsetUrl();
22348
        } else {
22349
          setUrl((String)value);
22350
        }
22351
        break;
22352
 
22353
      case TEXT:
22354
        if (value == null) {
22355
          unsetText();
22356
        } else {
22357
          setText((String)value);
22358
        }
22359
        break;
22360
 
22361
      }
22362
    }
22363
 
22364
    public Object getFieldValue(_Fields field) {
22365
      switch (field) {
22366
      case ID:
22367
        return Long.valueOf(getId());
22368
 
22369
      case URL:
22370
        return getUrl();
22371
 
22372
      case TEXT:
22373
        return getText();
22374
 
22375
      }
22376
      throw new IllegalStateException();
22377
    }
22378
 
22379
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22380
    public boolean isSet(_Fields field) {
22381
      if (field == null) {
22382
        throw new IllegalArgumentException();
22383
      }
22384
 
22385
      switch (field) {
22386
      case ID:
22387
        return isSetId();
22388
      case URL:
22389
        return isSetUrl();
22390
      case TEXT:
22391
        return isSetText();
22392
      }
22393
      throw new IllegalStateException();
22394
    }
22395
 
22396
    @Override
22397
    public boolean equals(Object that) {
22398
      if (that == null)
22399
        return false;
22400
      if (that instanceof updateQuickLink_args)
22401
        return this.equals((updateQuickLink_args)that);
22402
      return false;
22403
    }
22404
 
22405
    public boolean equals(updateQuickLink_args that) {
22406
      if (that == null)
22407
        return false;
22408
 
22409
      boolean this_present_id = true;
22410
      boolean that_present_id = true;
22411
      if (this_present_id || that_present_id) {
22412
        if (!(this_present_id && that_present_id))
22413
          return false;
22414
        if (this.id != that.id)
22415
          return false;
22416
      }
22417
 
22418
      boolean this_present_url = true && this.isSetUrl();
22419
      boolean that_present_url = true && that.isSetUrl();
22420
      if (this_present_url || that_present_url) {
22421
        if (!(this_present_url && that_present_url))
22422
          return false;
22423
        if (!this.url.equals(that.url))
22424
          return false;
22425
      }
22426
 
22427
      boolean this_present_text = true && this.isSetText();
22428
      boolean that_present_text = true && that.isSetText();
22429
      if (this_present_text || that_present_text) {
22430
        if (!(this_present_text && that_present_text))
22431
          return false;
22432
        if (!this.text.equals(that.text))
22433
          return false;
22434
      }
22435
 
22436
      return true;
22437
    }
22438
 
22439
    @Override
22440
    public int hashCode() {
22441
      return 0;
22442
    }
22443
 
22444
    public int compareTo(updateQuickLink_args other) {
22445
      if (!getClass().equals(other.getClass())) {
22446
        return getClass().getName().compareTo(other.getClass().getName());
22447
      }
22448
 
22449
      int lastComparison = 0;
22450
      updateQuickLink_args typedOther = (updateQuickLink_args)other;
22451
 
22452
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
22453
      if (lastComparison != 0) {
22454
        return lastComparison;
22455
      }
22456
      if (isSetId()) {
22457
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
22458
        if (lastComparison != 0) {
22459
          return lastComparison;
22460
        }
22461
      }
22462
      lastComparison = Boolean.valueOf(isSetUrl()).compareTo(typedOther.isSetUrl());
22463
      if (lastComparison != 0) {
22464
        return lastComparison;
22465
      }
22466
      if (isSetUrl()) {
22467
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.url, typedOther.url);
22468
        if (lastComparison != 0) {
22469
          return lastComparison;
22470
        }
22471
      }
22472
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
22473
      if (lastComparison != 0) {
22474
        return lastComparison;
22475
      }
22476
      if (isSetText()) {
22477
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
22478
        if (lastComparison != 0) {
22479
          return lastComparison;
22480
        }
22481
      }
22482
      return 0;
22483
    }
22484
 
22485
    public _Fields fieldForId(int fieldId) {
22486
      return _Fields.findByThriftId(fieldId);
22487
    }
22488
 
22489
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22490
      org.apache.thrift.protocol.TField field;
22491
      iprot.readStructBegin();
22492
      while (true)
22493
      {
22494
        field = iprot.readFieldBegin();
22495
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22496
          break;
22497
        }
22498
        switch (field.id) {
22499
          case 1: // ID
22500
            if (field.type == org.apache.thrift.protocol.TType.I64) {
22501
              this.id = iprot.readI64();
22502
              setIdIsSet(true);
22503
            } else { 
22504
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22505
            }
22506
            break;
22507
          case 2: // URL
22508
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22509
              this.url = iprot.readString();
22510
            } else { 
22511
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22512
            }
22513
            break;
22514
          case 3: // TEXT
22515
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
22516
              this.text = iprot.readString();
22517
            } else { 
22518
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22519
            }
22520
            break;
22521
          default:
22522
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22523
        }
22524
        iprot.readFieldEnd();
22525
      }
22526
      iprot.readStructEnd();
22527
      validate();
22528
    }
22529
 
22530
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22531
      validate();
22532
 
22533
      oprot.writeStructBegin(STRUCT_DESC);
22534
      oprot.writeFieldBegin(ID_FIELD_DESC);
22535
      oprot.writeI64(this.id);
22536
      oprot.writeFieldEnd();
22537
      if (this.url != null) {
22538
        oprot.writeFieldBegin(URL_FIELD_DESC);
22539
        oprot.writeString(this.url);
22540
        oprot.writeFieldEnd();
22541
      }
22542
      if (this.text != null) {
22543
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
22544
        oprot.writeString(this.text);
22545
        oprot.writeFieldEnd();
22546
      }
22547
      oprot.writeFieldStop();
22548
      oprot.writeStructEnd();
22549
    }
22550
 
22551
    @Override
22552
    public String toString() {
22553
      StringBuilder sb = new StringBuilder("updateQuickLink_args(");
22554
      boolean first = true;
22555
 
22556
      sb.append("id:");
22557
      sb.append(this.id);
22558
      first = false;
22559
      if (!first) sb.append(", ");
22560
      sb.append("url:");
22561
      if (this.url == null) {
22562
        sb.append("null");
22563
      } else {
22564
        sb.append(this.url);
22565
      }
22566
      first = false;
22567
      if (!first) sb.append(", ");
22568
      sb.append("text:");
22569
      if (this.text == null) {
22570
        sb.append("null");
22571
      } else {
22572
        sb.append(this.text);
22573
      }
22574
      first = false;
22575
      sb.append(")");
22576
      return sb.toString();
22577
    }
22578
 
22579
    public void validate() throws org.apache.thrift.TException {
22580
      // check for required fields
22581
    }
22582
 
22583
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22584
      try {
22585
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22586
      } catch (org.apache.thrift.TException te) {
22587
        throw new java.io.IOException(te);
22588
      }
22589
    }
22590
 
22591
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22592
      try {
22593
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
22594
        __isset_bit_vector = new BitSet(1);
22595
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22596
      } catch (org.apache.thrift.TException te) {
22597
        throw new java.io.IOException(te);
22598
      }
22599
    }
22600
 
22601
  }
22602
 
22603
  public static class updateQuickLink_result implements org.apache.thrift.TBase<updateQuickLink_result, updateQuickLink_result._Fields>, java.io.Serializable, Cloneable   {
22604
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateQuickLink_result");
22605
 
22606
    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);
22607
 
22608
    private HelperServiceException hse; // required
22609
 
22610
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22611
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22612
      HSE((short)1, "hse");
22613
 
22614
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22615
 
22616
      static {
22617
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22618
          byName.put(field.getFieldName(), field);
22619
        }
22620
      }
22621
 
22622
      /**
22623
       * Find the _Fields constant that matches fieldId, or null if its not found.
22624
       */
22625
      public static _Fields findByThriftId(int fieldId) {
22626
        switch(fieldId) {
22627
          case 1: // HSE
22628
            return HSE;
22629
          default:
22630
            return null;
22631
        }
22632
      }
22633
 
22634
      /**
22635
       * Find the _Fields constant that matches fieldId, throwing an exception
22636
       * if it is not found.
22637
       */
22638
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22639
        _Fields fields = findByThriftId(fieldId);
22640
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22641
        return fields;
22642
      }
22643
 
22644
      /**
22645
       * Find the _Fields constant that matches name, or null if its not found.
22646
       */
22647
      public static _Fields findByName(String name) {
22648
        return byName.get(name);
22649
      }
22650
 
22651
      private final short _thriftId;
22652
      private final String _fieldName;
22653
 
22654
      _Fields(short thriftId, String fieldName) {
22655
        _thriftId = thriftId;
22656
        _fieldName = fieldName;
22657
      }
22658
 
22659
      public short getThriftFieldId() {
22660
        return _thriftId;
22661
      }
22662
 
22663
      public String getFieldName() {
22664
        return _fieldName;
22665
      }
22666
    }
22667
 
22668
    // isset id assignments
22669
 
22670
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22671
    static {
22672
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22673
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22674
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
22675
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22676
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateQuickLink_result.class, metaDataMap);
22677
    }
22678
 
22679
    public updateQuickLink_result() {
22680
    }
22681
 
22682
    public updateQuickLink_result(
22683
      HelperServiceException hse)
22684
    {
22685
      this();
22686
      this.hse = hse;
22687
    }
22688
 
22689
    /**
22690
     * Performs a deep copy on <i>other</i>.
22691
     */
22692
    public updateQuickLink_result(updateQuickLink_result other) {
22693
      if (other.isSetHse()) {
22694
        this.hse = new HelperServiceException(other.hse);
22695
      }
22696
    }
22697
 
22698
    public updateQuickLink_result deepCopy() {
22699
      return new updateQuickLink_result(this);
22700
    }
22701
 
22702
    @Override
22703
    public void clear() {
22704
      this.hse = null;
22705
    }
22706
 
22707
    public HelperServiceException getHse() {
22708
      return this.hse;
22709
    }
22710
 
22711
    public void setHse(HelperServiceException hse) {
22712
      this.hse = hse;
22713
    }
22714
 
22715
    public void unsetHse() {
22716
      this.hse = null;
22717
    }
22718
 
22719
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
22720
    public boolean isSetHse() {
22721
      return this.hse != null;
22722
    }
22723
 
22724
    public void setHseIsSet(boolean value) {
22725
      if (!value) {
22726
        this.hse = null;
22727
      }
22728
    }
22729
 
22730
    public void setFieldValue(_Fields field, Object value) {
22731
      switch (field) {
22732
      case HSE:
22733
        if (value == null) {
22734
          unsetHse();
22735
        } else {
22736
          setHse((HelperServiceException)value);
22737
        }
22738
        break;
22739
 
22740
      }
22741
    }
22742
 
22743
    public Object getFieldValue(_Fields field) {
22744
      switch (field) {
22745
      case HSE:
22746
        return getHse();
22747
 
22748
      }
22749
      throw new IllegalStateException();
22750
    }
22751
 
22752
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
22753
    public boolean isSet(_Fields field) {
22754
      if (field == null) {
22755
        throw new IllegalArgumentException();
22756
      }
22757
 
22758
      switch (field) {
22759
      case HSE:
22760
        return isSetHse();
22761
      }
22762
      throw new IllegalStateException();
22763
    }
22764
 
22765
    @Override
22766
    public boolean equals(Object that) {
22767
      if (that == null)
22768
        return false;
22769
      if (that instanceof updateQuickLink_result)
22770
        return this.equals((updateQuickLink_result)that);
22771
      return false;
22772
    }
22773
 
22774
    public boolean equals(updateQuickLink_result that) {
22775
      if (that == null)
22776
        return false;
22777
 
22778
      boolean this_present_hse = true && this.isSetHse();
22779
      boolean that_present_hse = true && that.isSetHse();
22780
      if (this_present_hse || that_present_hse) {
22781
        if (!(this_present_hse && that_present_hse))
22782
          return false;
22783
        if (!this.hse.equals(that.hse))
22784
          return false;
22785
      }
22786
 
22787
      return true;
22788
    }
22789
 
22790
    @Override
22791
    public int hashCode() {
22792
      return 0;
22793
    }
22794
 
22795
    public int compareTo(updateQuickLink_result other) {
22796
      if (!getClass().equals(other.getClass())) {
22797
        return getClass().getName().compareTo(other.getClass().getName());
22798
      }
22799
 
22800
      int lastComparison = 0;
22801
      updateQuickLink_result typedOther = (updateQuickLink_result)other;
22802
 
22803
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
22804
      if (lastComparison != 0) {
22805
        return lastComparison;
22806
      }
22807
      if (isSetHse()) {
22808
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
22809
        if (lastComparison != 0) {
22810
          return lastComparison;
22811
        }
22812
      }
22813
      return 0;
22814
    }
22815
 
22816
    public _Fields fieldForId(int fieldId) {
22817
      return _Fields.findByThriftId(fieldId);
22818
    }
22819
 
22820
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
22821
      org.apache.thrift.protocol.TField field;
22822
      iprot.readStructBegin();
22823
      while (true)
22824
      {
22825
        field = iprot.readFieldBegin();
22826
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
22827
          break;
22828
        }
22829
        switch (field.id) {
22830
          case 1: // HSE
22831
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
22832
              this.hse = new HelperServiceException();
22833
              this.hse.read(iprot);
22834
            } else { 
22835
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22836
            }
22837
            break;
22838
          default:
22839
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
22840
        }
22841
        iprot.readFieldEnd();
22842
      }
22843
      iprot.readStructEnd();
22844
      validate();
22845
    }
22846
 
22847
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
22848
      oprot.writeStructBegin(STRUCT_DESC);
22849
 
22850
      if (this.isSetHse()) {
22851
        oprot.writeFieldBegin(HSE_FIELD_DESC);
22852
        this.hse.write(oprot);
22853
        oprot.writeFieldEnd();
22854
      }
22855
      oprot.writeFieldStop();
22856
      oprot.writeStructEnd();
22857
    }
22858
 
22859
    @Override
22860
    public String toString() {
22861
      StringBuilder sb = new StringBuilder("updateQuickLink_result(");
22862
      boolean first = true;
22863
 
22864
      sb.append("hse:");
22865
      if (this.hse == null) {
22866
        sb.append("null");
22867
      } else {
22868
        sb.append(this.hse);
22869
      }
22870
      first = false;
22871
      sb.append(")");
22872
      return sb.toString();
22873
    }
22874
 
22875
    public void validate() throws org.apache.thrift.TException {
22876
      // check for required fields
22877
    }
22878
 
22879
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
22880
      try {
22881
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
22882
      } catch (org.apache.thrift.TException te) {
22883
        throw new java.io.IOException(te);
22884
      }
22885
    }
22886
 
22887
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
22888
      try {
22889
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
22890
      } catch (org.apache.thrift.TException te) {
22891
        throw new java.io.IOException(te);
22892
      }
22893
    }
22894
 
22895
  }
22896
 
5055 varun.gupt 22897
  public static class getEmailsForNotificationsSent_args implements org.apache.thrift.TBase<getEmailsForNotificationsSent_args, getEmailsForNotificationsSent_args._Fields>, java.io.Serializable, Cloneable   {
22898
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_args");
22899
 
22900
    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);
22901
    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);
22902
 
22903
    private long startDatetime; // required
22904
    private long endDatetime; // required
22905
 
22906
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
22907
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
22908
      START_DATETIME((short)1, "startDatetime"),
22909
      END_DATETIME((short)2, "endDatetime");
22910
 
22911
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
22912
 
22913
      static {
22914
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
22915
          byName.put(field.getFieldName(), field);
22916
        }
22917
      }
22918
 
22919
      /**
22920
       * Find the _Fields constant that matches fieldId, or null if its not found.
22921
       */
22922
      public static _Fields findByThriftId(int fieldId) {
22923
        switch(fieldId) {
22924
          case 1: // START_DATETIME
22925
            return START_DATETIME;
22926
          case 2: // END_DATETIME
22927
            return END_DATETIME;
22928
          default:
22929
            return null;
22930
        }
22931
      }
22932
 
22933
      /**
22934
       * Find the _Fields constant that matches fieldId, throwing an exception
22935
       * if it is not found.
22936
       */
22937
      public static _Fields findByThriftIdOrThrow(int fieldId) {
22938
        _Fields fields = findByThriftId(fieldId);
22939
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
22940
        return fields;
22941
      }
22942
 
22943
      /**
22944
       * Find the _Fields constant that matches name, or null if its not found.
22945
       */
22946
      public static _Fields findByName(String name) {
22947
        return byName.get(name);
22948
      }
22949
 
22950
      private final short _thriftId;
22951
      private final String _fieldName;
22952
 
22953
      _Fields(short thriftId, String fieldName) {
22954
        _thriftId = thriftId;
22955
        _fieldName = fieldName;
22956
      }
22957
 
22958
      public short getThriftFieldId() {
22959
        return _thriftId;
22960
      }
22961
 
22962
      public String getFieldName() {
22963
        return _fieldName;
22964
      }
22965
    }
22966
 
22967
    // isset id assignments
22968
    private static final int __STARTDATETIME_ISSET_ID = 0;
22969
    private static final int __ENDDATETIME_ISSET_ID = 1;
22970
    private BitSet __isset_bit_vector = new BitSet(2);
22971
 
22972
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
22973
    static {
22974
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
22975
      tmpMap.put(_Fields.START_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("startDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22976
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22977
      tmpMap.put(_Fields.END_DATETIME, new org.apache.thrift.meta_data.FieldMetaData("endDatetime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
22978
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
22979
      metaDataMap = Collections.unmodifiableMap(tmpMap);
22980
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_args.class, metaDataMap);
22981
    }
22982
 
22983
    public getEmailsForNotificationsSent_args() {
22984
    }
22985
 
22986
    public getEmailsForNotificationsSent_args(
22987
      long startDatetime,
22988
      long endDatetime)
22989
    {
22990
      this();
22991
      this.startDatetime = startDatetime;
22992
      setStartDatetimeIsSet(true);
22993
      this.endDatetime = endDatetime;
22994
      setEndDatetimeIsSet(true);
22995
    }
22996
 
22997
    /**
22998
     * Performs a deep copy on <i>other</i>.
22999
     */
23000
    public getEmailsForNotificationsSent_args(getEmailsForNotificationsSent_args other) {
23001
      __isset_bit_vector.clear();
23002
      __isset_bit_vector.or(other.__isset_bit_vector);
23003
      this.startDatetime = other.startDatetime;
23004
      this.endDatetime = other.endDatetime;
23005
    }
23006
 
23007
    public getEmailsForNotificationsSent_args deepCopy() {
23008
      return new getEmailsForNotificationsSent_args(this);
23009
    }
23010
 
23011
    @Override
23012
    public void clear() {
23013
      setStartDatetimeIsSet(false);
23014
      this.startDatetime = 0;
23015
      setEndDatetimeIsSet(false);
23016
      this.endDatetime = 0;
23017
    }
23018
 
23019
    public long getStartDatetime() {
23020
      return this.startDatetime;
23021
    }
23022
 
23023
    public void setStartDatetime(long startDatetime) {
23024
      this.startDatetime = startDatetime;
23025
      setStartDatetimeIsSet(true);
23026
    }
23027
 
23028
    public void unsetStartDatetime() {
23029
      __isset_bit_vector.clear(__STARTDATETIME_ISSET_ID);
23030
    }
23031
 
23032
    /** Returns true if field startDatetime is set (has been assigned a value) and false otherwise */
23033
    public boolean isSetStartDatetime() {
23034
      return __isset_bit_vector.get(__STARTDATETIME_ISSET_ID);
23035
    }
23036
 
23037
    public void setStartDatetimeIsSet(boolean value) {
23038
      __isset_bit_vector.set(__STARTDATETIME_ISSET_ID, value);
23039
    }
23040
 
23041
    public long getEndDatetime() {
23042
      return this.endDatetime;
23043
    }
23044
 
23045
    public void setEndDatetime(long endDatetime) {
23046
      this.endDatetime = endDatetime;
23047
      setEndDatetimeIsSet(true);
23048
    }
23049
 
23050
    public void unsetEndDatetime() {
23051
      __isset_bit_vector.clear(__ENDDATETIME_ISSET_ID);
23052
    }
23053
 
23054
    /** Returns true if field endDatetime is set (has been assigned a value) and false otherwise */
23055
    public boolean isSetEndDatetime() {
23056
      return __isset_bit_vector.get(__ENDDATETIME_ISSET_ID);
23057
    }
23058
 
23059
    public void setEndDatetimeIsSet(boolean value) {
23060
      __isset_bit_vector.set(__ENDDATETIME_ISSET_ID, value);
23061
    }
23062
 
23063
    public void setFieldValue(_Fields field, Object value) {
23064
      switch (field) {
23065
      case START_DATETIME:
23066
        if (value == null) {
23067
          unsetStartDatetime();
23068
        } else {
23069
          setStartDatetime((Long)value);
23070
        }
23071
        break;
23072
 
23073
      case END_DATETIME:
23074
        if (value == null) {
23075
          unsetEndDatetime();
23076
        } else {
23077
          setEndDatetime((Long)value);
23078
        }
23079
        break;
23080
 
23081
      }
23082
    }
23083
 
23084
    public Object getFieldValue(_Fields field) {
23085
      switch (field) {
23086
      case START_DATETIME:
23087
        return Long.valueOf(getStartDatetime());
23088
 
23089
      case END_DATETIME:
23090
        return Long.valueOf(getEndDatetime());
23091
 
23092
      }
23093
      throw new IllegalStateException();
23094
    }
23095
 
23096
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23097
    public boolean isSet(_Fields field) {
23098
      if (field == null) {
23099
        throw new IllegalArgumentException();
23100
      }
23101
 
23102
      switch (field) {
23103
      case START_DATETIME:
23104
        return isSetStartDatetime();
23105
      case END_DATETIME:
23106
        return isSetEndDatetime();
23107
      }
23108
      throw new IllegalStateException();
23109
    }
23110
 
23111
    @Override
23112
    public boolean equals(Object that) {
23113
      if (that == null)
23114
        return false;
23115
      if (that instanceof getEmailsForNotificationsSent_args)
23116
        return this.equals((getEmailsForNotificationsSent_args)that);
23117
      return false;
23118
    }
23119
 
23120
    public boolean equals(getEmailsForNotificationsSent_args that) {
23121
      if (that == null)
23122
        return false;
23123
 
23124
      boolean this_present_startDatetime = true;
23125
      boolean that_present_startDatetime = true;
23126
      if (this_present_startDatetime || that_present_startDatetime) {
23127
        if (!(this_present_startDatetime && that_present_startDatetime))
23128
          return false;
23129
        if (this.startDatetime != that.startDatetime)
23130
          return false;
23131
      }
23132
 
23133
      boolean this_present_endDatetime = true;
23134
      boolean that_present_endDatetime = true;
23135
      if (this_present_endDatetime || that_present_endDatetime) {
23136
        if (!(this_present_endDatetime && that_present_endDatetime))
23137
          return false;
23138
        if (this.endDatetime != that.endDatetime)
23139
          return false;
23140
      }
23141
 
23142
      return true;
23143
    }
23144
 
23145
    @Override
23146
    public int hashCode() {
23147
      return 0;
23148
    }
23149
 
23150
    public int compareTo(getEmailsForNotificationsSent_args other) {
23151
      if (!getClass().equals(other.getClass())) {
23152
        return getClass().getName().compareTo(other.getClass().getName());
23153
      }
23154
 
23155
      int lastComparison = 0;
23156
      getEmailsForNotificationsSent_args typedOther = (getEmailsForNotificationsSent_args)other;
23157
 
23158
      lastComparison = Boolean.valueOf(isSetStartDatetime()).compareTo(typedOther.isSetStartDatetime());
23159
      if (lastComparison != 0) {
23160
        return lastComparison;
23161
      }
23162
      if (isSetStartDatetime()) {
23163
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.startDatetime, typedOther.startDatetime);
23164
        if (lastComparison != 0) {
23165
          return lastComparison;
23166
        }
23167
      }
23168
      lastComparison = Boolean.valueOf(isSetEndDatetime()).compareTo(typedOther.isSetEndDatetime());
23169
      if (lastComparison != 0) {
23170
        return lastComparison;
23171
      }
23172
      if (isSetEndDatetime()) {
23173
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.endDatetime, typedOther.endDatetime);
23174
        if (lastComparison != 0) {
23175
          return lastComparison;
23176
        }
23177
      }
23178
      return 0;
23179
    }
23180
 
23181
    public _Fields fieldForId(int fieldId) {
23182
      return _Fields.findByThriftId(fieldId);
23183
    }
23184
 
23185
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23186
      org.apache.thrift.protocol.TField field;
23187
      iprot.readStructBegin();
23188
      while (true)
23189
      {
23190
        field = iprot.readFieldBegin();
23191
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23192
          break;
23193
        }
23194
        switch (field.id) {
23195
          case 1: // START_DATETIME
23196
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23197
              this.startDatetime = iprot.readI64();
23198
              setStartDatetimeIsSet(true);
23199
            } else { 
23200
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23201
            }
23202
            break;
23203
          case 2: // END_DATETIME
23204
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23205
              this.endDatetime = iprot.readI64();
23206
              setEndDatetimeIsSet(true);
23207
            } else { 
23208
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23209
            }
23210
            break;
23211
          default:
23212
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23213
        }
23214
        iprot.readFieldEnd();
23215
      }
23216
      iprot.readStructEnd();
23217
      validate();
23218
    }
23219
 
23220
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23221
      validate();
23222
 
23223
      oprot.writeStructBegin(STRUCT_DESC);
23224
      oprot.writeFieldBegin(START_DATETIME_FIELD_DESC);
23225
      oprot.writeI64(this.startDatetime);
23226
      oprot.writeFieldEnd();
23227
      oprot.writeFieldBegin(END_DATETIME_FIELD_DESC);
23228
      oprot.writeI64(this.endDatetime);
23229
      oprot.writeFieldEnd();
23230
      oprot.writeFieldStop();
23231
      oprot.writeStructEnd();
23232
    }
23233
 
23234
    @Override
23235
    public String toString() {
23236
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_args(");
23237
      boolean first = true;
23238
 
23239
      sb.append("startDatetime:");
23240
      sb.append(this.startDatetime);
23241
      first = false;
23242
      if (!first) sb.append(", ");
23243
      sb.append("endDatetime:");
23244
      sb.append(this.endDatetime);
23245
      first = false;
23246
      sb.append(")");
23247
      return sb.toString();
23248
    }
23249
 
23250
    public void validate() throws org.apache.thrift.TException {
23251
      // check for required fields
23252
    }
23253
 
23254
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23255
      try {
23256
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23257
      } catch (org.apache.thrift.TException te) {
23258
        throw new java.io.IOException(te);
23259
      }
23260
    }
23261
 
23262
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23263
      try {
23264
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23265
      } catch (org.apache.thrift.TException te) {
23266
        throw new java.io.IOException(te);
23267
      }
23268
    }
23269
 
23270
  }
23271
 
23272
  public static class getEmailsForNotificationsSent_result implements org.apache.thrift.TBase<getEmailsForNotificationsSent_result, getEmailsForNotificationsSent_result._Fields>, java.io.Serializable, Cloneable   {
23273
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsForNotificationsSent_result");
23274
 
23275
    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);
23276
    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);
23277
 
23278
    private List<String> success; // required
23279
    private HelperServiceException hse; // required
23280
 
23281
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23282
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23283
      SUCCESS((short)0, "success"),
23284
      HSE((short)1, "hse");
23285
 
23286
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23287
 
23288
      static {
23289
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23290
          byName.put(field.getFieldName(), field);
23291
        }
23292
      }
23293
 
23294
      /**
23295
       * Find the _Fields constant that matches fieldId, or null if its not found.
23296
       */
23297
      public static _Fields findByThriftId(int fieldId) {
23298
        switch(fieldId) {
23299
          case 0: // SUCCESS
23300
            return SUCCESS;
23301
          case 1: // HSE
23302
            return HSE;
23303
          default:
23304
            return null;
23305
        }
23306
      }
23307
 
23308
      /**
23309
       * Find the _Fields constant that matches fieldId, throwing an exception
23310
       * if it is not found.
23311
       */
23312
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23313
        _Fields fields = findByThriftId(fieldId);
23314
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23315
        return fields;
23316
      }
23317
 
23318
      /**
23319
       * Find the _Fields constant that matches name, or null if its not found.
23320
       */
23321
      public static _Fields findByName(String name) {
23322
        return byName.get(name);
23323
      }
23324
 
23325
      private final short _thriftId;
23326
      private final String _fieldName;
23327
 
23328
      _Fields(short thriftId, String fieldName) {
23329
        _thriftId = thriftId;
23330
        _fieldName = fieldName;
23331
      }
23332
 
23333
      public short getThriftFieldId() {
23334
        return _thriftId;
23335
      }
23336
 
23337
      public String getFieldName() {
23338
        return _fieldName;
23339
      }
23340
    }
23341
 
23342
    // isset id assignments
23343
 
23344
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23345
    static {
23346
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23347
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23348
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
23349
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
23350
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23351
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
23352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsForNotificationsSent_result.class, metaDataMap);
23354
    }
23355
 
23356
    public getEmailsForNotificationsSent_result() {
23357
    }
23358
 
23359
    public getEmailsForNotificationsSent_result(
23360
      List<String> success,
23361
      HelperServiceException hse)
23362
    {
23363
      this();
23364
      this.success = success;
23365
      this.hse = hse;
23366
    }
23367
 
23368
    /**
23369
     * Performs a deep copy on <i>other</i>.
23370
     */
23371
    public getEmailsForNotificationsSent_result(getEmailsForNotificationsSent_result other) {
23372
      if (other.isSetSuccess()) {
23373
        List<String> __this__success = new ArrayList<String>();
23374
        for (String other_element : other.success) {
23375
          __this__success.add(other_element);
23376
        }
23377
        this.success = __this__success;
23378
      }
23379
      if (other.isSetHse()) {
23380
        this.hse = new HelperServiceException(other.hse);
23381
      }
23382
    }
23383
 
23384
    public getEmailsForNotificationsSent_result deepCopy() {
23385
      return new getEmailsForNotificationsSent_result(this);
23386
    }
23387
 
23388
    @Override
23389
    public void clear() {
23390
      this.success = null;
23391
      this.hse = null;
23392
    }
23393
 
23394
    public int getSuccessSize() {
23395
      return (this.success == null) ? 0 : this.success.size();
23396
    }
23397
 
23398
    public java.util.Iterator<String> getSuccessIterator() {
23399
      return (this.success == null) ? null : this.success.iterator();
23400
    }
23401
 
23402
    public void addToSuccess(String elem) {
23403
      if (this.success == null) {
23404
        this.success = new ArrayList<String>();
23405
      }
23406
      this.success.add(elem);
23407
    }
23408
 
23409
    public List<String> getSuccess() {
23410
      return this.success;
23411
    }
23412
 
23413
    public void setSuccess(List<String> success) {
23414
      this.success = success;
23415
    }
23416
 
23417
    public void unsetSuccess() {
23418
      this.success = null;
23419
    }
23420
 
23421
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
23422
    public boolean isSetSuccess() {
23423
      return this.success != null;
23424
    }
23425
 
23426
    public void setSuccessIsSet(boolean value) {
23427
      if (!value) {
23428
        this.success = null;
23429
      }
23430
    }
23431
 
23432
    public HelperServiceException getHse() {
23433
      return this.hse;
23434
    }
23435
 
23436
    public void setHse(HelperServiceException hse) {
23437
      this.hse = hse;
23438
    }
23439
 
23440
    public void unsetHse() {
23441
      this.hse = null;
23442
    }
23443
 
23444
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
23445
    public boolean isSetHse() {
23446
      return this.hse != null;
23447
    }
23448
 
23449
    public void setHseIsSet(boolean value) {
23450
      if (!value) {
23451
        this.hse = null;
23452
      }
23453
    }
23454
 
23455
    public void setFieldValue(_Fields field, Object value) {
23456
      switch (field) {
23457
      case SUCCESS:
23458
        if (value == null) {
23459
          unsetSuccess();
23460
        } else {
23461
          setSuccess((List<String>)value);
23462
        }
23463
        break;
23464
 
23465
      case HSE:
23466
        if (value == null) {
23467
          unsetHse();
23468
        } else {
23469
          setHse((HelperServiceException)value);
23470
        }
23471
        break;
23472
 
23473
      }
23474
    }
23475
 
23476
    public Object getFieldValue(_Fields field) {
23477
      switch (field) {
23478
      case SUCCESS:
23479
        return getSuccess();
23480
 
23481
      case HSE:
23482
        return getHse();
23483
 
23484
      }
23485
      throw new IllegalStateException();
23486
    }
23487
 
23488
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23489
    public boolean isSet(_Fields field) {
23490
      if (field == null) {
23491
        throw new IllegalArgumentException();
23492
      }
23493
 
23494
      switch (field) {
23495
      case SUCCESS:
23496
        return isSetSuccess();
23497
      case HSE:
23498
        return isSetHse();
23499
      }
23500
      throw new IllegalStateException();
23501
    }
23502
 
23503
    @Override
23504
    public boolean equals(Object that) {
23505
      if (that == null)
23506
        return false;
23507
      if (that instanceof getEmailsForNotificationsSent_result)
23508
        return this.equals((getEmailsForNotificationsSent_result)that);
23509
      return false;
23510
    }
23511
 
23512
    public boolean equals(getEmailsForNotificationsSent_result that) {
23513
      if (that == null)
23514
        return false;
23515
 
23516
      boolean this_present_success = true && this.isSetSuccess();
23517
      boolean that_present_success = true && that.isSetSuccess();
23518
      if (this_present_success || that_present_success) {
23519
        if (!(this_present_success && that_present_success))
23520
          return false;
23521
        if (!this.success.equals(that.success))
23522
          return false;
23523
      }
23524
 
23525
      boolean this_present_hse = true && this.isSetHse();
23526
      boolean that_present_hse = true && that.isSetHse();
23527
      if (this_present_hse || that_present_hse) {
23528
        if (!(this_present_hse && that_present_hse))
23529
          return false;
23530
        if (!this.hse.equals(that.hse))
23531
          return false;
23532
      }
23533
 
23534
      return true;
23535
    }
23536
 
23537
    @Override
23538
    public int hashCode() {
23539
      return 0;
23540
    }
23541
 
23542
    public int compareTo(getEmailsForNotificationsSent_result other) {
23543
      if (!getClass().equals(other.getClass())) {
23544
        return getClass().getName().compareTo(other.getClass().getName());
23545
      }
23546
 
23547
      int lastComparison = 0;
23548
      getEmailsForNotificationsSent_result typedOther = (getEmailsForNotificationsSent_result)other;
23549
 
23550
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
23551
      if (lastComparison != 0) {
23552
        return lastComparison;
23553
      }
23554
      if (isSetSuccess()) {
23555
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
23556
        if (lastComparison != 0) {
23557
          return lastComparison;
23558
        }
23559
      }
23560
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
23561
      if (lastComparison != 0) {
23562
        return lastComparison;
23563
      }
23564
      if (isSetHse()) {
23565
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
23566
        if (lastComparison != 0) {
23567
          return lastComparison;
23568
        }
23569
      }
23570
      return 0;
23571
    }
23572
 
23573
    public _Fields fieldForId(int fieldId) {
23574
      return _Fields.findByThriftId(fieldId);
23575
    }
23576
 
23577
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23578
      org.apache.thrift.protocol.TField field;
23579
      iprot.readStructBegin();
23580
      while (true)
23581
      {
23582
        field = iprot.readFieldBegin();
23583
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23584
          break;
23585
        }
23586
        switch (field.id) {
23587
          case 0: // SUCCESS
23588
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
23589
              {
5864 rajveer 23590
                org.apache.thrift.protocol.TList _list65 = iprot.readListBegin();
23591
                this.success = new ArrayList<String>(_list65.size);
23592
                for (int _i66 = 0; _i66 < _list65.size; ++_i66)
5055 varun.gupt 23593
                {
5864 rajveer 23594
                  String _elem67; // required
23595
                  _elem67 = iprot.readString();
23596
                  this.success.add(_elem67);
5055 varun.gupt 23597
                }
23598
                iprot.readListEnd();
23599
              }
23600
            } else { 
23601
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23602
            }
23603
            break;
23604
          case 1: // HSE
23605
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
23606
              this.hse = new HelperServiceException();
23607
              this.hse.read(iprot);
23608
            } else { 
23609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23610
            }
23611
            break;
23612
          default:
23613
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23614
        }
23615
        iprot.readFieldEnd();
23616
      }
23617
      iprot.readStructEnd();
23618
      validate();
23619
    }
23620
 
23621
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23622
      oprot.writeStructBegin(STRUCT_DESC);
23623
 
23624
      if (this.isSetSuccess()) {
23625
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
23626
        {
23627
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5864 rajveer 23628
          for (String _iter68 : this.success)
5055 varun.gupt 23629
          {
5864 rajveer 23630
            oprot.writeString(_iter68);
5055 varun.gupt 23631
          }
23632
          oprot.writeListEnd();
23633
        }
23634
        oprot.writeFieldEnd();
23635
      } else if (this.isSetHse()) {
23636
        oprot.writeFieldBegin(HSE_FIELD_DESC);
23637
        this.hse.write(oprot);
23638
        oprot.writeFieldEnd();
23639
      }
23640
      oprot.writeFieldStop();
23641
      oprot.writeStructEnd();
23642
    }
23643
 
23644
    @Override
23645
    public String toString() {
23646
      StringBuilder sb = new StringBuilder("getEmailsForNotificationsSent_result(");
23647
      boolean first = true;
23648
 
23649
      sb.append("success:");
23650
      if (this.success == null) {
23651
        sb.append("null");
23652
      } else {
23653
        sb.append(this.success);
23654
      }
23655
      first = false;
23656
      if (!first) sb.append(", ");
23657
      sb.append("hse:");
23658
      if (this.hse == null) {
23659
        sb.append("null");
23660
      } else {
23661
        sb.append(this.hse);
23662
      }
23663
      first = false;
23664
      sb.append(")");
23665
      return sb.toString();
23666
    }
23667
 
23668
    public void validate() throws org.apache.thrift.TException {
23669
      // check for required fields
23670
    }
23671
 
23672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23673
      try {
23674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23675
      } catch (org.apache.thrift.TException te) {
23676
        throw new java.io.IOException(te);
23677
      }
23678
    }
23679
 
23680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23681
      try {
23682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23683
      } catch (org.apache.thrift.TException te) {
23684
        throw new java.io.IOException(te);
23685
      }
23686
    }
23687
 
23688
  }
23689
 
6322 amar.kumar 23690
  public static class getOrderConfirmationMail_args implements org.apache.thrift.TBase<getOrderConfirmationMail_args, getOrderConfirmationMail_args._Fields>, java.io.Serializable, Cloneable   {
23691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_args");
23692
 
23693
    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);
23694
 
23695
    private long orderId; // required
23696
 
23697
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23698
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23699
      ORDER_ID((short)1, "orderId");
23700
 
23701
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23702
 
23703
      static {
23704
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23705
          byName.put(field.getFieldName(), field);
23706
        }
23707
      }
23708
 
23709
      /**
23710
       * Find the _Fields constant that matches fieldId, or null if its not found.
23711
       */
23712
      public static _Fields findByThriftId(int fieldId) {
23713
        switch(fieldId) {
23714
          case 1: // ORDER_ID
23715
            return ORDER_ID;
23716
          default:
23717
            return null;
23718
        }
23719
      }
23720
 
23721
      /**
23722
       * Find the _Fields constant that matches fieldId, throwing an exception
23723
       * if it is not found.
23724
       */
23725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
23726
        _Fields fields = findByThriftId(fieldId);
23727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
23728
        return fields;
23729
      }
23730
 
23731
      /**
23732
       * Find the _Fields constant that matches name, or null if its not found.
23733
       */
23734
      public static _Fields findByName(String name) {
23735
        return byName.get(name);
23736
      }
23737
 
23738
      private final short _thriftId;
23739
      private final String _fieldName;
23740
 
23741
      _Fields(short thriftId, String fieldName) {
23742
        _thriftId = thriftId;
23743
        _fieldName = fieldName;
23744
      }
23745
 
23746
      public short getThriftFieldId() {
23747
        return _thriftId;
23748
      }
23749
 
23750
      public String getFieldName() {
23751
        return _fieldName;
23752
      }
23753
    }
23754
 
23755
    // isset id assignments
23756
    private static final int __ORDERID_ISSET_ID = 0;
23757
    private BitSet __isset_bit_vector = new BitSet(1);
23758
 
23759
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
23760
    static {
23761
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
23762
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
23763
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
23764
      metaDataMap = Collections.unmodifiableMap(tmpMap);
23765
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_args.class, metaDataMap);
23766
    }
23767
 
23768
    public getOrderConfirmationMail_args() {
23769
    }
23770
 
23771
    public getOrderConfirmationMail_args(
23772
      long orderId)
23773
    {
23774
      this();
23775
      this.orderId = orderId;
23776
      setOrderIdIsSet(true);
23777
    }
23778
 
23779
    /**
23780
     * Performs a deep copy on <i>other</i>.
23781
     */
23782
    public getOrderConfirmationMail_args(getOrderConfirmationMail_args other) {
23783
      __isset_bit_vector.clear();
23784
      __isset_bit_vector.or(other.__isset_bit_vector);
23785
      this.orderId = other.orderId;
23786
    }
23787
 
23788
    public getOrderConfirmationMail_args deepCopy() {
23789
      return new getOrderConfirmationMail_args(this);
23790
    }
23791
 
23792
    @Override
23793
    public void clear() {
23794
      setOrderIdIsSet(false);
23795
      this.orderId = 0;
23796
    }
23797
 
23798
    public long getOrderId() {
23799
      return this.orderId;
23800
    }
23801
 
23802
    public void setOrderId(long orderId) {
23803
      this.orderId = orderId;
23804
      setOrderIdIsSet(true);
23805
    }
23806
 
23807
    public void unsetOrderId() {
23808
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
23809
    }
23810
 
23811
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
23812
    public boolean isSetOrderId() {
23813
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
23814
    }
23815
 
23816
    public void setOrderIdIsSet(boolean value) {
23817
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
23818
    }
23819
 
23820
    public void setFieldValue(_Fields field, Object value) {
23821
      switch (field) {
23822
      case ORDER_ID:
23823
        if (value == null) {
23824
          unsetOrderId();
23825
        } else {
23826
          setOrderId((Long)value);
23827
        }
23828
        break;
23829
 
23830
      }
23831
    }
23832
 
23833
    public Object getFieldValue(_Fields field) {
23834
      switch (field) {
23835
      case ORDER_ID:
23836
        return Long.valueOf(getOrderId());
23837
 
23838
      }
23839
      throw new IllegalStateException();
23840
    }
23841
 
23842
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
23843
    public boolean isSet(_Fields field) {
23844
      if (field == null) {
23845
        throw new IllegalArgumentException();
23846
      }
23847
 
23848
      switch (field) {
23849
      case ORDER_ID:
23850
        return isSetOrderId();
23851
      }
23852
      throw new IllegalStateException();
23853
    }
23854
 
23855
    @Override
23856
    public boolean equals(Object that) {
23857
      if (that == null)
23858
        return false;
23859
      if (that instanceof getOrderConfirmationMail_args)
23860
        return this.equals((getOrderConfirmationMail_args)that);
23861
      return false;
23862
    }
23863
 
23864
    public boolean equals(getOrderConfirmationMail_args that) {
23865
      if (that == null)
23866
        return false;
23867
 
23868
      boolean this_present_orderId = true;
23869
      boolean that_present_orderId = true;
23870
      if (this_present_orderId || that_present_orderId) {
23871
        if (!(this_present_orderId && that_present_orderId))
23872
          return false;
23873
        if (this.orderId != that.orderId)
23874
          return false;
23875
      }
23876
 
23877
      return true;
23878
    }
23879
 
23880
    @Override
23881
    public int hashCode() {
23882
      return 0;
23883
    }
23884
 
23885
    public int compareTo(getOrderConfirmationMail_args other) {
23886
      if (!getClass().equals(other.getClass())) {
23887
        return getClass().getName().compareTo(other.getClass().getName());
23888
      }
23889
 
23890
      int lastComparison = 0;
23891
      getOrderConfirmationMail_args typedOther = (getOrderConfirmationMail_args)other;
23892
 
23893
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
23894
      if (lastComparison != 0) {
23895
        return lastComparison;
23896
      }
23897
      if (isSetOrderId()) {
23898
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
23899
        if (lastComparison != 0) {
23900
          return lastComparison;
23901
        }
23902
      }
23903
      return 0;
23904
    }
23905
 
23906
    public _Fields fieldForId(int fieldId) {
23907
      return _Fields.findByThriftId(fieldId);
23908
    }
23909
 
23910
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
23911
      org.apache.thrift.protocol.TField field;
23912
      iprot.readStructBegin();
23913
      while (true)
23914
      {
23915
        field = iprot.readFieldBegin();
23916
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
23917
          break;
23918
        }
23919
        switch (field.id) {
23920
          case 1: // ORDER_ID
23921
            if (field.type == org.apache.thrift.protocol.TType.I64) {
23922
              this.orderId = iprot.readI64();
23923
              setOrderIdIsSet(true);
23924
            } else { 
23925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23926
            }
23927
            break;
23928
          default:
23929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
23930
        }
23931
        iprot.readFieldEnd();
23932
      }
23933
      iprot.readStructEnd();
23934
      validate();
23935
    }
23936
 
23937
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
23938
      validate();
23939
 
23940
      oprot.writeStructBegin(STRUCT_DESC);
23941
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
23942
      oprot.writeI64(this.orderId);
23943
      oprot.writeFieldEnd();
23944
      oprot.writeFieldStop();
23945
      oprot.writeStructEnd();
23946
    }
23947
 
23948
    @Override
23949
    public String toString() {
23950
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_args(");
23951
      boolean first = true;
23952
 
23953
      sb.append("orderId:");
23954
      sb.append(this.orderId);
23955
      first = false;
23956
      sb.append(")");
23957
      return sb.toString();
23958
    }
23959
 
23960
    public void validate() throws org.apache.thrift.TException {
23961
      // check for required fields
23962
    }
23963
 
23964
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
23965
      try {
23966
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
23967
      } catch (org.apache.thrift.TException te) {
23968
        throw new java.io.IOException(te);
23969
      }
23970
    }
23971
 
23972
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
23973
      try {
23974
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
23975
        __isset_bit_vector = new BitSet(1);
23976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
23977
      } catch (org.apache.thrift.TException te) {
23978
        throw new java.io.IOException(te);
23979
      }
23980
    }
23981
 
23982
  }
23983
 
23984
  public static class getOrderConfirmationMail_result implements org.apache.thrift.TBase<getOrderConfirmationMail_result, getOrderConfirmationMail_result._Fields>, java.io.Serializable, Cloneable   {
23985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderConfirmationMail_result");
23986
 
23987
    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);
23988
 
23989
    private String success; // required
23990
 
23991
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
23992
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
23993
      SUCCESS((short)0, "success");
23994
 
23995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
23996
 
23997
      static {
23998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
23999
          byName.put(field.getFieldName(), field);
24000
        }
24001
      }
24002
 
24003
      /**
24004
       * Find the _Fields constant that matches fieldId, or null if its not found.
24005
       */
24006
      public static _Fields findByThriftId(int fieldId) {
24007
        switch(fieldId) {
24008
          case 0: // SUCCESS
24009
            return SUCCESS;
24010
          default:
24011
            return null;
24012
        }
24013
      }
24014
 
24015
      /**
24016
       * Find the _Fields constant that matches fieldId, throwing an exception
24017
       * if it is not found.
24018
       */
24019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24020
        _Fields fields = findByThriftId(fieldId);
24021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24022
        return fields;
24023
      }
24024
 
24025
      /**
24026
       * Find the _Fields constant that matches name, or null if its not found.
24027
       */
24028
      public static _Fields findByName(String name) {
24029
        return byName.get(name);
24030
      }
24031
 
24032
      private final short _thriftId;
24033
      private final String _fieldName;
24034
 
24035
      _Fields(short thriftId, String fieldName) {
24036
        _thriftId = thriftId;
24037
        _fieldName = fieldName;
24038
      }
24039
 
24040
      public short getThriftFieldId() {
24041
        return _thriftId;
24042
      }
24043
 
24044
      public String getFieldName() {
24045
        return _fieldName;
24046
      }
24047
    }
24048
 
24049
    // isset id assignments
24050
 
24051
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24052
    static {
24053
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24054
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24055
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24056
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24057
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderConfirmationMail_result.class, metaDataMap);
24058
    }
24059
 
24060
    public getOrderConfirmationMail_result() {
24061
    }
24062
 
24063
    public getOrderConfirmationMail_result(
24064
      String success)
24065
    {
24066
      this();
24067
      this.success = success;
24068
    }
24069
 
24070
    /**
24071
     * Performs a deep copy on <i>other</i>.
24072
     */
24073
    public getOrderConfirmationMail_result(getOrderConfirmationMail_result other) {
24074
      if (other.isSetSuccess()) {
24075
        this.success = other.success;
24076
      }
24077
    }
24078
 
24079
    public getOrderConfirmationMail_result deepCopy() {
24080
      return new getOrderConfirmationMail_result(this);
24081
    }
24082
 
24083
    @Override
24084
    public void clear() {
24085
      this.success = null;
24086
    }
24087
 
24088
    public String getSuccess() {
24089
      return this.success;
24090
    }
24091
 
24092
    public void setSuccess(String success) {
24093
      this.success = success;
24094
    }
24095
 
24096
    public void unsetSuccess() {
24097
      this.success = null;
24098
    }
24099
 
24100
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24101
    public boolean isSetSuccess() {
24102
      return this.success != null;
24103
    }
24104
 
24105
    public void setSuccessIsSet(boolean value) {
24106
      if (!value) {
24107
        this.success = null;
24108
      }
24109
    }
24110
 
24111
    public void setFieldValue(_Fields field, Object value) {
24112
      switch (field) {
24113
      case SUCCESS:
24114
        if (value == null) {
24115
          unsetSuccess();
24116
        } else {
24117
          setSuccess((String)value);
24118
        }
24119
        break;
24120
 
24121
      }
24122
    }
24123
 
24124
    public Object getFieldValue(_Fields field) {
24125
      switch (field) {
24126
      case SUCCESS:
24127
        return getSuccess();
24128
 
24129
      }
24130
      throw new IllegalStateException();
24131
    }
24132
 
24133
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24134
    public boolean isSet(_Fields field) {
24135
      if (field == null) {
24136
        throw new IllegalArgumentException();
24137
      }
24138
 
24139
      switch (field) {
24140
      case SUCCESS:
24141
        return isSetSuccess();
24142
      }
24143
      throw new IllegalStateException();
24144
    }
24145
 
24146
    @Override
24147
    public boolean equals(Object that) {
24148
      if (that == null)
24149
        return false;
24150
      if (that instanceof getOrderConfirmationMail_result)
24151
        return this.equals((getOrderConfirmationMail_result)that);
24152
      return false;
24153
    }
24154
 
24155
    public boolean equals(getOrderConfirmationMail_result that) {
24156
      if (that == null)
24157
        return false;
24158
 
24159
      boolean this_present_success = true && this.isSetSuccess();
24160
      boolean that_present_success = true && that.isSetSuccess();
24161
      if (this_present_success || that_present_success) {
24162
        if (!(this_present_success && that_present_success))
24163
          return false;
24164
        if (!this.success.equals(that.success))
24165
          return false;
24166
      }
24167
 
24168
      return true;
24169
    }
24170
 
24171
    @Override
24172
    public int hashCode() {
24173
      return 0;
24174
    }
24175
 
24176
    public int compareTo(getOrderConfirmationMail_result other) {
24177
      if (!getClass().equals(other.getClass())) {
24178
        return getClass().getName().compareTo(other.getClass().getName());
24179
      }
24180
 
24181
      int lastComparison = 0;
24182
      getOrderConfirmationMail_result typedOther = (getOrderConfirmationMail_result)other;
24183
 
24184
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24185
      if (lastComparison != 0) {
24186
        return lastComparison;
24187
      }
24188
      if (isSetSuccess()) {
24189
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24190
        if (lastComparison != 0) {
24191
          return lastComparison;
24192
        }
24193
      }
24194
      return 0;
24195
    }
24196
 
24197
    public _Fields fieldForId(int fieldId) {
24198
      return _Fields.findByThriftId(fieldId);
24199
    }
24200
 
24201
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24202
      org.apache.thrift.protocol.TField field;
24203
      iprot.readStructBegin();
24204
      while (true)
24205
      {
24206
        field = iprot.readFieldBegin();
24207
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24208
          break;
24209
        }
24210
        switch (field.id) {
24211
          case 0: // SUCCESS
24212
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24213
              this.success = iprot.readString();
24214
            } else { 
24215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24216
            }
24217
            break;
24218
          default:
24219
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24220
        }
24221
        iprot.readFieldEnd();
24222
      }
24223
      iprot.readStructEnd();
24224
      validate();
24225
    }
24226
 
24227
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24228
      oprot.writeStructBegin(STRUCT_DESC);
24229
 
24230
      if (this.isSetSuccess()) {
24231
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24232
        oprot.writeString(this.success);
24233
        oprot.writeFieldEnd();
24234
      }
24235
      oprot.writeFieldStop();
24236
      oprot.writeStructEnd();
24237
    }
24238
 
24239
    @Override
24240
    public String toString() {
24241
      StringBuilder sb = new StringBuilder("getOrderConfirmationMail_result(");
24242
      boolean first = true;
24243
 
24244
      sb.append("success:");
24245
      if (this.success == null) {
24246
        sb.append("null");
24247
      } else {
24248
        sb.append(this.success);
24249
      }
24250
      first = false;
24251
      sb.append(")");
24252
      return sb.toString();
24253
    }
24254
 
24255
    public void validate() throws org.apache.thrift.TException {
24256
      // check for required fields
24257
    }
24258
 
24259
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24260
      try {
24261
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24262
      } catch (org.apache.thrift.TException te) {
24263
        throw new java.io.IOException(te);
24264
      }
24265
    }
24266
 
24267
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24268
      try {
24269
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24270
      } catch (org.apache.thrift.TException te) {
24271
        throw new java.io.IOException(te);
24272
      }
24273
    }
24274
 
24275
  }
24276
 
7221 kshitij.so 24277
  public static class getOrderDeliveryMail_args implements org.apache.thrift.TBase<getOrderDeliveryMail_args, getOrderDeliveryMail_args._Fields>, java.io.Serializable, Cloneable   {
24278
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_args");
24279
 
24280
    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);
24281
 
24282
    private long orderId; // required
24283
 
24284
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24285
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24286
      ORDER_ID((short)1, "orderId");
24287
 
24288
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24289
 
24290
      static {
24291
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24292
          byName.put(field.getFieldName(), field);
24293
        }
24294
      }
24295
 
24296
      /**
24297
       * Find the _Fields constant that matches fieldId, or null if its not found.
24298
       */
24299
      public static _Fields findByThriftId(int fieldId) {
24300
        switch(fieldId) {
24301
          case 1: // ORDER_ID
24302
            return ORDER_ID;
24303
          default:
24304
            return null;
24305
        }
24306
      }
24307
 
24308
      /**
24309
       * Find the _Fields constant that matches fieldId, throwing an exception
24310
       * if it is not found.
24311
       */
24312
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24313
        _Fields fields = findByThriftId(fieldId);
24314
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24315
        return fields;
24316
      }
24317
 
24318
      /**
24319
       * Find the _Fields constant that matches name, or null if its not found.
24320
       */
24321
      public static _Fields findByName(String name) {
24322
        return byName.get(name);
24323
      }
24324
 
24325
      private final short _thriftId;
24326
      private final String _fieldName;
24327
 
24328
      _Fields(short thriftId, String fieldName) {
24329
        _thriftId = thriftId;
24330
        _fieldName = fieldName;
24331
      }
24332
 
24333
      public short getThriftFieldId() {
24334
        return _thriftId;
24335
      }
24336
 
24337
      public String getFieldName() {
24338
        return _fieldName;
24339
      }
24340
    }
24341
 
24342
    // isset id assignments
24343
    private static final int __ORDERID_ISSET_ID = 0;
24344
    private BitSet __isset_bit_vector = new BitSet(1);
24345
 
24346
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24347
    static {
24348
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24349
      tmpMap.put(_Fields.ORDER_ID, new org.apache.thrift.meta_data.FieldMetaData("orderId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24350
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
24351
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24352
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_args.class, metaDataMap);
24353
    }
24354
 
24355
    public getOrderDeliveryMail_args() {
24356
    }
24357
 
24358
    public getOrderDeliveryMail_args(
24359
      long orderId)
24360
    {
24361
      this();
24362
      this.orderId = orderId;
24363
      setOrderIdIsSet(true);
24364
    }
24365
 
24366
    /**
24367
     * Performs a deep copy on <i>other</i>.
24368
     */
24369
    public getOrderDeliveryMail_args(getOrderDeliveryMail_args other) {
24370
      __isset_bit_vector.clear();
24371
      __isset_bit_vector.or(other.__isset_bit_vector);
24372
      this.orderId = other.orderId;
24373
    }
24374
 
24375
    public getOrderDeliveryMail_args deepCopy() {
24376
      return new getOrderDeliveryMail_args(this);
24377
    }
24378
 
24379
    @Override
24380
    public void clear() {
24381
      setOrderIdIsSet(false);
24382
      this.orderId = 0;
24383
    }
24384
 
24385
    public long getOrderId() {
24386
      return this.orderId;
24387
    }
24388
 
24389
    public void setOrderId(long orderId) {
24390
      this.orderId = orderId;
24391
      setOrderIdIsSet(true);
24392
    }
24393
 
24394
    public void unsetOrderId() {
24395
      __isset_bit_vector.clear(__ORDERID_ISSET_ID);
24396
    }
24397
 
24398
    /** Returns true if field orderId is set (has been assigned a value) and false otherwise */
24399
    public boolean isSetOrderId() {
24400
      return __isset_bit_vector.get(__ORDERID_ISSET_ID);
24401
    }
24402
 
24403
    public void setOrderIdIsSet(boolean value) {
24404
      __isset_bit_vector.set(__ORDERID_ISSET_ID, value);
24405
    }
24406
 
24407
    public void setFieldValue(_Fields field, Object value) {
24408
      switch (field) {
24409
      case ORDER_ID:
24410
        if (value == null) {
24411
          unsetOrderId();
24412
        } else {
24413
          setOrderId((Long)value);
24414
        }
24415
        break;
24416
 
24417
      }
24418
    }
24419
 
24420
    public Object getFieldValue(_Fields field) {
24421
      switch (field) {
24422
      case ORDER_ID:
24423
        return Long.valueOf(getOrderId());
24424
 
24425
      }
24426
      throw new IllegalStateException();
24427
    }
24428
 
24429
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24430
    public boolean isSet(_Fields field) {
24431
      if (field == null) {
24432
        throw new IllegalArgumentException();
24433
      }
24434
 
24435
      switch (field) {
24436
      case ORDER_ID:
24437
        return isSetOrderId();
24438
      }
24439
      throw new IllegalStateException();
24440
    }
24441
 
24442
    @Override
24443
    public boolean equals(Object that) {
24444
      if (that == null)
24445
        return false;
24446
      if (that instanceof getOrderDeliveryMail_args)
24447
        return this.equals((getOrderDeliveryMail_args)that);
24448
      return false;
24449
    }
24450
 
24451
    public boolean equals(getOrderDeliveryMail_args that) {
24452
      if (that == null)
24453
        return false;
24454
 
24455
      boolean this_present_orderId = true;
24456
      boolean that_present_orderId = true;
24457
      if (this_present_orderId || that_present_orderId) {
24458
        if (!(this_present_orderId && that_present_orderId))
24459
          return false;
24460
        if (this.orderId != that.orderId)
24461
          return false;
24462
      }
24463
 
24464
      return true;
24465
    }
24466
 
24467
    @Override
24468
    public int hashCode() {
24469
      return 0;
24470
    }
24471
 
24472
    public int compareTo(getOrderDeliveryMail_args other) {
24473
      if (!getClass().equals(other.getClass())) {
24474
        return getClass().getName().compareTo(other.getClass().getName());
24475
      }
24476
 
24477
      int lastComparison = 0;
24478
      getOrderDeliveryMail_args typedOther = (getOrderDeliveryMail_args)other;
24479
 
24480
      lastComparison = Boolean.valueOf(isSetOrderId()).compareTo(typedOther.isSetOrderId());
24481
      if (lastComparison != 0) {
24482
        return lastComparison;
24483
      }
24484
      if (isSetOrderId()) {
24485
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.orderId, typedOther.orderId);
24486
        if (lastComparison != 0) {
24487
          return lastComparison;
24488
        }
24489
      }
24490
      return 0;
24491
    }
24492
 
24493
    public _Fields fieldForId(int fieldId) {
24494
      return _Fields.findByThriftId(fieldId);
24495
    }
24496
 
24497
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24498
      org.apache.thrift.protocol.TField field;
24499
      iprot.readStructBegin();
24500
      while (true)
24501
      {
24502
        field = iprot.readFieldBegin();
24503
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24504
          break;
24505
        }
24506
        switch (field.id) {
24507
          case 1: // ORDER_ID
24508
            if (field.type == org.apache.thrift.protocol.TType.I64) {
24509
              this.orderId = iprot.readI64();
24510
              setOrderIdIsSet(true);
24511
            } else { 
24512
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24513
            }
24514
            break;
24515
          default:
24516
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24517
        }
24518
        iprot.readFieldEnd();
24519
      }
24520
      iprot.readStructEnd();
24521
      validate();
24522
    }
24523
 
24524
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24525
      validate();
24526
 
24527
      oprot.writeStructBegin(STRUCT_DESC);
24528
      oprot.writeFieldBegin(ORDER_ID_FIELD_DESC);
24529
      oprot.writeI64(this.orderId);
24530
      oprot.writeFieldEnd();
24531
      oprot.writeFieldStop();
24532
      oprot.writeStructEnd();
24533
    }
24534
 
24535
    @Override
24536
    public String toString() {
24537
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_args(");
24538
      boolean first = true;
24539
 
24540
      sb.append("orderId:");
24541
      sb.append(this.orderId);
24542
      first = false;
24543
      sb.append(")");
24544
      return sb.toString();
24545
    }
24546
 
24547
    public void validate() throws org.apache.thrift.TException {
24548
      // check for required fields
24549
    }
24550
 
24551
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24552
      try {
24553
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24554
      } catch (org.apache.thrift.TException te) {
24555
        throw new java.io.IOException(te);
24556
      }
24557
    }
24558
 
24559
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24560
      try {
24561
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
24562
        __isset_bit_vector = new BitSet(1);
24563
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24564
      } catch (org.apache.thrift.TException te) {
24565
        throw new java.io.IOException(te);
24566
      }
24567
    }
24568
 
24569
  }
24570
 
24571
  public static class getOrderDeliveryMail_result implements org.apache.thrift.TBase<getOrderDeliveryMail_result, getOrderDeliveryMail_result._Fields>, java.io.Serializable, Cloneable   {
24572
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOrderDeliveryMail_result");
24573
 
24574
    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);
24575
 
24576
    private String success; // required
24577
 
24578
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24579
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24580
      SUCCESS((short)0, "success");
24581
 
24582
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24583
 
24584
      static {
24585
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24586
          byName.put(field.getFieldName(), field);
24587
        }
24588
      }
24589
 
24590
      /**
24591
       * Find the _Fields constant that matches fieldId, or null if its not found.
24592
       */
24593
      public static _Fields findByThriftId(int fieldId) {
24594
        switch(fieldId) {
24595
          case 0: // SUCCESS
24596
            return SUCCESS;
24597
          default:
24598
            return null;
24599
        }
24600
      }
24601
 
24602
      /**
24603
       * Find the _Fields constant that matches fieldId, throwing an exception
24604
       * if it is not found.
24605
       */
24606
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24607
        _Fields fields = findByThriftId(fieldId);
24608
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24609
        return fields;
24610
      }
24611
 
24612
      /**
24613
       * Find the _Fields constant that matches name, or null if its not found.
24614
       */
24615
      public static _Fields findByName(String name) {
24616
        return byName.get(name);
24617
      }
24618
 
24619
      private final short _thriftId;
24620
      private final String _fieldName;
24621
 
24622
      _Fields(short thriftId, String fieldName) {
24623
        _thriftId = thriftId;
24624
        _fieldName = fieldName;
24625
      }
24626
 
24627
      public short getThriftFieldId() {
24628
        return _thriftId;
24629
      }
24630
 
24631
      public String getFieldName() {
24632
        return _fieldName;
24633
      }
24634
    }
24635
 
24636
    // isset id assignments
24637
 
24638
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24639
    static {
24640
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24641
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24642
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24643
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24644
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOrderDeliveryMail_result.class, metaDataMap);
24645
    }
24646
 
24647
    public getOrderDeliveryMail_result() {
24648
    }
24649
 
24650
    public getOrderDeliveryMail_result(
24651
      String success)
24652
    {
24653
      this();
24654
      this.success = success;
24655
    }
24656
 
24657
    /**
24658
     * Performs a deep copy on <i>other</i>.
24659
     */
24660
    public getOrderDeliveryMail_result(getOrderDeliveryMail_result other) {
24661
      if (other.isSetSuccess()) {
24662
        this.success = other.success;
24663
      }
24664
    }
24665
 
24666
    public getOrderDeliveryMail_result deepCopy() {
24667
      return new getOrderDeliveryMail_result(this);
24668
    }
24669
 
24670
    @Override
24671
    public void clear() {
24672
      this.success = null;
24673
    }
24674
 
24675
    public String getSuccess() {
24676
      return this.success;
24677
    }
24678
 
24679
    public void setSuccess(String success) {
24680
      this.success = success;
24681
    }
24682
 
24683
    public void unsetSuccess() {
24684
      this.success = null;
24685
    }
24686
 
24687
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
24688
    public boolean isSetSuccess() {
24689
      return this.success != null;
24690
    }
24691
 
24692
    public void setSuccessIsSet(boolean value) {
24693
      if (!value) {
24694
        this.success = null;
24695
      }
24696
    }
24697
 
24698
    public void setFieldValue(_Fields field, Object value) {
24699
      switch (field) {
24700
      case SUCCESS:
24701
        if (value == null) {
24702
          unsetSuccess();
24703
        } else {
24704
          setSuccess((String)value);
24705
        }
24706
        break;
24707
 
24708
      }
24709
    }
24710
 
24711
    public Object getFieldValue(_Fields field) {
24712
      switch (field) {
24713
      case SUCCESS:
24714
        return getSuccess();
24715
 
24716
      }
24717
      throw new IllegalStateException();
24718
    }
24719
 
24720
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
24721
    public boolean isSet(_Fields field) {
24722
      if (field == null) {
24723
        throw new IllegalArgumentException();
24724
      }
24725
 
24726
      switch (field) {
24727
      case SUCCESS:
24728
        return isSetSuccess();
24729
      }
24730
      throw new IllegalStateException();
24731
    }
24732
 
24733
    @Override
24734
    public boolean equals(Object that) {
24735
      if (that == null)
24736
        return false;
24737
      if (that instanceof getOrderDeliveryMail_result)
24738
        return this.equals((getOrderDeliveryMail_result)that);
24739
      return false;
24740
    }
24741
 
24742
    public boolean equals(getOrderDeliveryMail_result that) {
24743
      if (that == null)
24744
        return false;
24745
 
24746
      boolean this_present_success = true && this.isSetSuccess();
24747
      boolean that_present_success = true && that.isSetSuccess();
24748
      if (this_present_success || that_present_success) {
24749
        if (!(this_present_success && that_present_success))
24750
          return false;
24751
        if (!this.success.equals(that.success))
24752
          return false;
24753
      }
24754
 
24755
      return true;
24756
    }
24757
 
24758
    @Override
24759
    public int hashCode() {
24760
      return 0;
24761
    }
24762
 
24763
    public int compareTo(getOrderDeliveryMail_result other) {
24764
      if (!getClass().equals(other.getClass())) {
24765
        return getClass().getName().compareTo(other.getClass().getName());
24766
      }
24767
 
24768
      int lastComparison = 0;
24769
      getOrderDeliveryMail_result typedOther = (getOrderDeliveryMail_result)other;
24770
 
24771
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
24772
      if (lastComparison != 0) {
24773
        return lastComparison;
24774
      }
24775
      if (isSetSuccess()) {
24776
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
24777
        if (lastComparison != 0) {
24778
          return lastComparison;
24779
        }
24780
      }
24781
      return 0;
24782
    }
24783
 
24784
    public _Fields fieldForId(int fieldId) {
24785
      return _Fields.findByThriftId(fieldId);
24786
    }
24787
 
24788
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
24789
      org.apache.thrift.protocol.TField field;
24790
      iprot.readStructBegin();
24791
      while (true)
24792
      {
24793
        field = iprot.readFieldBegin();
24794
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
24795
          break;
24796
        }
24797
        switch (field.id) {
24798
          case 0: // SUCCESS
24799
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
24800
              this.success = iprot.readString();
24801
            } else { 
24802
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24803
            }
24804
            break;
24805
          default:
24806
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
24807
        }
24808
        iprot.readFieldEnd();
24809
      }
24810
      iprot.readStructEnd();
24811
      validate();
24812
    }
24813
 
24814
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
24815
      oprot.writeStructBegin(STRUCT_DESC);
24816
 
24817
      if (this.isSetSuccess()) {
24818
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
24819
        oprot.writeString(this.success);
24820
        oprot.writeFieldEnd();
24821
      }
24822
      oprot.writeFieldStop();
24823
      oprot.writeStructEnd();
24824
    }
24825
 
24826
    @Override
24827
    public String toString() {
24828
      StringBuilder sb = new StringBuilder("getOrderDeliveryMail_result(");
24829
      boolean first = true;
24830
 
24831
      sb.append("success:");
24832
      if (this.success == null) {
24833
        sb.append("null");
24834
      } else {
24835
        sb.append(this.success);
24836
      }
24837
      first = false;
24838
      sb.append(")");
24839
      return sb.toString();
24840
    }
24841
 
24842
    public void validate() throws org.apache.thrift.TException {
24843
      // check for required fields
24844
    }
24845
 
24846
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
24847
      try {
24848
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
24849
      } catch (org.apache.thrift.TException te) {
24850
        throw new java.io.IOException(te);
24851
      }
24852
    }
24853
 
24854
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
24855
      try {
24856
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
24857
      } catch (org.apache.thrift.TException te) {
24858
        throw new java.io.IOException(te);
24859
      }
24860
    }
24861
 
24862
  }
24863
 
7410 amar.kumar 24864
  public static class getWarehouseIdsForAgent_args implements org.apache.thrift.TBase<getWarehouseIdsForAgent_args, getWarehouseIdsForAgent_args._Fields>, java.io.Serializable, Cloneable   {
24865
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_args");
24866
 
24867
    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);
24868
 
24869
    private String agentEmailId; // required
24870
 
24871
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
24872
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
24873
      AGENT_EMAIL_ID((short)1, "agentEmailId");
24874
 
24875
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
24876
 
24877
      static {
24878
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
24879
          byName.put(field.getFieldName(), field);
24880
        }
24881
      }
24882
 
24883
      /**
24884
       * Find the _Fields constant that matches fieldId, or null if its not found.
24885
       */
24886
      public static _Fields findByThriftId(int fieldId) {
24887
        switch(fieldId) {
24888
          case 1: // AGENT_EMAIL_ID
24889
            return AGENT_EMAIL_ID;
24890
          default:
24891
            return null;
24892
        }
24893
      }
24894
 
24895
      /**
24896
       * Find the _Fields constant that matches fieldId, throwing an exception
24897
       * if it is not found.
24898
       */
24899
      public static _Fields findByThriftIdOrThrow(int fieldId) {
24900
        _Fields fields = findByThriftId(fieldId);
24901
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
24902
        return fields;
24903
      }
24904
 
24905
      /**
24906
       * Find the _Fields constant that matches name, or null if its not found.
24907
       */
24908
      public static _Fields findByName(String name) {
24909
        return byName.get(name);
24910
      }
24911
 
24912
      private final short _thriftId;
24913
      private final String _fieldName;
24914
 
24915
      _Fields(short thriftId, String fieldName) {
24916
        _thriftId = thriftId;
24917
        _fieldName = fieldName;
24918
      }
24919
 
24920
      public short getThriftFieldId() {
24921
        return _thriftId;
24922
      }
24923
 
24924
      public String getFieldName() {
24925
        return _fieldName;
24926
      }
24927
    }
24928
 
24929
    // isset id assignments
24930
 
24931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
24932
    static {
24933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
24934
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
24935
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
24936
      metaDataMap = Collections.unmodifiableMap(tmpMap);
24937
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_args.class, metaDataMap);
24938
    }
24939
 
24940
    public getWarehouseIdsForAgent_args() {
24941
    }
24942
 
24943
    public getWarehouseIdsForAgent_args(
24944
      String agentEmailId)
24945
    {
24946
      this();
24947
      this.agentEmailId = agentEmailId;
24948
    }
24949
 
24950
    /**
24951
     * Performs a deep copy on <i>other</i>.
24952
     */
24953
    public getWarehouseIdsForAgent_args(getWarehouseIdsForAgent_args other) {
24954
      if (other.isSetAgentEmailId()) {
24955
        this.agentEmailId = other.agentEmailId;
24956
      }
24957
    }
24958
 
24959
    public getWarehouseIdsForAgent_args deepCopy() {
24960
      return new getWarehouseIdsForAgent_args(this);
24961
    }
24962
 
24963
    @Override
24964
    public void clear() {
24965
      this.agentEmailId = null;
24966
    }
24967
 
24968
    public String getAgentEmailId() {
24969
      return this.agentEmailId;
24970
    }
24971
 
24972
    public void setAgentEmailId(String agentEmailId) {
24973
      this.agentEmailId = agentEmailId;
24974
    }
24975
 
24976
    public void unsetAgentEmailId() {
24977
      this.agentEmailId = null;
24978
    }
24979
 
24980
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
24981
    public boolean isSetAgentEmailId() {
24982
      return this.agentEmailId != null;
24983
    }
24984
 
24985
    public void setAgentEmailIdIsSet(boolean value) {
24986
      if (!value) {
24987
        this.agentEmailId = null;
24988
      }
24989
    }
24990
 
24991
    public void setFieldValue(_Fields field, Object value) {
24992
      switch (field) {
24993
      case AGENT_EMAIL_ID:
24994
        if (value == null) {
24995
          unsetAgentEmailId();
24996
        } else {
24997
          setAgentEmailId((String)value);
24998
        }
24999
        break;
25000
 
25001
      }
25002
    }
25003
 
25004
    public Object getFieldValue(_Fields field) {
25005
      switch (field) {
25006
      case AGENT_EMAIL_ID:
25007
        return getAgentEmailId();
25008
 
25009
      }
25010
      throw new IllegalStateException();
25011
    }
25012
 
25013
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25014
    public boolean isSet(_Fields field) {
25015
      if (field == null) {
25016
        throw new IllegalArgumentException();
25017
      }
25018
 
25019
      switch (field) {
25020
      case AGENT_EMAIL_ID:
25021
        return isSetAgentEmailId();
25022
      }
25023
      throw new IllegalStateException();
25024
    }
25025
 
25026
    @Override
25027
    public boolean equals(Object that) {
25028
      if (that == null)
25029
        return false;
25030
      if (that instanceof getWarehouseIdsForAgent_args)
25031
        return this.equals((getWarehouseIdsForAgent_args)that);
25032
      return false;
25033
    }
25034
 
25035
    public boolean equals(getWarehouseIdsForAgent_args that) {
25036
      if (that == null)
25037
        return false;
25038
 
25039
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
25040
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
25041
      if (this_present_agentEmailId || that_present_agentEmailId) {
25042
        if (!(this_present_agentEmailId && that_present_agentEmailId))
25043
          return false;
25044
        if (!this.agentEmailId.equals(that.agentEmailId))
25045
          return false;
25046
      }
25047
 
25048
      return true;
25049
    }
25050
 
25051
    @Override
25052
    public int hashCode() {
25053
      return 0;
25054
    }
25055
 
25056
    public int compareTo(getWarehouseIdsForAgent_args other) {
25057
      if (!getClass().equals(other.getClass())) {
25058
        return getClass().getName().compareTo(other.getClass().getName());
25059
      }
25060
 
25061
      int lastComparison = 0;
25062
      getWarehouseIdsForAgent_args typedOther = (getWarehouseIdsForAgent_args)other;
25063
 
25064
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
25065
      if (lastComparison != 0) {
25066
        return lastComparison;
25067
      }
25068
      if (isSetAgentEmailId()) {
25069
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
25070
        if (lastComparison != 0) {
25071
          return lastComparison;
25072
        }
25073
      }
25074
      return 0;
25075
    }
25076
 
25077
    public _Fields fieldForId(int fieldId) {
25078
      return _Fields.findByThriftId(fieldId);
25079
    }
25080
 
25081
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25082
      org.apache.thrift.protocol.TField field;
25083
      iprot.readStructBegin();
25084
      while (true)
25085
      {
25086
        field = iprot.readFieldBegin();
25087
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25088
          break;
25089
        }
25090
        switch (field.id) {
25091
          case 1: // AGENT_EMAIL_ID
25092
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
25093
              this.agentEmailId = iprot.readString();
25094
            } else { 
25095
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25096
            }
25097
            break;
25098
          default:
25099
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25100
        }
25101
        iprot.readFieldEnd();
25102
      }
25103
      iprot.readStructEnd();
25104
      validate();
25105
    }
25106
 
25107
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25108
      validate();
25109
 
25110
      oprot.writeStructBegin(STRUCT_DESC);
25111
      if (this.agentEmailId != null) {
25112
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
25113
        oprot.writeString(this.agentEmailId);
25114
        oprot.writeFieldEnd();
25115
      }
25116
      oprot.writeFieldStop();
25117
      oprot.writeStructEnd();
25118
    }
25119
 
25120
    @Override
25121
    public String toString() {
25122
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_args(");
25123
      boolean first = true;
25124
 
25125
      sb.append("agentEmailId:");
25126
      if (this.agentEmailId == null) {
25127
        sb.append("null");
25128
      } else {
25129
        sb.append(this.agentEmailId);
25130
      }
25131
      first = false;
25132
      sb.append(")");
25133
      return sb.toString();
25134
    }
25135
 
25136
    public void validate() throws org.apache.thrift.TException {
25137
      // check for required fields
25138
    }
25139
 
25140
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25141
      try {
25142
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25143
      } catch (org.apache.thrift.TException te) {
25144
        throw new java.io.IOException(te);
25145
      }
25146
    }
25147
 
25148
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25149
      try {
25150
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25151
      } catch (org.apache.thrift.TException te) {
25152
        throw new java.io.IOException(te);
25153
      }
25154
    }
25155
 
25156
  }
25157
 
25158
  public static class getWarehouseIdsForAgent_result implements org.apache.thrift.TBase<getWarehouseIdsForAgent_result, getWarehouseIdsForAgent_result._Fields>, java.io.Serializable, Cloneable   {
25159
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseIdsForAgent_result");
25160
 
25161
    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);
25162
 
25163
    private List<Long> success; // required
25164
 
25165
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25166
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25167
      SUCCESS((short)0, "success");
25168
 
25169
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25170
 
25171
      static {
25172
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25173
          byName.put(field.getFieldName(), field);
25174
        }
25175
      }
25176
 
25177
      /**
25178
       * Find the _Fields constant that matches fieldId, or null if its not found.
25179
       */
25180
      public static _Fields findByThriftId(int fieldId) {
25181
        switch(fieldId) {
25182
          case 0: // SUCCESS
25183
            return SUCCESS;
25184
          default:
25185
            return null;
25186
        }
25187
      }
25188
 
25189
      /**
25190
       * Find the _Fields constant that matches fieldId, throwing an exception
25191
       * if it is not found.
25192
       */
25193
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25194
        _Fields fields = findByThriftId(fieldId);
25195
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25196
        return fields;
25197
      }
25198
 
25199
      /**
25200
       * Find the _Fields constant that matches name, or null if its not found.
25201
       */
25202
      public static _Fields findByName(String name) {
25203
        return byName.get(name);
25204
      }
25205
 
25206
      private final short _thriftId;
25207
      private final String _fieldName;
25208
 
25209
      _Fields(short thriftId, String fieldName) {
25210
        _thriftId = thriftId;
25211
        _fieldName = fieldName;
25212
      }
25213
 
25214
      public short getThriftFieldId() {
25215
        return _thriftId;
25216
      }
25217
 
25218
      public String getFieldName() {
25219
        return _fieldName;
25220
      }
25221
    }
25222
 
25223
    // isset id assignments
25224
 
25225
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25226
    static {
25227
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25228
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25229
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
25230
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
25231
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25232
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseIdsForAgent_result.class, metaDataMap);
25233
    }
25234
 
25235
    public getWarehouseIdsForAgent_result() {
25236
    }
25237
 
25238
    public getWarehouseIdsForAgent_result(
25239
      List<Long> success)
25240
    {
25241
      this();
25242
      this.success = success;
25243
    }
25244
 
25245
    /**
25246
     * Performs a deep copy on <i>other</i>.
25247
     */
25248
    public getWarehouseIdsForAgent_result(getWarehouseIdsForAgent_result other) {
25249
      if (other.isSetSuccess()) {
25250
        List<Long> __this__success = new ArrayList<Long>();
25251
        for (Long other_element : other.success) {
25252
          __this__success.add(other_element);
25253
        }
25254
        this.success = __this__success;
25255
      }
25256
    }
25257
 
25258
    public getWarehouseIdsForAgent_result deepCopy() {
25259
      return new getWarehouseIdsForAgent_result(this);
25260
    }
25261
 
25262
    @Override
25263
    public void clear() {
25264
      this.success = null;
25265
    }
25266
 
25267
    public int getSuccessSize() {
25268
      return (this.success == null) ? 0 : this.success.size();
25269
    }
25270
 
25271
    public java.util.Iterator<Long> getSuccessIterator() {
25272
      return (this.success == null) ? null : this.success.iterator();
25273
    }
25274
 
25275
    public void addToSuccess(long elem) {
25276
      if (this.success == null) {
25277
        this.success = new ArrayList<Long>();
25278
      }
25279
      this.success.add(elem);
25280
    }
25281
 
25282
    public List<Long> getSuccess() {
25283
      return this.success;
25284
    }
25285
 
25286
    public void setSuccess(List<Long> success) {
25287
      this.success = success;
25288
    }
25289
 
25290
    public void unsetSuccess() {
25291
      this.success = null;
25292
    }
25293
 
25294
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
25295
    public boolean isSetSuccess() {
25296
      return this.success != null;
25297
    }
25298
 
25299
    public void setSuccessIsSet(boolean value) {
25300
      if (!value) {
25301
        this.success = null;
25302
      }
25303
    }
25304
 
25305
    public void setFieldValue(_Fields field, Object value) {
25306
      switch (field) {
25307
      case SUCCESS:
25308
        if (value == null) {
25309
          unsetSuccess();
25310
        } else {
25311
          setSuccess((List<Long>)value);
25312
        }
25313
        break;
25314
 
25315
      }
25316
    }
25317
 
25318
    public Object getFieldValue(_Fields field) {
25319
      switch (field) {
25320
      case SUCCESS:
25321
        return getSuccess();
25322
 
25323
      }
25324
      throw new IllegalStateException();
25325
    }
25326
 
25327
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25328
    public boolean isSet(_Fields field) {
25329
      if (field == null) {
25330
        throw new IllegalArgumentException();
25331
      }
25332
 
25333
      switch (field) {
25334
      case SUCCESS:
25335
        return isSetSuccess();
25336
      }
25337
      throw new IllegalStateException();
25338
    }
25339
 
25340
    @Override
25341
    public boolean equals(Object that) {
25342
      if (that == null)
25343
        return false;
25344
      if (that instanceof getWarehouseIdsForAgent_result)
25345
        return this.equals((getWarehouseIdsForAgent_result)that);
25346
      return false;
25347
    }
25348
 
25349
    public boolean equals(getWarehouseIdsForAgent_result that) {
25350
      if (that == null)
25351
        return false;
25352
 
25353
      boolean this_present_success = true && this.isSetSuccess();
25354
      boolean that_present_success = true && that.isSetSuccess();
25355
      if (this_present_success || that_present_success) {
25356
        if (!(this_present_success && that_present_success))
25357
          return false;
25358
        if (!this.success.equals(that.success))
25359
          return false;
25360
      }
25361
 
25362
      return true;
25363
    }
25364
 
25365
    @Override
25366
    public int hashCode() {
25367
      return 0;
25368
    }
25369
 
25370
    public int compareTo(getWarehouseIdsForAgent_result other) {
25371
      if (!getClass().equals(other.getClass())) {
25372
        return getClass().getName().compareTo(other.getClass().getName());
25373
      }
25374
 
25375
      int lastComparison = 0;
25376
      getWarehouseIdsForAgent_result typedOther = (getWarehouseIdsForAgent_result)other;
25377
 
25378
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
25379
      if (lastComparison != 0) {
25380
        return lastComparison;
25381
      }
25382
      if (isSetSuccess()) {
25383
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
25384
        if (lastComparison != 0) {
25385
          return lastComparison;
25386
        }
25387
      }
25388
      return 0;
25389
    }
25390
 
25391
    public _Fields fieldForId(int fieldId) {
25392
      return _Fields.findByThriftId(fieldId);
25393
    }
25394
 
25395
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25396
      org.apache.thrift.protocol.TField field;
25397
      iprot.readStructBegin();
25398
      while (true)
25399
      {
25400
        field = iprot.readFieldBegin();
25401
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25402
          break;
25403
        }
25404
        switch (field.id) {
25405
          case 0: // SUCCESS
25406
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
25407
              {
25408
                org.apache.thrift.protocol.TList _list69 = iprot.readListBegin();
25409
                this.success = new ArrayList<Long>(_list69.size);
25410
                for (int _i70 = 0; _i70 < _list69.size; ++_i70)
25411
                {
25412
                  long _elem71; // required
25413
                  _elem71 = iprot.readI64();
25414
                  this.success.add(_elem71);
25415
                }
25416
                iprot.readListEnd();
25417
              }
25418
            } else { 
25419
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25420
            }
25421
            break;
25422
          default:
25423
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25424
        }
25425
        iprot.readFieldEnd();
25426
      }
25427
      iprot.readStructEnd();
25428
      validate();
25429
    }
25430
 
25431
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25432
      oprot.writeStructBegin(STRUCT_DESC);
25433
 
25434
      if (this.isSetSuccess()) {
25435
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
25436
        {
25437
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
25438
          for (long _iter72 : this.success)
25439
          {
25440
            oprot.writeI64(_iter72);
25441
          }
25442
          oprot.writeListEnd();
25443
        }
25444
        oprot.writeFieldEnd();
25445
      }
25446
      oprot.writeFieldStop();
25447
      oprot.writeStructEnd();
25448
    }
25449
 
25450
    @Override
25451
    public String toString() {
25452
      StringBuilder sb = new StringBuilder("getWarehouseIdsForAgent_result(");
25453
      boolean first = true;
25454
 
25455
      sb.append("success:");
25456
      if (this.success == null) {
25457
        sb.append("null");
25458
      } else {
25459
        sb.append(this.success);
25460
      }
25461
      first = false;
25462
      sb.append(")");
25463
      return sb.toString();
25464
    }
25465
 
25466
    public void validate() throws org.apache.thrift.TException {
25467
      // check for required fields
25468
    }
25469
 
25470
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
25471
      try {
25472
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
25473
      } catch (org.apache.thrift.TException te) {
25474
        throw new java.io.IOException(te);
25475
      }
25476
    }
25477
 
25478
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
25479
      try {
25480
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
25481
      } catch (org.apache.thrift.TException te) {
25482
        throw new java.io.IOException(te);
25483
      }
25484
    }
25485
 
25486
  }
25487
 
12691 manish.sha 25488
  public static class saveUserSmsForSending_args implements org.apache.thrift.TBase<saveUserSmsForSending_args, saveUserSmsForSending_args._Fields>, java.io.Serializable, Cloneable   {
25489
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserSmsForSending_args");
25490
 
25491
    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);
25492
    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);
25493
    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);
25494
    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);
25495
 
25496
    private long userId; // required
25497
    private String mobileNo; // required
25498
    private String text; // required
25499
    private SmsType type; // required
25500
 
25501
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
25502
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
25503
      USER_ID((short)1, "userId"),
25504
      MOBILE_NO((short)2, "mobileNo"),
25505
      TEXT((short)3, "text"),
25506
      /**
25507
       * 
25508
       * @see SmsType
25509
       */
25510
      TYPE((short)4, "type");
25511
 
25512
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
25513
 
25514
      static {
25515
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
25516
          byName.put(field.getFieldName(), field);
25517
        }
25518
      }
25519
 
25520
      /**
25521
       * Find the _Fields constant that matches fieldId, or null if its not found.
25522
       */
25523
      public static _Fields findByThriftId(int fieldId) {
25524
        switch(fieldId) {
25525
          case 1: // USER_ID
25526
            return USER_ID;
25527
          case 2: // MOBILE_NO
25528
            return MOBILE_NO;
25529
          case 3: // TEXT
25530
            return TEXT;
25531
          case 4: // TYPE
25532
            return TYPE;
25533
          default:
25534
            return null;
25535
        }
25536
      }
25537
 
25538
      /**
25539
       * Find the _Fields constant that matches fieldId, throwing an exception
25540
       * if it is not found.
25541
       */
25542
      public static _Fields findByThriftIdOrThrow(int fieldId) {
25543
        _Fields fields = findByThriftId(fieldId);
25544
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
25545
        return fields;
25546
      }
25547
 
25548
      /**
25549
       * Find the _Fields constant that matches name, or null if its not found.
25550
       */
25551
      public static _Fields findByName(String name) {
25552
        return byName.get(name);
25553
      }
25554
 
25555
      private final short _thriftId;
25556
      private final String _fieldName;
25557
 
25558
      _Fields(short thriftId, String fieldName) {
25559
        _thriftId = thriftId;
25560
        _fieldName = fieldName;
25561
      }
25562
 
25563
      public short getThriftFieldId() {
25564
        return _thriftId;
25565
      }
25566
 
25567
      public String getFieldName() {
25568
        return _fieldName;
25569
      }
25570
    }
25571
 
25572
    // isset id assignments
25573
    private static final int __USERID_ISSET_ID = 0;
25574
    private BitSet __isset_bit_vector = new BitSet(1);
25575
 
25576
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
25577
    static {
25578
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
25579
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25580
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
25581
      tmpMap.put(_Fields.MOBILE_NO, new org.apache.thrift.meta_data.FieldMetaData("mobileNo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25582
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25583
      tmpMap.put(_Fields.TEXT, new org.apache.thrift.meta_data.FieldMetaData("text", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25584
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
25585
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
25586
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, SmsType.class)));
25587
      metaDataMap = Collections.unmodifiableMap(tmpMap);
25588
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserSmsForSending_args.class, metaDataMap);
25589
    }
25590
 
25591
    public saveUserSmsForSending_args() {
25592
    }
25593
 
25594
    public saveUserSmsForSending_args(
25595
      long userId,
25596
      String mobileNo,
25597
      String text,
25598
      SmsType type)
25599
    {
25600
      this();
25601
      this.userId = userId;
25602
      setUserIdIsSet(true);
25603
      this.mobileNo = mobileNo;
25604
      this.text = text;
25605
      this.type = type;
25606
    }
25607
 
25608
    /**
25609
     * Performs a deep copy on <i>other</i>.
25610
     */
25611
    public saveUserSmsForSending_args(saveUserSmsForSending_args other) {
25612
      __isset_bit_vector.clear();
25613
      __isset_bit_vector.or(other.__isset_bit_vector);
25614
      this.userId = other.userId;
25615
      if (other.isSetMobileNo()) {
25616
        this.mobileNo = other.mobileNo;
25617
      }
25618
      if (other.isSetText()) {
25619
        this.text = other.text;
25620
      }
25621
      if (other.isSetType()) {
25622
        this.type = other.type;
25623
      }
25624
    }
25625
 
25626
    public saveUserSmsForSending_args deepCopy() {
25627
      return new saveUserSmsForSending_args(this);
25628
    }
25629
 
25630
    @Override
25631
    public void clear() {
25632
      setUserIdIsSet(false);
25633
      this.userId = 0;
25634
      this.mobileNo = null;
25635
      this.text = null;
25636
      this.type = null;
25637
    }
25638
 
25639
    public long getUserId() {
25640
      return this.userId;
25641
    }
25642
 
25643
    public void setUserId(long userId) {
25644
      this.userId = userId;
25645
      setUserIdIsSet(true);
25646
    }
25647
 
25648
    public void unsetUserId() {
25649
      __isset_bit_vector.clear(__USERID_ISSET_ID);
25650
    }
25651
 
25652
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
25653
    public boolean isSetUserId() {
25654
      return __isset_bit_vector.get(__USERID_ISSET_ID);
25655
    }
25656
 
25657
    public void setUserIdIsSet(boolean value) {
25658
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
25659
    }
25660
 
25661
    public String getMobileNo() {
25662
      return this.mobileNo;
25663
    }
25664
 
25665
    public void setMobileNo(String mobileNo) {
25666
      this.mobileNo = mobileNo;
25667
    }
25668
 
25669
    public void unsetMobileNo() {
25670
      this.mobileNo = null;
25671
    }
25672
 
25673
    /** Returns true if field mobileNo is set (has been assigned a value) and false otherwise */
25674
    public boolean isSetMobileNo() {
25675
      return this.mobileNo != null;
25676
    }
25677
 
25678
    public void setMobileNoIsSet(boolean value) {
25679
      if (!value) {
25680
        this.mobileNo = null;
25681
      }
25682
    }
25683
 
25684
    public String getText() {
25685
      return this.text;
25686
    }
25687
 
25688
    public void setText(String text) {
25689
      this.text = text;
25690
    }
25691
 
25692
    public void unsetText() {
25693
      this.text = null;
25694
    }
25695
 
25696
    /** Returns true if field text is set (has been assigned a value) and false otherwise */
25697
    public boolean isSetText() {
25698
      return this.text != null;
25699
    }
25700
 
25701
    public void setTextIsSet(boolean value) {
25702
      if (!value) {
25703
        this.text = null;
25704
      }
25705
    }
25706
 
25707
    /**
25708
     * 
25709
     * @see SmsType
25710
     */
25711
    public SmsType getType() {
25712
      return this.type;
25713
    }
25714
 
25715
    /**
25716
     * 
25717
     * @see SmsType
25718
     */
25719
    public void setType(SmsType type) {
25720
      this.type = type;
25721
    }
25722
 
25723
    public void unsetType() {
25724
      this.type = null;
25725
    }
25726
 
25727
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
25728
    public boolean isSetType() {
25729
      return this.type != null;
25730
    }
25731
 
25732
    public void setTypeIsSet(boolean value) {
25733
      if (!value) {
25734
        this.type = null;
25735
      }
25736
    }
25737
 
25738
    public void setFieldValue(_Fields field, Object value) {
25739
      switch (field) {
25740
      case USER_ID:
25741
        if (value == null) {
25742
          unsetUserId();
25743
        } else {
25744
          setUserId((Long)value);
25745
        }
25746
        break;
25747
 
25748
      case MOBILE_NO:
25749
        if (value == null) {
25750
          unsetMobileNo();
25751
        } else {
25752
          setMobileNo((String)value);
25753
        }
25754
        break;
25755
 
25756
      case TEXT:
25757
        if (value == null) {
25758
          unsetText();
25759
        } else {
25760
          setText((String)value);
25761
        }
25762
        break;
25763
 
25764
      case TYPE:
25765
        if (value == null) {
25766
          unsetType();
25767
        } else {
25768
          setType((SmsType)value);
25769
        }
25770
        break;
25771
 
25772
      }
25773
    }
25774
 
25775
    public Object getFieldValue(_Fields field) {
25776
      switch (field) {
25777
      case USER_ID:
25778
        return Long.valueOf(getUserId());
25779
 
25780
      case MOBILE_NO:
25781
        return getMobileNo();
25782
 
25783
      case TEXT:
25784
        return getText();
25785
 
25786
      case TYPE:
25787
        return getType();
25788
 
25789
      }
25790
      throw new IllegalStateException();
25791
    }
25792
 
25793
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
25794
    public boolean isSet(_Fields field) {
25795
      if (field == null) {
25796
        throw new IllegalArgumentException();
25797
      }
25798
 
25799
      switch (field) {
25800
      case USER_ID:
25801
        return isSetUserId();
25802
      case MOBILE_NO:
25803
        return isSetMobileNo();
25804
      case TEXT:
25805
        return isSetText();
25806
      case TYPE:
25807
        return isSetType();
25808
      }
25809
      throw new IllegalStateException();
25810
    }
25811
 
25812
    @Override
25813
    public boolean equals(Object that) {
25814
      if (that == null)
25815
        return false;
25816
      if (that instanceof saveUserSmsForSending_args)
25817
        return this.equals((saveUserSmsForSending_args)that);
25818
      return false;
25819
    }
25820
 
25821
    public boolean equals(saveUserSmsForSending_args that) {
25822
      if (that == null)
25823
        return false;
25824
 
25825
      boolean this_present_userId = true;
25826
      boolean that_present_userId = true;
25827
      if (this_present_userId || that_present_userId) {
25828
        if (!(this_present_userId && that_present_userId))
25829
          return false;
25830
        if (this.userId != that.userId)
25831
          return false;
25832
      }
25833
 
25834
      boolean this_present_mobileNo = true && this.isSetMobileNo();
25835
      boolean that_present_mobileNo = true && that.isSetMobileNo();
25836
      if (this_present_mobileNo || that_present_mobileNo) {
25837
        if (!(this_present_mobileNo && that_present_mobileNo))
25838
          return false;
25839
        if (!this.mobileNo.equals(that.mobileNo))
25840
          return false;
25841
      }
25842
 
25843
      boolean this_present_text = true && this.isSetText();
25844
      boolean that_present_text = true && that.isSetText();
25845
      if (this_present_text || that_present_text) {
25846
        if (!(this_present_text && that_present_text))
25847
          return false;
25848
        if (!this.text.equals(that.text))
25849
          return false;
25850
      }
25851
 
25852
      boolean this_present_type = true && this.isSetType();
25853
      boolean that_present_type = true && that.isSetType();
25854
      if (this_present_type || that_present_type) {
25855
        if (!(this_present_type && that_present_type))
25856
          return false;
25857
        if (!this.type.equals(that.type))
25858
          return false;
25859
      }
25860
 
25861
      return true;
25862
    }
25863
 
25864
    @Override
25865
    public int hashCode() {
25866
      return 0;
25867
    }
25868
 
25869
    public int compareTo(saveUserSmsForSending_args other) {
25870
      if (!getClass().equals(other.getClass())) {
25871
        return getClass().getName().compareTo(other.getClass().getName());
25872
      }
25873
 
25874
      int lastComparison = 0;
25875
      saveUserSmsForSending_args typedOther = (saveUserSmsForSending_args)other;
25876
 
25877
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
25878
      if (lastComparison != 0) {
25879
        return lastComparison;
25880
      }
25881
      if (isSetUserId()) {
25882
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
25883
        if (lastComparison != 0) {
25884
          return lastComparison;
25885
        }
25886
      }
25887
      lastComparison = Boolean.valueOf(isSetMobileNo()).compareTo(typedOther.isSetMobileNo());
25888
      if (lastComparison != 0) {
25889
        return lastComparison;
25890
      }
25891
      if (isSetMobileNo()) {
25892
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mobileNo, typedOther.mobileNo);
25893
        if (lastComparison != 0) {
25894
          return lastComparison;
25895
        }
25896
      }
25897
      lastComparison = Boolean.valueOf(isSetText()).compareTo(typedOther.isSetText());
25898
      if (lastComparison != 0) {
25899
        return lastComparison;
25900
      }
25901
      if (isSetText()) {
25902
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.text, typedOther.text);
25903
        if (lastComparison != 0) {
25904
          return lastComparison;
25905
        }
25906
      }
25907
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
25908
      if (lastComparison != 0) {
25909
        return lastComparison;
25910
      }
25911
      if (isSetType()) {
25912
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
25913
        if (lastComparison != 0) {
25914
          return lastComparison;
25915
        }
25916
      }
25917
      return 0;
25918
    }
25919
 
25920
    public _Fields fieldForId(int fieldId) {
25921
      return _Fields.findByThriftId(fieldId);
25922
    }
25923
 
25924
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
25925
      org.apache.thrift.protocol.TField field;
25926
      iprot.readStructBegin();
25927
      while (true)
25928
      {
25929
        field = iprot.readFieldBegin();
25930
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
25931
          break;
25932
        }
25933
        switch (field.id) {
25934
          case 1: // USER_ID
25935
            if (field.type == org.apache.thrift.protocol.TType.I64) {
25936
              this.userId = iprot.readI64();
25937
              setUserIdIsSet(true);
25938
            } else { 
25939
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25940
            }
25941
            break;
25942
          case 2: // MOBILE_NO
25943
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
25944
              this.mobileNo = iprot.readString();
25945
            } else { 
25946
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25947
            }
25948
            break;
25949
          case 3: // TEXT
25950
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
25951
              this.text = iprot.readString();
25952
            } else { 
25953
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25954
            }
25955
            break;
25956
          case 4: // TYPE
25957
            if (field.type == org.apache.thrift.protocol.TType.I32) {
25958
              this.type = SmsType.findByValue(iprot.readI32());
25959
            } else { 
25960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25961
            }
25962
            break;
25963
          default:
25964
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
25965
        }
25966
        iprot.readFieldEnd();
25967
      }
25968
      iprot.readStructEnd();
25969
      validate();
25970
    }
25971
 
25972
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
25973
      validate();
25974
 
25975
      oprot.writeStructBegin(STRUCT_DESC);
25976
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
25977
      oprot.writeI64(this.userId);
25978
      oprot.writeFieldEnd();
25979
      if (this.mobileNo != null) {
25980
        oprot.writeFieldBegin(MOBILE_NO_FIELD_DESC);
25981
        oprot.writeString(this.mobileNo);
25982
        oprot.writeFieldEnd();
25983
      }
25984
      if (this.text != null) {
25985
        oprot.writeFieldBegin(TEXT_FIELD_DESC);
25986
        oprot.writeString(this.text);
25987
        oprot.writeFieldEnd();
25988
      }
25989
      if (this.type != null) {
25990
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
25991
        oprot.writeI32(this.type.getValue());
25992
        oprot.writeFieldEnd();
25993
      }
25994
      oprot.writeFieldStop();
25995
      oprot.writeStructEnd();
25996
    }
25997
 
25998
    @Override
25999
    public String toString() {
26000
      StringBuilder sb = new StringBuilder("saveUserSmsForSending_args(");
26001
      boolean first = true;
26002
 
26003
      sb.append("userId:");
26004
      sb.append(this.userId);
26005
      first = false;
26006
      if (!first) sb.append(", ");
26007
      sb.append("mobileNo:");
26008
      if (this.mobileNo == null) {
26009
        sb.append("null");
26010
      } else {
26011
        sb.append(this.mobileNo);
26012
      }
26013
      first = false;
26014
      if (!first) sb.append(", ");
26015
      sb.append("text:");
26016
      if (this.text == null) {
26017
        sb.append("null");
26018
      } else {
26019
        sb.append(this.text);
26020
      }
26021
      first = false;
26022
      if (!first) sb.append(", ");
26023
      sb.append("type:");
26024
      if (this.type == null) {
26025
        sb.append("null");
26026
      } else {
26027
        sb.append(this.type);
26028
      }
26029
      first = false;
26030
      sb.append(")");
26031
      return sb.toString();
26032
    }
26033
 
26034
    public void validate() throws org.apache.thrift.TException {
26035
      // check for required fields
26036
    }
26037
 
26038
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26039
      try {
26040
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26041
      } catch (org.apache.thrift.TException te) {
26042
        throw new java.io.IOException(te);
26043
      }
26044
    }
26045
 
26046
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26047
      try {
26048
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
26049
        __isset_bit_vector = new BitSet(1);
26050
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26051
      } catch (org.apache.thrift.TException te) {
26052
        throw new java.io.IOException(te);
26053
      }
26054
    }
26055
 
26056
  }
26057
 
26058
  public static class saveUserSmsForSending_result implements org.apache.thrift.TBase<saveUserSmsForSending_result, saveUserSmsForSending_result._Fields>, java.io.Serializable, Cloneable   {
26059
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserSmsForSending_result");
26060
 
26061
    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);
26062
    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);
26063
 
26064
    private long success; // required
26065
    private HelperServiceException se; // required
26066
 
26067
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26068
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26069
      SUCCESS((short)0, "success"),
26070
      SE((short)1, "se");
26071
 
26072
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26073
 
26074
      static {
26075
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26076
          byName.put(field.getFieldName(), field);
26077
        }
26078
      }
26079
 
26080
      /**
26081
       * Find the _Fields constant that matches fieldId, or null if its not found.
26082
       */
26083
      public static _Fields findByThriftId(int fieldId) {
26084
        switch(fieldId) {
26085
          case 0: // SUCCESS
26086
            return SUCCESS;
26087
          case 1: // SE
26088
            return SE;
26089
          default:
26090
            return null;
26091
        }
26092
      }
26093
 
26094
      /**
26095
       * Find the _Fields constant that matches fieldId, throwing an exception
26096
       * if it is not found.
26097
       */
26098
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26099
        _Fields fields = findByThriftId(fieldId);
26100
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26101
        return fields;
26102
      }
26103
 
26104
      /**
26105
       * Find the _Fields constant that matches name, or null if its not found.
26106
       */
26107
      public static _Fields findByName(String name) {
26108
        return byName.get(name);
26109
      }
26110
 
26111
      private final short _thriftId;
26112
      private final String _fieldName;
26113
 
26114
      _Fields(short thriftId, String fieldName) {
26115
        _thriftId = thriftId;
26116
        _fieldName = fieldName;
26117
      }
26118
 
26119
      public short getThriftFieldId() {
26120
        return _thriftId;
26121
      }
26122
 
26123
      public String getFieldName() {
26124
        return _fieldName;
26125
      }
26126
    }
26127
 
26128
    // isset id assignments
26129
    private static final int __SUCCESS_ISSET_ID = 0;
26130
    private BitSet __isset_bit_vector = new BitSet(1);
26131
 
26132
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26133
    static {
26134
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26135
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26136
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
26137
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26138
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26139
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26140
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserSmsForSending_result.class, metaDataMap);
26141
    }
26142
 
26143
    public saveUserSmsForSending_result() {
26144
    }
26145
 
26146
    public saveUserSmsForSending_result(
26147
      long success,
26148
      HelperServiceException se)
26149
    {
26150
      this();
26151
      this.success = success;
26152
      setSuccessIsSet(true);
26153
      this.se = se;
26154
    }
26155
 
26156
    /**
26157
     * Performs a deep copy on <i>other</i>.
26158
     */
26159
    public saveUserSmsForSending_result(saveUserSmsForSending_result other) {
26160
      __isset_bit_vector.clear();
26161
      __isset_bit_vector.or(other.__isset_bit_vector);
26162
      this.success = other.success;
26163
      if (other.isSetSe()) {
26164
        this.se = new HelperServiceException(other.se);
26165
      }
26166
    }
26167
 
26168
    public saveUserSmsForSending_result deepCopy() {
26169
      return new saveUserSmsForSending_result(this);
26170
    }
26171
 
26172
    @Override
26173
    public void clear() {
26174
      setSuccessIsSet(false);
26175
      this.success = 0;
26176
      this.se = null;
26177
    }
26178
 
26179
    public long getSuccess() {
26180
      return this.success;
26181
    }
26182
 
26183
    public void setSuccess(long success) {
26184
      this.success = success;
26185
      setSuccessIsSet(true);
26186
    }
26187
 
26188
    public void unsetSuccess() {
26189
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
26190
    }
26191
 
26192
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26193
    public boolean isSetSuccess() {
26194
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
26195
    }
26196
 
26197
    public void setSuccessIsSet(boolean value) {
26198
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
26199
    }
26200
 
26201
    public HelperServiceException getSe() {
26202
      return this.se;
26203
    }
26204
 
26205
    public void setSe(HelperServiceException se) {
26206
      this.se = se;
26207
    }
26208
 
26209
    public void unsetSe() {
26210
      this.se = null;
26211
    }
26212
 
26213
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
26214
    public boolean isSetSe() {
26215
      return this.se != null;
26216
    }
26217
 
26218
    public void setSeIsSet(boolean value) {
26219
      if (!value) {
26220
        this.se = null;
26221
      }
26222
    }
26223
 
26224
    public void setFieldValue(_Fields field, Object value) {
26225
      switch (field) {
26226
      case SUCCESS:
26227
        if (value == null) {
26228
          unsetSuccess();
26229
        } else {
26230
          setSuccess((Long)value);
26231
        }
26232
        break;
26233
 
26234
      case SE:
26235
        if (value == null) {
26236
          unsetSe();
26237
        } else {
26238
          setSe((HelperServiceException)value);
26239
        }
26240
        break;
26241
 
26242
      }
26243
    }
26244
 
26245
    public Object getFieldValue(_Fields field) {
26246
      switch (field) {
26247
      case SUCCESS:
26248
        return Long.valueOf(getSuccess());
26249
 
26250
      case SE:
26251
        return getSe();
26252
 
26253
      }
26254
      throw new IllegalStateException();
26255
    }
26256
 
26257
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26258
    public boolean isSet(_Fields field) {
26259
      if (field == null) {
26260
        throw new IllegalArgumentException();
26261
      }
26262
 
26263
      switch (field) {
26264
      case SUCCESS:
26265
        return isSetSuccess();
26266
      case SE:
26267
        return isSetSe();
26268
      }
26269
      throw new IllegalStateException();
26270
    }
26271
 
26272
    @Override
26273
    public boolean equals(Object that) {
26274
      if (that == null)
26275
        return false;
26276
      if (that instanceof saveUserSmsForSending_result)
26277
        return this.equals((saveUserSmsForSending_result)that);
26278
      return false;
26279
    }
26280
 
26281
    public boolean equals(saveUserSmsForSending_result that) {
26282
      if (that == null)
26283
        return false;
26284
 
26285
      boolean this_present_success = true;
26286
      boolean that_present_success = true;
26287
      if (this_present_success || that_present_success) {
26288
        if (!(this_present_success && that_present_success))
26289
          return false;
26290
        if (this.success != that.success)
26291
          return false;
26292
      }
26293
 
26294
      boolean this_present_se = true && this.isSetSe();
26295
      boolean that_present_se = true && that.isSetSe();
26296
      if (this_present_se || that_present_se) {
26297
        if (!(this_present_se && that_present_se))
26298
          return false;
26299
        if (!this.se.equals(that.se))
26300
          return false;
26301
      }
26302
 
26303
      return true;
26304
    }
26305
 
26306
    @Override
26307
    public int hashCode() {
26308
      return 0;
26309
    }
26310
 
26311
    public int compareTo(saveUserSmsForSending_result other) {
26312
      if (!getClass().equals(other.getClass())) {
26313
        return getClass().getName().compareTo(other.getClass().getName());
26314
      }
26315
 
26316
      int lastComparison = 0;
26317
      saveUserSmsForSending_result typedOther = (saveUserSmsForSending_result)other;
26318
 
26319
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26320
      if (lastComparison != 0) {
26321
        return lastComparison;
26322
      }
26323
      if (isSetSuccess()) {
26324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26325
        if (lastComparison != 0) {
26326
          return lastComparison;
26327
        }
26328
      }
26329
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
26330
      if (lastComparison != 0) {
26331
        return lastComparison;
26332
      }
26333
      if (isSetSe()) {
26334
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
26335
        if (lastComparison != 0) {
26336
          return lastComparison;
26337
        }
26338
      }
26339
      return 0;
26340
    }
26341
 
26342
    public _Fields fieldForId(int fieldId) {
26343
      return _Fields.findByThriftId(fieldId);
26344
    }
26345
 
26346
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26347
      org.apache.thrift.protocol.TField field;
26348
      iprot.readStructBegin();
26349
      while (true)
26350
      {
26351
        field = iprot.readFieldBegin();
26352
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26353
          break;
26354
        }
26355
        switch (field.id) {
26356
          case 0: // SUCCESS
26357
            if (field.type == org.apache.thrift.protocol.TType.I64) {
26358
              this.success = iprot.readI64();
26359
              setSuccessIsSet(true);
26360
            } else { 
26361
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26362
            }
26363
            break;
26364
          case 1: // SE
26365
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26366
              this.se = new HelperServiceException();
26367
              this.se.read(iprot);
26368
            } else { 
26369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26370
            }
26371
            break;
26372
          default:
26373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26374
        }
26375
        iprot.readFieldEnd();
26376
      }
26377
      iprot.readStructEnd();
26378
      validate();
26379
    }
26380
 
26381
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26382
      oprot.writeStructBegin(STRUCT_DESC);
26383
 
26384
      if (this.isSetSuccess()) {
26385
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26386
        oprot.writeI64(this.success);
26387
        oprot.writeFieldEnd();
26388
      } else if (this.isSetSe()) {
26389
        oprot.writeFieldBegin(SE_FIELD_DESC);
26390
        this.se.write(oprot);
26391
        oprot.writeFieldEnd();
26392
      }
26393
      oprot.writeFieldStop();
26394
      oprot.writeStructEnd();
26395
    }
26396
 
26397
    @Override
26398
    public String toString() {
26399
      StringBuilder sb = new StringBuilder("saveUserSmsForSending_result(");
26400
      boolean first = true;
26401
 
26402
      sb.append("success:");
26403
      sb.append(this.success);
26404
      first = false;
26405
      if (!first) sb.append(", ");
26406
      sb.append("se:");
26407
      if (this.se == null) {
26408
        sb.append("null");
26409
      } else {
26410
        sb.append(this.se);
26411
      }
26412
      first = false;
26413
      sb.append(")");
26414
      return sb.toString();
26415
    }
26416
 
26417
    public void validate() throws org.apache.thrift.TException {
26418
      // check for required fields
26419
    }
26420
 
26421
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26422
      try {
26423
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26424
      } catch (org.apache.thrift.TException te) {
26425
        throw new java.io.IOException(te);
26426
      }
26427
    }
26428
 
26429
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26430
      try {
26431
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26432
      } catch (org.apache.thrift.TException te) {
26433
        throw new java.io.IOException(te);
26434
      }
26435
    }
26436
 
26437
  }
26438
 
26439
  public static class getSmsToBeSent_args implements org.apache.thrift.TBase<getSmsToBeSent_args, getSmsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
26440
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSmsToBeSent_args");
26441
 
26442
 
26443
 
26444
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26445
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26446
;
26447
 
26448
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26449
 
26450
      static {
26451
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26452
          byName.put(field.getFieldName(), field);
26453
        }
26454
      }
26455
 
26456
      /**
26457
       * Find the _Fields constant that matches fieldId, or null if its not found.
26458
       */
26459
      public static _Fields findByThriftId(int fieldId) {
26460
        switch(fieldId) {
26461
          default:
26462
            return null;
26463
        }
26464
      }
26465
 
26466
      /**
26467
       * Find the _Fields constant that matches fieldId, throwing an exception
26468
       * if it is not found.
26469
       */
26470
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26471
        _Fields fields = findByThriftId(fieldId);
26472
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26473
        return fields;
26474
      }
26475
 
26476
      /**
26477
       * Find the _Fields constant that matches name, or null if its not found.
26478
       */
26479
      public static _Fields findByName(String name) {
26480
        return byName.get(name);
26481
      }
26482
 
26483
      private final short _thriftId;
26484
      private final String _fieldName;
26485
 
26486
      _Fields(short thriftId, String fieldName) {
26487
        _thriftId = thriftId;
26488
        _fieldName = fieldName;
26489
      }
26490
 
26491
      public short getThriftFieldId() {
26492
        return _thriftId;
26493
      }
26494
 
26495
      public String getFieldName() {
26496
        return _fieldName;
26497
      }
26498
    }
26499
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26500
    static {
26501
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26502
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26503
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSmsToBeSent_args.class, metaDataMap);
26504
    }
26505
 
26506
    public getSmsToBeSent_args() {
26507
    }
26508
 
26509
    /**
26510
     * Performs a deep copy on <i>other</i>.
26511
     */
26512
    public getSmsToBeSent_args(getSmsToBeSent_args other) {
26513
    }
26514
 
26515
    public getSmsToBeSent_args deepCopy() {
26516
      return new getSmsToBeSent_args(this);
26517
    }
26518
 
26519
    @Override
26520
    public void clear() {
26521
    }
26522
 
26523
    public void setFieldValue(_Fields field, Object value) {
26524
      switch (field) {
26525
      }
26526
    }
26527
 
26528
    public Object getFieldValue(_Fields field) {
26529
      switch (field) {
26530
      }
26531
      throw new IllegalStateException();
26532
    }
26533
 
26534
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26535
    public boolean isSet(_Fields field) {
26536
      if (field == null) {
26537
        throw new IllegalArgumentException();
26538
      }
26539
 
26540
      switch (field) {
26541
      }
26542
      throw new IllegalStateException();
26543
    }
26544
 
26545
    @Override
26546
    public boolean equals(Object that) {
26547
      if (that == null)
26548
        return false;
26549
      if (that instanceof getSmsToBeSent_args)
26550
        return this.equals((getSmsToBeSent_args)that);
26551
      return false;
26552
    }
26553
 
26554
    public boolean equals(getSmsToBeSent_args that) {
26555
      if (that == null)
26556
        return false;
26557
 
26558
      return true;
26559
    }
26560
 
26561
    @Override
26562
    public int hashCode() {
26563
      return 0;
26564
    }
26565
 
26566
    public int compareTo(getSmsToBeSent_args other) {
26567
      if (!getClass().equals(other.getClass())) {
26568
        return getClass().getName().compareTo(other.getClass().getName());
26569
      }
26570
 
26571
      int lastComparison = 0;
26572
      getSmsToBeSent_args typedOther = (getSmsToBeSent_args)other;
26573
 
26574
      return 0;
26575
    }
26576
 
26577
    public _Fields fieldForId(int fieldId) {
26578
      return _Fields.findByThriftId(fieldId);
26579
    }
26580
 
26581
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26582
      org.apache.thrift.protocol.TField field;
26583
      iprot.readStructBegin();
26584
      while (true)
26585
      {
26586
        field = iprot.readFieldBegin();
26587
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26588
          break;
26589
        }
26590
        switch (field.id) {
26591
          default:
26592
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26593
        }
26594
        iprot.readFieldEnd();
26595
      }
26596
      iprot.readStructEnd();
26597
      validate();
26598
    }
26599
 
26600
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26601
      validate();
26602
 
26603
      oprot.writeStructBegin(STRUCT_DESC);
26604
      oprot.writeFieldStop();
26605
      oprot.writeStructEnd();
26606
    }
26607
 
26608
    @Override
26609
    public String toString() {
26610
      StringBuilder sb = new StringBuilder("getSmsToBeSent_args(");
26611
      boolean first = true;
26612
 
26613
      sb.append(")");
26614
      return sb.toString();
26615
    }
26616
 
26617
    public void validate() throws org.apache.thrift.TException {
26618
      // check for required fields
26619
    }
26620
 
26621
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
26622
      try {
26623
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
26624
      } catch (org.apache.thrift.TException te) {
26625
        throw new java.io.IOException(te);
26626
      }
26627
    }
26628
 
26629
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
26630
      try {
26631
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
26632
      } catch (org.apache.thrift.TException te) {
26633
        throw new java.io.IOException(te);
26634
      }
26635
    }
26636
 
26637
  }
26638
 
26639
  public static class getSmsToBeSent_result implements org.apache.thrift.TBase<getSmsToBeSent_result, getSmsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
26640
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSmsToBeSent_result");
26641
 
26642
    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);
26643
    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);
26644
 
26645
    private List<UserSms> success; // required
26646
    private HelperServiceException se; // required
26647
 
26648
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
26649
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
26650
      SUCCESS((short)0, "success"),
26651
      SE((short)1, "se");
26652
 
26653
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
26654
 
26655
      static {
26656
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
26657
          byName.put(field.getFieldName(), field);
26658
        }
26659
      }
26660
 
26661
      /**
26662
       * Find the _Fields constant that matches fieldId, or null if its not found.
26663
       */
26664
      public static _Fields findByThriftId(int fieldId) {
26665
        switch(fieldId) {
26666
          case 0: // SUCCESS
26667
            return SUCCESS;
26668
          case 1: // SE
26669
            return SE;
26670
          default:
26671
            return null;
26672
        }
26673
      }
26674
 
26675
      /**
26676
       * Find the _Fields constant that matches fieldId, throwing an exception
26677
       * if it is not found.
26678
       */
26679
      public static _Fields findByThriftIdOrThrow(int fieldId) {
26680
        _Fields fields = findByThriftId(fieldId);
26681
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
26682
        return fields;
26683
      }
26684
 
26685
      /**
26686
       * Find the _Fields constant that matches name, or null if its not found.
26687
       */
26688
      public static _Fields findByName(String name) {
26689
        return byName.get(name);
26690
      }
26691
 
26692
      private final short _thriftId;
26693
      private final String _fieldName;
26694
 
26695
      _Fields(short thriftId, String fieldName) {
26696
        _thriftId = thriftId;
26697
        _fieldName = fieldName;
26698
      }
26699
 
26700
      public short getThriftFieldId() {
26701
        return _thriftId;
26702
      }
26703
 
26704
      public String getFieldName() {
26705
        return _fieldName;
26706
      }
26707
    }
26708
 
26709
    // isset id assignments
26710
 
26711
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
26712
    static {
26713
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
26714
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26715
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
26716
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
26717
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
26718
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
26719
      metaDataMap = Collections.unmodifiableMap(tmpMap);
26720
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSmsToBeSent_result.class, metaDataMap);
26721
    }
26722
 
26723
    public getSmsToBeSent_result() {
26724
    }
26725
 
26726
    public getSmsToBeSent_result(
26727
      List<UserSms> success,
26728
      HelperServiceException se)
26729
    {
26730
      this();
26731
      this.success = success;
26732
      this.se = se;
26733
    }
26734
 
26735
    /**
26736
     * Performs a deep copy on <i>other</i>.
26737
     */
26738
    public getSmsToBeSent_result(getSmsToBeSent_result other) {
26739
      if (other.isSetSuccess()) {
26740
        List<UserSms> __this__success = new ArrayList<UserSms>();
26741
        for (UserSms other_element : other.success) {
26742
          __this__success.add(new UserSms(other_element));
26743
        }
26744
        this.success = __this__success;
26745
      }
26746
      if (other.isSetSe()) {
26747
        this.se = new HelperServiceException(other.se);
26748
      }
26749
    }
26750
 
26751
    public getSmsToBeSent_result deepCopy() {
26752
      return new getSmsToBeSent_result(this);
26753
    }
26754
 
26755
    @Override
26756
    public void clear() {
26757
      this.success = null;
26758
      this.se = null;
26759
    }
26760
 
26761
    public int getSuccessSize() {
26762
      return (this.success == null) ? 0 : this.success.size();
26763
    }
26764
 
26765
    public java.util.Iterator<UserSms> getSuccessIterator() {
26766
      return (this.success == null) ? null : this.success.iterator();
26767
    }
26768
 
26769
    public void addToSuccess(UserSms elem) {
26770
      if (this.success == null) {
26771
        this.success = new ArrayList<UserSms>();
26772
      }
26773
      this.success.add(elem);
26774
    }
26775
 
26776
    public List<UserSms> getSuccess() {
26777
      return this.success;
26778
    }
26779
 
26780
    public void setSuccess(List<UserSms> success) {
26781
      this.success = success;
26782
    }
26783
 
26784
    public void unsetSuccess() {
26785
      this.success = null;
26786
    }
26787
 
26788
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
26789
    public boolean isSetSuccess() {
26790
      return this.success != null;
26791
    }
26792
 
26793
    public void setSuccessIsSet(boolean value) {
26794
      if (!value) {
26795
        this.success = null;
26796
      }
26797
    }
26798
 
26799
    public HelperServiceException getSe() {
26800
      return this.se;
26801
    }
26802
 
26803
    public void setSe(HelperServiceException se) {
26804
      this.se = se;
26805
    }
26806
 
26807
    public void unsetSe() {
26808
      this.se = null;
26809
    }
26810
 
26811
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
26812
    public boolean isSetSe() {
26813
      return this.se != null;
26814
    }
26815
 
26816
    public void setSeIsSet(boolean value) {
26817
      if (!value) {
26818
        this.se = null;
26819
      }
26820
    }
26821
 
26822
    public void setFieldValue(_Fields field, Object value) {
26823
      switch (field) {
26824
      case SUCCESS:
26825
        if (value == null) {
26826
          unsetSuccess();
26827
        } else {
26828
          setSuccess((List<UserSms>)value);
26829
        }
26830
        break;
26831
 
26832
      case SE:
26833
        if (value == null) {
26834
          unsetSe();
26835
        } else {
26836
          setSe((HelperServiceException)value);
26837
        }
26838
        break;
26839
 
26840
      }
26841
    }
26842
 
26843
    public Object getFieldValue(_Fields field) {
26844
      switch (field) {
26845
      case SUCCESS:
26846
        return getSuccess();
26847
 
26848
      case SE:
26849
        return getSe();
26850
 
26851
      }
26852
      throw new IllegalStateException();
26853
    }
26854
 
26855
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
26856
    public boolean isSet(_Fields field) {
26857
      if (field == null) {
26858
        throw new IllegalArgumentException();
26859
      }
26860
 
26861
      switch (field) {
26862
      case SUCCESS:
26863
        return isSetSuccess();
26864
      case SE:
26865
        return isSetSe();
26866
      }
26867
      throw new IllegalStateException();
26868
    }
26869
 
26870
    @Override
26871
    public boolean equals(Object that) {
26872
      if (that == null)
26873
        return false;
26874
      if (that instanceof getSmsToBeSent_result)
26875
        return this.equals((getSmsToBeSent_result)that);
26876
      return false;
26877
    }
26878
 
26879
    public boolean equals(getSmsToBeSent_result that) {
26880
      if (that == null)
26881
        return false;
26882
 
26883
      boolean this_present_success = true && this.isSetSuccess();
26884
      boolean that_present_success = true && that.isSetSuccess();
26885
      if (this_present_success || that_present_success) {
26886
        if (!(this_present_success && that_present_success))
26887
          return false;
26888
        if (!this.success.equals(that.success))
26889
          return false;
26890
      }
26891
 
26892
      boolean this_present_se = true && this.isSetSe();
26893
      boolean that_present_se = true && that.isSetSe();
26894
      if (this_present_se || that_present_se) {
26895
        if (!(this_present_se && that_present_se))
26896
          return false;
26897
        if (!this.se.equals(that.se))
26898
          return false;
26899
      }
26900
 
26901
      return true;
26902
    }
26903
 
26904
    @Override
26905
    public int hashCode() {
26906
      return 0;
26907
    }
26908
 
26909
    public int compareTo(getSmsToBeSent_result other) {
26910
      if (!getClass().equals(other.getClass())) {
26911
        return getClass().getName().compareTo(other.getClass().getName());
26912
      }
26913
 
26914
      int lastComparison = 0;
26915
      getSmsToBeSent_result typedOther = (getSmsToBeSent_result)other;
26916
 
26917
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
26918
      if (lastComparison != 0) {
26919
        return lastComparison;
26920
      }
26921
      if (isSetSuccess()) {
26922
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
26923
        if (lastComparison != 0) {
26924
          return lastComparison;
26925
        }
26926
      }
26927
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
26928
      if (lastComparison != 0) {
26929
        return lastComparison;
26930
      }
26931
      if (isSetSe()) {
26932
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
26933
        if (lastComparison != 0) {
26934
          return lastComparison;
26935
        }
26936
      }
26937
      return 0;
26938
    }
26939
 
26940
    public _Fields fieldForId(int fieldId) {
26941
      return _Fields.findByThriftId(fieldId);
26942
    }
26943
 
26944
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
26945
      org.apache.thrift.protocol.TField field;
26946
      iprot.readStructBegin();
26947
      while (true)
26948
      {
26949
        field = iprot.readFieldBegin();
26950
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
26951
          break;
26952
        }
26953
        switch (field.id) {
26954
          case 0: // SUCCESS
26955
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
26956
              {
26957
                org.apache.thrift.protocol.TList _list73 = iprot.readListBegin();
26958
                this.success = new ArrayList<UserSms>(_list73.size);
26959
                for (int _i74 = 0; _i74 < _list73.size; ++_i74)
26960
                {
26961
                  UserSms _elem75; // required
26962
                  _elem75 = new UserSms();
26963
                  _elem75.read(iprot);
26964
                  this.success.add(_elem75);
26965
                }
26966
                iprot.readListEnd();
26967
              }
26968
            } else { 
26969
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26970
            }
26971
            break;
26972
          case 1: // SE
26973
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
26974
              this.se = new HelperServiceException();
26975
              this.se.read(iprot);
26976
            } else { 
26977
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26978
            }
26979
            break;
26980
          default:
26981
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
26982
        }
26983
        iprot.readFieldEnd();
26984
      }
26985
      iprot.readStructEnd();
26986
      validate();
26987
    }
26988
 
26989
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
26990
      oprot.writeStructBegin(STRUCT_DESC);
26991
 
26992
      if (this.isSetSuccess()) {
26993
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
26994
        {
26995
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
26996
          for (UserSms _iter76 : this.success)
26997
          {
26998
            _iter76.write(oprot);
26999
          }
27000
          oprot.writeListEnd();
27001
        }
27002
        oprot.writeFieldEnd();
27003
      } else if (this.isSetSe()) {
27004
        oprot.writeFieldBegin(SE_FIELD_DESC);
27005
        this.se.write(oprot);
27006
        oprot.writeFieldEnd();
27007
      }
27008
      oprot.writeFieldStop();
27009
      oprot.writeStructEnd();
27010
    }
27011
 
27012
    @Override
27013
    public String toString() {
27014
      StringBuilder sb = new StringBuilder("getSmsToBeSent_result(");
27015
      boolean first = true;
27016
 
27017
      sb.append("success:");
27018
      if (this.success == null) {
27019
        sb.append("null");
27020
      } else {
27021
        sb.append(this.success);
27022
      }
27023
      first = false;
27024
      if (!first) sb.append(", ");
27025
      sb.append("se:");
27026
      if (this.se == null) {
27027
        sb.append("null");
27028
      } else {
27029
        sb.append(this.se);
27030
      }
27031
      first = false;
27032
      sb.append(")");
27033
      return sb.toString();
27034
    }
27035
 
27036
    public void validate() throws org.apache.thrift.TException {
27037
      // check for required fields
27038
    }
27039
 
27040
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27041
      try {
27042
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27043
      } catch (org.apache.thrift.TException te) {
27044
        throw new java.io.IOException(te);
27045
      }
27046
    }
27047
 
27048
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27049
      try {
27050
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27051
      } catch (org.apache.thrift.TException te) {
27052
        throw new java.io.IOException(te);
27053
      }
27054
    }
27055
 
27056
  }
27057
 
27058
  public static class addUserSmsInfo_args implements org.apache.thrift.TBase<addUserSmsInfo_args, addUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
27059
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserSmsInfo_args");
27060
 
27061
    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);
27062
 
27063
    private UserSmsInfo userSmsInfo; // required
27064
 
27065
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27066
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27067
      USER_SMS_INFO((short)1, "userSmsInfo");
27068
 
27069
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27070
 
27071
      static {
27072
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27073
          byName.put(field.getFieldName(), field);
27074
        }
27075
      }
27076
 
27077
      /**
27078
       * Find the _Fields constant that matches fieldId, or null if its not found.
27079
       */
27080
      public static _Fields findByThriftId(int fieldId) {
27081
        switch(fieldId) {
27082
          case 1: // USER_SMS_INFO
27083
            return USER_SMS_INFO;
27084
          default:
27085
            return null;
27086
        }
27087
      }
27088
 
27089
      /**
27090
       * Find the _Fields constant that matches fieldId, throwing an exception
27091
       * if it is not found.
27092
       */
27093
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27094
        _Fields fields = findByThriftId(fieldId);
27095
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27096
        return fields;
27097
      }
27098
 
27099
      /**
27100
       * Find the _Fields constant that matches name, or null if its not found.
27101
       */
27102
      public static _Fields findByName(String name) {
27103
        return byName.get(name);
27104
      }
27105
 
27106
      private final short _thriftId;
27107
      private final String _fieldName;
27108
 
27109
      _Fields(short thriftId, String fieldName) {
27110
        _thriftId = thriftId;
27111
        _fieldName = fieldName;
27112
      }
27113
 
27114
      public short getThriftFieldId() {
27115
        return _thriftId;
27116
      }
27117
 
27118
      public String getFieldName() {
27119
        return _fieldName;
27120
      }
27121
    }
27122
 
27123
    // isset id assignments
27124
 
27125
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27126
    static {
27127
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27128
      tmpMap.put(_Fields.USER_SMS_INFO, new org.apache.thrift.meta_data.FieldMetaData("userSmsInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27129
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));
27130
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27131
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserSmsInfo_args.class, metaDataMap);
27132
    }
27133
 
27134
    public addUserSmsInfo_args() {
27135
    }
27136
 
27137
    public addUserSmsInfo_args(
27138
      UserSmsInfo userSmsInfo)
27139
    {
27140
      this();
27141
      this.userSmsInfo = userSmsInfo;
27142
    }
27143
 
27144
    /**
27145
     * Performs a deep copy on <i>other</i>.
27146
     */
27147
    public addUserSmsInfo_args(addUserSmsInfo_args other) {
27148
      if (other.isSetUserSmsInfo()) {
27149
        this.userSmsInfo = new UserSmsInfo(other.userSmsInfo);
27150
      }
27151
    }
27152
 
27153
    public addUserSmsInfo_args deepCopy() {
27154
      return new addUserSmsInfo_args(this);
27155
    }
27156
 
27157
    @Override
27158
    public void clear() {
27159
      this.userSmsInfo = null;
27160
    }
27161
 
27162
    public UserSmsInfo getUserSmsInfo() {
27163
      return this.userSmsInfo;
27164
    }
27165
 
27166
    public void setUserSmsInfo(UserSmsInfo userSmsInfo) {
27167
      this.userSmsInfo = userSmsInfo;
27168
    }
27169
 
27170
    public void unsetUserSmsInfo() {
27171
      this.userSmsInfo = null;
27172
    }
27173
 
27174
    /** Returns true if field userSmsInfo is set (has been assigned a value) and false otherwise */
27175
    public boolean isSetUserSmsInfo() {
27176
      return this.userSmsInfo != null;
27177
    }
27178
 
27179
    public void setUserSmsInfoIsSet(boolean value) {
27180
      if (!value) {
27181
        this.userSmsInfo = null;
27182
      }
27183
    }
27184
 
27185
    public void setFieldValue(_Fields field, Object value) {
27186
      switch (field) {
27187
      case USER_SMS_INFO:
27188
        if (value == null) {
27189
          unsetUserSmsInfo();
27190
        } else {
27191
          setUserSmsInfo((UserSmsInfo)value);
27192
        }
27193
        break;
27194
 
27195
      }
27196
    }
27197
 
27198
    public Object getFieldValue(_Fields field) {
27199
      switch (field) {
27200
      case USER_SMS_INFO:
27201
        return getUserSmsInfo();
27202
 
27203
      }
27204
      throw new IllegalStateException();
27205
    }
27206
 
27207
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27208
    public boolean isSet(_Fields field) {
27209
      if (field == null) {
27210
        throw new IllegalArgumentException();
27211
      }
27212
 
27213
      switch (field) {
27214
      case USER_SMS_INFO:
27215
        return isSetUserSmsInfo();
27216
      }
27217
      throw new IllegalStateException();
27218
    }
27219
 
27220
    @Override
27221
    public boolean equals(Object that) {
27222
      if (that == null)
27223
        return false;
27224
      if (that instanceof addUserSmsInfo_args)
27225
        return this.equals((addUserSmsInfo_args)that);
27226
      return false;
27227
    }
27228
 
27229
    public boolean equals(addUserSmsInfo_args that) {
27230
      if (that == null)
27231
        return false;
27232
 
27233
      boolean this_present_userSmsInfo = true && this.isSetUserSmsInfo();
27234
      boolean that_present_userSmsInfo = true && that.isSetUserSmsInfo();
27235
      if (this_present_userSmsInfo || that_present_userSmsInfo) {
27236
        if (!(this_present_userSmsInfo && that_present_userSmsInfo))
27237
          return false;
27238
        if (!this.userSmsInfo.equals(that.userSmsInfo))
27239
          return false;
27240
      }
27241
 
27242
      return true;
27243
    }
27244
 
27245
    @Override
27246
    public int hashCode() {
27247
      return 0;
27248
    }
27249
 
27250
    public int compareTo(addUserSmsInfo_args other) {
27251
      if (!getClass().equals(other.getClass())) {
27252
        return getClass().getName().compareTo(other.getClass().getName());
27253
      }
27254
 
27255
      int lastComparison = 0;
27256
      addUserSmsInfo_args typedOther = (addUserSmsInfo_args)other;
27257
 
27258
      lastComparison = Boolean.valueOf(isSetUserSmsInfo()).compareTo(typedOther.isSetUserSmsInfo());
27259
      if (lastComparison != 0) {
27260
        return lastComparison;
27261
      }
27262
      if (isSetUserSmsInfo()) {
27263
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsInfo, typedOther.userSmsInfo);
27264
        if (lastComparison != 0) {
27265
          return lastComparison;
27266
        }
27267
      }
27268
      return 0;
27269
    }
27270
 
27271
    public _Fields fieldForId(int fieldId) {
27272
      return _Fields.findByThriftId(fieldId);
27273
    }
27274
 
27275
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27276
      org.apache.thrift.protocol.TField field;
27277
      iprot.readStructBegin();
27278
      while (true)
27279
      {
27280
        field = iprot.readFieldBegin();
27281
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27282
          break;
27283
        }
27284
        switch (field.id) {
27285
          case 1: // USER_SMS_INFO
27286
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27287
              this.userSmsInfo = new UserSmsInfo();
27288
              this.userSmsInfo.read(iprot);
27289
            } else { 
27290
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27291
            }
27292
            break;
27293
          default:
27294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27295
        }
27296
        iprot.readFieldEnd();
27297
      }
27298
      iprot.readStructEnd();
27299
      validate();
27300
    }
27301
 
27302
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27303
      validate();
27304
 
27305
      oprot.writeStructBegin(STRUCT_DESC);
27306
      if (this.userSmsInfo != null) {
27307
        oprot.writeFieldBegin(USER_SMS_INFO_FIELD_DESC);
27308
        this.userSmsInfo.write(oprot);
27309
        oprot.writeFieldEnd();
27310
      }
27311
      oprot.writeFieldStop();
27312
      oprot.writeStructEnd();
27313
    }
27314
 
27315
    @Override
27316
    public String toString() {
27317
      StringBuilder sb = new StringBuilder("addUserSmsInfo_args(");
27318
      boolean first = true;
27319
 
27320
      sb.append("userSmsInfo:");
27321
      if (this.userSmsInfo == null) {
27322
        sb.append("null");
27323
      } else {
27324
        sb.append(this.userSmsInfo);
27325
      }
27326
      first = false;
27327
      sb.append(")");
27328
      return sb.toString();
27329
    }
27330
 
27331
    public void validate() throws org.apache.thrift.TException {
27332
      // check for required fields
27333
    }
27334
 
27335
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27336
      try {
27337
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27338
      } catch (org.apache.thrift.TException te) {
27339
        throw new java.io.IOException(te);
27340
      }
27341
    }
27342
 
27343
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27344
      try {
27345
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27346
      } catch (org.apache.thrift.TException te) {
27347
        throw new java.io.IOException(te);
27348
      }
27349
    }
27350
 
27351
  }
27352
 
27353
  public static class addUserSmsInfo_result implements org.apache.thrift.TBase<addUserSmsInfo_result, addUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
27354
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUserSmsInfo_result");
27355
 
27356
    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);
27357
 
27358
    private HelperServiceException se; // required
27359
 
27360
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27361
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27362
      SE((short)1, "se");
27363
 
27364
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27365
 
27366
      static {
27367
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27368
          byName.put(field.getFieldName(), field);
27369
        }
27370
      }
27371
 
27372
      /**
27373
       * Find the _Fields constant that matches fieldId, or null if its not found.
27374
       */
27375
      public static _Fields findByThriftId(int fieldId) {
27376
        switch(fieldId) {
27377
          case 1: // SE
27378
            return SE;
27379
          default:
27380
            return null;
27381
        }
27382
      }
27383
 
27384
      /**
27385
       * Find the _Fields constant that matches fieldId, throwing an exception
27386
       * if it is not found.
27387
       */
27388
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27389
        _Fields fields = findByThriftId(fieldId);
27390
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27391
        return fields;
27392
      }
27393
 
27394
      /**
27395
       * Find the _Fields constant that matches name, or null if its not found.
27396
       */
27397
      public static _Fields findByName(String name) {
27398
        return byName.get(name);
27399
      }
27400
 
27401
      private final short _thriftId;
27402
      private final String _fieldName;
27403
 
27404
      _Fields(short thriftId, String fieldName) {
27405
        _thriftId = thriftId;
27406
        _fieldName = fieldName;
27407
      }
27408
 
27409
      public short getThriftFieldId() {
27410
        return _thriftId;
27411
      }
27412
 
27413
      public String getFieldName() {
27414
        return _fieldName;
27415
      }
27416
    }
27417
 
27418
    // isset id assignments
27419
 
27420
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27421
    static {
27422
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27423
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27424
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
27425
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27426
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUserSmsInfo_result.class, metaDataMap);
27427
    }
27428
 
27429
    public addUserSmsInfo_result() {
27430
    }
27431
 
27432
    public addUserSmsInfo_result(
27433
      HelperServiceException se)
27434
    {
27435
      this();
27436
      this.se = se;
27437
    }
27438
 
27439
    /**
27440
     * Performs a deep copy on <i>other</i>.
27441
     */
27442
    public addUserSmsInfo_result(addUserSmsInfo_result other) {
27443
      if (other.isSetSe()) {
27444
        this.se = new HelperServiceException(other.se);
27445
      }
27446
    }
27447
 
27448
    public addUserSmsInfo_result deepCopy() {
27449
      return new addUserSmsInfo_result(this);
27450
    }
27451
 
27452
    @Override
27453
    public void clear() {
27454
      this.se = null;
27455
    }
27456
 
27457
    public HelperServiceException getSe() {
27458
      return this.se;
27459
    }
27460
 
27461
    public void setSe(HelperServiceException se) {
27462
      this.se = se;
27463
    }
27464
 
27465
    public void unsetSe() {
27466
      this.se = null;
27467
    }
27468
 
27469
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
27470
    public boolean isSetSe() {
27471
      return this.se != null;
27472
    }
27473
 
27474
    public void setSeIsSet(boolean value) {
27475
      if (!value) {
27476
        this.se = null;
27477
      }
27478
    }
27479
 
27480
    public void setFieldValue(_Fields field, Object value) {
27481
      switch (field) {
27482
      case SE:
27483
        if (value == null) {
27484
          unsetSe();
27485
        } else {
27486
          setSe((HelperServiceException)value);
27487
        }
27488
        break;
27489
 
27490
      }
27491
    }
27492
 
27493
    public Object getFieldValue(_Fields field) {
27494
      switch (field) {
27495
      case SE:
27496
        return getSe();
27497
 
27498
      }
27499
      throw new IllegalStateException();
27500
    }
27501
 
27502
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27503
    public boolean isSet(_Fields field) {
27504
      if (field == null) {
27505
        throw new IllegalArgumentException();
27506
      }
27507
 
27508
      switch (field) {
27509
      case SE:
27510
        return isSetSe();
27511
      }
27512
      throw new IllegalStateException();
27513
    }
27514
 
27515
    @Override
27516
    public boolean equals(Object that) {
27517
      if (that == null)
27518
        return false;
27519
      if (that instanceof addUserSmsInfo_result)
27520
        return this.equals((addUserSmsInfo_result)that);
27521
      return false;
27522
    }
27523
 
27524
    public boolean equals(addUserSmsInfo_result that) {
27525
      if (that == null)
27526
        return false;
27527
 
27528
      boolean this_present_se = true && this.isSetSe();
27529
      boolean that_present_se = true && that.isSetSe();
27530
      if (this_present_se || that_present_se) {
27531
        if (!(this_present_se && that_present_se))
27532
          return false;
27533
        if (!this.se.equals(that.se))
27534
          return false;
27535
      }
27536
 
27537
      return true;
27538
    }
27539
 
27540
    @Override
27541
    public int hashCode() {
27542
      return 0;
27543
    }
27544
 
27545
    public int compareTo(addUserSmsInfo_result other) {
27546
      if (!getClass().equals(other.getClass())) {
27547
        return getClass().getName().compareTo(other.getClass().getName());
27548
      }
27549
 
27550
      int lastComparison = 0;
27551
      addUserSmsInfo_result typedOther = (addUserSmsInfo_result)other;
27552
 
27553
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
27554
      if (lastComparison != 0) {
27555
        return lastComparison;
27556
      }
27557
      if (isSetSe()) {
27558
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
27559
        if (lastComparison != 0) {
27560
          return lastComparison;
27561
        }
27562
      }
27563
      return 0;
27564
    }
27565
 
27566
    public _Fields fieldForId(int fieldId) {
27567
      return _Fields.findByThriftId(fieldId);
27568
    }
27569
 
27570
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27571
      org.apache.thrift.protocol.TField field;
27572
      iprot.readStructBegin();
27573
      while (true)
27574
      {
27575
        field = iprot.readFieldBegin();
27576
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27577
          break;
27578
        }
27579
        switch (field.id) {
27580
          case 1: // SE
27581
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27582
              this.se = new HelperServiceException();
27583
              this.se.read(iprot);
27584
            } else { 
27585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27586
            }
27587
            break;
27588
          default:
27589
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27590
        }
27591
        iprot.readFieldEnd();
27592
      }
27593
      iprot.readStructEnd();
27594
      validate();
27595
    }
27596
 
27597
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27598
      oprot.writeStructBegin(STRUCT_DESC);
27599
 
27600
      if (this.isSetSe()) {
27601
        oprot.writeFieldBegin(SE_FIELD_DESC);
27602
        this.se.write(oprot);
27603
        oprot.writeFieldEnd();
27604
      }
27605
      oprot.writeFieldStop();
27606
      oprot.writeStructEnd();
27607
    }
27608
 
27609
    @Override
27610
    public String toString() {
27611
      StringBuilder sb = new StringBuilder("addUserSmsInfo_result(");
27612
      boolean first = true;
27613
 
27614
      sb.append("se:");
27615
      if (this.se == null) {
27616
        sb.append("null");
27617
      } else {
27618
        sb.append(this.se);
27619
      }
27620
      first = false;
27621
      sb.append(")");
27622
      return sb.toString();
27623
    }
27624
 
27625
    public void validate() throws org.apache.thrift.TException {
27626
      // check for required fields
27627
    }
27628
 
27629
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27630
      try {
27631
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27632
      } catch (org.apache.thrift.TException te) {
27633
        throw new java.io.IOException(te);
27634
      }
27635
    }
27636
 
27637
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27638
      try {
27639
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27640
      } catch (org.apache.thrift.TException te) {
27641
        throw new java.io.IOException(te);
27642
      }
27643
    }
27644
 
27645
  }
27646
 
27647
  public static class updateUserSmsInfo_args implements org.apache.thrift.TBase<updateUserSmsInfo_args, updateUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
27648
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSmsInfo_args");
27649
 
27650
    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);
27651
 
27652
    private UserSmsInfo userSmsInfo; // required
27653
 
27654
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27655
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27656
      USER_SMS_INFO((short)1, "userSmsInfo");
27657
 
27658
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27659
 
27660
      static {
27661
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27662
          byName.put(field.getFieldName(), field);
27663
        }
27664
      }
27665
 
27666
      /**
27667
       * Find the _Fields constant that matches fieldId, or null if its not found.
27668
       */
27669
      public static _Fields findByThriftId(int fieldId) {
27670
        switch(fieldId) {
27671
          case 1: // USER_SMS_INFO
27672
            return USER_SMS_INFO;
27673
          default:
27674
            return null;
27675
        }
27676
      }
27677
 
27678
      /**
27679
       * Find the _Fields constant that matches fieldId, throwing an exception
27680
       * if it is not found.
27681
       */
27682
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27683
        _Fields fields = findByThriftId(fieldId);
27684
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27685
        return fields;
27686
      }
27687
 
27688
      /**
27689
       * Find the _Fields constant that matches name, or null if its not found.
27690
       */
27691
      public static _Fields findByName(String name) {
27692
        return byName.get(name);
27693
      }
27694
 
27695
      private final short _thriftId;
27696
      private final String _fieldName;
27697
 
27698
      _Fields(short thriftId, String fieldName) {
27699
        _thriftId = thriftId;
27700
        _fieldName = fieldName;
27701
      }
27702
 
27703
      public short getThriftFieldId() {
27704
        return _thriftId;
27705
      }
27706
 
27707
      public String getFieldName() {
27708
        return _fieldName;
27709
      }
27710
    }
27711
 
27712
    // isset id assignments
27713
 
27714
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
27715
    static {
27716
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
27717
      tmpMap.put(_Fields.USER_SMS_INFO, new org.apache.thrift.meta_data.FieldMetaData("userSmsInfo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
27718
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));
27719
      metaDataMap = Collections.unmodifiableMap(tmpMap);
27720
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSmsInfo_args.class, metaDataMap);
27721
    }
27722
 
27723
    public updateUserSmsInfo_args() {
27724
    }
27725
 
27726
    public updateUserSmsInfo_args(
27727
      UserSmsInfo userSmsInfo)
27728
    {
27729
      this();
27730
      this.userSmsInfo = userSmsInfo;
27731
    }
27732
 
27733
    /**
27734
     * Performs a deep copy on <i>other</i>.
27735
     */
27736
    public updateUserSmsInfo_args(updateUserSmsInfo_args other) {
27737
      if (other.isSetUserSmsInfo()) {
27738
        this.userSmsInfo = new UserSmsInfo(other.userSmsInfo);
27739
      }
27740
    }
27741
 
27742
    public updateUserSmsInfo_args deepCopy() {
27743
      return new updateUserSmsInfo_args(this);
27744
    }
27745
 
27746
    @Override
27747
    public void clear() {
27748
      this.userSmsInfo = null;
27749
    }
27750
 
27751
    public UserSmsInfo getUserSmsInfo() {
27752
      return this.userSmsInfo;
27753
    }
27754
 
27755
    public void setUserSmsInfo(UserSmsInfo userSmsInfo) {
27756
      this.userSmsInfo = userSmsInfo;
27757
    }
27758
 
27759
    public void unsetUserSmsInfo() {
27760
      this.userSmsInfo = null;
27761
    }
27762
 
27763
    /** Returns true if field userSmsInfo is set (has been assigned a value) and false otherwise */
27764
    public boolean isSetUserSmsInfo() {
27765
      return this.userSmsInfo != null;
27766
    }
27767
 
27768
    public void setUserSmsInfoIsSet(boolean value) {
27769
      if (!value) {
27770
        this.userSmsInfo = null;
27771
      }
27772
    }
27773
 
27774
    public void setFieldValue(_Fields field, Object value) {
27775
      switch (field) {
27776
      case USER_SMS_INFO:
27777
        if (value == null) {
27778
          unsetUserSmsInfo();
27779
        } else {
27780
          setUserSmsInfo((UserSmsInfo)value);
27781
        }
27782
        break;
27783
 
27784
      }
27785
    }
27786
 
27787
    public Object getFieldValue(_Fields field) {
27788
      switch (field) {
27789
      case USER_SMS_INFO:
27790
        return getUserSmsInfo();
27791
 
27792
      }
27793
      throw new IllegalStateException();
27794
    }
27795
 
27796
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
27797
    public boolean isSet(_Fields field) {
27798
      if (field == null) {
27799
        throw new IllegalArgumentException();
27800
      }
27801
 
27802
      switch (field) {
27803
      case USER_SMS_INFO:
27804
        return isSetUserSmsInfo();
27805
      }
27806
      throw new IllegalStateException();
27807
    }
27808
 
27809
    @Override
27810
    public boolean equals(Object that) {
27811
      if (that == null)
27812
        return false;
27813
      if (that instanceof updateUserSmsInfo_args)
27814
        return this.equals((updateUserSmsInfo_args)that);
27815
      return false;
27816
    }
27817
 
27818
    public boolean equals(updateUserSmsInfo_args that) {
27819
      if (that == null)
27820
        return false;
27821
 
27822
      boolean this_present_userSmsInfo = true && this.isSetUserSmsInfo();
27823
      boolean that_present_userSmsInfo = true && that.isSetUserSmsInfo();
27824
      if (this_present_userSmsInfo || that_present_userSmsInfo) {
27825
        if (!(this_present_userSmsInfo && that_present_userSmsInfo))
27826
          return false;
27827
        if (!this.userSmsInfo.equals(that.userSmsInfo))
27828
          return false;
27829
      }
27830
 
27831
      return true;
27832
    }
27833
 
27834
    @Override
27835
    public int hashCode() {
27836
      return 0;
27837
    }
27838
 
27839
    public int compareTo(updateUserSmsInfo_args other) {
27840
      if (!getClass().equals(other.getClass())) {
27841
        return getClass().getName().compareTo(other.getClass().getName());
27842
      }
27843
 
27844
      int lastComparison = 0;
27845
      updateUserSmsInfo_args typedOther = (updateUserSmsInfo_args)other;
27846
 
27847
      lastComparison = Boolean.valueOf(isSetUserSmsInfo()).compareTo(typedOther.isSetUserSmsInfo());
27848
      if (lastComparison != 0) {
27849
        return lastComparison;
27850
      }
27851
      if (isSetUserSmsInfo()) {
27852
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsInfo, typedOther.userSmsInfo);
27853
        if (lastComparison != 0) {
27854
          return lastComparison;
27855
        }
27856
      }
27857
      return 0;
27858
    }
27859
 
27860
    public _Fields fieldForId(int fieldId) {
27861
      return _Fields.findByThriftId(fieldId);
27862
    }
27863
 
27864
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
27865
      org.apache.thrift.protocol.TField field;
27866
      iprot.readStructBegin();
27867
      while (true)
27868
      {
27869
        field = iprot.readFieldBegin();
27870
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
27871
          break;
27872
        }
27873
        switch (field.id) {
27874
          case 1: // USER_SMS_INFO
27875
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
27876
              this.userSmsInfo = new UserSmsInfo();
27877
              this.userSmsInfo.read(iprot);
27878
            } else { 
27879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27880
            }
27881
            break;
27882
          default:
27883
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
27884
        }
27885
        iprot.readFieldEnd();
27886
      }
27887
      iprot.readStructEnd();
27888
      validate();
27889
    }
27890
 
27891
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
27892
      validate();
27893
 
27894
      oprot.writeStructBegin(STRUCT_DESC);
27895
      if (this.userSmsInfo != null) {
27896
        oprot.writeFieldBegin(USER_SMS_INFO_FIELD_DESC);
27897
        this.userSmsInfo.write(oprot);
27898
        oprot.writeFieldEnd();
27899
      }
27900
      oprot.writeFieldStop();
27901
      oprot.writeStructEnd();
27902
    }
27903
 
27904
    @Override
27905
    public String toString() {
27906
      StringBuilder sb = new StringBuilder("updateUserSmsInfo_args(");
27907
      boolean first = true;
27908
 
27909
      sb.append("userSmsInfo:");
27910
      if (this.userSmsInfo == null) {
27911
        sb.append("null");
27912
      } else {
27913
        sb.append(this.userSmsInfo);
27914
      }
27915
      first = false;
27916
      sb.append(")");
27917
      return sb.toString();
27918
    }
27919
 
27920
    public void validate() throws org.apache.thrift.TException {
27921
      // check for required fields
27922
    }
27923
 
27924
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
27925
      try {
27926
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
27927
      } catch (org.apache.thrift.TException te) {
27928
        throw new java.io.IOException(te);
27929
      }
27930
    }
27931
 
27932
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
27933
      try {
27934
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
27935
      } catch (org.apache.thrift.TException te) {
27936
        throw new java.io.IOException(te);
27937
      }
27938
    }
27939
 
27940
  }
27941
 
27942
  public static class updateUserSmsInfo_result implements org.apache.thrift.TBase<updateUserSmsInfo_result, updateUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
27943
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateUserSmsInfo_result");
27944
 
27945
    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);
27946
    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);
27947
 
27948
    private boolean success; // required
27949
    private HelperServiceException se; // required
27950
 
27951
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
27952
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
27953
      SUCCESS((short)0, "success"),
27954
      SE((short)1, "se");
27955
 
27956
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
27957
 
27958
      static {
27959
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
27960
          byName.put(field.getFieldName(), field);
27961
        }
27962
      }
27963
 
27964
      /**
27965
       * Find the _Fields constant that matches fieldId, or null if its not found.
27966
       */
27967
      public static _Fields findByThriftId(int fieldId) {
27968
        switch(fieldId) {
27969
          case 0: // SUCCESS
27970
            return SUCCESS;
27971
          case 1: // SE
27972
            return SE;
27973
          default:
27974
            return null;
27975
        }
27976
      }
27977
 
27978
      /**
27979
       * Find the _Fields constant that matches fieldId, throwing an exception
27980
       * if it is not found.
27981
       */
27982
      public static _Fields findByThriftIdOrThrow(int fieldId) {
27983
        _Fields fields = findByThriftId(fieldId);
27984
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
27985
        return fields;
27986
      }
27987
 
27988
      /**
27989
       * Find the _Fields constant that matches name, or null if its not found.
27990
       */
27991
      public static _Fields findByName(String name) {
27992
        return byName.get(name);
27993
      }
27994
 
27995
      private final short _thriftId;
27996
      private final String _fieldName;
27997
 
27998
      _Fields(short thriftId, String fieldName) {
27999
        _thriftId = thriftId;
28000
        _fieldName = fieldName;
28001
      }
28002
 
28003
      public short getThriftFieldId() {
28004
        return _thriftId;
28005
      }
28006
 
28007
      public String getFieldName() {
28008
        return _fieldName;
28009
      }
28010
    }
28011
 
28012
    // isset id assignments
28013
    private static final int __SUCCESS_ISSET_ID = 0;
28014
    private BitSet __isset_bit_vector = new BitSet(1);
28015
 
28016
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28017
    static {
28018
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28019
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28020
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
28021
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28022
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28023
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28024
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateUserSmsInfo_result.class, metaDataMap);
28025
    }
28026
 
28027
    public updateUserSmsInfo_result() {
28028
    }
28029
 
28030
    public updateUserSmsInfo_result(
28031
      boolean success,
28032
      HelperServiceException se)
28033
    {
28034
      this();
28035
      this.success = success;
28036
      setSuccessIsSet(true);
28037
      this.se = se;
28038
    }
28039
 
28040
    /**
28041
     * Performs a deep copy on <i>other</i>.
28042
     */
28043
    public updateUserSmsInfo_result(updateUserSmsInfo_result other) {
28044
      __isset_bit_vector.clear();
28045
      __isset_bit_vector.or(other.__isset_bit_vector);
28046
      this.success = other.success;
28047
      if (other.isSetSe()) {
28048
        this.se = new HelperServiceException(other.se);
28049
      }
28050
    }
28051
 
28052
    public updateUserSmsInfo_result deepCopy() {
28053
      return new updateUserSmsInfo_result(this);
28054
    }
28055
 
28056
    @Override
28057
    public void clear() {
28058
      setSuccessIsSet(false);
28059
      this.success = false;
28060
      this.se = null;
28061
    }
28062
 
28063
    public boolean isSuccess() {
28064
      return this.success;
28065
    }
28066
 
28067
    public void setSuccess(boolean success) {
28068
      this.success = success;
28069
      setSuccessIsSet(true);
28070
    }
28071
 
28072
    public void unsetSuccess() {
28073
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
28074
    }
28075
 
28076
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28077
    public boolean isSetSuccess() {
28078
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
28079
    }
28080
 
28081
    public void setSuccessIsSet(boolean value) {
28082
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
28083
    }
28084
 
28085
    public HelperServiceException getSe() {
28086
      return this.se;
28087
    }
28088
 
28089
    public void setSe(HelperServiceException se) {
28090
      this.se = se;
28091
    }
28092
 
28093
    public void unsetSe() {
28094
      this.se = null;
28095
    }
28096
 
28097
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
28098
    public boolean isSetSe() {
28099
      return this.se != null;
28100
    }
28101
 
28102
    public void setSeIsSet(boolean value) {
28103
      if (!value) {
28104
        this.se = null;
28105
      }
28106
    }
28107
 
28108
    public void setFieldValue(_Fields field, Object value) {
28109
      switch (field) {
28110
      case SUCCESS:
28111
        if (value == null) {
28112
          unsetSuccess();
28113
        } else {
28114
          setSuccess((Boolean)value);
28115
        }
28116
        break;
28117
 
28118
      case SE:
28119
        if (value == null) {
28120
          unsetSe();
28121
        } else {
28122
          setSe((HelperServiceException)value);
28123
        }
28124
        break;
28125
 
28126
      }
28127
    }
28128
 
28129
    public Object getFieldValue(_Fields field) {
28130
      switch (field) {
28131
      case SUCCESS:
28132
        return Boolean.valueOf(isSuccess());
28133
 
28134
      case SE:
28135
        return getSe();
28136
 
28137
      }
28138
      throw new IllegalStateException();
28139
    }
28140
 
28141
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28142
    public boolean isSet(_Fields field) {
28143
      if (field == null) {
28144
        throw new IllegalArgumentException();
28145
      }
28146
 
28147
      switch (field) {
28148
      case SUCCESS:
28149
        return isSetSuccess();
28150
      case SE:
28151
        return isSetSe();
28152
      }
28153
      throw new IllegalStateException();
28154
    }
28155
 
28156
    @Override
28157
    public boolean equals(Object that) {
28158
      if (that == null)
28159
        return false;
28160
      if (that instanceof updateUserSmsInfo_result)
28161
        return this.equals((updateUserSmsInfo_result)that);
28162
      return false;
28163
    }
28164
 
28165
    public boolean equals(updateUserSmsInfo_result that) {
28166
      if (that == null)
28167
        return false;
28168
 
28169
      boolean this_present_success = true;
28170
      boolean that_present_success = true;
28171
      if (this_present_success || that_present_success) {
28172
        if (!(this_present_success && that_present_success))
28173
          return false;
28174
        if (this.success != that.success)
28175
          return false;
28176
      }
28177
 
28178
      boolean this_present_se = true && this.isSetSe();
28179
      boolean that_present_se = true && that.isSetSe();
28180
      if (this_present_se || that_present_se) {
28181
        if (!(this_present_se && that_present_se))
28182
          return false;
28183
        if (!this.se.equals(that.se))
28184
          return false;
28185
      }
28186
 
28187
      return true;
28188
    }
28189
 
28190
    @Override
28191
    public int hashCode() {
28192
      return 0;
28193
    }
28194
 
28195
    public int compareTo(updateUserSmsInfo_result other) {
28196
      if (!getClass().equals(other.getClass())) {
28197
        return getClass().getName().compareTo(other.getClass().getName());
28198
      }
28199
 
28200
      int lastComparison = 0;
28201
      updateUserSmsInfo_result typedOther = (updateUserSmsInfo_result)other;
28202
 
28203
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28204
      if (lastComparison != 0) {
28205
        return lastComparison;
28206
      }
28207
      if (isSetSuccess()) {
28208
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28209
        if (lastComparison != 0) {
28210
          return lastComparison;
28211
        }
28212
      }
28213
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
28214
      if (lastComparison != 0) {
28215
        return lastComparison;
28216
      }
28217
      if (isSetSe()) {
28218
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
28219
        if (lastComparison != 0) {
28220
          return lastComparison;
28221
        }
28222
      }
28223
      return 0;
28224
    }
28225
 
28226
    public _Fields fieldForId(int fieldId) {
28227
      return _Fields.findByThriftId(fieldId);
28228
    }
28229
 
28230
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28231
      org.apache.thrift.protocol.TField field;
28232
      iprot.readStructBegin();
28233
      while (true)
28234
      {
28235
        field = iprot.readFieldBegin();
28236
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28237
          break;
28238
        }
28239
        switch (field.id) {
28240
          case 0: // SUCCESS
28241
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
28242
              this.success = iprot.readBool();
28243
              setSuccessIsSet(true);
28244
            } else { 
28245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28246
            }
28247
            break;
28248
          case 1: // SE
28249
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28250
              this.se = new HelperServiceException();
28251
              this.se.read(iprot);
28252
            } else { 
28253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28254
            }
28255
            break;
28256
          default:
28257
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28258
        }
28259
        iprot.readFieldEnd();
28260
      }
28261
      iprot.readStructEnd();
28262
      validate();
28263
    }
28264
 
28265
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28266
      oprot.writeStructBegin(STRUCT_DESC);
28267
 
28268
      if (this.isSetSuccess()) {
28269
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28270
        oprot.writeBool(this.success);
28271
        oprot.writeFieldEnd();
28272
      } else if (this.isSetSe()) {
28273
        oprot.writeFieldBegin(SE_FIELD_DESC);
28274
        this.se.write(oprot);
28275
        oprot.writeFieldEnd();
28276
      }
28277
      oprot.writeFieldStop();
28278
      oprot.writeStructEnd();
28279
    }
28280
 
28281
    @Override
28282
    public String toString() {
28283
      StringBuilder sb = new StringBuilder("updateUserSmsInfo_result(");
28284
      boolean first = true;
28285
 
28286
      sb.append("success:");
28287
      sb.append(this.success);
28288
      first = false;
28289
      if (!first) sb.append(", ");
28290
      sb.append("se:");
28291
      if (this.se == null) {
28292
        sb.append("null");
28293
      } else {
28294
        sb.append(this.se);
28295
      }
28296
      first = false;
28297
      sb.append(")");
28298
      return sb.toString();
28299
    }
28300
 
28301
    public void validate() throws org.apache.thrift.TException {
28302
      // check for required fields
28303
    }
28304
 
28305
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28306
      try {
28307
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28308
      } catch (org.apache.thrift.TException te) {
28309
        throw new java.io.IOException(te);
28310
      }
28311
    }
28312
 
28313
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28314
      try {
28315
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28316
      } catch (org.apache.thrift.TException te) {
28317
        throw new java.io.IOException(te);
28318
      }
28319
    }
28320
 
28321
  }
28322
 
28323
  public static class getUserSmsInfo_args implements org.apache.thrift.TBase<getUserSmsInfo_args, getUserSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
28324
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSmsInfo_args");
28325
 
28326
    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);
28327
 
28328
    private long userId; // required
28329
 
28330
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28331
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28332
      USER_ID((short)1, "userId");
28333
 
28334
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28335
 
28336
      static {
28337
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28338
          byName.put(field.getFieldName(), field);
28339
        }
28340
      }
28341
 
28342
      /**
28343
       * Find the _Fields constant that matches fieldId, or null if its not found.
28344
       */
28345
      public static _Fields findByThriftId(int fieldId) {
28346
        switch(fieldId) {
28347
          case 1: // USER_ID
28348
            return USER_ID;
28349
          default:
28350
            return null;
28351
        }
28352
      }
28353
 
28354
      /**
28355
       * Find the _Fields constant that matches fieldId, throwing an exception
28356
       * if it is not found.
28357
       */
28358
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28359
        _Fields fields = findByThriftId(fieldId);
28360
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28361
        return fields;
28362
      }
28363
 
28364
      /**
28365
       * Find the _Fields constant that matches name, or null if its not found.
28366
       */
28367
      public static _Fields findByName(String name) {
28368
        return byName.get(name);
28369
      }
28370
 
28371
      private final short _thriftId;
28372
      private final String _fieldName;
28373
 
28374
      _Fields(short thriftId, String fieldName) {
28375
        _thriftId = thriftId;
28376
        _fieldName = fieldName;
28377
      }
28378
 
28379
      public short getThriftFieldId() {
28380
        return _thriftId;
28381
      }
28382
 
28383
      public String getFieldName() {
28384
        return _fieldName;
28385
      }
28386
    }
28387
 
28388
    // isset id assignments
28389
    private static final int __USERID_ISSET_ID = 0;
28390
    private BitSet __isset_bit_vector = new BitSet(1);
28391
 
28392
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28393
    static {
28394
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28395
      tmpMap.put(_Fields.USER_ID, new org.apache.thrift.meta_data.FieldMetaData("userId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28396
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
28397
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28398
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSmsInfo_args.class, metaDataMap);
28399
    }
28400
 
28401
    public getUserSmsInfo_args() {
28402
    }
28403
 
28404
    public getUserSmsInfo_args(
28405
      long userId)
28406
    {
28407
      this();
28408
      this.userId = userId;
28409
      setUserIdIsSet(true);
28410
    }
28411
 
28412
    /**
28413
     * Performs a deep copy on <i>other</i>.
28414
     */
28415
    public getUserSmsInfo_args(getUserSmsInfo_args other) {
28416
      __isset_bit_vector.clear();
28417
      __isset_bit_vector.or(other.__isset_bit_vector);
28418
      this.userId = other.userId;
28419
    }
28420
 
28421
    public getUserSmsInfo_args deepCopy() {
28422
      return new getUserSmsInfo_args(this);
28423
    }
28424
 
28425
    @Override
28426
    public void clear() {
28427
      setUserIdIsSet(false);
28428
      this.userId = 0;
28429
    }
28430
 
28431
    public long getUserId() {
28432
      return this.userId;
28433
    }
28434
 
28435
    public void setUserId(long userId) {
28436
      this.userId = userId;
28437
      setUserIdIsSet(true);
28438
    }
28439
 
28440
    public void unsetUserId() {
28441
      __isset_bit_vector.clear(__USERID_ISSET_ID);
28442
    }
28443
 
28444
    /** Returns true if field userId is set (has been assigned a value) and false otherwise */
28445
    public boolean isSetUserId() {
28446
      return __isset_bit_vector.get(__USERID_ISSET_ID);
28447
    }
28448
 
28449
    public void setUserIdIsSet(boolean value) {
28450
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
28451
    }
28452
 
28453
    public void setFieldValue(_Fields field, Object value) {
28454
      switch (field) {
28455
      case USER_ID:
28456
        if (value == null) {
28457
          unsetUserId();
28458
        } else {
28459
          setUserId((Long)value);
28460
        }
28461
        break;
28462
 
28463
      }
28464
    }
28465
 
28466
    public Object getFieldValue(_Fields field) {
28467
      switch (field) {
28468
      case USER_ID:
28469
        return Long.valueOf(getUserId());
28470
 
28471
      }
28472
      throw new IllegalStateException();
28473
    }
28474
 
28475
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28476
    public boolean isSet(_Fields field) {
28477
      if (field == null) {
28478
        throw new IllegalArgumentException();
28479
      }
28480
 
28481
      switch (field) {
28482
      case USER_ID:
28483
        return isSetUserId();
28484
      }
28485
      throw new IllegalStateException();
28486
    }
28487
 
28488
    @Override
28489
    public boolean equals(Object that) {
28490
      if (that == null)
28491
        return false;
28492
      if (that instanceof getUserSmsInfo_args)
28493
        return this.equals((getUserSmsInfo_args)that);
28494
      return false;
28495
    }
28496
 
28497
    public boolean equals(getUserSmsInfo_args that) {
28498
      if (that == null)
28499
        return false;
28500
 
28501
      boolean this_present_userId = true;
28502
      boolean that_present_userId = true;
28503
      if (this_present_userId || that_present_userId) {
28504
        if (!(this_present_userId && that_present_userId))
28505
          return false;
28506
        if (this.userId != that.userId)
28507
          return false;
28508
      }
28509
 
28510
      return true;
28511
    }
28512
 
28513
    @Override
28514
    public int hashCode() {
28515
      return 0;
28516
    }
28517
 
28518
    public int compareTo(getUserSmsInfo_args other) {
28519
      if (!getClass().equals(other.getClass())) {
28520
        return getClass().getName().compareTo(other.getClass().getName());
28521
      }
28522
 
28523
      int lastComparison = 0;
28524
      getUserSmsInfo_args typedOther = (getUserSmsInfo_args)other;
28525
 
28526
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(typedOther.isSetUserId());
28527
      if (lastComparison != 0) {
28528
        return lastComparison;
28529
      }
28530
      if (isSetUserId()) {
28531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userId, typedOther.userId);
28532
        if (lastComparison != 0) {
28533
          return lastComparison;
28534
        }
28535
      }
28536
      return 0;
28537
    }
28538
 
28539
    public _Fields fieldForId(int fieldId) {
28540
      return _Fields.findByThriftId(fieldId);
28541
    }
28542
 
28543
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28544
      org.apache.thrift.protocol.TField field;
28545
      iprot.readStructBegin();
28546
      while (true)
28547
      {
28548
        field = iprot.readFieldBegin();
28549
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28550
          break;
28551
        }
28552
        switch (field.id) {
28553
          case 1: // USER_ID
28554
            if (field.type == org.apache.thrift.protocol.TType.I64) {
28555
              this.userId = iprot.readI64();
28556
              setUserIdIsSet(true);
28557
            } else { 
28558
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28559
            }
28560
            break;
28561
          default:
28562
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28563
        }
28564
        iprot.readFieldEnd();
28565
      }
28566
      iprot.readStructEnd();
28567
      validate();
28568
    }
28569
 
28570
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28571
      validate();
28572
 
28573
      oprot.writeStructBegin(STRUCT_DESC);
28574
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
28575
      oprot.writeI64(this.userId);
28576
      oprot.writeFieldEnd();
28577
      oprot.writeFieldStop();
28578
      oprot.writeStructEnd();
28579
    }
28580
 
28581
    @Override
28582
    public String toString() {
28583
      StringBuilder sb = new StringBuilder("getUserSmsInfo_args(");
28584
      boolean first = true;
28585
 
28586
      sb.append("userId:");
28587
      sb.append(this.userId);
28588
      first = false;
28589
      sb.append(")");
28590
      return sb.toString();
28591
    }
28592
 
28593
    public void validate() throws org.apache.thrift.TException {
28594
      // check for required fields
28595
    }
28596
 
28597
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28598
      try {
28599
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28600
      } catch (org.apache.thrift.TException te) {
28601
        throw new java.io.IOException(te);
28602
      }
28603
    }
28604
 
28605
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28606
      try {
28607
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
28608
        __isset_bit_vector = new BitSet(1);
28609
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28610
      } catch (org.apache.thrift.TException te) {
28611
        throw new java.io.IOException(te);
28612
      }
28613
    }
28614
 
28615
  }
28616
 
28617
  public static class getUserSmsInfo_result implements org.apache.thrift.TBase<getUserSmsInfo_result, getUserSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
28618
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUserSmsInfo_result");
28619
 
28620
    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);
28621
    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);
28622
 
28623
    private UserSmsInfo success; // required
28624
    private HelperServiceException se; // required
28625
 
28626
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
28627
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
28628
      SUCCESS((short)0, "success"),
28629
      SE((short)1, "se");
28630
 
28631
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
28632
 
28633
      static {
28634
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
28635
          byName.put(field.getFieldName(), field);
28636
        }
28637
      }
28638
 
28639
      /**
28640
       * Find the _Fields constant that matches fieldId, or null if its not found.
28641
       */
28642
      public static _Fields findByThriftId(int fieldId) {
28643
        switch(fieldId) {
28644
          case 0: // SUCCESS
28645
            return SUCCESS;
28646
          case 1: // SE
28647
            return SE;
28648
          default:
28649
            return null;
28650
        }
28651
      }
28652
 
28653
      /**
28654
       * Find the _Fields constant that matches fieldId, throwing an exception
28655
       * if it is not found.
28656
       */
28657
      public static _Fields findByThriftIdOrThrow(int fieldId) {
28658
        _Fields fields = findByThriftId(fieldId);
28659
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
28660
        return fields;
28661
      }
28662
 
28663
      /**
28664
       * Find the _Fields constant that matches name, or null if its not found.
28665
       */
28666
      public static _Fields findByName(String name) {
28667
        return byName.get(name);
28668
      }
28669
 
28670
      private final short _thriftId;
28671
      private final String _fieldName;
28672
 
28673
      _Fields(short thriftId, String fieldName) {
28674
        _thriftId = thriftId;
28675
        _fieldName = fieldName;
28676
      }
28677
 
28678
      public short getThriftFieldId() {
28679
        return _thriftId;
28680
      }
28681
 
28682
      public String getFieldName() {
28683
        return _fieldName;
28684
      }
28685
    }
28686
 
28687
    // isset id assignments
28688
 
28689
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
28690
    static {
28691
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
28692
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28693
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class)));
28694
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
28695
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
28696
      metaDataMap = Collections.unmodifiableMap(tmpMap);
28697
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUserSmsInfo_result.class, metaDataMap);
28698
    }
28699
 
28700
    public getUserSmsInfo_result() {
28701
    }
28702
 
28703
    public getUserSmsInfo_result(
28704
      UserSmsInfo success,
28705
      HelperServiceException se)
28706
    {
28707
      this();
28708
      this.success = success;
28709
      this.se = se;
28710
    }
28711
 
28712
    /**
28713
     * Performs a deep copy on <i>other</i>.
28714
     */
28715
    public getUserSmsInfo_result(getUserSmsInfo_result other) {
28716
      if (other.isSetSuccess()) {
28717
        this.success = new UserSmsInfo(other.success);
28718
      }
28719
      if (other.isSetSe()) {
28720
        this.se = new HelperServiceException(other.se);
28721
      }
28722
    }
28723
 
28724
    public getUserSmsInfo_result deepCopy() {
28725
      return new getUserSmsInfo_result(this);
28726
    }
28727
 
28728
    @Override
28729
    public void clear() {
28730
      this.success = null;
28731
      this.se = null;
28732
    }
28733
 
28734
    public UserSmsInfo getSuccess() {
28735
      return this.success;
28736
    }
28737
 
28738
    public void setSuccess(UserSmsInfo success) {
28739
      this.success = success;
28740
    }
28741
 
28742
    public void unsetSuccess() {
28743
      this.success = null;
28744
    }
28745
 
28746
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
28747
    public boolean isSetSuccess() {
28748
      return this.success != null;
28749
    }
28750
 
28751
    public void setSuccessIsSet(boolean value) {
28752
      if (!value) {
28753
        this.success = null;
28754
      }
28755
    }
28756
 
28757
    public HelperServiceException getSe() {
28758
      return this.se;
28759
    }
28760
 
28761
    public void setSe(HelperServiceException se) {
28762
      this.se = se;
28763
    }
28764
 
28765
    public void unsetSe() {
28766
      this.se = null;
28767
    }
28768
 
28769
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
28770
    public boolean isSetSe() {
28771
      return this.se != null;
28772
    }
28773
 
28774
    public void setSeIsSet(boolean value) {
28775
      if (!value) {
28776
        this.se = null;
28777
      }
28778
    }
28779
 
28780
    public void setFieldValue(_Fields field, Object value) {
28781
      switch (field) {
28782
      case SUCCESS:
28783
        if (value == null) {
28784
          unsetSuccess();
28785
        } else {
28786
          setSuccess((UserSmsInfo)value);
28787
        }
28788
        break;
28789
 
28790
      case SE:
28791
        if (value == null) {
28792
          unsetSe();
28793
        } else {
28794
          setSe((HelperServiceException)value);
28795
        }
28796
        break;
28797
 
28798
      }
28799
    }
28800
 
28801
    public Object getFieldValue(_Fields field) {
28802
      switch (field) {
28803
      case SUCCESS:
28804
        return getSuccess();
28805
 
28806
      case SE:
28807
        return getSe();
28808
 
28809
      }
28810
      throw new IllegalStateException();
28811
    }
28812
 
28813
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
28814
    public boolean isSet(_Fields field) {
28815
      if (field == null) {
28816
        throw new IllegalArgumentException();
28817
      }
28818
 
28819
      switch (field) {
28820
      case SUCCESS:
28821
        return isSetSuccess();
28822
      case SE:
28823
        return isSetSe();
28824
      }
28825
      throw new IllegalStateException();
28826
    }
28827
 
28828
    @Override
28829
    public boolean equals(Object that) {
28830
      if (that == null)
28831
        return false;
28832
      if (that instanceof getUserSmsInfo_result)
28833
        return this.equals((getUserSmsInfo_result)that);
28834
      return false;
28835
    }
28836
 
28837
    public boolean equals(getUserSmsInfo_result that) {
28838
      if (that == null)
28839
        return false;
28840
 
28841
      boolean this_present_success = true && this.isSetSuccess();
28842
      boolean that_present_success = true && that.isSetSuccess();
28843
      if (this_present_success || that_present_success) {
28844
        if (!(this_present_success && that_present_success))
28845
          return false;
28846
        if (!this.success.equals(that.success))
28847
          return false;
28848
      }
28849
 
28850
      boolean this_present_se = true && this.isSetSe();
28851
      boolean that_present_se = true && that.isSetSe();
28852
      if (this_present_se || that_present_se) {
28853
        if (!(this_present_se && that_present_se))
28854
          return false;
28855
        if (!this.se.equals(that.se))
28856
          return false;
28857
      }
28858
 
28859
      return true;
28860
    }
28861
 
28862
    @Override
28863
    public int hashCode() {
28864
      return 0;
28865
    }
28866
 
28867
    public int compareTo(getUserSmsInfo_result other) {
28868
      if (!getClass().equals(other.getClass())) {
28869
        return getClass().getName().compareTo(other.getClass().getName());
28870
      }
28871
 
28872
      int lastComparison = 0;
28873
      getUserSmsInfo_result typedOther = (getUserSmsInfo_result)other;
28874
 
28875
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
28876
      if (lastComparison != 0) {
28877
        return lastComparison;
28878
      }
28879
      if (isSetSuccess()) {
28880
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
28881
        if (lastComparison != 0) {
28882
          return lastComparison;
28883
        }
28884
      }
28885
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
28886
      if (lastComparison != 0) {
28887
        return lastComparison;
28888
      }
28889
      if (isSetSe()) {
28890
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
28891
        if (lastComparison != 0) {
28892
          return lastComparison;
28893
        }
28894
      }
28895
      return 0;
28896
    }
28897
 
28898
    public _Fields fieldForId(int fieldId) {
28899
      return _Fields.findByThriftId(fieldId);
28900
    }
28901
 
28902
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
28903
      org.apache.thrift.protocol.TField field;
28904
      iprot.readStructBegin();
28905
      while (true)
28906
      {
28907
        field = iprot.readFieldBegin();
28908
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
28909
          break;
28910
        }
28911
        switch (field.id) {
28912
          case 0: // SUCCESS
28913
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28914
              this.success = new UserSmsInfo();
28915
              this.success.read(iprot);
28916
            } else { 
28917
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28918
            }
28919
            break;
28920
          case 1: // SE
28921
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
28922
              this.se = new HelperServiceException();
28923
              this.se.read(iprot);
28924
            } else { 
28925
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28926
            }
28927
            break;
28928
          default:
28929
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
28930
        }
28931
        iprot.readFieldEnd();
28932
      }
28933
      iprot.readStructEnd();
28934
      validate();
28935
    }
28936
 
28937
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
28938
      oprot.writeStructBegin(STRUCT_DESC);
28939
 
28940
      if (this.isSetSuccess()) {
28941
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
28942
        this.success.write(oprot);
28943
        oprot.writeFieldEnd();
28944
      } else if (this.isSetSe()) {
28945
        oprot.writeFieldBegin(SE_FIELD_DESC);
28946
        this.se.write(oprot);
28947
        oprot.writeFieldEnd();
28948
      }
28949
      oprot.writeFieldStop();
28950
      oprot.writeStructEnd();
28951
    }
28952
 
28953
    @Override
28954
    public String toString() {
28955
      StringBuilder sb = new StringBuilder("getUserSmsInfo_result(");
28956
      boolean first = true;
28957
 
28958
      sb.append("success:");
28959
      if (this.success == null) {
28960
        sb.append("null");
28961
      } else {
28962
        sb.append(this.success);
28963
      }
28964
      first = false;
28965
      if (!first) sb.append(", ");
28966
      sb.append("se:");
28967
      if (this.se == null) {
28968
        sb.append("null");
28969
      } else {
28970
        sb.append(this.se);
28971
      }
28972
      first = false;
28973
      sb.append(")");
28974
      return sb.toString();
28975
    }
28976
 
28977
    public void validate() throws org.apache.thrift.TException {
28978
      // check for required fields
28979
    }
28980
 
28981
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
28982
      try {
28983
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
28984
      } catch (org.apache.thrift.TException te) {
28985
        throw new java.io.IOException(te);
28986
      }
28987
    }
28988
 
28989
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
28990
      try {
28991
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
28992
      } catch (org.apache.thrift.TException te) {
28993
        throw new java.io.IOException(te);
28994
      }
28995
    }
28996
 
28997
  }
28998
 
28999
  public static class getAllUsersSmsInfo_args implements org.apache.thrift.TBase<getAllUsersSmsInfo_args, getAllUsersSmsInfo_args._Fields>, java.io.Serializable, Cloneable   {
29000
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersSmsInfo_args");
29001
 
29002
    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);
29003
    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);
29004
 
29005
    private boolean dndStatus; // required
29006
    private boolean smsSubscribed; // required
29007
 
29008
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29009
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29010
      DND_STATUS((short)1, "dndStatus"),
29011
      SMS_SUBSCRIBED((short)2, "smsSubscribed");
29012
 
29013
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29014
 
29015
      static {
29016
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29017
          byName.put(field.getFieldName(), field);
29018
        }
29019
      }
29020
 
29021
      /**
29022
       * Find the _Fields constant that matches fieldId, or null if its not found.
29023
       */
29024
      public static _Fields findByThriftId(int fieldId) {
29025
        switch(fieldId) {
29026
          case 1: // DND_STATUS
29027
            return DND_STATUS;
29028
          case 2: // SMS_SUBSCRIBED
29029
            return SMS_SUBSCRIBED;
29030
          default:
29031
            return null;
29032
        }
29033
      }
29034
 
29035
      /**
29036
       * Find the _Fields constant that matches fieldId, throwing an exception
29037
       * if it is not found.
29038
       */
29039
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29040
        _Fields fields = findByThriftId(fieldId);
29041
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29042
        return fields;
29043
      }
29044
 
29045
      /**
29046
       * Find the _Fields constant that matches name, or null if its not found.
29047
       */
29048
      public static _Fields findByName(String name) {
29049
        return byName.get(name);
29050
      }
29051
 
29052
      private final short _thriftId;
29053
      private final String _fieldName;
29054
 
29055
      _Fields(short thriftId, String fieldName) {
29056
        _thriftId = thriftId;
29057
        _fieldName = fieldName;
29058
      }
29059
 
29060
      public short getThriftFieldId() {
29061
        return _thriftId;
29062
      }
29063
 
29064
      public String getFieldName() {
29065
        return _fieldName;
29066
      }
29067
    }
29068
 
29069
    // isset id assignments
29070
    private static final int __DNDSTATUS_ISSET_ID = 0;
29071
    private static final int __SMSSUBSCRIBED_ISSET_ID = 1;
29072
    private BitSet __isset_bit_vector = new BitSet(2);
29073
 
29074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29075
    static {
29076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29077
      tmpMap.put(_Fields.DND_STATUS, new org.apache.thrift.meta_data.FieldMetaData("dndStatus", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29078
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29079
      tmpMap.put(_Fields.SMS_SUBSCRIBED, new org.apache.thrift.meta_data.FieldMetaData("smsSubscribed", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29080
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
29081
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29082
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersSmsInfo_args.class, metaDataMap);
29083
    }
29084
 
29085
    public getAllUsersSmsInfo_args() {
29086
    }
29087
 
29088
    public getAllUsersSmsInfo_args(
29089
      boolean dndStatus,
29090
      boolean smsSubscribed)
29091
    {
29092
      this();
29093
      this.dndStatus = dndStatus;
29094
      setDndStatusIsSet(true);
29095
      this.smsSubscribed = smsSubscribed;
29096
      setSmsSubscribedIsSet(true);
29097
    }
29098
 
29099
    /**
29100
     * Performs a deep copy on <i>other</i>.
29101
     */
29102
    public getAllUsersSmsInfo_args(getAllUsersSmsInfo_args other) {
29103
      __isset_bit_vector.clear();
29104
      __isset_bit_vector.or(other.__isset_bit_vector);
29105
      this.dndStatus = other.dndStatus;
29106
      this.smsSubscribed = other.smsSubscribed;
29107
    }
29108
 
29109
    public getAllUsersSmsInfo_args deepCopy() {
29110
      return new getAllUsersSmsInfo_args(this);
29111
    }
29112
 
29113
    @Override
29114
    public void clear() {
29115
      setDndStatusIsSet(false);
29116
      this.dndStatus = false;
29117
      setSmsSubscribedIsSet(false);
29118
      this.smsSubscribed = false;
29119
    }
29120
 
29121
    public boolean isDndStatus() {
29122
      return this.dndStatus;
29123
    }
29124
 
29125
    public void setDndStatus(boolean dndStatus) {
29126
      this.dndStatus = dndStatus;
29127
      setDndStatusIsSet(true);
29128
    }
29129
 
29130
    public void unsetDndStatus() {
29131
      __isset_bit_vector.clear(__DNDSTATUS_ISSET_ID);
29132
    }
29133
 
29134
    /** Returns true if field dndStatus is set (has been assigned a value) and false otherwise */
29135
    public boolean isSetDndStatus() {
29136
      return __isset_bit_vector.get(__DNDSTATUS_ISSET_ID);
29137
    }
29138
 
29139
    public void setDndStatusIsSet(boolean value) {
29140
      __isset_bit_vector.set(__DNDSTATUS_ISSET_ID, value);
29141
    }
29142
 
29143
    public boolean isSmsSubscribed() {
29144
      return this.smsSubscribed;
29145
    }
29146
 
29147
    public void setSmsSubscribed(boolean smsSubscribed) {
29148
      this.smsSubscribed = smsSubscribed;
29149
      setSmsSubscribedIsSet(true);
29150
    }
29151
 
29152
    public void unsetSmsSubscribed() {
29153
      __isset_bit_vector.clear(__SMSSUBSCRIBED_ISSET_ID);
29154
    }
29155
 
29156
    /** Returns true if field smsSubscribed is set (has been assigned a value) and false otherwise */
29157
    public boolean isSetSmsSubscribed() {
29158
      return __isset_bit_vector.get(__SMSSUBSCRIBED_ISSET_ID);
29159
    }
29160
 
29161
    public void setSmsSubscribedIsSet(boolean value) {
29162
      __isset_bit_vector.set(__SMSSUBSCRIBED_ISSET_ID, value);
29163
    }
29164
 
29165
    public void setFieldValue(_Fields field, Object value) {
29166
      switch (field) {
29167
      case DND_STATUS:
29168
        if (value == null) {
29169
          unsetDndStatus();
29170
        } else {
29171
          setDndStatus((Boolean)value);
29172
        }
29173
        break;
29174
 
29175
      case SMS_SUBSCRIBED:
29176
        if (value == null) {
29177
          unsetSmsSubscribed();
29178
        } else {
29179
          setSmsSubscribed((Boolean)value);
29180
        }
29181
        break;
29182
 
29183
      }
29184
    }
29185
 
29186
    public Object getFieldValue(_Fields field) {
29187
      switch (field) {
29188
      case DND_STATUS:
29189
        return Boolean.valueOf(isDndStatus());
29190
 
29191
      case SMS_SUBSCRIBED:
29192
        return Boolean.valueOf(isSmsSubscribed());
29193
 
29194
      }
29195
      throw new IllegalStateException();
29196
    }
29197
 
29198
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29199
    public boolean isSet(_Fields field) {
29200
      if (field == null) {
29201
        throw new IllegalArgumentException();
29202
      }
29203
 
29204
      switch (field) {
29205
      case DND_STATUS:
29206
        return isSetDndStatus();
29207
      case SMS_SUBSCRIBED:
29208
        return isSetSmsSubscribed();
29209
      }
29210
      throw new IllegalStateException();
29211
    }
29212
 
29213
    @Override
29214
    public boolean equals(Object that) {
29215
      if (that == null)
29216
        return false;
29217
      if (that instanceof getAllUsersSmsInfo_args)
29218
        return this.equals((getAllUsersSmsInfo_args)that);
29219
      return false;
29220
    }
29221
 
29222
    public boolean equals(getAllUsersSmsInfo_args that) {
29223
      if (that == null)
29224
        return false;
29225
 
29226
      boolean this_present_dndStatus = true;
29227
      boolean that_present_dndStatus = true;
29228
      if (this_present_dndStatus || that_present_dndStatus) {
29229
        if (!(this_present_dndStatus && that_present_dndStatus))
29230
          return false;
29231
        if (this.dndStatus != that.dndStatus)
29232
          return false;
29233
      }
29234
 
29235
      boolean this_present_smsSubscribed = true;
29236
      boolean that_present_smsSubscribed = true;
29237
      if (this_present_smsSubscribed || that_present_smsSubscribed) {
29238
        if (!(this_present_smsSubscribed && that_present_smsSubscribed))
29239
          return false;
29240
        if (this.smsSubscribed != that.smsSubscribed)
29241
          return false;
29242
      }
29243
 
29244
      return true;
29245
    }
29246
 
29247
    @Override
29248
    public int hashCode() {
29249
      return 0;
29250
    }
29251
 
29252
    public int compareTo(getAllUsersSmsInfo_args other) {
29253
      if (!getClass().equals(other.getClass())) {
29254
        return getClass().getName().compareTo(other.getClass().getName());
29255
      }
29256
 
29257
      int lastComparison = 0;
29258
      getAllUsersSmsInfo_args typedOther = (getAllUsersSmsInfo_args)other;
29259
 
29260
      lastComparison = Boolean.valueOf(isSetDndStatus()).compareTo(typedOther.isSetDndStatus());
29261
      if (lastComparison != 0) {
29262
        return lastComparison;
29263
      }
29264
      if (isSetDndStatus()) {
29265
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.dndStatus, typedOther.dndStatus);
29266
        if (lastComparison != 0) {
29267
          return lastComparison;
29268
        }
29269
      }
29270
      lastComparison = Boolean.valueOf(isSetSmsSubscribed()).compareTo(typedOther.isSetSmsSubscribed());
29271
      if (lastComparison != 0) {
29272
        return lastComparison;
29273
      }
29274
      if (isSetSmsSubscribed()) {
29275
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.smsSubscribed, typedOther.smsSubscribed);
29276
        if (lastComparison != 0) {
29277
          return lastComparison;
29278
        }
29279
      }
29280
      return 0;
29281
    }
29282
 
29283
    public _Fields fieldForId(int fieldId) {
29284
      return _Fields.findByThriftId(fieldId);
29285
    }
29286
 
29287
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29288
      org.apache.thrift.protocol.TField field;
29289
      iprot.readStructBegin();
29290
      while (true)
29291
      {
29292
        field = iprot.readFieldBegin();
29293
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29294
          break;
29295
        }
29296
        switch (field.id) {
29297
          case 1: // DND_STATUS
29298
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29299
              this.dndStatus = iprot.readBool();
29300
              setDndStatusIsSet(true);
29301
            } else { 
29302
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29303
            }
29304
            break;
29305
          case 2: // SMS_SUBSCRIBED
29306
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
29307
              this.smsSubscribed = iprot.readBool();
29308
              setSmsSubscribedIsSet(true);
29309
            } else { 
29310
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29311
            }
29312
            break;
29313
          default:
29314
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29315
        }
29316
        iprot.readFieldEnd();
29317
      }
29318
      iprot.readStructEnd();
29319
      validate();
29320
    }
29321
 
29322
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29323
      validate();
29324
 
29325
      oprot.writeStructBegin(STRUCT_DESC);
29326
      oprot.writeFieldBegin(DND_STATUS_FIELD_DESC);
29327
      oprot.writeBool(this.dndStatus);
29328
      oprot.writeFieldEnd();
29329
      oprot.writeFieldBegin(SMS_SUBSCRIBED_FIELD_DESC);
29330
      oprot.writeBool(this.smsSubscribed);
29331
      oprot.writeFieldEnd();
29332
      oprot.writeFieldStop();
29333
      oprot.writeStructEnd();
29334
    }
29335
 
29336
    @Override
29337
    public String toString() {
29338
      StringBuilder sb = new StringBuilder("getAllUsersSmsInfo_args(");
29339
      boolean first = true;
29340
 
29341
      sb.append("dndStatus:");
29342
      sb.append(this.dndStatus);
29343
      first = false;
29344
      if (!first) sb.append(", ");
29345
      sb.append("smsSubscribed:");
29346
      sb.append(this.smsSubscribed);
29347
      first = false;
29348
      sb.append(")");
29349
      return sb.toString();
29350
    }
29351
 
29352
    public void validate() throws org.apache.thrift.TException {
29353
      // check for required fields
29354
    }
29355
 
29356
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29357
      try {
29358
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29359
      } catch (org.apache.thrift.TException te) {
29360
        throw new java.io.IOException(te);
29361
      }
29362
    }
29363
 
29364
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29365
      try {
29366
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
29367
        __isset_bit_vector = new BitSet(1);
29368
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29369
      } catch (org.apache.thrift.TException te) {
29370
        throw new java.io.IOException(te);
29371
      }
29372
    }
29373
 
29374
  }
29375
 
29376
  public static class getAllUsersSmsInfo_result implements org.apache.thrift.TBase<getAllUsersSmsInfo_result, getAllUsersSmsInfo_result._Fields>, java.io.Serializable, Cloneable   {
29377
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllUsersSmsInfo_result");
29378
 
29379
    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);
29380
    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);
29381
 
29382
    private List<UserSmsInfo> success; // required
29383
    private HelperServiceException se; // required
29384
 
29385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29387
      SUCCESS((short)0, "success"),
29388
      SE((short)1, "se");
29389
 
29390
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29391
 
29392
      static {
29393
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29394
          byName.put(field.getFieldName(), field);
29395
        }
29396
      }
29397
 
29398
      /**
29399
       * Find the _Fields constant that matches fieldId, or null if its not found.
29400
       */
29401
      public static _Fields findByThriftId(int fieldId) {
29402
        switch(fieldId) {
29403
          case 0: // SUCCESS
29404
            return SUCCESS;
29405
          case 1: // SE
29406
            return SE;
29407
          default:
29408
            return null;
29409
        }
29410
      }
29411
 
29412
      /**
29413
       * Find the _Fields constant that matches fieldId, throwing an exception
29414
       * if it is not found.
29415
       */
29416
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29417
        _Fields fields = findByThriftId(fieldId);
29418
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29419
        return fields;
29420
      }
29421
 
29422
      /**
29423
       * Find the _Fields constant that matches name, or null if its not found.
29424
       */
29425
      public static _Fields findByName(String name) {
29426
        return byName.get(name);
29427
      }
29428
 
29429
      private final short _thriftId;
29430
      private final String _fieldName;
29431
 
29432
      _Fields(short thriftId, String fieldName) {
29433
        _thriftId = thriftId;
29434
        _fieldName = fieldName;
29435
      }
29436
 
29437
      public short getThriftFieldId() {
29438
        return _thriftId;
29439
      }
29440
 
29441
      public String getFieldName() {
29442
        return _fieldName;
29443
      }
29444
    }
29445
 
29446
    // isset id assignments
29447
 
29448
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29449
    static {
29450
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29451
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29452
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
29453
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSmsInfo.class))));
29454
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
29455
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
29456
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29457
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllUsersSmsInfo_result.class, metaDataMap);
29458
    }
29459
 
29460
    public getAllUsersSmsInfo_result() {
29461
    }
29462
 
29463
    public getAllUsersSmsInfo_result(
29464
      List<UserSmsInfo> success,
29465
      HelperServiceException se)
29466
    {
29467
      this();
29468
      this.success = success;
29469
      this.se = se;
29470
    }
29471
 
29472
    /**
29473
     * Performs a deep copy on <i>other</i>.
29474
     */
29475
    public getAllUsersSmsInfo_result(getAllUsersSmsInfo_result other) {
29476
      if (other.isSetSuccess()) {
29477
        List<UserSmsInfo> __this__success = new ArrayList<UserSmsInfo>();
29478
        for (UserSmsInfo other_element : other.success) {
29479
          __this__success.add(new UserSmsInfo(other_element));
29480
        }
29481
        this.success = __this__success;
29482
      }
29483
      if (other.isSetSe()) {
29484
        this.se = new HelperServiceException(other.se);
29485
      }
29486
    }
29487
 
29488
    public getAllUsersSmsInfo_result deepCopy() {
29489
      return new getAllUsersSmsInfo_result(this);
29490
    }
29491
 
29492
    @Override
29493
    public void clear() {
29494
      this.success = null;
29495
      this.se = null;
29496
    }
29497
 
29498
    public int getSuccessSize() {
29499
      return (this.success == null) ? 0 : this.success.size();
29500
    }
29501
 
29502
    public java.util.Iterator<UserSmsInfo> getSuccessIterator() {
29503
      return (this.success == null) ? null : this.success.iterator();
29504
    }
29505
 
29506
    public void addToSuccess(UserSmsInfo elem) {
29507
      if (this.success == null) {
29508
        this.success = new ArrayList<UserSmsInfo>();
29509
      }
29510
      this.success.add(elem);
29511
    }
29512
 
29513
    public List<UserSmsInfo> getSuccess() {
29514
      return this.success;
29515
    }
29516
 
29517
    public void setSuccess(List<UserSmsInfo> success) {
29518
      this.success = success;
29519
    }
29520
 
29521
    public void unsetSuccess() {
29522
      this.success = null;
29523
    }
29524
 
29525
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
29526
    public boolean isSetSuccess() {
29527
      return this.success != null;
29528
    }
29529
 
29530
    public void setSuccessIsSet(boolean value) {
29531
      if (!value) {
29532
        this.success = null;
29533
      }
29534
    }
29535
 
29536
    public HelperServiceException getSe() {
29537
      return this.se;
29538
    }
29539
 
29540
    public void setSe(HelperServiceException se) {
29541
      this.se = se;
29542
    }
29543
 
29544
    public void unsetSe() {
29545
      this.se = null;
29546
    }
29547
 
29548
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
29549
    public boolean isSetSe() {
29550
      return this.se != null;
29551
    }
29552
 
29553
    public void setSeIsSet(boolean value) {
29554
      if (!value) {
29555
        this.se = null;
29556
      }
29557
    }
29558
 
29559
    public void setFieldValue(_Fields field, Object value) {
29560
      switch (field) {
29561
      case SUCCESS:
29562
        if (value == null) {
29563
          unsetSuccess();
29564
        } else {
29565
          setSuccess((List<UserSmsInfo>)value);
29566
        }
29567
        break;
29568
 
29569
      case SE:
29570
        if (value == null) {
29571
          unsetSe();
29572
        } else {
29573
          setSe((HelperServiceException)value);
29574
        }
29575
        break;
29576
 
29577
      }
29578
    }
29579
 
29580
    public Object getFieldValue(_Fields field) {
29581
      switch (field) {
29582
      case SUCCESS:
29583
        return getSuccess();
29584
 
29585
      case SE:
29586
        return getSe();
29587
 
29588
      }
29589
      throw new IllegalStateException();
29590
    }
29591
 
29592
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29593
    public boolean isSet(_Fields field) {
29594
      if (field == null) {
29595
        throw new IllegalArgumentException();
29596
      }
29597
 
29598
      switch (field) {
29599
      case SUCCESS:
29600
        return isSetSuccess();
29601
      case SE:
29602
        return isSetSe();
29603
      }
29604
      throw new IllegalStateException();
29605
    }
29606
 
29607
    @Override
29608
    public boolean equals(Object that) {
29609
      if (that == null)
29610
        return false;
29611
      if (that instanceof getAllUsersSmsInfo_result)
29612
        return this.equals((getAllUsersSmsInfo_result)that);
29613
      return false;
29614
    }
29615
 
29616
    public boolean equals(getAllUsersSmsInfo_result that) {
29617
      if (that == null)
29618
        return false;
29619
 
29620
      boolean this_present_success = true && this.isSetSuccess();
29621
      boolean that_present_success = true && that.isSetSuccess();
29622
      if (this_present_success || that_present_success) {
29623
        if (!(this_present_success && that_present_success))
29624
          return false;
29625
        if (!this.success.equals(that.success))
29626
          return false;
29627
      }
29628
 
29629
      boolean this_present_se = true && this.isSetSe();
29630
      boolean that_present_se = true && that.isSetSe();
29631
      if (this_present_se || that_present_se) {
29632
        if (!(this_present_se && that_present_se))
29633
          return false;
29634
        if (!this.se.equals(that.se))
29635
          return false;
29636
      }
29637
 
29638
      return true;
29639
    }
29640
 
29641
    @Override
29642
    public int hashCode() {
29643
      return 0;
29644
    }
29645
 
29646
    public int compareTo(getAllUsersSmsInfo_result other) {
29647
      if (!getClass().equals(other.getClass())) {
29648
        return getClass().getName().compareTo(other.getClass().getName());
29649
      }
29650
 
29651
      int lastComparison = 0;
29652
      getAllUsersSmsInfo_result typedOther = (getAllUsersSmsInfo_result)other;
29653
 
29654
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
29655
      if (lastComparison != 0) {
29656
        return lastComparison;
29657
      }
29658
      if (isSetSuccess()) {
29659
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
29660
        if (lastComparison != 0) {
29661
          return lastComparison;
29662
        }
29663
      }
29664
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
29665
      if (lastComparison != 0) {
29666
        return lastComparison;
29667
      }
29668
      if (isSetSe()) {
29669
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
29670
        if (lastComparison != 0) {
29671
          return lastComparison;
29672
        }
29673
      }
29674
      return 0;
29675
    }
29676
 
29677
    public _Fields fieldForId(int fieldId) {
29678
      return _Fields.findByThriftId(fieldId);
29679
    }
29680
 
29681
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29682
      org.apache.thrift.protocol.TField field;
29683
      iprot.readStructBegin();
29684
      while (true)
29685
      {
29686
        field = iprot.readFieldBegin();
29687
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29688
          break;
29689
        }
29690
        switch (field.id) {
29691
          case 0: // SUCCESS
29692
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
29693
              {
29694
                org.apache.thrift.protocol.TList _list77 = iprot.readListBegin();
29695
                this.success = new ArrayList<UserSmsInfo>(_list77.size);
29696
                for (int _i78 = 0; _i78 < _list77.size; ++_i78)
29697
                {
29698
                  UserSmsInfo _elem79; // required
29699
                  _elem79 = new UserSmsInfo();
29700
                  _elem79.read(iprot);
29701
                  this.success.add(_elem79);
29702
                }
29703
                iprot.readListEnd();
29704
              }
29705
            } else { 
29706
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29707
            }
29708
            break;
29709
          case 1: // SE
29710
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
29711
              this.se = new HelperServiceException();
29712
              this.se.read(iprot);
29713
            } else { 
29714
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29715
            }
29716
            break;
29717
          default:
29718
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29719
        }
29720
        iprot.readFieldEnd();
29721
      }
29722
      iprot.readStructEnd();
29723
      validate();
29724
    }
29725
 
29726
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29727
      oprot.writeStructBegin(STRUCT_DESC);
29728
 
29729
      if (this.isSetSuccess()) {
29730
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
29731
        {
29732
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
29733
          for (UserSmsInfo _iter80 : this.success)
29734
          {
29735
            _iter80.write(oprot);
29736
          }
29737
          oprot.writeListEnd();
29738
        }
29739
        oprot.writeFieldEnd();
29740
      } else if (this.isSetSe()) {
29741
        oprot.writeFieldBegin(SE_FIELD_DESC);
29742
        this.se.write(oprot);
29743
        oprot.writeFieldEnd();
29744
      }
29745
      oprot.writeFieldStop();
29746
      oprot.writeStructEnd();
29747
    }
29748
 
29749
    @Override
29750
    public String toString() {
29751
      StringBuilder sb = new StringBuilder("getAllUsersSmsInfo_result(");
29752
      boolean first = true;
29753
 
29754
      sb.append("success:");
29755
      if (this.success == null) {
29756
        sb.append("null");
29757
      } else {
29758
        sb.append(this.success);
29759
      }
29760
      first = false;
29761
      if (!first) sb.append(", ");
29762
      sb.append("se:");
29763
      if (this.se == null) {
29764
        sb.append("null");
29765
      } else {
29766
        sb.append(this.se);
29767
      }
29768
      first = false;
29769
      sb.append(")");
29770
      return sb.toString();
29771
    }
29772
 
29773
    public void validate() throws org.apache.thrift.TException {
29774
      // check for required fields
29775
    }
29776
 
29777
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29778
      try {
29779
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29780
      } catch (org.apache.thrift.TException te) {
29781
        throw new java.io.IOException(te);
29782
      }
29783
    }
29784
 
29785
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29786
      try {
29787
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29788
      } catch (org.apache.thrift.TException te) {
29789
        throw new java.io.IOException(te);
29790
      }
29791
    }
29792
 
29793
  }
29794
 
29795
  public static class listSmsToGetDeliveryInfo_args implements org.apache.thrift.TBase<listSmsToGetDeliveryInfo_args, listSmsToGetDeliveryInfo_args._Fields>, java.io.Serializable, Cloneable   {
29796
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSmsToGetDeliveryInfo_args");
29797
 
29798
 
29799
 
29800
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
29801
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
29802
;
29803
 
29804
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
29805
 
29806
      static {
29807
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
29808
          byName.put(field.getFieldName(), field);
29809
        }
29810
      }
29811
 
29812
      /**
29813
       * Find the _Fields constant that matches fieldId, or null if its not found.
29814
       */
29815
      public static _Fields findByThriftId(int fieldId) {
29816
        switch(fieldId) {
29817
          default:
29818
            return null;
29819
        }
29820
      }
29821
 
29822
      /**
29823
       * Find the _Fields constant that matches fieldId, throwing an exception
29824
       * if it is not found.
29825
       */
29826
      public static _Fields findByThriftIdOrThrow(int fieldId) {
29827
        _Fields fields = findByThriftId(fieldId);
29828
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
29829
        return fields;
29830
      }
29831
 
29832
      /**
29833
       * Find the _Fields constant that matches name, or null if its not found.
29834
       */
29835
      public static _Fields findByName(String name) {
29836
        return byName.get(name);
29837
      }
29838
 
29839
      private final short _thriftId;
29840
      private final String _fieldName;
29841
 
29842
      _Fields(short thriftId, String fieldName) {
29843
        _thriftId = thriftId;
29844
        _fieldName = fieldName;
29845
      }
29846
 
29847
      public short getThriftFieldId() {
29848
        return _thriftId;
29849
      }
29850
 
29851
      public String getFieldName() {
29852
        return _fieldName;
29853
      }
29854
    }
29855
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
29856
    static {
29857
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
29858
      metaDataMap = Collections.unmodifiableMap(tmpMap);
29859
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSmsToGetDeliveryInfo_args.class, metaDataMap);
29860
    }
29861
 
29862
    public listSmsToGetDeliveryInfo_args() {
29863
    }
29864
 
29865
    /**
29866
     * Performs a deep copy on <i>other</i>.
29867
     */
29868
    public listSmsToGetDeliveryInfo_args(listSmsToGetDeliveryInfo_args other) {
29869
    }
29870
 
29871
    public listSmsToGetDeliveryInfo_args deepCopy() {
29872
      return new listSmsToGetDeliveryInfo_args(this);
29873
    }
29874
 
29875
    @Override
29876
    public void clear() {
29877
    }
29878
 
29879
    public void setFieldValue(_Fields field, Object value) {
29880
      switch (field) {
29881
      }
29882
    }
29883
 
29884
    public Object getFieldValue(_Fields field) {
29885
      switch (field) {
29886
      }
29887
      throw new IllegalStateException();
29888
    }
29889
 
29890
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
29891
    public boolean isSet(_Fields field) {
29892
      if (field == null) {
29893
        throw new IllegalArgumentException();
29894
      }
29895
 
29896
      switch (field) {
29897
      }
29898
      throw new IllegalStateException();
29899
    }
29900
 
29901
    @Override
29902
    public boolean equals(Object that) {
29903
      if (that == null)
29904
        return false;
29905
      if (that instanceof listSmsToGetDeliveryInfo_args)
29906
        return this.equals((listSmsToGetDeliveryInfo_args)that);
29907
      return false;
29908
    }
29909
 
29910
    public boolean equals(listSmsToGetDeliveryInfo_args that) {
29911
      if (that == null)
29912
        return false;
29913
 
29914
      return true;
29915
    }
29916
 
29917
    @Override
29918
    public int hashCode() {
29919
      return 0;
29920
    }
29921
 
29922
    public int compareTo(listSmsToGetDeliveryInfo_args other) {
29923
      if (!getClass().equals(other.getClass())) {
29924
        return getClass().getName().compareTo(other.getClass().getName());
29925
      }
29926
 
29927
      int lastComparison = 0;
29928
      listSmsToGetDeliveryInfo_args typedOther = (listSmsToGetDeliveryInfo_args)other;
29929
 
29930
      return 0;
29931
    }
29932
 
29933
    public _Fields fieldForId(int fieldId) {
29934
      return _Fields.findByThriftId(fieldId);
29935
    }
29936
 
29937
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
29938
      org.apache.thrift.protocol.TField field;
29939
      iprot.readStructBegin();
29940
      while (true)
29941
      {
29942
        field = iprot.readFieldBegin();
29943
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
29944
          break;
29945
        }
29946
        switch (field.id) {
29947
          default:
29948
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
29949
        }
29950
        iprot.readFieldEnd();
29951
      }
29952
      iprot.readStructEnd();
29953
      validate();
29954
    }
29955
 
29956
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
29957
      validate();
29958
 
29959
      oprot.writeStructBegin(STRUCT_DESC);
29960
      oprot.writeFieldStop();
29961
      oprot.writeStructEnd();
29962
    }
29963
 
29964
    @Override
29965
    public String toString() {
29966
      StringBuilder sb = new StringBuilder("listSmsToGetDeliveryInfo_args(");
29967
      boolean first = true;
29968
 
29969
      sb.append(")");
29970
      return sb.toString();
29971
    }
29972
 
29973
    public void validate() throws org.apache.thrift.TException {
29974
      // check for required fields
29975
    }
29976
 
29977
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
29978
      try {
29979
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
29980
      } catch (org.apache.thrift.TException te) {
29981
        throw new java.io.IOException(te);
29982
      }
29983
    }
29984
 
29985
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
29986
      try {
29987
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
29988
      } catch (org.apache.thrift.TException te) {
29989
        throw new java.io.IOException(te);
29990
      }
29991
    }
29992
 
29993
  }
29994
 
29995
  public static class listSmsToGetDeliveryInfo_result implements org.apache.thrift.TBase<listSmsToGetDeliveryInfo_result, listSmsToGetDeliveryInfo_result._Fields>, java.io.Serializable, Cloneable   {
29996
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("listSmsToGetDeliveryInfo_result");
29997
 
29998
    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);
29999
    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);
30000
 
30001
    private List<UserSms> success; // required
30002
    private HelperServiceException se; // required
30003
 
30004
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30005
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30006
      SUCCESS((short)0, "success"),
30007
      SE((short)1, "se");
30008
 
30009
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30010
 
30011
      static {
30012
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30013
          byName.put(field.getFieldName(), field);
30014
        }
30015
      }
30016
 
30017
      /**
30018
       * Find the _Fields constant that matches fieldId, or null if its not found.
30019
       */
30020
      public static _Fields findByThriftId(int fieldId) {
30021
        switch(fieldId) {
30022
          case 0: // SUCCESS
30023
            return SUCCESS;
30024
          case 1: // SE
30025
            return SE;
30026
          default:
30027
            return null;
30028
        }
30029
      }
30030
 
30031
      /**
30032
       * Find the _Fields constant that matches fieldId, throwing an exception
30033
       * if it is not found.
30034
       */
30035
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30036
        _Fields fields = findByThriftId(fieldId);
30037
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30038
        return fields;
30039
      }
30040
 
30041
      /**
30042
       * Find the _Fields constant that matches name, or null if its not found.
30043
       */
30044
      public static _Fields findByName(String name) {
30045
        return byName.get(name);
30046
      }
30047
 
30048
      private final short _thriftId;
30049
      private final String _fieldName;
30050
 
30051
      _Fields(short thriftId, String fieldName) {
30052
        _thriftId = thriftId;
30053
        _fieldName = fieldName;
30054
      }
30055
 
30056
      public short getThriftFieldId() {
30057
        return _thriftId;
30058
      }
30059
 
30060
      public String getFieldName() {
30061
        return _fieldName;
30062
      }
30063
    }
30064
 
30065
    // isset id assignments
30066
 
30067
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30068
    static {
30069
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30070
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30071
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30072
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
30073
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
30075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(listSmsToGetDeliveryInfo_result.class, metaDataMap);
30077
    }
30078
 
30079
    public listSmsToGetDeliveryInfo_result() {
30080
    }
30081
 
30082
    public listSmsToGetDeliveryInfo_result(
30083
      List<UserSms> success,
30084
      HelperServiceException se)
30085
    {
30086
      this();
30087
      this.success = success;
30088
      this.se = se;
30089
    }
30090
 
30091
    /**
30092
     * Performs a deep copy on <i>other</i>.
30093
     */
30094
    public listSmsToGetDeliveryInfo_result(listSmsToGetDeliveryInfo_result other) {
30095
      if (other.isSetSuccess()) {
30096
        List<UserSms> __this__success = new ArrayList<UserSms>();
30097
        for (UserSms other_element : other.success) {
30098
          __this__success.add(new UserSms(other_element));
30099
        }
30100
        this.success = __this__success;
30101
      }
30102
      if (other.isSetSe()) {
30103
        this.se = new HelperServiceException(other.se);
30104
      }
30105
    }
30106
 
30107
    public listSmsToGetDeliveryInfo_result deepCopy() {
30108
      return new listSmsToGetDeliveryInfo_result(this);
30109
    }
30110
 
30111
    @Override
30112
    public void clear() {
30113
      this.success = null;
30114
      this.se = null;
30115
    }
30116
 
30117
    public int getSuccessSize() {
30118
      return (this.success == null) ? 0 : this.success.size();
30119
    }
30120
 
30121
    public java.util.Iterator<UserSms> getSuccessIterator() {
30122
      return (this.success == null) ? null : this.success.iterator();
30123
    }
30124
 
30125
    public void addToSuccess(UserSms elem) {
30126
      if (this.success == null) {
30127
        this.success = new ArrayList<UserSms>();
30128
      }
30129
      this.success.add(elem);
30130
    }
30131
 
30132
    public List<UserSms> getSuccess() {
30133
      return this.success;
30134
    }
30135
 
30136
    public void setSuccess(List<UserSms> success) {
30137
      this.success = success;
30138
    }
30139
 
30140
    public void unsetSuccess() {
30141
      this.success = null;
30142
    }
30143
 
30144
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30145
    public boolean isSetSuccess() {
30146
      return this.success != null;
30147
    }
30148
 
30149
    public void setSuccessIsSet(boolean value) {
30150
      if (!value) {
30151
        this.success = null;
30152
      }
30153
    }
30154
 
30155
    public HelperServiceException getSe() {
30156
      return this.se;
30157
    }
30158
 
30159
    public void setSe(HelperServiceException se) {
30160
      this.se = se;
30161
    }
30162
 
30163
    public void unsetSe() {
30164
      this.se = null;
30165
    }
30166
 
30167
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
30168
    public boolean isSetSe() {
30169
      return this.se != null;
30170
    }
30171
 
30172
    public void setSeIsSet(boolean value) {
30173
      if (!value) {
30174
        this.se = null;
30175
      }
30176
    }
30177
 
30178
    public void setFieldValue(_Fields field, Object value) {
30179
      switch (field) {
30180
      case SUCCESS:
30181
        if (value == null) {
30182
          unsetSuccess();
30183
        } else {
30184
          setSuccess((List<UserSms>)value);
30185
        }
30186
        break;
30187
 
30188
      case SE:
30189
        if (value == null) {
30190
          unsetSe();
30191
        } else {
30192
          setSe((HelperServiceException)value);
30193
        }
30194
        break;
30195
 
30196
      }
30197
    }
30198
 
30199
    public Object getFieldValue(_Fields field) {
30200
      switch (field) {
30201
      case SUCCESS:
30202
        return getSuccess();
30203
 
30204
      case SE:
30205
        return getSe();
30206
 
30207
      }
30208
      throw new IllegalStateException();
30209
    }
30210
 
30211
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30212
    public boolean isSet(_Fields field) {
30213
      if (field == null) {
30214
        throw new IllegalArgumentException();
30215
      }
30216
 
30217
      switch (field) {
30218
      case SUCCESS:
30219
        return isSetSuccess();
30220
      case SE:
30221
        return isSetSe();
30222
      }
30223
      throw new IllegalStateException();
30224
    }
30225
 
30226
    @Override
30227
    public boolean equals(Object that) {
30228
      if (that == null)
30229
        return false;
30230
      if (that instanceof listSmsToGetDeliveryInfo_result)
30231
        return this.equals((listSmsToGetDeliveryInfo_result)that);
30232
      return false;
30233
    }
30234
 
30235
    public boolean equals(listSmsToGetDeliveryInfo_result that) {
30236
      if (that == null)
30237
        return false;
30238
 
30239
      boolean this_present_success = true && this.isSetSuccess();
30240
      boolean that_present_success = true && that.isSetSuccess();
30241
      if (this_present_success || that_present_success) {
30242
        if (!(this_present_success && that_present_success))
30243
          return false;
30244
        if (!this.success.equals(that.success))
30245
          return false;
30246
      }
30247
 
30248
      boolean this_present_se = true && this.isSetSe();
30249
      boolean that_present_se = true && that.isSetSe();
30250
      if (this_present_se || that_present_se) {
30251
        if (!(this_present_se && that_present_se))
30252
          return false;
30253
        if (!this.se.equals(that.se))
30254
          return false;
30255
      }
30256
 
30257
      return true;
30258
    }
30259
 
30260
    @Override
30261
    public int hashCode() {
30262
      return 0;
30263
    }
30264
 
30265
    public int compareTo(listSmsToGetDeliveryInfo_result other) {
30266
      if (!getClass().equals(other.getClass())) {
30267
        return getClass().getName().compareTo(other.getClass().getName());
30268
      }
30269
 
30270
      int lastComparison = 0;
30271
      listSmsToGetDeliveryInfo_result typedOther = (listSmsToGetDeliveryInfo_result)other;
30272
 
30273
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30274
      if (lastComparison != 0) {
30275
        return lastComparison;
30276
      }
30277
      if (isSetSuccess()) {
30278
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30279
        if (lastComparison != 0) {
30280
          return lastComparison;
30281
        }
30282
      }
30283
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
30284
      if (lastComparison != 0) {
30285
        return lastComparison;
30286
      }
30287
      if (isSetSe()) {
30288
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
30289
        if (lastComparison != 0) {
30290
          return lastComparison;
30291
        }
30292
      }
30293
      return 0;
30294
    }
30295
 
30296
    public _Fields fieldForId(int fieldId) {
30297
      return _Fields.findByThriftId(fieldId);
30298
    }
30299
 
30300
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30301
      org.apache.thrift.protocol.TField field;
30302
      iprot.readStructBegin();
30303
      while (true)
30304
      {
30305
        field = iprot.readFieldBegin();
30306
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30307
          break;
30308
        }
30309
        switch (field.id) {
30310
          case 0: // SUCCESS
30311
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30312
              {
30313
                org.apache.thrift.protocol.TList _list81 = iprot.readListBegin();
30314
                this.success = new ArrayList<UserSms>(_list81.size);
30315
                for (int _i82 = 0; _i82 < _list81.size; ++_i82)
30316
                {
30317
                  UserSms _elem83; // required
30318
                  _elem83 = new UserSms();
30319
                  _elem83.read(iprot);
30320
                  this.success.add(_elem83);
30321
                }
30322
                iprot.readListEnd();
30323
              }
30324
            } else { 
30325
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30326
            }
30327
            break;
30328
          case 1: // SE
30329
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
30330
              this.se = new HelperServiceException();
30331
              this.se.read(iprot);
30332
            } else { 
30333
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30334
            }
30335
            break;
30336
          default:
30337
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30338
        }
30339
        iprot.readFieldEnd();
30340
      }
30341
      iprot.readStructEnd();
30342
      validate();
30343
    }
30344
 
30345
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30346
      oprot.writeStructBegin(STRUCT_DESC);
30347
 
30348
      if (this.isSetSuccess()) {
30349
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30350
        {
30351
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
30352
          for (UserSms _iter84 : this.success)
30353
          {
30354
            _iter84.write(oprot);
30355
          }
30356
          oprot.writeListEnd();
30357
        }
30358
        oprot.writeFieldEnd();
30359
      } else if (this.isSetSe()) {
30360
        oprot.writeFieldBegin(SE_FIELD_DESC);
30361
        this.se.write(oprot);
30362
        oprot.writeFieldEnd();
30363
      }
30364
      oprot.writeFieldStop();
30365
      oprot.writeStructEnd();
30366
    }
30367
 
30368
    @Override
30369
    public String toString() {
30370
      StringBuilder sb = new StringBuilder("listSmsToGetDeliveryInfo_result(");
30371
      boolean first = true;
30372
 
30373
      sb.append("success:");
30374
      if (this.success == null) {
30375
        sb.append("null");
30376
      } else {
30377
        sb.append(this.success);
30378
      }
30379
      first = false;
30380
      if (!first) sb.append(", ");
30381
      sb.append("se:");
30382
      if (this.se == null) {
30383
        sb.append("null");
30384
      } else {
30385
        sb.append(this.se);
30386
      }
30387
      first = false;
30388
      sb.append(")");
30389
      return sb.toString();
30390
    }
30391
 
30392
    public void validate() throws org.apache.thrift.TException {
30393
      // check for required fields
30394
    }
30395
 
30396
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30397
      try {
30398
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30399
      } catch (org.apache.thrift.TException te) {
30400
        throw new java.io.IOException(te);
30401
      }
30402
    }
30403
 
30404
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30405
      try {
30406
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30407
      } catch (org.apache.thrift.TException te) {
30408
        throw new java.io.IOException(te);
30409
      }
30410
    }
30411
 
30412
  }
30413
 
30414
  public static class markMessagesAsSentToOperator_args implements org.apache.thrift.TBase<markMessagesAsSentToOperator_args, markMessagesAsSentToOperator_args._Fields>, java.io.Serializable, Cloneable   {
30415
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSentToOperator_args");
30416
 
30417
    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);
30418
 
30419
    private List<UserSms> userSmsList; // required
30420
 
30421
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30422
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30423
      USER_SMS_LIST((short)-1, "userSmsList");
30424
 
30425
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30426
 
30427
      static {
30428
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30429
          byName.put(field.getFieldName(), field);
30430
        }
30431
      }
30432
 
30433
      /**
30434
       * Find the _Fields constant that matches fieldId, or null if its not found.
30435
       */
30436
      public static _Fields findByThriftId(int fieldId) {
30437
        switch(fieldId) {
30438
          case -1: // USER_SMS_LIST
30439
            return USER_SMS_LIST;
30440
          default:
30441
            return null;
30442
        }
30443
      }
30444
 
30445
      /**
30446
       * Find the _Fields constant that matches fieldId, throwing an exception
30447
       * if it is not found.
30448
       */
30449
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30450
        _Fields fields = findByThriftId(fieldId);
30451
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30452
        return fields;
30453
      }
30454
 
30455
      /**
30456
       * Find the _Fields constant that matches name, or null if its not found.
30457
       */
30458
      public static _Fields findByName(String name) {
30459
        return byName.get(name);
30460
      }
30461
 
30462
      private final short _thriftId;
30463
      private final String _fieldName;
30464
 
30465
      _Fields(short thriftId, String fieldName) {
30466
        _thriftId = thriftId;
30467
        _fieldName = fieldName;
30468
      }
30469
 
30470
      public short getThriftFieldId() {
30471
        return _thriftId;
30472
      }
30473
 
30474
      public String getFieldName() {
30475
        return _fieldName;
30476
      }
30477
    }
30478
 
30479
    // isset id assignments
30480
 
30481
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30482
    static {
30483
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30484
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30485
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
30486
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
30487
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30488
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSentToOperator_args.class, metaDataMap);
30489
    }
30490
 
30491
    public markMessagesAsSentToOperator_args() {
30492
    }
30493
 
30494
    public markMessagesAsSentToOperator_args(
30495
      List<UserSms> userSmsList)
30496
    {
30497
      this();
30498
      this.userSmsList = userSmsList;
30499
    }
30500
 
30501
    /**
30502
     * Performs a deep copy on <i>other</i>.
30503
     */
30504
    public markMessagesAsSentToOperator_args(markMessagesAsSentToOperator_args other) {
30505
      if (other.isSetUserSmsList()) {
30506
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
30507
        for (UserSms other_element : other.userSmsList) {
30508
          __this__userSmsList.add(new UserSms(other_element));
30509
        }
30510
        this.userSmsList = __this__userSmsList;
30511
      }
30512
    }
30513
 
30514
    public markMessagesAsSentToOperator_args deepCopy() {
30515
      return new markMessagesAsSentToOperator_args(this);
30516
    }
30517
 
30518
    @Override
30519
    public void clear() {
30520
      this.userSmsList = null;
30521
    }
30522
 
30523
    public int getUserSmsListSize() {
30524
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
30525
    }
30526
 
30527
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
30528
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
30529
    }
30530
 
30531
    public void addToUserSmsList(UserSms elem) {
30532
      if (this.userSmsList == null) {
30533
        this.userSmsList = new ArrayList<UserSms>();
30534
      }
30535
      this.userSmsList.add(elem);
30536
    }
30537
 
30538
    public List<UserSms> getUserSmsList() {
30539
      return this.userSmsList;
30540
    }
30541
 
30542
    public void setUserSmsList(List<UserSms> userSmsList) {
30543
      this.userSmsList = userSmsList;
30544
    }
30545
 
30546
    public void unsetUserSmsList() {
30547
      this.userSmsList = null;
30548
    }
30549
 
30550
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
30551
    public boolean isSetUserSmsList() {
30552
      return this.userSmsList != null;
30553
    }
30554
 
30555
    public void setUserSmsListIsSet(boolean value) {
30556
      if (!value) {
30557
        this.userSmsList = null;
30558
      }
30559
    }
30560
 
30561
    public void setFieldValue(_Fields field, Object value) {
30562
      switch (field) {
30563
      case USER_SMS_LIST:
30564
        if (value == null) {
30565
          unsetUserSmsList();
30566
        } else {
30567
          setUserSmsList((List<UserSms>)value);
30568
        }
30569
        break;
30570
 
30571
      }
30572
    }
30573
 
30574
    public Object getFieldValue(_Fields field) {
30575
      switch (field) {
30576
      case USER_SMS_LIST:
30577
        return getUserSmsList();
30578
 
30579
      }
30580
      throw new IllegalStateException();
30581
    }
30582
 
30583
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30584
    public boolean isSet(_Fields field) {
30585
      if (field == null) {
30586
        throw new IllegalArgumentException();
30587
      }
30588
 
30589
      switch (field) {
30590
      case USER_SMS_LIST:
30591
        return isSetUserSmsList();
30592
      }
30593
      throw new IllegalStateException();
30594
    }
30595
 
30596
    @Override
30597
    public boolean equals(Object that) {
30598
      if (that == null)
30599
        return false;
30600
      if (that instanceof markMessagesAsSentToOperator_args)
30601
        return this.equals((markMessagesAsSentToOperator_args)that);
30602
      return false;
30603
    }
30604
 
30605
    public boolean equals(markMessagesAsSentToOperator_args that) {
30606
      if (that == null)
30607
        return false;
30608
 
30609
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
30610
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
30611
      if (this_present_userSmsList || that_present_userSmsList) {
30612
        if (!(this_present_userSmsList && that_present_userSmsList))
30613
          return false;
30614
        if (!this.userSmsList.equals(that.userSmsList))
30615
          return false;
30616
      }
30617
 
30618
      return true;
30619
    }
30620
 
30621
    @Override
30622
    public int hashCode() {
30623
      return 0;
30624
    }
30625
 
30626
    public int compareTo(markMessagesAsSentToOperator_args other) {
30627
      if (!getClass().equals(other.getClass())) {
30628
        return getClass().getName().compareTo(other.getClass().getName());
30629
      }
30630
 
30631
      int lastComparison = 0;
30632
      markMessagesAsSentToOperator_args typedOther = (markMessagesAsSentToOperator_args)other;
30633
 
30634
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
30635
      if (lastComparison != 0) {
30636
        return lastComparison;
30637
      }
30638
      if (isSetUserSmsList()) {
30639
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
30640
        if (lastComparison != 0) {
30641
          return lastComparison;
30642
        }
30643
      }
30644
      return 0;
30645
    }
30646
 
30647
    public _Fields fieldForId(int fieldId) {
30648
      return _Fields.findByThriftId(fieldId);
30649
    }
30650
 
30651
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30652
      org.apache.thrift.protocol.TField field;
30653
      iprot.readStructBegin();
30654
      while (true)
30655
      {
30656
        field = iprot.readFieldBegin();
30657
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30658
          break;
30659
        }
30660
        switch (field.id) {
30661
          case -1: // USER_SMS_LIST
30662
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
30663
              {
30664
                org.apache.thrift.protocol.TList _list85 = iprot.readListBegin();
30665
                this.userSmsList = new ArrayList<UserSms>(_list85.size);
30666
                for (int _i86 = 0; _i86 < _list85.size; ++_i86)
30667
                {
30668
                  UserSms _elem87; // required
30669
                  _elem87 = new UserSms();
30670
                  _elem87.read(iprot);
30671
                  this.userSmsList.add(_elem87);
30672
                }
30673
                iprot.readListEnd();
30674
              }
30675
            } else { 
30676
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30677
            }
30678
            break;
30679
          default:
30680
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30681
        }
30682
        iprot.readFieldEnd();
30683
      }
30684
      iprot.readStructEnd();
30685
      validate();
30686
    }
30687
 
30688
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30689
      validate();
30690
 
30691
      oprot.writeStructBegin(STRUCT_DESC);
30692
      if (this.userSmsList != null) {
30693
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
30694
        {
30695
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
30696
          for (UserSms _iter88 : this.userSmsList)
30697
          {
30698
            _iter88.write(oprot);
30699
          }
30700
          oprot.writeListEnd();
30701
        }
30702
        oprot.writeFieldEnd();
30703
      }
30704
      oprot.writeFieldStop();
30705
      oprot.writeStructEnd();
30706
    }
30707
 
30708
    @Override
30709
    public String toString() {
30710
      StringBuilder sb = new StringBuilder("markMessagesAsSentToOperator_args(");
30711
      boolean first = true;
30712
 
30713
      sb.append("userSmsList:");
30714
      if (this.userSmsList == null) {
30715
        sb.append("null");
30716
      } else {
30717
        sb.append(this.userSmsList);
30718
      }
30719
      first = false;
30720
      sb.append(")");
30721
      return sb.toString();
30722
    }
30723
 
30724
    public void validate() throws org.apache.thrift.TException {
30725
      // check for required fields
30726
    }
30727
 
30728
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
30729
      try {
30730
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
30731
      } catch (org.apache.thrift.TException te) {
30732
        throw new java.io.IOException(te);
30733
      }
30734
    }
30735
 
30736
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
30737
      try {
30738
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
30739
      } catch (org.apache.thrift.TException te) {
30740
        throw new java.io.IOException(te);
30741
      }
30742
    }
30743
 
30744
  }
30745
 
30746
  public static class markMessagesAsSentToOperator_result implements org.apache.thrift.TBase<markMessagesAsSentToOperator_result, markMessagesAsSentToOperator_result._Fields>, java.io.Serializable, Cloneable   {
30747
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSentToOperator_result");
30748
 
30749
    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);
30750
 
30751
    private boolean success; // required
30752
 
30753
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
30754
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
30755
      SUCCESS((short)0, "success");
30756
 
30757
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
30758
 
30759
      static {
30760
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
30761
          byName.put(field.getFieldName(), field);
30762
        }
30763
      }
30764
 
30765
      /**
30766
       * Find the _Fields constant that matches fieldId, or null if its not found.
30767
       */
30768
      public static _Fields findByThriftId(int fieldId) {
30769
        switch(fieldId) {
30770
          case 0: // SUCCESS
30771
            return SUCCESS;
30772
          default:
30773
            return null;
30774
        }
30775
      }
30776
 
30777
      /**
30778
       * Find the _Fields constant that matches fieldId, throwing an exception
30779
       * if it is not found.
30780
       */
30781
      public static _Fields findByThriftIdOrThrow(int fieldId) {
30782
        _Fields fields = findByThriftId(fieldId);
30783
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
30784
        return fields;
30785
      }
30786
 
30787
      /**
30788
       * Find the _Fields constant that matches name, or null if its not found.
30789
       */
30790
      public static _Fields findByName(String name) {
30791
        return byName.get(name);
30792
      }
30793
 
30794
      private final short _thriftId;
30795
      private final String _fieldName;
30796
 
30797
      _Fields(short thriftId, String fieldName) {
30798
        _thriftId = thriftId;
30799
        _fieldName = fieldName;
30800
      }
30801
 
30802
      public short getThriftFieldId() {
30803
        return _thriftId;
30804
      }
30805
 
30806
      public String getFieldName() {
30807
        return _fieldName;
30808
      }
30809
    }
30810
 
30811
    // isset id assignments
30812
    private static final int __SUCCESS_ISSET_ID = 0;
30813
    private BitSet __isset_bit_vector = new BitSet(1);
30814
 
30815
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
30816
    static {
30817
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
30818
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
30819
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
30820
      metaDataMap = Collections.unmodifiableMap(tmpMap);
30821
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSentToOperator_result.class, metaDataMap);
30822
    }
30823
 
30824
    public markMessagesAsSentToOperator_result() {
30825
    }
30826
 
30827
    public markMessagesAsSentToOperator_result(
30828
      boolean success)
30829
    {
30830
      this();
30831
      this.success = success;
30832
      setSuccessIsSet(true);
30833
    }
30834
 
30835
    /**
30836
     * Performs a deep copy on <i>other</i>.
30837
     */
30838
    public markMessagesAsSentToOperator_result(markMessagesAsSentToOperator_result other) {
30839
      __isset_bit_vector.clear();
30840
      __isset_bit_vector.or(other.__isset_bit_vector);
30841
      this.success = other.success;
30842
    }
30843
 
30844
    public markMessagesAsSentToOperator_result deepCopy() {
30845
      return new markMessagesAsSentToOperator_result(this);
30846
    }
30847
 
30848
    @Override
30849
    public void clear() {
30850
      setSuccessIsSet(false);
30851
      this.success = false;
30852
    }
30853
 
30854
    public boolean isSuccess() {
30855
      return this.success;
30856
    }
30857
 
30858
    public void setSuccess(boolean success) {
30859
      this.success = success;
30860
      setSuccessIsSet(true);
30861
    }
30862
 
30863
    public void unsetSuccess() {
30864
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
30865
    }
30866
 
30867
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
30868
    public boolean isSetSuccess() {
30869
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
30870
    }
30871
 
30872
    public void setSuccessIsSet(boolean value) {
30873
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
30874
    }
30875
 
30876
    public void setFieldValue(_Fields field, Object value) {
30877
      switch (field) {
30878
      case SUCCESS:
30879
        if (value == null) {
30880
          unsetSuccess();
30881
        } else {
30882
          setSuccess((Boolean)value);
30883
        }
30884
        break;
30885
 
30886
      }
30887
    }
30888
 
30889
    public Object getFieldValue(_Fields field) {
30890
      switch (field) {
30891
      case SUCCESS:
30892
        return Boolean.valueOf(isSuccess());
30893
 
30894
      }
30895
      throw new IllegalStateException();
30896
    }
30897
 
30898
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
30899
    public boolean isSet(_Fields field) {
30900
      if (field == null) {
30901
        throw new IllegalArgumentException();
30902
      }
30903
 
30904
      switch (field) {
30905
      case SUCCESS:
30906
        return isSetSuccess();
30907
      }
30908
      throw new IllegalStateException();
30909
    }
30910
 
30911
    @Override
30912
    public boolean equals(Object that) {
30913
      if (that == null)
30914
        return false;
30915
      if (that instanceof markMessagesAsSentToOperator_result)
30916
        return this.equals((markMessagesAsSentToOperator_result)that);
30917
      return false;
30918
    }
30919
 
30920
    public boolean equals(markMessagesAsSentToOperator_result that) {
30921
      if (that == null)
30922
        return false;
30923
 
30924
      boolean this_present_success = true;
30925
      boolean that_present_success = true;
30926
      if (this_present_success || that_present_success) {
30927
        if (!(this_present_success && that_present_success))
30928
          return false;
30929
        if (this.success != that.success)
30930
          return false;
30931
      }
30932
 
30933
      return true;
30934
    }
30935
 
30936
    @Override
30937
    public int hashCode() {
30938
      return 0;
30939
    }
30940
 
30941
    public int compareTo(markMessagesAsSentToOperator_result other) {
30942
      if (!getClass().equals(other.getClass())) {
30943
        return getClass().getName().compareTo(other.getClass().getName());
30944
      }
30945
 
30946
      int lastComparison = 0;
30947
      markMessagesAsSentToOperator_result typedOther = (markMessagesAsSentToOperator_result)other;
30948
 
30949
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
30950
      if (lastComparison != 0) {
30951
        return lastComparison;
30952
      }
30953
      if (isSetSuccess()) {
30954
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
30955
        if (lastComparison != 0) {
30956
          return lastComparison;
30957
        }
30958
      }
30959
      return 0;
30960
    }
30961
 
30962
    public _Fields fieldForId(int fieldId) {
30963
      return _Fields.findByThriftId(fieldId);
30964
    }
30965
 
30966
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
30967
      org.apache.thrift.protocol.TField field;
30968
      iprot.readStructBegin();
30969
      while (true)
30970
      {
30971
        field = iprot.readFieldBegin();
30972
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
30973
          break;
30974
        }
30975
        switch (field.id) {
30976
          case 0: // SUCCESS
30977
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
30978
              this.success = iprot.readBool();
30979
              setSuccessIsSet(true);
30980
            } else { 
30981
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30982
            }
30983
            break;
30984
          default:
30985
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
30986
        }
30987
        iprot.readFieldEnd();
30988
      }
30989
      iprot.readStructEnd();
30990
      validate();
30991
    }
30992
 
30993
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
30994
      oprot.writeStructBegin(STRUCT_DESC);
30995
 
30996
      if (this.isSetSuccess()) {
30997
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
30998
        oprot.writeBool(this.success);
30999
        oprot.writeFieldEnd();
31000
      }
31001
      oprot.writeFieldStop();
31002
      oprot.writeStructEnd();
31003
    }
31004
 
31005
    @Override
31006
    public String toString() {
31007
      StringBuilder sb = new StringBuilder("markMessagesAsSentToOperator_result(");
31008
      boolean first = true;
31009
 
31010
      sb.append("success:");
31011
      sb.append(this.success);
31012
      first = false;
31013
      sb.append(")");
31014
      return sb.toString();
31015
    }
31016
 
31017
    public void validate() throws org.apache.thrift.TException {
31018
      // check for required fields
31019
    }
31020
 
31021
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31022
      try {
31023
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31024
      } catch (org.apache.thrift.TException te) {
31025
        throw new java.io.IOException(te);
31026
      }
31027
    }
31028
 
31029
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31030
      try {
31031
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31032
      } catch (org.apache.thrift.TException te) {
31033
        throw new java.io.IOException(te);
31034
      }
31035
    }
31036
 
31037
  }
31038
 
31039
  public static class markMessagesAsSubmittedToSmsc_args implements org.apache.thrift.TBase<markMessagesAsSubmittedToSmsc_args, markMessagesAsSubmittedToSmsc_args._Fields>, java.io.Serializable, Cloneable   {
31040
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSubmittedToSmsc_args");
31041
 
31042
    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);
31043
 
31044
    private List<UserSms> userSmsList; // required
31045
 
31046
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31047
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31048
      USER_SMS_LIST((short)-1, "userSmsList");
31049
 
31050
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31051
 
31052
      static {
31053
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31054
          byName.put(field.getFieldName(), field);
31055
        }
31056
      }
31057
 
31058
      /**
31059
       * Find the _Fields constant that matches fieldId, or null if its not found.
31060
       */
31061
      public static _Fields findByThriftId(int fieldId) {
31062
        switch(fieldId) {
31063
          case -1: // USER_SMS_LIST
31064
            return USER_SMS_LIST;
31065
          default:
31066
            return null;
31067
        }
31068
      }
31069
 
31070
      /**
31071
       * Find the _Fields constant that matches fieldId, throwing an exception
31072
       * if it is not found.
31073
       */
31074
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31075
        _Fields fields = findByThriftId(fieldId);
31076
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31077
        return fields;
31078
      }
31079
 
31080
      /**
31081
       * Find the _Fields constant that matches name, or null if its not found.
31082
       */
31083
      public static _Fields findByName(String name) {
31084
        return byName.get(name);
31085
      }
31086
 
31087
      private final short _thriftId;
31088
      private final String _fieldName;
31089
 
31090
      _Fields(short thriftId, String fieldName) {
31091
        _thriftId = thriftId;
31092
        _fieldName = fieldName;
31093
      }
31094
 
31095
      public short getThriftFieldId() {
31096
        return _thriftId;
31097
      }
31098
 
31099
      public String getFieldName() {
31100
        return _fieldName;
31101
      }
31102
    }
31103
 
31104
    // isset id assignments
31105
 
31106
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31107
    static {
31108
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31109
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31110
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31111
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
31112
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31113
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSubmittedToSmsc_args.class, metaDataMap);
31114
    }
31115
 
31116
    public markMessagesAsSubmittedToSmsc_args() {
31117
    }
31118
 
31119
    public markMessagesAsSubmittedToSmsc_args(
31120
      List<UserSms> userSmsList)
31121
    {
31122
      this();
31123
      this.userSmsList = userSmsList;
31124
    }
31125
 
31126
    /**
31127
     * Performs a deep copy on <i>other</i>.
31128
     */
31129
    public markMessagesAsSubmittedToSmsc_args(markMessagesAsSubmittedToSmsc_args other) {
31130
      if (other.isSetUserSmsList()) {
31131
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
31132
        for (UserSms other_element : other.userSmsList) {
31133
          __this__userSmsList.add(new UserSms(other_element));
31134
        }
31135
        this.userSmsList = __this__userSmsList;
31136
      }
31137
    }
31138
 
31139
    public markMessagesAsSubmittedToSmsc_args deepCopy() {
31140
      return new markMessagesAsSubmittedToSmsc_args(this);
31141
    }
31142
 
31143
    @Override
31144
    public void clear() {
31145
      this.userSmsList = null;
31146
    }
31147
 
31148
    public int getUserSmsListSize() {
31149
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
31150
    }
31151
 
31152
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
31153
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
31154
    }
31155
 
31156
    public void addToUserSmsList(UserSms elem) {
31157
      if (this.userSmsList == null) {
31158
        this.userSmsList = new ArrayList<UserSms>();
31159
      }
31160
      this.userSmsList.add(elem);
31161
    }
31162
 
31163
    public List<UserSms> getUserSmsList() {
31164
      return this.userSmsList;
31165
    }
31166
 
31167
    public void setUserSmsList(List<UserSms> userSmsList) {
31168
      this.userSmsList = userSmsList;
31169
    }
31170
 
31171
    public void unsetUserSmsList() {
31172
      this.userSmsList = null;
31173
    }
31174
 
31175
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
31176
    public boolean isSetUserSmsList() {
31177
      return this.userSmsList != null;
31178
    }
31179
 
31180
    public void setUserSmsListIsSet(boolean value) {
31181
      if (!value) {
31182
        this.userSmsList = null;
31183
      }
31184
    }
31185
 
31186
    public void setFieldValue(_Fields field, Object value) {
31187
      switch (field) {
31188
      case USER_SMS_LIST:
31189
        if (value == null) {
31190
          unsetUserSmsList();
31191
        } else {
31192
          setUserSmsList((List<UserSms>)value);
31193
        }
31194
        break;
31195
 
31196
      }
31197
    }
31198
 
31199
    public Object getFieldValue(_Fields field) {
31200
      switch (field) {
31201
      case USER_SMS_LIST:
31202
        return getUserSmsList();
31203
 
31204
      }
31205
      throw new IllegalStateException();
31206
    }
31207
 
31208
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31209
    public boolean isSet(_Fields field) {
31210
      if (field == null) {
31211
        throw new IllegalArgumentException();
31212
      }
31213
 
31214
      switch (field) {
31215
      case USER_SMS_LIST:
31216
        return isSetUserSmsList();
31217
      }
31218
      throw new IllegalStateException();
31219
    }
31220
 
31221
    @Override
31222
    public boolean equals(Object that) {
31223
      if (that == null)
31224
        return false;
31225
      if (that instanceof markMessagesAsSubmittedToSmsc_args)
31226
        return this.equals((markMessagesAsSubmittedToSmsc_args)that);
31227
      return false;
31228
    }
31229
 
31230
    public boolean equals(markMessagesAsSubmittedToSmsc_args that) {
31231
      if (that == null)
31232
        return false;
31233
 
31234
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
31235
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
31236
      if (this_present_userSmsList || that_present_userSmsList) {
31237
        if (!(this_present_userSmsList && that_present_userSmsList))
31238
          return false;
31239
        if (!this.userSmsList.equals(that.userSmsList))
31240
          return false;
31241
      }
31242
 
31243
      return true;
31244
    }
31245
 
31246
    @Override
31247
    public int hashCode() {
31248
      return 0;
31249
    }
31250
 
31251
    public int compareTo(markMessagesAsSubmittedToSmsc_args other) {
31252
      if (!getClass().equals(other.getClass())) {
31253
        return getClass().getName().compareTo(other.getClass().getName());
31254
      }
31255
 
31256
      int lastComparison = 0;
31257
      markMessagesAsSubmittedToSmsc_args typedOther = (markMessagesAsSubmittedToSmsc_args)other;
31258
 
31259
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
31260
      if (lastComparison != 0) {
31261
        return lastComparison;
31262
      }
31263
      if (isSetUserSmsList()) {
31264
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
31265
        if (lastComparison != 0) {
31266
          return lastComparison;
31267
        }
31268
      }
31269
      return 0;
31270
    }
31271
 
31272
    public _Fields fieldForId(int fieldId) {
31273
      return _Fields.findByThriftId(fieldId);
31274
    }
31275
 
31276
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31277
      org.apache.thrift.protocol.TField field;
31278
      iprot.readStructBegin();
31279
      while (true)
31280
      {
31281
        field = iprot.readFieldBegin();
31282
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31283
          break;
31284
        }
31285
        switch (field.id) {
31286
          case -1: // USER_SMS_LIST
31287
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31288
              {
31289
                org.apache.thrift.protocol.TList _list89 = iprot.readListBegin();
31290
                this.userSmsList = new ArrayList<UserSms>(_list89.size);
31291
                for (int _i90 = 0; _i90 < _list89.size; ++_i90)
31292
                {
31293
                  UserSms _elem91; // required
31294
                  _elem91 = new UserSms();
31295
                  _elem91.read(iprot);
31296
                  this.userSmsList.add(_elem91);
31297
                }
31298
                iprot.readListEnd();
31299
              }
31300
            } else { 
31301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31302
            }
31303
            break;
31304
          default:
31305
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31306
        }
31307
        iprot.readFieldEnd();
31308
      }
31309
      iprot.readStructEnd();
31310
      validate();
31311
    }
31312
 
31313
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31314
      validate();
31315
 
31316
      oprot.writeStructBegin(STRUCT_DESC);
31317
      if (this.userSmsList != null) {
31318
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
31319
        {
31320
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
31321
          for (UserSms _iter92 : this.userSmsList)
31322
          {
31323
            _iter92.write(oprot);
31324
          }
31325
          oprot.writeListEnd();
31326
        }
31327
        oprot.writeFieldEnd();
31328
      }
31329
      oprot.writeFieldStop();
31330
      oprot.writeStructEnd();
31331
    }
31332
 
31333
    @Override
31334
    public String toString() {
31335
      StringBuilder sb = new StringBuilder("markMessagesAsSubmittedToSmsc_args(");
31336
      boolean first = true;
31337
 
31338
      sb.append("userSmsList:");
31339
      if (this.userSmsList == null) {
31340
        sb.append("null");
31341
      } else {
31342
        sb.append(this.userSmsList);
31343
      }
31344
      first = false;
31345
      sb.append(")");
31346
      return sb.toString();
31347
    }
31348
 
31349
    public void validate() throws org.apache.thrift.TException {
31350
      // check for required fields
31351
    }
31352
 
31353
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31354
      try {
31355
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31356
      } catch (org.apache.thrift.TException te) {
31357
        throw new java.io.IOException(te);
31358
      }
31359
    }
31360
 
31361
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31362
      try {
31363
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31364
      } catch (org.apache.thrift.TException te) {
31365
        throw new java.io.IOException(te);
31366
      }
31367
    }
31368
 
31369
  }
31370
 
31371
  public static class markMessagesAsSubmittedToSmsc_result implements org.apache.thrift.TBase<markMessagesAsSubmittedToSmsc_result, markMessagesAsSubmittedToSmsc_result._Fields>, java.io.Serializable, Cloneable   {
31372
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSubmittedToSmsc_result");
31373
 
31374
    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);
31375
 
31376
    private boolean success; // required
31377
 
31378
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31379
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31380
      SUCCESS((short)0, "success");
31381
 
31382
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31383
 
31384
      static {
31385
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31386
          byName.put(field.getFieldName(), field);
31387
        }
31388
      }
31389
 
31390
      /**
31391
       * Find the _Fields constant that matches fieldId, or null if its not found.
31392
       */
31393
      public static _Fields findByThriftId(int fieldId) {
31394
        switch(fieldId) {
31395
          case 0: // SUCCESS
31396
            return SUCCESS;
31397
          default:
31398
            return null;
31399
        }
31400
      }
31401
 
31402
      /**
31403
       * Find the _Fields constant that matches fieldId, throwing an exception
31404
       * if it is not found.
31405
       */
31406
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31407
        _Fields fields = findByThriftId(fieldId);
31408
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31409
        return fields;
31410
      }
31411
 
31412
      /**
31413
       * Find the _Fields constant that matches name, or null if its not found.
31414
       */
31415
      public static _Fields findByName(String name) {
31416
        return byName.get(name);
31417
      }
31418
 
31419
      private final short _thriftId;
31420
      private final String _fieldName;
31421
 
31422
      _Fields(short thriftId, String fieldName) {
31423
        _thriftId = thriftId;
31424
        _fieldName = fieldName;
31425
      }
31426
 
31427
      public short getThriftFieldId() {
31428
        return _thriftId;
31429
      }
31430
 
31431
      public String getFieldName() {
31432
        return _fieldName;
31433
      }
31434
    }
31435
 
31436
    // isset id assignments
31437
    private static final int __SUCCESS_ISSET_ID = 0;
31438
    private BitSet __isset_bit_vector = new BitSet(1);
31439
 
31440
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31441
    static {
31442
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31443
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31444
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
31445
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31446
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSubmittedToSmsc_result.class, metaDataMap);
31447
    }
31448
 
31449
    public markMessagesAsSubmittedToSmsc_result() {
31450
    }
31451
 
31452
    public markMessagesAsSubmittedToSmsc_result(
31453
      boolean success)
31454
    {
31455
      this();
31456
      this.success = success;
31457
      setSuccessIsSet(true);
31458
    }
31459
 
31460
    /**
31461
     * Performs a deep copy on <i>other</i>.
31462
     */
31463
    public markMessagesAsSubmittedToSmsc_result(markMessagesAsSubmittedToSmsc_result other) {
31464
      __isset_bit_vector.clear();
31465
      __isset_bit_vector.or(other.__isset_bit_vector);
31466
      this.success = other.success;
31467
    }
31468
 
31469
    public markMessagesAsSubmittedToSmsc_result deepCopy() {
31470
      return new markMessagesAsSubmittedToSmsc_result(this);
31471
    }
31472
 
31473
    @Override
31474
    public void clear() {
31475
      setSuccessIsSet(false);
31476
      this.success = false;
31477
    }
31478
 
31479
    public boolean isSuccess() {
31480
      return this.success;
31481
    }
31482
 
31483
    public void setSuccess(boolean success) {
31484
      this.success = success;
31485
      setSuccessIsSet(true);
31486
    }
31487
 
31488
    public void unsetSuccess() {
31489
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
31490
    }
31491
 
31492
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
31493
    public boolean isSetSuccess() {
31494
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
31495
    }
31496
 
31497
    public void setSuccessIsSet(boolean value) {
31498
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
31499
    }
31500
 
31501
    public void setFieldValue(_Fields field, Object value) {
31502
      switch (field) {
31503
      case SUCCESS:
31504
        if (value == null) {
31505
          unsetSuccess();
31506
        } else {
31507
          setSuccess((Boolean)value);
31508
        }
31509
        break;
31510
 
31511
      }
31512
    }
31513
 
31514
    public Object getFieldValue(_Fields field) {
31515
      switch (field) {
31516
      case SUCCESS:
31517
        return Boolean.valueOf(isSuccess());
31518
 
31519
      }
31520
      throw new IllegalStateException();
31521
    }
31522
 
31523
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31524
    public boolean isSet(_Fields field) {
31525
      if (field == null) {
31526
        throw new IllegalArgumentException();
31527
      }
31528
 
31529
      switch (field) {
31530
      case SUCCESS:
31531
        return isSetSuccess();
31532
      }
31533
      throw new IllegalStateException();
31534
    }
31535
 
31536
    @Override
31537
    public boolean equals(Object that) {
31538
      if (that == null)
31539
        return false;
31540
      if (that instanceof markMessagesAsSubmittedToSmsc_result)
31541
        return this.equals((markMessagesAsSubmittedToSmsc_result)that);
31542
      return false;
31543
    }
31544
 
31545
    public boolean equals(markMessagesAsSubmittedToSmsc_result that) {
31546
      if (that == null)
31547
        return false;
31548
 
31549
      boolean this_present_success = true;
31550
      boolean that_present_success = true;
31551
      if (this_present_success || that_present_success) {
31552
        if (!(this_present_success && that_present_success))
31553
          return false;
31554
        if (this.success != that.success)
31555
          return false;
31556
      }
31557
 
31558
      return true;
31559
    }
31560
 
31561
    @Override
31562
    public int hashCode() {
31563
      return 0;
31564
    }
31565
 
31566
    public int compareTo(markMessagesAsSubmittedToSmsc_result other) {
31567
      if (!getClass().equals(other.getClass())) {
31568
        return getClass().getName().compareTo(other.getClass().getName());
31569
      }
31570
 
31571
      int lastComparison = 0;
31572
      markMessagesAsSubmittedToSmsc_result typedOther = (markMessagesAsSubmittedToSmsc_result)other;
31573
 
31574
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
31575
      if (lastComparison != 0) {
31576
        return lastComparison;
31577
      }
31578
      if (isSetSuccess()) {
31579
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
31580
        if (lastComparison != 0) {
31581
          return lastComparison;
31582
        }
31583
      }
31584
      return 0;
31585
    }
31586
 
31587
    public _Fields fieldForId(int fieldId) {
31588
      return _Fields.findByThriftId(fieldId);
31589
    }
31590
 
31591
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31592
      org.apache.thrift.protocol.TField field;
31593
      iprot.readStructBegin();
31594
      while (true)
31595
      {
31596
        field = iprot.readFieldBegin();
31597
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31598
          break;
31599
        }
31600
        switch (field.id) {
31601
          case 0: // SUCCESS
31602
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
31603
              this.success = iprot.readBool();
31604
              setSuccessIsSet(true);
31605
            } else { 
31606
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31607
            }
31608
            break;
31609
          default:
31610
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31611
        }
31612
        iprot.readFieldEnd();
31613
      }
31614
      iprot.readStructEnd();
31615
      validate();
31616
    }
31617
 
31618
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31619
      oprot.writeStructBegin(STRUCT_DESC);
31620
 
31621
      if (this.isSetSuccess()) {
31622
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
31623
        oprot.writeBool(this.success);
31624
        oprot.writeFieldEnd();
31625
      }
31626
      oprot.writeFieldStop();
31627
      oprot.writeStructEnd();
31628
    }
31629
 
31630
    @Override
31631
    public String toString() {
31632
      StringBuilder sb = new StringBuilder("markMessagesAsSubmittedToSmsc_result(");
31633
      boolean first = true;
31634
 
31635
      sb.append("success:");
31636
      sb.append(this.success);
31637
      first = false;
31638
      sb.append(")");
31639
      return sb.toString();
31640
    }
31641
 
31642
    public void validate() throws org.apache.thrift.TException {
31643
      // check for required fields
31644
    }
31645
 
31646
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31647
      try {
31648
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31649
      } catch (org.apache.thrift.TException te) {
31650
        throw new java.io.IOException(te);
31651
      }
31652
    }
31653
 
31654
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31655
      try {
31656
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31657
      } catch (org.apache.thrift.TException te) {
31658
        throw new java.io.IOException(te);
31659
      }
31660
    }
31661
 
31662
  }
31663
 
31664
  public static class markMessagesAsSent_args implements org.apache.thrift.TBase<markMessagesAsSent_args, markMessagesAsSent_args._Fields>, java.io.Serializable, Cloneable   {
31665
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSent_args");
31666
 
31667
    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);
31668
 
31669
    private List<UserSms> userSmsList; // required
31670
 
31671
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
31672
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
31673
      USER_SMS_LIST((short)-1, "userSmsList");
31674
 
31675
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
31676
 
31677
      static {
31678
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
31679
          byName.put(field.getFieldName(), field);
31680
        }
31681
      }
31682
 
31683
      /**
31684
       * Find the _Fields constant that matches fieldId, or null if its not found.
31685
       */
31686
      public static _Fields findByThriftId(int fieldId) {
31687
        switch(fieldId) {
31688
          case -1: // USER_SMS_LIST
31689
            return USER_SMS_LIST;
31690
          default:
31691
            return null;
31692
        }
31693
      }
31694
 
31695
      /**
31696
       * Find the _Fields constant that matches fieldId, throwing an exception
31697
       * if it is not found.
31698
       */
31699
      public static _Fields findByThriftIdOrThrow(int fieldId) {
31700
        _Fields fields = findByThriftId(fieldId);
31701
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
31702
        return fields;
31703
      }
31704
 
31705
      /**
31706
       * Find the _Fields constant that matches name, or null if its not found.
31707
       */
31708
      public static _Fields findByName(String name) {
31709
        return byName.get(name);
31710
      }
31711
 
31712
      private final short _thriftId;
31713
      private final String _fieldName;
31714
 
31715
      _Fields(short thriftId, String fieldName) {
31716
        _thriftId = thriftId;
31717
        _fieldName = fieldName;
31718
      }
31719
 
31720
      public short getThriftFieldId() {
31721
        return _thriftId;
31722
      }
31723
 
31724
      public String getFieldName() {
31725
        return _fieldName;
31726
      }
31727
    }
31728
 
31729
    // isset id assignments
31730
 
31731
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
31732
    static {
31733
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
31734
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
31735
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
31736
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
31737
      metaDataMap = Collections.unmodifiableMap(tmpMap);
31738
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSent_args.class, metaDataMap);
31739
    }
31740
 
31741
    public markMessagesAsSent_args() {
31742
    }
31743
 
31744
    public markMessagesAsSent_args(
31745
      List<UserSms> userSmsList)
31746
    {
31747
      this();
31748
      this.userSmsList = userSmsList;
31749
    }
31750
 
31751
    /**
31752
     * Performs a deep copy on <i>other</i>.
31753
     */
31754
    public markMessagesAsSent_args(markMessagesAsSent_args other) {
31755
      if (other.isSetUserSmsList()) {
31756
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
31757
        for (UserSms other_element : other.userSmsList) {
31758
          __this__userSmsList.add(new UserSms(other_element));
31759
        }
31760
        this.userSmsList = __this__userSmsList;
31761
      }
31762
    }
31763
 
31764
    public markMessagesAsSent_args deepCopy() {
31765
      return new markMessagesAsSent_args(this);
31766
    }
31767
 
31768
    @Override
31769
    public void clear() {
31770
      this.userSmsList = null;
31771
    }
31772
 
31773
    public int getUserSmsListSize() {
31774
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
31775
    }
31776
 
31777
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
31778
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
31779
    }
31780
 
31781
    public void addToUserSmsList(UserSms elem) {
31782
      if (this.userSmsList == null) {
31783
        this.userSmsList = new ArrayList<UserSms>();
31784
      }
31785
      this.userSmsList.add(elem);
31786
    }
31787
 
31788
    public List<UserSms> getUserSmsList() {
31789
      return this.userSmsList;
31790
    }
31791
 
31792
    public void setUserSmsList(List<UserSms> userSmsList) {
31793
      this.userSmsList = userSmsList;
31794
    }
31795
 
31796
    public void unsetUserSmsList() {
31797
      this.userSmsList = null;
31798
    }
31799
 
31800
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
31801
    public boolean isSetUserSmsList() {
31802
      return this.userSmsList != null;
31803
    }
31804
 
31805
    public void setUserSmsListIsSet(boolean value) {
31806
      if (!value) {
31807
        this.userSmsList = null;
31808
      }
31809
    }
31810
 
31811
    public void setFieldValue(_Fields field, Object value) {
31812
      switch (field) {
31813
      case USER_SMS_LIST:
31814
        if (value == null) {
31815
          unsetUserSmsList();
31816
        } else {
31817
          setUserSmsList((List<UserSms>)value);
31818
        }
31819
        break;
31820
 
31821
      }
31822
    }
31823
 
31824
    public Object getFieldValue(_Fields field) {
31825
      switch (field) {
31826
      case USER_SMS_LIST:
31827
        return getUserSmsList();
31828
 
31829
      }
31830
      throw new IllegalStateException();
31831
    }
31832
 
31833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
31834
    public boolean isSet(_Fields field) {
31835
      if (field == null) {
31836
        throw new IllegalArgumentException();
31837
      }
31838
 
31839
      switch (field) {
31840
      case USER_SMS_LIST:
31841
        return isSetUserSmsList();
31842
      }
31843
      throw new IllegalStateException();
31844
    }
31845
 
31846
    @Override
31847
    public boolean equals(Object that) {
31848
      if (that == null)
31849
        return false;
31850
      if (that instanceof markMessagesAsSent_args)
31851
        return this.equals((markMessagesAsSent_args)that);
31852
      return false;
31853
    }
31854
 
31855
    public boolean equals(markMessagesAsSent_args that) {
31856
      if (that == null)
31857
        return false;
31858
 
31859
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
31860
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
31861
      if (this_present_userSmsList || that_present_userSmsList) {
31862
        if (!(this_present_userSmsList && that_present_userSmsList))
31863
          return false;
31864
        if (!this.userSmsList.equals(that.userSmsList))
31865
          return false;
31866
      }
31867
 
31868
      return true;
31869
    }
31870
 
31871
    @Override
31872
    public int hashCode() {
31873
      return 0;
31874
    }
31875
 
31876
    public int compareTo(markMessagesAsSent_args other) {
31877
      if (!getClass().equals(other.getClass())) {
31878
        return getClass().getName().compareTo(other.getClass().getName());
31879
      }
31880
 
31881
      int lastComparison = 0;
31882
      markMessagesAsSent_args typedOther = (markMessagesAsSent_args)other;
31883
 
31884
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
31885
      if (lastComparison != 0) {
31886
        return lastComparison;
31887
      }
31888
      if (isSetUserSmsList()) {
31889
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
31890
        if (lastComparison != 0) {
31891
          return lastComparison;
31892
        }
31893
      }
31894
      return 0;
31895
    }
31896
 
31897
    public _Fields fieldForId(int fieldId) {
31898
      return _Fields.findByThriftId(fieldId);
31899
    }
31900
 
31901
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
31902
      org.apache.thrift.protocol.TField field;
31903
      iprot.readStructBegin();
31904
      while (true)
31905
      {
31906
        field = iprot.readFieldBegin();
31907
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
31908
          break;
31909
        }
31910
        switch (field.id) {
31911
          case -1: // USER_SMS_LIST
31912
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
31913
              {
31914
                org.apache.thrift.protocol.TList _list93 = iprot.readListBegin();
31915
                this.userSmsList = new ArrayList<UserSms>(_list93.size);
31916
                for (int _i94 = 0; _i94 < _list93.size; ++_i94)
31917
                {
31918
                  UserSms _elem95; // required
31919
                  _elem95 = new UserSms();
31920
                  _elem95.read(iprot);
31921
                  this.userSmsList.add(_elem95);
31922
                }
31923
                iprot.readListEnd();
31924
              }
31925
            } else { 
31926
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31927
            }
31928
            break;
31929
          default:
31930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
31931
        }
31932
        iprot.readFieldEnd();
31933
      }
31934
      iprot.readStructEnd();
31935
      validate();
31936
    }
31937
 
31938
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
31939
      validate();
31940
 
31941
      oprot.writeStructBegin(STRUCT_DESC);
31942
      if (this.userSmsList != null) {
31943
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
31944
        {
31945
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
31946
          for (UserSms _iter96 : this.userSmsList)
31947
          {
31948
            _iter96.write(oprot);
31949
          }
31950
          oprot.writeListEnd();
31951
        }
31952
        oprot.writeFieldEnd();
31953
      }
31954
      oprot.writeFieldStop();
31955
      oprot.writeStructEnd();
31956
    }
31957
 
31958
    @Override
31959
    public String toString() {
31960
      StringBuilder sb = new StringBuilder("markMessagesAsSent_args(");
31961
      boolean first = true;
31962
 
31963
      sb.append("userSmsList:");
31964
      if (this.userSmsList == null) {
31965
        sb.append("null");
31966
      } else {
31967
        sb.append(this.userSmsList);
31968
      }
31969
      first = false;
31970
      sb.append(")");
31971
      return sb.toString();
31972
    }
31973
 
31974
    public void validate() throws org.apache.thrift.TException {
31975
      // check for required fields
31976
    }
31977
 
31978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
31979
      try {
31980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
31981
      } catch (org.apache.thrift.TException te) {
31982
        throw new java.io.IOException(te);
31983
      }
31984
    }
31985
 
31986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
31987
      try {
31988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
31989
      } catch (org.apache.thrift.TException te) {
31990
        throw new java.io.IOException(te);
31991
      }
31992
    }
31993
 
31994
  }
31995
 
31996
  public static class markMessagesAsSent_result implements org.apache.thrift.TBase<markMessagesAsSent_result, markMessagesAsSent_result._Fields>, java.io.Serializable, Cloneable   {
31997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsSent_result");
31998
 
31999
    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);
32000
 
32001
    private boolean success; // required
32002
 
32003
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32004
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32005
      SUCCESS((short)0, "success");
32006
 
32007
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32008
 
32009
      static {
32010
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32011
          byName.put(field.getFieldName(), field);
32012
        }
32013
      }
32014
 
32015
      /**
32016
       * Find the _Fields constant that matches fieldId, or null if its not found.
32017
       */
32018
      public static _Fields findByThriftId(int fieldId) {
32019
        switch(fieldId) {
32020
          case 0: // SUCCESS
32021
            return SUCCESS;
32022
          default:
32023
            return null;
32024
        }
32025
      }
32026
 
32027
      /**
32028
       * Find the _Fields constant that matches fieldId, throwing an exception
32029
       * if it is not found.
32030
       */
32031
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32032
        _Fields fields = findByThriftId(fieldId);
32033
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32034
        return fields;
32035
      }
32036
 
32037
      /**
32038
       * Find the _Fields constant that matches name, or null if its not found.
32039
       */
32040
      public static _Fields findByName(String name) {
32041
        return byName.get(name);
32042
      }
32043
 
32044
      private final short _thriftId;
32045
      private final String _fieldName;
32046
 
32047
      _Fields(short thriftId, String fieldName) {
32048
        _thriftId = thriftId;
32049
        _fieldName = fieldName;
32050
      }
32051
 
32052
      public short getThriftFieldId() {
32053
        return _thriftId;
32054
      }
32055
 
32056
      public String getFieldName() {
32057
        return _fieldName;
32058
      }
32059
    }
32060
 
32061
    // isset id assignments
32062
    private static final int __SUCCESS_ISSET_ID = 0;
32063
    private BitSet __isset_bit_vector = new BitSet(1);
32064
 
32065
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32066
    static {
32067
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32068
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32069
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32070
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32071
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsSent_result.class, metaDataMap);
32072
    }
32073
 
32074
    public markMessagesAsSent_result() {
32075
    }
32076
 
32077
    public markMessagesAsSent_result(
32078
      boolean success)
32079
    {
32080
      this();
32081
      this.success = success;
32082
      setSuccessIsSet(true);
32083
    }
32084
 
32085
    /**
32086
     * Performs a deep copy on <i>other</i>.
32087
     */
32088
    public markMessagesAsSent_result(markMessagesAsSent_result other) {
32089
      __isset_bit_vector.clear();
32090
      __isset_bit_vector.or(other.__isset_bit_vector);
32091
      this.success = other.success;
32092
    }
32093
 
32094
    public markMessagesAsSent_result deepCopy() {
32095
      return new markMessagesAsSent_result(this);
32096
    }
32097
 
32098
    @Override
32099
    public void clear() {
32100
      setSuccessIsSet(false);
32101
      this.success = false;
32102
    }
32103
 
32104
    public boolean isSuccess() {
32105
      return this.success;
32106
    }
32107
 
32108
    public void setSuccess(boolean success) {
32109
      this.success = success;
32110
      setSuccessIsSet(true);
32111
    }
32112
 
32113
    public void unsetSuccess() {
32114
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32115
    }
32116
 
32117
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32118
    public boolean isSetSuccess() {
32119
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32120
    }
32121
 
32122
    public void setSuccessIsSet(boolean value) {
32123
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32124
    }
32125
 
32126
    public void setFieldValue(_Fields field, Object value) {
32127
      switch (field) {
32128
      case SUCCESS:
32129
        if (value == null) {
32130
          unsetSuccess();
32131
        } else {
32132
          setSuccess((Boolean)value);
32133
        }
32134
        break;
32135
 
32136
      }
32137
    }
32138
 
32139
    public Object getFieldValue(_Fields field) {
32140
      switch (field) {
32141
      case SUCCESS:
32142
        return Boolean.valueOf(isSuccess());
32143
 
32144
      }
32145
      throw new IllegalStateException();
32146
    }
32147
 
32148
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32149
    public boolean isSet(_Fields field) {
32150
      if (field == null) {
32151
        throw new IllegalArgumentException();
32152
      }
32153
 
32154
      switch (field) {
32155
      case SUCCESS:
32156
        return isSetSuccess();
32157
      }
32158
      throw new IllegalStateException();
32159
    }
32160
 
32161
    @Override
32162
    public boolean equals(Object that) {
32163
      if (that == null)
32164
        return false;
32165
      if (that instanceof markMessagesAsSent_result)
32166
        return this.equals((markMessagesAsSent_result)that);
32167
      return false;
32168
    }
32169
 
32170
    public boolean equals(markMessagesAsSent_result that) {
32171
      if (that == null)
32172
        return false;
32173
 
32174
      boolean this_present_success = true;
32175
      boolean that_present_success = true;
32176
      if (this_present_success || that_present_success) {
32177
        if (!(this_present_success && that_present_success))
32178
          return false;
32179
        if (this.success != that.success)
32180
          return false;
32181
      }
32182
 
32183
      return true;
32184
    }
32185
 
32186
    @Override
32187
    public int hashCode() {
32188
      return 0;
32189
    }
32190
 
32191
    public int compareTo(markMessagesAsSent_result other) {
32192
      if (!getClass().equals(other.getClass())) {
32193
        return getClass().getName().compareTo(other.getClass().getName());
32194
      }
32195
 
32196
      int lastComparison = 0;
32197
      markMessagesAsSent_result typedOther = (markMessagesAsSent_result)other;
32198
 
32199
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32200
      if (lastComparison != 0) {
32201
        return lastComparison;
32202
      }
32203
      if (isSetSuccess()) {
32204
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32205
        if (lastComparison != 0) {
32206
          return lastComparison;
32207
        }
32208
      }
32209
      return 0;
32210
    }
32211
 
32212
    public _Fields fieldForId(int fieldId) {
32213
      return _Fields.findByThriftId(fieldId);
32214
    }
32215
 
32216
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32217
      org.apache.thrift.protocol.TField field;
32218
      iprot.readStructBegin();
32219
      while (true)
32220
      {
32221
        field = iprot.readFieldBegin();
32222
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32223
          break;
32224
        }
32225
        switch (field.id) {
32226
          case 0: // SUCCESS
32227
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32228
              this.success = iprot.readBool();
32229
              setSuccessIsSet(true);
32230
            } else { 
32231
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32232
            }
32233
            break;
32234
          default:
32235
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32236
        }
32237
        iprot.readFieldEnd();
32238
      }
32239
      iprot.readStructEnd();
32240
      validate();
32241
    }
32242
 
32243
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32244
      oprot.writeStructBegin(STRUCT_DESC);
32245
 
32246
      if (this.isSetSuccess()) {
32247
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32248
        oprot.writeBool(this.success);
32249
        oprot.writeFieldEnd();
32250
      }
32251
      oprot.writeFieldStop();
32252
      oprot.writeStructEnd();
32253
    }
32254
 
32255
    @Override
32256
    public String toString() {
32257
      StringBuilder sb = new StringBuilder("markMessagesAsSent_result(");
32258
      boolean first = true;
32259
 
32260
      sb.append("success:");
32261
      sb.append(this.success);
32262
      first = false;
32263
      sb.append(")");
32264
      return sb.toString();
32265
    }
32266
 
32267
    public void validate() throws org.apache.thrift.TException {
32268
      // check for required fields
32269
    }
32270
 
32271
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32272
      try {
32273
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32274
      } catch (org.apache.thrift.TException te) {
32275
        throw new java.io.IOException(te);
32276
      }
32277
    }
32278
 
32279
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32280
      try {
32281
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32282
      } catch (org.apache.thrift.TException te) {
32283
        throw new java.io.IOException(te);
32284
      }
32285
    }
32286
 
32287
  }
32288
 
32289
  public static class markMessagesAsRetry_args implements org.apache.thrift.TBase<markMessagesAsRetry_args, markMessagesAsRetry_args._Fields>, java.io.Serializable, Cloneable   {
32290
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsRetry_args");
32291
 
32292
    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);
32293
 
32294
    private List<UserSms> userSmsList; // required
32295
 
32296
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32297
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32298
      USER_SMS_LIST((short)-1, "userSmsList");
32299
 
32300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32301
 
32302
      static {
32303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32304
          byName.put(field.getFieldName(), field);
32305
        }
32306
      }
32307
 
32308
      /**
32309
       * Find the _Fields constant that matches fieldId, or null if its not found.
32310
       */
32311
      public static _Fields findByThriftId(int fieldId) {
32312
        switch(fieldId) {
32313
          case -1: // USER_SMS_LIST
32314
            return USER_SMS_LIST;
32315
          default:
32316
            return null;
32317
        }
32318
      }
32319
 
32320
      /**
32321
       * Find the _Fields constant that matches fieldId, throwing an exception
32322
       * if it is not found.
32323
       */
32324
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32325
        _Fields fields = findByThriftId(fieldId);
32326
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32327
        return fields;
32328
      }
32329
 
32330
      /**
32331
       * Find the _Fields constant that matches name, or null if its not found.
32332
       */
32333
      public static _Fields findByName(String name) {
32334
        return byName.get(name);
32335
      }
32336
 
32337
      private final short _thriftId;
32338
      private final String _fieldName;
32339
 
32340
      _Fields(short thriftId, String fieldName) {
32341
        _thriftId = thriftId;
32342
        _fieldName = fieldName;
32343
      }
32344
 
32345
      public short getThriftFieldId() {
32346
        return _thriftId;
32347
      }
32348
 
32349
      public String getFieldName() {
32350
        return _fieldName;
32351
      }
32352
    }
32353
 
32354
    // isset id assignments
32355
 
32356
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32357
    static {
32358
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32359
      tmpMap.put(_Fields.USER_SMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("userSmsList", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32360
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
32361
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserSms.class))));
32362
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32363
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsRetry_args.class, metaDataMap);
32364
    }
32365
 
32366
    public markMessagesAsRetry_args() {
32367
    }
32368
 
32369
    public markMessagesAsRetry_args(
32370
      List<UserSms> userSmsList)
32371
    {
32372
      this();
32373
      this.userSmsList = userSmsList;
32374
    }
32375
 
32376
    /**
32377
     * Performs a deep copy on <i>other</i>.
32378
     */
32379
    public markMessagesAsRetry_args(markMessagesAsRetry_args other) {
32380
      if (other.isSetUserSmsList()) {
32381
        List<UserSms> __this__userSmsList = new ArrayList<UserSms>();
32382
        for (UserSms other_element : other.userSmsList) {
32383
          __this__userSmsList.add(new UserSms(other_element));
32384
        }
32385
        this.userSmsList = __this__userSmsList;
32386
      }
32387
    }
32388
 
32389
    public markMessagesAsRetry_args deepCopy() {
32390
      return new markMessagesAsRetry_args(this);
32391
    }
32392
 
32393
    @Override
32394
    public void clear() {
32395
      this.userSmsList = null;
32396
    }
32397
 
32398
    public int getUserSmsListSize() {
32399
      return (this.userSmsList == null) ? 0 : this.userSmsList.size();
32400
    }
32401
 
32402
    public java.util.Iterator<UserSms> getUserSmsListIterator() {
32403
      return (this.userSmsList == null) ? null : this.userSmsList.iterator();
32404
    }
32405
 
32406
    public void addToUserSmsList(UserSms elem) {
32407
      if (this.userSmsList == null) {
32408
        this.userSmsList = new ArrayList<UserSms>();
32409
      }
32410
      this.userSmsList.add(elem);
32411
    }
32412
 
32413
    public List<UserSms> getUserSmsList() {
32414
      return this.userSmsList;
32415
    }
32416
 
32417
    public void setUserSmsList(List<UserSms> userSmsList) {
32418
      this.userSmsList = userSmsList;
32419
    }
32420
 
32421
    public void unsetUserSmsList() {
32422
      this.userSmsList = null;
32423
    }
32424
 
32425
    /** Returns true if field userSmsList is set (has been assigned a value) and false otherwise */
32426
    public boolean isSetUserSmsList() {
32427
      return this.userSmsList != null;
32428
    }
32429
 
32430
    public void setUserSmsListIsSet(boolean value) {
32431
      if (!value) {
32432
        this.userSmsList = null;
32433
      }
32434
    }
32435
 
32436
    public void setFieldValue(_Fields field, Object value) {
32437
      switch (field) {
32438
      case USER_SMS_LIST:
32439
        if (value == null) {
32440
          unsetUserSmsList();
32441
        } else {
32442
          setUserSmsList((List<UserSms>)value);
32443
        }
32444
        break;
32445
 
32446
      }
32447
    }
32448
 
32449
    public Object getFieldValue(_Fields field) {
32450
      switch (field) {
32451
      case USER_SMS_LIST:
32452
        return getUserSmsList();
32453
 
32454
      }
32455
      throw new IllegalStateException();
32456
    }
32457
 
32458
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32459
    public boolean isSet(_Fields field) {
32460
      if (field == null) {
32461
        throw new IllegalArgumentException();
32462
      }
32463
 
32464
      switch (field) {
32465
      case USER_SMS_LIST:
32466
        return isSetUserSmsList();
32467
      }
32468
      throw new IllegalStateException();
32469
    }
32470
 
32471
    @Override
32472
    public boolean equals(Object that) {
32473
      if (that == null)
32474
        return false;
32475
      if (that instanceof markMessagesAsRetry_args)
32476
        return this.equals((markMessagesAsRetry_args)that);
32477
      return false;
32478
    }
32479
 
32480
    public boolean equals(markMessagesAsRetry_args that) {
32481
      if (that == null)
32482
        return false;
32483
 
32484
      boolean this_present_userSmsList = true && this.isSetUserSmsList();
32485
      boolean that_present_userSmsList = true && that.isSetUserSmsList();
32486
      if (this_present_userSmsList || that_present_userSmsList) {
32487
        if (!(this_present_userSmsList && that_present_userSmsList))
32488
          return false;
32489
        if (!this.userSmsList.equals(that.userSmsList))
32490
          return false;
32491
      }
32492
 
32493
      return true;
32494
    }
32495
 
32496
    @Override
32497
    public int hashCode() {
32498
      return 0;
32499
    }
32500
 
32501
    public int compareTo(markMessagesAsRetry_args other) {
32502
      if (!getClass().equals(other.getClass())) {
32503
        return getClass().getName().compareTo(other.getClass().getName());
32504
      }
32505
 
32506
      int lastComparison = 0;
32507
      markMessagesAsRetry_args typedOther = (markMessagesAsRetry_args)other;
32508
 
32509
      lastComparison = Boolean.valueOf(isSetUserSmsList()).compareTo(typedOther.isSetUserSmsList());
32510
      if (lastComparison != 0) {
32511
        return lastComparison;
32512
      }
32513
      if (isSetUserSmsList()) {
32514
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.userSmsList, typedOther.userSmsList);
32515
        if (lastComparison != 0) {
32516
          return lastComparison;
32517
        }
32518
      }
32519
      return 0;
32520
    }
32521
 
32522
    public _Fields fieldForId(int fieldId) {
32523
      return _Fields.findByThriftId(fieldId);
32524
    }
32525
 
32526
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32527
      org.apache.thrift.protocol.TField field;
32528
      iprot.readStructBegin();
32529
      while (true)
32530
      {
32531
        field = iprot.readFieldBegin();
32532
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32533
          break;
32534
        }
32535
        switch (field.id) {
32536
          case -1: // USER_SMS_LIST
32537
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
32538
              {
32539
                org.apache.thrift.protocol.TList _list97 = iprot.readListBegin();
32540
                this.userSmsList = new ArrayList<UserSms>(_list97.size);
32541
                for (int _i98 = 0; _i98 < _list97.size; ++_i98)
32542
                {
32543
                  UserSms _elem99; // required
32544
                  _elem99 = new UserSms();
32545
                  _elem99.read(iprot);
32546
                  this.userSmsList.add(_elem99);
32547
                }
32548
                iprot.readListEnd();
32549
              }
32550
            } else { 
32551
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32552
            }
32553
            break;
32554
          default:
32555
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32556
        }
32557
        iprot.readFieldEnd();
32558
      }
32559
      iprot.readStructEnd();
32560
      validate();
32561
    }
32562
 
32563
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32564
      validate();
32565
 
32566
      oprot.writeStructBegin(STRUCT_DESC);
32567
      if (this.userSmsList != null) {
32568
        oprot.writeFieldBegin(USER_SMS_LIST_FIELD_DESC);
32569
        {
32570
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.userSmsList.size()));
32571
          for (UserSms _iter100 : this.userSmsList)
32572
          {
32573
            _iter100.write(oprot);
32574
          }
32575
          oprot.writeListEnd();
32576
        }
32577
        oprot.writeFieldEnd();
32578
      }
32579
      oprot.writeFieldStop();
32580
      oprot.writeStructEnd();
32581
    }
32582
 
32583
    @Override
32584
    public String toString() {
32585
      StringBuilder sb = new StringBuilder("markMessagesAsRetry_args(");
32586
      boolean first = true;
32587
 
32588
      sb.append("userSmsList:");
32589
      if (this.userSmsList == null) {
32590
        sb.append("null");
32591
      } else {
32592
        sb.append(this.userSmsList);
32593
      }
32594
      first = false;
32595
      sb.append(")");
32596
      return sb.toString();
32597
    }
32598
 
32599
    public void validate() throws org.apache.thrift.TException {
32600
      // check for required fields
32601
    }
32602
 
32603
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32604
      try {
32605
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32606
      } catch (org.apache.thrift.TException te) {
32607
        throw new java.io.IOException(te);
32608
      }
32609
    }
32610
 
32611
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32612
      try {
32613
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32614
      } catch (org.apache.thrift.TException te) {
32615
        throw new java.io.IOException(te);
32616
      }
32617
    }
32618
 
32619
  }
32620
 
32621
  public static class markMessagesAsRetry_result implements org.apache.thrift.TBase<markMessagesAsRetry_result, markMessagesAsRetry_result._Fields>, java.io.Serializable, Cloneable   {
32622
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markMessagesAsRetry_result");
32623
 
32624
    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);
32625
 
32626
    private boolean success; // required
32627
 
32628
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
32629
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
32630
      SUCCESS((short)0, "success");
32631
 
32632
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
32633
 
32634
      static {
32635
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
32636
          byName.put(field.getFieldName(), field);
32637
        }
32638
      }
32639
 
32640
      /**
32641
       * Find the _Fields constant that matches fieldId, or null if its not found.
32642
       */
32643
      public static _Fields findByThriftId(int fieldId) {
32644
        switch(fieldId) {
32645
          case 0: // SUCCESS
32646
            return SUCCESS;
32647
          default:
32648
            return null;
32649
        }
32650
      }
32651
 
32652
      /**
32653
       * Find the _Fields constant that matches fieldId, throwing an exception
32654
       * if it is not found.
32655
       */
32656
      public static _Fields findByThriftIdOrThrow(int fieldId) {
32657
        _Fields fields = findByThriftId(fieldId);
32658
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
32659
        return fields;
32660
      }
32661
 
32662
      /**
32663
       * Find the _Fields constant that matches name, or null if its not found.
32664
       */
32665
      public static _Fields findByName(String name) {
32666
        return byName.get(name);
32667
      }
32668
 
32669
      private final short _thriftId;
32670
      private final String _fieldName;
32671
 
32672
      _Fields(short thriftId, String fieldName) {
32673
        _thriftId = thriftId;
32674
        _fieldName = fieldName;
32675
      }
32676
 
32677
      public short getThriftFieldId() {
32678
        return _thriftId;
32679
      }
32680
 
32681
      public String getFieldName() {
32682
        return _fieldName;
32683
      }
32684
    }
32685
 
32686
    // isset id assignments
32687
    private static final int __SUCCESS_ISSET_ID = 0;
32688
    private BitSet __isset_bit_vector = new BitSet(1);
32689
 
32690
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
32691
    static {
32692
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
32693
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
32694
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
32695
      metaDataMap = Collections.unmodifiableMap(tmpMap);
32696
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markMessagesAsRetry_result.class, metaDataMap);
32697
    }
32698
 
32699
    public markMessagesAsRetry_result() {
32700
    }
32701
 
32702
    public markMessagesAsRetry_result(
32703
      boolean success)
32704
    {
32705
      this();
32706
      this.success = success;
32707
      setSuccessIsSet(true);
32708
    }
32709
 
32710
    /**
32711
     * Performs a deep copy on <i>other</i>.
32712
     */
32713
    public markMessagesAsRetry_result(markMessagesAsRetry_result other) {
32714
      __isset_bit_vector.clear();
32715
      __isset_bit_vector.or(other.__isset_bit_vector);
32716
      this.success = other.success;
32717
    }
32718
 
32719
    public markMessagesAsRetry_result deepCopy() {
32720
      return new markMessagesAsRetry_result(this);
32721
    }
32722
 
32723
    @Override
32724
    public void clear() {
32725
      setSuccessIsSet(false);
32726
      this.success = false;
32727
    }
32728
 
32729
    public boolean isSuccess() {
32730
      return this.success;
32731
    }
32732
 
32733
    public void setSuccess(boolean success) {
32734
      this.success = success;
32735
      setSuccessIsSet(true);
32736
    }
32737
 
32738
    public void unsetSuccess() {
32739
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
32740
    }
32741
 
32742
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
32743
    public boolean isSetSuccess() {
32744
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
32745
    }
32746
 
32747
    public void setSuccessIsSet(boolean value) {
32748
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
32749
    }
32750
 
32751
    public void setFieldValue(_Fields field, Object value) {
32752
      switch (field) {
32753
      case SUCCESS:
32754
        if (value == null) {
32755
          unsetSuccess();
32756
        } else {
32757
          setSuccess((Boolean)value);
32758
        }
32759
        break;
32760
 
32761
      }
32762
    }
32763
 
32764
    public Object getFieldValue(_Fields field) {
32765
      switch (field) {
32766
      case SUCCESS:
32767
        return Boolean.valueOf(isSuccess());
32768
 
32769
      }
32770
      throw new IllegalStateException();
32771
    }
32772
 
32773
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
32774
    public boolean isSet(_Fields field) {
32775
      if (field == null) {
32776
        throw new IllegalArgumentException();
32777
      }
32778
 
32779
      switch (field) {
32780
      case SUCCESS:
32781
        return isSetSuccess();
32782
      }
32783
      throw new IllegalStateException();
32784
    }
32785
 
32786
    @Override
32787
    public boolean equals(Object that) {
32788
      if (that == null)
32789
        return false;
32790
      if (that instanceof markMessagesAsRetry_result)
32791
        return this.equals((markMessagesAsRetry_result)that);
32792
      return false;
32793
    }
32794
 
32795
    public boolean equals(markMessagesAsRetry_result that) {
32796
      if (that == null)
32797
        return false;
32798
 
32799
      boolean this_present_success = true;
32800
      boolean that_present_success = true;
32801
      if (this_present_success || that_present_success) {
32802
        if (!(this_present_success && that_present_success))
32803
          return false;
32804
        if (this.success != that.success)
32805
          return false;
32806
      }
32807
 
32808
      return true;
32809
    }
32810
 
32811
    @Override
32812
    public int hashCode() {
32813
      return 0;
32814
    }
32815
 
32816
    public int compareTo(markMessagesAsRetry_result other) {
32817
      if (!getClass().equals(other.getClass())) {
32818
        return getClass().getName().compareTo(other.getClass().getName());
32819
      }
32820
 
32821
      int lastComparison = 0;
32822
      markMessagesAsRetry_result typedOther = (markMessagesAsRetry_result)other;
32823
 
32824
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
32825
      if (lastComparison != 0) {
32826
        return lastComparison;
32827
      }
32828
      if (isSetSuccess()) {
32829
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
32830
        if (lastComparison != 0) {
32831
          return lastComparison;
32832
        }
32833
      }
32834
      return 0;
32835
    }
32836
 
32837
    public _Fields fieldForId(int fieldId) {
32838
      return _Fields.findByThriftId(fieldId);
32839
    }
32840
 
32841
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
32842
      org.apache.thrift.protocol.TField field;
32843
      iprot.readStructBegin();
32844
      while (true)
32845
      {
32846
        field = iprot.readFieldBegin();
32847
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
32848
          break;
32849
        }
32850
        switch (field.id) {
32851
          case 0: // SUCCESS
32852
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
32853
              this.success = iprot.readBool();
32854
              setSuccessIsSet(true);
32855
            } else { 
32856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32857
            }
32858
            break;
32859
          default:
32860
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
32861
        }
32862
        iprot.readFieldEnd();
32863
      }
32864
      iprot.readStructEnd();
32865
      validate();
32866
    }
32867
 
32868
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
32869
      oprot.writeStructBegin(STRUCT_DESC);
32870
 
32871
      if (this.isSetSuccess()) {
32872
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
32873
        oprot.writeBool(this.success);
32874
        oprot.writeFieldEnd();
32875
      }
32876
      oprot.writeFieldStop();
32877
      oprot.writeStructEnd();
32878
    }
32879
 
32880
    @Override
32881
    public String toString() {
32882
      StringBuilder sb = new StringBuilder("markMessagesAsRetry_result(");
32883
      boolean first = true;
32884
 
32885
      sb.append("success:");
32886
      sb.append(this.success);
32887
      first = false;
32888
      sb.append(")");
32889
      return sb.toString();
32890
    }
32891
 
32892
    public void validate() throws org.apache.thrift.TException {
32893
      // check for required fields
32894
    }
32895
 
32896
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
32897
      try {
32898
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
32899
      } catch (org.apache.thrift.TException te) {
32900
        throw new java.io.IOException(te);
32901
      }
32902
    }
32903
 
32904
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
32905
      try {
32906
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
32907
      } catch (org.apache.thrift.TException te) {
32908
        throw new java.io.IOException(te);
32909
      }
32910
    }
32911
 
32912
  }
32913
 
352 ashish 32914
}