Subversion Repositories SmartDukaan

Rev

Rev 3374 | Rev 4544 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3374 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.utils;
6
package in.shop2020.utils;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class HelperService {
23
public class HelperService {
27
 
24
 
28
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
29
 
26
 
30
    /**
27
    /**
Line 35... Line 32...
35
     * @param subject
32
     * @param subject
36
     * @param body
33
     * @param body
37
     * @param source
34
     * @param source
38
     * @param emailType
35
     * @param emailType
39
     */
36
     */
40
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, TException;
37
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException;
41
 
38
 
42
    /**
39
    /**
43
     * Retreives all the emails pending for dispatch
40
     * Retreives all the emails pending for dispatch
44
     */
41
     */
45
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, TException;
42
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException;
46
 
43
 
47
    /**
44
    /**
48
     * Marks email as sent after successful dispatch
45
     * Marks email as sent after successful dispatch
49
     * 
46
     * 
50
     * @param emailId
47
     * @param emailId
51
     */
48
     */
52
    public void markEmailAsSent(long emailId) throws HelperServiceException, TException;
49
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException;
53
 
50
 
54
    public void sendMail(Mail mail) throws HelperServiceException, TException;
51
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException;
55
 
52
 
56
    public void sendText(TextMessage message) throws HelperServiceException, TException;
53
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException;
57
 
54
 
58
    public void addMessage(Message message) throws HelperServiceException, TException;
55
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException;
59
 
56
 
60
    public void updateMessage(long id, String message) throws HelperServiceException, TException;
57
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException;
61
 
58
 
62
    public Message getMessage(long id) throws HelperServiceException, TException;
59
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException;
63
 
60
 
64
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, TException;
61
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException;
65
 
62
 
66
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException;
63
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException;
67
 
64
 
68
    public boolean deleteUser(String username) throws HelperServiceException, TException;
65
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException;
69
 
66
 
70
    /**
67
    /**
71
     * Returns the dashboard user if the supplied username and password match. Raises an exception otherwise.
68
     * 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 .
69
     * The loggedOn timestamp for the dashboard user is updated .
73
     * 
70
     * 
74
     * @param username
71
     * @param username
75
     * @param password
72
     * @param password
76
     */
73
     */
77
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, TException;
74
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
78
 
75
 
79
    /**
76
    /**
80
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
77
     * Update the password of the dashboard user. Currently, there is no place where this method is called.
81
     * 
78
     * 
82
     * @param username
79
     * @param username
83
     * @param oldPassword
80
     * @param oldPassword
84
     * @param newPassword
81
     * @param newPassword
85
     */
82
     */
86
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException;
83
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException;
87
 
84
 
88
    /**
85
    /**
89
     * Returns the LogisticsUser struct associated with the given username and password if they match.
86
     * Returns the LogisticsUser struct associated with the given username and password if they match.
90
     * Throws an exception otherwise.
87
     * Throws an exception otherwise.
91
     * 
88
     * 
92
     * @param username
89
     * @param username
93
     * @param password
90
     * @param password
94
     */
91
     */
95
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, TException;
92
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
96
 
93
 
97
    /**
94
    /**
98
     * Returns the StatisticsUser struct associated with the given username and password if they match.
95
     * Returns the StatisticsUser struct associated with the given username and password if they match.
99
     * Throws an exception otherwise.
96
     * Throws an exception otherwise.
100
     * 
97
     * 
101
     * @param username
98
     * @param username
102
     * @param password
99
     * @param password
103
     */
100
     */
104
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, TException;
101
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
105
 
102
 
106
    /**
103
    /**
107
     * Returns the ReportUser struct associated with the given username and password if they match.
104
     * Returns the ReportUser struct associated with the given username and password if they match.
108
     * Throws an exception otherwise.
105
     * Throws an exception otherwise.
109
     * 
106
     * 
110
     * @param username
107
     * @param username
111
     * @param password
108
     * @param password
112
     */
109
     */
113
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, TException;
110
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException;
114
 
111
 
115
    /**
112
    /**
116
     * Returns list of reports which are configured for the given role.
113
     * Returns list of reports which are configured for the given role.
117
     * 
114
     * 
118
     * @param role
115
     * @param role
119
     */
116
     */
120
    public List<Report> getReports(long role) throws TException;
117
    public List<Report> getReports(long role) throws org.apache.thrift.TException;
121
 
118
 
122
    /**
119
    /**
123
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
120
     * Returns the CatalogDashboardUser struct associated with the given username, password and role if they match.
124
     * Throws an exception otherwise.
121
     * Throws an exception otherwise.
125
     * 
122
     * 
126
     * @param username
123
     * @param username
127
     * @param password
124
     * @param password
128
     * @param role
125
     * @param role
129
     */
126
     */
-
 
127
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException;
-
 
128
 
-
 
129
  }
-
 
130
 
-
 
131
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
-
 
132
 
130
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, TException;
133
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException;
-
 
134
 
-
 
135
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException;
-
 
136
 
-
 
137
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException;
-
 
138
 
-
 
139
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendMail_call> resultHandler) throws org.apache.thrift.TException;
-
 
140
 
-
 
141
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sendText_call> resultHandler) throws org.apache.thrift.TException;
-
 
142
 
-
 
143
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addMessage_call> resultHandler) throws org.apache.thrift.TException;
-
 
144
 
-
 
145
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateMessage_call> resultHandler) throws org.apache.thrift.TException;
-
 
146
 
-
 
147
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getMessage_call> resultHandler) throws org.apache.thrift.TException;
-
 
148
 
-
 
149
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException;
-
 
150
 
-
 
151
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
152
 
-
 
153
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.deleteUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
154
 
-
 
155
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
156
 
-
 
157
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePassword_call> resultHandler) throws org.apache.thrift.TException;
-
 
158
 
-
 
159
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
160
 
-
 
161
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
162
 
-
 
163
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
164
 
-
 
165
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getReports_call> resultHandler) throws org.apache.thrift.TException;
-
 
166
 
-
 
167
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException;
131
 
168
 
132
  }
169
  }
133
 
170
 
134
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
171
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
-
 
172
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
135
    public Client(TProtocol prot)
173
      public Factory() {}
-
 
174
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
-
 
175
        return new Client(prot);
136
    {
176
      }
-
 
177
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
137
      this(prot, prot);
178
        return new Client(iprot, oprot);
-
 
179
      }
138
    }
180
    }
139
 
181
 
140
    public Client(TProtocol iprot, TProtocol oprot)
182
    public Client(org.apache.thrift.protocol.TProtocol prot)
141
    {
183
    {
-
 
184
      super(prot, prot);
-
 
185
    }
-
 
186
 
-
 
187
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
142
      super(iprot, oprot);
188
      super(iprot, oprot);
143
    }
189
    }
144
 
190
 
145
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, TException
191
    public long saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws HelperServiceException, org.apache.thrift.TException
146
    {
192
    {
147
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
193
      send_saveUserEmailForSending(emailTo, emailFrom, subject, body, source, emailType);
148
      return recv_saveUserEmailForSending();
194
      return recv_saveUserEmailForSending();
149
    }
195
    }
150
 
196
 
151
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws TException
197
    public void send_saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType) throws org.apache.thrift.TException
152
    {
198
    {
153
      oprot_.writeMessageBegin(new TMessage("saveUserEmailForSending", TMessageType.CALL, seqid_));
-
 
154
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
199
      saveUserEmailForSending_args args = new saveUserEmailForSending_args();
155
      args.emailTo = emailTo;
200
      args.setEmailTo(emailTo);
156
      args.emailFrom = emailFrom;
201
      args.setEmailFrom(emailFrom);
157
      args.subject = subject;
202
      args.setSubject(subject);
158
      args.body = body;
203
      args.setBody(body);
159
      args.source = source;
204
      args.setSource(source);
160
      args.emailType = emailType;
205
      args.setEmailType(emailType);
161
      args.write(oprot_);
-
 
162
      oprot_.writeMessageEnd();
-
 
163
      oprot_.getTransport().flush();
206
      sendBase("saveUserEmailForSending", args);
164
    }
207
    }
165
 
208
 
166
    public long recv_saveUserEmailForSending() throws HelperServiceException, TException
209
    public long recv_saveUserEmailForSending() throws HelperServiceException, org.apache.thrift.TException
167
    {
210
    {
168
      TMessage msg = iprot_.readMessageBegin();
-
 
169
      if (msg.type == TMessageType.EXCEPTION) {
-
 
170
        TApplicationException x = TApplicationException.read(iprot_);
-
 
171
        iprot_.readMessageEnd();
-
 
172
        throw x;
-
 
173
      }
-
 
174
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
211
      saveUserEmailForSending_result result = new saveUserEmailForSending_result();
175
      result.read(iprot_);
-
 
176
      iprot_.readMessageEnd();
212
      receiveBase(result, "saveUserEmailForSending");
177
      if (result.isSetSuccess()) {
213
      if (result.isSetSuccess()) {
178
        return result.success;
214
        return result.success;
179
      }
215
      }
180
      if (result.se != null) {
216
      if (result.se != null) {
181
        throw result.se;
217
        throw result.se;
182
      }
218
      }
183
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
219
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "saveUserEmailForSending failed: unknown result");
184
    }
220
    }
185
 
221
 
186
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, TException
222
    public List<UserEmail> getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
187
    {
223
    {
188
      send_getEmailsToBeSent();
224
      send_getEmailsToBeSent();
189
      return recv_getEmailsToBeSent();
225
      return recv_getEmailsToBeSent();
190
    }
226
    }
191
 
227
 
192
    public void send_getEmailsToBeSent() throws TException
228
    public void send_getEmailsToBeSent() throws org.apache.thrift.TException
193
    {
229
    {
194
      oprot_.writeMessageBegin(new TMessage("getEmailsToBeSent", TMessageType.CALL, seqid_));
-
 
195
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
230
      getEmailsToBeSent_args args = new getEmailsToBeSent_args();
196
      args.write(oprot_);
-
 
197
      oprot_.writeMessageEnd();
-
 
198
      oprot_.getTransport().flush();
231
      sendBase("getEmailsToBeSent", args);
199
    }
232
    }
200
 
233
 
201
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, TException
234
    public List<UserEmail> recv_getEmailsToBeSent() throws HelperServiceException, org.apache.thrift.TException
202
    {
235
    {
203
      TMessage msg = iprot_.readMessageBegin();
-
 
204
      if (msg.type == TMessageType.EXCEPTION) {
-
 
205
        TApplicationException x = TApplicationException.read(iprot_);
-
 
206
        iprot_.readMessageEnd();
-
 
207
        throw x;
-
 
208
      }
-
 
209
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
236
      getEmailsToBeSent_result result = new getEmailsToBeSent_result();
210
      result.read(iprot_);
237
      receiveBase(result, "getEmailsToBeSent");
211
      iprot_.readMessageEnd();
-
 
212
      if (result.isSetSuccess()) {
238
      if (result.isSetSuccess()) {
213
        return result.success;
239
        return result.success;
214
      }
240
      }
215
      if (result.se != null) {
241
      if (result.se != null) {
216
        throw result.se;
242
        throw result.se;
217
      }
243
      }
218
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
244
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmailsToBeSent failed: unknown result");
219
    }
245
    }
220
 
246
 
221
    public void markEmailAsSent(long emailId) throws HelperServiceException, TException
247
    public void markEmailAsSent(long emailId) throws HelperServiceException, org.apache.thrift.TException
222
    {
248
    {
223
      send_markEmailAsSent(emailId);
249
      send_markEmailAsSent(emailId);
224
      recv_markEmailAsSent();
250
      recv_markEmailAsSent();
225
    }
251
    }
226
 
252
 
227
    public void send_markEmailAsSent(long emailId) throws TException
253
    public void send_markEmailAsSent(long emailId) throws org.apache.thrift.TException
228
    {
254
    {
229
      oprot_.writeMessageBegin(new TMessage("markEmailAsSent", TMessageType.CALL, seqid_));
-
 
230
      markEmailAsSent_args args = new markEmailAsSent_args();
255
      markEmailAsSent_args args = new markEmailAsSent_args();
231
      args.emailId = emailId;
256
      args.setEmailId(emailId);
232
      args.write(oprot_);
-
 
233
      oprot_.writeMessageEnd();
-
 
234
      oprot_.getTransport().flush();
257
      sendBase("markEmailAsSent", args);
235
    }
258
    }
236
 
259
 
237
    public void recv_markEmailAsSent() throws HelperServiceException, TException
260
    public void recv_markEmailAsSent() throws HelperServiceException, org.apache.thrift.TException
238
    {
261
    {
239
      TMessage msg = iprot_.readMessageBegin();
-
 
240
      if (msg.type == TMessageType.EXCEPTION) {
-
 
241
        TApplicationException x = TApplicationException.read(iprot_);
-
 
242
        iprot_.readMessageEnd();
-
 
243
        throw x;
-
 
244
      }
-
 
245
      markEmailAsSent_result result = new markEmailAsSent_result();
262
      markEmailAsSent_result result = new markEmailAsSent_result();
246
      result.read(iprot_);
263
      receiveBase(result, "markEmailAsSent");
247
      iprot_.readMessageEnd();
-
 
248
      if (result.se != null) {
264
      if (result.se != null) {
249
        throw result.se;
265
        throw result.se;
250
      }
266
      }
251
      return;
267
      return;
252
    }
268
    }
253
 
269
 
254
    public void sendMail(Mail mail) throws HelperServiceException, TException
270
    public void sendMail(Mail mail) throws HelperServiceException, org.apache.thrift.TException
255
    {
271
    {
256
      send_sendMail(mail);
272
      send_sendMail(mail);
257
      recv_sendMail();
273
      recv_sendMail();
258
    }
274
    }
259
 
275
 
260
    public void send_sendMail(Mail mail) throws TException
276
    public void send_sendMail(Mail mail) throws org.apache.thrift.TException
261
    {
277
    {
262
      oprot_.writeMessageBegin(new TMessage("sendMail", TMessageType.CALL, seqid_));
-
 
263
      sendMail_args args = new sendMail_args();
278
      sendMail_args args = new sendMail_args();
264
      args.mail = mail;
279
      args.setMail(mail);
265
      args.write(oprot_);
-
 
266
      oprot_.writeMessageEnd();
280
      sendBase("sendMail", args);
267
      oprot_.getTransport().flush();
-
 
268
    }
281
    }
269
 
282
 
270
    public void recv_sendMail() throws HelperServiceException, TException
283
    public void recv_sendMail() throws HelperServiceException, org.apache.thrift.TException
271
    {
284
    {
272
      TMessage msg = iprot_.readMessageBegin();
-
 
273
      if (msg.type == TMessageType.EXCEPTION) {
-
 
274
        TApplicationException x = TApplicationException.read(iprot_);
-
 
275
        iprot_.readMessageEnd();
-
 
276
        throw x;
-
 
277
      }
-
 
278
      sendMail_result result = new sendMail_result();
285
      sendMail_result result = new sendMail_result();
279
      result.read(iprot_);
-
 
280
      iprot_.readMessageEnd();
286
      receiveBase(result, "sendMail");
281
      if (result.se != null) {
287
      if (result.se != null) {
282
        throw result.se;
288
        throw result.se;
283
      }
289
      }
284
      return;
290
      return;
285
    }
291
    }
286
 
292
 
287
    public void sendText(TextMessage message) throws HelperServiceException, TException
293
    public void sendText(TextMessage message) throws HelperServiceException, org.apache.thrift.TException
288
    {
294
    {
289
      send_sendText(message);
295
      send_sendText(message);
290
      recv_sendText();
296
      recv_sendText();
291
    }
297
    }
292
 
298
 
293
    public void send_sendText(TextMessage message) throws TException
299
    public void send_sendText(TextMessage message) throws org.apache.thrift.TException
294
    {
300
    {
295
      oprot_.writeMessageBegin(new TMessage("sendText", TMessageType.CALL, seqid_));
-
 
296
      sendText_args args = new sendText_args();
301
      sendText_args args = new sendText_args();
297
      args.message = message;
302
      args.setMessage(message);
298
      args.write(oprot_);
-
 
299
      oprot_.writeMessageEnd();
-
 
300
      oprot_.getTransport().flush();
303
      sendBase("sendText", args);
301
    }
304
    }
302
 
305
 
303
    public void recv_sendText() throws HelperServiceException, TException
306
    public void recv_sendText() throws HelperServiceException, org.apache.thrift.TException
304
    {
307
    {
305
      TMessage msg = iprot_.readMessageBegin();
-
 
306
      if (msg.type == TMessageType.EXCEPTION) {
-
 
307
        TApplicationException x = TApplicationException.read(iprot_);
-
 
308
        iprot_.readMessageEnd();
-
 
309
        throw x;
-
 
310
      }
-
 
311
      sendText_result result = new sendText_result();
308
      sendText_result result = new sendText_result();
312
      result.read(iprot_);
309
      receiveBase(result, "sendText");
313
      iprot_.readMessageEnd();
-
 
314
      if (result.se != null) {
310
      if (result.se != null) {
315
        throw result.se;
311
        throw result.se;
316
      }
312
      }
317
      return;
313
      return;
318
    }
314
    }
319
 
315
 
320
    public void addMessage(Message message) throws HelperServiceException, TException
316
    public void addMessage(Message message) throws HelperServiceException, org.apache.thrift.TException
321
    {
317
    {
322
      send_addMessage(message);
318
      send_addMessage(message);
323
      recv_addMessage();
319
      recv_addMessage();
324
    }
320
    }
325
 
321
 
326
    public void send_addMessage(Message message) throws TException
322
    public void send_addMessage(Message message) throws org.apache.thrift.TException
327
    {
323
    {
328
      oprot_.writeMessageBegin(new TMessage("addMessage", TMessageType.CALL, seqid_));
-
 
329
      addMessage_args args = new addMessage_args();
324
      addMessage_args args = new addMessage_args();
330
      args.message = message;
325
      args.setMessage(message);
331
      args.write(oprot_);
-
 
332
      oprot_.writeMessageEnd();
326
      sendBase("addMessage", args);
333
      oprot_.getTransport().flush();
-
 
334
    }
327
    }
335
 
328
 
336
    public void recv_addMessage() throws HelperServiceException, TException
329
    public void recv_addMessage() throws HelperServiceException, org.apache.thrift.TException
337
    {
330
    {
338
      TMessage msg = iprot_.readMessageBegin();
-
 
339
      if (msg.type == TMessageType.EXCEPTION) {
-
 
340
        TApplicationException x = TApplicationException.read(iprot_);
-
 
341
        iprot_.readMessageEnd();
-
 
342
        throw x;
-
 
343
      }
-
 
344
      addMessage_result result = new addMessage_result();
331
      addMessage_result result = new addMessage_result();
345
      result.read(iprot_);
-
 
346
      iprot_.readMessageEnd();
332
      receiveBase(result, "addMessage");
347
      if (result.se != null) {
333
      if (result.se != null) {
348
        throw result.se;
334
        throw result.se;
349
      }
335
      }
350
      return;
336
      return;
351
    }
337
    }
352
 
338
 
353
    public void updateMessage(long id, String message) throws HelperServiceException, TException
339
    public void updateMessage(long id, String message) throws HelperServiceException, org.apache.thrift.TException
354
    {
340
    {
355
      send_updateMessage(id, message);
341
      send_updateMessage(id, message);
356
      recv_updateMessage();
342
      recv_updateMessage();
357
    }
343
    }
358
 
344
 
359
    public void send_updateMessage(long id, String message) throws TException
345
    public void send_updateMessage(long id, String message) throws org.apache.thrift.TException
360
    {
346
    {
361
      oprot_.writeMessageBegin(new TMessage("updateMessage", TMessageType.CALL, seqid_));
-
 
362
      updateMessage_args args = new updateMessage_args();
347
      updateMessage_args args = new updateMessage_args();
363
      args.id = id;
348
      args.setId(id);
364
      args.message = message;
349
      args.setMessage(message);
365
      args.write(oprot_);
-
 
366
      oprot_.writeMessageEnd();
350
      sendBase("updateMessage", args);
367
      oprot_.getTransport().flush();
-
 
368
    }
351
    }
369
 
352
 
370
    public void recv_updateMessage() throws HelperServiceException, TException
353
    public void recv_updateMessage() throws HelperServiceException, org.apache.thrift.TException
371
    {
354
    {
372
      TMessage msg = iprot_.readMessageBegin();
-
 
373
      if (msg.type == TMessageType.EXCEPTION) {
-
 
374
        TApplicationException x = TApplicationException.read(iprot_);
-
 
375
        iprot_.readMessageEnd();
-
 
376
        throw x;
-
 
377
      }
-
 
378
      updateMessage_result result = new updateMessage_result();
355
      updateMessage_result result = new updateMessage_result();
379
      result.read(iprot_);
-
 
380
      iprot_.readMessageEnd();
356
      receiveBase(result, "updateMessage");
381
      if (result.se != null) {
357
      if (result.se != null) {
382
        throw result.se;
358
        throw result.se;
383
      }
359
      }
384
      return;
360
      return;
385
    }
361
    }
386
 
362
 
387
    public Message getMessage(long id) throws HelperServiceException, TException
363
    public Message getMessage(long id) throws HelperServiceException, org.apache.thrift.TException
388
    {
364
    {
389
      send_getMessage(id);
365
      send_getMessage(id);
390
      return recv_getMessage();
366
      return recv_getMessage();
391
    }
367
    }
392
 
368
 
393
    public void send_getMessage(long id) throws TException
369
    public void send_getMessage(long id) throws org.apache.thrift.TException
394
    {
370
    {
395
      oprot_.writeMessageBegin(new TMessage("getMessage", TMessageType.CALL, seqid_));
-
 
396
      getMessage_args args = new getMessage_args();
371
      getMessage_args args = new getMessage_args();
397
      args.id = id;
372
      args.setId(id);
398
      args.write(oprot_);
-
 
399
      oprot_.writeMessageEnd();
373
      sendBase("getMessage", args);
400
      oprot_.getTransport().flush();
-
 
401
    }
374
    }
402
 
375
 
403
    public Message recv_getMessage() throws HelperServiceException, TException
376
    public Message recv_getMessage() throws HelperServiceException, org.apache.thrift.TException
404
    {
377
    {
405
      TMessage msg = iprot_.readMessageBegin();
-
 
406
      if (msg.type == TMessageType.EXCEPTION) {
-
 
407
        TApplicationException x = TApplicationException.read(iprot_);
-
 
408
        iprot_.readMessageEnd();
-
 
409
        throw x;
-
 
410
      }
-
 
411
      getMessage_result result = new getMessage_result();
378
      getMessage_result result = new getMessage_result();
412
      result.read(iprot_);
-
 
413
      iprot_.readMessageEnd();
379
      receiveBase(result, "getMessage");
414
      if (result.isSetSuccess()) {
380
      if (result.isSetSuccess()) {
415
        return result.success;
381
        return result.success;
416
      }
382
      }
417
      if (result.se != null) {
383
      if (result.se != null) {
418
        throw result.se;
384
        throw result.se;
419
      }
385
      }
420
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
386
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getMessage failed: unknown result");
421
    }
387
    }
422
 
388
 
423
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, TException
389
    public Message getSubstitutedMessage(long id, Map<String,String> params) throws HelperServiceException, org.apache.thrift.TException
424
    {
390
    {
425
      send_getSubstitutedMessage(id, params);
391
      send_getSubstitutedMessage(id, params);
426
      return recv_getSubstitutedMessage();
392
      return recv_getSubstitutedMessage();
427
    }
393
    }
428
 
394
 
429
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws TException
395
    public void send_getSubstitutedMessage(long id, Map<String,String> params) throws org.apache.thrift.TException
430
    {
396
    {
431
      oprot_.writeMessageBegin(new TMessage("getSubstitutedMessage", TMessageType.CALL, seqid_));
-
 
432
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
397
      getSubstitutedMessage_args args = new getSubstitutedMessage_args();
433
      args.id = id;
398
      args.setId(id);
434
      args.params = params;
399
      args.setParams(params);
435
      args.write(oprot_);
-
 
436
      oprot_.writeMessageEnd();
400
      sendBase("getSubstitutedMessage", args);
437
      oprot_.getTransport().flush();
-
 
438
    }
401
    }
439
 
402
 
440
    public Message recv_getSubstitutedMessage() throws HelperServiceException, TException
403
    public Message recv_getSubstitutedMessage() throws HelperServiceException, org.apache.thrift.TException
441
    {
404
    {
442
      TMessage msg = iprot_.readMessageBegin();
-
 
443
      if (msg.type == TMessageType.EXCEPTION) {
-
 
444
        TApplicationException x = TApplicationException.read(iprot_);
-
 
445
        iprot_.readMessageEnd();
-
 
446
        throw x;
-
 
447
      }
-
 
448
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
405
      getSubstitutedMessage_result result = new getSubstitutedMessage_result();
449
      result.read(iprot_);
-
 
450
      iprot_.readMessageEnd();
406
      receiveBase(result, "getSubstitutedMessage");
451
      if (result.isSetSuccess()) {
407
      if (result.isSetSuccess()) {
452
        return result.success;
408
        return result.success;
453
      }
409
      }
454
      if (result.se != null) {
410
      if (result.se != null) {
455
        throw result.se;
411
        throw result.se;
456
      }
412
      }
457
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
413
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSubstitutedMessage failed: unknown result");
458
    }
414
    }
459
 
415
 
460
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, TException
416
    public boolean addUser(String username, String password, long warehouseId) throws HelperServiceException, org.apache.thrift.TException
461
    {
417
    {
462
      send_addUser(username, password, warehouseId);
418
      send_addUser(username, password, warehouseId);
463
      return recv_addUser();
419
      return recv_addUser();
464
    }
420
    }
465
 
421
 
466
    public void send_addUser(String username, String password, long warehouseId) throws TException
422
    public void send_addUser(String username, String password, long warehouseId) throws org.apache.thrift.TException
467
    {
423
    {
468
      oprot_.writeMessageBegin(new TMessage("addUser", TMessageType.CALL, seqid_));
-
 
469
      addUser_args args = new addUser_args();
424
      addUser_args args = new addUser_args();
470
      args.username = username;
425
      args.setUsername(username);
471
      args.password = password;
426
      args.setPassword(password);
472
      args.warehouseId = warehouseId;
427
      args.setWarehouseId(warehouseId);
473
      args.write(oprot_);
-
 
474
      oprot_.writeMessageEnd();
428
      sendBase("addUser", args);
475
      oprot_.getTransport().flush();
-
 
476
    }
429
    }
477
 
430
 
478
    public boolean recv_addUser() throws HelperServiceException, TException
431
    public boolean recv_addUser() throws HelperServiceException, org.apache.thrift.TException
479
    {
432
    {
480
      TMessage msg = iprot_.readMessageBegin();
-
 
481
      if (msg.type == TMessageType.EXCEPTION) {
-
 
482
        TApplicationException x = TApplicationException.read(iprot_);
-
 
483
        iprot_.readMessageEnd();
-
 
484
        throw x;
-
 
485
      }
-
 
486
      addUser_result result = new addUser_result();
433
      addUser_result result = new addUser_result();
487
      result.read(iprot_);
434
      receiveBase(result, "addUser");
488
      iprot_.readMessageEnd();
-
 
489
      if (result.isSetSuccess()) {
435
      if (result.isSetSuccess()) {
490
        return result.success;
436
        return result.success;
491
      }
437
      }
492
      if (result.se != null) {
438
      if (result.se != null) {
493
        throw result.se;
439
        throw result.se;
494
      }
440
      }
495
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
441
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addUser failed: unknown result");
496
    }
442
    }
497
 
443
 
498
    public boolean deleteUser(String username) throws HelperServiceException, TException
444
    public boolean deleteUser(String username) throws HelperServiceException, org.apache.thrift.TException
499
    {
445
    {
500
      send_deleteUser(username);
446
      send_deleteUser(username);
501
      return recv_deleteUser();
447
      return recv_deleteUser();
502
    }
448
    }
503
 
449
 
504
    public void send_deleteUser(String username) throws TException
450
    public void send_deleteUser(String username) throws org.apache.thrift.TException
505
    {
451
    {
506
      oprot_.writeMessageBegin(new TMessage("deleteUser", TMessageType.CALL, seqid_));
-
 
507
      deleteUser_args args = new deleteUser_args();
452
      deleteUser_args args = new deleteUser_args();
508
      args.username = username;
453
      args.setUsername(username);
509
      args.write(oprot_);
-
 
510
      oprot_.writeMessageEnd();
454
      sendBase("deleteUser", args);
511
      oprot_.getTransport().flush();
-
 
512
    }
455
    }
513
 
456
 
514
    public boolean recv_deleteUser() throws HelperServiceException, TException
457
    public boolean recv_deleteUser() throws HelperServiceException, org.apache.thrift.TException
515
    {
458
    {
516
      TMessage msg = iprot_.readMessageBegin();
-
 
517
      if (msg.type == TMessageType.EXCEPTION) {
-
 
518
        TApplicationException x = TApplicationException.read(iprot_);
-
 
519
        iprot_.readMessageEnd();
-
 
520
        throw x;
-
 
521
      }
-
 
522
      deleteUser_result result = new deleteUser_result();
459
      deleteUser_result result = new deleteUser_result();
523
      result.read(iprot_);
460
      receiveBase(result, "deleteUser");
524
      iprot_.readMessageEnd();
-
 
525
      if (result.isSetSuccess()) {
461
      if (result.isSetSuccess()) {
526
        return result.success;
462
        return result.success;
527
      }
463
      }
528
      if (result.se != null) {
464
      if (result.se != null) {
529
        throw result.se;
465
        throw result.se;
530
      }
466
      }
531
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
467
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "deleteUser failed: unknown result");
532
    }
468
    }
533
 
469
 
534
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, TException
470
    public DashboardUser authenticateDashboardUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
535
    {
471
    {
536
      send_authenticateDashboardUser(username, password);
472
      send_authenticateDashboardUser(username, password);
537
      return recv_authenticateDashboardUser();
473
      return recv_authenticateDashboardUser();
538
    }
474
    }
539
 
475
 
540
    public void send_authenticateDashboardUser(String username, String password) throws TException
476
    public void send_authenticateDashboardUser(String username, String password) throws org.apache.thrift.TException
541
    {
477
    {
542
      oprot_.writeMessageBegin(new TMessage("authenticateDashboardUser", TMessageType.CALL, seqid_));
-
 
543
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
478
      authenticateDashboardUser_args args = new authenticateDashboardUser_args();
544
      args.username = username;
479
      args.setUsername(username);
545
      args.password = password;
480
      args.setPassword(password);
546
      args.write(oprot_);
-
 
547
      oprot_.writeMessageEnd();
-
 
548
      oprot_.getTransport().flush();
481
      sendBase("authenticateDashboardUser", args);
549
    }
482
    }
550
 
483
 
551
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, TException
484
    public DashboardUser recv_authenticateDashboardUser() throws HelperServiceException, org.apache.thrift.TException
552
    {
485
    {
553
      TMessage msg = iprot_.readMessageBegin();
-
 
554
      if (msg.type == TMessageType.EXCEPTION) {
-
 
555
        TApplicationException x = TApplicationException.read(iprot_);
-
 
556
        iprot_.readMessageEnd();
-
 
557
        throw x;
-
 
558
      }
-
 
559
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
486
      authenticateDashboardUser_result result = new authenticateDashboardUser_result();
560
      result.read(iprot_);
-
 
561
      iprot_.readMessageEnd();
487
      receiveBase(result, "authenticateDashboardUser");
562
      if (result.isSetSuccess()) {
488
      if (result.isSetSuccess()) {
563
        return result.success;
489
        return result.success;
564
      }
490
      }
565
      if (result.se != null) {
491
      if (result.se != null) {
566
        throw result.se;
492
        throw result.se;
567
      }
493
      }
568
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
494
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateDashboardUser failed: unknown result");
569
    }
495
    }
570
 
496
 
571
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, TException
497
    public boolean updatePassword(String username, String oldPassword, String newPassword) throws HelperServiceException, org.apache.thrift.TException
572
    {
498
    {
573
      send_updatePassword(username, oldPassword, newPassword);
499
      send_updatePassword(username, oldPassword, newPassword);
574
      return recv_updatePassword();
500
      return recv_updatePassword();
575
    }
501
    }
576
 
502
 
577
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws TException
503
    public void send_updatePassword(String username, String oldPassword, String newPassword) throws org.apache.thrift.TException
578
    {
504
    {
579
      oprot_.writeMessageBegin(new TMessage("updatePassword", TMessageType.CALL, seqid_));
-
 
580
      updatePassword_args args = new updatePassword_args();
505
      updatePassword_args args = new updatePassword_args();
581
      args.username = username;
506
      args.setUsername(username);
582
      args.oldPassword = oldPassword;
507
      args.setOldPassword(oldPassword);
583
      args.newPassword = newPassword;
508
      args.setNewPassword(newPassword);
584
      args.write(oprot_);
-
 
585
      oprot_.writeMessageEnd();
-
 
586
      oprot_.getTransport().flush();
509
      sendBase("updatePassword", args);
587
    }
510
    }
588
 
511
 
589
    public boolean recv_updatePassword() throws HelperServiceException, TException
512
    public boolean recv_updatePassword() throws HelperServiceException, org.apache.thrift.TException
590
    {
513
    {
591
      TMessage msg = iprot_.readMessageBegin();
-
 
592
      if (msg.type == TMessageType.EXCEPTION) {
-
 
593
        TApplicationException x = TApplicationException.read(iprot_);
-
 
594
        iprot_.readMessageEnd();
-
 
595
        throw x;
-
 
596
      }
-
 
597
      updatePassword_result result = new updatePassword_result();
514
      updatePassword_result result = new updatePassword_result();
598
      result.read(iprot_);
515
      receiveBase(result, "updatePassword");
599
      iprot_.readMessageEnd();
-
 
600
      if (result.isSetSuccess()) {
516
      if (result.isSetSuccess()) {
601
        return result.success;
517
        return result.success;
602
      }
518
      }
603
      if (result.se != null) {
519
      if (result.se != null) {
604
        throw result.se;
520
        throw result.se;
605
      }
521
      }
606
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
522
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "updatePassword failed: unknown result");
607
    }
523
    }
608
 
524
 
609
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, TException
525
    public LogisticsUser authenticateLogisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
610
    {
526
    {
611
      send_authenticateLogisticsUser(username, password);
527
      send_authenticateLogisticsUser(username, password);
612
      return recv_authenticateLogisticsUser();
528
      return recv_authenticateLogisticsUser();
613
    }
529
    }
614
 
530
 
615
    public void send_authenticateLogisticsUser(String username, String password) throws TException
531
    public void send_authenticateLogisticsUser(String username, String password) throws org.apache.thrift.TException
616
    {
532
    {
617
      oprot_.writeMessageBegin(new TMessage("authenticateLogisticsUser", TMessageType.CALL, seqid_));
-
 
618
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
533
      authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
619
      args.username = username;
534
      args.setUsername(username);
620
      args.password = password;
535
      args.setPassword(password);
621
      args.write(oprot_);
-
 
622
      oprot_.writeMessageEnd();
-
 
623
      oprot_.getTransport().flush();
536
      sendBase("authenticateLogisticsUser", args);
624
    }
537
    }
625
 
538
 
626
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, TException
539
    public LogisticsUser recv_authenticateLogisticsUser() throws HelperServiceException, org.apache.thrift.TException
627
    {
540
    {
628
      TMessage msg = iprot_.readMessageBegin();
-
 
629
      if (msg.type == TMessageType.EXCEPTION) {
-
 
630
        TApplicationException x = TApplicationException.read(iprot_);
-
 
631
        iprot_.readMessageEnd();
-
 
632
        throw x;
-
 
633
      }
-
 
634
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
541
      authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
635
      result.read(iprot_);
542
      receiveBase(result, "authenticateLogisticsUser");
636
      iprot_.readMessageEnd();
-
 
637
      if (result.isSetSuccess()) {
543
      if (result.isSetSuccess()) {
638
        return result.success;
544
        return result.success;
639
      }
545
      }
640
      if (result.hse != null) {
546
      if (result.hse != null) {
641
        throw result.hse;
547
        throw result.hse;
642
      }
548
      }
643
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
549
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateLogisticsUser failed: unknown result");
644
    }
550
    }
645
 
551
 
646
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, TException
552
    public StatisticsUser authenticateStatisticsUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
647
    {
553
    {
648
      send_authenticateStatisticsUser(username, password);
554
      send_authenticateStatisticsUser(username, password);
649
      return recv_authenticateStatisticsUser();
555
      return recv_authenticateStatisticsUser();
650
    }
556
    }
651
 
557
 
652
    public void send_authenticateStatisticsUser(String username, String password) throws TException
558
    public void send_authenticateStatisticsUser(String username, String password) throws org.apache.thrift.TException
653
    {
559
    {
654
      oprot_.writeMessageBegin(new TMessage("authenticateStatisticsUser", TMessageType.CALL, seqid_));
-
 
655
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
560
      authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
656
      args.username = username;
561
      args.setUsername(username);
657
      args.password = password;
562
      args.setPassword(password);
658
      args.write(oprot_);
-
 
659
      oprot_.writeMessageEnd();
-
 
660
      oprot_.getTransport().flush();
563
      sendBase("authenticateStatisticsUser", args);
661
    }
564
    }
662
 
565
 
663
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, TException
566
    public StatisticsUser recv_authenticateStatisticsUser() throws HelperServiceException, org.apache.thrift.TException
664
    {
567
    {
665
      TMessage msg = iprot_.readMessageBegin();
-
 
666
      if (msg.type == TMessageType.EXCEPTION) {
-
 
667
        TApplicationException x = TApplicationException.read(iprot_);
-
 
668
        iprot_.readMessageEnd();
-
 
669
        throw x;
-
 
670
      }
-
 
671
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
568
      authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
672
      result.read(iprot_);
569
      receiveBase(result, "authenticateStatisticsUser");
673
      iprot_.readMessageEnd();
-
 
674
      if (result.isSetSuccess()) {
570
      if (result.isSetSuccess()) {
675
        return result.success;
571
        return result.success;
676
      }
572
      }
677
      if (result.hse != null) {
573
      if (result.hse != null) {
678
        throw result.hse;
574
        throw result.hse;
679
      }
575
      }
680
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
576
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateStatisticsUser failed: unknown result");
681
    }
577
    }
682
 
578
 
683
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, TException
579
    public ReportUser authenticateReportUser(String username, String password) throws HelperServiceException, org.apache.thrift.TException
684
    {
580
    {
685
      send_authenticateReportUser(username, password);
581
      send_authenticateReportUser(username, password);
686
      return recv_authenticateReportUser();
582
      return recv_authenticateReportUser();
687
    }
583
    }
688
 
584
 
689
    public void send_authenticateReportUser(String username, String password) throws TException
585
    public void send_authenticateReportUser(String username, String password) throws org.apache.thrift.TException
690
    {
586
    {
691
      oprot_.writeMessageBegin(new TMessage("authenticateReportUser", TMessageType.CALL, seqid_));
-
 
692
      authenticateReportUser_args args = new authenticateReportUser_args();
587
      authenticateReportUser_args args = new authenticateReportUser_args();
693
      args.username = username;
588
      args.setUsername(username);
694
      args.password = password;
589
      args.setPassword(password);
695
      args.write(oprot_);
-
 
696
      oprot_.writeMessageEnd();
-
 
697
      oprot_.getTransport().flush();
590
      sendBase("authenticateReportUser", args);
698
    }
591
    }
699
 
592
 
700
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, TException
593
    public ReportUser recv_authenticateReportUser() throws HelperServiceException, org.apache.thrift.TException
701
    {
594
    {
702
      TMessage msg = iprot_.readMessageBegin();
-
 
703
      if (msg.type == TMessageType.EXCEPTION) {
-
 
704
        TApplicationException x = TApplicationException.read(iprot_);
-
 
705
        iprot_.readMessageEnd();
-
 
706
        throw x;
-
 
707
      }
-
 
708
      authenticateReportUser_result result = new authenticateReportUser_result();
595
      authenticateReportUser_result result = new authenticateReportUser_result();
709
      result.read(iprot_);
596
      receiveBase(result, "authenticateReportUser");
710
      iprot_.readMessageEnd();
-
 
711
      if (result.isSetSuccess()) {
597
      if (result.isSetSuccess()) {
712
        return result.success;
598
        return result.success;
713
      }
599
      }
714
      if (result.hse != null) {
600
      if (result.hse != null) {
715
        throw result.hse;
601
        throw result.hse;
716
      }
602
      }
717
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
603
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateReportUser failed: unknown result");
718
    }
604
    }
719
 
605
 
720
    public List<Report> getReports(long role) throws TException
606
    public List<Report> getReports(long role) throws org.apache.thrift.TException
721
    {
607
    {
722
      send_getReports(role);
608
      send_getReports(role);
723
      return recv_getReports();
609
      return recv_getReports();
724
    }
610
    }
725
 
611
 
726
    public void send_getReports(long role) throws TException
612
    public void send_getReports(long role) throws org.apache.thrift.TException
727
    {
613
    {
728
      oprot_.writeMessageBegin(new TMessage("getReports", TMessageType.CALL, seqid_));
-
 
729
      getReports_args args = new getReports_args();
614
      getReports_args args = new getReports_args();
730
      args.role = role;
615
      args.setRole(role);
731
      args.write(oprot_);
-
 
732
      oprot_.writeMessageEnd();
-
 
733
      oprot_.getTransport().flush();
616
      sendBase("getReports", args);
734
    }
617
    }
735
 
618
 
736
    public List<Report> recv_getReports() throws TException
619
    public List<Report> recv_getReports() throws org.apache.thrift.TException
737
    {
620
    {
738
      TMessage msg = iprot_.readMessageBegin();
-
 
739
      if (msg.type == TMessageType.EXCEPTION) {
-
 
740
        TApplicationException x = TApplicationException.read(iprot_);
-
 
741
        iprot_.readMessageEnd();
-
 
742
        throw x;
-
 
743
      }
-
 
744
      getReports_result result = new getReports_result();
621
      getReports_result result = new getReports_result();
745
      result.read(iprot_);
622
      receiveBase(result, "getReports");
746
      iprot_.readMessageEnd();
-
 
747
      if (result.isSetSuccess()) {
623
      if (result.isSetSuccess()) {
748
        return result.success;
624
        return result.success;
749
      }
625
      }
750
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
626
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getReports failed: unknown result");
751
    }
627
    }
752
 
628
 
753
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, TException
629
    public CatalogDashboardUser authenticateCatalogUser(String username, String password, long role) throws HelperServiceException, org.apache.thrift.TException
754
    {
630
    {
755
      send_authenticateCatalogUser(username, password, role);
631
      send_authenticateCatalogUser(username, password, role);
756
      return recv_authenticateCatalogUser();
632
      return recv_authenticateCatalogUser();
757
    }
633
    }
758
 
634
 
759
    public void send_authenticateCatalogUser(String username, String password, long role) throws TException
635
    public void send_authenticateCatalogUser(String username, String password, long role) throws org.apache.thrift.TException
760
    {
636
    {
761
      oprot_.writeMessageBegin(new TMessage("authenticateCatalogUser", TMessageType.CALL, seqid_));
-
 
762
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
637
      authenticateCatalogUser_args args = new authenticateCatalogUser_args();
763
      args.username = username;
638
      args.setUsername(username);
764
      args.password = password;
639
      args.setPassword(password);
765
      args.role = role;
640
      args.setRole(role);
766
      args.write(oprot_);
-
 
767
      oprot_.writeMessageEnd();
-
 
768
      oprot_.getTransport().flush();
641
      sendBase("authenticateCatalogUser", args);
769
    }
642
    }
770
 
643
 
771
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, TException
644
    public CatalogDashboardUser recv_authenticateCatalogUser() throws HelperServiceException, org.apache.thrift.TException
772
    {
645
    {
773
      TMessage msg = iprot_.readMessageBegin();
-
 
774
      if (msg.type == TMessageType.EXCEPTION) {
-
 
775
        TApplicationException x = TApplicationException.read(iprot_);
-
 
776
        iprot_.readMessageEnd();
-
 
777
        throw x;
-
 
778
      }
-
 
779
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
646
      authenticateCatalogUser_result result = new authenticateCatalogUser_result();
780
      result.read(iprot_);
647
      receiveBase(result, "authenticateCatalogUser");
781
      iprot_.readMessageEnd();
-
 
782
      if (result.isSetSuccess()) {
648
      if (result.isSetSuccess()) {
783
        return result.success;
649
        return result.success;
784
      }
650
      }
785
      if (result.hse != null) {
651
      if (result.hse != null) {
786
        throw result.hse;
652
        throw result.hse;
787
      }
653
      }
788
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
654
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "authenticateCatalogUser failed: unknown result");
789
    }
655
    }
790
 
656
 
791
  }
657
  }
792
  public static class Processor extends in.shop2020.generic.GenericService.Processor implements TProcessor {
658
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
793
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
659
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
794
    public Processor(Iface iface)
-
 
795
    {
-
 
796
      super(iface);
-
 
797
      iface_ = iface;
-
 
798
      processMap_.put("saveUserEmailForSending", new saveUserEmailForSending());
-
 
799
      processMap_.put("getEmailsToBeSent", new getEmailsToBeSent());
660
      private org.apache.thrift.async.TAsyncClientManager clientManager;
800
      processMap_.put("markEmailAsSent", new markEmailAsSent());
661
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
801
      processMap_.put("sendMail", new sendMail());
-
 
802
      processMap_.put("sendText", new sendText());
-
 
803
      processMap_.put("addMessage", new addMessage());
-
 
804
      processMap_.put("updateMessage", new updateMessage());
-
 
805
      processMap_.put("getMessage", new getMessage());
-
 
806
      processMap_.put("getSubstitutedMessage", new getSubstitutedMessage());
662
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
807
      processMap_.put("addUser", new addUser());
663
        this.clientManager = clientManager;
808
      processMap_.put("deleteUser", new deleteUser());
-
 
809
      processMap_.put("authenticateDashboardUser", new authenticateDashboardUser());
-
 
810
      processMap_.put("updatePassword", new updatePassword());
-
 
811
      processMap_.put("authenticateLogisticsUser", new authenticateLogisticsUser());
-
 
812
      processMap_.put("authenticateStatisticsUser", new authenticateStatisticsUser());
-
 
813
      processMap_.put("authenticateReportUser", new authenticateReportUser());
-
 
814
      processMap_.put("getReports", new getReports());
664
        this.protocolFactory = protocolFactory;
815
      processMap_.put("authenticateCatalogUser", new authenticateCatalogUser());
-
 
816
    }
665
      }
817
 
-
 
818
    private Iface iface_;
-
 
819
 
-
 
820
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
666
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
821
    {
-
 
822
      TMessage msg = iprot.readMessageBegin();
-
 
823
      ProcessFunction fn = processMap_.get(msg.name);
-
 
824
      if (fn == null) {
-
 
825
        TProtocolUtil.skip(iprot, TType.STRUCT);
-
 
826
        iprot.readMessageEnd();
-
 
827
        TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");
-
 
828
        oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));
667
        return new AsyncClient(protocolFactory, clientManager, transport);
829
        x.write(oprot);
-
 
830
        oprot.writeMessageEnd();
-
 
831
        oprot.getTransport().flush();
-
 
832
        return true;
-
 
833
      }
668
      }
834
      fn.process(msg.seqid, iprot, oprot);
-
 
835
      return true;
-
 
836
    }
669
    }
837
 
670
 
-
 
671
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
-
 
672
      super(protocolFactory, clientManager, transport);
-
 
673
    }
-
 
674
 
838
    private class saveUserEmailForSending implements ProcessFunction {
675
    public void saveUserEmailForSending(String emailTo, String emailFrom, String subject, String body, String source, String emailType, org.apache.thrift.async.AsyncMethodCallback<saveUserEmailForSending_call> resultHandler) throws org.apache.thrift.TException {
-
 
676
      checkReady();
-
 
677
      saveUserEmailForSending_call method_call = new saveUserEmailForSending_call(emailTo, emailFrom, subject, body, source, emailType, resultHandler, this, ___protocolFactory, ___transport);
-
 
678
      this.___currentMethod = method_call;
-
 
679
      ___manager.call(method_call);
-
 
680
    }
-
 
681
 
-
 
682
    public static class saveUserEmailForSending_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
683
      private String emailTo;
-
 
684
      private String emailFrom;
-
 
685
      private String subject;
-
 
686
      private String body;
-
 
687
      private String source;
-
 
688
      private String emailType;
839
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
689
      public saveUserEmailForSending_call(String emailTo, String emailFrom, String subject, String body, String source, String emailType, 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 {
-
 
690
        super(client, protocolFactory, transport, resultHandler, false);
-
 
691
        this.emailTo = emailTo;
-
 
692
        this.emailFrom = emailFrom;
-
 
693
        this.subject = subject;
-
 
694
        this.body = body;
-
 
695
        this.source = source;
-
 
696
        this.emailType = emailType;
840
      {
697
      }
-
 
698
 
-
 
699
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
700
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("saveUserEmailForSending", org.apache.thrift.protocol.TMessageType.CALL, 0));
841
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
701
        saveUserEmailForSending_args args = new saveUserEmailForSending_args();
-
 
702
        args.setEmailTo(emailTo);
-
 
703
        args.setEmailFrom(emailFrom);
-
 
704
        args.setSubject(subject);
-
 
705
        args.setBody(body);
-
 
706
        args.setSource(source);
-
 
707
        args.setEmailType(emailType);
-
 
708
        args.write(prot);
-
 
709
        prot.writeMessageEnd();
-
 
710
      }
-
 
711
 
-
 
712
      public long getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
713
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
714
          throw new IllegalStateException("Method call not finished!");
-
 
715
        }
-
 
716
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
717
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
718
        return (new Client(prot)).recv_saveUserEmailForSending();
-
 
719
      }
-
 
720
    }
-
 
721
 
-
 
722
    public void getEmailsToBeSent(org.apache.thrift.async.AsyncMethodCallback<getEmailsToBeSent_call> resultHandler) throws org.apache.thrift.TException {
-
 
723
      checkReady();
-
 
724
      getEmailsToBeSent_call method_call = new getEmailsToBeSent_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
725
      this.___currentMethod = method_call;
-
 
726
      ___manager.call(method_call);
-
 
727
    }
-
 
728
 
-
 
729
    public static class getEmailsToBeSent_call extends org.apache.thrift.async.TAsyncMethodCall {
842
        args.read(iprot);
730
      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 {
-
 
731
        super(client, protocolFactory, transport, resultHandler, false);
-
 
732
      }
-
 
733
 
-
 
734
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
735
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmailsToBeSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
736
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
-
 
737
        args.write(prot);
-
 
738
        prot.writeMessageEnd();
-
 
739
      }
-
 
740
 
-
 
741
      public List<UserEmail> getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
742
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
743
          throw new IllegalStateException("Method call not finished!");
-
 
744
        }
-
 
745
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
746
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
747
        return (new Client(prot)).recv_getEmailsToBeSent();
-
 
748
      }
-
 
749
    }
-
 
750
 
-
 
751
    public void markEmailAsSent(long emailId, org.apache.thrift.async.AsyncMethodCallback<markEmailAsSent_call> resultHandler) throws org.apache.thrift.TException {
-
 
752
      checkReady();
-
 
753
      markEmailAsSent_call method_call = new markEmailAsSent_call(emailId, resultHandler, this, ___protocolFactory, ___transport);
-
 
754
      this.___currentMethod = method_call;
-
 
755
      ___manager.call(method_call);
-
 
756
    }
-
 
757
 
-
 
758
    public static class markEmailAsSent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
759
      private long emailId;
843
        iprot.readMessageEnd();
760
      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 {
-
 
761
        super(client, protocolFactory, transport, resultHandler, false);
-
 
762
        this.emailId = emailId;
-
 
763
      }
-
 
764
 
-
 
765
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
766
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markEmailAsSent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
767
        markEmailAsSent_args args = new markEmailAsSent_args();
-
 
768
        args.setEmailId(emailId);
-
 
769
        args.write(prot);
-
 
770
        prot.writeMessageEnd();
-
 
771
      }
-
 
772
 
-
 
773
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
774
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
775
          throw new IllegalStateException("Method call not finished!");
-
 
776
        }
-
 
777
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
778
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
779
        (new Client(prot)).recv_markEmailAsSent();
-
 
780
      }
-
 
781
    }
-
 
782
 
-
 
783
    public void sendMail(Mail mail, org.apache.thrift.async.AsyncMethodCallback<sendMail_call> resultHandler) throws org.apache.thrift.TException {
-
 
784
      checkReady();
-
 
785
      sendMail_call method_call = new sendMail_call(mail, resultHandler, this, ___protocolFactory, ___transport);
-
 
786
      this.___currentMethod = method_call;
-
 
787
      ___manager.call(method_call);
-
 
788
    }
-
 
789
 
-
 
790
    public static class sendMail_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
791
      private Mail mail;
-
 
792
      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 {
-
 
793
        super(client, protocolFactory, transport, resultHandler, false);
-
 
794
        this.mail = mail;
-
 
795
      }
-
 
796
 
-
 
797
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
798
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendMail", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
799
        sendMail_args args = new sendMail_args();
-
 
800
        args.setMail(mail);
-
 
801
        args.write(prot);
-
 
802
        prot.writeMessageEnd();
-
 
803
      }
-
 
804
 
-
 
805
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
806
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
807
          throw new IllegalStateException("Method call not finished!");
-
 
808
        }
-
 
809
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
810
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
811
        (new Client(prot)).recv_sendMail();
-
 
812
      }
-
 
813
    }
-
 
814
 
-
 
815
    public void sendText(TextMessage message, org.apache.thrift.async.AsyncMethodCallback<sendText_call> resultHandler) throws org.apache.thrift.TException {
-
 
816
      checkReady();
-
 
817
      sendText_call method_call = new sendText_call(message, resultHandler, this, ___protocolFactory, ___transport);
-
 
818
      this.___currentMethod = method_call;
-
 
819
      ___manager.call(method_call);
-
 
820
    }
-
 
821
 
-
 
822
    public static class sendText_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
823
      private TextMessage message;
-
 
824
      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 {
-
 
825
        super(client, protocolFactory, transport, resultHandler, false);
-
 
826
        this.message = message;
-
 
827
      }
-
 
828
 
-
 
829
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
830
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sendText", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
831
        sendText_args args = new sendText_args();
-
 
832
        args.setMessage(message);
-
 
833
        args.write(prot);
-
 
834
        prot.writeMessageEnd();
-
 
835
      }
-
 
836
 
-
 
837
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
838
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
839
          throw new IllegalStateException("Method call not finished!");
-
 
840
        }
-
 
841
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
842
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
843
        (new Client(prot)).recv_sendText();
-
 
844
      }
-
 
845
    }
-
 
846
 
-
 
847
    public void addMessage(Message message, org.apache.thrift.async.AsyncMethodCallback<addMessage_call> resultHandler) throws org.apache.thrift.TException {
-
 
848
      checkReady();
-
 
849
      addMessage_call method_call = new addMessage_call(message, resultHandler, this, ___protocolFactory, ___transport);
-
 
850
      this.___currentMethod = method_call;
-
 
851
      ___manager.call(method_call);
-
 
852
    }
-
 
853
 
-
 
854
    public static class addMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
855
      private Message message;
-
 
856
      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 {
-
 
857
        super(client, protocolFactory, transport, resultHandler, false);
-
 
858
        this.message = message;
-
 
859
      }
-
 
860
 
-
 
861
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
862
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
863
        addMessage_args args = new addMessage_args();
-
 
864
        args.setMessage(message);
-
 
865
        args.write(prot);
-
 
866
        prot.writeMessageEnd();
-
 
867
      }
-
 
868
 
-
 
869
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
870
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
871
          throw new IllegalStateException("Method call not finished!");
-
 
872
        }
-
 
873
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
874
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
875
        (new Client(prot)).recv_addMessage();
-
 
876
      }
-
 
877
    }
-
 
878
 
-
 
879
    public void updateMessage(long id, String message, org.apache.thrift.async.AsyncMethodCallback<updateMessage_call> resultHandler) throws org.apache.thrift.TException {
-
 
880
      checkReady();
-
 
881
      updateMessage_call method_call = new updateMessage_call(id, message, resultHandler, this, ___protocolFactory, ___transport);
-
 
882
      this.___currentMethod = method_call;
-
 
883
      ___manager.call(method_call);
-
 
884
    }
-
 
885
 
-
 
886
    public static class updateMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
887
      private long id;
-
 
888
      private String message;
-
 
889
      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 {
-
 
890
        super(client, protocolFactory, transport, resultHandler, false);
-
 
891
        this.id = id;
-
 
892
        this.message = message;
-
 
893
      }
-
 
894
 
-
 
895
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
896
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
897
        updateMessage_args args = new updateMessage_args();
-
 
898
        args.setId(id);
-
 
899
        args.setMessage(message);
-
 
900
        args.write(prot);
-
 
901
        prot.writeMessageEnd();
-
 
902
      }
-
 
903
 
-
 
904
      public void getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
905
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
906
          throw new IllegalStateException("Method call not finished!");
-
 
907
        }
-
 
908
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
909
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
910
        (new Client(prot)).recv_updateMessage();
-
 
911
      }
-
 
912
    }
-
 
913
 
-
 
914
    public void getMessage(long id, org.apache.thrift.async.AsyncMethodCallback<getMessage_call> resultHandler) throws org.apache.thrift.TException {
-
 
915
      checkReady();
-
 
916
      getMessage_call method_call = new getMessage_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
917
      this.___currentMethod = method_call;
-
 
918
      ___manager.call(method_call);
-
 
919
    }
-
 
920
 
-
 
921
    public static class getMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
922
      private long id;
-
 
923
      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 {
-
 
924
        super(client, protocolFactory, transport, resultHandler, false);
-
 
925
        this.id = id;
-
 
926
      }
-
 
927
 
-
 
928
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
929
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
930
        getMessage_args args = new getMessage_args();
-
 
931
        args.setId(id);
-
 
932
        args.write(prot);
-
 
933
        prot.writeMessageEnd();
-
 
934
      }
-
 
935
 
-
 
936
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
937
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
938
          throw new IllegalStateException("Method call not finished!");
-
 
939
        }
-
 
940
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
941
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
942
        return (new Client(prot)).recv_getMessage();
-
 
943
      }
-
 
944
    }
-
 
945
 
-
 
946
    public void getSubstitutedMessage(long id, Map<String,String> params, org.apache.thrift.async.AsyncMethodCallback<getSubstitutedMessage_call> resultHandler) throws org.apache.thrift.TException {
-
 
947
      checkReady();
-
 
948
      getSubstitutedMessage_call method_call = new getSubstitutedMessage_call(id, params, resultHandler, this, ___protocolFactory, ___transport);
-
 
949
      this.___currentMethod = method_call;
-
 
950
      ___manager.call(method_call);
-
 
951
    }
-
 
952
 
-
 
953
    public static class getSubstitutedMessage_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
954
      private long id;
-
 
955
      private Map<String,String> params;
-
 
956
      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 {
-
 
957
        super(client, protocolFactory, transport, resultHandler, false);
-
 
958
        this.id = id;
-
 
959
        this.params = params;
-
 
960
      }
-
 
961
 
-
 
962
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
963
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getSubstitutedMessage", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
964
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
-
 
965
        args.setId(id);
-
 
966
        args.setParams(params);
-
 
967
        args.write(prot);
-
 
968
        prot.writeMessageEnd();
-
 
969
      }
-
 
970
 
-
 
971
      public Message getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
972
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
973
          throw new IllegalStateException("Method call not finished!");
-
 
974
        }
-
 
975
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
976
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
977
        return (new Client(prot)).recv_getSubstitutedMessage();
-
 
978
      }
-
 
979
    }
-
 
980
 
-
 
981
    public void addUser(String username, String password, long warehouseId, org.apache.thrift.async.AsyncMethodCallback<addUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
982
      checkReady();
-
 
983
      addUser_call method_call = new addUser_call(username, password, warehouseId, resultHandler, this, ___protocolFactory, ___transport);
-
 
984
      this.___currentMethod = method_call;
-
 
985
      ___manager.call(method_call);
-
 
986
    }
-
 
987
 
-
 
988
    public static class addUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
989
      private String username;
-
 
990
      private String password;
-
 
991
      private long warehouseId;
-
 
992
      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 {
-
 
993
        super(client, protocolFactory, transport, resultHandler, false);
-
 
994
        this.username = username;
-
 
995
        this.password = password;
-
 
996
        this.warehouseId = warehouseId;
-
 
997
      }
-
 
998
 
-
 
999
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1000
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1001
        addUser_args args = new addUser_args();
-
 
1002
        args.setUsername(username);
-
 
1003
        args.setPassword(password);
-
 
1004
        args.setWarehouseId(warehouseId);
-
 
1005
        args.write(prot);
-
 
1006
        prot.writeMessageEnd();
-
 
1007
      }
-
 
1008
 
-
 
1009
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1010
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1011
          throw new IllegalStateException("Method call not finished!");
-
 
1012
        }
-
 
1013
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1014
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1015
        return (new Client(prot)).recv_addUser();
-
 
1016
      }
-
 
1017
    }
-
 
1018
 
-
 
1019
    public void deleteUser(String username, org.apache.thrift.async.AsyncMethodCallback<deleteUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
1020
      checkReady();
-
 
1021
      deleteUser_call method_call = new deleteUser_call(username, resultHandler, this, ___protocolFactory, ___transport);
-
 
1022
      this.___currentMethod = method_call;
-
 
1023
      ___manager.call(method_call);
-
 
1024
    }
-
 
1025
 
-
 
1026
    public static class deleteUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1027
      private String username;
-
 
1028
      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 {
-
 
1029
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1030
        this.username = username;
-
 
1031
      }
-
 
1032
 
-
 
1033
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1034
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("deleteUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1035
        deleteUser_args args = new deleteUser_args();
-
 
1036
        args.setUsername(username);
-
 
1037
        args.write(prot);
-
 
1038
        prot.writeMessageEnd();
-
 
1039
      }
-
 
1040
 
-
 
1041
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1042
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1043
          throw new IllegalStateException("Method call not finished!");
-
 
1044
        }
-
 
1045
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1046
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1047
        return (new Client(prot)).recv_deleteUser();
-
 
1048
      }
-
 
1049
    }
-
 
1050
 
-
 
1051
    public void authenticateDashboardUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateDashboardUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
1052
      checkReady();
-
 
1053
      authenticateDashboardUser_call method_call = new authenticateDashboardUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
-
 
1054
      this.___currentMethod = method_call;
-
 
1055
      ___manager.call(method_call);
-
 
1056
    }
-
 
1057
 
-
 
1058
    public static class authenticateDashboardUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1059
      private String username;
-
 
1060
      private String password;
-
 
1061
      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 {
-
 
1062
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1063
        this.username = username;
-
 
1064
        this.password = password;
-
 
1065
      }
-
 
1066
 
-
 
1067
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1068
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateDashboardUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1069
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
-
 
1070
        args.setUsername(username);
-
 
1071
        args.setPassword(password);
-
 
1072
        args.write(prot);
-
 
1073
        prot.writeMessageEnd();
-
 
1074
      }
-
 
1075
 
-
 
1076
      public DashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1077
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1078
          throw new IllegalStateException("Method call not finished!");
-
 
1079
        }
-
 
1080
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1081
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1082
        return (new Client(prot)).recv_authenticateDashboardUser();
-
 
1083
      }
-
 
1084
    }
-
 
1085
 
-
 
1086
    public void updatePassword(String username, String oldPassword, String newPassword, org.apache.thrift.async.AsyncMethodCallback<updatePassword_call> resultHandler) throws org.apache.thrift.TException {
-
 
1087
      checkReady();
-
 
1088
      updatePassword_call method_call = new updatePassword_call(username, oldPassword, newPassword, resultHandler, this, ___protocolFactory, ___transport);
-
 
1089
      this.___currentMethod = method_call;
-
 
1090
      ___manager.call(method_call);
-
 
1091
    }
-
 
1092
 
-
 
1093
    public static class updatePassword_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1094
      private String username;
-
 
1095
      private String oldPassword;
-
 
1096
      private String newPassword;
-
 
1097
      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 {
-
 
1098
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1099
        this.username = username;
-
 
1100
        this.oldPassword = oldPassword;
-
 
1101
        this.newPassword = newPassword;
-
 
1102
      }
-
 
1103
 
-
 
1104
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1105
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePassword", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1106
        updatePassword_args args = new updatePassword_args();
-
 
1107
        args.setUsername(username);
-
 
1108
        args.setOldPassword(oldPassword);
-
 
1109
        args.setNewPassword(newPassword);
-
 
1110
        args.write(prot);
-
 
1111
        prot.writeMessageEnd();
-
 
1112
      }
-
 
1113
 
-
 
1114
      public boolean getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1115
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1116
          throw new IllegalStateException("Method call not finished!");
-
 
1117
        }
-
 
1118
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1119
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1120
        return (new Client(prot)).recv_updatePassword();
-
 
1121
      }
-
 
1122
    }
-
 
1123
 
-
 
1124
    public void authenticateLogisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateLogisticsUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
1125
      checkReady();
-
 
1126
      authenticateLogisticsUser_call method_call = new authenticateLogisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
-
 
1127
      this.___currentMethod = method_call;
-
 
1128
      ___manager.call(method_call);
-
 
1129
    }
-
 
1130
 
-
 
1131
    public static class authenticateLogisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1132
      private String username;
-
 
1133
      private String password;
-
 
1134
      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 {
-
 
1135
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1136
        this.username = username;
-
 
1137
        this.password = password;
-
 
1138
      }
-
 
1139
 
-
 
1140
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1141
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateLogisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1142
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
-
 
1143
        args.setUsername(username);
-
 
1144
        args.setPassword(password);
-
 
1145
        args.write(prot);
-
 
1146
        prot.writeMessageEnd();
-
 
1147
      }
-
 
1148
 
-
 
1149
      public LogisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1150
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1151
          throw new IllegalStateException("Method call not finished!");
-
 
1152
        }
-
 
1153
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1154
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1155
        return (new Client(prot)).recv_authenticateLogisticsUser();
-
 
1156
      }
-
 
1157
    }
-
 
1158
 
-
 
1159
    public void authenticateStatisticsUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateStatisticsUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
1160
      checkReady();
-
 
1161
      authenticateStatisticsUser_call method_call = new authenticateStatisticsUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
-
 
1162
      this.___currentMethod = method_call;
-
 
1163
      ___manager.call(method_call);
-
 
1164
    }
-
 
1165
 
-
 
1166
    public static class authenticateStatisticsUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1167
      private String username;
-
 
1168
      private String password;
-
 
1169
      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 {
-
 
1170
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1171
        this.username = username;
-
 
1172
        this.password = password;
-
 
1173
      }
-
 
1174
 
-
 
1175
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1176
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateStatisticsUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1177
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
-
 
1178
        args.setUsername(username);
-
 
1179
        args.setPassword(password);
-
 
1180
        args.write(prot);
-
 
1181
        prot.writeMessageEnd();
-
 
1182
      }
-
 
1183
 
-
 
1184
      public StatisticsUser getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1185
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1186
          throw new IllegalStateException("Method call not finished!");
-
 
1187
        }
-
 
1188
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1189
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1190
        return (new Client(prot)).recv_authenticateStatisticsUser();
-
 
1191
      }
-
 
1192
    }
-
 
1193
 
-
 
1194
    public void authenticateReportUser(String username, String password, org.apache.thrift.async.AsyncMethodCallback<authenticateReportUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
1195
      checkReady();
-
 
1196
      authenticateReportUser_call method_call = new authenticateReportUser_call(username, password, resultHandler, this, ___protocolFactory, ___transport);
-
 
1197
      this.___currentMethod = method_call;
-
 
1198
      ___manager.call(method_call);
-
 
1199
    }
-
 
1200
 
-
 
1201
    public static class authenticateReportUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1202
      private String username;
-
 
1203
      private String password;
-
 
1204
      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 {
-
 
1205
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1206
        this.username = username;
-
 
1207
        this.password = password;
-
 
1208
      }
-
 
1209
 
-
 
1210
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1211
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateReportUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1212
        authenticateReportUser_args args = new authenticateReportUser_args();
-
 
1213
        args.setUsername(username);
-
 
1214
        args.setPassword(password);
-
 
1215
        args.write(prot);
-
 
1216
        prot.writeMessageEnd();
-
 
1217
      }
-
 
1218
 
-
 
1219
      public ReportUser getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1220
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1221
          throw new IllegalStateException("Method call not finished!");
-
 
1222
        }
-
 
1223
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1224
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1225
        return (new Client(prot)).recv_authenticateReportUser();
-
 
1226
      }
-
 
1227
    }
-
 
1228
 
-
 
1229
    public void getReports(long role, org.apache.thrift.async.AsyncMethodCallback<getReports_call> resultHandler) throws org.apache.thrift.TException {
-
 
1230
      checkReady();
-
 
1231
      getReports_call method_call = new getReports_call(role, resultHandler, this, ___protocolFactory, ___transport);
-
 
1232
      this.___currentMethod = method_call;
-
 
1233
      ___manager.call(method_call);
-
 
1234
    }
-
 
1235
 
-
 
1236
    public static class getReports_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1237
      private long role;
-
 
1238
      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 {
-
 
1239
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1240
        this.role = role;
-
 
1241
      }
-
 
1242
 
-
 
1243
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1244
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getReports", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1245
        getReports_args args = new getReports_args();
-
 
1246
        args.setRole(role);
-
 
1247
        args.write(prot);
-
 
1248
        prot.writeMessageEnd();
-
 
1249
      }
-
 
1250
 
-
 
1251
      public List<Report> getResult() throws org.apache.thrift.TException {
-
 
1252
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1253
          throw new IllegalStateException("Method call not finished!");
-
 
1254
        }
-
 
1255
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1256
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1257
        return (new Client(prot)).recv_getReports();
-
 
1258
      }
-
 
1259
    }
-
 
1260
 
-
 
1261
    public void authenticateCatalogUser(String username, String password, long role, org.apache.thrift.async.AsyncMethodCallback<authenticateCatalogUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
1262
      checkReady();
-
 
1263
      authenticateCatalogUser_call method_call = new authenticateCatalogUser_call(username, password, role, resultHandler, this, ___protocolFactory, ___transport);
-
 
1264
      this.___currentMethod = method_call;
-
 
1265
      ___manager.call(method_call);
-
 
1266
    }
-
 
1267
 
-
 
1268
    public static class authenticateCatalogUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1269
      private String username;
-
 
1270
      private String password;
-
 
1271
      private long role;
-
 
1272
      public authenticateCatalogUser_call(String username, String password, long role, 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 {
-
 
1273
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1274
        this.username = username;
-
 
1275
        this.password = password;
-
 
1276
        this.role = role;
-
 
1277
      }
-
 
1278
 
-
 
1279
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1280
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("authenticateCatalogUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1281
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
-
 
1282
        args.setUsername(username);
-
 
1283
        args.setPassword(password);
-
 
1284
        args.setRole(role);
-
 
1285
        args.write(prot);
-
 
1286
        prot.writeMessageEnd();
-
 
1287
      }
-
 
1288
 
-
 
1289
      public CatalogDashboardUser getResult() throws HelperServiceException, org.apache.thrift.TException {
-
 
1290
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1291
          throw new IllegalStateException("Method call not finished!");
-
 
1292
        }
-
 
1293
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1294
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1295
        return (new Client(prot)).recv_authenticateCatalogUser();
-
 
1296
      }
-
 
1297
    }
-
 
1298
 
-
 
1299
  }
-
 
1300
 
-
 
1301
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
-
 
1302
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
-
 
1303
    public Processor(I iface) {
-
 
1304
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
-
 
1305
    }
-
 
1306
 
-
 
1307
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-
 
1308
      super(iface, getProcessMap(processMap));
-
 
1309
    }
-
 
1310
 
-
 
1311
    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) {
-
 
1312
      processMap.put("saveUserEmailForSending", new saveUserEmailForSending());
-
 
1313
      processMap.put("getEmailsToBeSent", new getEmailsToBeSent());
-
 
1314
      processMap.put("markEmailAsSent", new markEmailAsSent());
-
 
1315
      processMap.put("sendMail", new sendMail());
-
 
1316
      processMap.put("sendText", new sendText());
-
 
1317
      processMap.put("addMessage", new addMessage());
-
 
1318
      processMap.put("updateMessage", new updateMessage());
-
 
1319
      processMap.put("getMessage", new getMessage());
-
 
1320
      processMap.put("getSubstitutedMessage", new getSubstitutedMessage());
-
 
1321
      processMap.put("addUser", new addUser());
-
 
1322
      processMap.put("deleteUser", new deleteUser());
-
 
1323
      processMap.put("authenticateDashboardUser", new authenticateDashboardUser());
-
 
1324
      processMap.put("updatePassword", new updatePassword());
-
 
1325
      processMap.put("authenticateLogisticsUser", new authenticateLogisticsUser());
-
 
1326
      processMap.put("authenticateStatisticsUser", new authenticateStatisticsUser());
-
 
1327
      processMap.put("authenticateReportUser", new authenticateReportUser());
-
 
1328
      processMap.put("getReports", new getReports());
-
 
1329
      processMap.put("authenticateCatalogUser", new authenticateCatalogUser());
-
 
1330
      return processMap;
-
 
1331
    }
-
 
1332
 
-
 
1333
    private static class saveUserEmailForSending<I extends Iface> extends org.apache.thrift.ProcessFunction<I, saveUserEmailForSending_args> {
-
 
1334
      public saveUserEmailForSending() {
-
 
1335
        super("saveUserEmailForSending");
-
 
1336
      }
-
 
1337
 
-
 
1338
      protected saveUserEmailForSending_args getEmptyArgsInstance() {
-
 
1339
        return new saveUserEmailForSending_args();
-
 
1340
      }
-
 
1341
 
-
 
1342
      protected saveUserEmailForSending_result getResult(I iface, saveUserEmailForSending_args args) throws org.apache.thrift.TException {
844
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
1343
        saveUserEmailForSending_result result = new saveUserEmailForSending_result();
845
        try {
1344
        try {
846
          result.success = iface_.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
1345
          result.success = iface.saveUserEmailForSending(args.emailTo, args.emailFrom, args.subject, args.body, args.source, args.emailType);
847
          result.setSuccessIsSet(true);
1346
          result.setSuccessIsSet(true);
848
        } catch (HelperServiceException se) {
1347
        } catch (HelperServiceException se) {
849
          result.se = se;
1348
          result.se = se;
850
        } catch (Throwable th) {
-
 
851
          LOGGER.error("Internal error processing saveUserEmailForSending", th);
-
 
852
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing saveUserEmailForSending");
-
 
853
          oprot.writeMessageBegin(new TMessage("saveUserEmailForSending", TMessageType.EXCEPTION, seqid));
-
 
854
          x.write(oprot);
-
 
855
          oprot.writeMessageEnd();
-
 
856
          oprot.getTransport().flush();
-
 
857
          return;
-
 
858
        }
1349
        }
859
        oprot.writeMessageBegin(new TMessage("saveUserEmailForSending", TMessageType.REPLY, seqid));
-
 
860
        result.write(oprot);
1350
        return result;
861
        oprot.writeMessageEnd();
-
 
862
        oprot.getTransport().flush();
-
 
863
      }
1351
      }
864
 
-
 
865
    }
1352
    }
866
 
1353
 
867
    private class getEmailsToBeSent implements ProcessFunction {
1354
    private static class getEmailsToBeSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmailsToBeSent_args> {
868
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1355
      public getEmailsToBeSent() {
-
 
1356
        super("getEmailsToBeSent");
869
      {
1357
      }
-
 
1358
 
870
        getEmailsToBeSent_args args = new getEmailsToBeSent_args();
1359
      protected getEmailsToBeSent_args getEmptyArgsInstance() {
871
        args.read(iprot);
1360
        return new getEmailsToBeSent_args();
872
        iprot.readMessageEnd();
1361
      }
-
 
1362
 
-
 
1363
      protected getEmailsToBeSent_result getResult(I iface, getEmailsToBeSent_args args) throws org.apache.thrift.TException {
873
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
1364
        getEmailsToBeSent_result result = new getEmailsToBeSent_result();
874
        try {
1365
        try {
875
          result.success = iface_.getEmailsToBeSent();
1366
          result.success = iface.getEmailsToBeSent();
876
        } catch (HelperServiceException se) {
1367
        } catch (HelperServiceException se) {
877
          result.se = se;
1368
          result.se = se;
878
        } catch (Throwable th) {
-
 
879
          LOGGER.error("Internal error processing getEmailsToBeSent", th);
-
 
880
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getEmailsToBeSent");
-
 
881
          oprot.writeMessageBegin(new TMessage("getEmailsToBeSent", TMessageType.EXCEPTION, seqid));
-
 
882
          x.write(oprot);
-
 
883
          oprot.writeMessageEnd();
-
 
884
          oprot.getTransport().flush();
-
 
885
          return;
-
 
886
        }
1369
        }
887
        oprot.writeMessageBegin(new TMessage("getEmailsToBeSent", TMessageType.REPLY, seqid));
-
 
888
        result.write(oprot);
1370
        return result;
889
        oprot.writeMessageEnd();
-
 
890
        oprot.getTransport().flush();
-
 
891
      }
1371
      }
892
 
-
 
893
    }
1372
    }
894
 
1373
 
895
    private class markEmailAsSent implements ProcessFunction {
1374
    private static class markEmailAsSent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markEmailAsSent_args> {
896
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1375
      public markEmailAsSent() {
-
 
1376
        super("markEmailAsSent");
897
      {
1377
      }
-
 
1378
 
898
        markEmailAsSent_args args = new markEmailAsSent_args();
1379
      protected markEmailAsSent_args getEmptyArgsInstance() {
899
        args.read(iprot);
1380
        return new markEmailAsSent_args();
900
        iprot.readMessageEnd();
1381
      }
-
 
1382
 
-
 
1383
      protected markEmailAsSent_result getResult(I iface, markEmailAsSent_args args) throws org.apache.thrift.TException {
901
        markEmailAsSent_result result = new markEmailAsSent_result();
1384
        markEmailAsSent_result result = new markEmailAsSent_result();
902
        try {
1385
        try {
903
          iface_.markEmailAsSent(args.emailId);
1386
          iface.markEmailAsSent(args.emailId);
904
        } catch (HelperServiceException se) {
1387
        } catch (HelperServiceException se) {
905
          result.se = se;
1388
          result.se = se;
906
        } catch (Throwable th) {
-
 
907
          LOGGER.error("Internal error processing markEmailAsSent", th);
-
 
908
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing markEmailAsSent");
-
 
909
          oprot.writeMessageBegin(new TMessage("markEmailAsSent", TMessageType.EXCEPTION, seqid));
-
 
910
          x.write(oprot);
-
 
911
          oprot.writeMessageEnd();
-
 
912
          oprot.getTransport().flush();
-
 
913
          return;
-
 
914
        }
1389
        }
915
        oprot.writeMessageBegin(new TMessage("markEmailAsSent", TMessageType.REPLY, seqid));
-
 
916
        result.write(oprot);
1390
        return result;
917
        oprot.writeMessageEnd();
-
 
918
        oprot.getTransport().flush();
-
 
919
      }
1391
      }
920
 
-
 
921
    }
1392
    }
922
 
1393
 
923
    private class sendMail implements ProcessFunction {
1394
    private static class sendMail<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendMail_args> {
924
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1395
      public sendMail() {
-
 
1396
        super("sendMail");
925
      {
1397
      }
-
 
1398
 
926
        sendMail_args args = new sendMail_args();
1399
      protected sendMail_args getEmptyArgsInstance() {
927
        args.read(iprot);
1400
        return new sendMail_args();
928
        iprot.readMessageEnd();
1401
      }
-
 
1402
 
-
 
1403
      protected sendMail_result getResult(I iface, sendMail_args args) throws org.apache.thrift.TException {
929
        sendMail_result result = new sendMail_result();
1404
        sendMail_result result = new sendMail_result();
930
        try {
1405
        try {
931
          iface_.sendMail(args.mail);
1406
          iface.sendMail(args.mail);
932
        } catch (HelperServiceException se) {
1407
        } catch (HelperServiceException se) {
933
          result.se = se;
1408
          result.se = se;
934
        } catch (Throwable th) {
-
 
935
          LOGGER.error("Internal error processing sendMail", th);
-
 
936
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing sendMail");
-
 
937
          oprot.writeMessageBegin(new TMessage("sendMail", TMessageType.EXCEPTION, seqid));
-
 
938
          x.write(oprot);
-
 
939
          oprot.writeMessageEnd();
-
 
940
          oprot.getTransport().flush();
-
 
941
          return;
-
 
942
        }
1409
        }
943
        oprot.writeMessageBegin(new TMessage("sendMail", TMessageType.REPLY, seqid));
-
 
944
        result.write(oprot);
1410
        return result;
945
        oprot.writeMessageEnd();
-
 
946
        oprot.getTransport().flush();
-
 
947
      }
1411
      }
948
 
-
 
949
    }
1412
    }
950
 
1413
 
951
    private class sendText implements ProcessFunction {
1414
    private static class sendText<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sendText_args> {
952
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1415
      public sendText() {
-
 
1416
        super("sendText");
953
      {
1417
      }
-
 
1418
 
954
        sendText_args args = new sendText_args();
1419
      protected sendText_args getEmptyArgsInstance() {
955
        args.read(iprot);
1420
        return new sendText_args();
956
        iprot.readMessageEnd();
1421
      }
-
 
1422
 
-
 
1423
      protected sendText_result getResult(I iface, sendText_args args) throws org.apache.thrift.TException {
957
        sendText_result result = new sendText_result();
1424
        sendText_result result = new sendText_result();
958
        try {
1425
        try {
959
          iface_.sendText(args.message);
1426
          iface.sendText(args.message);
960
        } catch (HelperServiceException se) {
1427
        } catch (HelperServiceException se) {
961
          result.se = se;
1428
          result.se = se;
962
        } catch (Throwable th) {
-
 
963
          LOGGER.error("Internal error processing sendText", th);
-
 
964
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing sendText");
-
 
965
          oprot.writeMessageBegin(new TMessage("sendText", TMessageType.EXCEPTION, seqid));
-
 
966
          x.write(oprot);
-
 
967
          oprot.writeMessageEnd();
-
 
968
          oprot.getTransport().flush();
-
 
969
          return;
-
 
970
        }
1429
        }
971
        oprot.writeMessageBegin(new TMessage("sendText", TMessageType.REPLY, seqid));
-
 
972
        result.write(oprot);
1430
        return result;
973
        oprot.writeMessageEnd();
-
 
974
        oprot.getTransport().flush();
-
 
975
      }
1431
      }
976
 
-
 
977
    }
1432
    }
978
 
1433
 
979
    private class addMessage implements ProcessFunction {
1434
    private static class addMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addMessage_args> {
980
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1435
      public addMessage() {
-
 
1436
        super("addMessage");
981
      {
1437
      }
-
 
1438
 
982
        addMessage_args args = new addMessage_args();
1439
      protected addMessage_args getEmptyArgsInstance() {
983
        args.read(iprot);
1440
        return new addMessage_args();
984
        iprot.readMessageEnd();
1441
      }
-
 
1442
 
-
 
1443
      protected addMessage_result getResult(I iface, addMessage_args args) throws org.apache.thrift.TException {
985
        addMessage_result result = new addMessage_result();
1444
        addMessage_result result = new addMessage_result();
986
        try {
1445
        try {
987
          iface_.addMessage(args.message);
1446
          iface.addMessage(args.message);
988
        } catch (HelperServiceException se) {
1447
        } catch (HelperServiceException se) {
989
          result.se = se;
1448
          result.se = se;
990
        } catch (Throwable th) {
-
 
991
          LOGGER.error("Internal error processing addMessage", th);
-
 
992
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addMessage");
-
 
993
          oprot.writeMessageBegin(new TMessage("addMessage", TMessageType.EXCEPTION, seqid));
-
 
994
          x.write(oprot);
-
 
995
          oprot.writeMessageEnd();
-
 
996
          oprot.getTransport().flush();
-
 
997
          return;
-
 
998
        }
1449
        }
999
        oprot.writeMessageBegin(new TMessage("addMessage", TMessageType.REPLY, seqid));
-
 
1000
        result.write(oprot);
1450
        return result;
1001
        oprot.writeMessageEnd();
-
 
1002
        oprot.getTransport().flush();
-
 
1003
      }
1451
      }
1004
 
-
 
1005
    }
1452
    }
1006
 
1453
 
1007
    private class updateMessage implements ProcessFunction {
1454
    private static class updateMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateMessage_args> {
1008
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1455
      public updateMessage() {
-
 
1456
        super("updateMessage");
1009
      {
1457
      }
-
 
1458
 
1010
        updateMessage_args args = new updateMessage_args();
1459
      protected updateMessage_args getEmptyArgsInstance() {
1011
        args.read(iprot);
1460
        return new updateMessage_args();
1012
        iprot.readMessageEnd();
1461
      }
-
 
1462
 
-
 
1463
      protected updateMessage_result getResult(I iface, updateMessage_args args) throws org.apache.thrift.TException {
1013
        updateMessage_result result = new updateMessage_result();
1464
        updateMessage_result result = new updateMessage_result();
1014
        try {
1465
        try {
1015
          iface_.updateMessage(args.id, args.message);
1466
          iface.updateMessage(args.id, args.message);
1016
        } catch (HelperServiceException se) {
1467
        } catch (HelperServiceException se) {
1017
          result.se = se;
1468
          result.se = se;
1018
        } catch (Throwable th) {
-
 
1019
          LOGGER.error("Internal error processing updateMessage", th);
-
 
1020
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updateMessage");
-
 
1021
          oprot.writeMessageBegin(new TMessage("updateMessage", TMessageType.EXCEPTION, seqid));
-
 
1022
          x.write(oprot);
-
 
1023
          oprot.writeMessageEnd();
-
 
1024
          oprot.getTransport().flush();
-
 
1025
          return;
-
 
1026
        }
1469
        }
1027
        oprot.writeMessageBegin(new TMessage("updateMessage", TMessageType.REPLY, seqid));
-
 
1028
        result.write(oprot);
1470
        return result;
1029
        oprot.writeMessageEnd();
-
 
1030
        oprot.getTransport().flush();
-
 
1031
      }
1471
      }
1032
 
-
 
1033
    }
1472
    }
1034
 
1473
 
1035
    private class getMessage implements ProcessFunction {
1474
    private static class getMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getMessage_args> {
1036
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1475
      public getMessage() {
-
 
1476
        super("getMessage");
1037
      {
1477
      }
-
 
1478
 
1038
        getMessage_args args = new getMessage_args();
1479
      protected getMessage_args getEmptyArgsInstance() {
1039
        args.read(iprot);
1480
        return new getMessage_args();
1040
        iprot.readMessageEnd();
1481
      }
-
 
1482
 
-
 
1483
      protected getMessage_result getResult(I iface, getMessage_args args) throws org.apache.thrift.TException {
1041
        getMessage_result result = new getMessage_result();
1484
        getMessage_result result = new getMessage_result();
1042
        try {
1485
        try {
1043
          result.success = iface_.getMessage(args.id);
1486
          result.success = iface.getMessage(args.id);
1044
        } catch (HelperServiceException se) {
1487
        } catch (HelperServiceException se) {
1045
          result.se = se;
1488
          result.se = se;
1046
        } catch (Throwable th) {
-
 
1047
          LOGGER.error("Internal error processing getMessage", th);
-
 
1048
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getMessage");
-
 
1049
          oprot.writeMessageBegin(new TMessage("getMessage", TMessageType.EXCEPTION, seqid));
-
 
1050
          x.write(oprot);
-
 
1051
          oprot.writeMessageEnd();
-
 
1052
          oprot.getTransport().flush();
-
 
1053
          return;
-
 
1054
        }
1489
        }
1055
        oprot.writeMessageBegin(new TMessage("getMessage", TMessageType.REPLY, seqid));
-
 
1056
        result.write(oprot);
1490
        return result;
1057
        oprot.writeMessageEnd();
-
 
1058
        oprot.getTransport().flush();
-
 
1059
      }
1491
      }
1060
 
-
 
1061
    }
1492
    }
1062
 
1493
 
1063
    private class getSubstitutedMessage implements ProcessFunction {
1494
    private static class getSubstitutedMessage<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getSubstitutedMessage_args> {
1064
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1495
      public getSubstitutedMessage() {
-
 
1496
        super("getSubstitutedMessage");
1065
      {
1497
      }
-
 
1498
 
1066
        getSubstitutedMessage_args args = new getSubstitutedMessage_args();
1499
      protected getSubstitutedMessage_args getEmptyArgsInstance() {
1067
        args.read(iprot);
1500
        return new getSubstitutedMessage_args();
1068
        iprot.readMessageEnd();
1501
      }
-
 
1502
 
-
 
1503
      protected getSubstitutedMessage_result getResult(I iface, getSubstitutedMessage_args args) throws org.apache.thrift.TException {
1069
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
1504
        getSubstitutedMessage_result result = new getSubstitutedMessage_result();
1070
        try {
1505
        try {
1071
          result.success = iface_.getSubstitutedMessage(args.id, args.params);
1506
          result.success = iface.getSubstitutedMessage(args.id, args.params);
1072
        } catch (HelperServiceException se) {
1507
        } catch (HelperServiceException se) {
1073
          result.se = se;
1508
          result.se = se;
1074
        } catch (Throwable th) {
-
 
1075
          LOGGER.error("Internal error processing getSubstitutedMessage", th);
-
 
1076
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getSubstitutedMessage");
-
 
1077
          oprot.writeMessageBegin(new TMessage("getSubstitutedMessage", TMessageType.EXCEPTION, seqid));
-
 
1078
          x.write(oprot);
-
 
1079
          oprot.writeMessageEnd();
-
 
1080
          oprot.getTransport().flush();
-
 
1081
          return;
-
 
1082
        }
1509
        }
1083
        oprot.writeMessageBegin(new TMessage("getSubstitutedMessage", TMessageType.REPLY, seqid));
-
 
1084
        result.write(oprot);
1510
        return result;
1085
        oprot.writeMessageEnd();
-
 
1086
        oprot.getTransport().flush();
-
 
1087
      }
1511
      }
1088
 
-
 
1089
    }
1512
    }
1090
 
1513
 
1091
    private class addUser implements ProcessFunction {
1514
    private static class addUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addUser_args> {
1092
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1515
      public addUser() {
-
 
1516
        super("addUser");
1093
      {
1517
      }
-
 
1518
 
1094
        addUser_args args = new addUser_args();
1519
      protected addUser_args getEmptyArgsInstance() {
1095
        args.read(iprot);
1520
        return new addUser_args();
1096
        iprot.readMessageEnd();
1521
      }
-
 
1522
 
-
 
1523
      protected addUser_result getResult(I iface, addUser_args args) throws org.apache.thrift.TException {
1097
        addUser_result result = new addUser_result();
1524
        addUser_result result = new addUser_result();
1098
        try {
1525
        try {
1099
          result.success = iface_.addUser(args.username, args.password, args.warehouseId);
1526
          result.success = iface.addUser(args.username, args.password, args.warehouseId);
1100
          result.setSuccessIsSet(true);
1527
          result.setSuccessIsSet(true);
1101
        } catch (HelperServiceException se) {
1528
        } catch (HelperServiceException se) {
1102
          result.se = se;
1529
          result.se = se;
1103
        } catch (Throwable th) {
-
 
1104
          LOGGER.error("Internal error processing addUser", th);
-
 
1105
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing addUser");
-
 
1106
          oprot.writeMessageBegin(new TMessage("addUser", TMessageType.EXCEPTION, seqid));
-
 
1107
          x.write(oprot);
-
 
1108
          oprot.writeMessageEnd();
-
 
1109
          oprot.getTransport().flush();
-
 
1110
          return;
-
 
1111
        }
1530
        }
1112
        oprot.writeMessageBegin(new TMessage("addUser", TMessageType.REPLY, seqid));
-
 
1113
        result.write(oprot);
1531
        return result;
1114
        oprot.writeMessageEnd();
-
 
1115
        oprot.getTransport().flush();
-
 
1116
      }
1532
      }
1117
 
-
 
1118
    }
1533
    }
1119
 
1534
 
1120
    private class deleteUser implements ProcessFunction {
1535
    private static class deleteUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, deleteUser_args> {
1121
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1536
      public deleteUser() {
-
 
1537
        super("deleteUser");
1122
      {
1538
      }
-
 
1539
 
1123
        deleteUser_args args = new deleteUser_args();
1540
      protected deleteUser_args getEmptyArgsInstance() {
1124
        args.read(iprot);
1541
        return new deleteUser_args();
1125
        iprot.readMessageEnd();
1542
      }
-
 
1543
 
-
 
1544
      protected deleteUser_result getResult(I iface, deleteUser_args args) throws org.apache.thrift.TException {
1126
        deleteUser_result result = new deleteUser_result();
1545
        deleteUser_result result = new deleteUser_result();
1127
        try {
1546
        try {
1128
          result.success = iface_.deleteUser(args.username);
1547
          result.success = iface.deleteUser(args.username);
1129
          result.setSuccessIsSet(true);
1548
          result.setSuccessIsSet(true);
1130
        } catch (HelperServiceException se) {
1549
        } catch (HelperServiceException se) {
1131
          result.se = se;
1550
          result.se = se;
1132
        } catch (Throwable th) {
-
 
1133
          LOGGER.error("Internal error processing deleteUser", th);
-
 
1134
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing deleteUser");
-
 
1135
          oprot.writeMessageBegin(new TMessage("deleteUser", TMessageType.EXCEPTION, seqid));
-
 
1136
          x.write(oprot);
-
 
1137
          oprot.writeMessageEnd();
-
 
1138
          oprot.getTransport().flush();
-
 
1139
          return;
-
 
1140
        }
1551
        }
1141
        oprot.writeMessageBegin(new TMessage("deleteUser", TMessageType.REPLY, seqid));
-
 
1142
        result.write(oprot);
1552
        return result;
1143
        oprot.writeMessageEnd();
-
 
1144
        oprot.getTransport().flush();
-
 
1145
      }
1553
      }
1146
 
-
 
1147
    }
1554
    }
1148
 
1555
 
1149
    private class authenticateDashboardUser implements ProcessFunction {
1556
    private static class authenticateDashboardUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateDashboardUser_args> {
1150
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1557
      public authenticateDashboardUser() {
-
 
1558
        super("authenticateDashboardUser");
1151
      {
1559
      }
-
 
1560
 
1152
        authenticateDashboardUser_args args = new authenticateDashboardUser_args();
1561
      protected authenticateDashboardUser_args getEmptyArgsInstance() {
1153
        args.read(iprot);
1562
        return new authenticateDashboardUser_args();
1154
        iprot.readMessageEnd();
1563
      }
-
 
1564
 
-
 
1565
      protected authenticateDashboardUser_result getResult(I iface, authenticateDashboardUser_args args) throws org.apache.thrift.TException {
1155
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
1566
        authenticateDashboardUser_result result = new authenticateDashboardUser_result();
1156
        try {
1567
        try {
1157
          result.success = iface_.authenticateDashboardUser(args.username, args.password);
1568
          result.success = iface.authenticateDashboardUser(args.username, args.password);
1158
        } catch (HelperServiceException se) {
1569
        } catch (HelperServiceException se) {
1159
          result.se = se;
1570
          result.se = se;
1160
        } catch (Throwable th) {
-
 
1161
          LOGGER.error("Internal error processing authenticateDashboardUser", th);
-
 
1162
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateDashboardUser");
-
 
1163
          oprot.writeMessageBegin(new TMessage("authenticateDashboardUser", TMessageType.EXCEPTION, seqid));
-
 
1164
          x.write(oprot);
-
 
1165
          oprot.writeMessageEnd();
-
 
1166
          oprot.getTransport().flush();
-
 
1167
          return;
-
 
1168
        }
1571
        }
1169
        oprot.writeMessageBegin(new TMessage("authenticateDashboardUser", TMessageType.REPLY, seqid));
-
 
1170
        result.write(oprot);
1572
        return result;
1171
        oprot.writeMessageEnd();
-
 
1172
        oprot.getTransport().flush();
-
 
1173
      }
1573
      }
1174
 
-
 
1175
    }
1574
    }
1176
 
1575
 
1177
    private class updatePassword implements ProcessFunction {
1576
    private static class updatePassword<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePassword_args> {
1178
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1577
      public updatePassword() {
-
 
1578
        super("updatePassword");
1179
      {
1579
      }
-
 
1580
 
1180
        updatePassword_args args = new updatePassword_args();
1581
      protected updatePassword_args getEmptyArgsInstance() {
1181
        args.read(iprot);
1582
        return new updatePassword_args();
1182
        iprot.readMessageEnd();
1583
      }
-
 
1584
 
-
 
1585
      protected updatePassword_result getResult(I iface, updatePassword_args args) throws org.apache.thrift.TException {
1183
        updatePassword_result result = new updatePassword_result();
1586
        updatePassword_result result = new updatePassword_result();
1184
        try {
1587
        try {
1185
          result.success = iface_.updatePassword(args.username, args.oldPassword, args.newPassword);
1588
          result.success = iface.updatePassword(args.username, args.oldPassword, args.newPassword);
1186
          result.setSuccessIsSet(true);
1589
          result.setSuccessIsSet(true);
1187
        } catch (HelperServiceException se) {
1590
        } catch (HelperServiceException se) {
1188
          result.se = se;
1591
          result.se = se;
1189
        } catch (Throwable th) {
-
 
1190
          LOGGER.error("Internal error processing updatePassword", th);
-
 
1191
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing updatePassword");
-
 
1192
          oprot.writeMessageBegin(new TMessage("updatePassword", TMessageType.EXCEPTION, seqid));
-
 
1193
          x.write(oprot);
-
 
1194
          oprot.writeMessageEnd();
-
 
1195
          oprot.getTransport().flush();
-
 
1196
          return;
-
 
1197
        }
1592
        }
1198
        oprot.writeMessageBegin(new TMessage("updatePassword", TMessageType.REPLY, seqid));
-
 
1199
        result.write(oprot);
1593
        return result;
1200
        oprot.writeMessageEnd();
-
 
1201
        oprot.getTransport().flush();
-
 
1202
      }
1594
      }
1203
 
-
 
1204
    }
1595
    }
1205
 
1596
 
1206
    private class authenticateLogisticsUser implements ProcessFunction {
1597
    private static class authenticateLogisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateLogisticsUser_args> {
1207
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1598
      public authenticateLogisticsUser() {
-
 
1599
        super("authenticateLogisticsUser");
1208
      {
1600
      }
-
 
1601
 
1209
        authenticateLogisticsUser_args args = new authenticateLogisticsUser_args();
1602
      protected authenticateLogisticsUser_args getEmptyArgsInstance() {
1210
        args.read(iprot);
1603
        return new authenticateLogisticsUser_args();
1211
        iprot.readMessageEnd();
1604
      }
-
 
1605
 
-
 
1606
      protected authenticateLogisticsUser_result getResult(I iface, authenticateLogisticsUser_args args) throws org.apache.thrift.TException {
1212
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
1607
        authenticateLogisticsUser_result result = new authenticateLogisticsUser_result();
1213
        try {
1608
        try {
1214
          result.success = iface_.authenticateLogisticsUser(args.username, args.password);
1609
          result.success = iface.authenticateLogisticsUser(args.username, args.password);
1215
        } catch (HelperServiceException hse) {
1610
        } catch (HelperServiceException hse) {
1216
          result.hse = hse;
1611
          result.hse = hse;
1217
        } catch (Throwable th) {
-
 
1218
          LOGGER.error("Internal error processing authenticateLogisticsUser", th);
-
 
1219
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateLogisticsUser");
-
 
1220
          oprot.writeMessageBegin(new TMessage("authenticateLogisticsUser", TMessageType.EXCEPTION, seqid));
-
 
1221
          x.write(oprot);
-
 
1222
          oprot.writeMessageEnd();
-
 
1223
          oprot.getTransport().flush();
-
 
1224
          return;
-
 
1225
        }
1612
        }
1226
        oprot.writeMessageBegin(new TMessage("authenticateLogisticsUser", TMessageType.REPLY, seqid));
-
 
1227
        result.write(oprot);
1613
        return result;
1228
        oprot.writeMessageEnd();
-
 
1229
        oprot.getTransport().flush();
-
 
1230
      }
1614
      }
1231
 
-
 
1232
    }
1615
    }
1233
 
1616
 
-
 
1617
    private static class authenticateStatisticsUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateStatisticsUser_args> {
1234
    private class authenticateStatisticsUser implements ProcessFunction {
1618
      public authenticateStatisticsUser() {
1235
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1619
        super("authenticateStatisticsUser");
1236
      {
1620
      }
-
 
1621
 
1237
        authenticateStatisticsUser_args args = new authenticateStatisticsUser_args();
1622
      protected authenticateStatisticsUser_args getEmptyArgsInstance() {
1238
        args.read(iprot);
1623
        return new authenticateStatisticsUser_args();
1239
        iprot.readMessageEnd();
1624
      }
-
 
1625
 
-
 
1626
      protected authenticateStatisticsUser_result getResult(I iface, authenticateStatisticsUser_args args) throws org.apache.thrift.TException {
1240
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
1627
        authenticateStatisticsUser_result result = new authenticateStatisticsUser_result();
1241
        try {
1628
        try {
1242
          result.success = iface_.authenticateStatisticsUser(args.username, args.password);
1629
          result.success = iface.authenticateStatisticsUser(args.username, args.password);
1243
        } catch (HelperServiceException hse) {
1630
        } catch (HelperServiceException hse) {
1244
          result.hse = hse;
1631
          result.hse = hse;
1245
        } catch (Throwable th) {
-
 
1246
          LOGGER.error("Internal error processing authenticateStatisticsUser", th);
-
 
1247
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateStatisticsUser");
-
 
1248
          oprot.writeMessageBegin(new TMessage("authenticateStatisticsUser", TMessageType.EXCEPTION, seqid));
-
 
1249
          x.write(oprot);
-
 
1250
          oprot.writeMessageEnd();
-
 
1251
          oprot.getTransport().flush();
-
 
1252
          return;
-
 
1253
        }
1632
        }
1254
        oprot.writeMessageBegin(new TMessage("authenticateStatisticsUser", TMessageType.REPLY, seqid));
-
 
1255
        result.write(oprot);
1633
        return result;
1256
        oprot.writeMessageEnd();
-
 
1257
        oprot.getTransport().flush();
-
 
1258
      }
1634
      }
1259
 
-
 
1260
    }
1635
    }
1261
 
1636
 
1262
    private class authenticateReportUser implements ProcessFunction {
1637
    private static class authenticateReportUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateReportUser_args> {
1263
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1638
      public authenticateReportUser() {
-
 
1639
        super("authenticateReportUser");
1264
      {
1640
      }
-
 
1641
 
1265
        authenticateReportUser_args args = new authenticateReportUser_args();
1642
      protected authenticateReportUser_args getEmptyArgsInstance() {
1266
        args.read(iprot);
1643
        return new authenticateReportUser_args();
1267
        iprot.readMessageEnd();
1644
      }
-
 
1645
 
-
 
1646
      protected authenticateReportUser_result getResult(I iface, authenticateReportUser_args args) throws org.apache.thrift.TException {
1268
        authenticateReportUser_result result = new authenticateReportUser_result();
1647
        authenticateReportUser_result result = new authenticateReportUser_result();
1269
        try {
1648
        try {
1270
          result.success = iface_.authenticateReportUser(args.username, args.password);
1649
          result.success = iface.authenticateReportUser(args.username, args.password);
1271
        } catch (HelperServiceException hse) {
1650
        } catch (HelperServiceException hse) {
1272
          result.hse = hse;
1651
          result.hse = hse;
1273
        } catch (Throwable th) {
-
 
1274
          LOGGER.error("Internal error processing authenticateReportUser", th);
-
 
1275
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateReportUser");
-
 
1276
          oprot.writeMessageBegin(new TMessage("authenticateReportUser", TMessageType.EXCEPTION, seqid));
-
 
1277
          x.write(oprot);
-
 
1278
          oprot.writeMessageEnd();
-
 
1279
          oprot.getTransport().flush();
-
 
1280
          return;
-
 
1281
        }
1652
        }
1282
        oprot.writeMessageBegin(new TMessage("authenticateReportUser", TMessageType.REPLY, seqid));
-
 
1283
        result.write(oprot);
1653
        return result;
1284
        oprot.writeMessageEnd();
-
 
1285
        oprot.getTransport().flush();
-
 
1286
      }
1654
      }
1287
 
-
 
1288
    }
1655
    }
1289
 
1656
 
1290
    private class getReports implements ProcessFunction {
1657
    private static class getReports<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getReports_args> {
1291
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
1292
      {
-
 
1293
        getReports_args args = new getReports_args();
-
 
1294
        args.read(iprot);
1658
      public getReports() {
1295
        iprot.readMessageEnd();
-
 
1296
        getReports_result result = new getReports_result();
-
 
1297
        result.success = iface_.getReports(args.role);
-
 
1298
        oprot.writeMessageBegin(new TMessage("getReports", TMessageType.REPLY, seqid));
-
 
1299
        result.write(oprot);
1659
        super("getReports");
1300
        oprot.writeMessageEnd();
-
 
1301
        oprot.getTransport().flush();
-
 
1302
      }
1660
      }
1303
 
1661
 
-
 
1662
      protected getReports_args getEmptyArgsInstance() {
-
 
1663
        return new getReports_args();
-
 
1664
      }
-
 
1665
 
-
 
1666
      protected getReports_result getResult(I iface, getReports_args args) throws org.apache.thrift.TException {
-
 
1667
        getReports_result result = new getReports_result();
-
 
1668
        result.success = iface.getReports(args.role);
-
 
1669
        return result;
-
 
1670
      }
1304
    }
1671
    }
1305
 
1672
 
1306
    private class authenticateCatalogUser implements ProcessFunction {
1673
    private static class authenticateCatalogUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, authenticateCatalogUser_args> {
1307
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
1674
      public authenticateCatalogUser() {
-
 
1675
        super("authenticateCatalogUser");
1308
      {
1676
      }
-
 
1677
 
1309
        authenticateCatalogUser_args args = new authenticateCatalogUser_args();
1678
      protected authenticateCatalogUser_args getEmptyArgsInstance() {
1310
        args.read(iprot);
1679
        return new authenticateCatalogUser_args();
1311
        iprot.readMessageEnd();
1680
      }
-
 
1681
 
-
 
1682
      protected authenticateCatalogUser_result getResult(I iface, authenticateCatalogUser_args args) throws org.apache.thrift.TException {
1312
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
1683
        authenticateCatalogUser_result result = new authenticateCatalogUser_result();
1313
        try {
1684
        try {
1314
          result.success = iface_.authenticateCatalogUser(args.username, args.password, args.role);
1685
          result.success = iface.authenticateCatalogUser(args.username, args.password, args.role);
1315
        } catch (HelperServiceException hse) {
1686
        } catch (HelperServiceException hse) {
1316
          result.hse = hse;
1687
          result.hse = hse;
1317
        } catch (Throwable th) {
-
 
1318
          LOGGER.error("Internal error processing authenticateCatalogUser", th);
-
 
1319
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing authenticateCatalogUser");
-
 
1320
          oprot.writeMessageBegin(new TMessage("authenticateCatalogUser", TMessageType.EXCEPTION, seqid));
-
 
1321
          x.write(oprot);
-
 
1322
          oprot.writeMessageEnd();
-
 
1323
          oprot.getTransport().flush();
-
 
1324
          return;
-
 
1325
        }
1688
        }
1326
        oprot.writeMessageBegin(new TMessage("authenticateCatalogUser", TMessageType.REPLY, seqid));
-
 
1327
        result.write(oprot);
1689
        return result;
1328
        oprot.writeMessageEnd();
-
 
1329
        oprot.getTransport().flush();
-
 
1330
      }
1690
      }
1331
 
-
 
1332
    }
1691
    }
1333
 
1692
 
1334
  }
1693
  }
1335
 
1694
 
1336
  public static class saveUserEmailForSending_args implements TBase<saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable, Comparable<saveUserEmailForSending_args>   {
1695
  public static class saveUserEmailForSending_args implements org.apache.thrift.TBase<saveUserEmailForSending_args, saveUserEmailForSending_args._Fields>, java.io.Serializable, Cloneable   {
1337
    private static final TStruct STRUCT_DESC = new TStruct("saveUserEmailForSending_args");
1696
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_args");
1338
 
1697
 
1339
    private static final TField EMAIL_TO_FIELD_DESC = new TField("emailTo", TType.STRING, (short)1);
1698
    private static final org.apache.thrift.protocol.TField EMAIL_TO_FIELD_DESC = new org.apache.thrift.protocol.TField("emailTo", org.apache.thrift.protocol.TType.STRING, (short)1);
1340
    private static final TField EMAIL_FROM_FIELD_DESC = new TField("emailFrom", TType.STRING, (short)2);
1699
    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);
1341
    private static final TField SUBJECT_FIELD_DESC = new TField("subject", TType.STRING, (short)3);
1700
    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);
1342
    private static final TField BODY_FIELD_DESC = new TField("body", TType.STRING, (short)4);
1701
    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);
1343
    private static final TField SOURCE_FIELD_DESC = new TField("source", TType.STRING, (short)5);
1702
    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);
1344
    private static final TField EMAIL_TYPE_FIELD_DESC = new TField("emailType", TType.STRING, (short)6);
1703
    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);
1345
 
1704
 
1346
    private String emailTo;
1705
    private String emailTo; // required
1347
    private String emailFrom;
1706
    private String emailFrom; // required
1348
    private String subject;
1707
    private String subject; // required
1349
    private String body;
1708
    private String body; // required
1350
    private String source;
1709
    private String source; // required
1351
    private String emailType;
1710
    private String emailType; // required
1352
 
1711
 
1353
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1712
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1354
    public enum _Fields implements TFieldIdEnum {
1713
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1355
      EMAIL_TO((short)1, "emailTo"),
1714
      EMAIL_TO((short)1, "emailTo"),
1356
      EMAIL_FROM((short)2, "emailFrom"),
1715
      EMAIL_FROM((short)2, "emailFrom"),
1357
      SUBJECT((short)3, "subject"),
1716
      SUBJECT((short)3, "subject"),
1358
      BODY((short)4, "body"),
1717
      BODY((short)4, "body"),
1359
      SOURCE((short)5, "source"),
1718
      SOURCE((short)5, "source"),
1360
      EMAIL_TYPE((short)6, "emailType");
1719
      EMAIL_TYPE((short)6, "emailType");
1361
 
1720
 
1362
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1363
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1721
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1364
 
1722
 
1365
      static {
1723
      static {
1366
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1724
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1367
          byId.put((int)field._thriftId, field);
-
 
1368
          byName.put(field.getFieldName(), field);
1725
          byName.put(field.getFieldName(), field);
1369
        }
1726
        }
1370
      }
1727
      }
1371
 
1728
 
1372
      /**
1729
      /**
1373
       * Find the _Fields constant that matches fieldId, or null if its not found.
1730
       * Find the _Fields constant that matches fieldId, or null if its not found.
1374
       */
1731
       */
1375
      public static _Fields findByThriftId(int fieldId) {
1732
      public static _Fields findByThriftId(int fieldId) {
1376
        return byId.get(fieldId);
1733
        switch(fieldId) {
-
 
1734
          case 1: // EMAIL_TO
-
 
1735
            return EMAIL_TO;
-
 
1736
          case 2: // EMAIL_FROM
-
 
1737
            return EMAIL_FROM;
-
 
1738
          case 3: // SUBJECT
-
 
1739
            return SUBJECT;
-
 
1740
          case 4: // BODY
-
 
1741
            return BODY;
-
 
1742
          case 5: // SOURCE
-
 
1743
            return SOURCE;
-
 
1744
          case 6: // EMAIL_TYPE
-
 
1745
            return EMAIL_TYPE;
-
 
1746
          default:
-
 
1747
            return null;
-
 
1748
        }
1377
      }
1749
      }
1378
 
1750
 
1379
      /**
1751
      /**
1380
       * Find the _Fields constant that matches fieldId, throwing an exception
1752
       * Find the _Fields constant that matches fieldId, throwing an exception
1381
       * if it is not found.
1753
       * if it is not found.
Line 1410... Line 1782...
1410
      }
1782
      }
1411
    }
1783
    }
1412
 
1784
 
1413
    // isset id assignments
1785
    // isset id assignments
1414
 
1786
 
1415
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1787
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1416
      put(_Fields.EMAIL_TO, new FieldMetaData("emailTo", TFieldRequirementType.DEFAULT, 
-
 
1417
          new FieldValueMetaData(TType.STRING)));
-
 
1418
      put(_Fields.EMAIL_FROM, new FieldMetaData("emailFrom", TFieldRequirementType.DEFAULT, 
-
 
1419
          new FieldValueMetaData(TType.STRING)));
-
 
1420
      put(_Fields.SUBJECT, new FieldMetaData("subject", TFieldRequirementType.DEFAULT, 
-
 
1421
          new FieldValueMetaData(TType.STRING)));
-
 
1422
      put(_Fields.BODY, new FieldMetaData("body", TFieldRequirementType.DEFAULT, 
-
 
1423
          new FieldValueMetaData(TType.STRING)));
-
 
1424
      put(_Fields.SOURCE, new FieldMetaData("source", TFieldRequirementType.DEFAULT, 
-
 
1425
          new FieldValueMetaData(TType.STRING)));
-
 
1426
      put(_Fields.EMAIL_TYPE, new FieldMetaData("emailType", TFieldRequirementType.DEFAULT, 
-
 
1427
          new FieldValueMetaData(TType.STRING)));
-
 
1428
    }});
-
 
1429
 
-
 
1430
    static {
1788
    static {
-
 
1789
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1790
      tmpMap.put(_Fields.EMAIL_TO, new org.apache.thrift.meta_data.FieldMetaData("emailTo", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1791
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
1792
      tmpMap.put(_Fields.EMAIL_FROM, new org.apache.thrift.meta_data.FieldMetaData("emailFrom", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1793
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
1794
      tmpMap.put(_Fields.SUBJECT, new org.apache.thrift.meta_data.FieldMetaData("subject", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1795
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
1796
      tmpMap.put(_Fields.BODY, new org.apache.thrift.meta_data.FieldMetaData("body", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1797
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
1798
      tmpMap.put(_Fields.SOURCE, new org.apache.thrift.meta_data.FieldMetaData("source", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1799
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
1800
      tmpMap.put(_Fields.EMAIL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("emailType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1801
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
1802
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1431
      FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1803
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_args.class, metaDataMap);
1432
    }
1804
    }
1433
 
1805
 
1434
    public saveUserEmailForSending_args() {
1806
    public saveUserEmailForSending_args() {
1435
    }
1807
    }
1436
 
1808
 
Line 1477... Line 1849...
1477
 
1849
 
1478
    public saveUserEmailForSending_args deepCopy() {
1850
    public saveUserEmailForSending_args deepCopy() {
1479
      return new saveUserEmailForSending_args(this);
1851
      return new saveUserEmailForSending_args(this);
1480
    }
1852
    }
1481
 
1853
 
1482
    @Deprecated
1854
    @Override
1483
    public saveUserEmailForSending_args clone() {
1855
    public void clear() {
-
 
1856
      this.emailTo = null;
1484
      return new saveUserEmailForSending_args(this);
1857
      this.emailFrom = null;
-
 
1858
      this.subject = null;
-
 
1859
      this.body = null;
-
 
1860
      this.source = null;
-
 
1861
      this.emailType = null;
1485
    }
1862
    }
1486
 
1863
 
1487
    public String getEmailTo() {
1864
    public String getEmailTo() {
1488
      return this.emailTo;
1865
      return this.emailTo;
1489
    }
1866
    }
1490
 
1867
 
1491
    public saveUserEmailForSending_args setEmailTo(String emailTo) {
1868
    public void setEmailTo(String emailTo) {
1492
      this.emailTo = emailTo;
1869
      this.emailTo = emailTo;
1493
      return this;
-
 
1494
    }
1870
    }
1495
 
1871
 
1496
    public void unsetEmailTo() {
1872
    public void unsetEmailTo() {
1497
      this.emailTo = null;
1873
      this.emailTo = null;
1498
    }
1874
    }
1499
 
1875
 
1500
    /** Returns true if field emailTo is set (has been asigned a value) and false otherwise */
1876
    /** Returns true if field emailTo is set (has been assigned a value) and false otherwise */
1501
    public boolean isSetEmailTo() {
1877
    public boolean isSetEmailTo() {
1502
      return this.emailTo != null;
1878
      return this.emailTo != null;
1503
    }
1879
    }
1504
 
1880
 
1505
    public void setEmailToIsSet(boolean value) {
1881
    public void setEmailToIsSet(boolean value) {
Line 1510... Line 1886...
1510
 
1886
 
1511
    public String getEmailFrom() {
1887
    public String getEmailFrom() {
1512
      return this.emailFrom;
1888
      return this.emailFrom;
1513
    }
1889
    }
1514
 
1890
 
1515
    public saveUserEmailForSending_args setEmailFrom(String emailFrom) {
1891
    public void setEmailFrom(String emailFrom) {
1516
      this.emailFrom = emailFrom;
1892
      this.emailFrom = emailFrom;
1517
      return this;
-
 
1518
    }
1893
    }
1519
 
1894
 
1520
    public void unsetEmailFrom() {
1895
    public void unsetEmailFrom() {
1521
      this.emailFrom = null;
1896
      this.emailFrom = null;
1522
    }
1897
    }
1523
 
1898
 
1524
    /** Returns true if field emailFrom is set (has been asigned a value) and false otherwise */
1899
    /** Returns true if field emailFrom is set (has been assigned a value) and false otherwise */
1525
    public boolean isSetEmailFrom() {
1900
    public boolean isSetEmailFrom() {
1526
      return this.emailFrom != null;
1901
      return this.emailFrom != null;
1527
    }
1902
    }
1528
 
1903
 
1529
    public void setEmailFromIsSet(boolean value) {
1904
    public void setEmailFromIsSet(boolean value) {
Line 1534... Line 1909...
1534
 
1909
 
1535
    public String getSubject() {
1910
    public String getSubject() {
1536
      return this.subject;
1911
      return this.subject;
1537
    }
1912
    }
1538
 
1913
 
1539
    public saveUserEmailForSending_args setSubject(String subject) {
1914
    public void setSubject(String subject) {
1540
      this.subject = subject;
1915
      this.subject = subject;
1541
      return this;
-
 
1542
    }
1916
    }
1543
 
1917
 
1544
    public void unsetSubject() {
1918
    public void unsetSubject() {
1545
      this.subject = null;
1919
      this.subject = null;
1546
    }
1920
    }
1547
 
1921
 
1548
    /** Returns true if field subject is set (has been asigned a value) and false otherwise */
1922
    /** Returns true if field subject is set (has been assigned a value) and false otherwise */
1549
    public boolean isSetSubject() {
1923
    public boolean isSetSubject() {
1550
      return this.subject != null;
1924
      return this.subject != null;
1551
    }
1925
    }
1552
 
1926
 
1553
    public void setSubjectIsSet(boolean value) {
1927
    public void setSubjectIsSet(boolean value) {
Line 1558... Line 1932...
1558
 
1932
 
1559
    public String getBody() {
1933
    public String getBody() {
1560
      return this.body;
1934
      return this.body;
1561
    }
1935
    }
1562
 
1936
 
1563
    public saveUserEmailForSending_args setBody(String body) {
1937
    public void setBody(String body) {
1564
      this.body = body;
1938
      this.body = body;
1565
      return this;
-
 
1566
    }
1939
    }
1567
 
1940
 
1568
    public void unsetBody() {
1941
    public void unsetBody() {
1569
      this.body = null;
1942
      this.body = null;
1570
    }
1943
    }
1571
 
1944
 
1572
    /** Returns true if field body is set (has been asigned a value) and false otherwise */
1945
    /** Returns true if field body is set (has been assigned a value) and false otherwise */
1573
    public boolean isSetBody() {
1946
    public boolean isSetBody() {
1574
      return this.body != null;
1947
      return this.body != null;
1575
    }
1948
    }
1576
 
1949
 
1577
    public void setBodyIsSet(boolean value) {
1950
    public void setBodyIsSet(boolean value) {
Line 1582... Line 1955...
1582
 
1955
 
1583
    public String getSource() {
1956
    public String getSource() {
1584
      return this.source;
1957
      return this.source;
1585
    }
1958
    }
1586
 
1959
 
1587
    public saveUserEmailForSending_args setSource(String source) {
1960
    public void setSource(String source) {
1588
      this.source = source;
1961
      this.source = source;
1589
      return this;
-
 
1590
    }
1962
    }
1591
 
1963
 
1592
    public void unsetSource() {
1964
    public void unsetSource() {
1593
      this.source = null;
1965
      this.source = null;
1594
    }
1966
    }
1595
 
1967
 
1596
    /** Returns true if field source is set (has been asigned a value) and false otherwise */
1968
    /** Returns true if field source is set (has been assigned a value) and false otherwise */
1597
    public boolean isSetSource() {
1969
    public boolean isSetSource() {
1598
      return this.source != null;
1970
      return this.source != null;
1599
    }
1971
    }
1600
 
1972
 
1601
    public void setSourceIsSet(boolean value) {
1973
    public void setSourceIsSet(boolean value) {
Line 1606... Line 1978...
1606
 
1978
 
1607
    public String getEmailType() {
1979
    public String getEmailType() {
1608
      return this.emailType;
1980
      return this.emailType;
1609
    }
1981
    }
1610
 
1982
 
1611
    public saveUserEmailForSending_args setEmailType(String emailType) {
1983
    public void setEmailType(String emailType) {
1612
      this.emailType = emailType;
1984
      this.emailType = emailType;
1613
      return this;
-
 
1614
    }
1985
    }
1615
 
1986
 
1616
    public void unsetEmailType() {
1987
    public void unsetEmailType() {
1617
      this.emailType = null;
1988
      this.emailType = null;
1618
    }
1989
    }
1619
 
1990
 
1620
    /** Returns true if field emailType is set (has been asigned a value) and false otherwise */
1991
    /** Returns true if field emailType is set (has been assigned a value) and false otherwise */
1621
    public boolean isSetEmailType() {
1992
    public boolean isSetEmailType() {
1622
      return this.emailType != null;
1993
      return this.emailType != null;
1623
    }
1994
    }
1624
 
1995
 
1625
    public void setEmailTypeIsSet(boolean value) {
1996
    public void setEmailTypeIsSet(boolean value) {
Line 1679... Line 2050...
1679
        break;
2050
        break;
1680
 
2051
 
1681
      }
2052
      }
1682
    }
2053
    }
1683
 
2054
 
1684
    public void setFieldValue(int fieldID, Object value) {
-
 
1685
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1686
    }
-
 
1687
 
-
 
1688
    public Object getFieldValue(_Fields field) {
2055
    public Object getFieldValue(_Fields field) {
1689
      switch (field) {
2056
      switch (field) {
1690
      case EMAIL_TO:
2057
      case EMAIL_TO:
1691
        return getEmailTo();
2058
        return getEmailTo();
1692
 
2059
 
Line 1707... Line 2074...
1707
 
2074
 
1708
      }
2075
      }
1709
      throw new IllegalStateException();
2076
      throw new IllegalStateException();
1710
    }
2077
    }
1711
 
2078
 
1712
    public Object getFieldValue(int fieldId) {
-
 
1713
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1714
    }
-
 
1715
 
-
 
1716
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2079
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1717
    public boolean isSet(_Fields field) {
2080
    public boolean isSet(_Fields field) {
-
 
2081
      if (field == null) {
-
 
2082
        throw new IllegalArgumentException();
-
 
2083
      }
-
 
2084
 
1718
      switch (field) {
2085
      switch (field) {
1719
      case EMAIL_TO:
2086
      case EMAIL_TO:
1720
        return isSetEmailTo();
2087
        return isSetEmailTo();
1721
      case EMAIL_FROM:
2088
      case EMAIL_FROM:
1722
        return isSetEmailFrom();
2089
        return isSetEmailFrom();
Line 1730... Line 2097...
1730
        return isSetEmailType();
2097
        return isSetEmailType();
1731
      }
2098
      }
1732
      throw new IllegalStateException();
2099
      throw new IllegalStateException();
1733
    }
2100
    }
1734
 
2101
 
1735
    public boolean isSet(int fieldID) {
-
 
1736
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1737
    }
-
 
1738
 
-
 
1739
    @Override
2102
    @Override
1740
    public boolean equals(Object that) {
2103
    public boolean equals(Object that) {
1741
      if (that == null)
2104
      if (that == null)
1742
        return false;
2105
        return false;
1743
      if (that instanceof saveUserEmailForSending_args)
2106
      if (that instanceof saveUserEmailForSending_args)
Line 1817... Line 2180...
1817
      }
2180
      }
1818
 
2181
 
1819
      int lastComparison = 0;
2182
      int lastComparison = 0;
1820
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
2183
      saveUserEmailForSending_args typedOther = (saveUserEmailForSending_args)other;
1821
 
2184
 
1822
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(isSetEmailTo());
2185
      lastComparison = Boolean.valueOf(isSetEmailTo()).compareTo(typedOther.isSetEmailTo());
1823
      if (lastComparison != 0) {
2186
      if (lastComparison != 0) {
1824
        return lastComparison;
2187
        return lastComparison;
1825
      }
2188
      }
-
 
2189
      if (isSetEmailTo()) {
1826
      lastComparison = TBaseHelper.compareTo(emailTo, typedOther.emailTo);
2190
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailTo, typedOther.emailTo);
1827
      if (lastComparison != 0) {
2191
        if (lastComparison != 0) {
1828
        return lastComparison;
2192
          return lastComparison;
-
 
2193
        }
1829
      }
2194
      }
1830
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(isSetEmailFrom());
2195
      lastComparison = Boolean.valueOf(isSetEmailFrom()).compareTo(typedOther.isSetEmailFrom());
1831
      if (lastComparison != 0) {
2196
      if (lastComparison != 0) {
1832
        return lastComparison;
2197
        return lastComparison;
1833
      }
2198
      }
-
 
2199
      if (isSetEmailFrom()) {
1834
      lastComparison = TBaseHelper.compareTo(emailFrom, typedOther.emailFrom);
2200
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailFrom, typedOther.emailFrom);
1835
      if (lastComparison != 0) {
2201
        if (lastComparison != 0) {
1836
        return lastComparison;
2202
          return lastComparison;
-
 
2203
        }
1837
      }
2204
      }
1838
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(isSetSubject());
2205
      lastComparison = Boolean.valueOf(isSetSubject()).compareTo(typedOther.isSetSubject());
1839
      if (lastComparison != 0) {
2206
      if (lastComparison != 0) {
1840
        return lastComparison;
2207
        return lastComparison;
1841
      }
2208
      }
-
 
2209
      if (isSetSubject()) {
1842
      lastComparison = TBaseHelper.compareTo(subject, typedOther.subject);
2210
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.subject, typedOther.subject);
1843
      if (lastComparison != 0) {
2211
        if (lastComparison != 0) {
1844
        return lastComparison;
2212
          return lastComparison;
-
 
2213
        }
1845
      }
2214
      }
1846
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(isSetBody());
2215
      lastComparison = Boolean.valueOf(isSetBody()).compareTo(typedOther.isSetBody());
1847
      if (lastComparison != 0) {
2216
      if (lastComparison != 0) {
1848
        return lastComparison;
2217
        return lastComparison;
1849
      }
2218
      }
-
 
2219
      if (isSetBody()) {
1850
      lastComparison = TBaseHelper.compareTo(body, typedOther.body);
2220
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.body, typedOther.body);
1851
      if (lastComparison != 0) {
2221
        if (lastComparison != 0) {
1852
        return lastComparison;
2222
          return lastComparison;
-
 
2223
        }
1853
      }
2224
      }
1854
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(isSetSource());
2225
      lastComparison = Boolean.valueOf(isSetSource()).compareTo(typedOther.isSetSource());
1855
      if (lastComparison != 0) {
2226
      if (lastComparison != 0) {
1856
        return lastComparison;
2227
        return lastComparison;
1857
      }
2228
      }
-
 
2229
      if (isSetSource()) {
1858
      lastComparison = TBaseHelper.compareTo(source, typedOther.source);
2230
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source, typedOther.source);
1859
      if (lastComparison != 0) {
2231
        if (lastComparison != 0) {
1860
        return lastComparison;
2232
          return lastComparison;
-
 
2233
        }
1861
      }
2234
      }
1862
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(isSetEmailType());
2235
      lastComparison = Boolean.valueOf(isSetEmailType()).compareTo(typedOther.isSetEmailType());
1863
      if (lastComparison != 0) {
2236
      if (lastComparison != 0) {
1864
        return lastComparison;
2237
        return lastComparison;
1865
      }
2238
      }
-
 
2239
      if (isSetEmailType()) {
1866
      lastComparison = TBaseHelper.compareTo(emailType, typedOther.emailType);
2240
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailType, typedOther.emailType);
1867
      if (lastComparison != 0) {
2241
        if (lastComparison != 0) {
1868
        return lastComparison;
2242
          return lastComparison;
-
 
2243
        }
1869
      }
2244
      }
1870
      return 0;
2245
      return 0;
1871
    }
2246
    }
1872
 
2247
 
-
 
2248
    public _Fields fieldForId(int fieldId) {
-
 
2249
      return _Fields.findByThriftId(fieldId);
-
 
2250
    }
-
 
2251
 
1873
    public void read(TProtocol iprot) throws TException {
2252
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1874
      TField field;
2253
      org.apache.thrift.protocol.TField field;
1875
      iprot.readStructBegin();
2254
      iprot.readStructBegin();
1876
      while (true)
2255
      while (true)
1877
      {
2256
      {
1878
        field = iprot.readFieldBegin();
2257
        field = iprot.readFieldBegin();
1879
        if (field.type == TType.STOP) { 
2258
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1880
          break;
2259
          break;
1881
        }
2260
        }
1882
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1883
        if (fieldId == null) {
-
 
1884
          TProtocolUtil.skip(iprot, field.type);
-
 
1885
        } else {
-
 
1886
          switch (fieldId) {
2261
        switch (field.id) {
1887
            case EMAIL_TO:
2262
          case 1: // EMAIL_TO
1888
              if (field.type == TType.STRING) {
2263
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1889
                this.emailTo = iprot.readString();
2264
              this.emailTo = iprot.readString();
1890
              } else { 
2265
            } else { 
1891
                TProtocolUtil.skip(iprot, field.type);
2266
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1892
              }
2267
            }
1893
              break;
2268
            break;
1894
            case EMAIL_FROM:
2269
          case 2: // EMAIL_FROM
1895
              if (field.type == TType.STRING) {
2270
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1896
                this.emailFrom = iprot.readString();
2271
              this.emailFrom = iprot.readString();
1897
              } else { 
2272
            } else { 
1898
                TProtocolUtil.skip(iprot, field.type);
2273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1899
              }
2274
            }
1900
              break;
2275
            break;
1901
            case SUBJECT:
2276
          case 3: // SUBJECT
1902
              if (field.type == TType.STRING) {
2277
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1903
                this.subject = iprot.readString();
2278
              this.subject = iprot.readString();
1904
              } else { 
2279
            } else { 
1905
                TProtocolUtil.skip(iprot, field.type);
2280
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1906
              }
2281
            }
1907
              break;
2282
            break;
1908
            case BODY:
2283
          case 4: // BODY
1909
              if (field.type == TType.STRING) {
2284
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1910
                this.body = iprot.readString();
2285
              this.body = iprot.readString();
1911
              } else { 
2286
            } else { 
1912
                TProtocolUtil.skip(iprot, field.type);
2287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1913
              }
2288
            }
1914
              break;
2289
            break;
1915
            case SOURCE:
2290
          case 5: // SOURCE
1916
              if (field.type == TType.STRING) {
2291
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1917
                this.source = iprot.readString();
2292
              this.source = iprot.readString();
1918
              } else { 
2293
            } else { 
1919
                TProtocolUtil.skip(iprot, field.type);
2294
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1920
              }
2295
            }
1921
              break;
2296
            break;
1922
            case EMAIL_TYPE:
2297
          case 6: // EMAIL_TYPE
1923
              if (field.type == TType.STRING) {
2298
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1924
                this.emailType = iprot.readString();
2299
              this.emailType = iprot.readString();
1925
              } else { 
2300
            } else { 
1926
                TProtocolUtil.skip(iprot, field.type);
2301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1927
              }
2302
            }
1928
              break;
2303
            break;
1929
          }
2304
          default:
1930
          iprot.readFieldEnd();
2305
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1931
        }
2306
        }
-
 
2307
        iprot.readFieldEnd();
1932
      }
2308
      }
1933
      iprot.readStructEnd();
2309
      iprot.readStructEnd();
1934
      validate();
2310
      validate();
1935
    }
2311
    }
1936
 
2312
 
1937
    public void write(TProtocol oprot) throws TException {
2313
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1938
      validate();
2314
      validate();
1939
 
2315
 
1940
      oprot.writeStructBegin(STRUCT_DESC);
2316
      oprot.writeStructBegin(STRUCT_DESC);
1941
      if (this.emailTo != null) {
2317
      if (this.emailTo != null) {
1942
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
2318
        oprot.writeFieldBegin(EMAIL_TO_FIELD_DESC);
Line 2026... Line 2402...
2026
      first = false;
2402
      first = false;
2027
      sb.append(")");
2403
      sb.append(")");
2028
      return sb.toString();
2404
      return sb.toString();
2029
    }
2405
    }
2030
 
2406
 
2031
    public void validate() throws TException {
2407
    public void validate() throws org.apache.thrift.TException {
2032
      // check for required fields
2408
      // check for required fields
2033
    }
2409
    }
2034
 
2410
 
-
 
2411
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2412
      try {
-
 
2413
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2414
      } catch (org.apache.thrift.TException te) {
-
 
2415
        throw new java.io.IOException(te);
-
 
2416
      }
-
 
2417
    }
-
 
2418
 
-
 
2419
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2420
      try {
-
 
2421
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2422
      } catch (org.apache.thrift.TException te) {
-
 
2423
        throw new java.io.IOException(te);
-
 
2424
      }
-
 
2425
    }
-
 
2426
 
2035
  }
2427
  }
2036
 
2428
 
2037
  public static class saveUserEmailForSending_result implements TBase<saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable, Comparable<saveUserEmailForSending_result>   {
2429
  public static class saveUserEmailForSending_result implements org.apache.thrift.TBase<saveUserEmailForSending_result, saveUserEmailForSending_result._Fields>, java.io.Serializable, Cloneable   {
2038
    private static final TStruct STRUCT_DESC = new TStruct("saveUserEmailForSending_result");
2430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("saveUserEmailForSending_result");
2039
 
2431
 
2040
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
2432
    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);
2041
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
2433
    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);
2042
 
2434
 
2043
    private long success;
2435
    private long success; // required
2044
    private HelperServiceException se;
2436
    private HelperServiceException se; // required
2045
 
2437
 
2046
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2438
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2047
    public enum _Fields implements TFieldIdEnum {
2439
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2048
      SUCCESS((short)0, "success"),
2440
      SUCCESS((short)0, "success"),
2049
      SE((short)1, "se");
2441
      SE((short)1, "se");
2050
 
2442
 
2051
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2052
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2443
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2053
 
2444
 
2054
      static {
2445
      static {
2055
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2446
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2056
          byId.put((int)field._thriftId, field);
-
 
2057
          byName.put(field.getFieldName(), field);
2447
          byName.put(field.getFieldName(), field);
2058
        }
2448
        }
2059
      }
2449
      }
2060
 
2450
 
2061
      /**
2451
      /**
2062
       * Find the _Fields constant that matches fieldId, or null if its not found.
2452
       * Find the _Fields constant that matches fieldId, or null if its not found.
2063
       */
2453
       */
2064
      public static _Fields findByThriftId(int fieldId) {
2454
      public static _Fields findByThriftId(int fieldId) {
2065
        return byId.get(fieldId);
2455
        switch(fieldId) {
-
 
2456
          case 0: // SUCCESS
-
 
2457
            return SUCCESS;
-
 
2458
          case 1: // SE
-
 
2459
            return SE;
-
 
2460
          default:
-
 
2461
            return null;
-
 
2462
        }
2066
      }
2463
      }
2067
 
2464
 
2068
      /**
2465
      /**
2069
       * Find the _Fields constant that matches fieldId, throwing an exception
2466
       * Find the _Fields constant that matches fieldId, throwing an exception
2070
       * if it is not found.
2467
       * if it is not found.
Line 2101... Line 2498...
2101
 
2498
 
2102
    // isset id assignments
2499
    // isset id assignments
2103
    private static final int __SUCCESS_ISSET_ID = 0;
2500
    private static final int __SUCCESS_ISSET_ID = 0;
2104
    private BitSet __isset_bit_vector = new BitSet(1);
2501
    private BitSet __isset_bit_vector = new BitSet(1);
2105
 
2502
 
2106
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2503
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2107
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
2108
          new FieldValueMetaData(TType.I64)));
-
 
2109
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
2110
          new FieldValueMetaData(TType.STRUCT)));
-
 
2111
    }});
-
 
2112
 
-
 
2113
    static {
2504
    static {
-
 
2505
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2506
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2507
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
2508
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
2510
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2114
      FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
2511
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(saveUserEmailForSending_result.class, metaDataMap);
2115
    }
2512
    }
2116
 
2513
 
2117
    public saveUserEmailForSending_result() {
2514
    public saveUserEmailForSending_result() {
2118
    }
2515
    }
2119
 
2516
 
Line 2141... Line 2538...
2141
 
2538
 
2142
    public saveUserEmailForSending_result deepCopy() {
2539
    public saveUserEmailForSending_result deepCopy() {
2143
      return new saveUserEmailForSending_result(this);
2540
      return new saveUserEmailForSending_result(this);
2144
    }
2541
    }
2145
 
2542
 
2146
    @Deprecated
2543
    @Override
2147
    public saveUserEmailForSending_result clone() {
2544
    public void clear() {
2148
      return new saveUserEmailForSending_result(this);
2545
      setSuccessIsSet(false);
-
 
2546
      this.success = 0;
-
 
2547
      this.se = null;
2149
    }
2548
    }
2150
 
2549
 
2151
    public long getSuccess() {
2550
    public long getSuccess() {
2152
      return this.success;
2551
      return this.success;
2153
    }
2552
    }
2154
 
2553
 
2155
    public saveUserEmailForSending_result setSuccess(long success) {
2554
    public void setSuccess(long success) {
2156
      this.success = success;
2555
      this.success = success;
2157
      setSuccessIsSet(true);
2556
      setSuccessIsSet(true);
2158
      return this;
-
 
2159
    }
2557
    }
2160
 
2558
 
2161
    public void unsetSuccess() {
2559
    public void unsetSuccess() {
2162
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2560
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2163
    }
2561
    }
2164
 
2562
 
2165
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
2563
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2166
    public boolean isSetSuccess() {
2564
    public boolean isSetSuccess() {
2167
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2565
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2168
    }
2566
    }
2169
 
2567
 
2170
    public void setSuccessIsSet(boolean value) {
2568
    public void setSuccessIsSet(boolean value) {
Line 2173... Line 2571...
2173
 
2571
 
2174
    public HelperServiceException getSe() {
2572
    public HelperServiceException getSe() {
2175
      return this.se;
2573
      return this.se;
2176
    }
2574
    }
2177
 
2575
 
2178
    public saveUserEmailForSending_result setSe(HelperServiceException se) {
2576
    public void setSe(HelperServiceException se) {
2179
      this.se = se;
2577
      this.se = se;
2180
      return this;
-
 
2181
    }
2578
    }
2182
 
2579
 
2183
    public void unsetSe() {
2580
    public void unsetSe() {
2184
      this.se = null;
2581
      this.se = null;
2185
    }
2582
    }
2186
 
2583
 
2187
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
2584
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
2188
    public boolean isSetSe() {
2585
    public boolean isSetSe() {
2189
      return this.se != null;
2586
      return this.se != null;
2190
    }
2587
    }
2191
 
2588
 
2192
    public void setSeIsSet(boolean value) {
2589
    public void setSeIsSet(boolean value) {
Line 2214... Line 2611...
2214
        break;
2611
        break;
2215
 
2612
 
2216
      }
2613
      }
2217
    }
2614
    }
2218
 
2615
 
2219
    public void setFieldValue(int fieldID, Object value) {
-
 
2220
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2221
    }
-
 
2222
 
-
 
2223
    public Object getFieldValue(_Fields field) {
2616
    public Object getFieldValue(_Fields field) {
2224
      switch (field) {
2617
      switch (field) {
2225
      case SUCCESS:
2618
      case SUCCESS:
2226
        return new Long(getSuccess());
2619
        return Long.valueOf(getSuccess());
2227
 
2620
 
2228
      case SE:
2621
      case SE:
2229
        return getSe();
2622
        return getSe();
2230
 
2623
 
2231
      }
2624
      }
2232
      throw new IllegalStateException();
2625
      throw new IllegalStateException();
2233
    }
2626
    }
2234
 
2627
 
2235
    public Object getFieldValue(int fieldId) {
-
 
2236
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2237
    }
-
 
2238
 
-
 
2239
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2628
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2240
    public boolean isSet(_Fields field) {
2629
    public boolean isSet(_Fields field) {
-
 
2630
      if (field == null) {
-
 
2631
        throw new IllegalArgumentException();
-
 
2632
      }
-
 
2633
 
2241
      switch (field) {
2634
      switch (field) {
2242
      case SUCCESS:
2635
      case SUCCESS:
2243
        return isSetSuccess();
2636
        return isSetSuccess();
2244
      case SE:
2637
      case SE:
2245
        return isSetSe();
2638
        return isSetSe();
2246
      }
2639
      }
2247
      throw new IllegalStateException();
2640
      throw new IllegalStateException();
2248
    }
2641
    }
2249
 
2642
 
2250
    public boolean isSet(int fieldID) {
-
 
2251
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2252
    }
-
 
2253
 
-
 
2254
    @Override
2643
    @Override
2255
    public boolean equals(Object that) {
2644
    public boolean equals(Object that) {
2256
      if (that == null)
2645
      if (that == null)
2257
        return false;
2646
        return false;
2258
      if (that instanceof saveUserEmailForSending_result)
2647
      if (that instanceof saveUserEmailForSending_result)
Line 2296... Line 2685...
2296
      }
2685
      }
2297
 
2686
 
2298
      int lastComparison = 0;
2687
      int lastComparison = 0;
2299
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
2688
      saveUserEmailForSending_result typedOther = (saveUserEmailForSending_result)other;
2300
 
2689
 
2301
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
2690
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2302
      if (lastComparison != 0) {
2691
      if (lastComparison != 0) {
2303
        return lastComparison;
2692
        return lastComparison;
2304
      }
2693
      }
-
 
2694
      if (isSetSuccess()) {
2305
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
2695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2306
      if (lastComparison != 0) {
2696
        if (lastComparison != 0) {
2307
        return lastComparison;
2697
          return lastComparison;
-
 
2698
        }
2308
      }
2699
      }
2309
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
2700
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
2310
      if (lastComparison != 0) {
2701
      if (lastComparison != 0) {
2311
        return lastComparison;
2702
        return lastComparison;
2312
      }
2703
      }
-
 
2704
      if (isSetSe()) {
2313
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
2705
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
2314
      if (lastComparison != 0) {
2706
        if (lastComparison != 0) {
2315
        return lastComparison;
2707
          return lastComparison;
-
 
2708
        }
2316
      }
2709
      }
2317
      return 0;
2710
      return 0;
2318
    }
2711
    }
2319
 
2712
 
-
 
2713
    public _Fields fieldForId(int fieldId) {
-
 
2714
      return _Fields.findByThriftId(fieldId);
-
 
2715
    }
-
 
2716
 
2320
    public void read(TProtocol iprot) throws TException {
2717
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2321
      TField field;
2718
      org.apache.thrift.protocol.TField field;
2322
      iprot.readStructBegin();
2719
      iprot.readStructBegin();
2323
      while (true)
2720
      while (true)
2324
      {
2721
      {
2325
        field = iprot.readFieldBegin();
2722
        field = iprot.readFieldBegin();
2326
        if (field.type == TType.STOP) { 
2723
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2327
          break;
2724
          break;
2328
        }
2725
        }
2329
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2330
        if (fieldId == null) {
-
 
2331
          TProtocolUtil.skip(iprot, field.type);
-
 
2332
        } else {
-
 
2333
          switch (fieldId) {
2726
        switch (field.id) {
2334
            case SUCCESS:
2727
          case 0: // SUCCESS
2335
              if (field.type == TType.I64) {
2728
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2336
                this.success = iprot.readI64();
2729
              this.success = iprot.readI64();
2337
                setSuccessIsSet(true);
2730
              setSuccessIsSet(true);
2338
              } else { 
2731
            } else { 
2339
                TProtocolUtil.skip(iprot, field.type);
2732
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2340
              }
2733
            }
2341
              break;
2734
            break;
2342
            case SE:
2735
          case 1: // SE
2343
              if (field.type == TType.STRUCT) {
2736
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2344
                this.se = new HelperServiceException();
2737
              this.se = new HelperServiceException();
2345
                this.se.read(iprot);
2738
              this.se.read(iprot);
2346
              } else { 
2739
            } else { 
2347
                TProtocolUtil.skip(iprot, field.type);
2740
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2348
              }
2741
            }
2349
              break;
2742
            break;
2350
          }
2743
          default:
2351
          iprot.readFieldEnd();
2744
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2352
        }
2745
        }
-
 
2746
        iprot.readFieldEnd();
2353
      }
2747
      }
2354
      iprot.readStructEnd();
2748
      iprot.readStructEnd();
2355
      validate();
2749
      validate();
2356
    }
2750
    }
2357
 
2751
 
2358
    public void write(TProtocol oprot) throws TException {
2752
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2359
      oprot.writeStructBegin(STRUCT_DESC);
2753
      oprot.writeStructBegin(STRUCT_DESC);
2360
 
2754
 
2361
      if (this.isSetSuccess()) {
2755
      if (this.isSetSuccess()) {
2362
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2756
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2363
        oprot.writeI64(this.success);
2757
        oprot.writeI64(this.success);
Line 2389... Line 2783...
2389
      first = false;
2783
      first = false;
2390
      sb.append(")");
2784
      sb.append(")");
2391
      return sb.toString();
2785
      return sb.toString();
2392
    }
2786
    }
2393
 
2787
 
2394
    public void validate() throws TException {
2788
    public void validate() throws org.apache.thrift.TException {
2395
      // check for required fields
2789
      // check for required fields
2396
    }
2790
    }
2397
 
2791
 
-
 
2792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2793
      try {
-
 
2794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2795
      } catch (org.apache.thrift.TException te) {
-
 
2796
        throw new java.io.IOException(te);
-
 
2797
      }
-
 
2798
    }
-
 
2799
 
-
 
2800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2801
      try {
-
 
2802
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2803
      } catch (org.apache.thrift.TException te) {
-
 
2804
        throw new java.io.IOException(te);
-
 
2805
      }
-
 
2806
    }
-
 
2807
 
2398
  }
2808
  }
2399
 
2809
 
2400
  public static class getEmailsToBeSent_args implements TBase<getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getEmailsToBeSent_args>   {
2810
  public static class getEmailsToBeSent_args implements org.apache.thrift.TBase<getEmailsToBeSent_args, getEmailsToBeSent_args._Fields>, java.io.Serializable, Cloneable   {
2401
    private static final TStruct STRUCT_DESC = new TStruct("getEmailsToBeSent_args");
2811
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_args");
2402
 
2812
 
2403
 
2813
 
2404
 
2814
 
2405
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2815
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2406
    public enum _Fields implements TFieldIdEnum {
2816
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2407
;
2817
;
2408
 
2818
 
2409
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2410
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2819
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2411
 
2820
 
2412
      static {
2821
      static {
2413
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2822
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2414
          byId.put((int)field._thriftId, field);
-
 
2415
          byName.put(field.getFieldName(), field);
2823
          byName.put(field.getFieldName(), field);
2416
        }
2824
        }
2417
      }
2825
      }
2418
 
2826
 
2419
      /**
2827
      /**
2420
       * Find the _Fields constant that matches fieldId, or null if its not found.
2828
       * Find the _Fields constant that matches fieldId, or null if its not found.
2421
       */
2829
       */
2422
      public static _Fields findByThriftId(int fieldId) {
2830
      public static _Fields findByThriftId(int fieldId) {
2423
        return byId.get(fieldId);
2831
        switch(fieldId) {
-
 
2832
          default:
-
 
2833
            return null;
-
 
2834
        }
2424
      }
2835
      }
2425
 
2836
 
2426
      /**
2837
      /**
2427
       * Find the _Fields constant that matches fieldId, throwing an exception
2838
       * Find the _Fields constant that matches fieldId, throwing an exception
2428
       * if it is not found.
2839
       * if it is not found.
Line 2454... Line 2865...
2454
 
2865
 
2455
      public String getFieldName() {
2866
      public String getFieldName() {
2456
        return _fieldName;
2867
        return _fieldName;
2457
      }
2868
      }
2458
    }
2869
    }
2459
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2870
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2460
    }});
-
 
2461
 
-
 
2462
    static {
2871
    static {
-
 
2872
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2873
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2463
      FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
2874
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_args.class, metaDataMap);
2464
    }
2875
    }
2465
 
2876
 
2466
    public getEmailsToBeSent_args() {
2877
    public getEmailsToBeSent_args() {
2467
    }
2878
    }
2468
 
2879
 
Line 2474... Line 2885...
2474
 
2885
 
2475
    public getEmailsToBeSent_args deepCopy() {
2886
    public getEmailsToBeSent_args deepCopy() {
2476
      return new getEmailsToBeSent_args(this);
2887
      return new getEmailsToBeSent_args(this);
2477
    }
2888
    }
2478
 
2889
 
2479
    @Deprecated
2890
    @Override
2480
    public getEmailsToBeSent_args clone() {
2891
    public void clear() {
2481
      return new getEmailsToBeSent_args(this);
-
 
2482
    }
2892
    }
2483
 
2893
 
2484
    public void setFieldValue(_Fields field, Object value) {
2894
    public void setFieldValue(_Fields field, Object value) {
2485
      switch (field) {
2895
      switch (field) {
2486
      }
2896
      }
2487
    }
2897
    }
2488
 
2898
 
2489
    public void setFieldValue(int fieldID, Object value) {
-
 
2490
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2491
    }
-
 
2492
 
-
 
2493
    public Object getFieldValue(_Fields field) {
2899
    public Object getFieldValue(_Fields field) {
2494
      switch (field) {
2900
      switch (field) {
2495
      }
2901
      }
2496
      throw new IllegalStateException();
2902
      throw new IllegalStateException();
2497
    }
2903
    }
2498
 
2904
 
2499
    public Object getFieldValue(int fieldId) {
-
 
2500
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2501
    }
-
 
2502
 
-
 
2503
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2905
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2504
    public boolean isSet(_Fields field) {
2906
    public boolean isSet(_Fields field) {
-
 
2907
      if (field == null) {
-
 
2908
        throw new IllegalArgumentException();
-
 
2909
      }
-
 
2910
 
2505
      switch (field) {
2911
      switch (field) {
2506
      }
2912
      }
2507
      throw new IllegalStateException();
2913
      throw new IllegalStateException();
2508
    }
2914
    }
2509
 
2915
 
2510
    public boolean isSet(int fieldID) {
-
 
2511
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2512
    }
-
 
2513
 
-
 
2514
    @Override
2916
    @Override
2515
    public boolean equals(Object that) {
2917
    public boolean equals(Object that) {
2516
      if (that == null)
2918
      if (that == null)
2517
        return false;
2919
        return false;
2518
      if (that instanceof getEmailsToBeSent_args)
2920
      if (that instanceof getEmailsToBeSent_args)
Line 2541... Line 2943...
2541
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
2943
      getEmailsToBeSent_args typedOther = (getEmailsToBeSent_args)other;
2542
 
2944
 
2543
      return 0;
2945
      return 0;
2544
    }
2946
    }
2545
 
2947
 
-
 
2948
    public _Fields fieldForId(int fieldId) {
-
 
2949
      return _Fields.findByThriftId(fieldId);
-
 
2950
    }
-
 
2951
 
2546
    public void read(TProtocol iprot) throws TException {
2952
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2547
      TField field;
2953
      org.apache.thrift.protocol.TField field;
2548
      iprot.readStructBegin();
2954
      iprot.readStructBegin();
2549
      while (true)
2955
      while (true)
2550
      {
2956
      {
2551
        field = iprot.readFieldBegin();
2957
        field = iprot.readFieldBegin();
2552
        if (field.type == TType.STOP) { 
2958
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2553
          break;
2959
          break;
2554
        }
2960
        }
2555
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2556
        if (fieldId == null) {
-
 
2557
          TProtocolUtil.skip(iprot, field.type);
-
 
2558
        } else {
-
 
2559
          switch (fieldId) {
2961
        switch (field.id) {
2560
          }
2962
          default:
2561
          iprot.readFieldEnd();
2963
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2562
        }
2964
        }
-
 
2965
        iprot.readFieldEnd();
2563
      }
2966
      }
2564
      iprot.readStructEnd();
2967
      iprot.readStructEnd();
2565
      validate();
2968
      validate();
2566
    }
2969
    }
2567
 
2970
 
2568
    public void write(TProtocol oprot) throws TException {
2971
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2569
      validate();
2972
      validate();
2570
 
2973
 
2571
      oprot.writeStructBegin(STRUCT_DESC);
2974
      oprot.writeStructBegin(STRUCT_DESC);
2572
      oprot.writeFieldStop();
2975
      oprot.writeFieldStop();
2573
      oprot.writeStructEnd();
2976
      oprot.writeStructEnd();
Line 2580... Line 2983...
2580
 
2983
 
2581
      sb.append(")");
2984
      sb.append(")");
2582
      return sb.toString();
2985
      return sb.toString();
2583
    }
2986
    }
2584
 
2987
 
2585
    public void validate() throws TException {
2988
    public void validate() throws org.apache.thrift.TException {
2586
      // check for required fields
2989
      // check for required fields
2587
    }
2990
    }
2588
 
2991
 
-
 
2992
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2993
      try {
-
 
2994
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2995
      } catch (org.apache.thrift.TException te) {
-
 
2996
        throw new java.io.IOException(te);
-
 
2997
      }
-
 
2998
    }
-
 
2999
 
-
 
3000
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3001
      try {
-
 
3002
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3003
      } catch (org.apache.thrift.TException te) {
-
 
3004
        throw new java.io.IOException(te);
-
 
3005
      }
-
 
3006
    }
-
 
3007
 
2589
  }
3008
  }
2590
 
3009
 
2591
  public static class getEmailsToBeSent_result implements TBase<getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable, Comparable<getEmailsToBeSent_result>   {
3010
  public static class getEmailsToBeSent_result implements org.apache.thrift.TBase<getEmailsToBeSent_result, getEmailsToBeSent_result._Fields>, java.io.Serializable, Cloneable   {
2592
    private static final TStruct STRUCT_DESC = new TStruct("getEmailsToBeSent_result");
3011
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmailsToBeSent_result");
2593
 
3012
 
2594
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
3013
    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);
2595
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
3014
    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);
2596
 
3015
 
2597
    private List<UserEmail> success;
3016
    private List<UserEmail> success; // required
2598
    private HelperServiceException se;
3017
    private HelperServiceException se; // required
2599
 
3018
 
2600
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3019
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2601
    public enum _Fields implements TFieldIdEnum {
3020
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2602
      SUCCESS((short)0, "success"),
3021
      SUCCESS((short)0, "success"),
2603
      SE((short)1, "se");
3022
      SE((short)1, "se");
2604
 
3023
 
2605
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3024
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2607
 
3025
 
2608
      static {
3026
      static {
2609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3027
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2610
          byId.put((int)field._thriftId, field);
-
 
2611
          byName.put(field.getFieldName(), field);
3028
          byName.put(field.getFieldName(), field);
2612
        }
3029
        }
2613
      }
3030
      }
2614
 
3031
 
2615
      /**
3032
      /**
2616
       * Find the _Fields constant that matches fieldId, or null if its not found.
3033
       * Find the _Fields constant that matches fieldId, or null if its not found.
2617
       */
3034
       */
2618
      public static _Fields findByThriftId(int fieldId) {
3035
      public static _Fields findByThriftId(int fieldId) {
2619
        return byId.get(fieldId);
3036
        switch(fieldId) {
-
 
3037
          case 0: // SUCCESS
-
 
3038
            return SUCCESS;
-
 
3039
          case 1: // SE
-
 
3040
            return SE;
-
 
3041
          default:
-
 
3042
            return null;
-
 
3043
        }
2620
      }
3044
      }
2621
 
3045
 
2622
      /**
3046
      /**
2623
       * Find the _Fields constant that matches fieldId, throwing an exception
3047
       * Find the _Fields constant that matches fieldId, throwing an exception
2624
       * if it is not found.
3048
       * if it is not found.
Line 2653... Line 3077...
2653
      }
3077
      }
2654
    }
3078
    }
2655
 
3079
 
2656
    // isset id assignments
3080
    // isset id assignments
2657
 
3081
 
2658
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3082
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2659
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
2660
          new ListMetaData(TType.LIST, 
-
 
2661
              new StructMetaData(TType.STRUCT, UserEmail.class))));
-
 
2662
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
2663
          new FieldValueMetaData(TType.STRUCT)));
-
 
2664
    }});
-
 
2665
 
-
 
2666
    static {
3083
    static {
-
 
3084
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3085
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3086
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
3087
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, UserEmail.class))));
-
 
3088
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3089
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
3090
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2667
      FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
3091
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmailsToBeSent_result.class, metaDataMap);
2668
    }
3092
    }
2669
 
3093
 
2670
    public getEmailsToBeSent_result() {
3094
    public getEmailsToBeSent_result() {
2671
    }
3095
    }
2672
 
3096
 
Line 2697... Line 3121...
2697
 
3121
 
2698
    public getEmailsToBeSent_result deepCopy() {
3122
    public getEmailsToBeSent_result deepCopy() {
2699
      return new getEmailsToBeSent_result(this);
3123
      return new getEmailsToBeSent_result(this);
2700
    }
3124
    }
2701
 
3125
 
2702
    @Deprecated
3126
    @Override
2703
    public getEmailsToBeSent_result clone() {
3127
    public void clear() {
2704
      return new getEmailsToBeSent_result(this);
3128
      this.success = null;
-
 
3129
      this.se = null;
2705
    }
3130
    }
2706
 
3131
 
2707
    public int getSuccessSize() {
3132
    public int getSuccessSize() {
2708
      return (this.success == null) ? 0 : this.success.size();
3133
      return (this.success == null) ? 0 : this.success.size();
2709
    }
3134
    }
Line 2721... Line 3146...
2721
 
3146
 
2722
    public List<UserEmail> getSuccess() {
3147
    public List<UserEmail> getSuccess() {
2723
      return this.success;
3148
      return this.success;
2724
    }
3149
    }
2725
 
3150
 
2726
    public getEmailsToBeSent_result setSuccess(List<UserEmail> success) {
3151
    public void setSuccess(List<UserEmail> success) {
2727
      this.success = success;
3152
      this.success = success;
2728
      return this;
-
 
2729
    }
3153
    }
2730
 
3154
 
2731
    public void unsetSuccess() {
3155
    public void unsetSuccess() {
2732
      this.success = null;
3156
      this.success = null;
2733
    }
3157
    }
2734
 
3158
 
2735
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
3159
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2736
    public boolean isSetSuccess() {
3160
    public boolean isSetSuccess() {
2737
      return this.success != null;
3161
      return this.success != null;
2738
    }
3162
    }
2739
 
3163
 
2740
    public void setSuccessIsSet(boolean value) {
3164
    public void setSuccessIsSet(boolean value) {
Line 2745... Line 3169...
2745
 
3169
 
2746
    public HelperServiceException getSe() {
3170
    public HelperServiceException getSe() {
2747
      return this.se;
3171
      return this.se;
2748
    }
3172
    }
2749
 
3173
 
2750
    public getEmailsToBeSent_result setSe(HelperServiceException se) {
3174
    public void setSe(HelperServiceException se) {
2751
      this.se = se;
3175
      this.se = se;
2752
      return this;
-
 
2753
    }
3176
    }
2754
 
3177
 
2755
    public void unsetSe() {
3178
    public void unsetSe() {
2756
      this.se = null;
3179
      this.se = null;
2757
    }
3180
    }
2758
 
3181
 
2759
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
3182
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
2760
    public boolean isSetSe() {
3183
    public boolean isSetSe() {
2761
      return this.se != null;
3184
      return this.se != null;
2762
    }
3185
    }
2763
 
3186
 
2764
    public void setSeIsSet(boolean value) {
3187
    public void setSeIsSet(boolean value) {
Line 2786... Line 3209...
2786
        break;
3209
        break;
2787
 
3210
 
2788
      }
3211
      }
2789
    }
3212
    }
2790
 
3213
 
2791
    public void setFieldValue(int fieldID, Object value) {
-
 
2792
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2793
    }
-
 
2794
 
-
 
2795
    public Object getFieldValue(_Fields field) {
3214
    public Object getFieldValue(_Fields field) {
2796
      switch (field) {
3215
      switch (field) {
2797
      case SUCCESS:
3216
      case SUCCESS:
2798
        return getSuccess();
3217
        return getSuccess();
2799
 
3218
 
Line 2802... Line 3221...
2802
 
3221
 
2803
      }
3222
      }
2804
      throw new IllegalStateException();
3223
      throw new IllegalStateException();
2805
    }
3224
    }
2806
 
3225
 
2807
    public Object getFieldValue(int fieldId) {
-
 
2808
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2809
    }
-
 
2810
 
-
 
2811
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3226
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2812
    public boolean isSet(_Fields field) {
3227
    public boolean isSet(_Fields field) {
-
 
3228
      if (field == null) {
-
 
3229
        throw new IllegalArgumentException();
-
 
3230
      }
-
 
3231
 
2813
      switch (field) {
3232
      switch (field) {
2814
      case SUCCESS:
3233
      case SUCCESS:
2815
        return isSetSuccess();
3234
        return isSetSuccess();
2816
      case SE:
3235
      case SE:
2817
        return isSetSe();
3236
        return isSetSe();
2818
      }
3237
      }
2819
      throw new IllegalStateException();
3238
      throw new IllegalStateException();
2820
    }
3239
    }
2821
 
3240
 
2822
    public boolean isSet(int fieldID) {
-
 
2823
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2824
    }
-
 
2825
 
-
 
2826
    @Override
3241
    @Override
2827
    public boolean equals(Object that) {
3242
    public boolean equals(Object that) {
2828
      if (that == null)
3243
      if (that == null)
2829
        return false;
3244
        return false;
2830
      if (that instanceof getEmailsToBeSent_result)
3245
      if (that instanceof getEmailsToBeSent_result)
Line 2868... Line 3283...
2868
      }
3283
      }
2869
 
3284
 
2870
      int lastComparison = 0;
3285
      int lastComparison = 0;
2871
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
3286
      getEmailsToBeSent_result typedOther = (getEmailsToBeSent_result)other;
2872
 
3287
 
2873
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
3288
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2874
      if (lastComparison != 0) {
3289
      if (lastComparison != 0) {
2875
        return lastComparison;
3290
        return lastComparison;
2876
      }
3291
      }
-
 
3292
      if (isSetSuccess()) {
2877
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
3293
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2878
      if (lastComparison != 0) {
3294
        if (lastComparison != 0) {
2879
        return lastComparison;
3295
          return lastComparison;
-
 
3296
        }
2880
      }
3297
      }
2881
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
3298
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
2882
      if (lastComparison != 0) {
3299
      if (lastComparison != 0) {
2883
        return lastComparison;
3300
        return lastComparison;
2884
      }
3301
      }
-
 
3302
      if (isSetSe()) {
2885
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
3303
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
2886
      if (lastComparison != 0) {
3304
        if (lastComparison != 0) {
2887
        return lastComparison;
3305
          return lastComparison;
-
 
3306
        }
2888
      }
3307
      }
2889
      return 0;
3308
      return 0;
2890
    }
3309
    }
2891
 
3310
 
-
 
3311
    public _Fields fieldForId(int fieldId) {
-
 
3312
      return _Fields.findByThriftId(fieldId);
-
 
3313
    }
-
 
3314
 
2892
    public void read(TProtocol iprot) throws TException {
3315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2893
      TField field;
3316
      org.apache.thrift.protocol.TField field;
2894
      iprot.readStructBegin();
3317
      iprot.readStructBegin();
2895
      while (true)
3318
      while (true)
2896
      {
3319
      {
2897
        field = iprot.readFieldBegin();
3320
        field = iprot.readFieldBegin();
2898
        if (field.type == TType.STOP) { 
3321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2899
          break;
3322
          break;
2900
        }
3323
        }
2901
        _Fields fieldId = _Fields.findByThriftId(field.id);
3324
        switch (field.id) {
2902
        if (fieldId == null) {
3325
          case 0: // SUCCESS
2903
          TProtocolUtil.skip(iprot, field.type);
3326
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2904
        } else {
3327
              {
2905
          switch (fieldId) {
3328
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
2906
            case SUCCESS:
3329
                this.success = new ArrayList<UserEmail>(_list8.size);
2907
              if (field.type == TType.LIST) {
3330
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
2908
                {
3331
                {
2909
                  TList _list8 = iprot.readListBegin();
-
 
2910
                  this.success = new ArrayList<UserEmail>(_list8.size);
-
 
2911
                  for (int _i9 = 0; _i9 < _list8.size; ++_i9)
-
 
2912
                  {
-
 
2913
                    UserEmail _elem10;
3332
                  UserEmail _elem10; // required
2914
                    _elem10 = new UserEmail();
3333
                  _elem10 = new UserEmail();
2915
                    _elem10.read(iprot);
3334
                  _elem10.read(iprot);
2916
                    this.success.add(_elem10);
3335
                  this.success.add(_elem10);
2917
                  }
-
 
2918
                  iprot.readListEnd();
-
 
2919
                }
3336
                }
2920
              } else { 
-
 
2921
                TProtocolUtil.skip(iprot, field.type);
-
 
2922
              }
-
 
2923
              break;
-
 
2924
            case SE:
-
 
2925
              if (field.type == TType.STRUCT) {
-
 
2926
                this.se = new HelperServiceException();
-
 
2927
                this.se.read(iprot);
3337
                iprot.readListEnd();
2928
              } else { 
-
 
2929
                TProtocolUtil.skip(iprot, field.type);
-
 
2930
              }
3338
              }
-
 
3339
            } else { 
-
 
3340
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3341
            }
2931
              break;
3342
            break;
-
 
3343
          case 1: // SE
-
 
3344
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
3345
              this.se = new HelperServiceException();
-
 
3346
              this.se.read(iprot);
-
 
3347
            } else { 
-
 
3348
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2932
          }
3349
            }
2933
          iprot.readFieldEnd();
3350
            break;
-
 
3351
          default:
-
 
3352
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2934
        }
3353
        }
-
 
3354
        iprot.readFieldEnd();
2935
      }
3355
      }
2936
      iprot.readStructEnd();
3356
      iprot.readStructEnd();
2937
      validate();
3357
      validate();
2938
    }
3358
    }
2939
 
3359
 
2940
    public void write(TProtocol oprot) throws TException {
3360
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2941
      oprot.writeStructBegin(STRUCT_DESC);
3361
      oprot.writeStructBegin(STRUCT_DESC);
2942
 
3362
 
2943
      if (this.isSetSuccess()) {
3363
      if (this.isSetSuccess()) {
2944
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3364
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2945
        {
3365
        {
2946
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
3366
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
2947
          for (UserEmail _iter11 : this.success)
3367
          for (UserEmail _iter11 : this.success)
2948
          {
3368
          {
2949
            _iter11.write(oprot);
3369
            _iter11.write(oprot);
2950
          }
3370
          }
2951
          oprot.writeListEnd();
3371
          oprot.writeListEnd();
Line 2982... Line 3402...
2982
      first = false;
3402
      first = false;
2983
      sb.append(")");
3403
      sb.append(")");
2984
      return sb.toString();
3404
      return sb.toString();
2985
    }
3405
    }
2986
 
3406
 
2987
    public void validate() throws TException {
3407
    public void validate() throws org.apache.thrift.TException {
2988
      // check for required fields
3408
      // check for required fields
2989
    }
3409
    }
2990
 
3410
 
-
 
3411
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3412
      try {
-
 
3413
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3414
      } catch (org.apache.thrift.TException te) {
-
 
3415
        throw new java.io.IOException(te);
-
 
3416
      }
-
 
3417
    }
-
 
3418
 
-
 
3419
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3420
      try {
-
 
3421
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3422
      } catch (org.apache.thrift.TException te) {
-
 
3423
        throw new java.io.IOException(te);
-
 
3424
      }
-
 
3425
    }
-
 
3426
 
2991
  }
3427
  }
2992
 
3428
 
2993
  public static class markEmailAsSent_args implements TBase<markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable, Comparable<markEmailAsSent_args>   {
3429
  public static class markEmailAsSent_args implements org.apache.thrift.TBase<markEmailAsSent_args, markEmailAsSent_args._Fields>, java.io.Serializable, Cloneable   {
2994
    private static final TStruct STRUCT_DESC = new TStruct("markEmailAsSent_args");
3430
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_args");
2995
 
3431
 
2996
    private static final TField EMAIL_ID_FIELD_DESC = new TField("emailId", TType.I64, (short)1);
3432
    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);
2997
 
3433
 
2998
    private long emailId;
3434
    private long emailId; // required
2999
 
3435
 
3000
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3436
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3001
    public enum _Fields implements TFieldIdEnum {
3437
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3002
      EMAIL_ID((short)1, "emailId");
3438
      EMAIL_ID((short)1, "emailId");
3003
 
3439
 
3004
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3005
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3440
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3006
 
3441
 
3007
      static {
3442
      static {
3008
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3443
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3009
          byId.put((int)field._thriftId, field);
-
 
3010
          byName.put(field.getFieldName(), field);
3444
          byName.put(field.getFieldName(), field);
3011
        }
3445
        }
3012
      }
3446
      }
3013
 
3447
 
3014
      /**
3448
      /**
3015
       * Find the _Fields constant that matches fieldId, or null if its not found.
3449
       * Find the _Fields constant that matches fieldId, or null if its not found.
3016
       */
3450
       */
3017
      public static _Fields findByThriftId(int fieldId) {
3451
      public static _Fields findByThriftId(int fieldId) {
3018
        return byId.get(fieldId);
3452
        switch(fieldId) {
-
 
3453
          case 1: // EMAIL_ID
-
 
3454
            return EMAIL_ID;
-
 
3455
          default:
-
 
3456
            return null;
-
 
3457
        }
3019
      }
3458
      }
3020
 
3459
 
3021
      /**
3460
      /**
3022
       * Find the _Fields constant that matches fieldId, throwing an exception
3461
       * Find the _Fields constant that matches fieldId, throwing an exception
3023
       * if it is not found.
3462
       * if it is not found.
Line 3054... Line 3493...
3054
 
3493
 
3055
    // isset id assignments
3494
    // isset id assignments
3056
    private static final int __EMAILID_ISSET_ID = 0;
3495
    private static final int __EMAILID_ISSET_ID = 0;
3057
    private BitSet __isset_bit_vector = new BitSet(1);
3496
    private BitSet __isset_bit_vector = new BitSet(1);
3058
 
3497
 
3059
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3498
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3060
      put(_Fields.EMAIL_ID, new FieldMetaData("emailId", TFieldRequirementType.DEFAULT, 
-
 
3061
          new FieldValueMetaData(TType.I64)));
-
 
3062
    }});
-
 
3063
 
-
 
3064
    static {
3499
    static {
-
 
3500
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3501
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3502
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3503
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3065
      FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
3504
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_args.class, metaDataMap);
3066
    }
3505
    }
3067
 
3506
 
3068
    public markEmailAsSent_args() {
3507
    public markEmailAsSent_args() {
3069
    }
3508
    }
3070
 
3509
 
Line 3087... Line 3526...
3087
 
3526
 
3088
    public markEmailAsSent_args deepCopy() {
3527
    public markEmailAsSent_args deepCopy() {
3089
      return new markEmailAsSent_args(this);
3528
      return new markEmailAsSent_args(this);
3090
    }
3529
    }
3091
 
3530
 
3092
    @Deprecated
3531
    @Override
3093
    public markEmailAsSent_args clone() {
3532
    public void clear() {
3094
      return new markEmailAsSent_args(this);
3533
      setEmailIdIsSet(false);
-
 
3534
      this.emailId = 0;
3095
    }
3535
    }
3096
 
3536
 
3097
    public long getEmailId() {
3537
    public long getEmailId() {
3098
      return this.emailId;
3538
      return this.emailId;
3099
    }
3539
    }
3100
 
3540
 
3101
    public markEmailAsSent_args setEmailId(long emailId) {
3541
    public void setEmailId(long emailId) {
3102
      this.emailId = emailId;
3542
      this.emailId = emailId;
3103
      setEmailIdIsSet(true);
3543
      setEmailIdIsSet(true);
3104
      return this;
-
 
3105
    }
3544
    }
3106
 
3545
 
3107
    public void unsetEmailId() {
3546
    public void unsetEmailId() {
3108
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
3547
      __isset_bit_vector.clear(__EMAILID_ISSET_ID);
3109
    }
3548
    }
3110
 
3549
 
3111
    /** Returns true if field emailId is set (has been asigned a value) and false otherwise */
3550
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
3112
    public boolean isSetEmailId() {
3551
    public boolean isSetEmailId() {
3113
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
3552
      return __isset_bit_vector.get(__EMAILID_ISSET_ID);
3114
    }
3553
    }
3115
 
3554
 
3116
    public void setEmailIdIsSet(boolean value) {
3555
    public void setEmailIdIsSet(boolean value) {
Line 3128... Line 3567...
3128
        break;
3567
        break;
3129
 
3568
 
3130
      }
3569
      }
3131
    }
3570
    }
3132
 
3571
 
3133
    public void setFieldValue(int fieldID, Object value) {
-
 
3134
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3135
    }
-
 
3136
 
-
 
3137
    public Object getFieldValue(_Fields field) {
3572
    public Object getFieldValue(_Fields field) {
3138
      switch (field) {
3573
      switch (field) {
3139
      case EMAIL_ID:
3574
      case EMAIL_ID:
3140
        return new Long(getEmailId());
3575
        return Long.valueOf(getEmailId());
3141
 
3576
 
3142
      }
3577
      }
3143
      throw new IllegalStateException();
3578
      throw new IllegalStateException();
3144
    }
3579
    }
3145
 
3580
 
3146
    public Object getFieldValue(int fieldId) {
-
 
3147
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3148
    }
-
 
3149
 
-
 
3150
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3581
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3151
    public boolean isSet(_Fields field) {
3582
    public boolean isSet(_Fields field) {
-
 
3583
      if (field == null) {
-
 
3584
        throw new IllegalArgumentException();
-
 
3585
      }
-
 
3586
 
3152
      switch (field) {
3587
      switch (field) {
3153
      case EMAIL_ID:
3588
      case EMAIL_ID:
3154
        return isSetEmailId();
3589
        return isSetEmailId();
3155
      }
3590
      }
3156
      throw new IllegalStateException();
3591
      throw new IllegalStateException();
3157
    }
3592
    }
3158
 
3593
 
3159
    public boolean isSet(int fieldID) {
-
 
3160
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3161
    }
-
 
3162
 
-
 
3163
    @Override
3594
    @Override
3164
    public boolean equals(Object that) {
3595
    public boolean equals(Object that) {
3165
      if (that == null)
3596
      if (that == null)
3166
        return false;
3597
        return false;
3167
      if (that instanceof markEmailAsSent_args)
3598
      if (that instanceof markEmailAsSent_args)
Line 3196... Line 3627...
3196
      }
3627
      }
3197
 
3628
 
3198
      int lastComparison = 0;
3629
      int lastComparison = 0;
3199
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
3630
      markEmailAsSent_args typedOther = (markEmailAsSent_args)other;
3200
 
3631
 
3201
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(isSetEmailId());
3632
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
3202
      if (lastComparison != 0) {
3633
      if (lastComparison != 0) {
3203
        return lastComparison;
3634
        return lastComparison;
3204
      }
3635
      }
-
 
3636
      if (isSetEmailId()) {
3205
      lastComparison = TBaseHelper.compareTo(emailId, typedOther.emailId);
3637
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
3206
      if (lastComparison != 0) {
3638
        if (lastComparison != 0) {
3207
        return lastComparison;
3639
          return lastComparison;
-
 
3640
        }
3208
      }
3641
      }
3209
      return 0;
3642
      return 0;
3210
    }
3643
    }
3211
 
3644
 
-
 
3645
    public _Fields fieldForId(int fieldId) {
-
 
3646
      return _Fields.findByThriftId(fieldId);
-
 
3647
    }
-
 
3648
 
3212
    public void read(TProtocol iprot) throws TException {
3649
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3213
      TField field;
3650
      org.apache.thrift.protocol.TField field;
3214
      iprot.readStructBegin();
3651
      iprot.readStructBegin();
3215
      while (true)
3652
      while (true)
3216
      {
3653
      {
3217
        field = iprot.readFieldBegin();
3654
        field = iprot.readFieldBegin();
3218
        if (field.type == TType.STOP) { 
3655
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3219
          break;
3656
          break;
3220
        }
3657
        }
3221
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3222
        if (fieldId == null) {
-
 
3223
          TProtocolUtil.skip(iprot, field.type);
-
 
3224
        } else {
-
 
3225
          switch (fieldId) {
3658
        switch (field.id) {
3226
            case EMAIL_ID:
3659
          case 1: // EMAIL_ID
3227
              if (field.type == TType.I64) {
3660
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3228
                this.emailId = iprot.readI64();
3661
              this.emailId = iprot.readI64();
3229
                setEmailIdIsSet(true);
3662
              setEmailIdIsSet(true);
3230
              } else { 
3663
            } else { 
3231
                TProtocolUtil.skip(iprot, field.type);
3664
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3232
              }
3665
            }
3233
              break;
3666
            break;
3234
          }
3667
          default:
3235
          iprot.readFieldEnd();
3668
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3236
        }
3669
        }
-
 
3670
        iprot.readFieldEnd();
3237
      }
3671
      }
3238
      iprot.readStructEnd();
3672
      iprot.readStructEnd();
3239
      validate();
3673
      validate();
3240
    }
3674
    }
3241
 
3675
 
3242
    public void write(TProtocol oprot) throws TException {
3676
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3243
      validate();
3677
      validate();
3244
 
3678
 
3245
      oprot.writeStructBegin(STRUCT_DESC);
3679
      oprot.writeStructBegin(STRUCT_DESC);
3246
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
3680
      oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
3247
      oprot.writeI64(this.emailId);
3681
      oprot.writeI64(this.emailId);
Line 3260... Line 3694...
3260
      first = false;
3694
      first = false;
3261
      sb.append(")");
3695
      sb.append(")");
3262
      return sb.toString();
3696
      return sb.toString();
3263
    }
3697
    }
3264
 
3698
 
3265
    public void validate() throws TException {
3699
    public void validate() throws org.apache.thrift.TException {
3266
      // check for required fields
3700
      // check for required fields
3267
    }
3701
    }
3268
 
3702
 
-
 
3703
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3704
      try {
-
 
3705
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3706
      } catch (org.apache.thrift.TException te) {
-
 
3707
        throw new java.io.IOException(te);
-
 
3708
      }
-
 
3709
    }
-
 
3710
 
-
 
3711
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3712
      try {
-
 
3713
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
3714
        __isset_bit_vector = new BitSet(1);
-
 
3715
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3716
      } catch (org.apache.thrift.TException te) {
-
 
3717
        throw new java.io.IOException(te);
-
 
3718
      }
-
 
3719
    }
-
 
3720
 
3269
  }
3721
  }
3270
 
3722
 
3271
  public static class markEmailAsSent_result implements TBase<markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable, Comparable<markEmailAsSent_result>   {
3723
  public static class markEmailAsSent_result implements org.apache.thrift.TBase<markEmailAsSent_result, markEmailAsSent_result._Fields>, java.io.Serializable, Cloneable   {
3272
    private static final TStruct STRUCT_DESC = new TStruct("markEmailAsSent_result");
3724
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markEmailAsSent_result");
3273
 
3725
 
3274
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
3726
    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);
3275
 
3727
 
3276
    private HelperServiceException se;
3728
    private HelperServiceException se; // required
3277
 
3729
 
3278
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3730
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3279
    public enum _Fields implements TFieldIdEnum {
3731
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3280
      SE((short)1, "se");
3732
      SE((short)1, "se");
3281
 
3733
 
3282
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3283
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3734
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3284
 
3735
 
3285
      static {
3736
      static {
3286
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3737
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3287
          byId.put((int)field._thriftId, field);
-
 
3288
          byName.put(field.getFieldName(), field);
3738
          byName.put(field.getFieldName(), field);
3289
        }
3739
        }
3290
      }
3740
      }
3291
 
3741
 
3292
      /**
3742
      /**
3293
       * Find the _Fields constant that matches fieldId, or null if its not found.
3743
       * Find the _Fields constant that matches fieldId, or null if its not found.
3294
       */
3744
       */
3295
      public static _Fields findByThriftId(int fieldId) {
3745
      public static _Fields findByThriftId(int fieldId) {
3296
        return byId.get(fieldId);
3746
        switch(fieldId) {
-
 
3747
          case 1: // SE
-
 
3748
            return SE;
-
 
3749
          default:
-
 
3750
            return null;
-
 
3751
        }
3297
      }
3752
      }
3298
 
3753
 
3299
      /**
3754
      /**
3300
       * Find the _Fields constant that matches fieldId, throwing an exception
3755
       * Find the _Fields constant that matches fieldId, throwing an exception
3301
       * if it is not found.
3756
       * if it is not found.
Line 3330... Line 3785...
3330
      }
3785
      }
3331
    }
3786
    }
3332
 
3787
 
3333
    // isset id assignments
3788
    // isset id assignments
3334
 
3789
 
3335
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3790
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3336
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
3337
          new FieldValueMetaData(TType.STRUCT)));
-
 
3338
    }});
-
 
3339
 
-
 
3340
    static {
3791
    static {
-
 
3792
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3793
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3794
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
3795
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3341
      FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
3796
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markEmailAsSent_result.class, metaDataMap);
3342
    }
3797
    }
3343
 
3798
 
3344
    public markEmailAsSent_result() {
3799
    public markEmailAsSent_result() {
3345
    }
3800
    }
3346
 
3801
 
Line 3362... Line 3817...
3362
 
3817
 
3363
    public markEmailAsSent_result deepCopy() {
3818
    public markEmailAsSent_result deepCopy() {
3364
      return new markEmailAsSent_result(this);
3819
      return new markEmailAsSent_result(this);
3365
    }
3820
    }
3366
 
3821
 
3367
    @Deprecated
3822
    @Override
3368
    public markEmailAsSent_result clone() {
3823
    public void clear() {
3369
      return new markEmailAsSent_result(this);
3824
      this.se = null;
3370
    }
3825
    }
3371
 
3826
 
3372
    public HelperServiceException getSe() {
3827
    public HelperServiceException getSe() {
3373
      return this.se;
3828
      return this.se;
3374
    }
3829
    }
3375
 
3830
 
3376
    public markEmailAsSent_result setSe(HelperServiceException se) {
3831
    public void setSe(HelperServiceException se) {
3377
      this.se = se;
3832
      this.se = se;
3378
      return this;
-
 
3379
    }
3833
    }
3380
 
3834
 
3381
    public void unsetSe() {
3835
    public void unsetSe() {
3382
      this.se = null;
3836
      this.se = null;
3383
    }
3837
    }
3384
 
3838
 
3385
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
3839
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
3386
    public boolean isSetSe() {
3840
    public boolean isSetSe() {
3387
      return this.se != null;
3841
      return this.se != null;
3388
    }
3842
    }
3389
 
3843
 
3390
    public void setSeIsSet(boolean value) {
3844
    public void setSeIsSet(boolean value) {
Line 3404... Line 3858...
3404
        break;
3858
        break;
3405
 
3859
 
3406
      }
3860
      }
3407
    }
3861
    }
3408
 
3862
 
3409
    public void setFieldValue(int fieldID, Object value) {
-
 
3410
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3411
    }
-
 
3412
 
-
 
3413
    public Object getFieldValue(_Fields field) {
3863
    public Object getFieldValue(_Fields field) {
3414
      switch (field) {
3864
      switch (field) {
3415
      case SE:
3865
      case SE:
3416
        return getSe();
3866
        return getSe();
3417
 
3867
 
3418
      }
3868
      }
3419
      throw new IllegalStateException();
3869
      throw new IllegalStateException();
3420
    }
3870
    }
3421
 
3871
 
3422
    public Object getFieldValue(int fieldId) {
-
 
3423
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3424
    }
-
 
3425
 
-
 
3426
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3427
    public boolean isSet(_Fields field) {
3873
    public boolean isSet(_Fields field) {
-
 
3874
      if (field == null) {
-
 
3875
        throw new IllegalArgumentException();
-
 
3876
      }
-
 
3877
 
3428
      switch (field) {
3878
      switch (field) {
3429
      case SE:
3879
      case SE:
3430
        return isSetSe();
3880
        return isSetSe();
3431
      }
3881
      }
3432
      throw new IllegalStateException();
3882
      throw new IllegalStateException();
3433
    }
3883
    }
3434
 
3884
 
3435
    public boolean isSet(int fieldID) {
-
 
3436
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3437
    }
-
 
3438
 
-
 
3439
    @Override
3885
    @Override
3440
    public boolean equals(Object that) {
3886
    public boolean equals(Object that) {
3441
      if (that == null)
3887
      if (that == null)
3442
        return false;
3888
        return false;
3443
      if (that instanceof markEmailAsSent_result)
3889
      if (that instanceof markEmailAsSent_result)
Line 3472... Line 3918...
3472
      }
3918
      }
3473
 
3919
 
3474
      int lastComparison = 0;
3920
      int lastComparison = 0;
3475
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
3921
      markEmailAsSent_result typedOther = (markEmailAsSent_result)other;
3476
 
3922
 
3477
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
3923
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
3478
      if (lastComparison != 0) {
3924
      if (lastComparison != 0) {
3479
        return lastComparison;
3925
        return lastComparison;
3480
      }
3926
      }
-
 
3927
      if (isSetSe()) {
3481
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
3928
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3482
      if (lastComparison != 0) {
3929
        if (lastComparison != 0) {
3483
        return lastComparison;
3930
          return lastComparison;
-
 
3931
        }
3484
      }
3932
      }
3485
      return 0;
3933
      return 0;
3486
    }
3934
    }
3487
 
3935
 
-
 
3936
    public _Fields fieldForId(int fieldId) {
-
 
3937
      return _Fields.findByThriftId(fieldId);
-
 
3938
    }
-
 
3939
 
3488
    public void read(TProtocol iprot) throws TException {
3940
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3489
      TField field;
3941
      org.apache.thrift.protocol.TField field;
3490
      iprot.readStructBegin();
3942
      iprot.readStructBegin();
3491
      while (true)
3943
      while (true)
3492
      {
3944
      {
3493
        field = iprot.readFieldBegin();
3945
        field = iprot.readFieldBegin();
3494
        if (field.type == TType.STOP) { 
3946
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3495
          break;
3947
          break;
3496
        }
3948
        }
3497
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3498
        if (fieldId == null) {
-
 
3499
          TProtocolUtil.skip(iprot, field.type);
-
 
3500
        } else {
-
 
3501
          switch (fieldId) {
3949
        switch (field.id) {
3502
            case SE:
3950
          case 1: // SE
3503
              if (field.type == TType.STRUCT) {
3951
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3504
                this.se = new HelperServiceException();
3952
              this.se = new HelperServiceException();
3505
                this.se.read(iprot);
3953
              this.se.read(iprot);
3506
              } else { 
3954
            } else { 
3507
                TProtocolUtil.skip(iprot, field.type);
3955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3508
              }
3956
            }
3509
              break;
3957
            break;
3510
          }
3958
          default:
3511
          iprot.readFieldEnd();
3959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3512
        }
3960
        }
-
 
3961
        iprot.readFieldEnd();
3513
      }
3962
      }
3514
      iprot.readStructEnd();
3963
      iprot.readStructEnd();
3515
      validate();
3964
      validate();
3516
    }
3965
    }
3517
 
3966
 
3518
    public void write(TProtocol oprot) throws TException {
3967
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3519
      oprot.writeStructBegin(STRUCT_DESC);
3968
      oprot.writeStructBegin(STRUCT_DESC);
3520
 
3969
 
3521
      if (this.isSetSe()) {
3970
      if (this.isSetSe()) {
3522
        oprot.writeFieldBegin(SE_FIELD_DESC);
3971
        oprot.writeFieldBegin(SE_FIELD_DESC);
3523
        this.se.write(oprot);
3972
        this.se.write(oprot);
Line 3541... Line 3990...
3541
      first = false;
3990
      first = false;
3542
      sb.append(")");
3991
      sb.append(")");
3543
      return sb.toString();
3992
      return sb.toString();
3544
    }
3993
    }
3545
 
3994
 
3546
    public void validate() throws TException {
3995
    public void validate() throws org.apache.thrift.TException {
3547
      // check for required fields
3996
      // check for required fields
3548
    }
3997
    }
3549
 
3998
 
-
 
3999
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4000
      try {
-
 
4001
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4002
      } catch (org.apache.thrift.TException te) {
-
 
4003
        throw new java.io.IOException(te);
-
 
4004
      }
-
 
4005
    }
-
 
4006
 
-
 
4007
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4008
      try {
-
 
4009
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4010
      } catch (org.apache.thrift.TException te) {
-
 
4011
        throw new java.io.IOException(te);
-
 
4012
      }
-
 
4013
    }
-
 
4014
 
3550
  }
4015
  }
3551
 
4016
 
3552
  public static class sendMail_args implements TBase<sendMail_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendMail_args>   {
4017
  public static class sendMail_args implements org.apache.thrift.TBase<sendMail_args, sendMail_args._Fields>, java.io.Serializable, Cloneable   {
3553
    private static final TStruct STRUCT_DESC = new TStruct("sendMail_args");
4018
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_args");
3554
 
4019
 
3555
    private static final TField MAIL_FIELD_DESC = new TField("mail", TType.STRUCT, (short)1);
4020
    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);
3556
 
4021
 
3557
    private Mail mail;
4022
    private Mail mail; // required
3558
 
4023
 
3559
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4024
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3560
    public enum _Fields implements TFieldIdEnum {
4025
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3561
      MAIL((short)1, "mail");
4026
      MAIL((short)1, "mail");
3562
 
4027
 
3563
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3564
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4028
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3565
 
4029
 
3566
      static {
4030
      static {
3567
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4031
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3568
          byId.put((int)field._thriftId, field);
-
 
3569
          byName.put(field.getFieldName(), field);
4032
          byName.put(field.getFieldName(), field);
3570
        }
4033
        }
3571
      }
4034
      }
3572
 
4035
 
3573
      /**
4036
      /**
3574
       * Find the _Fields constant that matches fieldId, or null if its not found.
4037
       * Find the _Fields constant that matches fieldId, or null if its not found.
3575
       */
4038
       */
3576
      public static _Fields findByThriftId(int fieldId) {
4039
      public static _Fields findByThriftId(int fieldId) {
3577
        return byId.get(fieldId);
4040
        switch(fieldId) {
-
 
4041
          case 1: // MAIL
-
 
4042
            return MAIL;
-
 
4043
          default:
-
 
4044
            return null;
-
 
4045
        }
3578
      }
4046
      }
3579
 
4047
 
3580
      /**
4048
      /**
3581
       * Find the _Fields constant that matches fieldId, throwing an exception
4049
       * Find the _Fields constant that matches fieldId, throwing an exception
3582
       * if it is not found.
4050
       * if it is not found.
Line 3611... Line 4079...
3611
      }
4079
      }
3612
    }
4080
    }
3613
 
4081
 
3614
    // isset id assignments
4082
    // isset id assignments
3615
 
4083
 
3616
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4084
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3617
      put(_Fields.MAIL, new FieldMetaData("mail", TFieldRequirementType.DEFAULT, 
-
 
3618
          new StructMetaData(TType.STRUCT, Mail.class)));
-
 
3619
    }});
-
 
3620
 
-
 
3621
    static {
4085
    static {
-
 
4086
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4087
      tmpMap.put(_Fields.MAIL, new org.apache.thrift.meta_data.FieldMetaData("mail", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4088
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Mail.class)));
-
 
4089
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3622
      FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
4090
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_args.class, metaDataMap);
3623
    }
4091
    }
3624
 
4092
 
3625
    public sendMail_args() {
4093
    public sendMail_args() {
3626
    }
4094
    }
3627
 
4095
 
Line 3643... Line 4111...
3643
 
4111
 
3644
    public sendMail_args deepCopy() {
4112
    public sendMail_args deepCopy() {
3645
      return new sendMail_args(this);
4113
      return new sendMail_args(this);
3646
    }
4114
    }
3647
 
4115
 
3648
    @Deprecated
4116
    @Override
3649
    public sendMail_args clone() {
4117
    public void clear() {
3650
      return new sendMail_args(this);
4118
      this.mail = null;
3651
    }
4119
    }
3652
 
4120
 
3653
    public Mail getMail() {
4121
    public Mail getMail() {
3654
      return this.mail;
4122
      return this.mail;
3655
    }
4123
    }
3656
 
4124
 
3657
    public sendMail_args setMail(Mail mail) {
4125
    public void setMail(Mail mail) {
3658
      this.mail = mail;
4126
      this.mail = mail;
3659
      return this;
-
 
3660
    }
4127
    }
3661
 
4128
 
3662
    public void unsetMail() {
4129
    public void unsetMail() {
3663
      this.mail = null;
4130
      this.mail = null;
3664
    }
4131
    }
3665
 
4132
 
3666
    /** Returns true if field mail is set (has been asigned a value) and false otherwise */
4133
    /** Returns true if field mail is set (has been assigned a value) and false otherwise */
3667
    public boolean isSetMail() {
4134
    public boolean isSetMail() {
3668
      return this.mail != null;
4135
      return this.mail != null;
3669
    }
4136
    }
3670
 
4137
 
3671
    public void setMailIsSet(boolean value) {
4138
    public void setMailIsSet(boolean value) {
Line 3685... Line 4152...
3685
        break;
4152
        break;
3686
 
4153
 
3687
      }
4154
      }
3688
    }
4155
    }
3689
 
4156
 
3690
    public void setFieldValue(int fieldID, Object value) {
-
 
3691
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3692
    }
-
 
3693
 
-
 
3694
    public Object getFieldValue(_Fields field) {
4157
    public Object getFieldValue(_Fields field) {
3695
      switch (field) {
4158
      switch (field) {
3696
      case MAIL:
4159
      case MAIL:
3697
        return getMail();
4160
        return getMail();
3698
 
4161
 
3699
      }
4162
      }
3700
      throw new IllegalStateException();
4163
      throw new IllegalStateException();
3701
    }
4164
    }
3702
 
4165
 
3703
    public Object getFieldValue(int fieldId) {
-
 
3704
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3705
    }
-
 
3706
 
-
 
3707
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4166
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3708
    public boolean isSet(_Fields field) {
4167
    public boolean isSet(_Fields field) {
-
 
4168
      if (field == null) {
-
 
4169
        throw new IllegalArgumentException();
-
 
4170
      }
-
 
4171
 
3709
      switch (field) {
4172
      switch (field) {
3710
      case MAIL:
4173
      case MAIL:
3711
        return isSetMail();
4174
        return isSetMail();
3712
      }
4175
      }
3713
      throw new IllegalStateException();
4176
      throw new IllegalStateException();
3714
    }
4177
    }
3715
 
4178
 
3716
    public boolean isSet(int fieldID) {
-
 
3717
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3718
    }
-
 
3719
 
-
 
3720
    @Override
4179
    @Override
3721
    public boolean equals(Object that) {
4180
    public boolean equals(Object that) {
3722
      if (that == null)
4181
      if (that == null)
3723
        return false;
4182
        return false;
3724
      if (that instanceof sendMail_args)
4183
      if (that instanceof sendMail_args)
Line 3753... Line 4212...
3753
      }
4212
      }
3754
 
4213
 
3755
      int lastComparison = 0;
4214
      int lastComparison = 0;
3756
      sendMail_args typedOther = (sendMail_args)other;
4215
      sendMail_args typedOther = (sendMail_args)other;
3757
 
4216
 
3758
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(isSetMail());
4217
      lastComparison = Boolean.valueOf(isSetMail()).compareTo(typedOther.isSetMail());
3759
      if (lastComparison != 0) {
4218
      if (lastComparison != 0) {
3760
        return lastComparison;
4219
        return lastComparison;
3761
      }
4220
      }
-
 
4221
      if (isSetMail()) {
3762
      lastComparison = TBaseHelper.compareTo(mail, typedOther.mail);
4222
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.mail, typedOther.mail);
3763
      if (lastComparison != 0) {
4223
        if (lastComparison != 0) {
3764
        return lastComparison;
4224
          return lastComparison;
-
 
4225
        }
3765
      }
4226
      }
3766
      return 0;
4227
      return 0;
3767
    }
4228
    }
3768
 
4229
 
-
 
4230
    public _Fields fieldForId(int fieldId) {
-
 
4231
      return _Fields.findByThriftId(fieldId);
-
 
4232
    }
-
 
4233
 
3769
    public void read(TProtocol iprot) throws TException {
4234
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3770
      TField field;
4235
      org.apache.thrift.protocol.TField field;
3771
      iprot.readStructBegin();
4236
      iprot.readStructBegin();
3772
      while (true)
4237
      while (true)
3773
      {
4238
      {
3774
        field = iprot.readFieldBegin();
4239
        field = iprot.readFieldBegin();
3775
        if (field.type == TType.STOP) { 
4240
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3776
          break;
4241
          break;
3777
        }
4242
        }
3778
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3779
        if (fieldId == null) {
-
 
3780
          TProtocolUtil.skip(iprot, field.type);
-
 
3781
        } else {
-
 
3782
          switch (fieldId) {
4243
        switch (field.id) {
3783
            case MAIL:
4244
          case 1: // MAIL
3784
              if (field.type == TType.STRUCT) {
4245
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3785
                this.mail = new Mail();
4246
              this.mail = new Mail();
3786
                this.mail.read(iprot);
4247
              this.mail.read(iprot);
3787
              } else { 
4248
            } else { 
3788
                TProtocolUtil.skip(iprot, field.type);
4249
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3789
              }
4250
            }
3790
              break;
4251
            break;
3791
          }
4252
          default:
3792
          iprot.readFieldEnd();
4253
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3793
        }
4254
        }
-
 
4255
        iprot.readFieldEnd();
3794
      }
4256
      }
3795
      iprot.readStructEnd();
4257
      iprot.readStructEnd();
3796
      validate();
4258
      validate();
3797
    }
4259
    }
3798
 
4260
 
3799
    public void write(TProtocol oprot) throws TException {
4261
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3800
      validate();
4262
      validate();
3801
 
4263
 
3802
      oprot.writeStructBegin(STRUCT_DESC);
4264
      oprot.writeStructBegin(STRUCT_DESC);
3803
      if (this.mail != null) {
4265
      if (this.mail != null) {
3804
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
4266
        oprot.writeFieldBegin(MAIL_FIELD_DESC);
Line 3823... Line 4285...
3823
      first = false;
4285
      first = false;
3824
      sb.append(")");
4286
      sb.append(")");
3825
      return sb.toString();
4287
      return sb.toString();
3826
    }
4288
    }
3827
 
4289
 
3828
    public void validate() throws TException {
4290
    public void validate() throws org.apache.thrift.TException {
3829
      // check for required fields
4291
      // check for required fields
3830
    }
4292
    }
3831
 
4293
 
-
 
4294
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4295
      try {
-
 
4296
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4297
      } catch (org.apache.thrift.TException te) {
-
 
4298
        throw new java.io.IOException(te);
-
 
4299
      }
-
 
4300
    }
-
 
4301
 
-
 
4302
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4303
      try {
-
 
4304
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4305
      } catch (org.apache.thrift.TException te) {
-
 
4306
        throw new java.io.IOException(te);
-
 
4307
      }
-
 
4308
    }
-
 
4309
 
3832
  }
4310
  }
3833
 
4311
 
3834
  public static class sendMail_result implements TBase<sendMail_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendMail_result>   {
4312
  public static class sendMail_result implements org.apache.thrift.TBase<sendMail_result, sendMail_result._Fields>, java.io.Serializable, Cloneable   {
3835
    private static final TStruct STRUCT_DESC = new TStruct("sendMail_result");
4313
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendMail_result");
3836
 
4314
 
3837
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
4315
    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);
3838
 
4316
 
3839
    private HelperServiceException se;
4317
    private HelperServiceException se; // required
3840
 
4318
 
3841
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4319
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3842
    public enum _Fields implements TFieldIdEnum {
4320
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3843
      SE((short)1, "se");
4321
      SE((short)1, "se");
3844
 
4322
 
3845
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3846
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4323
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3847
 
4324
 
3848
      static {
4325
      static {
3849
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4326
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3850
          byId.put((int)field._thriftId, field);
-
 
3851
          byName.put(field.getFieldName(), field);
4327
          byName.put(field.getFieldName(), field);
3852
        }
4328
        }
3853
      }
4329
      }
3854
 
4330
 
3855
      /**
4331
      /**
3856
       * Find the _Fields constant that matches fieldId, or null if its not found.
4332
       * Find the _Fields constant that matches fieldId, or null if its not found.
3857
       */
4333
       */
3858
      public static _Fields findByThriftId(int fieldId) {
4334
      public static _Fields findByThriftId(int fieldId) {
3859
        return byId.get(fieldId);
4335
        switch(fieldId) {
-
 
4336
          case 1: // SE
-
 
4337
            return SE;
-
 
4338
          default:
-
 
4339
            return null;
-
 
4340
        }
3860
      }
4341
      }
3861
 
4342
 
3862
      /**
4343
      /**
3863
       * Find the _Fields constant that matches fieldId, throwing an exception
4344
       * Find the _Fields constant that matches fieldId, throwing an exception
3864
       * if it is not found.
4345
       * if it is not found.
Line 3893... Line 4374...
3893
      }
4374
      }
3894
    }
4375
    }
3895
 
4376
 
3896
    // isset id assignments
4377
    // isset id assignments
3897
 
4378
 
3898
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4379
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3899
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
3900
          new FieldValueMetaData(TType.STRUCT)));
-
 
3901
    }});
-
 
3902
 
-
 
3903
    static {
4380
    static {
-
 
4381
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4382
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4383
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
4384
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3904
      FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
4385
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendMail_result.class, metaDataMap);
3905
    }
4386
    }
3906
 
4387
 
3907
    public sendMail_result() {
4388
    public sendMail_result() {
3908
    }
4389
    }
3909
 
4390
 
Line 3925... Line 4406...
3925
 
4406
 
3926
    public sendMail_result deepCopy() {
4407
    public sendMail_result deepCopy() {
3927
      return new sendMail_result(this);
4408
      return new sendMail_result(this);
3928
    }
4409
    }
3929
 
4410
 
3930
    @Deprecated
4411
    @Override
3931
    public sendMail_result clone() {
4412
    public void clear() {
3932
      return new sendMail_result(this);
4413
      this.se = null;
3933
    }
4414
    }
3934
 
4415
 
3935
    public HelperServiceException getSe() {
4416
    public HelperServiceException getSe() {
3936
      return this.se;
4417
      return this.se;
3937
    }
4418
    }
3938
 
4419
 
3939
    public sendMail_result setSe(HelperServiceException se) {
4420
    public void setSe(HelperServiceException se) {
3940
      this.se = se;
4421
      this.se = se;
3941
      return this;
-
 
3942
    }
4422
    }
3943
 
4423
 
3944
    public void unsetSe() {
4424
    public void unsetSe() {
3945
      this.se = null;
4425
      this.se = null;
3946
    }
4426
    }
3947
 
4427
 
3948
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
4428
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
3949
    public boolean isSetSe() {
4429
    public boolean isSetSe() {
3950
      return this.se != null;
4430
      return this.se != null;
3951
    }
4431
    }
3952
 
4432
 
3953
    public void setSeIsSet(boolean value) {
4433
    public void setSeIsSet(boolean value) {
Line 3967... Line 4447...
3967
        break;
4447
        break;
3968
 
4448
 
3969
      }
4449
      }
3970
    }
4450
    }
3971
 
4451
 
3972
    public void setFieldValue(int fieldID, Object value) {
-
 
3973
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3974
    }
-
 
3975
 
-
 
3976
    public Object getFieldValue(_Fields field) {
4452
    public Object getFieldValue(_Fields field) {
3977
      switch (field) {
4453
      switch (field) {
3978
      case SE:
4454
      case SE:
3979
        return getSe();
4455
        return getSe();
3980
 
4456
 
3981
      }
4457
      }
3982
      throw new IllegalStateException();
4458
      throw new IllegalStateException();
3983
    }
4459
    }
3984
 
4460
 
3985
    public Object getFieldValue(int fieldId) {
-
 
3986
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3987
    }
-
 
3988
 
-
 
3989
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4461
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3990
    public boolean isSet(_Fields field) {
4462
    public boolean isSet(_Fields field) {
-
 
4463
      if (field == null) {
-
 
4464
        throw new IllegalArgumentException();
-
 
4465
      }
-
 
4466
 
3991
      switch (field) {
4467
      switch (field) {
3992
      case SE:
4468
      case SE:
3993
        return isSetSe();
4469
        return isSetSe();
3994
      }
4470
      }
3995
      throw new IllegalStateException();
4471
      throw new IllegalStateException();
3996
    }
4472
    }
3997
 
4473
 
3998
    public boolean isSet(int fieldID) {
-
 
3999
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4000
    }
-
 
4001
 
-
 
4002
    @Override
4474
    @Override
4003
    public boolean equals(Object that) {
4475
    public boolean equals(Object that) {
4004
      if (that == null)
4476
      if (that == null)
4005
        return false;
4477
        return false;
4006
      if (that instanceof sendMail_result)
4478
      if (that instanceof sendMail_result)
Line 4035... Line 4507...
4035
      }
4507
      }
4036
 
4508
 
4037
      int lastComparison = 0;
4509
      int lastComparison = 0;
4038
      sendMail_result typedOther = (sendMail_result)other;
4510
      sendMail_result typedOther = (sendMail_result)other;
4039
 
4511
 
4040
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
4512
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4041
      if (lastComparison != 0) {
4513
      if (lastComparison != 0) {
4042
        return lastComparison;
4514
        return lastComparison;
4043
      }
4515
      }
-
 
4516
      if (isSetSe()) {
4044
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
4517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4045
      if (lastComparison != 0) {
4518
        if (lastComparison != 0) {
4046
        return lastComparison;
4519
          return lastComparison;
-
 
4520
        }
4047
      }
4521
      }
4048
      return 0;
4522
      return 0;
4049
    }
4523
    }
4050
 
4524
 
-
 
4525
    public _Fields fieldForId(int fieldId) {
-
 
4526
      return _Fields.findByThriftId(fieldId);
-
 
4527
    }
-
 
4528
 
4051
    public void read(TProtocol iprot) throws TException {
4529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4052
      TField field;
4530
      org.apache.thrift.protocol.TField field;
4053
      iprot.readStructBegin();
4531
      iprot.readStructBegin();
4054
      while (true)
4532
      while (true)
4055
      {
4533
      {
4056
        field = iprot.readFieldBegin();
4534
        field = iprot.readFieldBegin();
4057
        if (field.type == TType.STOP) { 
4535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4058
          break;
4536
          break;
4059
        }
4537
        }
4060
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4061
        if (fieldId == null) {
-
 
4062
          TProtocolUtil.skip(iprot, field.type);
-
 
4063
        } else {
-
 
4064
          switch (fieldId) {
4538
        switch (field.id) {
4065
            case SE:
4539
          case 1: // SE
4066
              if (field.type == TType.STRUCT) {
4540
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4067
                this.se = new HelperServiceException();
4541
              this.se = new HelperServiceException();
4068
                this.se.read(iprot);
4542
              this.se.read(iprot);
4069
              } else { 
4543
            } else { 
4070
                TProtocolUtil.skip(iprot, field.type);
4544
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4071
              }
4545
            }
4072
              break;
4546
            break;
4073
          }
4547
          default:
4074
          iprot.readFieldEnd();
4548
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4075
        }
4549
        }
-
 
4550
        iprot.readFieldEnd();
4076
      }
4551
      }
4077
      iprot.readStructEnd();
4552
      iprot.readStructEnd();
4078
      validate();
4553
      validate();
4079
    }
4554
    }
4080
 
4555
 
4081
    public void write(TProtocol oprot) throws TException {
4556
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4082
      oprot.writeStructBegin(STRUCT_DESC);
4557
      oprot.writeStructBegin(STRUCT_DESC);
4083
 
4558
 
4084
      if (this.isSetSe()) {
4559
      if (this.isSetSe()) {
4085
        oprot.writeFieldBegin(SE_FIELD_DESC);
4560
        oprot.writeFieldBegin(SE_FIELD_DESC);
4086
        this.se.write(oprot);
4561
        this.se.write(oprot);
Line 4104... Line 4579...
4104
      first = false;
4579
      first = false;
4105
      sb.append(")");
4580
      sb.append(")");
4106
      return sb.toString();
4581
      return sb.toString();
4107
    }
4582
    }
4108
 
4583
 
4109
    public void validate() throws TException {
4584
    public void validate() throws org.apache.thrift.TException {
4110
      // check for required fields
4585
      // check for required fields
4111
    }
4586
    }
4112
 
4587
 
-
 
4588
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4589
      try {
-
 
4590
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4591
      } catch (org.apache.thrift.TException te) {
-
 
4592
        throw new java.io.IOException(te);
-
 
4593
      }
-
 
4594
    }
-
 
4595
 
-
 
4596
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4597
      try {
-
 
4598
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4599
      } catch (org.apache.thrift.TException te) {
-
 
4600
        throw new java.io.IOException(te);
-
 
4601
      }
-
 
4602
    }
-
 
4603
 
4113
  }
4604
  }
4114
 
4605
 
4115
  public static class sendText_args implements TBase<sendText_args._Fields>, java.io.Serializable, Cloneable, Comparable<sendText_args>   {
4606
  public static class sendText_args implements org.apache.thrift.TBase<sendText_args, sendText_args._Fields>, java.io.Serializable, Cloneable   {
4116
    private static final TStruct STRUCT_DESC = new TStruct("sendText_args");
4607
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_args");
4117
 
4608
 
4118
    private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRUCT, (short)1);
4609
    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);
4119
 
4610
 
4120
    private TextMessage message;
4611
    private TextMessage message; // required
4121
 
4612
 
4122
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4613
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4123
    public enum _Fields implements TFieldIdEnum {
4614
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4124
      MESSAGE((short)1, "message");
4615
      MESSAGE((short)1, "message");
4125
 
4616
 
4126
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4127
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4617
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4128
 
4618
 
4129
      static {
4619
      static {
4130
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4620
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4131
          byId.put((int)field._thriftId, field);
-
 
4132
          byName.put(field.getFieldName(), field);
4621
          byName.put(field.getFieldName(), field);
4133
        }
4622
        }
4134
      }
4623
      }
4135
 
4624
 
4136
      /**
4625
      /**
4137
       * Find the _Fields constant that matches fieldId, or null if its not found.
4626
       * Find the _Fields constant that matches fieldId, or null if its not found.
4138
       */
4627
       */
4139
      public static _Fields findByThriftId(int fieldId) {
4628
      public static _Fields findByThriftId(int fieldId) {
4140
        return byId.get(fieldId);
4629
        switch(fieldId) {
-
 
4630
          case 1: // MESSAGE
-
 
4631
            return MESSAGE;
-
 
4632
          default:
-
 
4633
            return null;
-
 
4634
        }
4141
      }
4635
      }
4142
 
4636
 
4143
      /**
4637
      /**
4144
       * Find the _Fields constant that matches fieldId, throwing an exception
4638
       * Find the _Fields constant that matches fieldId, throwing an exception
4145
       * if it is not found.
4639
       * if it is not found.
Line 4174... Line 4668...
4174
      }
4668
      }
4175
    }
4669
    }
4176
 
4670
 
4177
    // isset id assignments
4671
    // isset id assignments
4178
 
4672
 
4179
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4673
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4180
      put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, 
-
 
4181
          new StructMetaData(TType.STRUCT, TextMessage.class)));
-
 
4182
    }});
-
 
4183
 
-
 
4184
    static {
4674
    static {
-
 
4675
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4676
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4677
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TextMessage.class)));
-
 
4678
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4185
      FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
4679
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_args.class, metaDataMap);
4186
    }
4680
    }
4187
 
4681
 
4188
    public sendText_args() {
4682
    public sendText_args() {
4189
    }
4683
    }
4190
 
4684
 
Line 4206... Line 4700...
4206
 
4700
 
4207
    public sendText_args deepCopy() {
4701
    public sendText_args deepCopy() {
4208
      return new sendText_args(this);
4702
      return new sendText_args(this);
4209
    }
4703
    }
4210
 
4704
 
4211
    @Deprecated
4705
    @Override
4212
    public sendText_args clone() {
4706
    public void clear() {
4213
      return new sendText_args(this);
4707
      this.message = null;
4214
    }
4708
    }
4215
 
4709
 
4216
    public TextMessage getMessage() {
4710
    public TextMessage getMessage() {
4217
      return this.message;
4711
      return this.message;
4218
    }
4712
    }
4219
 
4713
 
4220
    public sendText_args setMessage(TextMessage message) {
4714
    public void setMessage(TextMessage message) {
4221
      this.message = message;
4715
      this.message = message;
4222
      return this;
-
 
4223
    }
4716
    }
4224
 
4717
 
4225
    public void unsetMessage() {
4718
    public void unsetMessage() {
4226
      this.message = null;
4719
      this.message = null;
4227
    }
4720
    }
4228
 
4721
 
4229
    /** Returns true if field message is set (has been asigned a value) and false otherwise */
4722
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
4230
    public boolean isSetMessage() {
4723
    public boolean isSetMessage() {
4231
      return this.message != null;
4724
      return this.message != null;
4232
    }
4725
    }
4233
 
4726
 
4234
    public void setMessageIsSet(boolean value) {
4727
    public void setMessageIsSet(boolean value) {
Line 4248... Line 4741...
4248
        break;
4741
        break;
4249
 
4742
 
4250
      }
4743
      }
4251
    }
4744
    }
4252
 
4745
 
4253
    public void setFieldValue(int fieldID, Object value) {
-
 
4254
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4255
    }
-
 
4256
 
-
 
4257
    public Object getFieldValue(_Fields field) {
4746
    public Object getFieldValue(_Fields field) {
4258
      switch (field) {
4747
      switch (field) {
4259
      case MESSAGE:
4748
      case MESSAGE:
4260
        return getMessage();
4749
        return getMessage();
4261
 
4750
 
4262
      }
4751
      }
4263
      throw new IllegalStateException();
4752
      throw new IllegalStateException();
4264
    }
4753
    }
4265
 
4754
 
4266
    public Object getFieldValue(int fieldId) {
-
 
4267
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4268
    }
-
 
4269
 
-
 
4270
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4755
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4271
    public boolean isSet(_Fields field) {
4756
    public boolean isSet(_Fields field) {
-
 
4757
      if (field == null) {
-
 
4758
        throw new IllegalArgumentException();
-
 
4759
      }
-
 
4760
 
4272
      switch (field) {
4761
      switch (field) {
4273
      case MESSAGE:
4762
      case MESSAGE:
4274
        return isSetMessage();
4763
        return isSetMessage();
4275
      }
4764
      }
4276
      throw new IllegalStateException();
4765
      throw new IllegalStateException();
4277
    }
4766
    }
4278
 
4767
 
4279
    public boolean isSet(int fieldID) {
-
 
4280
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4281
    }
-
 
4282
 
-
 
4283
    @Override
4768
    @Override
4284
    public boolean equals(Object that) {
4769
    public boolean equals(Object that) {
4285
      if (that == null)
4770
      if (that == null)
4286
        return false;
4771
        return false;
4287
      if (that instanceof sendText_args)
4772
      if (that instanceof sendText_args)
Line 4316... Line 4801...
4316
      }
4801
      }
4317
 
4802
 
4318
      int lastComparison = 0;
4803
      int lastComparison = 0;
4319
      sendText_args typedOther = (sendText_args)other;
4804
      sendText_args typedOther = (sendText_args)other;
4320
 
4805
 
4321
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());
4806
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
4322
      if (lastComparison != 0) {
4807
      if (lastComparison != 0) {
4323
        return lastComparison;
4808
        return lastComparison;
4324
      }
4809
      }
-
 
4810
      if (isSetMessage()) {
4325
      lastComparison = TBaseHelper.compareTo(message, typedOther.message);
4811
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
4326
      if (lastComparison != 0) {
4812
        if (lastComparison != 0) {
4327
        return lastComparison;
4813
          return lastComparison;
-
 
4814
        }
4328
      }
4815
      }
4329
      return 0;
4816
      return 0;
4330
    }
4817
    }
4331
 
4818
 
-
 
4819
    public _Fields fieldForId(int fieldId) {
-
 
4820
      return _Fields.findByThriftId(fieldId);
-
 
4821
    }
-
 
4822
 
4332
    public void read(TProtocol iprot) throws TException {
4823
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4333
      TField field;
4824
      org.apache.thrift.protocol.TField field;
4334
      iprot.readStructBegin();
4825
      iprot.readStructBegin();
4335
      while (true)
4826
      while (true)
4336
      {
4827
      {
4337
        field = iprot.readFieldBegin();
4828
        field = iprot.readFieldBegin();
4338
        if (field.type == TType.STOP) { 
4829
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4339
          break;
4830
          break;
4340
        }
4831
        }
4341
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4342
        if (fieldId == null) {
-
 
4343
          TProtocolUtil.skip(iprot, field.type);
-
 
4344
        } else {
-
 
4345
          switch (fieldId) {
4832
        switch (field.id) {
4346
            case MESSAGE:
4833
          case 1: // MESSAGE
4347
              if (field.type == TType.STRUCT) {
4834
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4348
                this.message = new TextMessage();
4835
              this.message = new TextMessage();
4349
                this.message.read(iprot);
4836
              this.message.read(iprot);
4350
              } else { 
4837
            } else { 
4351
                TProtocolUtil.skip(iprot, field.type);
4838
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4352
              }
4839
            }
4353
              break;
4840
            break;
4354
          }
4841
          default:
4355
          iprot.readFieldEnd();
4842
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4356
        }
4843
        }
-
 
4844
        iprot.readFieldEnd();
4357
      }
4845
      }
4358
      iprot.readStructEnd();
4846
      iprot.readStructEnd();
4359
      validate();
4847
      validate();
4360
    }
4848
    }
4361
 
4849
 
4362
    public void write(TProtocol oprot) throws TException {
4850
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4363
      validate();
4851
      validate();
4364
 
4852
 
4365
      oprot.writeStructBegin(STRUCT_DESC);
4853
      oprot.writeStructBegin(STRUCT_DESC);
4366
      if (this.message != null) {
4854
      if (this.message != null) {
4367
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
4855
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
Line 4386... Line 4874...
4386
      first = false;
4874
      first = false;
4387
      sb.append(")");
4875
      sb.append(")");
4388
      return sb.toString();
4876
      return sb.toString();
4389
    }
4877
    }
4390
 
4878
 
4391
    public void validate() throws TException {
4879
    public void validate() throws org.apache.thrift.TException {
4392
      // check for required fields
4880
      // check for required fields
4393
    }
4881
    }
4394
 
4882
 
-
 
4883
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4884
      try {
-
 
4885
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4886
      } catch (org.apache.thrift.TException te) {
-
 
4887
        throw new java.io.IOException(te);
-
 
4888
      }
-
 
4889
    }
-
 
4890
 
-
 
4891
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4892
      try {
-
 
4893
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4894
      } catch (org.apache.thrift.TException te) {
-
 
4895
        throw new java.io.IOException(te);
-
 
4896
      }
-
 
4897
    }
-
 
4898
 
4395
  }
4899
  }
4396
 
4900
 
4397
  public static class sendText_result implements TBase<sendText_result._Fields>, java.io.Serializable, Cloneable, Comparable<sendText_result>   {
4901
  public static class sendText_result implements org.apache.thrift.TBase<sendText_result, sendText_result._Fields>, java.io.Serializable, Cloneable   {
4398
    private static final TStruct STRUCT_DESC = new TStruct("sendText_result");
4902
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sendText_result");
4399
 
4903
 
4400
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
4904
    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);
4401
 
4905
 
4402
    private HelperServiceException se;
4906
    private HelperServiceException se; // required
4403
 
4907
 
4404
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4908
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4405
    public enum _Fields implements TFieldIdEnum {
4909
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4406
      SE((short)1, "se");
4910
      SE((short)1, "se");
4407
 
4911
 
4408
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4409
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4912
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4410
 
4913
 
4411
      static {
4914
      static {
4412
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4915
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4413
          byId.put((int)field._thriftId, field);
-
 
4414
          byName.put(field.getFieldName(), field);
4916
          byName.put(field.getFieldName(), field);
4415
        }
4917
        }
4416
      }
4918
      }
4417
 
4919
 
4418
      /**
4920
      /**
4419
       * Find the _Fields constant that matches fieldId, or null if its not found.
4921
       * Find the _Fields constant that matches fieldId, or null if its not found.
4420
       */
4922
       */
4421
      public static _Fields findByThriftId(int fieldId) {
4923
      public static _Fields findByThriftId(int fieldId) {
4422
        return byId.get(fieldId);
4924
        switch(fieldId) {
-
 
4925
          case 1: // SE
-
 
4926
            return SE;
-
 
4927
          default:
-
 
4928
            return null;
-
 
4929
        }
4423
      }
4930
      }
4424
 
4931
 
4425
      /**
4932
      /**
4426
       * Find the _Fields constant that matches fieldId, throwing an exception
4933
       * Find the _Fields constant that matches fieldId, throwing an exception
4427
       * if it is not found.
4934
       * if it is not found.
Line 4456... Line 4963...
4456
      }
4963
      }
4457
    }
4964
    }
4458
 
4965
 
4459
    // isset id assignments
4966
    // isset id assignments
4460
 
4967
 
4461
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4968
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4462
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
4463
          new FieldValueMetaData(TType.STRUCT)));
-
 
4464
    }});
-
 
4465
 
-
 
4466
    static {
4969
    static {
-
 
4970
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4971
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4972
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
4973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4467
      FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
4974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sendText_result.class, metaDataMap);
4468
    }
4975
    }
4469
 
4976
 
4470
    public sendText_result() {
4977
    public sendText_result() {
4471
    }
4978
    }
4472
 
4979
 
Line 4488... Line 4995...
4488
 
4995
 
4489
    public sendText_result deepCopy() {
4996
    public sendText_result deepCopy() {
4490
      return new sendText_result(this);
4997
      return new sendText_result(this);
4491
    }
4998
    }
4492
 
4999
 
4493
    @Deprecated
5000
    @Override
4494
    public sendText_result clone() {
5001
    public void clear() {
4495
      return new sendText_result(this);
5002
      this.se = null;
4496
    }
5003
    }
4497
 
5004
 
4498
    public HelperServiceException getSe() {
5005
    public HelperServiceException getSe() {
4499
      return this.se;
5006
      return this.se;
4500
    }
5007
    }
4501
 
5008
 
4502
    public sendText_result setSe(HelperServiceException se) {
5009
    public void setSe(HelperServiceException se) {
4503
      this.se = se;
5010
      this.se = se;
4504
      return this;
-
 
4505
    }
5011
    }
4506
 
5012
 
4507
    public void unsetSe() {
5013
    public void unsetSe() {
4508
      this.se = null;
5014
      this.se = null;
4509
    }
5015
    }
4510
 
5016
 
4511
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
5017
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
4512
    public boolean isSetSe() {
5018
    public boolean isSetSe() {
4513
      return this.se != null;
5019
      return this.se != null;
4514
    }
5020
    }
4515
 
5021
 
4516
    public void setSeIsSet(boolean value) {
5022
    public void setSeIsSet(boolean value) {
Line 4530... Line 5036...
4530
        break;
5036
        break;
4531
 
5037
 
4532
      }
5038
      }
4533
    }
5039
    }
4534
 
5040
 
4535
    public void setFieldValue(int fieldID, Object value) {
-
 
4536
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4537
    }
-
 
4538
 
-
 
4539
    public Object getFieldValue(_Fields field) {
5041
    public Object getFieldValue(_Fields field) {
4540
      switch (field) {
5042
      switch (field) {
4541
      case SE:
5043
      case SE:
4542
        return getSe();
5044
        return getSe();
4543
 
5045
 
4544
      }
5046
      }
4545
      throw new IllegalStateException();
5047
      throw new IllegalStateException();
4546
    }
5048
    }
4547
 
5049
 
4548
    public Object getFieldValue(int fieldId) {
-
 
4549
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4550
    }
-
 
4551
 
-
 
4552
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5050
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4553
    public boolean isSet(_Fields field) {
5051
    public boolean isSet(_Fields field) {
-
 
5052
      if (field == null) {
-
 
5053
        throw new IllegalArgumentException();
-
 
5054
      }
-
 
5055
 
4554
      switch (field) {
5056
      switch (field) {
4555
      case SE:
5057
      case SE:
4556
        return isSetSe();
5058
        return isSetSe();
4557
      }
5059
      }
4558
      throw new IllegalStateException();
5060
      throw new IllegalStateException();
4559
    }
5061
    }
4560
 
5062
 
4561
    public boolean isSet(int fieldID) {
-
 
4562
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4563
    }
-
 
4564
 
-
 
4565
    @Override
5063
    @Override
4566
    public boolean equals(Object that) {
5064
    public boolean equals(Object that) {
4567
      if (that == null)
5065
      if (that == null)
4568
        return false;
5066
        return false;
4569
      if (that instanceof sendText_result)
5067
      if (that instanceof sendText_result)
Line 4598... Line 5096...
4598
      }
5096
      }
4599
 
5097
 
4600
      int lastComparison = 0;
5098
      int lastComparison = 0;
4601
      sendText_result typedOther = (sendText_result)other;
5099
      sendText_result typedOther = (sendText_result)other;
4602
 
5100
 
4603
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
5101
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4604
      if (lastComparison != 0) {
5102
      if (lastComparison != 0) {
4605
        return lastComparison;
5103
        return lastComparison;
4606
      }
5104
      }
-
 
5105
      if (isSetSe()) {
4607
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
5106
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4608
      if (lastComparison != 0) {
5107
        if (lastComparison != 0) {
4609
        return lastComparison;
5108
          return lastComparison;
-
 
5109
        }
4610
      }
5110
      }
4611
      return 0;
5111
      return 0;
4612
    }
5112
    }
4613
 
5113
 
-
 
5114
    public _Fields fieldForId(int fieldId) {
-
 
5115
      return _Fields.findByThriftId(fieldId);
-
 
5116
    }
-
 
5117
 
4614
    public void read(TProtocol iprot) throws TException {
5118
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4615
      TField field;
5119
      org.apache.thrift.protocol.TField field;
4616
      iprot.readStructBegin();
5120
      iprot.readStructBegin();
4617
      while (true)
5121
      while (true)
4618
      {
5122
      {
4619
        field = iprot.readFieldBegin();
5123
        field = iprot.readFieldBegin();
4620
        if (field.type == TType.STOP) { 
5124
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4621
          break;
5125
          break;
4622
        }
5126
        }
4623
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4624
        if (fieldId == null) {
-
 
4625
          TProtocolUtil.skip(iprot, field.type);
-
 
4626
        } else {
-
 
4627
          switch (fieldId) {
5127
        switch (field.id) {
4628
            case SE:
5128
          case 1: // SE
4629
              if (field.type == TType.STRUCT) {
5129
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4630
                this.se = new HelperServiceException();
5130
              this.se = new HelperServiceException();
4631
                this.se.read(iprot);
5131
              this.se.read(iprot);
4632
              } else { 
5132
            } else { 
4633
                TProtocolUtil.skip(iprot, field.type);
5133
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4634
              }
5134
            }
4635
              break;
5135
            break;
4636
          }
5136
          default:
4637
          iprot.readFieldEnd();
5137
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4638
        }
5138
        }
-
 
5139
        iprot.readFieldEnd();
4639
      }
5140
      }
4640
      iprot.readStructEnd();
5141
      iprot.readStructEnd();
4641
      validate();
5142
      validate();
4642
    }
5143
    }
4643
 
5144
 
4644
    public void write(TProtocol oprot) throws TException {
5145
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4645
      oprot.writeStructBegin(STRUCT_DESC);
5146
      oprot.writeStructBegin(STRUCT_DESC);
4646
 
5147
 
4647
      if (this.isSetSe()) {
5148
      if (this.isSetSe()) {
4648
        oprot.writeFieldBegin(SE_FIELD_DESC);
5149
        oprot.writeFieldBegin(SE_FIELD_DESC);
4649
        this.se.write(oprot);
5150
        this.se.write(oprot);
Line 4667... Line 5168...
4667
      first = false;
5168
      first = false;
4668
      sb.append(")");
5169
      sb.append(")");
4669
      return sb.toString();
5170
      return sb.toString();
4670
    }
5171
    }
4671
 
5172
 
4672
    public void validate() throws TException {
5173
    public void validate() throws org.apache.thrift.TException {
4673
      // check for required fields
5174
      // check for required fields
4674
    }
5175
    }
4675
 
5176
 
-
 
5177
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5178
      try {
-
 
5179
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5180
      } catch (org.apache.thrift.TException te) {
-
 
5181
        throw new java.io.IOException(te);
-
 
5182
      }
-
 
5183
    }
-
 
5184
 
-
 
5185
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5186
      try {
-
 
5187
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5188
      } catch (org.apache.thrift.TException te) {
-
 
5189
        throw new java.io.IOException(te);
-
 
5190
      }
-
 
5191
    }
-
 
5192
 
4676
  }
5193
  }
4677
 
5194
 
4678
  public static class addMessage_args implements TBase<addMessage_args._Fields>, java.io.Serializable, Cloneable, Comparable<addMessage_args>   {
5195
  public static class addMessage_args implements org.apache.thrift.TBase<addMessage_args, addMessage_args._Fields>, java.io.Serializable, Cloneable   {
4679
    private static final TStruct STRUCT_DESC = new TStruct("addMessage_args");
5196
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_args");
4680
 
5197
 
4681
    private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRUCT, (short)1);
5198
    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);
4682
 
5199
 
4683
    private Message message;
5200
    private Message message; // required
4684
 
5201
 
4685
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4686
    public enum _Fields implements TFieldIdEnum {
5203
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4687
      MESSAGE((short)1, "message");
5204
      MESSAGE((short)1, "message");
4688
 
5205
 
4689
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4690
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5206
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4691
 
5207
 
4692
      static {
5208
      static {
4693
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5209
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4694
          byId.put((int)field._thriftId, field);
-
 
4695
          byName.put(field.getFieldName(), field);
5210
          byName.put(field.getFieldName(), field);
4696
        }
5211
        }
4697
      }
5212
      }
4698
 
5213
 
4699
      /**
5214
      /**
4700
       * Find the _Fields constant that matches fieldId, or null if its not found.
5215
       * Find the _Fields constant that matches fieldId, or null if its not found.
4701
       */
5216
       */
4702
      public static _Fields findByThriftId(int fieldId) {
5217
      public static _Fields findByThriftId(int fieldId) {
4703
        return byId.get(fieldId);
5218
        switch(fieldId) {
-
 
5219
          case 1: // MESSAGE
-
 
5220
            return MESSAGE;
-
 
5221
          default:
-
 
5222
            return null;
-
 
5223
        }
4704
      }
5224
      }
4705
 
5225
 
4706
      /**
5226
      /**
4707
       * Find the _Fields constant that matches fieldId, throwing an exception
5227
       * Find the _Fields constant that matches fieldId, throwing an exception
4708
       * if it is not found.
5228
       * if it is not found.
Line 4737... Line 5257...
4737
      }
5257
      }
4738
    }
5258
    }
4739
 
5259
 
4740
    // isset id assignments
5260
    // isset id assignments
4741
 
5261
 
4742
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5262
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4743
      put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, 
-
 
4744
          new StructMetaData(TType.STRUCT, Message.class)));
-
 
4745
    }});
-
 
4746
 
-
 
4747
    static {
5263
    static {
-
 
5264
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5265
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5266
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
-
 
5267
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4748
      FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
5268
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_args.class, metaDataMap);
4749
    }
5269
    }
4750
 
5270
 
4751
    public addMessage_args() {
5271
    public addMessage_args() {
4752
    }
5272
    }
4753
 
5273
 
Line 4769... Line 5289...
4769
 
5289
 
4770
    public addMessage_args deepCopy() {
5290
    public addMessage_args deepCopy() {
4771
      return new addMessage_args(this);
5291
      return new addMessage_args(this);
4772
    }
5292
    }
4773
 
5293
 
4774
    @Deprecated
5294
    @Override
4775
    public addMessage_args clone() {
5295
    public void clear() {
4776
      return new addMessage_args(this);
5296
      this.message = null;
4777
    }
5297
    }
4778
 
5298
 
4779
    public Message getMessage() {
5299
    public Message getMessage() {
4780
      return this.message;
5300
      return this.message;
4781
    }
5301
    }
4782
 
5302
 
4783
    public addMessage_args setMessage(Message message) {
5303
    public void setMessage(Message message) {
4784
      this.message = message;
5304
      this.message = message;
4785
      return this;
-
 
4786
    }
5305
    }
4787
 
5306
 
4788
    public void unsetMessage() {
5307
    public void unsetMessage() {
4789
      this.message = null;
5308
      this.message = null;
4790
    }
5309
    }
4791
 
5310
 
4792
    /** Returns true if field message is set (has been asigned a value) and false otherwise */
5311
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
4793
    public boolean isSetMessage() {
5312
    public boolean isSetMessage() {
4794
      return this.message != null;
5313
      return this.message != null;
4795
    }
5314
    }
4796
 
5315
 
4797
    public void setMessageIsSet(boolean value) {
5316
    public void setMessageIsSet(boolean value) {
Line 4811... Line 5330...
4811
        break;
5330
        break;
4812
 
5331
 
4813
      }
5332
      }
4814
    }
5333
    }
4815
 
5334
 
4816
    public void setFieldValue(int fieldID, Object value) {
-
 
4817
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4818
    }
-
 
4819
 
-
 
4820
    public Object getFieldValue(_Fields field) {
5335
    public Object getFieldValue(_Fields field) {
4821
      switch (field) {
5336
      switch (field) {
4822
      case MESSAGE:
5337
      case MESSAGE:
4823
        return getMessage();
5338
        return getMessage();
4824
 
5339
 
4825
      }
5340
      }
4826
      throw new IllegalStateException();
5341
      throw new IllegalStateException();
4827
    }
5342
    }
4828
 
5343
 
4829
    public Object getFieldValue(int fieldId) {
-
 
4830
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4831
    }
-
 
4832
 
-
 
4833
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5344
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4834
    public boolean isSet(_Fields field) {
5345
    public boolean isSet(_Fields field) {
-
 
5346
      if (field == null) {
-
 
5347
        throw new IllegalArgumentException();
-
 
5348
      }
-
 
5349
 
4835
      switch (field) {
5350
      switch (field) {
4836
      case MESSAGE:
5351
      case MESSAGE:
4837
        return isSetMessage();
5352
        return isSetMessage();
4838
      }
5353
      }
4839
      throw new IllegalStateException();
5354
      throw new IllegalStateException();
4840
    }
5355
    }
4841
 
5356
 
4842
    public boolean isSet(int fieldID) {
-
 
4843
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4844
    }
-
 
4845
 
-
 
4846
    @Override
5357
    @Override
4847
    public boolean equals(Object that) {
5358
    public boolean equals(Object that) {
4848
      if (that == null)
5359
      if (that == null)
4849
        return false;
5360
        return false;
4850
      if (that instanceof addMessage_args)
5361
      if (that instanceof addMessage_args)
Line 4879... Line 5390...
4879
      }
5390
      }
4880
 
5391
 
4881
      int lastComparison = 0;
5392
      int lastComparison = 0;
4882
      addMessage_args typedOther = (addMessage_args)other;
5393
      addMessage_args typedOther = (addMessage_args)other;
4883
 
5394
 
4884
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());
5395
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
4885
      if (lastComparison != 0) {
5396
      if (lastComparison != 0) {
4886
        return lastComparison;
5397
        return lastComparison;
4887
      }
5398
      }
-
 
5399
      if (isSetMessage()) {
4888
      lastComparison = TBaseHelper.compareTo(message, typedOther.message);
5400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
4889
      if (lastComparison != 0) {
5401
        if (lastComparison != 0) {
4890
        return lastComparison;
5402
          return lastComparison;
-
 
5403
        }
4891
      }
5404
      }
4892
      return 0;
5405
      return 0;
4893
    }
5406
    }
4894
 
5407
 
-
 
5408
    public _Fields fieldForId(int fieldId) {
-
 
5409
      return _Fields.findByThriftId(fieldId);
-
 
5410
    }
-
 
5411
 
4895
    public void read(TProtocol iprot) throws TException {
5412
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4896
      TField field;
5413
      org.apache.thrift.protocol.TField field;
4897
      iprot.readStructBegin();
5414
      iprot.readStructBegin();
4898
      while (true)
5415
      while (true)
4899
      {
5416
      {
4900
        field = iprot.readFieldBegin();
5417
        field = iprot.readFieldBegin();
4901
        if (field.type == TType.STOP) { 
5418
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4902
          break;
5419
          break;
4903
        }
5420
        }
4904
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4905
        if (fieldId == null) {
-
 
4906
          TProtocolUtil.skip(iprot, field.type);
-
 
4907
        } else {
-
 
4908
          switch (fieldId) {
5421
        switch (field.id) {
4909
            case MESSAGE:
5422
          case 1: // MESSAGE
4910
              if (field.type == TType.STRUCT) {
5423
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4911
                this.message = new Message();
5424
              this.message = new Message();
4912
                this.message.read(iprot);
5425
              this.message.read(iprot);
4913
              } else { 
5426
            } else { 
4914
                TProtocolUtil.skip(iprot, field.type);
5427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4915
              }
5428
            }
4916
              break;
5429
            break;
4917
          }
5430
          default:
4918
          iprot.readFieldEnd();
5431
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4919
        }
5432
        }
-
 
5433
        iprot.readFieldEnd();
4920
      }
5434
      }
4921
      iprot.readStructEnd();
5435
      iprot.readStructEnd();
4922
      validate();
5436
      validate();
4923
    }
5437
    }
4924
 
5438
 
4925
    public void write(TProtocol oprot) throws TException {
5439
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4926
      validate();
5440
      validate();
4927
 
5441
 
4928
      oprot.writeStructBegin(STRUCT_DESC);
5442
      oprot.writeStructBegin(STRUCT_DESC);
4929
      if (this.message != null) {
5443
      if (this.message != null) {
4930
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
5444
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
Line 4949... Line 5463...
4949
      first = false;
5463
      first = false;
4950
      sb.append(")");
5464
      sb.append(")");
4951
      return sb.toString();
5465
      return sb.toString();
4952
    }
5466
    }
4953
 
5467
 
4954
    public void validate() throws TException {
5468
    public void validate() throws org.apache.thrift.TException {
4955
      // check for required fields
5469
      // check for required fields
4956
    }
5470
    }
4957
 
5471
 
-
 
5472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5473
      try {
-
 
5474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5475
      } catch (org.apache.thrift.TException te) {
-
 
5476
        throw new java.io.IOException(te);
-
 
5477
      }
-
 
5478
    }
-
 
5479
 
-
 
5480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5481
      try {
-
 
5482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5483
      } catch (org.apache.thrift.TException te) {
-
 
5484
        throw new java.io.IOException(te);
-
 
5485
      }
-
 
5486
    }
-
 
5487
 
4958
  }
5488
  }
4959
 
5489
 
4960
  public static class addMessage_result implements TBase<addMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<addMessage_result>   {
5490
  public static class addMessage_result implements org.apache.thrift.TBase<addMessage_result, addMessage_result._Fields>, java.io.Serializable, Cloneable   {
4961
    private static final TStruct STRUCT_DESC = new TStruct("addMessage_result");
5491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addMessage_result");
4962
 
5492
 
4963
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
5493
    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);
4964
 
5494
 
4965
    private HelperServiceException se;
5495
    private HelperServiceException se; // required
4966
 
5496
 
4967
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4968
    public enum _Fields implements TFieldIdEnum {
5498
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4969
      SE((short)1, "se");
5499
      SE((short)1, "se");
4970
 
5500
 
4971
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4972
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4973
 
5502
 
4974
      static {
5503
      static {
4975
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4976
          byId.put((int)field._thriftId, field);
-
 
4977
          byName.put(field.getFieldName(), field);
5505
          byName.put(field.getFieldName(), field);
4978
        }
5506
        }
4979
      }
5507
      }
4980
 
5508
 
4981
      /**
5509
      /**
4982
       * Find the _Fields constant that matches fieldId, or null if its not found.
5510
       * Find the _Fields constant that matches fieldId, or null if its not found.
4983
       */
5511
       */
4984
      public static _Fields findByThriftId(int fieldId) {
5512
      public static _Fields findByThriftId(int fieldId) {
4985
        return byId.get(fieldId);
5513
        switch(fieldId) {
-
 
5514
          case 1: // SE
-
 
5515
            return SE;
-
 
5516
          default:
-
 
5517
            return null;
-
 
5518
        }
4986
      }
5519
      }
4987
 
5520
 
4988
      /**
5521
      /**
4989
       * Find the _Fields constant that matches fieldId, throwing an exception
5522
       * Find the _Fields constant that matches fieldId, throwing an exception
4990
       * if it is not found.
5523
       * if it is not found.
Line 5019... Line 5552...
5019
      }
5552
      }
5020
    }
5553
    }
5021
 
5554
 
5022
    // isset id assignments
5555
    // isset id assignments
5023
 
5556
 
5024
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5025
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
5026
          new FieldValueMetaData(TType.STRUCT)));
-
 
5027
    }});
-
 
5028
 
-
 
5029
    static {
5558
    static {
-
 
5559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5560
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
5562
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5030
      FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
5563
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addMessage_result.class, metaDataMap);
5031
    }
5564
    }
5032
 
5565
 
5033
    public addMessage_result() {
5566
    public addMessage_result() {
5034
    }
5567
    }
5035
 
5568
 
Line 5051... Line 5584...
5051
 
5584
 
5052
    public addMessage_result deepCopy() {
5585
    public addMessage_result deepCopy() {
5053
      return new addMessage_result(this);
5586
      return new addMessage_result(this);
5054
    }
5587
    }
5055
 
5588
 
5056
    @Deprecated
5589
    @Override
5057
    public addMessage_result clone() {
5590
    public void clear() {
5058
      return new addMessage_result(this);
5591
      this.se = null;
5059
    }
5592
    }
5060
 
5593
 
5061
    public HelperServiceException getSe() {
5594
    public HelperServiceException getSe() {
5062
      return this.se;
5595
      return this.se;
5063
    }
5596
    }
5064
 
5597
 
5065
    public addMessage_result setSe(HelperServiceException se) {
5598
    public void setSe(HelperServiceException se) {
5066
      this.se = se;
5599
      this.se = se;
5067
      return this;
-
 
5068
    }
5600
    }
5069
 
5601
 
5070
    public void unsetSe() {
5602
    public void unsetSe() {
5071
      this.se = null;
5603
      this.se = null;
5072
    }
5604
    }
5073
 
5605
 
5074
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
5606
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5075
    public boolean isSetSe() {
5607
    public boolean isSetSe() {
5076
      return this.se != null;
5608
      return this.se != null;
5077
    }
5609
    }
5078
 
5610
 
5079
    public void setSeIsSet(boolean value) {
5611
    public void setSeIsSet(boolean value) {
Line 5093... Line 5625...
5093
        break;
5625
        break;
5094
 
5626
 
5095
      }
5627
      }
5096
    }
5628
    }
5097
 
5629
 
5098
    public void setFieldValue(int fieldID, Object value) {
-
 
5099
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5100
    }
-
 
5101
 
-
 
5102
    public Object getFieldValue(_Fields field) {
5630
    public Object getFieldValue(_Fields field) {
5103
      switch (field) {
5631
      switch (field) {
5104
      case SE:
5632
      case SE:
5105
        return getSe();
5633
        return getSe();
5106
 
5634
 
5107
      }
5635
      }
5108
      throw new IllegalStateException();
5636
      throw new IllegalStateException();
5109
    }
5637
    }
5110
 
5638
 
5111
    public Object getFieldValue(int fieldId) {
-
 
5112
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5113
    }
-
 
5114
 
-
 
5115
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5639
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5116
    public boolean isSet(_Fields field) {
5640
    public boolean isSet(_Fields field) {
-
 
5641
      if (field == null) {
-
 
5642
        throw new IllegalArgumentException();
-
 
5643
      }
-
 
5644
 
5117
      switch (field) {
5645
      switch (field) {
5118
      case SE:
5646
      case SE:
5119
        return isSetSe();
5647
        return isSetSe();
5120
      }
5648
      }
5121
      throw new IllegalStateException();
5649
      throw new IllegalStateException();
5122
    }
5650
    }
5123
 
5651
 
5124
    public boolean isSet(int fieldID) {
-
 
5125
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5126
    }
-
 
5127
 
-
 
5128
    @Override
5652
    @Override
5129
    public boolean equals(Object that) {
5653
    public boolean equals(Object that) {
5130
      if (that == null)
5654
      if (that == null)
5131
        return false;
5655
        return false;
5132
      if (that instanceof addMessage_result)
5656
      if (that instanceof addMessage_result)
Line 5161... Line 5685...
5161
      }
5685
      }
5162
 
5686
 
5163
      int lastComparison = 0;
5687
      int lastComparison = 0;
5164
      addMessage_result typedOther = (addMessage_result)other;
5688
      addMessage_result typedOther = (addMessage_result)other;
5165
 
5689
 
5166
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
5690
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5167
      if (lastComparison != 0) {
5691
      if (lastComparison != 0) {
5168
        return lastComparison;
5692
        return lastComparison;
5169
      }
5693
      }
-
 
5694
      if (isSetSe()) {
5170
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
5695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5171
      if (lastComparison != 0) {
5696
        if (lastComparison != 0) {
5172
        return lastComparison;
5697
          return lastComparison;
-
 
5698
        }
5173
      }
5699
      }
5174
      return 0;
5700
      return 0;
5175
    }
5701
    }
5176
 
5702
 
-
 
5703
    public _Fields fieldForId(int fieldId) {
-
 
5704
      return _Fields.findByThriftId(fieldId);
-
 
5705
    }
-
 
5706
 
5177
    public void read(TProtocol iprot) throws TException {
5707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5178
      TField field;
5708
      org.apache.thrift.protocol.TField field;
5179
      iprot.readStructBegin();
5709
      iprot.readStructBegin();
5180
      while (true)
5710
      while (true)
5181
      {
5711
      {
5182
        field = iprot.readFieldBegin();
5712
        field = iprot.readFieldBegin();
5183
        if (field.type == TType.STOP) { 
5713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5184
          break;
5714
          break;
5185
        }
5715
        }
5186
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5187
        if (fieldId == null) {
-
 
5188
          TProtocolUtil.skip(iprot, field.type);
-
 
5189
        } else {
-
 
5190
          switch (fieldId) {
5716
        switch (field.id) {
5191
            case SE:
5717
          case 1: // SE
5192
              if (field.type == TType.STRUCT) {
5718
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5193
                this.se = new HelperServiceException();
5719
              this.se = new HelperServiceException();
5194
                this.se.read(iprot);
5720
              this.se.read(iprot);
5195
              } else { 
5721
            } else { 
5196
                TProtocolUtil.skip(iprot, field.type);
5722
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5197
              }
5723
            }
5198
              break;
5724
            break;
5199
          }
5725
          default:
5200
          iprot.readFieldEnd();
5726
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5201
        }
5727
        }
-
 
5728
        iprot.readFieldEnd();
5202
      }
5729
      }
5203
      iprot.readStructEnd();
5730
      iprot.readStructEnd();
5204
      validate();
5731
      validate();
5205
    }
5732
    }
5206
 
5733
 
5207
    public void write(TProtocol oprot) throws TException {
5734
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5208
      oprot.writeStructBegin(STRUCT_DESC);
5735
      oprot.writeStructBegin(STRUCT_DESC);
5209
 
5736
 
5210
      if (this.isSetSe()) {
5737
      if (this.isSetSe()) {
5211
        oprot.writeFieldBegin(SE_FIELD_DESC);
5738
        oprot.writeFieldBegin(SE_FIELD_DESC);
5212
        this.se.write(oprot);
5739
        this.se.write(oprot);
Line 5230... Line 5757...
5230
      first = false;
5757
      first = false;
5231
      sb.append(")");
5758
      sb.append(")");
5232
      return sb.toString();
5759
      return sb.toString();
5233
    }
5760
    }
5234
 
5761
 
5235
    public void validate() throws TException {
5762
    public void validate() throws org.apache.thrift.TException {
5236
      // check for required fields
5763
      // check for required fields
5237
    }
5764
    }
5238
 
5765
 
-
 
5766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5767
      try {
-
 
5768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5769
      } catch (org.apache.thrift.TException te) {
-
 
5770
        throw new java.io.IOException(te);
-
 
5771
      }
-
 
5772
    }
-
 
5773
 
-
 
5774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5775
      try {
-
 
5776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5777
      } catch (org.apache.thrift.TException te) {
-
 
5778
        throw new java.io.IOException(te);
-
 
5779
      }
-
 
5780
    }
-
 
5781
 
5239
  }
5782
  }
5240
 
5783
 
5241
  public static class updateMessage_args implements TBase<updateMessage_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateMessage_args>   {
5784
  public static class updateMessage_args implements org.apache.thrift.TBase<updateMessage_args, updateMessage_args._Fields>, java.io.Serializable, Cloneable   {
5242
    private static final TStruct STRUCT_DESC = new TStruct("updateMessage_args");
5785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_args");
5243
 
5786
 
5244
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
5787
    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);
5245
    private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)2);
5788
    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);
5246
 
5789
 
5247
    private long id;
5790
    private long id; // required
5248
    private String message;
5791
    private String message; // required
5249
 
5792
 
5250
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5793
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5251
    public enum _Fields implements TFieldIdEnum {
5794
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5252
      ID((short)1, "id"),
5795
      ID((short)1, "id"),
5253
      MESSAGE((short)2, "message");
5796
      MESSAGE((short)2, "message");
5254
 
5797
 
5255
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5256
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5798
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5257
 
5799
 
5258
      static {
5800
      static {
5259
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5801
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5260
          byId.put((int)field._thriftId, field);
-
 
5261
          byName.put(field.getFieldName(), field);
5802
          byName.put(field.getFieldName(), field);
5262
        }
5803
        }
5263
      }
5804
      }
5264
 
5805
 
5265
      /**
5806
      /**
5266
       * Find the _Fields constant that matches fieldId, or null if its not found.
5807
       * Find the _Fields constant that matches fieldId, or null if its not found.
5267
       */
5808
       */
5268
      public static _Fields findByThriftId(int fieldId) {
5809
      public static _Fields findByThriftId(int fieldId) {
5269
        return byId.get(fieldId);
5810
        switch(fieldId) {
-
 
5811
          case 1: // ID
-
 
5812
            return ID;
-
 
5813
          case 2: // MESSAGE
-
 
5814
            return MESSAGE;
-
 
5815
          default:
-
 
5816
            return null;
-
 
5817
        }
5270
      }
5818
      }
5271
 
5819
 
5272
      /**
5820
      /**
5273
       * Find the _Fields constant that matches fieldId, throwing an exception
5821
       * Find the _Fields constant that matches fieldId, throwing an exception
5274
       * if it is not found.
5822
       * if it is not found.
Line 5305... Line 5853...
5305
 
5853
 
5306
    // isset id assignments
5854
    // isset id assignments
5307
    private static final int __ID_ISSET_ID = 0;
5855
    private static final int __ID_ISSET_ID = 0;
5308
    private BitSet __isset_bit_vector = new BitSet(1);
5856
    private BitSet __isset_bit_vector = new BitSet(1);
5309
 
5857
 
5310
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5858
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5311
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
5312
          new FieldValueMetaData(TType.I64)));
-
 
5313
      put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, 
-
 
5314
          new FieldValueMetaData(TType.STRING)));
-
 
5315
    }});
-
 
5316
 
-
 
5317
    static {
5859
    static {
-
 
5860
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5861
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5862
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
5863
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5864
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
5865
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5318
      FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
5866
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_args.class, metaDataMap);
5319
    }
5867
    }
5320
 
5868
 
5321
    public updateMessage_args() {
5869
    public updateMessage_args() {
5322
    }
5870
    }
5323
 
5871
 
Line 5345... Line 5893...
5345
 
5893
 
5346
    public updateMessage_args deepCopy() {
5894
    public updateMessage_args deepCopy() {
5347
      return new updateMessage_args(this);
5895
      return new updateMessage_args(this);
5348
    }
5896
    }
5349
 
5897
 
5350
    @Deprecated
5898
    @Override
5351
    public updateMessage_args clone() {
5899
    public void clear() {
-
 
5900
      setIdIsSet(false);
-
 
5901
      this.id = 0;
5352
      return new updateMessage_args(this);
5902
      this.message = null;
5353
    }
5903
    }
5354
 
5904
 
5355
    public long getId() {
5905
    public long getId() {
5356
      return this.id;
5906
      return this.id;
5357
    }
5907
    }
5358
 
5908
 
5359
    public updateMessage_args setId(long id) {
5909
    public void setId(long id) {
5360
      this.id = id;
5910
      this.id = id;
5361
      setIdIsSet(true);
5911
      setIdIsSet(true);
5362
      return this;
-
 
5363
    }
5912
    }
5364
 
5913
 
5365
    public void unsetId() {
5914
    public void unsetId() {
5366
      __isset_bit_vector.clear(__ID_ISSET_ID);
5915
      __isset_bit_vector.clear(__ID_ISSET_ID);
5367
    }
5916
    }
5368
 
5917
 
5369
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
5918
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
5370
    public boolean isSetId() {
5919
    public boolean isSetId() {
5371
      return __isset_bit_vector.get(__ID_ISSET_ID);
5920
      return __isset_bit_vector.get(__ID_ISSET_ID);
5372
    }
5921
    }
5373
 
5922
 
5374
    public void setIdIsSet(boolean value) {
5923
    public void setIdIsSet(boolean value) {
Line 5377... Line 5926...
5377
 
5926
 
5378
    public String getMessage() {
5927
    public String getMessage() {
5379
      return this.message;
5928
      return this.message;
5380
    }
5929
    }
5381
 
5930
 
5382
    public updateMessage_args setMessage(String message) {
5931
    public void setMessage(String message) {
5383
      this.message = message;
5932
      this.message = message;
5384
      return this;
-
 
5385
    }
5933
    }
5386
 
5934
 
5387
    public void unsetMessage() {
5935
    public void unsetMessage() {
5388
      this.message = null;
5936
      this.message = null;
5389
    }
5937
    }
5390
 
5938
 
5391
    /** Returns true if field message is set (has been asigned a value) and false otherwise */
5939
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
5392
    public boolean isSetMessage() {
5940
    public boolean isSetMessage() {
5393
      return this.message != null;
5941
      return this.message != null;
5394
    }
5942
    }
5395
 
5943
 
5396
    public void setMessageIsSet(boolean value) {
5944
    public void setMessageIsSet(boolean value) {
Line 5418... Line 5966...
5418
        break;
5966
        break;
5419
 
5967
 
5420
      }
5968
      }
5421
    }
5969
    }
5422
 
5970
 
5423
    public void setFieldValue(int fieldID, Object value) {
-
 
5424
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5425
    }
-
 
5426
 
-
 
5427
    public Object getFieldValue(_Fields field) {
5971
    public Object getFieldValue(_Fields field) {
5428
      switch (field) {
5972
      switch (field) {
5429
      case ID:
5973
      case ID:
5430
        return new Long(getId());
5974
        return Long.valueOf(getId());
5431
 
5975
 
5432
      case MESSAGE:
5976
      case MESSAGE:
5433
        return getMessage();
5977
        return getMessage();
5434
 
5978
 
5435
      }
5979
      }
5436
      throw new IllegalStateException();
5980
      throw new IllegalStateException();
5437
    }
5981
    }
5438
 
5982
 
5439
    public Object getFieldValue(int fieldId) {
-
 
5440
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5441
    }
-
 
5442
 
-
 
5443
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5983
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5444
    public boolean isSet(_Fields field) {
5984
    public boolean isSet(_Fields field) {
-
 
5985
      if (field == null) {
-
 
5986
        throw new IllegalArgumentException();
-
 
5987
      }
-
 
5988
 
5445
      switch (field) {
5989
      switch (field) {
5446
      case ID:
5990
      case ID:
5447
        return isSetId();
5991
        return isSetId();
5448
      case MESSAGE:
5992
      case MESSAGE:
5449
        return isSetMessage();
5993
        return isSetMessage();
5450
      }
5994
      }
5451
      throw new IllegalStateException();
5995
      throw new IllegalStateException();
5452
    }
5996
    }
5453
 
5997
 
5454
    public boolean isSet(int fieldID) {
-
 
5455
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5456
    }
-
 
5457
 
-
 
5458
    @Override
5998
    @Override
5459
    public boolean equals(Object that) {
5999
    public boolean equals(Object that) {
5460
      if (that == null)
6000
      if (that == null)
5461
        return false;
6001
        return false;
5462
      if (that instanceof updateMessage_args)
6002
      if (that instanceof updateMessage_args)
Line 5500... Line 6040...
5500
      }
6040
      }
5501
 
6041
 
5502
      int lastComparison = 0;
6042
      int lastComparison = 0;
5503
      updateMessage_args typedOther = (updateMessage_args)other;
6043
      updateMessage_args typedOther = (updateMessage_args)other;
5504
 
6044
 
5505
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
6045
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
5506
      if (lastComparison != 0) {
6046
      if (lastComparison != 0) {
5507
        return lastComparison;
6047
        return lastComparison;
5508
      }
6048
      }
-
 
6049
      if (isSetId()) {
5509
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
6050
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
5510
      if (lastComparison != 0) {
6051
        if (lastComparison != 0) {
5511
        return lastComparison;
6052
          return lastComparison;
-
 
6053
        }
5512
      }
6054
      }
5513
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());
6055
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
5514
      if (lastComparison != 0) {
6056
      if (lastComparison != 0) {
5515
        return lastComparison;
6057
        return lastComparison;
5516
      }
6058
      }
-
 
6059
      if (isSetMessage()) {
5517
      lastComparison = TBaseHelper.compareTo(message, typedOther.message);
6060
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
5518
      if (lastComparison != 0) {
6061
        if (lastComparison != 0) {
5519
        return lastComparison;
6062
          return lastComparison;
-
 
6063
        }
5520
      }
6064
      }
5521
      return 0;
6065
      return 0;
5522
    }
6066
    }
5523
 
6067
 
-
 
6068
    public _Fields fieldForId(int fieldId) {
-
 
6069
      return _Fields.findByThriftId(fieldId);
-
 
6070
    }
-
 
6071
 
5524
    public void read(TProtocol iprot) throws TException {
6072
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5525
      TField field;
6073
      org.apache.thrift.protocol.TField field;
5526
      iprot.readStructBegin();
6074
      iprot.readStructBegin();
5527
      while (true)
6075
      while (true)
5528
      {
6076
      {
5529
        field = iprot.readFieldBegin();
6077
        field = iprot.readFieldBegin();
5530
        if (field.type == TType.STOP) { 
6078
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5531
          break;
6079
          break;
5532
        }
6080
        }
5533
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5534
        if (fieldId == null) {
-
 
5535
          TProtocolUtil.skip(iprot, field.type);
-
 
5536
        } else {
-
 
5537
          switch (fieldId) {
6081
        switch (field.id) {
5538
            case ID:
6082
          case 1: // ID
5539
              if (field.type == TType.I64) {
6083
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5540
                this.id = iprot.readI64();
6084
              this.id = iprot.readI64();
5541
                setIdIsSet(true);
6085
              setIdIsSet(true);
5542
              } else { 
6086
            } else { 
5543
                TProtocolUtil.skip(iprot, field.type);
6087
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5544
              }
6088
            }
5545
              break;
6089
            break;
5546
            case MESSAGE:
6090
          case 2: // MESSAGE
5547
              if (field.type == TType.STRING) {
6091
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5548
                this.message = iprot.readString();
6092
              this.message = iprot.readString();
5549
              } else { 
6093
            } else { 
5550
                TProtocolUtil.skip(iprot, field.type);
6094
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5551
              }
6095
            }
5552
              break;
6096
            break;
5553
          }
6097
          default:
5554
          iprot.readFieldEnd();
6098
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5555
        }
6099
        }
-
 
6100
        iprot.readFieldEnd();
5556
      }
6101
      }
5557
      iprot.readStructEnd();
6102
      iprot.readStructEnd();
5558
      validate();
6103
      validate();
5559
    }
6104
    }
5560
 
6105
 
5561
    public void write(TProtocol oprot) throws TException {
6106
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5562
      validate();
6107
      validate();
5563
 
6108
 
5564
      oprot.writeStructBegin(STRUCT_DESC);
6109
      oprot.writeStructBegin(STRUCT_DESC);
5565
      oprot.writeFieldBegin(ID_FIELD_DESC);
6110
      oprot.writeFieldBegin(ID_FIELD_DESC);
5566
      oprot.writeI64(this.id);
6111
      oprot.writeI64(this.id);
Line 5592... Line 6137...
5592
      first = false;
6137
      first = false;
5593
      sb.append(")");
6138
      sb.append(")");
5594
      return sb.toString();
6139
      return sb.toString();
5595
    }
6140
    }
5596
 
6141
 
5597
    public void validate() throws TException {
6142
    public void validate() throws org.apache.thrift.TException {
5598
      // check for required fields
6143
      // check for required fields
5599
    }
6144
    }
5600
 
6145
 
-
 
6146
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6147
      try {
-
 
6148
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6149
      } catch (org.apache.thrift.TException te) {
-
 
6150
        throw new java.io.IOException(te);
-
 
6151
      }
-
 
6152
    }
-
 
6153
 
-
 
6154
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6155
      try {
-
 
6156
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
6157
        __isset_bit_vector = new BitSet(1);
-
 
6158
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6159
      } catch (org.apache.thrift.TException te) {
-
 
6160
        throw new java.io.IOException(te);
-
 
6161
      }
-
 
6162
    }
-
 
6163
 
5601
  }
6164
  }
5602
 
6165
 
5603
  public static class updateMessage_result implements TBase<updateMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateMessage_result>   {
6166
  public static class updateMessage_result implements org.apache.thrift.TBase<updateMessage_result, updateMessage_result._Fields>, java.io.Serializable, Cloneable   {
5604
    private static final TStruct STRUCT_DESC = new TStruct("updateMessage_result");
6167
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateMessage_result");
5605
 
6168
 
5606
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
6169
    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);
5607
 
6170
 
5608
    private HelperServiceException se;
6171
    private HelperServiceException se; // required
5609
 
6172
 
5610
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6173
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5611
    public enum _Fields implements TFieldIdEnum {
6174
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5612
      SE((short)1, "se");
6175
      SE((short)1, "se");
5613
 
6176
 
5614
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5615
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6177
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5616
 
6178
 
5617
      static {
6179
      static {
5618
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6180
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5619
          byId.put((int)field._thriftId, field);
-
 
5620
          byName.put(field.getFieldName(), field);
6181
          byName.put(field.getFieldName(), field);
5621
        }
6182
        }
5622
      }
6183
      }
5623
 
6184
 
5624
      /**
6185
      /**
5625
       * Find the _Fields constant that matches fieldId, or null if its not found.
6186
       * Find the _Fields constant that matches fieldId, or null if its not found.
5626
       */
6187
       */
5627
      public static _Fields findByThriftId(int fieldId) {
6188
      public static _Fields findByThriftId(int fieldId) {
5628
        return byId.get(fieldId);
6189
        switch(fieldId) {
-
 
6190
          case 1: // SE
-
 
6191
            return SE;
-
 
6192
          default:
-
 
6193
            return null;
-
 
6194
        }
5629
      }
6195
      }
5630
 
6196
 
5631
      /**
6197
      /**
5632
       * Find the _Fields constant that matches fieldId, throwing an exception
6198
       * Find the _Fields constant that matches fieldId, throwing an exception
5633
       * if it is not found.
6199
       * if it is not found.
Line 5662... Line 6228...
5662
      }
6228
      }
5663
    }
6229
    }
5664
 
6230
 
5665
    // isset id assignments
6231
    // isset id assignments
5666
 
6232
 
5667
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5668
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
5669
          new FieldValueMetaData(TType.STRUCT)));
-
 
5670
    }});
-
 
5671
 
-
 
5672
    static {
6234
    static {
-
 
6235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6236
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6237
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
6238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5673
      FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
6239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateMessage_result.class, metaDataMap);
5674
    }
6240
    }
5675
 
6241
 
5676
    public updateMessage_result() {
6242
    public updateMessage_result() {
5677
    }
6243
    }
5678
 
6244
 
Line 5694... Line 6260...
5694
 
6260
 
5695
    public updateMessage_result deepCopy() {
6261
    public updateMessage_result deepCopy() {
5696
      return new updateMessage_result(this);
6262
      return new updateMessage_result(this);
5697
    }
6263
    }
5698
 
6264
 
5699
    @Deprecated
6265
    @Override
5700
    public updateMessage_result clone() {
6266
    public void clear() {
5701
      return new updateMessage_result(this);
6267
      this.se = null;
5702
    }
6268
    }
5703
 
6269
 
5704
    public HelperServiceException getSe() {
6270
    public HelperServiceException getSe() {
5705
      return this.se;
6271
      return this.se;
5706
    }
6272
    }
5707
 
6273
 
5708
    public updateMessage_result setSe(HelperServiceException se) {
6274
    public void setSe(HelperServiceException se) {
5709
      this.se = se;
6275
      this.se = se;
5710
      return this;
-
 
5711
    }
6276
    }
5712
 
6277
 
5713
    public void unsetSe() {
6278
    public void unsetSe() {
5714
      this.se = null;
6279
      this.se = null;
5715
    }
6280
    }
5716
 
6281
 
5717
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
6282
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5718
    public boolean isSetSe() {
6283
    public boolean isSetSe() {
5719
      return this.se != null;
6284
      return this.se != null;
5720
    }
6285
    }
5721
 
6286
 
5722
    public void setSeIsSet(boolean value) {
6287
    public void setSeIsSet(boolean value) {
Line 5736... Line 6301...
5736
        break;
6301
        break;
5737
 
6302
 
5738
      }
6303
      }
5739
    }
6304
    }
5740
 
6305
 
5741
    public void setFieldValue(int fieldID, Object value) {
-
 
5742
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5743
    }
-
 
5744
 
-
 
5745
    public Object getFieldValue(_Fields field) {
6306
    public Object getFieldValue(_Fields field) {
5746
      switch (field) {
6307
      switch (field) {
5747
      case SE:
6308
      case SE:
5748
        return getSe();
6309
        return getSe();
5749
 
6310
 
5750
      }
6311
      }
5751
      throw new IllegalStateException();
6312
      throw new IllegalStateException();
5752
    }
6313
    }
5753
 
6314
 
5754
    public Object getFieldValue(int fieldId) {
-
 
5755
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5756
    }
-
 
5757
 
-
 
5758
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6315
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5759
    public boolean isSet(_Fields field) {
6316
    public boolean isSet(_Fields field) {
-
 
6317
      if (field == null) {
-
 
6318
        throw new IllegalArgumentException();
-
 
6319
      }
-
 
6320
 
5760
      switch (field) {
6321
      switch (field) {
5761
      case SE:
6322
      case SE:
5762
        return isSetSe();
6323
        return isSetSe();
5763
      }
6324
      }
5764
      throw new IllegalStateException();
6325
      throw new IllegalStateException();
5765
    }
6326
    }
5766
 
6327
 
5767
    public boolean isSet(int fieldID) {
-
 
5768
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5769
    }
-
 
5770
 
-
 
5771
    @Override
6328
    @Override
5772
    public boolean equals(Object that) {
6329
    public boolean equals(Object that) {
5773
      if (that == null)
6330
      if (that == null)
5774
        return false;
6331
        return false;
5775
      if (that instanceof updateMessage_result)
6332
      if (that instanceof updateMessage_result)
Line 5804... Line 6361...
5804
      }
6361
      }
5805
 
6362
 
5806
      int lastComparison = 0;
6363
      int lastComparison = 0;
5807
      updateMessage_result typedOther = (updateMessage_result)other;
6364
      updateMessage_result typedOther = (updateMessage_result)other;
5808
 
6365
 
5809
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
6366
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5810
      if (lastComparison != 0) {
6367
      if (lastComparison != 0) {
5811
        return lastComparison;
6368
        return lastComparison;
5812
      }
6369
      }
-
 
6370
      if (isSetSe()) {
5813
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
6371
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5814
      if (lastComparison != 0) {
6372
        if (lastComparison != 0) {
5815
        return lastComparison;
6373
          return lastComparison;
-
 
6374
        }
5816
      }
6375
      }
5817
      return 0;
6376
      return 0;
5818
    }
6377
    }
5819
 
6378
 
-
 
6379
    public _Fields fieldForId(int fieldId) {
-
 
6380
      return _Fields.findByThriftId(fieldId);
-
 
6381
    }
-
 
6382
 
5820
    public void read(TProtocol iprot) throws TException {
6383
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5821
      TField field;
6384
      org.apache.thrift.protocol.TField field;
5822
      iprot.readStructBegin();
6385
      iprot.readStructBegin();
5823
      while (true)
6386
      while (true)
5824
      {
6387
      {
5825
        field = iprot.readFieldBegin();
6388
        field = iprot.readFieldBegin();
5826
        if (field.type == TType.STOP) { 
6389
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5827
          break;
6390
          break;
5828
        }
6391
        }
5829
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5830
        if (fieldId == null) {
-
 
5831
          TProtocolUtil.skip(iprot, field.type);
-
 
5832
        } else {
-
 
5833
          switch (fieldId) {
6392
        switch (field.id) {
5834
            case SE:
6393
          case 1: // SE
5835
              if (field.type == TType.STRUCT) {
6394
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5836
                this.se = new HelperServiceException();
6395
              this.se = new HelperServiceException();
5837
                this.se.read(iprot);
6396
              this.se.read(iprot);
5838
              } else { 
6397
            } else { 
5839
                TProtocolUtil.skip(iprot, field.type);
6398
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5840
              }
6399
            }
5841
              break;
6400
            break;
5842
          }
6401
          default:
5843
          iprot.readFieldEnd();
6402
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5844
        }
6403
        }
-
 
6404
        iprot.readFieldEnd();
5845
      }
6405
      }
5846
      iprot.readStructEnd();
6406
      iprot.readStructEnd();
5847
      validate();
6407
      validate();
5848
    }
6408
    }
5849
 
6409
 
5850
    public void write(TProtocol oprot) throws TException {
6410
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5851
      oprot.writeStructBegin(STRUCT_DESC);
6411
      oprot.writeStructBegin(STRUCT_DESC);
5852
 
6412
 
5853
      if (this.isSetSe()) {
6413
      if (this.isSetSe()) {
5854
        oprot.writeFieldBegin(SE_FIELD_DESC);
6414
        oprot.writeFieldBegin(SE_FIELD_DESC);
5855
        this.se.write(oprot);
6415
        this.se.write(oprot);
Line 5873... Line 6433...
5873
      first = false;
6433
      first = false;
5874
      sb.append(")");
6434
      sb.append(")");
5875
      return sb.toString();
6435
      return sb.toString();
5876
    }
6436
    }
5877
 
6437
 
5878
    public void validate() throws TException {
6438
    public void validate() throws org.apache.thrift.TException {
5879
      // check for required fields
6439
      // check for required fields
5880
    }
6440
    }
5881
 
6441
 
-
 
6442
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6443
      try {
-
 
6444
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6445
      } catch (org.apache.thrift.TException te) {
-
 
6446
        throw new java.io.IOException(te);
-
 
6447
      }
-
 
6448
    }
-
 
6449
 
-
 
6450
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6451
      try {
-
 
6452
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6453
      } catch (org.apache.thrift.TException te) {
-
 
6454
        throw new java.io.IOException(te);
-
 
6455
      }
-
 
6456
    }
-
 
6457
 
5882
  }
6458
  }
5883
 
6459
 
5884
  public static class getMessage_args implements TBase<getMessage_args._Fields>, java.io.Serializable, Cloneable, Comparable<getMessage_args>   {
6460
  public static class getMessage_args implements org.apache.thrift.TBase<getMessage_args, getMessage_args._Fields>, java.io.Serializable, Cloneable   {
5885
    private static final TStruct STRUCT_DESC = new TStruct("getMessage_args");
6461
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_args");
5886
 
6462
 
5887
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
6463
    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);
5888
 
6464
 
5889
    private long id;
6465
    private long id; // required
5890
 
6466
 
5891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6467
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5892
    public enum _Fields implements TFieldIdEnum {
6468
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5893
      ID((short)1, "id");
6469
      ID((short)1, "id");
5894
 
6470
 
5895
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5896
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6471
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5897
 
6472
 
5898
      static {
6473
      static {
5899
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6474
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5900
          byId.put((int)field._thriftId, field);
-
 
5901
          byName.put(field.getFieldName(), field);
6475
          byName.put(field.getFieldName(), field);
5902
        }
6476
        }
5903
      }
6477
      }
5904
 
6478
 
5905
      /**
6479
      /**
5906
       * Find the _Fields constant that matches fieldId, or null if its not found.
6480
       * Find the _Fields constant that matches fieldId, or null if its not found.
5907
       */
6481
       */
5908
      public static _Fields findByThriftId(int fieldId) {
6482
      public static _Fields findByThriftId(int fieldId) {
5909
        return byId.get(fieldId);
6483
        switch(fieldId) {
-
 
6484
          case 1: // ID
-
 
6485
            return ID;
-
 
6486
          default:
-
 
6487
            return null;
-
 
6488
        }
5910
      }
6489
      }
5911
 
6490
 
5912
      /**
6491
      /**
5913
       * Find the _Fields constant that matches fieldId, throwing an exception
6492
       * Find the _Fields constant that matches fieldId, throwing an exception
5914
       * if it is not found.
6493
       * if it is not found.
Line 5945... Line 6524...
5945
 
6524
 
5946
    // isset id assignments
6525
    // isset id assignments
5947
    private static final int __ID_ISSET_ID = 0;
6526
    private static final int __ID_ISSET_ID = 0;
5948
    private BitSet __isset_bit_vector = new BitSet(1);
6527
    private BitSet __isset_bit_vector = new BitSet(1);
5949
 
6528
 
5950
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6529
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5951
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
5952
          new FieldValueMetaData(TType.I64)));
-
 
5953
    }});
-
 
5954
 
-
 
5955
    static {
6530
    static {
-
 
6531
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6532
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6533
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
6534
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5956
      FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
6535
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_args.class, metaDataMap);
5957
    }
6536
    }
5958
 
6537
 
5959
    public getMessage_args() {
6538
    public getMessage_args() {
5960
    }
6539
    }
5961
 
6540
 
Line 5978... Line 6557...
5978
 
6557
 
5979
    public getMessage_args deepCopy() {
6558
    public getMessage_args deepCopy() {
5980
      return new getMessage_args(this);
6559
      return new getMessage_args(this);
5981
    }
6560
    }
5982
 
6561
 
5983
    @Deprecated
6562
    @Override
5984
    public getMessage_args clone() {
6563
    public void clear() {
5985
      return new getMessage_args(this);
6564
      setIdIsSet(false);
-
 
6565
      this.id = 0;
5986
    }
6566
    }
5987
 
6567
 
5988
    public long getId() {
6568
    public long getId() {
5989
      return this.id;
6569
      return this.id;
5990
    }
6570
    }
5991
 
6571
 
5992
    public getMessage_args setId(long id) {
6572
    public void setId(long id) {
5993
      this.id = id;
6573
      this.id = id;
5994
      setIdIsSet(true);
6574
      setIdIsSet(true);
5995
      return this;
-
 
5996
    }
6575
    }
5997
 
6576
 
5998
    public void unsetId() {
6577
    public void unsetId() {
5999
      __isset_bit_vector.clear(__ID_ISSET_ID);
6578
      __isset_bit_vector.clear(__ID_ISSET_ID);
6000
    }
6579
    }
6001
 
6580
 
6002
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
6581
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
6003
    public boolean isSetId() {
6582
    public boolean isSetId() {
6004
      return __isset_bit_vector.get(__ID_ISSET_ID);
6583
      return __isset_bit_vector.get(__ID_ISSET_ID);
6005
    }
6584
    }
6006
 
6585
 
6007
    public void setIdIsSet(boolean value) {
6586
    public void setIdIsSet(boolean value) {
Line 6019... Line 6598...
6019
        break;
6598
        break;
6020
 
6599
 
6021
      }
6600
      }
6022
    }
6601
    }
6023
 
6602
 
6024
    public void setFieldValue(int fieldID, Object value) {
-
 
6025
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6026
    }
-
 
6027
 
-
 
6028
    public Object getFieldValue(_Fields field) {
6603
    public Object getFieldValue(_Fields field) {
6029
      switch (field) {
6604
      switch (field) {
6030
      case ID:
6605
      case ID:
6031
        return new Long(getId());
6606
        return Long.valueOf(getId());
6032
 
6607
 
6033
      }
6608
      }
6034
      throw new IllegalStateException();
6609
      throw new IllegalStateException();
6035
    }
6610
    }
6036
 
6611
 
6037
    public Object getFieldValue(int fieldId) {
-
 
6038
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6039
    }
-
 
6040
 
-
 
6041
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6612
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6042
    public boolean isSet(_Fields field) {
6613
    public boolean isSet(_Fields field) {
-
 
6614
      if (field == null) {
-
 
6615
        throw new IllegalArgumentException();
-
 
6616
      }
-
 
6617
 
6043
      switch (field) {
6618
      switch (field) {
6044
      case ID:
6619
      case ID:
6045
        return isSetId();
6620
        return isSetId();
6046
      }
6621
      }
6047
      throw new IllegalStateException();
6622
      throw new IllegalStateException();
6048
    }
6623
    }
6049
 
6624
 
6050
    public boolean isSet(int fieldID) {
-
 
6051
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6052
    }
-
 
6053
 
-
 
6054
    @Override
6625
    @Override
6055
    public boolean equals(Object that) {
6626
    public boolean equals(Object that) {
6056
      if (that == null)
6627
      if (that == null)
6057
        return false;
6628
        return false;
6058
      if (that instanceof getMessage_args)
6629
      if (that instanceof getMessage_args)
Line 6087... Line 6658...
6087
      }
6658
      }
6088
 
6659
 
6089
      int lastComparison = 0;
6660
      int lastComparison = 0;
6090
      getMessage_args typedOther = (getMessage_args)other;
6661
      getMessage_args typedOther = (getMessage_args)other;
6091
 
6662
 
6092
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
6663
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
6093
      if (lastComparison != 0) {
6664
      if (lastComparison != 0) {
6094
        return lastComparison;
6665
        return lastComparison;
6095
      }
6666
      }
-
 
6667
      if (isSetId()) {
6096
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
6668
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
6097
      if (lastComparison != 0) {
6669
        if (lastComparison != 0) {
6098
        return lastComparison;
6670
          return lastComparison;
-
 
6671
        }
6099
      }
6672
      }
6100
      return 0;
6673
      return 0;
6101
    }
6674
    }
6102
 
6675
 
-
 
6676
    public _Fields fieldForId(int fieldId) {
-
 
6677
      return _Fields.findByThriftId(fieldId);
-
 
6678
    }
-
 
6679
 
6103
    public void read(TProtocol iprot) throws TException {
6680
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6104
      TField field;
6681
      org.apache.thrift.protocol.TField field;
6105
      iprot.readStructBegin();
6682
      iprot.readStructBegin();
6106
      while (true)
6683
      while (true)
6107
      {
6684
      {
6108
        field = iprot.readFieldBegin();
6685
        field = iprot.readFieldBegin();
6109
        if (field.type == TType.STOP) { 
6686
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6110
          break;
6687
          break;
6111
        }
6688
        }
6112
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6113
        if (fieldId == null) {
-
 
6114
          TProtocolUtil.skip(iprot, field.type);
-
 
6115
        } else {
-
 
6116
          switch (fieldId) {
6689
        switch (field.id) {
6117
            case ID:
6690
          case 1: // ID
6118
              if (field.type == TType.I64) {
6691
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6119
                this.id = iprot.readI64();
6692
              this.id = iprot.readI64();
6120
                setIdIsSet(true);
6693
              setIdIsSet(true);
6121
              } else { 
6694
            } else { 
6122
                TProtocolUtil.skip(iprot, field.type);
6695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6123
              }
6696
            }
6124
              break;
6697
            break;
6125
          }
6698
          default:
6126
          iprot.readFieldEnd();
6699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6127
        }
6700
        }
-
 
6701
        iprot.readFieldEnd();
6128
      }
6702
      }
6129
      iprot.readStructEnd();
6703
      iprot.readStructEnd();
6130
      validate();
6704
      validate();
6131
    }
6705
    }
6132
 
6706
 
6133
    public void write(TProtocol oprot) throws TException {
6707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6134
      validate();
6708
      validate();
6135
 
6709
 
6136
      oprot.writeStructBegin(STRUCT_DESC);
6710
      oprot.writeStructBegin(STRUCT_DESC);
6137
      oprot.writeFieldBegin(ID_FIELD_DESC);
6711
      oprot.writeFieldBegin(ID_FIELD_DESC);
6138
      oprot.writeI64(this.id);
6712
      oprot.writeI64(this.id);
Line 6151... Line 6725...
6151
      first = false;
6725
      first = false;
6152
      sb.append(")");
6726
      sb.append(")");
6153
      return sb.toString();
6727
      return sb.toString();
6154
    }
6728
    }
6155
 
6729
 
6156
    public void validate() throws TException {
6730
    public void validate() throws org.apache.thrift.TException {
6157
      // check for required fields
6731
      // check for required fields
6158
    }
6732
    }
6159
 
6733
 
-
 
6734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6735
      try {
-
 
6736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6737
      } catch (org.apache.thrift.TException te) {
-
 
6738
        throw new java.io.IOException(te);
-
 
6739
      }
-
 
6740
    }
-
 
6741
 
-
 
6742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6743
      try {
-
 
6744
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
6745
        __isset_bit_vector = new BitSet(1);
-
 
6746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6747
      } catch (org.apache.thrift.TException te) {
-
 
6748
        throw new java.io.IOException(te);
-
 
6749
      }
-
 
6750
    }
-
 
6751
 
6160
  }
6752
  }
6161
 
6753
 
6162
  public static class getMessage_result implements TBase<getMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getMessage_result>   {
6754
  public static class getMessage_result implements org.apache.thrift.TBase<getMessage_result, getMessage_result._Fields>, java.io.Serializable, Cloneable   {
6163
    private static final TStruct STRUCT_DESC = new TStruct("getMessage_result");
6755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getMessage_result");
6164
 
6756
 
6165
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
6757
    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);
6166
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
6758
    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);
6167
 
6759
 
6168
    private Message success;
6760
    private Message success; // required
6169
    private HelperServiceException se;
6761
    private HelperServiceException se; // required
6170
 
6762
 
6171
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6763
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6172
    public enum _Fields implements TFieldIdEnum {
6764
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6173
      SUCCESS((short)0, "success"),
6765
      SUCCESS((short)0, "success"),
6174
      SE((short)1, "se");
6766
      SE((short)1, "se");
6175
 
6767
 
6176
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6177
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6768
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6178
 
6769
 
6179
      static {
6770
      static {
6180
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6771
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6181
          byId.put((int)field._thriftId, field);
-
 
6182
          byName.put(field.getFieldName(), field);
6772
          byName.put(field.getFieldName(), field);
6183
        }
6773
        }
6184
      }
6774
      }
6185
 
6775
 
6186
      /**
6776
      /**
6187
       * Find the _Fields constant that matches fieldId, or null if its not found.
6777
       * Find the _Fields constant that matches fieldId, or null if its not found.
6188
       */
6778
       */
6189
      public static _Fields findByThriftId(int fieldId) {
6779
      public static _Fields findByThriftId(int fieldId) {
6190
        return byId.get(fieldId);
6780
        switch(fieldId) {
-
 
6781
          case 0: // SUCCESS
-
 
6782
            return SUCCESS;
-
 
6783
          case 1: // SE
-
 
6784
            return SE;
-
 
6785
          default:
-
 
6786
            return null;
-
 
6787
        }
6191
      }
6788
      }
6192
 
6789
 
6193
      /**
6790
      /**
6194
       * Find the _Fields constant that matches fieldId, throwing an exception
6791
       * Find the _Fields constant that matches fieldId, throwing an exception
6195
       * if it is not found.
6792
       * if it is not found.
Line 6224... Line 6821...
6224
      }
6821
      }
6225
    }
6822
    }
6226
 
6823
 
6227
    // isset id assignments
6824
    // isset id assignments
6228
 
6825
 
6229
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6826
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6230
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6231
          new StructMetaData(TType.STRUCT, Message.class)));
-
 
6232
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
6233
          new FieldValueMetaData(TType.STRUCT)));
-
 
6234
    }});
-
 
6235
 
-
 
6236
    static {
6827
    static {
-
 
6828
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6829
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6830
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
-
 
6831
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
6833
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6237
      FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
6834
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getMessage_result.class, metaDataMap);
6238
    }
6835
    }
6239
 
6836
 
6240
    public getMessage_result() {
6837
    public getMessage_result() {
6241
    }
6838
    }
6242
 
6839
 
Line 6263... Line 6860...
6263
 
6860
 
6264
    public getMessage_result deepCopy() {
6861
    public getMessage_result deepCopy() {
6265
      return new getMessage_result(this);
6862
      return new getMessage_result(this);
6266
    }
6863
    }
6267
 
6864
 
6268
    @Deprecated
6865
    @Override
6269
    public getMessage_result clone() {
6866
    public void clear() {
6270
      return new getMessage_result(this);
6867
      this.success = null;
-
 
6868
      this.se = null;
6271
    }
6869
    }
6272
 
6870
 
6273
    public Message getSuccess() {
6871
    public Message getSuccess() {
6274
      return this.success;
6872
      return this.success;
6275
    }
6873
    }
6276
 
6874
 
6277
    public getMessage_result setSuccess(Message success) {
6875
    public void setSuccess(Message success) {
6278
      this.success = success;
6876
      this.success = success;
6279
      return this;
-
 
6280
    }
6877
    }
6281
 
6878
 
6282
    public void unsetSuccess() {
6879
    public void unsetSuccess() {
6283
      this.success = null;
6880
      this.success = null;
6284
    }
6881
    }
6285
 
6882
 
6286
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
6883
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6287
    public boolean isSetSuccess() {
6884
    public boolean isSetSuccess() {
6288
      return this.success != null;
6885
      return this.success != null;
6289
    }
6886
    }
6290
 
6887
 
6291
    public void setSuccessIsSet(boolean value) {
6888
    public void setSuccessIsSet(boolean value) {
Line 6296... Line 6893...
6296
 
6893
 
6297
    public HelperServiceException getSe() {
6894
    public HelperServiceException getSe() {
6298
      return this.se;
6895
      return this.se;
6299
    }
6896
    }
6300
 
6897
 
6301
    public getMessage_result setSe(HelperServiceException se) {
6898
    public void setSe(HelperServiceException se) {
6302
      this.se = se;
6899
      this.se = se;
6303
      return this;
-
 
6304
    }
6900
    }
6305
 
6901
 
6306
    public void unsetSe() {
6902
    public void unsetSe() {
6307
      this.se = null;
6903
      this.se = null;
6308
    }
6904
    }
6309
 
6905
 
6310
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
6906
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
6311
    public boolean isSetSe() {
6907
    public boolean isSetSe() {
6312
      return this.se != null;
6908
      return this.se != null;
6313
    }
6909
    }
6314
 
6910
 
6315
    public void setSeIsSet(boolean value) {
6911
    public void setSeIsSet(boolean value) {
Line 6337... Line 6933...
6337
        break;
6933
        break;
6338
 
6934
 
6339
      }
6935
      }
6340
    }
6936
    }
6341
 
6937
 
6342
    public void setFieldValue(int fieldID, Object value) {
-
 
6343
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6344
    }
-
 
6345
 
-
 
6346
    public Object getFieldValue(_Fields field) {
6938
    public Object getFieldValue(_Fields field) {
6347
      switch (field) {
6939
      switch (field) {
6348
      case SUCCESS:
6940
      case SUCCESS:
6349
        return getSuccess();
6941
        return getSuccess();
6350
 
6942
 
Line 6353... Line 6945...
6353
 
6945
 
6354
      }
6946
      }
6355
      throw new IllegalStateException();
6947
      throw new IllegalStateException();
6356
    }
6948
    }
6357
 
6949
 
6358
    public Object getFieldValue(int fieldId) {
-
 
6359
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6360
    }
-
 
6361
 
-
 
6362
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6950
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6363
    public boolean isSet(_Fields field) {
6951
    public boolean isSet(_Fields field) {
-
 
6952
      if (field == null) {
-
 
6953
        throw new IllegalArgumentException();
-
 
6954
      }
-
 
6955
 
6364
      switch (field) {
6956
      switch (field) {
6365
      case SUCCESS:
6957
      case SUCCESS:
6366
        return isSetSuccess();
6958
        return isSetSuccess();
6367
      case SE:
6959
      case SE:
6368
        return isSetSe();
6960
        return isSetSe();
6369
      }
6961
      }
6370
      throw new IllegalStateException();
6962
      throw new IllegalStateException();
6371
    }
6963
    }
6372
 
6964
 
6373
    public boolean isSet(int fieldID) {
-
 
6374
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6375
    }
-
 
6376
 
-
 
6377
    @Override
6965
    @Override
6378
    public boolean equals(Object that) {
6966
    public boolean equals(Object that) {
6379
      if (that == null)
6967
      if (that == null)
6380
        return false;
6968
        return false;
6381
      if (that instanceof getMessage_result)
6969
      if (that instanceof getMessage_result)
Line 6419... Line 7007...
6419
      }
7007
      }
6420
 
7008
 
6421
      int lastComparison = 0;
7009
      int lastComparison = 0;
6422
      getMessage_result typedOther = (getMessage_result)other;
7010
      getMessage_result typedOther = (getMessage_result)other;
6423
 
7011
 
6424
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
7012
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6425
      if (lastComparison != 0) {
7013
      if (lastComparison != 0) {
6426
        return lastComparison;
7014
        return lastComparison;
6427
      }
7015
      }
-
 
7016
      if (isSetSuccess()) {
6428
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
7017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6429
      if (lastComparison != 0) {
7018
        if (lastComparison != 0) {
6430
        return lastComparison;
7019
          return lastComparison;
-
 
7020
        }
6431
      }
7021
      }
6432
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
7022
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
6433
      if (lastComparison != 0) {
7023
      if (lastComparison != 0) {
6434
        return lastComparison;
7024
        return lastComparison;
6435
      }
7025
      }
-
 
7026
      if (isSetSe()) {
6436
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
7027
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
6437
      if (lastComparison != 0) {
7028
        if (lastComparison != 0) {
6438
        return lastComparison;
7029
          return lastComparison;
-
 
7030
        }
6439
      }
7031
      }
6440
      return 0;
7032
      return 0;
6441
    }
7033
    }
6442
 
7034
 
-
 
7035
    public _Fields fieldForId(int fieldId) {
-
 
7036
      return _Fields.findByThriftId(fieldId);
-
 
7037
    }
-
 
7038
 
6443
    public void read(TProtocol iprot) throws TException {
7039
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6444
      TField field;
7040
      org.apache.thrift.protocol.TField field;
6445
      iprot.readStructBegin();
7041
      iprot.readStructBegin();
6446
      while (true)
7042
      while (true)
6447
      {
7043
      {
6448
        field = iprot.readFieldBegin();
7044
        field = iprot.readFieldBegin();
6449
        if (field.type == TType.STOP) { 
7045
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6450
          break;
7046
          break;
6451
        }
7047
        }
6452
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6453
        if (fieldId == null) {
-
 
6454
          TProtocolUtil.skip(iprot, field.type);
-
 
6455
        } else {
-
 
6456
          switch (fieldId) {
7048
        switch (field.id) {
6457
            case SUCCESS:
7049
          case 0: // SUCCESS
6458
              if (field.type == TType.STRUCT) {
7050
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6459
                this.success = new Message();
7051
              this.success = new Message();
6460
                this.success.read(iprot);
7052
              this.success.read(iprot);
6461
              } else { 
7053
            } else { 
6462
                TProtocolUtil.skip(iprot, field.type);
7054
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6463
              }
7055
            }
6464
              break;
7056
            break;
6465
            case SE:
7057
          case 1: // SE
6466
              if (field.type == TType.STRUCT) {
7058
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6467
                this.se = new HelperServiceException();
7059
              this.se = new HelperServiceException();
6468
                this.se.read(iprot);
7060
              this.se.read(iprot);
6469
              } else { 
7061
            } else { 
6470
                TProtocolUtil.skip(iprot, field.type);
7062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6471
              }
7063
            }
6472
              break;
7064
            break;
6473
          }
7065
          default:
6474
          iprot.readFieldEnd();
7066
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6475
        }
7067
        }
-
 
7068
        iprot.readFieldEnd();
6476
      }
7069
      }
6477
      iprot.readStructEnd();
7070
      iprot.readStructEnd();
6478
      validate();
7071
      validate();
6479
    }
7072
    }
6480
 
7073
 
6481
    public void write(TProtocol oprot) throws TException {
7074
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6482
      oprot.writeStructBegin(STRUCT_DESC);
7075
      oprot.writeStructBegin(STRUCT_DESC);
6483
 
7076
 
6484
      if (this.isSetSuccess()) {
7077
      if (this.isSetSuccess()) {
6485
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7078
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6486
        this.success.write(oprot);
7079
        this.success.write(oprot);
Line 6516... Line 7109...
6516
      first = false;
7109
      first = false;
6517
      sb.append(")");
7110
      sb.append(")");
6518
      return sb.toString();
7111
      return sb.toString();
6519
    }
7112
    }
6520
 
7113
 
6521
    public void validate() throws TException {
7114
    public void validate() throws org.apache.thrift.TException {
6522
      // check for required fields
7115
      // check for required fields
6523
    }
7116
    }
6524
 
7117
 
-
 
7118
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7119
      try {
-
 
7120
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7121
      } catch (org.apache.thrift.TException te) {
-
 
7122
        throw new java.io.IOException(te);
-
 
7123
      }
-
 
7124
    }
-
 
7125
 
-
 
7126
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7127
      try {
-
 
7128
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7129
      } catch (org.apache.thrift.TException te) {
-
 
7130
        throw new java.io.IOException(te);
-
 
7131
      }
-
 
7132
    }
-
 
7133
 
6525
  }
7134
  }
6526
 
7135
 
6527
  public static class getSubstitutedMessage_args implements TBase<getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
7136
  public static class getSubstitutedMessage_args implements org.apache.thrift.TBase<getSubstitutedMessage_args, getSubstitutedMessage_args._Fields>, java.io.Serializable, Cloneable   {
6528
    private static final TStruct STRUCT_DESC = new TStruct("getSubstitutedMessage_args");
7137
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_args");
6529
 
7138
 
6530
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
7139
    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);
6531
    private static final TField PARAMS_FIELD_DESC = new TField("params", TType.MAP, (short)2);
7140
    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);
6532
 
7141
 
6533
    private long id;
7142
    private long id; // required
6534
    private Map<String,String> params;
7143
    private Map<String,String> params; // required
6535
 
7144
 
6536
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7145
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6537
    public enum _Fields implements TFieldIdEnum {
7146
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6538
      ID((short)1, "id"),
7147
      ID((short)1, "id"),
6539
      PARAMS((short)2, "params");
7148
      PARAMS((short)2, "params");
6540
 
7149
 
6541
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6542
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7150
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6543
 
7151
 
6544
      static {
7152
      static {
6545
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7153
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6546
          byId.put((int)field._thriftId, field);
-
 
6547
          byName.put(field.getFieldName(), field);
7154
          byName.put(field.getFieldName(), field);
6548
        }
7155
        }
6549
      }
7156
      }
6550
 
7157
 
6551
      /**
7158
      /**
6552
       * Find the _Fields constant that matches fieldId, or null if its not found.
7159
       * Find the _Fields constant that matches fieldId, or null if its not found.
6553
       */
7160
       */
6554
      public static _Fields findByThriftId(int fieldId) {
7161
      public static _Fields findByThriftId(int fieldId) {
6555
        return byId.get(fieldId);
7162
        switch(fieldId) {
-
 
7163
          case 1: // ID
-
 
7164
            return ID;
-
 
7165
          case 2: // PARAMS
-
 
7166
            return PARAMS;
-
 
7167
          default:
-
 
7168
            return null;
-
 
7169
        }
6556
      }
7170
      }
6557
 
7171
 
6558
      /**
7172
      /**
6559
       * Find the _Fields constant that matches fieldId, throwing an exception
7173
       * Find the _Fields constant that matches fieldId, throwing an exception
6560
       * if it is not found.
7174
       * if it is not found.
Line 6591... Line 7205...
6591
 
7205
 
6592
    // isset id assignments
7206
    // isset id assignments
6593
    private static final int __ID_ISSET_ID = 0;
7207
    private static final int __ID_ISSET_ID = 0;
6594
    private BitSet __isset_bit_vector = new BitSet(1);
7208
    private BitSet __isset_bit_vector = new BitSet(1);
6595
 
7209
 
6596
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7210
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6597
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
6598
          new FieldValueMetaData(TType.I64)));
-
 
6599
      put(_Fields.PARAMS, new FieldMetaData("params", TFieldRequirementType.DEFAULT, 
-
 
6600
          new MapMetaData(TType.MAP, 
-
 
6601
              new FieldValueMetaData(TType.STRING), 
-
 
6602
              new FieldValueMetaData(TType.STRING))));
-
 
6603
    }});
-
 
6604
 
-
 
6605
    static {
7211
    static {
-
 
7212
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7213
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7214
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
7215
      tmpMap.put(_Fields.PARAMS, new org.apache.thrift.meta_data.FieldMetaData("params", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7216
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
-
 
7217
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
-
 
7218
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
7219
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6606
      FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
7220
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_args.class, metaDataMap);
6607
    }
7221
    }
6608
 
7222
 
6609
    public getSubstitutedMessage_args() {
7223
    public getSubstitutedMessage_args() {
6610
    }
7224
    }
6611
 
7225
 
Line 6645... Line 7259...
6645
 
7259
 
6646
    public getSubstitutedMessage_args deepCopy() {
7260
    public getSubstitutedMessage_args deepCopy() {
6647
      return new getSubstitutedMessage_args(this);
7261
      return new getSubstitutedMessage_args(this);
6648
    }
7262
    }
6649
 
7263
 
6650
    @Deprecated
7264
    @Override
6651
    public getSubstitutedMessage_args clone() {
7265
    public void clear() {
6652
      return new getSubstitutedMessage_args(this);
7266
      setIdIsSet(false);
-
 
7267
      this.id = 0;
-
 
7268
      this.params = null;
6653
    }
7269
    }
6654
 
7270
 
6655
    public long getId() {
7271
    public long getId() {
6656
      return this.id;
7272
      return this.id;
6657
    }
7273
    }
6658
 
7274
 
6659
    public getSubstitutedMessage_args setId(long id) {
7275
    public void setId(long id) {
6660
      this.id = id;
7276
      this.id = id;
6661
      setIdIsSet(true);
7277
      setIdIsSet(true);
6662
      return this;
-
 
6663
    }
7278
    }
6664
 
7279
 
6665
    public void unsetId() {
7280
    public void unsetId() {
6666
      __isset_bit_vector.clear(__ID_ISSET_ID);
7281
      __isset_bit_vector.clear(__ID_ISSET_ID);
6667
    }
7282
    }
6668
 
7283
 
6669
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
7284
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
6670
    public boolean isSetId() {
7285
    public boolean isSetId() {
6671
      return __isset_bit_vector.get(__ID_ISSET_ID);
7286
      return __isset_bit_vector.get(__ID_ISSET_ID);
6672
    }
7287
    }
6673
 
7288
 
6674
    public void setIdIsSet(boolean value) {
7289
    public void setIdIsSet(boolean value) {
Line 6688... Line 7303...
6688
 
7303
 
6689
    public Map<String,String> getParams() {
7304
    public Map<String,String> getParams() {
6690
      return this.params;
7305
      return this.params;
6691
    }
7306
    }
6692
 
7307
 
6693
    public getSubstitutedMessage_args setParams(Map<String,String> params) {
7308
    public void setParams(Map<String,String> params) {
6694
      this.params = params;
7309
      this.params = params;
6695
      return this;
-
 
6696
    }
7310
    }
6697
 
7311
 
6698
    public void unsetParams() {
7312
    public void unsetParams() {
6699
      this.params = null;
7313
      this.params = null;
6700
    }
7314
    }
6701
 
7315
 
6702
    /** Returns true if field params is set (has been asigned a value) and false otherwise */
7316
    /** Returns true if field params is set (has been assigned a value) and false otherwise */
6703
    public boolean isSetParams() {
7317
    public boolean isSetParams() {
6704
      return this.params != null;
7318
      return this.params != null;
6705
    }
7319
    }
6706
 
7320
 
6707
    public void setParamsIsSet(boolean value) {
7321
    public void setParamsIsSet(boolean value) {
Line 6729... Line 7343...
6729
        break;
7343
        break;
6730
 
7344
 
6731
      }
7345
      }
6732
    }
7346
    }
6733
 
7347
 
6734
    public void setFieldValue(int fieldID, Object value) {
-
 
6735
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6736
    }
-
 
6737
 
-
 
6738
    public Object getFieldValue(_Fields field) {
7348
    public Object getFieldValue(_Fields field) {
6739
      switch (field) {
7349
      switch (field) {
6740
      case ID:
7350
      case ID:
6741
        return new Long(getId());
7351
        return Long.valueOf(getId());
6742
 
7352
 
6743
      case PARAMS:
7353
      case PARAMS:
6744
        return getParams();
7354
        return getParams();
6745
 
7355
 
6746
      }
7356
      }
6747
      throw new IllegalStateException();
7357
      throw new IllegalStateException();
6748
    }
7358
    }
6749
 
7359
 
6750
    public Object getFieldValue(int fieldId) {
-
 
6751
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6752
    }
-
 
6753
 
-
 
6754
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7360
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6755
    public boolean isSet(_Fields field) {
7361
    public boolean isSet(_Fields field) {
-
 
7362
      if (field == null) {
-
 
7363
        throw new IllegalArgumentException();
-
 
7364
      }
-
 
7365
 
6756
      switch (field) {
7366
      switch (field) {
6757
      case ID:
7367
      case ID:
6758
        return isSetId();
7368
        return isSetId();
6759
      case PARAMS:
7369
      case PARAMS:
6760
        return isSetParams();
7370
        return isSetParams();
6761
      }
7371
      }
6762
      throw new IllegalStateException();
7372
      throw new IllegalStateException();
6763
    }
7373
    }
6764
 
7374
 
6765
    public boolean isSet(int fieldID) {
-
 
6766
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6767
    }
-
 
6768
 
-
 
6769
    @Override
7375
    @Override
6770
    public boolean equals(Object that) {
7376
    public boolean equals(Object that) {
6771
      if (that == null)
7377
      if (that == null)
6772
        return false;
7378
        return false;
6773
      if (that instanceof getSubstitutedMessage_args)
7379
      if (that instanceof getSubstitutedMessage_args)
Line 6803... Line 7409...
6803
    @Override
7409
    @Override
6804
    public int hashCode() {
7410
    public int hashCode() {
6805
      return 0;
7411
      return 0;
6806
    }
7412
    }
6807
 
7413
 
6808
    public void read(TProtocol iprot) throws TException {
7414
    public int compareTo(getSubstitutedMessage_args other) {
-
 
7415
      if (!getClass().equals(other.getClass())) {
-
 
7416
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7417
      }
-
 
7418
 
-
 
7419
      int lastComparison = 0;
-
 
7420
      getSubstitutedMessage_args typedOther = (getSubstitutedMessage_args)other;
-
 
7421
 
-
 
7422
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
-
 
7423
      if (lastComparison != 0) {
-
 
7424
        return lastComparison;
-
 
7425
      }
-
 
7426
      if (isSetId()) {
-
 
7427
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
-
 
7428
        if (lastComparison != 0) {
-
 
7429
          return lastComparison;
-
 
7430
        }
-
 
7431
      }
-
 
7432
      lastComparison = Boolean.valueOf(isSetParams()).compareTo(typedOther.isSetParams());
-
 
7433
      if (lastComparison != 0) {
-
 
7434
        return lastComparison;
-
 
7435
      }
-
 
7436
      if (isSetParams()) {
-
 
7437
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.params, typedOther.params);
-
 
7438
        if (lastComparison != 0) {
-
 
7439
          return lastComparison;
-
 
7440
        }
-
 
7441
      }
6809
      TField field;
7442
      return 0;
-
 
7443
    }
-
 
7444
 
-
 
7445
    public _Fields fieldForId(int fieldId) {
-
 
7446
      return _Fields.findByThriftId(fieldId);
-
 
7447
    }
-
 
7448
 
-
 
7449
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
7450
      org.apache.thrift.protocol.TField field;
6810
      iprot.readStructBegin();
7451
      iprot.readStructBegin();
6811
      while (true)
7452
      while (true)
6812
      {
7453
      {
6813
        field = iprot.readFieldBegin();
7454
        field = iprot.readFieldBegin();
6814
        if (field.type == TType.STOP) { 
7455
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6815
          break;
7456
          break;
6816
        }
7457
        }
6817
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6818
        if (fieldId == null) {
-
 
6819
          TProtocolUtil.skip(iprot, field.type);
-
 
6820
        } else {
-
 
6821
          switch (fieldId) {
7458
        switch (field.id) {
6822
            case ID:
7459
          case 1: // ID
6823
              if (field.type == TType.I64) {
7460
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6824
                this.id = iprot.readI64();
7461
              this.id = iprot.readI64();
6825
                setIdIsSet(true);
7462
              setIdIsSet(true);
6826
              } else { 
7463
            } else { 
6827
                TProtocolUtil.skip(iprot, field.type);
7464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6828
              }
7465
            }
6829
              break;
7466
            break;
6830
            case PARAMS:
7467
          case 2: // PARAMS
6831
              if (field.type == TType.MAP) {
7468
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
-
 
7469
              {
-
 
7470
                org.apache.thrift.protocol.TMap _map12 = iprot.readMapBegin();
-
 
7471
                this.params = new HashMap<String,String>(2*_map12.size);
-
 
7472
                for (int _i13 = 0; _i13 < _map12.size; ++_i13)
6832
                {
7473
                {
6833
                  TMap _map12 = iprot.readMapBegin();
-
 
6834
                  this.params = new HashMap<String,String>(2*_map12.size);
-
 
6835
                  for (int _i13 = 0; _i13 < _map12.size; ++_i13)
-
 
6836
                  {
-
 
6837
                    String _key14;
7474
                  String _key14; // required
6838
                    String _val15;
7475
                  String _val15; // required
6839
                    _key14 = iprot.readString();
7476
                  _key14 = iprot.readString();
6840
                    _val15 = iprot.readString();
7477
                  _val15 = iprot.readString();
6841
                    this.params.put(_key14, _val15);
7478
                  this.params.put(_key14, _val15);
6842
                  }
-
 
6843
                  iprot.readMapEnd();
-
 
6844
                }
7479
                }
6845
              } else { 
7480
                iprot.readMapEnd();
6846
                TProtocolUtil.skip(iprot, field.type);
-
 
6847
              }
7481
              }
6848
              break;
7482
            } else { 
-
 
7483
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6849
          }
7484
            }
6850
          iprot.readFieldEnd();
7485
            break;
-
 
7486
          default:
-
 
7487
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6851
        }
7488
        }
-
 
7489
        iprot.readFieldEnd();
6852
      }
7490
      }
6853
      iprot.readStructEnd();
7491
      iprot.readStructEnd();
6854
      validate();
7492
      validate();
6855
    }
7493
    }
6856
 
7494
 
6857
    public void write(TProtocol oprot) throws TException {
7495
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6858
      validate();
7496
      validate();
6859
 
7497
 
6860
      oprot.writeStructBegin(STRUCT_DESC);
7498
      oprot.writeStructBegin(STRUCT_DESC);
6861
      oprot.writeFieldBegin(ID_FIELD_DESC);
7499
      oprot.writeFieldBegin(ID_FIELD_DESC);
6862
      oprot.writeI64(this.id);
7500
      oprot.writeI64(this.id);
6863
      oprot.writeFieldEnd();
7501
      oprot.writeFieldEnd();
6864
      if (this.params != null) {
7502
      if (this.params != null) {
6865
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
7503
        oprot.writeFieldBegin(PARAMS_FIELD_DESC);
6866
        {
7504
        {
6867
          oprot.writeMapBegin(new TMap(TType.STRING, TType.STRING, this.params.size()));
7505
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.params.size()));
6868
          for (Map.Entry<String, String> _iter16 : this.params.entrySet())
7506
          for (Map.Entry<String, String> _iter16 : this.params.entrySet())
6869
          {
7507
          {
6870
            oprot.writeString(_iter16.getKey());
7508
            oprot.writeString(_iter16.getKey());
6871
            oprot.writeString(_iter16.getValue());
7509
            oprot.writeString(_iter16.getValue());
6872
          }
7510
          }
Line 6896... Line 7534...
6896
      first = false;
7534
      first = false;
6897
      sb.append(")");
7535
      sb.append(")");
6898
      return sb.toString();
7536
      return sb.toString();
6899
    }
7537
    }
6900
 
7538
 
6901
    public void validate() throws TException {
7539
    public void validate() throws org.apache.thrift.TException {
6902
      // check for required fields
7540
      // check for required fields
6903
    }
7541
    }
6904
 
7542
 
-
 
7543
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7544
      try {
-
 
7545
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7546
      } catch (org.apache.thrift.TException te) {
-
 
7547
        throw new java.io.IOException(te);
-
 
7548
      }
-
 
7549
    }
-
 
7550
 
-
 
7551
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7552
      try {
-
 
7553
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
7554
        __isset_bit_vector = new BitSet(1);
-
 
7555
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7556
      } catch (org.apache.thrift.TException te) {
-
 
7557
        throw new java.io.IOException(te);
-
 
7558
      }
-
 
7559
    }
-
 
7560
 
6905
  }
7561
  }
6906
 
7562
 
6907
  public static class getSubstitutedMessage_result implements TBase<getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable, Comparable<getSubstitutedMessage_result>   {
7563
  public static class getSubstitutedMessage_result implements org.apache.thrift.TBase<getSubstitutedMessage_result, getSubstitutedMessage_result._Fields>, java.io.Serializable, Cloneable   {
6908
    private static final TStruct STRUCT_DESC = new TStruct("getSubstitutedMessage_result");
7564
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getSubstitutedMessage_result");
6909
 
7565
 
6910
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
7566
    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);
6911
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
7567
    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);
6912
 
7568
 
6913
    private Message success;
7569
    private Message success; // required
6914
    private HelperServiceException se;
7570
    private HelperServiceException se; // required
6915
 
7571
 
6916
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7572
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6917
    public enum _Fields implements TFieldIdEnum {
7573
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6918
      SUCCESS((short)0, "success"),
7574
      SUCCESS((short)0, "success"),
6919
      SE((short)1, "se");
7575
      SE((short)1, "se");
6920
 
7576
 
6921
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6922
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6923
 
7578
 
6924
      static {
7579
      static {
6925
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6926
          byId.put((int)field._thriftId, field);
-
 
6927
          byName.put(field.getFieldName(), field);
7581
          byName.put(field.getFieldName(), field);
6928
        }
7582
        }
6929
      }
7583
      }
6930
 
7584
 
6931
      /**
7585
      /**
6932
       * Find the _Fields constant that matches fieldId, or null if its not found.
7586
       * Find the _Fields constant that matches fieldId, or null if its not found.
6933
       */
7587
       */
6934
      public static _Fields findByThriftId(int fieldId) {
7588
      public static _Fields findByThriftId(int fieldId) {
6935
        return byId.get(fieldId);
7589
        switch(fieldId) {
-
 
7590
          case 0: // SUCCESS
-
 
7591
            return SUCCESS;
-
 
7592
          case 1: // SE
-
 
7593
            return SE;
-
 
7594
          default:
-
 
7595
            return null;
-
 
7596
        }
6936
      }
7597
      }
6937
 
7598
 
6938
      /**
7599
      /**
6939
       * Find the _Fields constant that matches fieldId, throwing an exception
7600
       * Find the _Fields constant that matches fieldId, throwing an exception
6940
       * if it is not found.
7601
       * if it is not found.
Line 6969... Line 7630...
6969
      }
7630
      }
6970
    }
7631
    }
6971
 
7632
 
6972
    // isset id assignments
7633
    // isset id assignments
6973
 
7634
 
6974
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7635
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6975
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6976
          new StructMetaData(TType.STRUCT, Message.class)));
-
 
6977
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
6978
          new FieldValueMetaData(TType.STRUCT)));
-
 
6979
    }});
-
 
6980
 
-
 
6981
    static {
7636
    static {
-
 
7637
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7638
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7639
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Message.class)));
-
 
7640
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7641
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
7642
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6982
      FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
7643
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getSubstitutedMessage_result.class, metaDataMap);
6983
    }
7644
    }
6984
 
7645
 
6985
    public getSubstitutedMessage_result() {
7646
    public getSubstitutedMessage_result() {
6986
    }
7647
    }
6987
 
7648
 
Line 7008... Line 7669...
7008
 
7669
 
7009
    public getSubstitutedMessage_result deepCopy() {
7670
    public getSubstitutedMessage_result deepCopy() {
7010
      return new getSubstitutedMessage_result(this);
7671
      return new getSubstitutedMessage_result(this);
7011
    }
7672
    }
7012
 
7673
 
7013
    @Deprecated
7674
    @Override
7014
    public getSubstitutedMessage_result clone() {
7675
    public void clear() {
7015
      return new getSubstitutedMessage_result(this);
7676
      this.success = null;
-
 
7677
      this.se = null;
7016
    }
7678
    }
7017
 
7679
 
7018
    public Message getSuccess() {
7680
    public Message getSuccess() {
7019
      return this.success;
7681
      return this.success;
7020
    }
7682
    }
7021
 
7683
 
7022
    public getSubstitutedMessage_result setSuccess(Message success) {
7684
    public void setSuccess(Message success) {
7023
      this.success = success;
7685
      this.success = success;
7024
      return this;
-
 
7025
    }
7686
    }
7026
 
7687
 
7027
    public void unsetSuccess() {
7688
    public void unsetSuccess() {
7028
      this.success = null;
7689
      this.success = null;
7029
    }
7690
    }
7030
 
7691
 
7031
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
7692
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7032
    public boolean isSetSuccess() {
7693
    public boolean isSetSuccess() {
7033
      return this.success != null;
7694
      return this.success != null;
7034
    }
7695
    }
7035
 
7696
 
7036
    public void setSuccessIsSet(boolean value) {
7697
    public void setSuccessIsSet(boolean value) {
Line 7041... Line 7702...
7041
 
7702
 
7042
    public HelperServiceException getSe() {
7703
    public HelperServiceException getSe() {
7043
      return this.se;
7704
      return this.se;
7044
    }
7705
    }
7045
 
7706
 
7046
    public getSubstitutedMessage_result setSe(HelperServiceException se) {
7707
    public void setSe(HelperServiceException se) {
7047
      this.se = se;
7708
      this.se = se;
7048
      return this;
-
 
7049
    }
7709
    }
7050
 
7710
 
7051
    public void unsetSe() {
7711
    public void unsetSe() {
7052
      this.se = null;
7712
      this.se = null;
7053
    }
7713
    }
7054
 
7714
 
7055
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
7715
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
7056
    public boolean isSetSe() {
7716
    public boolean isSetSe() {
7057
      return this.se != null;
7717
      return this.se != null;
7058
    }
7718
    }
7059
 
7719
 
7060
    public void setSeIsSet(boolean value) {
7720
    public void setSeIsSet(boolean value) {
Line 7082... Line 7742...
7082
        break;
7742
        break;
7083
 
7743
 
7084
      }
7744
      }
7085
    }
7745
    }
7086
 
7746
 
7087
    public void setFieldValue(int fieldID, Object value) {
-
 
7088
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7089
    }
-
 
7090
 
-
 
7091
    public Object getFieldValue(_Fields field) {
7747
    public Object getFieldValue(_Fields field) {
7092
      switch (field) {
7748
      switch (field) {
7093
      case SUCCESS:
7749
      case SUCCESS:
7094
        return getSuccess();
7750
        return getSuccess();
7095
 
7751
 
Line 7098... Line 7754...
7098
 
7754
 
7099
      }
7755
      }
7100
      throw new IllegalStateException();
7756
      throw new IllegalStateException();
7101
    }
7757
    }
7102
 
7758
 
7103
    public Object getFieldValue(int fieldId) {
-
 
7104
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7105
    }
-
 
7106
 
-
 
7107
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7759
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7108
    public boolean isSet(_Fields field) {
7760
    public boolean isSet(_Fields field) {
-
 
7761
      if (field == null) {
-
 
7762
        throw new IllegalArgumentException();
-
 
7763
      }
-
 
7764
 
7109
      switch (field) {
7765
      switch (field) {
7110
      case SUCCESS:
7766
      case SUCCESS:
7111
        return isSetSuccess();
7767
        return isSetSuccess();
7112
      case SE:
7768
      case SE:
7113
        return isSetSe();
7769
        return isSetSe();
7114
      }
7770
      }
7115
      throw new IllegalStateException();
7771
      throw new IllegalStateException();
7116
    }
7772
    }
7117
 
7773
 
7118
    public boolean isSet(int fieldID) {
-
 
7119
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7120
    }
-
 
7121
 
-
 
7122
    @Override
7774
    @Override
7123
    public boolean equals(Object that) {
7775
    public boolean equals(Object that) {
7124
      if (that == null)
7776
      if (that == null)
7125
        return false;
7777
        return false;
7126
      if (that instanceof getSubstitutedMessage_result)
7778
      if (that instanceof getSubstitutedMessage_result)
Line 7164... Line 7816...
7164
      }
7816
      }
7165
 
7817
 
7166
      int lastComparison = 0;
7818
      int lastComparison = 0;
7167
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
7819
      getSubstitutedMessage_result typedOther = (getSubstitutedMessage_result)other;
7168
 
7820
 
7169
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
7821
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7170
      if (lastComparison != 0) {
7822
      if (lastComparison != 0) {
7171
        return lastComparison;
7823
        return lastComparison;
7172
      }
7824
      }
-
 
7825
      if (isSetSuccess()) {
7173
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
7826
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7174
      if (lastComparison != 0) {
7827
        if (lastComparison != 0) {
7175
        return lastComparison;
7828
          return lastComparison;
-
 
7829
        }
7176
      }
7830
      }
7177
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
7831
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
7178
      if (lastComparison != 0) {
7832
      if (lastComparison != 0) {
7179
        return lastComparison;
7833
        return lastComparison;
7180
      }
7834
      }
-
 
7835
      if (isSetSe()) {
7181
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
7836
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7182
      if (lastComparison != 0) {
7837
        if (lastComparison != 0) {
7183
        return lastComparison;
7838
          return lastComparison;
-
 
7839
        }
7184
      }
7840
      }
7185
      return 0;
7841
      return 0;
7186
    }
7842
    }
7187
 
7843
 
-
 
7844
    public _Fields fieldForId(int fieldId) {
-
 
7845
      return _Fields.findByThriftId(fieldId);
-
 
7846
    }
-
 
7847
 
7188
    public void read(TProtocol iprot) throws TException {
7848
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7189
      TField field;
7849
      org.apache.thrift.protocol.TField field;
7190
      iprot.readStructBegin();
7850
      iprot.readStructBegin();
7191
      while (true)
7851
      while (true)
7192
      {
7852
      {
7193
        field = iprot.readFieldBegin();
7853
        field = iprot.readFieldBegin();
7194
        if (field.type == TType.STOP) { 
7854
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7195
          break;
7855
          break;
7196
        }
7856
        }
7197
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7198
        if (fieldId == null) {
-
 
7199
          TProtocolUtil.skip(iprot, field.type);
-
 
7200
        } else {
-
 
7201
          switch (fieldId) {
7857
        switch (field.id) {
7202
            case SUCCESS:
7858
          case 0: // SUCCESS
7203
              if (field.type == TType.STRUCT) {
7859
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7204
                this.success = new Message();
7860
              this.success = new Message();
7205
                this.success.read(iprot);
7861
              this.success.read(iprot);
7206
              } else { 
7862
            } else { 
7207
                TProtocolUtil.skip(iprot, field.type);
7863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7208
              }
7864
            }
7209
              break;
7865
            break;
7210
            case SE:
7866
          case 1: // SE
7211
              if (field.type == TType.STRUCT) {
7867
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7212
                this.se = new HelperServiceException();
7868
              this.se = new HelperServiceException();
7213
                this.se.read(iprot);
7869
              this.se.read(iprot);
7214
              } else { 
7870
            } else { 
7215
                TProtocolUtil.skip(iprot, field.type);
7871
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7216
              }
7872
            }
7217
              break;
7873
            break;
7218
          }
7874
          default:
7219
          iprot.readFieldEnd();
7875
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7220
        }
7876
        }
-
 
7877
        iprot.readFieldEnd();
7221
      }
7878
      }
7222
      iprot.readStructEnd();
7879
      iprot.readStructEnd();
7223
      validate();
7880
      validate();
7224
    }
7881
    }
7225
 
7882
 
7226
    public void write(TProtocol oprot) throws TException {
7883
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7227
      oprot.writeStructBegin(STRUCT_DESC);
7884
      oprot.writeStructBegin(STRUCT_DESC);
7228
 
7885
 
7229
      if (this.isSetSuccess()) {
7886
      if (this.isSetSuccess()) {
7230
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7887
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7231
        this.success.write(oprot);
7888
        this.success.write(oprot);
Line 7261... Line 7918...
7261
      first = false;
7918
      first = false;
7262
      sb.append(")");
7919
      sb.append(")");
7263
      return sb.toString();
7920
      return sb.toString();
7264
    }
7921
    }
7265
 
7922
 
7266
    public void validate() throws TException {
7923
    public void validate() throws org.apache.thrift.TException {
7267
      // check for required fields
7924
      // check for required fields
7268
    }
7925
    }
7269
 
7926
 
-
 
7927
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7928
      try {
-
 
7929
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7930
      } catch (org.apache.thrift.TException te) {
-
 
7931
        throw new java.io.IOException(te);
-
 
7932
      }
-
 
7933
    }
-
 
7934
 
-
 
7935
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7936
      try {
-
 
7937
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7938
      } catch (org.apache.thrift.TException te) {
-
 
7939
        throw new java.io.IOException(te);
-
 
7940
      }
-
 
7941
    }
-
 
7942
 
7270
  }
7943
  }
7271
 
7944
 
7272
  public static class addUser_args implements TBase<addUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<addUser_args>   {
7945
  public static class addUser_args implements org.apache.thrift.TBase<addUser_args, addUser_args._Fields>, java.io.Serializable, Cloneable   {
7273
    private static final TStruct STRUCT_DESC = new TStruct("addUser_args");
7946
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_args");
7274
 
7947
 
7275
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
7948
    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);
7276
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
7949
    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);
7277
    private static final TField WAREHOUSE_ID_FIELD_DESC = new TField("warehouseId", TType.I64, (short)3);
7950
    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);
7278
 
7951
 
7279
    private String username;
7952
    private String username; // required
7280
    private String password;
7953
    private String password; // required
7281
    private long warehouseId;
7954
    private long warehouseId; // required
7282
 
7955
 
7283
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7956
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7284
    public enum _Fields implements TFieldIdEnum {
7957
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7285
      USERNAME((short)1, "username"),
7958
      USERNAME((short)1, "username"),
7286
      PASSWORD((short)2, "password"),
7959
      PASSWORD((short)2, "password"),
7287
      WAREHOUSE_ID((short)3, "warehouseId");
7960
      WAREHOUSE_ID((short)3, "warehouseId");
7288
 
7961
 
7289
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7290
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7962
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7291
 
7963
 
7292
      static {
7964
      static {
7293
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7965
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7294
          byId.put((int)field._thriftId, field);
-
 
7295
          byName.put(field.getFieldName(), field);
7966
          byName.put(field.getFieldName(), field);
7296
        }
7967
        }
7297
      }
7968
      }
7298
 
7969
 
7299
      /**
7970
      /**
7300
       * Find the _Fields constant that matches fieldId, or null if its not found.
7971
       * Find the _Fields constant that matches fieldId, or null if its not found.
7301
       */
7972
       */
7302
      public static _Fields findByThriftId(int fieldId) {
7973
      public static _Fields findByThriftId(int fieldId) {
7303
        return byId.get(fieldId);
7974
        switch(fieldId) {
-
 
7975
          case 1: // USERNAME
-
 
7976
            return USERNAME;
-
 
7977
          case 2: // PASSWORD
-
 
7978
            return PASSWORD;
-
 
7979
          case 3: // WAREHOUSE_ID
-
 
7980
            return WAREHOUSE_ID;
-
 
7981
          default:
-
 
7982
            return null;
-
 
7983
        }
7304
      }
7984
      }
7305
 
7985
 
7306
      /**
7986
      /**
7307
       * Find the _Fields constant that matches fieldId, throwing an exception
7987
       * Find the _Fields constant that matches fieldId, throwing an exception
7308
       * if it is not found.
7988
       * if it is not found.
Line 7339... Line 8019...
7339
 
8019
 
7340
    // isset id assignments
8020
    // isset id assignments
7341
    private static final int __WAREHOUSEID_ISSET_ID = 0;
8021
    private static final int __WAREHOUSEID_ISSET_ID = 0;
7342
    private BitSet __isset_bit_vector = new BitSet(1);
8022
    private BitSet __isset_bit_vector = new BitSet(1);
7343
 
8023
 
7344
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8024
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7345
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
7346
          new FieldValueMetaData(TType.STRING)));
-
 
7347
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
7348
          new FieldValueMetaData(TType.STRING)));
-
 
7349
      put(_Fields.WAREHOUSE_ID, new FieldMetaData("warehouseId", TFieldRequirementType.DEFAULT, 
-
 
7350
          new FieldValueMetaData(TType.I64)));
-
 
7351
    }});
-
 
7352
 
-
 
7353
    static {
8025
    static {
-
 
8026
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8027
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8028
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
8029
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8030
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
8031
      tmpMap.put(_Fields.WAREHOUSE_ID, new org.apache.thrift.meta_data.FieldMetaData("warehouseId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8033
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7354
      FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
8034
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_args.class, metaDataMap);
7355
    }
8035
    }
7356
 
8036
 
7357
    public addUser_args() {
8037
    public addUser_args() {
7358
    }
8038
    }
7359
 
8039
 
Line 7386... Line 8066...
7386
 
8066
 
7387
    public addUser_args deepCopy() {
8067
    public addUser_args deepCopy() {
7388
      return new addUser_args(this);
8068
      return new addUser_args(this);
7389
    }
8069
    }
7390
 
8070
 
7391
    @Deprecated
8071
    @Override
7392
    public addUser_args clone() {
8072
    public void clear() {
-
 
8073
      this.username = null;
-
 
8074
      this.password = null;
7393
      return new addUser_args(this);
8075
      setWarehouseIdIsSet(false);
-
 
8076
      this.warehouseId = 0;
7394
    }
8077
    }
7395
 
8078
 
7396
    public String getUsername() {
8079
    public String getUsername() {
7397
      return this.username;
8080
      return this.username;
7398
    }
8081
    }
7399
 
8082
 
7400
    public addUser_args setUsername(String username) {
8083
    public void setUsername(String username) {
7401
      this.username = username;
8084
      this.username = username;
7402
      return this;
-
 
7403
    }
8085
    }
7404
 
8086
 
7405
    public void unsetUsername() {
8087
    public void unsetUsername() {
7406
      this.username = null;
8088
      this.username = null;
7407
    }
8089
    }
7408
 
8090
 
7409
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
8091
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
7410
    public boolean isSetUsername() {
8092
    public boolean isSetUsername() {
7411
      return this.username != null;
8093
      return this.username != null;
7412
    }
8094
    }
7413
 
8095
 
7414
    public void setUsernameIsSet(boolean value) {
8096
    public void setUsernameIsSet(boolean value) {
Line 7419... Line 8101...
7419
 
8101
 
7420
    public String getPassword() {
8102
    public String getPassword() {
7421
      return this.password;
8103
      return this.password;
7422
    }
8104
    }
7423
 
8105
 
7424
    public addUser_args setPassword(String password) {
8106
    public void setPassword(String password) {
7425
      this.password = password;
8107
      this.password = password;
7426
      return this;
-
 
7427
    }
8108
    }
7428
 
8109
 
7429
    public void unsetPassword() {
8110
    public void unsetPassword() {
7430
      this.password = null;
8111
      this.password = null;
7431
    }
8112
    }
7432
 
8113
 
7433
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
8114
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
7434
    public boolean isSetPassword() {
8115
    public boolean isSetPassword() {
7435
      return this.password != null;
8116
      return this.password != null;
7436
    }
8117
    }
7437
 
8118
 
7438
    public void setPasswordIsSet(boolean value) {
8119
    public void setPasswordIsSet(boolean value) {
Line 7443... Line 8124...
7443
 
8124
 
7444
    public long getWarehouseId() {
8125
    public long getWarehouseId() {
7445
      return this.warehouseId;
8126
      return this.warehouseId;
7446
    }
8127
    }
7447
 
8128
 
7448
    public addUser_args setWarehouseId(long warehouseId) {
8129
    public void setWarehouseId(long warehouseId) {
7449
      this.warehouseId = warehouseId;
8130
      this.warehouseId = warehouseId;
7450
      setWarehouseIdIsSet(true);
8131
      setWarehouseIdIsSet(true);
7451
      return this;
-
 
7452
    }
8132
    }
7453
 
8133
 
7454
    public void unsetWarehouseId() {
8134
    public void unsetWarehouseId() {
7455
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
8135
      __isset_bit_vector.clear(__WAREHOUSEID_ISSET_ID);
7456
    }
8136
    }
7457
 
8137
 
7458
    /** Returns true if field warehouseId is set (has been asigned a value) and false otherwise */
8138
    /** Returns true if field warehouseId is set (has been assigned a value) and false otherwise */
7459
    public boolean isSetWarehouseId() {
8139
    public boolean isSetWarehouseId() {
7460
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
8140
      return __isset_bit_vector.get(__WAREHOUSEID_ISSET_ID);
7461
    }
8141
    }
7462
 
8142
 
7463
    public void setWarehouseIdIsSet(boolean value) {
8143
    public void setWarehouseIdIsSet(boolean value) {
Line 7491... Line 8171...
7491
        break;
8171
        break;
7492
 
8172
 
7493
      }
8173
      }
7494
    }
8174
    }
7495
 
8175
 
7496
    public void setFieldValue(int fieldID, Object value) {
-
 
7497
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7498
    }
-
 
7499
 
-
 
7500
    public Object getFieldValue(_Fields field) {
8176
    public Object getFieldValue(_Fields field) {
7501
      switch (field) {
8177
      switch (field) {
7502
      case USERNAME:
8178
      case USERNAME:
7503
        return getUsername();
8179
        return getUsername();
7504
 
8180
 
7505
      case PASSWORD:
8181
      case PASSWORD:
7506
        return getPassword();
8182
        return getPassword();
7507
 
8183
 
7508
      case WAREHOUSE_ID:
8184
      case WAREHOUSE_ID:
7509
        return new Long(getWarehouseId());
8185
        return Long.valueOf(getWarehouseId());
7510
 
8186
 
7511
      }
8187
      }
7512
      throw new IllegalStateException();
8188
      throw new IllegalStateException();
7513
    }
8189
    }
7514
 
8190
 
7515
    public Object getFieldValue(int fieldId) {
-
 
7516
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7517
    }
-
 
7518
 
-
 
7519
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8191
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7520
    public boolean isSet(_Fields field) {
8192
    public boolean isSet(_Fields field) {
-
 
8193
      if (field == null) {
-
 
8194
        throw new IllegalArgumentException();
-
 
8195
      }
-
 
8196
 
7521
      switch (field) {
8197
      switch (field) {
7522
      case USERNAME:
8198
      case USERNAME:
7523
        return isSetUsername();
8199
        return isSetUsername();
7524
      case PASSWORD:
8200
      case PASSWORD:
7525
        return isSetPassword();
8201
        return isSetPassword();
Line 7527... Line 8203...
7527
        return isSetWarehouseId();
8203
        return isSetWarehouseId();
7528
      }
8204
      }
7529
      throw new IllegalStateException();
8205
      throw new IllegalStateException();
7530
    }
8206
    }
7531
 
8207
 
7532
    public boolean isSet(int fieldID) {
-
 
7533
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7534
    }
-
 
7535
 
-
 
7536
    @Override
8208
    @Override
7537
    public boolean equals(Object that) {
8209
    public boolean equals(Object that) {
7538
      if (that == null)
8210
      if (that == null)
7539
        return false;
8211
        return false;
7540
      if (that instanceof addUser_args)
8212
      if (that instanceof addUser_args)
Line 7587... Line 8259...
7587
      }
8259
      }
7588
 
8260
 
7589
      int lastComparison = 0;
8261
      int lastComparison = 0;
7590
      addUser_args typedOther = (addUser_args)other;
8262
      addUser_args typedOther = (addUser_args)other;
7591
 
8263
 
7592
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
8264
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
7593
      if (lastComparison != 0) {
8265
      if (lastComparison != 0) {
7594
        return lastComparison;
8266
        return lastComparison;
7595
      }
8267
      }
-
 
8268
      if (isSetUsername()) {
7596
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
8269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
7597
      if (lastComparison != 0) {
8270
        if (lastComparison != 0) {
7598
        return lastComparison;
8271
          return lastComparison;
-
 
8272
        }
7599
      }
8273
      }
7600
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
8274
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
7601
      if (lastComparison != 0) {
8275
      if (lastComparison != 0) {
7602
        return lastComparison;
8276
        return lastComparison;
7603
      }
8277
      }
-
 
8278
      if (isSetPassword()) {
7604
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
8279
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
7605
      if (lastComparison != 0) {
8280
        if (lastComparison != 0) {
7606
        return lastComparison;
8281
          return lastComparison;
-
 
8282
        }
7607
      }
8283
      }
7608
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(isSetWarehouseId());
8284
      lastComparison = Boolean.valueOf(isSetWarehouseId()).compareTo(typedOther.isSetWarehouseId());
7609
      if (lastComparison != 0) {
8285
      if (lastComparison != 0) {
7610
        return lastComparison;
8286
        return lastComparison;
7611
      }
8287
      }
-
 
8288
      if (isSetWarehouseId()) {
7612
      lastComparison = TBaseHelper.compareTo(warehouseId, typedOther.warehouseId);
8289
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.warehouseId, typedOther.warehouseId);
7613
      if (lastComparison != 0) {
8290
        if (lastComparison != 0) {
7614
        return lastComparison;
8291
          return lastComparison;
-
 
8292
        }
7615
      }
8293
      }
7616
      return 0;
8294
      return 0;
7617
    }
8295
    }
7618
 
8296
 
-
 
8297
    public _Fields fieldForId(int fieldId) {
-
 
8298
      return _Fields.findByThriftId(fieldId);
-
 
8299
    }
-
 
8300
 
7619
    public void read(TProtocol iprot) throws TException {
8301
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7620
      TField field;
8302
      org.apache.thrift.protocol.TField field;
7621
      iprot.readStructBegin();
8303
      iprot.readStructBegin();
7622
      while (true)
8304
      while (true)
7623
      {
8305
      {
7624
        field = iprot.readFieldBegin();
8306
        field = iprot.readFieldBegin();
7625
        if (field.type == TType.STOP) { 
8307
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7626
          break;
8308
          break;
7627
        }
8309
        }
7628
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7629
        if (fieldId == null) {
-
 
7630
          TProtocolUtil.skip(iprot, field.type);
-
 
7631
        } else {
-
 
7632
          switch (fieldId) {
8310
        switch (field.id) {
7633
            case USERNAME:
8311
          case 1: // USERNAME
7634
              if (field.type == TType.STRING) {
8312
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7635
                this.username = iprot.readString();
8313
              this.username = iprot.readString();
7636
              } else { 
8314
            } else { 
7637
                TProtocolUtil.skip(iprot, field.type);
8315
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7638
              }
8316
            }
7639
              break;
8317
            break;
7640
            case PASSWORD:
8318
          case 2: // PASSWORD
7641
              if (field.type == TType.STRING) {
8319
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7642
                this.password = iprot.readString();
8320
              this.password = iprot.readString();
7643
              } else { 
8321
            } else { 
7644
                TProtocolUtil.skip(iprot, field.type);
8322
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7645
              }
8323
            }
7646
              break;
8324
            break;
7647
            case WAREHOUSE_ID:
8325
          case 3: // WAREHOUSE_ID
7648
              if (field.type == TType.I64) {
8326
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7649
                this.warehouseId = iprot.readI64();
8327
              this.warehouseId = iprot.readI64();
7650
                setWarehouseIdIsSet(true);
8328
              setWarehouseIdIsSet(true);
7651
              } else { 
8329
            } else { 
7652
                TProtocolUtil.skip(iprot, field.type);
8330
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7653
              }
8331
            }
7654
              break;
8332
            break;
7655
          }
8333
          default:
7656
          iprot.readFieldEnd();
8334
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7657
        }
8335
        }
-
 
8336
        iprot.readFieldEnd();
7658
      }
8337
      }
7659
      iprot.readStructEnd();
8338
      iprot.readStructEnd();
7660
      validate();
8339
      validate();
7661
    }
8340
    }
7662
 
8341
 
7663
    public void write(TProtocol oprot) throws TException {
8342
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7664
      validate();
8343
      validate();
7665
 
8344
 
7666
      oprot.writeStructBegin(STRUCT_DESC);
8345
      oprot.writeStructBegin(STRUCT_DESC);
7667
      if (this.username != null) {
8346
      if (this.username != null) {
7668
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
8347
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
Line 7707... Line 8386...
7707
      first = false;
8386
      first = false;
7708
      sb.append(")");
8387
      sb.append(")");
7709
      return sb.toString();
8388
      return sb.toString();
7710
    }
8389
    }
7711
 
8390
 
7712
    public void validate() throws TException {
8391
    public void validate() throws org.apache.thrift.TException {
7713
      // check for required fields
8392
      // check for required fields
7714
    }
8393
    }
7715
 
8394
 
-
 
8395
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8396
      try {
-
 
8397
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8398
      } catch (org.apache.thrift.TException te) {
-
 
8399
        throw new java.io.IOException(te);
-
 
8400
      }
-
 
8401
    }
-
 
8402
 
-
 
8403
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8404
      try {
-
 
8405
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8406
        __isset_bit_vector = new BitSet(1);
-
 
8407
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8408
      } catch (org.apache.thrift.TException te) {
-
 
8409
        throw new java.io.IOException(te);
-
 
8410
      }
-
 
8411
    }
-
 
8412
 
7716
  }
8413
  }
7717
 
8414
 
7718
  public static class addUser_result implements TBase<addUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<addUser_result>   {
8415
  public static class addUser_result implements org.apache.thrift.TBase<addUser_result, addUser_result._Fields>, java.io.Serializable, Cloneable   {
7719
    private static final TStruct STRUCT_DESC = new TStruct("addUser_result");
8416
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addUser_result");
7720
 
8417
 
7721
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
8418
    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);
7722
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
8419
    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);
7723
 
8420
 
7724
    private boolean success;
8421
    private boolean success; // required
7725
    private HelperServiceException se;
8422
    private HelperServiceException se; // required
7726
 
8423
 
7727
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8424
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7728
    public enum _Fields implements TFieldIdEnum {
8425
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7729
      SUCCESS((short)0, "success"),
8426
      SUCCESS((short)0, "success"),
7730
      SE((short)1, "se");
8427
      SE((short)1, "se");
7731
 
8428
 
7732
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7733
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8429
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7734
 
8430
 
7735
      static {
8431
      static {
7736
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8432
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7737
          byId.put((int)field._thriftId, field);
-
 
7738
          byName.put(field.getFieldName(), field);
8433
          byName.put(field.getFieldName(), field);
7739
        }
8434
        }
7740
      }
8435
      }
7741
 
8436
 
7742
      /**
8437
      /**
7743
       * Find the _Fields constant that matches fieldId, or null if its not found.
8438
       * Find the _Fields constant that matches fieldId, or null if its not found.
7744
       */
8439
       */
7745
      public static _Fields findByThriftId(int fieldId) {
8440
      public static _Fields findByThriftId(int fieldId) {
7746
        return byId.get(fieldId);
8441
        switch(fieldId) {
-
 
8442
          case 0: // SUCCESS
-
 
8443
            return SUCCESS;
-
 
8444
          case 1: // SE
-
 
8445
            return SE;
-
 
8446
          default:
-
 
8447
            return null;
-
 
8448
        }
7747
      }
8449
      }
7748
 
8450
 
7749
      /**
8451
      /**
7750
       * Find the _Fields constant that matches fieldId, throwing an exception
8452
       * Find the _Fields constant that matches fieldId, throwing an exception
7751
       * if it is not found.
8453
       * if it is not found.
Line 7782... Line 8484...
7782
 
8484
 
7783
    // isset id assignments
8485
    // isset id assignments
7784
    private static final int __SUCCESS_ISSET_ID = 0;
8486
    private static final int __SUCCESS_ISSET_ID = 0;
7785
    private BitSet __isset_bit_vector = new BitSet(1);
8487
    private BitSet __isset_bit_vector = new BitSet(1);
7786
 
8488
 
7787
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8489
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7788
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7789
          new FieldValueMetaData(TType.BOOL)));
-
 
7790
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
7791
          new FieldValueMetaData(TType.STRUCT)));
-
 
7792
    }});
-
 
7793
 
-
 
7794
    static {
8490
    static {
-
 
8491
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8492
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8493
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
8494
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8495
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
8496
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7795
      FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
8497
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addUser_result.class, metaDataMap);
7796
    }
8498
    }
7797
 
8499
 
7798
    public addUser_result() {
8500
    public addUser_result() {
7799
    }
8501
    }
7800
 
8502
 
Line 7822... Line 8524...
7822
 
8524
 
7823
    public addUser_result deepCopy() {
8525
    public addUser_result deepCopy() {
7824
      return new addUser_result(this);
8526
      return new addUser_result(this);
7825
    }
8527
    }
7826
 
8528
 
7827
    @Deprecated
8529
    @Override
7828
    public addUser_result clone() {
8530
    public void clear() {
7829
      return new addUser_result(this);
8531
      setSuccessIsSet(false);
-
 
8532
      this.success = false;
-
 
8533
      this.se = null;
7830
    }
8534
    }
7831
 
8535
 
7832
    public boolean isSuccess() {
8536
    public boolean isSuccess() {
7833
      return this.success;
8537
      return this.success;
7834
    }
8538
    }
7835
 
8539
 
7836
    public addUser_result setSuccess(boolean success) {
8540
    public void setSuccess(boolean success) {
7837
      this.success = success;
8541
      this.success = success;
7838
      setSuccessIsSet(true);
8542
      setSuccessIsSet(true);
7839
      return this;
-
 
7840
    }
8543
    }
7841
 
8544
 
7842
    public void unsetSuccess() {
8545
    public void unsetSuccess() {
7843
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8546
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7844
    }
8547
    }
7845
 
8548
 
7846
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
8549
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7847
    public boolean isSetSuccess() {
8550
    public boolean isSetSuccess() {
7848
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8551
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7849
    }
8552
    }
7850
 
8553
 
7851
    public void setSuccessIsSet(boolean value) {
8554
    public void setSuccessIsSet(boolean value) {
Line 7854... Line 8557...
7854
 
8557
 
7855
    public HelperServiceException getSe() {
8558
    public HelperServiceException getSe() {
7856
      return this.se;
8559
      return this.se;
7857
    }
8560
    }
7858
 
8561
 
7859
    public addUser_result setSe(HelperServiceException se) {
8562
    public void setSe(HelperServiceException se) {
7860
      this.se = se;
8563
      this.se = se;
7861
      return this;
-
 
7862
    }
8564
    }
7863
 
8565
 
7864
    public void unsetSe() {
8566
    public void unsetSe() {
7865
      this.se = null;
8567
      this.se = null;
7866
    }
8568
    }
7867
 
8569
 
7868
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
8570
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
7869
    public boolean isSetSe() {
8571
    public boolean isSetSe() {
7870
      return this.se != null;
8572
      return this.se != null;
7871
    }
8573
    }
7872
 
8574
 
7873
    public void setSeIsSet(boolean value) {
8575
    public void setSeIsSet(boolean value) {
Line 7895... Line 8597...
7895
        break;
8597
        break;
7896
 
8598
 
7897
      }
8599
      }
7898
    }
8600
    }
7899
 
8601
 
7900
    public void setFieldValue(int fieldID, Object value) {
-
 
7901
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7902
    }
-
 
7903
 
-
 
7904
    public Object getFieldValue(_Fields field) {
8602
    public Object getFieldValue(_Fields field) {
7905
      switch (field) {
8603
      switch (field) {
7906
      case SUCCESS:
8604
      case SUCCESS:
7907
        return new Boolean(isSuccess());
8605
        return Boolean.valueOf(isSuccess());
7908
 
8606
 
7909
      case SE:
8607
      case SE:
7910
        return getSe();
8608
        return getSe();
7911
 
8609
 
7912
      }
8610
      }
7913
      throw new IllegalStateException();
8611
      throw new IllegalStateException();
7914
    }
8612
    }
7915
 
8613
 
7916
    public Object getFieldValue(int fieldId) {
-
 
7917
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7918
    }
-
 
7919
 
-
 
7920
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8614
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7921
    public boolean isSet(_Fields field) {
8615
    public boolean isSet(_Fields field) {
-
 
8616
      if (field == null) {
-
 
8617
        throw new IllegalArgumentException();
-
 
8618
      }
-
 
8619
 
7922
      switch (field) {
8620
      switch (field) {
7923
      case SUCCESS:
8621
      case SUCCESS:
7924
        return isSetSuccess();
8622
        return isSetSuccess();
7925
      case SE:
8623
      case SE:
7926
        return isSetSe();
8624
        return isSetSe();
7927
      }
8625
      }
7928
      throw new IllegalStateException();
8626
      throw new IllegalStateException();
7929
    }
8627
    }
7930
 
8628
 
7931
    public boolean isSet(int fieldID) {
-
 
7932
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7933
    }
-
 
7934
 
-
 
7935
    @Override
8629
    @Override
7936
    public boolean equals(Object that) {
8630
    public boolean equals(Object that) {
7937
      if (that == null)
8631
      if (that == null)
7938
        return false;
8632
        return false;
7939
      if (that instanceof addUser_result)
8633
      if (that instanceof addUser_result)
Line 7977... Line 8671...
7977
      }
8671
      }
7978
 
8672
 
7979
      int lastComparison = 0;
8673
      int lastComparison = 0;
7980
      addUser_result typedOther = (addUser_result)other;
8674
      addUser_result typedOther = (addUser_result)other;
7981
 
8675
 
7982
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
8676
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7983
      if (lastComparison != 0) {
8677
      if (lastComparison != 0) {
7984
        return lastComparison;
8678
        return lastComparison;
7985
      }
8679
      }
-
 
8680
      if (isSetSuccess()) {
7986
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
8681
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7987
      if (lastComparison != 0) {
8682
        if (lastComparison != 0) {
7988
        return lastComparison;
8683
          return lastComparison;
-
 
8684
        }
7989
      }
8685
      }
7990
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
8686
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
7991
      if (lastComparison != 0) {
8687
      if (lastComparison != 0) {
7992
        return lastComparison;
8688
        return lastComparison;
7993
      }
8689
      }
-
 
8690
      if (isSetSe()) {
7994
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
8691
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
7995
      if (lastComparison != 0) {
8692
        if (lastComparison != 0) {
7996
        return lastComparison;
8693
          return lastComparison;
-
 
8694
        }
7997
      }
8695
      }
7998
      return 0;
8696
      return 0;
7999
    }
8697
    }
8000
 
8698
 
-
 
8699
    public _Fields fieldForId(int fieldId) {
-
 
8700
      return _Fields.findByThriftId(fieldId);
-
 
8701
    }
-
 
8702
 
8001
    public void read(TProtocol iprot) throws TException {
8703
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8002
      TField field;
8704
      org.apache.thrift.protocol.TField field;
8003
      iprot.readStructBegin();
8705
      iprot.readStructBegin();
8004
      while (true)
8706
      while (true)
8005
      {
8707
      {
8006
        field = iprot.readFieldBegin();
8708
        field = iprot.readFieldBegin();
8007
        if (field.type == TType.STOP) { 
8709
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8008
          break;
8710
          break;
8009
        }
8711
        }
8010
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8011
        if (fieldId == null) {
-
 
8012
          TProtocolUtil.skip(iprot, field.type);
-
 
8013
        } else {
-
 
8014
          switch (fieldId) {
8712
        switch (field.id) {
8015
            case SUCCESS:
8713
          case 0: // SUCCESS
8016
              if (field.type == TType.BOOL) {
8714
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
8017
                this.success = iprot.readBool();
8715
              this.success = iprot.readBool();
8018
                setSuccessIsSet(true);
8716
              setSuccessIsSet(true);
8019
              } else { 
8717
            } else { 
8020
                TProtocolUtil.skip(iprot, field.type);
8718
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8021
              }
8719
            }
8022
              break;
8720
            break;
8023
            case SE:
8721
          case 1: // SE
8024
              if (field.type == TType.STRUCT) {
8722
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8025
                this.se = new HelperServiceException();
8723
              this.se = new HelperServiceException();
8026
                this.se.read(iprot);
8724
              this.se.read(iprot);
8027
              } else { 
8725
            } else { 
8028
                TProtocolUtil.skip(iprot, field.type);
8726
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8029
              }
8727
            }
8030
              break;
8728
            break;
8031
          }
8729
          default:
8032
          iprot.readFieldEnd();
8730
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8033
        }
8731
        }
-
 
8732
        iprot.readFieldEnd();
8034
      }
8733
      }
8035
      iprot.readStructEnd();
8734
      iprot.readStructEnd();
8036
      validate();
8735
      validate();
8037
    }
8736
    }
8038
 
8737
 
8039
    public void write(TProtocol oprot) throws TException {
8738
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8040
      oprot.writeStructBegin(STRUCT_DESC);
8739
      oprot.writeStructBegin(STRUCT_DESC);
8041
 
8740
 
8042
      if (this.isSetSuccess()) {
8741
      if (this.isSetSuccess()) {
8043
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8742
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8044
        oprot.writeBool(this.success);
8743
        oprot.writeBool(this.success);
Line 8070... Line 8769...
8070
      first = false;
8769
      first = false;
8071
      sb.append(")");
8770
      sb.append(")");
8072
      return sb.toString();
8771
      return sb.toString();
8073
    }
8772
    }
8074
 
8773
 
8075
    public void validate() throws TException {
8774
    public void validate() throws org.apache.thrift.TException {
8076
      // check for required fields
8775
      // check for required fields
8077
    }
8776
    }
8078
 
8777
 
-
 
8778
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8779
      try {
-
 
8780
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8781
      } catch (org.apache.thrift.TException te) {
-
 
8782
        throw new java.io.IOException(te);
-
 
8783
      }
-
 
8784
    }
-
 
8785
 
-
 
8786
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8787
      try {
-
 
8788
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8789
      } catch (org.apache.thrift.TException te) {
-
 
8790
        throw new java.io.IOException(te);
-
 
8791
      }
-
 
8792
    }
-
 
8793
 
8079
  }
8794
  }
8080
 
8795
 
8081
  public static class deleteUser_args implements TBase<deleteUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_args>   {
8796
  public static class deleteUser_args implements org.apache.thrift.TBase<deleteUser_args, deleteUser_args._Fields>, java.io.Serializable, Cloneable   {
8082
    private static final TStruct STRUCT_DESC = new TStruct("deleteUser_args");
8797
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_args");
8083
 
8798
 
8084
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
8799
    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);
8085
 
8800
 
8086
    private String username;
8801
    private String username; // required
8087
 
8802
 
8088
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8803
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8089
    public enum _Fields implements TFieldIdEnum {
8804
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8090
      USERNAME((short)1, "username");
8805
      USERNAME((short)1, "username");
8091
 
8806
 
8092
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8093
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8807
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8094
 
8808
 
8095
      static {
8809
      static {
8096
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8810
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8097
          byId.put((int)field._thriftId, field);
-
 
8098
          byName.put(field.getFieldName(), field);
8811
          byName.put(field.getFieldName(), field);
8099
        }
8812
        }
8100
      }
8813
      }
8101
 
8814
 
8102
      /**
8815
      /**
8103
       * Find the _Fields constant that matches fieldId, or null if its not found.
8816
       * Find the _Fields constant that matches fieldId, or null if its not found.
8104
       */
8817
       */
8105
      public static _Fields findByThriftId(int fieldId) {
8818
      public static _Fields findByThriftId(int fieldId) {
8106
        return byId.get(fieldId);
8819
        switch(fieldId) {
-
 
8820
          case 1: // USERNAME
-
 
8821
            return USERNAME;
-
 
8822
          default:
-
 
8823
            return null;
-
 
8824
        }
8107
      }
8825
      }
8108
 
8826
 
8109
      /**
8827
      /**
8110
       * Find the _Fields constant that matches fieldId, throwing an exception
8828
       * Find the _Fields constant that matches fieldId, throwing an exception
8111
       * if it is not found.
8829
       * if it is not found.
Line 8140... Line 8858...
8140
      }
8858
      }
8141
    }
8859
    }
8142
 
8860
 
8143
    // isset id assignments
8861
    // isset id assignments
8144
 
8862
 
8145
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8863
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8146
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
8147
          new FieldValueMetaData(TType.STRING)));
-
 
8148
    }});
-
 
8149
 
-
 
8150
    static {
8864
    static {
-
 
8865
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8866
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8867
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
8868
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8151
      FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
8869
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_args.class, metaDataMap);
8152
    }
8870
    }
8153
 
8871
 
8154
    public deleteUser_args() {
8872
    public deleteUser_args() {
8155
    }
8873
    }
8156
 
8874
 
Line 8172... Line 8890...
8172
 
8890
 
8173
    public deleteUser_args deepCopy() {
8891
    public deleteUser_args deepCopy() {
8174
      return new deleteUser_args(this);
8892
      return new deleteUser_args(this);
8175
    }
8893
    }
8176
 
8894
 
8177
    @Deprecated
8895
    @Override
8178
    public deleteUser_args clone() {
8896
    public void clear() {
8179
      return new deleteUser_args(this);
8897
      this.username = null;
8180
    }
8898
    }
8181
 
8899
 
8182
    public String getUsername() {
8900
    public String getUsername() {
8183
      return this.username;
8901
      return this.username;
8184
    }
8902
    }
8185
 
8903
 
8186
    public deleteUser_args setUsername(String username) {
8904
    public void setUsername(String username) {
8187
      this.username = username;
8905
      this.username = username;
8188
      return this;
-
 
8189
    }
8906
    }
8190
 
8907
 
8191
    public void unsetUsername() {
8908
    public void unsetUsername() {
8192
      this.username = null;
8909
      this.username = null;
8193
    }
8910
    }
8194
 
8911
 
8195
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
8912
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
8196
    public boolean isSetUsername() {
8913
    public boolean isSetUsername() {
8197
      return this.username != null;
8914
      return this.username != null;
8198
    }
8915
    }
8199
 
8916
 
8200
    public void setUsernameIsSet(boolean value) {
8917
    public void setUsernameIsSet(boolean value) {
Line 8214... Line 8931...
8214
        break;
8931
        break;
8215
 
8932
 
8216
      }
8933
      }
8217
    }
8934
    }
8218
 
8935
 
8219
    public void setFieldValue(int fieldID, Object value) {
-
 
8220
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8221
    }
-
 
8222
 
-
 
8223
    public Object getFieldValue(_Fields field) {
8936
    public Object getFieldValue(_Fields field) {
8224
      switch (field) {
8937
      switch (field) {
8225
      case USERNAME:
8938
      case USERNAME:
8226
        return getUsername();
8939
        return getUsername();
8227
 
8940
 
8228
      }
8941
      }
8229
      throw new IllegalStateException();
8942
      throw new IllegalStateException();
8230
    }
8943
    }
8231
 
8944
 
8232
    public Object getFieldValue(int fieldId) {
-
 
8233
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8234
    }
-
 
8235
 
-
 
8236
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8945
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8237
    public boolean isSet(_Fields field) {
8946
    public boolean isSet(_Fields field) {
-
 
8947
      if (field == null) {
-
 
8948
        throw new IllegalArgumentException();
-
 
8949
      }
-
 
8950
 
8238
      switch (field) {
8951
      switch (field) {
8239
      case USERNAME:
8952
      case USERNAME:
8240
        return isSetUsername();
8953
        return isSetUsername();
8241
      }
8954
      }
8242
      throw new IllegalStateException();
8955
      throw new IllegalStateException();
8243
    }
8956
    }
8244
 
8957
 
8245
    public boolean isSet(int fieldID) {
-
 
8246
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8247
    }
-
 
8248
 
-
 
8249
    @Override
8958
    @Override
8250
    public boolean equals(Object that) {
8959
    public boolean equals(Object that) {
8251
      if (that == null)
8960
      if (that == null)
8252
        return false;
8961
        return false;
8253
      if (that instanceof deleteUser_args)
8962
      if (that instanceof deleteUser_args)
Line 8282... Line 8991...
8282
      }
8991
      }
8283
 
8992
 
8284
      int lastComparison = 0;
8993
      int lastComparison = 0;
8285
      deleteUser_args typedOther = (deleteUser_args)other;
8994
      deleteUser_args typedOther = (deleteUser_args)other;
8286
 
8995
 
8287
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
8996
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
8288
      if (lastComparison != 0) {
8997
      if (lastComparison != 0) {
8289
        return lastComparison;
8998
        return lastComparison;
8290
      }
8999
      }
-
 
9000
      if (isSetUsername()) {
8291
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
9001
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
8292
      if (lastComparison != 0) {
9002
        if (lastComparison != 0) {
8293
        return lastComparison;
9003
          return lastComparison;
-
 
9004
        }
8294
      }
9005
      }
8295
      return 0;
9006
      return 0;
8296
    }
9007
    }
8297
 
9008
 
-
 
9009
    public _Fields fieldForId(int fieldId) {
-
 
9010
      return _Fields.findByThriftId(fieldId);
-
 
9011
    }
-
 
9012
 
8298
    public void read(TProtocol iprot) throws TException {
9013
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8299
      TField field;
9014
      org.apache.thrift.protocol.TField field;
8300
      iprot.readStructBegin();
9015
      iprot.readStructBegin();
8301
      while (true)
9016
      while (true)
8302
      {
9017
      {
8303
        field = iprot.readFieldBegin();
9018
        field = iprot.readFieldBegin();
8304
        if (field.type == TType.STOP) { 
9019
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8305
          break;
9020
          break;
8306
        }
9021
        }
8307
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8308
        if (fieldId == null) {
-
 
8309
          TProtocolUtil.skip(iprot, field.type);
-
 
8310
        } else {
-
 
8311
          switch (fieldId) {
9022
        switch (field.id) {
8312
            case USERNAME:
9023
          case 1: // USERNAME
8313
              if (field.type == TType.STRING) {
9024
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8314
                this.username = iprot.readString();
9025
              this.username = iprot.readString();
8315
              } else { 
9026
            } else { 
8316
                TProtocolUtil.skip(iprot, field.type);
9027
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8317
              }
9028
            }
8318
              break;
9029
            break;
8319
          }
9030
          default:
8320
          iprot.readFieldEnd();
9031
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8321
        }
9032
        }
-
 
9033
        iprot.readFieldEnd();
8322
      }
9034
      }
8323
      iprot.readStructEnd();
9035
      iprot.readStructEnd();
8324
      validate();
9036
      validate();
8325
    }
9037
    }
8326
 
9038
 
8327
    public void write(TProtocol oprot) throws TException {
9039
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8328
      validate();
9040
      validate();
8329
 
9041
 
8330
      oprot.writeStructBegin(STRUCT_DESC);
9042
      oprot.writeStructBegin(STRUCT_DESC);
8331
      if (this.username != null) {
9043
      if (this.username != null) {
8332
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9044
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
Line 8351... Line 9063...
8351
      first = false;
9063
      first = false;
8352
      sb.append(")");
9064
      sb.append(")");
8353
      return sb.toString();
9065
      return sb.toString();
8354
    }
9066
    }
8355
 
9067
 
8356
    public void validate() throws TException {
9068
    public void validate() throws org.apache.thrift.TException {
8357
      // check for required fields
9069
      // check for required fields
8358
    }
9070
    }
8359
 
9071
 
-
 
9072
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9073
      try {
-
 
9074
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9075
      } catch (org.apache.thrift.TException te) {
-
 
9076
        throw new java.io.IOException(te);
-
 
9077
      }
-
 
9078
    }
-
 
9079
 
-
 
9080
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9081
      try {
-
 
9082
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9083
      } catch (org.apache.thrift.TException te) {
-
 
9084
        throw new java.io.IOException(te);
-
 
9085
      }
-
 
9086
    }
-
 
9087
 
8360
  }
9088
  }
8361
 
9089
 
8362
  public static class deleteUser_result implements TBase<deleteUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<deleteUser_result>   {
9090
  public static class deleteUser_result implements org.apache.thrift.TBase<deleteUser_result, deleteUser_result._Fields>, java.io.Serializable, Cloneable   {
8363
    private static final TStruct STRUCT_DESC = new TStruct("deleteUser_result");
9091
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("deleteUser_result");
8364
 
9092
 
8365
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
9093
    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);
8366
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
9094
    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);
8367
 
9095
 
8368
    private boolean success;
9096
    private boolean success; // required
8369
    private HelperServiceException se;
9097
    private HelperServiceException se; // required
8370
 
9098
 
8371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9099
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8372
    public enum _Fields implements TFieldIdEnum {
9100
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8373
      SUCCESS((short)0, "success"),
9101
      SUCCESS((short)0, "success"),
8374
      SE((short)1, "se");
9102
      SE((short)1, "se");
8375
 
9103
 
8376
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8377
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9104
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8378
 
9105
 
8379
      static {
9106
      static {
8380
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9107
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8381
          byId.put((int)field._thriftId, field);
-
 
8382
          byName.put(field.getFieldName(), field);
9108
          byName.put(field.getFieldName(), field);
8383
        }
9109
        }
8384
      }
9110
      }
8385
 
9111
 
8386
      /**
9112
      /**
8387
       * Find the _Fields constant that matches fieldId, or null if its not found.
9113
       * Find the _Fields constant that matches fieldId, or null if its not found.
8388
       */
9114
       */
8389
      public static _Fields findByThriftId(int fieldId) {
9115
      public static _Fields findByThriftId(int fieldId) {
8390
        return byId.get(fieldId);
9116
        switch(fieldId) {
-
 
9117
          case 0: // SUCCESS
-
 
9118
            return SUCCESS;
-
 
9119
          case 1: // SE
-
 
9120
            return SE;
-
 
9121
          default:
-
 
9122
            return null;
-
 
9123
        }
8391
      }
9124
      }
8392
 
9125
 
8393
      /**
9126
      /**
8394
       * Find the _Fields constant that matches fieldId, throwing an exception
9127
       * Find the _Fields constant that matches fieldId, throwing an exception
8395
       * if it is not found.
9128
       * if it is not found.
Line 8426... Line 9159...
8426
 
9159
 
8427
    // isset id assignments
9160
    // isset id assignments
8428
    private static final int __SUCCESS_ISSET_ID = 0;
9161
    private static final int __SUCCESS_ISSET_ID = 0;
8429
    private BitSet __isset_bit_vector = new BitSet(1);
9162
    private BitSet __isset_bit_vector = new BitSet(1);
8430
 
9163
 
8431
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9164
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8432
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
8433
          new FieldValueMetaData(TType.BOOL)));
-
 
8434
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
8435
          new FieldValueMetaData(TType.STRUCT)));
-
 
8436
    }});
-
 
8437
 
-
 
8438
    static {
9165
    static {
-
 
9166
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9167
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9168
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
9169
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9170
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
9171
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8439
      FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
9172
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(deleteUser_result.class, metaDataMap);
8440
    }
9173
    }
8441
 
9174
 
8442
    public deleteUser_result() {
9175
    public deleteUser_result() {
8443
    }
9176
    }
8444
 
9177
 
Line 8466... Line 9199...
8466
 
9199
 
8467
    public deleteUser_result deepCopy() {
9200
    public deleteUser_result deepCopy() {
8468
      return new deleteUser_result(this);
9201
      return new deleteUser_result(this);
8469
    }
9202
    }
8470
 
9203
 
8471
    @Deprecated
9204
    @Override
8472
    public deleteUser_result clone() {
9205
    public void clear() {
8473
      return new deleteUser_result(this);
9206
      setSuccessIsSet(false);
-
 
9207
      this.success = false;
-
 
9208
      this.se = null;
8474
    }
9209
    }
8475
 
9210
 
8476
    public boolean isSuccess() {
9211
    public boolean isSuccess() {
8477
      return this.success;
9212
      return this.success;
8478
    }
9213
    }
8479
 
9214
 
8480
    public deleteUser_result setSuccess(boolean success) {
9215
    public void setSuccess(boolean success) {
8481
      this.success = success;
9216
      this.success = success;
8482
      setSuccessIsSet(true);
9217
      setSuccessIsSet(true);
8483
      return this;
-
 
8484
    }
9218
    }
8485
 
9219
 
8486
    public void unsetSuccess() {
9220
    public void unsetSuccess() {
8487
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9221
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8488
    }
9222
    }
8489
 
9223
 
8490
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
9224
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
8491
    public boolean isSetSuccess() {
9225
    public boolean isSetSuccess() {
8492
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9226
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8493
    }
9227
    }
8494
 
9228
 
8495
    public void setSuccessIsSet(boolean value) {
9229
    public void setSuccessIsSet(boolean value) {
Line 8498... Line 9232...
8498
 
9232
 
8499
    public HelperServiceException getSe() {
9233
    public HelperServiceException getSe() {
8500
      return this.se;
9234
      return this.se;
8501
    }
9235
    }
8502
 
9236
 
8503
    public deleteUser_result setSe(HelperServiceException se) {
9237
    public void setSe(HelperServiceException se) {
8504
      this.se = se;
9238
      this.se = se;
8505
      return this;
-
 
8506
    }
9239
    }
8507
 
9240
 
8508
    public void unsetSe() {
9241
    public void unsetSe() {
8509
      this.se = null;
9242
      this.se = null;
8510
    }
9243
    }
8511
 
9244
 
8512
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
9245
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
8513
    public boolean isSetSe() {
9246
    public boolean isSetSe() {
8514
      return this.se != null;
9247
      return this.se != null;
8515
    }
9248
    }
8516
 
9249
 
8517
    public void setSeIsSet(boolean value) {
9250
    public void setSeIsSet(boolean value) {
Line 8539... Line 9272...
8539
        break;
9272
        break;
8540
 
9273
 
8541
      }
9274
      }
8542
    }
9275
    }
8543
 
9276
 
8544
    public void setFieldValue(int fieldID, Object value) {
-
 
8545
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8546
    }
-
 
8547
 
-
 
8548
    public Object getFieldValue(_Fields field) {
9277
    public Object getFieldValue(_Fields field) {
8549
      switch (field) {
9278
      switch (field) {
8550
      case SUCCESS:
9279
      case SUCCESS:
8551
        return new Boolean(isSuccess());
9280
        return Boolean.valueOf(isSuccess());
8552
 
9281
 
8553
      case SE:
9282
      case SE:
8554
        return getSe();
9283
        return getSe();
8555
 
9284
 
8556
      }
9285
      }
8557
      throw new IllegalStateException();
9286
      throw new IllegalStateException();
8558
    }
9287
    }
8559
 
9288
 
8560
    public Object getFieldValue(int fieldId) {
-
 
8561
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8562
    }
-
 
8563
 
-
 
8564
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
9289
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8565
    public boolean isSet(_Fields field) {
9290
    public boolean isSet(_Fields field) {
-
 
9291
      if (field == null) {
-
 
9292
        throw new IllegalArgumentException();
-
 
9293
      }
-
 
9294
 
8566
      switch (field) {
9295
      switch (field) {
8567
      case SUCCESS:
9296
      case SUCCESS:
8568
        return isSetSuccess();
9297
        return isSetSuccess();
8569
      case SE:
9298
      case SE:
8570
        return isSetSe();
9299
        return isSetSe();
8571
      }
9300
      }
8572
      throw new IllegalStateException();
9301
      throw new IllegalStateException();
8573
    }
9302
    }
8574
 
9303
 
8575
    public boolean isSet(int fieldID) {
-
 
8576
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8577
    }
-
 
8578
 
-
 
8579
    @Override
9304
    @Override
8580
    public boolean equals(Object that) {
9305
    public boolean equals(Object that) {
8581
      if (that == null)
9306
      if (that == null)
8582
        return false;
9307
        return false;
8583
      if (that instanceof deleteUser_result)
9308
      if (that instanceof deleteUser_result)
Line 8621... Line 9346...
8621
      }
9346
      }
8622
 
9347
 
8623
      int lastComparison = 0;
9348
      int lastComparison = 0;
8624
      deleteUser_result typedOther = (deleteUser_result)other;
9349
      deleteUser_result typedOther = (deleteUser_result)other;
8625
 
9350
 
8626
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
9351
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
8627
      if (lastComparison != 0) {
9352
      if (lastComparison != 0) {
8628
        return lastComparison;
9353
        return lastComparison;
8629
      }
9354
      }
-
 
9355
      if (isSetSuccess()) {
8630
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
9356
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8631
      if (lastComparison != 0) {
9357
        if (lastComparison != 0) {
8632
        return lastComparison;
9358
          return lastComparison;
-
 
9359
        }
8633
      }
9360
      }
8634
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
9361
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
8635
      if (lastComparison != 0) {
9362
      if (lastComparison != 0) {
8636
        return lastComparison;
9363
        return lastComparison;
8637
      }
9364
      }
-
 
9365
      if (isSetSe()) {
8638
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
9366
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
8639
      if (lastComparison != 0) {
9367
        if (lastComparison != 0) {
8640
        return lastComparison;
9368
          return lastComparison;
-
 
9369
        }
8641
      }
9370
      }
8642
      return 0;
9371
      return 0;
8643
    }
9372
    }
8644
 
9373
 
-
 
9374
    public _Fields fieldForId(int fieldId) {
-
 
9375
      return _Fields.findByThriftId(fieldId);
-
 
9376
    }
-
 
9377
 
8645
    public void read(TProtocol iprot) throws TException {
9378
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8646
      TField field;
9379
      org.apache.thrift.protocol.TField field;
8647
      iprot.readStructBegin();
9380
      iprot.readStructBegin();
8648
      while (true)
9381
      while (true)
8649
      {
9382
      {
8650
        field = iprot.readFieldBegin();
9383
        field = iprot.readFieldBegin();
8651
        if (field.type == TType.STOP) { 
9384
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8652
          break;
9385
          break;
8653
        }
9386
        }
8654
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8655
        if (fieldId == null) {
-
 
8656
          TProtocolUtil.skip(iprot, field.type);
-
 
8657
        } else {
-
 
8658
          switch (fieldId) {
9387
        switch (field.id) {
8659
            case SUCCESS:
9388
          case 0: // SUCCESS
8660
              if (field.type == TType.BOOL) {
9389
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
8661
                this.success = iprot.readBool();
9390
              this.success = iprot.readBool();
8662
                setSuccessIsSet(true);
9391
              setSuccessIsSet(true);
8663
              } else { 
9392
            } else { 
8664
                TProtocolUtil.skip(iprot, field.type);
9393
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8665
              }
9394
            }
8666
              break;
9395
            break;
8667
            case SE:
9396
          case 1: // SE
8668
              if (field.type == TType.STRUCT) {
9397
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
8669
                this.se = new HelperServiceException();
9398
              this.se = new HelperServiceException();
8670
                this.se.read(iprot);
9399
              this.se.read(iprot);
8671
              } else { 
9400
            } else { 
8672
                TProtocolUtil.skip(iprot, field.type);
9401
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8673
              }
9402
            }
8674
              break;
9403
            break;
8675
          }
9404
          default:
8676
          iprot.readFieldEnd();
9405
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8677
        }
9406
        }
-
 
9407
        iprot.readFieldEnd();
8678
      }
9408
      }
8679
      iprot.readStructEnd();
9409
      iprot.readStructEnd();
8680
      validate();
9410
      validate();
8681
    }
9411
    }
8682
 
9412
 
8683
    public void write(TProtocol oprot) throws TException {
9413
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8684
      oprot.writeStructBegin(STRUCT_DESC);
9414
      oprot.writeStructBegin(STRUCT_DESC);
8685
 
9415
 
8686
      if (this.isSetSuccess()) {
9416
      if (this.isSetSuccess()) {
8687
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8688
        oprot.writeBool(this.success);
9418
        oprot.writeBool(this.success);
Line 8714... Line 9444...
8714
      first = false;
9444
      first = false;
8715
      sb.append(")");
9445
      sb.append(")");
8716
      return sb.toString();
9446
      return sb.toString();
8717
    }
9447
    }
8718
 
9448
 
8719
    public void validate() throws TException {
9449
    public void validate() throws org.apache.thrift.TException {
8720
      // check for required fields
9450
      // check for required fields
8721
    }
9451
    }
8722
 
9452
 
-
 
9453
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9454
      try {
-
 
9455
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9456
      } catch (org.apache.thrift.TException te) {
-
 
9457
        throw new java.io.IOException(te);
-
 
9458
      }
-
 
9459
    }
-
 
9460
 
-
 
9461
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9462
      try {
-
 
9463
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9464
      } catch (org.apache.thrift.TException te) {
-
 
9465
        throw new java.io.IOException(te);
-
 
9466
      }
-
 
9467
    }
-
 
9468
 
8723
  }
9469
  }
8724
 
9470
 
8725
  public static class authenticateDashboardUser_args implements TBase<authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateDashboardUser_args>   {
9471
  public static class authenticateDashboardUser_args implements org.apache.thrift.TBase<authenticateDashboardUser_args, authenticateDashboardUser_args._Fields>, java.io.Serializable, Cloneable   {
8726
    private static final TStruct STRUCT_DESC = new TStruct("authenticateDashboardUser_args");
9472
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_args");
8727
 
9473
 
8728
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
9474
    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);
8729
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
9475
    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);
8730
 
9476
 
8731
    private String username;
9477
    private String username; // required
8732
    private String password;
9478
    private String password; // required
8733
 
9479
 
8734
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9480
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8735
    public enum _Fields implements TFieldIdEnum {
9481
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
8736
      USERNAME((short)1, "username"),
9482
      USERNAME((short)1, "username"),
8737
      PASSWORD((short)2, "password");
9483
      PASSWORD((short)2, "password");
8738
 
9484
 
8739
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8740
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9485
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8741
 
9486
 
8742
      static {
9487
      static {
8743
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9488
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8744
          byId.put((int)field._thriftId, field);
-
 
8745
          byName.put(field.getFieldName(), field);
9489
          byName.put(field.getFieldName(), field);
8746
        }
9490
        }
8747
      }
9491
      }
8748
 
9492
 
8749
      /**
9493
      /**
8750
       * Find the _Fields constant that matches fieldId, or null if its not found.
9494
       * Find the _Fields constant that matches fieldId, or null if its not found.
8751
       */
9495
       */
8752
      public static _Fields findByThriftId(int fieldId) {
9496
      public static _Fields findByThriftId(int fieldId) {
8753
        return byId.get(fieldId);
9497
        switch(fieldId) {
-
 
9498
          case 1: // USERNAME
-
 
9499
            return USERNAME;
-
 
9500
          case 2: // PASSWORD
-
 
9501
            return PASSWORD;
-
 
9502
          default:
-
 
9503
            return null;
-
 
9504
        }
8754
      }
9505
      }
8755
 
9506
 
8756
      /**
9507
      /**
8757
       * Find the _Fields constant that matches fieldId, throwing an exception
9508
       * Find the _Fields constant that matches fieldId, throwing an exception
8758
       * if it is not found.
9509
       * if it is not found.
Line 8787... Line 9538...
8787
      }
9538
      }
8788
    }
9539
    }
8789
 
9540
 
8790
    // isset id assignments
9541
    // isset id assignments
8791
 
9542
 
8792
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9543
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
8793
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
8794
          new FieldValueMetaData(TType.STRING)));
-
 
8795
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
8796
          new FieldValueMetaData(TType.STRING)));
-
 
8797
    }});
-
 
8798
 
-
 
8799
    static {
9544
    static {
-
 
9545
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9546
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9547
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
9548
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9549
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
9550
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8800
      FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
9551
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_args.class, metaDataMap);
8801
    }
9552
    }
8802
 
9553
 
8803
    public authenticateDashboardUser_args() {
9554
    public authenticateDashboardUser_args() {
8804
    }
9555
    }
8805
 
9556
 
Line 8826... Line 9577...
8826
 
9577
 
8827
    public authenticateDashboardUser_args deepCopy() {
9578
    public authenticateDashboardUser_args deepCopy() {
8828
      return new authenticateDashboardUser_args(this);
9579
      return new authenticateDashboardUser_args(this);
8829
    }
9580
    }
8830
 
9581
 
8831
    @Deprecated
9582
    @Override
8832
    public authenticateDashboardUser_args clone() {
9583
    public void clear() {
-
 
9584
      this.username = null;
8833
      return new authenticateDashboardUser_args(this);
9585
      this.password = null;
8834
    }
9586
    }
8835
 
9587
 
8836
    public String getUsername() {
9588
    public String getUsername() {
8837
      return this.username;
9589
      return this.username;
8838
    }
9590
    }
8839
 
9591
 
8840
    public authenticateDashboardUser_args setUsername(String username) {
9592
    public void setUsername(String username) {
8841
      this.username = username;
9593
      this.username = username;
8842
      return this;
-
 
8843
    }
9594
    }
8844
 
9595
 
8845
    public void unsetUsername() {
9596
    public void unsetUsername() {
8846
      this.username = null;
9597
      this.username = null;
8847
    }
9598
    }
8848
 
9599
 
8849
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
9600
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
8850
    public boolean isSetUsername() {
9601
    public boolean isSetUsername() {
8851
      return this.username != null;
9602
      return this.username != null;
8852
    }
9603
    }
8853
 
9604
 
8854
    public void setUsernameIsSet(boolean value) {
9605
    public void setUsernameIsSet(boolean value) {
Line 8859... Line 9610...
8859
 
9610
 
8860
    public String getPassword() {
9611
    public String getPassword() {
8861
      return this.password;
9612
      return this.password;
8862
    }
9613
    }
8863
 
9614
 
8864
    public authenticateDashboardUser_args setPassword(String password) {
9615
    public void setPassword(String password) {
8865
      this.password = password;
9616
      this.password = password;
8866
      return this;
-
 
8867
    }
9617
    }
8868
 
9618
 
8869
    public void unsetPassword() {
9619
    public void unsetPassword() {
8870
      this.password = null;
9620
      this.password = null;
8871
    }
9621
    }
8872
 
9622
 
8873
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
9623
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
8874
    public boolean isSetPassword() {
9624
    public boolean isSetPassword() {
8875
      return this.password != null;
9625
      return this.password != null;
8876
    }
9626
    }
8877
 
9627
 
8878
    public void setPasswordIsSet(boolean value) {
9628
    public void setPasswordIsSet(boolean value) {
Line 8900... Line 9650...
8900
        break;
9650
        break;
8901
 
9651
 
8902
      }
9652
      }
8903
    }
9653
    }
8904
 
9654
 
8905
    public void setFieldValue(int fieldID, Object value) {
-
 
8906
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8907
    }
-
 
8908
 
-
 
8909
    public Object getFieldValue(_Fields field) {
9655
    public Object getFieldValue(_Fields field) {
8910
      switch (field) {
9656
      switch (field) {
8911
      case USERNAME:
9657
      case USERNAME:
8912
        return getUsername();
9658
        return getUsername();
8913
 
9659
 
Line 8916... Line 9662...
8916
 
9662
 
8917
      }
9663
      }
8918
      throw new IllegalStateException();
9664
      throw new IllegalStateException();
8919
    }
9665
    }
8920
 
9666
 
8921
    public Object getFieldValue(int fieldId) {
-
 
8922
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8923
    }
-
 
8924
 
-
 
8925
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
9667
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8926
    public boolean isSet(_Fields field) {
9668
    public boolean isSet(_Fields field) {
-
 
9669
      if (field == null) {
-
 
9670
        throw new IllegalArgumentException();
-
 
9671
      }
-
 
9672
 
8927
      switch (field) {
9673
      switch (field) {
8928
      case USERNAME:
9674
      case USERNAME:
8929
        return isSetUsername();
9675
        return isSetUsername();
8930
      case PASSWORD:
9676
      case PASSWORD:
8931
        return isSetPassword();
9677
        return isSetPassword();
8932
      }
9678
      }
8933
      throw new IllegalStateException();
9679
      throw new IllegalStateException();
8934
    }
9680
    }
8935
 
9681
 
8936
    public boolean isSet(int fieldID) {
-
 
8937
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8938
    }
-
 
8939
 
-
 
8940
    @Override
9682
    @Override
8941
    public boolean equals(Object that) {
9683
    public boolean equals(Object that) {
8942
      if (that == null)
9684
      if (that == null)
8943
        return false;
9685
        return false;
8944
      if (that instanceof authenticateDashboardUser_args)
9686
      if (that instanceof authenticateDashboardUser_args)
Line 8982... Line 9724...
8982
      }
9724
      }
8983
 
9725
 
8984
      int lastComparison = 0;
9726
      int lastComparison = 0;
8985
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
9727
      authenticateDashboardUser_args typedOther = (authenticateDashboardUser_args)other;
8986
 
9728
 
8987
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
9729
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
8988
      if (lastComparison != 0) {
9730
      if (lastComparison != 0) {
8989
        return lastComparison;
9731
        return lastComparison;
8990
      }
9732
      }
-
 
9733
      if (isSetUsername()) {
8991
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
9734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
8992
      if (lastComparison != 0) {
9735
        if (lastComparison != 0) {
8993
        return lastComparison;
9736
          return lastComparison;
-
 
9737
        }
8994
      }
9738
      }
8995
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
9739
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
8996
      if (lastComparison != 0) {
9740
      if (lastComparison != 0) {
8997
        return lastComparison;
9741
        return lastComparison;
8998
      }
9742
      }
-
 
9743
      if (isSetPassword()) {
8999
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
9744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
9000
      if (lastComparison != 0) {
9745
        if (lastComparison != 0) {
9001
        return lastComparison;
9746
          return lastComparison;
-
 
9747
        }
9002
      }
9748
      }
9003
      return 0;
9749
      return 0;
9004
    }
9750
    }
9005
 
9751
 
-
 
9752
    public _Fields fieldForId(int fieldId) {
-
 
9753
      return _Fields.findByThriftId(fieldId);
-
 
9754
    }
-
 
9755
 
9006
    public void read(TProtocol iprot) throws TException {
9756
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9007
      TField field;
9757
      org.apache.thrift.protocol.TField field;
9008
      iprot.readStructBegin();
9758
      iprot.readStructBegin();
9009
      while (true)
9759
      while (true)
9010
      {
9760
      {
9011
        field = iprot.readFieldBegin();
9761
        field = iprot.readFieldBegin();
9012
        if (field.type == TType.STOP) { 
9762
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9013
          break;
9763
          break;
9014
        }
9764
        }
9015
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9016
        if (fieldId == null) {
-
 
9017
          TProtocolUtil.skip(iprot, field.type);
-
 
9018
        } else {
-
 
9019
          switch (fieldId) {
9765
        switch (field.id) {
9020
            case USERNAME:
9766
          case 1: // USERNAME
9021
              if (field.type == TType.STRING) {
9767
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9022
                this.username = iprot.readString();
9768
              this.username = iprot.readString();
9023
              } else { 
9769
            } else { 
9024
                TProtocolUtil.skip(iprot, field.type);
9770
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9025
              }
9771
            }
9026
              break;
9772
            break;
9027
            case PASSWORD:
9773
          case 2: // PASSWORD
9028
              if (field.type == TType.STRING) {
9774
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9029
                this.password = iprot.readString();
9775
              this.password = iprot.readString();
9030
              } else { 
9776
            } else { 
9031
                TProtocolUtil.skip(iprot, field.type);
9777
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9032
              }
9778
            }
9033
              break;
9779
            break;
9034
          }
9780
          default:
9035
          iprot.readFieldEnd();
9781
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9036
        }
9782
        }
-
 
9783
        iprot.readFieldEnd();
9037
      }
9784
      }
9038
      iprot.readStructEnd();
9785
      iprot.readStructEnd();
9039
      validate();
9786
      validate();
9040
    }
9787
    }
9041
 
9788
 
9042
    public void write(TProtocol oprot) throws TException {
9789
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9043
      validate();
9790
      validate();
9044
 
9791
 
9045
      oprot.writeStructBegin(STRUCT_DESC);
9792
      oprot.writeStructBegin(STRUCT_DESC);
9046
      if (this.username != null) {
9793
      if (this.username != null) {
9047
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
9794
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
Line 9079... Line 9826...
9079
      first = false;
9826
      first = false;
9080
      sb.append(")");
9827
      sb.append(")");
9081
      return sb.toString();
9828
      return sb.toString();
9082
    }
9829
    }
9083
 
9830
 
9084
    public void validate() throws TException {
9831
    public void validate() throws org.apache.thrift.TException {
9085
      // check for required fields
9832
      // check for required fields
9086
    }
9833
    }
9087
 
9834
 
-
 
9835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9836
      try {
-
 
9837
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9838
      } catch (org.apache.thrift.TException te) {
-
 
9839
        throw new java.io.IOException(te);
-
 
9840
      }
-
 
9841
    }
-
 
9842
 
-
 
9843
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9844
      try {
-
 
9845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9846
      } catch (org.apache.thrift.TException te) {
-
 
9847
        throw new java.io.IOException(te);
-
 
9848
      }
-
 
9849
    }
-
 
9850
 
9088
  }
9851
  }
9089
 
9852
 
9090
  public static class authenticateDashboardUser_result implements TBase<authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateDashboardUser_result>   {
9853
  public static class authenticateDashboardUser_result implements org.apache.thrift.TBase<authenticateDashboardUser_result, authenticateDashboardUser_result._Fields>, java.io.Serializable, Cloneable   {
9091
    private static final TStruct STRUCT_DESC = new TStruct("authenticateDashboardUser_result");
9854
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateDashboardUser_result");
9092
 
9855
 
9093
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
9856
    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);
9094
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
9857
    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);
9095
 
9858
 
9096
    private DashboardUser success;
9859
    private DashboardUser success; // required
9097
    private HelperServiceException se;
9860
    private HelperServiceException se; // required
9098
 
9861
 
9099
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9862
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9100
    public enum _Fields implements TFieldIdEnum {
9863
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9101
      SUCCESS((short)0, "success"),
9864
      SUCCESS((short)0, "success"),
9102
      SE((short)1, "se");
9865
      SE((short)1, "se");
9103
 
9866
 
9104
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9105
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9867
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9106
 
9868
 
9107
      static {
9869
      static {
9108
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9870
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9109
          byId.put((int)field._thriftId, field);
-
 
9110
          byName.put(field.getFieldName(), field);
9871
          byName.put(field.getFieldName(), field);
9111
        }
9872
        }
9112
      }
9873
      }
9113
 
9874
 
9114
      /**
9875
      /**
9115
       * Find the _Fields constant that matches fieldId, or null if its not found.
9876
       * Find the _Fields constant that matches fieldId, or null if its not found.
9116
       */
9877
       */
9117
      public static _Fields findByThriftId(int fieldId) {
9878
      public static _Fields findByThriftId(int fieldId) {
9118
        return byId.get(fieldId);
9879
        switch(fieldId) {
-
 
9880
          case 0: // SUCCESS
-
 
9881
            return SUCCESS;
-
 
9882
          case 1: // SE
-
 
9883
            return SE;
-
 
9884
          default:
-
 
9885
            return null;
-
 
9886
        }
9119
      }
9887
      }
9120
 
9888
 
9121
      /**
9889
      /**
9122
       * Find the _Fields constant that matches fieldId, throwing an exception
9890
       * Find the _Fields constant that matches fieldId, throwing an exception
9123
       * if it is not found.
9891
       * if it is not found.
Line 9152... Line 9920...
9152
      }
9920
      }
9153
    }
9921
    }
9154
 
9922
 
9155
    // isset id assignments
9923
    // isset id assignments
9156
 
9924
 
9157
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
9925
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9158
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
9159
          new StructMetaData(TType.STRUCT, DashboardUser.class)));
-
 
9160
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
9161
          new FieldValueMetaData(TType.STRUCT)));
-
 
9162
    }});
-
 
9163
 
-
 
9164
    static {
9926
    static {
-
 
9927
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9928
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9929
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, DashboardUser.class)));
-
 
9930
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9931
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
9932
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9165
      FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
9933
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateDashboardUser_result.class, metaDataMap);
9166
    }
9934
    }
9167
 
9935
 
9168
    public authenticateDashboardUser_result() {
9936
    public authenticateDashboardUser_result() {
9169
    }
9937
    }
9170
 
9938
 
Line 9191... Line 9959...
9191
 
9959
 
9192
    public authenticateDashboardUser_result deepCopy() {
9960
    public authenticateDashboardUser_result deepCopy() {
9193
      return new authenticateDashboardUser_result(this);
9961
      return new authenticateDashboardUser_result(this);
9194
    }
9962
    }
9195
 
9963
 
9196
    @Deprecated
9964
    @Override
9197
    public authenticateDashboardUser_result clone() {
9965
    public void clear() {
9198
      return new authenticateDashboardUser_result(this);
9966
      this.success = null;
-
 
9967
      this.se = null;
9199
    }
9968
    }
9200
 
9969
 
9201
    public DashboardUser getSuccess() {
9970
    public DashboardUser getSuccess() {
9202
      return this.success;
9971
      return this.success;
9203
    }
9972
    }
9204
 
9973
 
9205
    public authenticateDashboardUser_result setSuccess(DashboardUser success) {
9974
    public void setSuccess(DashboardUser success) {
9206
      this.success = success;
9975
      this.success = success;
9207
      return this;
-
 
9208
    }
9976
    }
9209
 
9977
 
9210
    public void unsetSuccess() {
9978
    public void unsetSuccess() {
9211
      this.success = null;
9979
      this.success = null;
9212
    }
9980
    }
9213
 
9981
 
9214
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
9982
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
9215
    public boolean isSetSuccess() {
9983
    public boolean isSetSuccess() {
9216
      return this.success != null;
9984
      return this.success != null;
9217
    }
9985
    }
9218
 
9986
 
9219
    public void setSuccessIsSet(boolean value) {
9987
    public void setSuccessIsSet(boolean value) {
Line 9224... Line 9992...
9224
 
9992
 
9225
    public HelperServiceException getSe() {
9993
    public HelperServiceException getSe() {
9226
      return this.se;
9994
      return this.se;
9227
    }
9995
    }
9228
 
9996
 
9229
    public authenticateDashboardUser_result setSe(HelperServiceException se) {
9997
    public void setSe(HelperServiceException se) {
9230
      this.se = se;
9998
      this.se = se;
9231
      return this;
-
 
9232
    }
9999
    }
9233
 
10000
 
9234
    public void unsetSe() {
10001
    public void unsetSe() {
9235
      this.se = null;
10002
      this.se = null;
9236
    }
10003
    }
9237
 
10004
 
9238
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
10005
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
9239
    public boolean isSetSe() {
10006
    public boolean isSetSe() {
9240
      return this.se != null;
10007
      return this.se != null;
9241
    }
10008
    }
9242
 
10009
 
9243
    public void setSeIsSet(boolean value) {
10010
    public void setSeIsSet(boolean value) {
Line 9265... Line 10032...
9265
        break;
10032
        break;
9266
 
10033
 
9267
      }
10034
      }
9268
    }
10035
    }
9269
 
10036
 
9270
    public void setFieldValue(int fieldID, Object value) {
-
 
9271
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9272
    }
-
 
9273
 
-
 
9274
    public Object getFieldValue(_Fields field) {
10037
    public Object getFieldValue(_Fields field) {
9275
      switch (field) {
10038
      switch (field) {
9276
      case SUCCESS:
10039
      case SUCCESS:
9277
        return getSuccess();
10040
        return getSuccess();
9278
 
10041
 
Line 9281... Line 10044...
9281
 
10044
 
9282
      }
10045
      }
9283
      throw new IllegalStateException();
10046
      throw new IllegalStateException();
9284
    }
10047
    }
9285
 
10048
 
9286
    public Object getFieldValue(int fieldId) {
-
 
9287
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9288
    }
-
 
9289
 
-
 
9290
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10049
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9291
    public boolean isSet(_Fields field) {
10050
    public boolean isSet(_Fields field) {
-
 
10051
      if (field == null) {
-
 
10052
        throw new IllegalArgumentException();
-
 
10053
      }
-
 
10054
 
9292
      switch (field) {
10055
      switch (field) {
9293
      case SUCCESS:
10056
      case SUCCESS:
9294
        return isSetSuccess();
10057
        return isSetSuccess();
9295
      case SE:
10058
      case SE:
9296
        return isSetSe();
10059
        return isSetSe();
9297
      }
10060
      }
9298
      throw new IllegalStateException();
10061
      throw new IllegalStateException();
9299
    }
10062
    }
9300
 
10063
 
9301
    public boolean isSet(int fieldID) {
-
 
9302
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9303
    }
-
 
9304
 
-
 
9305
    @Override
10064
    @Override
9306
    public boolean equals(Object that) {
10065
    public boolean equals(Object that) {
9307
      if (that == null)
10066
      if (that == null)
9308
        return false;
10067
        return false;
9309
      if (that instanceof authenticateDashboardUser_result)
10068
      if (that instanceof authenticateDashboardUser_result)
Line 9347... Line 10106...
9347
      }
10106
      }
9348
 
10107
 
9349
      int lastComparison = 0;
10108
      int lastComparison = 0;
9350
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
10109
      authenticateDashboardUser_result typedOther = (authenticateDashboardUser_result)other;
9351
 
10110
 
9352
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
10111
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
9353
      if (lastComparison != 0) {
10112
      if (lastComparison != 0) {
9354
        return lastComparison;
10113
        return lastComparison;
9355
      }
10114
      }
-
 
10115
      if (isSetSuccess()) {
9356
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
10116
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9357
      if (lastComparison != 0) {
10117
        if (lastComparison != 0) {
9358
        return lastComparison;
10118
          return lastComparison;
-
 
10119
        }
9359
      }
10120
      }
9360
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
10121
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
9361
      if (lastComparison != 0) {
10122
      if (lastComparison != 0) {
9362
        return lastComparison;
10123
        return lastComparison;
9363
      }
10124
      }
-
 
10125
      if (isSetSe()) {
9364
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
10126
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
9365
      if (lastComparison != 0) {
10127
        if (lastComparison != 0) {
9366
        return lastComparison;
10128
          return lastComparison;
-
 
10129
        }
9367
      }
10130
      }
9368
      return 0;
10131
      return 0;
9369
    }
10132
    }
9370
 
10133
 
-
 
10134
    public _Fields fieldForId(int fieldId) {
-
 
10135
      return _Fields.findByThriftId(fieldId);
-
 
10136
    }
-
 
10137
 
9371
    public void read(TProtocol iprot) throws TException {
10138
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9372
      TField field;
10139
      org.apache.thrift.protocol.TField field;
9373
      iprot.readStructBegin();
10140
      iprot.readStructBegin();
9374
      while (true)
10141
      while (true)
9375
      {
10142
      {
9376
        field = iprot.readFieldBegin();
10143
        field = iprot.readFieldBegin();
9377
        if (field.type == TType.STOP) { 
10144
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9378
          break;
10145
          break;
9379
        }
10146
        }
9380
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9381
        if (fieldId == null) {
-
 
9382
          TProtocolUtil.skip(iprot, field.type);
-
 
9383
        } else {
-
 
9384
          switch (fieldId) {
10147
        switch (field.id) {
9385
            case SUCCESS:
10148
          case 0: // SUCCESS
9386
              if (field.type == TType.STRUCT) {
10149
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9387
                this.success = new DashboardUser();
10150
              this.success = new DashboardUser();
9388
                this.success.read(iprot);
10151
              this.success.read(iprot);
9389
              } else { 
10152
            } else { 
9390
                TProtocolUtil.skip(iprot, field.type);
10153
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9391
              }
10154
            }
9392
              break;
10155
            break;
9393
            case SE:
10156
          case 1: // SE
9394
              if (field.type == TType.STRUCT) {
10157
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
9395
                this.se = new HelperServiceException();
10158
              this.se = new HelperServiceException();
9396
                this.se.read(iprot);
10159
              this.se.read(iprot);
9397
              } else { 
10160
            } else { 
9398
                TProtocolUtil.skip(iprot, field.type);
10161
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9399
              }
10162
            }
9400
              break;
10163
            break;
9401
          }
10164
          default:
9402
          iprot.readFieldEnd();
10165
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9403
        }
10166
        }
-
 
10167
        iprot.readFieldEnd();
9404
      }
10168
      }
9405
      iprot.readStructEnd();
10169
      iprot.readStructEnd();
9406
      validate();
10170
      validate();
9407
    }
10171
    }
9408
 
10172
 
9409
    public void write(TProtocol oprot) throws TException {
10173
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9410
      oprot.writeStructBegin(STRUCT_DESC);
10174
      oprot.writeStructBegin(STRUCT_DESC);
9411
 
10175
 
9412
      if (this.isSetSuccess()) {
10176
      if (this.isSetSuccess()) {
9413
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10177
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9414
        this.success.write(oprot);
10178
        this.success.write(oprot);
Line 9444... Line 10208...
9444
      first = false;
10208
      first = false;
9445
      sb.append(")");
10209
      sb.append(")");
9446
      return sb.toString();
10210
      return sb.toString();
9447
    }
10211
    }
9448
 
10212
 
9449
    public void validate() throws TException {
10213
    public void validate() throws org.apache.thrift.TException {
9450
      // check for required fields
10214
      // check for required fields
9451
    }
10215
    }
9452
 
10216
 
-
 
10217
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10218
      try {
-
 
10219
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10220
      } catch (org.apache.thrift.TException te) {
-
 
10221
        throw new java.io.IOException(te);
-
 
10222
      }
-
 
10223
    }
-
 
10224
 
-
 
10225
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10226
      try {
-
 
10227
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10228
      } catch (org.apache.thrift.TException te) {
-
 
10229
        throw new java.io.IOException(te);
-
 
10230
      }
-
 
10231
    }
-
 
10232
 
9453
  }
10233
  }
9454
 
10234
 
9455
  public static class updatePassword_args implements TBase<updatePassword_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_args>   {
10235
  public static class updatePassword_args implements org.apache.thrift.TBase<updatePassword_args, updatePassword_args._Fields>, java.io.Serializable, Cloneable   {
9456
    private static final TStruct STRUCT_DESC = new TStruct("updatePassword_args");
10236
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_args");
9457
 
10237
 
9458
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
10238
    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);
9459
    private static final TField OLD_PASSWORD_FIELD_DESC = new TField("oldPassword", TType.STRING, (short)2);
10239
    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);
9460
    private static final TField NEW_PASSWORD_FIELD_DESC = new TField("newPassword", TType.STRING, (short)3);
10240
    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);
9461
 
10241
 
9462
    private String username;
10242
    private String username; // required
9463
    private String oldPassword;
10243
    private String oldPassword; // required
9464
    private String newPassword;
10244
    private String newPassword; // required
9465
 
10245
 
9466
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10246
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9467
    public enum _Fields implements TFieldIdEnum {
10247
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9468
      USERNAME((short)1, "username"),
10248
      USERNAME((short)1, "username"),
9469
      OLD_PASSWORD((short)2, "oldPassword"),
10249
      OLD_PASSWORD((short)2, "oldPassword"),
9470
      NEW_PASSWORD((short)3, "newPassword");
10250
      NEW_PASSWORD((short)3, "newPassword");
9471
 
10251
 
9472
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9473
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10252
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9474
 
10253
 
9475
      static {
10254
      static {
9476
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10255
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9477
          byId.put((int)field._thriftId, field);
-
 
9478
          byName.put(field.getFieldName(), field);
10256
          byName.put(field.getFieldName(), field);
9479
        }
10257
        }
9480
      }
10258
      }
9481
 
10259
 
9482
      /**
10260
      /**
9483
       * Find the _Fields constant that matches fieldId, or null if its not found.
10261
       * Find the _Fields constant that matches fieldId, or null if its not found.
9484
       */
10262
       */
9485
      public static _Fields findByThriftId(int fieldId) {
10263
      public static _Fields findByThriftId(int fieldId) {
9486
        return byId.get(fieldId);
10264
        switch(fieldId) {
-
 
10265
          case 1: // USERNAME
-
 
10266
            return USERNAME;
-
 
10267
          case 2: // OLD_PASSWORD
-
 
10268
            return OLD_PASSWORD;
-
 
10269
          case 3: // NEW_PASSWORD
-
 
10270
            return NEW_PASSWORD;
-
 
10271
          default:
-
 
10272
            return null;
-
 
10273
        }
9487
      }
10274
      }
9488
 
10275
 
9489
      /**
10276
      /**
9490
       * Find the _Fields constant that matches fieldId, throwing an exception
10277
       * Find the _Fields constant that matches fieldId, throwing an exception
9491
       * if it is not found.
10278
       * if it is not found.
Line 9520... Line 10307...
9520
      }
10307
      }
9521
    }
10308
    }
9522
 
10309
 
9523
    // isset id assignments
10310
    // isset id assignments
9524
 
10311
 
9525
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10312
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9526
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
9527
          new FieldValueMetaData(TType.STRING)));
-
 
9528
      put(_Fields.OLD_PASSWORD, new FieldMetaData("oldPassword", TFieldRequirementType.DEFAULT, 
-
 
9529
          new FieldValueMetaData(TType.STRING)));
-
 
9530
      put(_Fields.NEW_PASSWORD, new FieldMetaData("newPassword", TFieldRequirementType.DEFAULT, 
-
 
9531
          new FieldValueMetaData(TType.STRING)));
-
 
9532
    }});
-
 
9533
 
-
 
9534
    static {
10313
    static {
-
 
10314
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10315
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10316
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
10317
      tmpMap.put(_Fields.OLD_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("oldPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10318
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
10319
      tmpMap.put(_Fields.NEW_PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("newPassword", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10320
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
10321
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9535
      FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
10322
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
9536
    }
10323
    }
9537
 
10324
 
9538
    public updatePassword_args() {
10325
    public updatePassword_args() {
9539
    }
10326
    }
9540
 
10327
 
Line 9566... Line 10353...
9566
 
10353
 
9567
    public updatePassword_args deepCopy() {
10354
    public updatePassword_args deepCopy() {
9568
      return new updatePassword_args(this);
10355
      return new updatePassword_args(this);
9569
    }
10356
    }
9570
 
10357
 
9571
    @Deprecated
10358
    @Override
9572
    public updatePassword_args clone() {
10359
    public void clear() {
-
 
10360
      this.username = null;
-
 
10361
      this.oldPassword = null;
9573
      return new updatePassword_args(this);
10362
      this.newPassword = null;
9574
    }
10363
    }
9575
 
10364
 
9576
    public String getUsername() {
10365
    public String getUsername() {
9577
      return this.username;
10366
      return this.username;
9578
    }
10367
    }
9579
 
10368
 
9580
    public updatePassword_args setUsername(String username) {
10369
    public void setUsername(String username) {
9581
      this.username = username;
10370
      this.username = username;
9582
      return this;
-
 
9583
    }
10371
    }
9584
 
10372
 
9585
    public void unsetUsername() {
10373
    public void unsetUsername() {
9586
      this.username = null;
10374
      this.username = null;
9587
    }
10375
    }
9588
 
10376
 
9589
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
10377
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
9590
    public boolean isSetUsername() {
10378
    public boolean isSetUsername() {
9591
      return this.username != null;
10379
      return this.username != null;
9592
    }
10380
    }
9593
 
10381
 
9594
    public void setUsernameIsSet(boolean value) {
10382
    public void setUsernameIsSet(boolean value) {
Line 9599... Line 10387...
9599
 
10387
 
9600
    public String getOldPassword() {
10388
    public String getOldPassword() {
9601
      return this.oldPassword;
10389
      return this.oldPassword;
9602
    }
10390
    }
9603
 
10391
 
9604
    public updatePassword_args setOldPassword(String oldPassword) {
10392
    public void setOldPassword(String oldPassword) {
9605
      this.oldPassword = oldPassword;
10393
      this.oldPassword = oldPassword;
9606
      return this;
-
 
9607
    }
10394
    }
9608
 
10395
 
9609
    public void unsetOldPassword() {
10396
    public void unsetOldPassword() {
9610
      this.oldPassword = null;
10397
      this.oldPassword = null;
9611
    }
10398
    }
9612
 
10399
 
9613
    /** Returns true if field oldPassword is set (has been asigned a value) and false otherwise */
10400
    /** Returns true if field oldPassword is set (has been assigned a value) and false otherwise */
9614
    public boolean isSetOldPassword() {
10401
    public boolean isSetOldPassword() {
9615
      return this.oldPassword != null;
10402
      return this.oldPassword != null;
9616
    }
10403
    }
9617
 
10404
 
9618
    public void setOldPasswordIsSet(boolean value) {
10405
    public void setOldPasswordIsSet(boolean value) {
Line 9623... Line 10410...
9623
 
10410
 
9624
    public String getNewPassword() {
10411
    public String getNewPassword() {
9625
      return this.newPassword;
10412
      return this.newPassword;
9626
    }
10413
    }
9627
 
10414
 
9628
    public updatePassword_args setNewPassword(String newPassword) {
10415
    public void setNewPassword(String newPassword) {
9629
      this.newPassword = newPassword;
10416
      this.newPassword = newPassword;
9630
      return this;
-
 
9631
    }
10417
    }
9632
 
10418
 
9633
    public void unsetNewPassword() {
10419
    public void unsetNewPassword() {
9634
      this.newPassword = null;
10420
      this.newPassword = null;
9635
    }
10421
    }
9636
 
10422
 
9637
    /** Returns true if field newPassword is set (has been asigned a value) and false otherwise */
10423
    /** Returns true if field newPassword is set (has been assigned a value) and false otherwise */
9638
    public boolean isSetNewPassword() {
10424
    public boolean isSetNewPassword() {
9639
      return this.newPassword != null;
10425
      return this.newPassword != null;
9640
    }
10426
    }
9641
 
10427
 
9642
    public void setNewPasswordIsSet(boolean value) {
10428
    public void setNewPasswordIsSet(boolean value) {
Line 9672... Line 10458...
9672
        break;
10458
        break;
9673
 
10459
 
9674
      }
10460
      }
9675
    }
10461
    }
9676
 
10462
 
9677
    public void setFieldValue(int fieldID, Object value) {
-
 
9678
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9679
    }
-
 
9680
 
-
 
9681
    public Object getFieldValue(_Fields field) {
10463
    public Object getFieldValue(_Fields field) {
9682
      switch (field) {
10464
      switch (field) {
9683
      case USERNAME:
10465
      case USERNAME:
9684
        return getUsername();
10466
        return getUsername();
9685
 
10467
 
Line 9691... Line 10473...
9691
 
10473
 
9692
      }
10474
      }
9693
      throw new IllegalStateException();
10475
      throw new IllegalStateException();
9694
    }
10476
    }
9695
 
10477
 
9696
    public Object getFieldValue(int fieldId) {
-
 
9697
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9698
    }
-
 
9699
 
-
 
9700
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10478
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9701
    public boolean isSet(_Fields field) {
10479
    public boolean isSet(_Fields field) {
-
 
10480
      if (field == null) {
-
 
10481
        throw new IllegalArgumentException();
-
 
10482
      }
-
 
10483
 
9702
      switch (field) {
10484
      switch (field) {
9703
      case USERNAME:
10485
      case USERNAME:
9704
        return isSetUsername();
10486
        return isSetUsername();
9705
      case OLD_PASSWORD:
10487
      case OLD_PASSWORD:
9706
        return isSetOldPassword();
10488
        return isSetOldPassword();
Line 9708... Line 10490...
9708
        return isSetNewPassword();
10490
        return isSetNewPassword();
9709
      }
10491
      }
9710
      throw new IllegalStateException();
10492
      throw new IllegalStateException();
9711
    }
10493
    }
9712
 
10494
 
9713
    public boolean isSet(int fieldID) {
-
 
9714
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9715
    }
-
 
9716
 
-
 
9717
    @Override
10495
    @Override
9718
    public boolean equals(Object that) {
10496
    public boolean equals(Object that) {
9719
      if (that == null)
10497
      if (that == null)
9720
        return false;
10498
        return false;
9721
      if (that instanceof updatePassword_args)
10499
      if (that instanceof updatePassword_args)
Line 9768... Line 10546...
9768
      }
10546
      }
9769
 
10547
 
9770
      int lastComparison = 0;
10548
      int lastComparison = 0;
9771
      updatePassword_args typedOther = (updatePassword_args)other;
10549
      updatePassword_args typedOther = (updatePassword_args)other;
9772
 
10550
 
9773
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
10551
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
9774
      if (lastComparison != 0) {
10552
      if (lastComparison != 0) {
9775
        return lastComparison;
10553
        return lastComparison;
9776
      }
10554
      }
-
 
10555
      if (isSetUsername()) {
9777
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
10556
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
9778
      if (lastComparison != 0) {
10557
        if (lastComparison != 0) {
9779
        return lastComparison;
10558
          return lastComparison;
-
 
10559
        }
9780
      }
10560
      }
9781
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(isSetOldPassword());
10561
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(typedOther.isSetOldPassword());
9782
      if (lastComparison != 0) {
10562
      if (lastComparison != 0) {
9783
        return lastComparison;
10563
        return lastComparison;
9784
      }
10564
      }
-
 
10565
      if (isSetOldPassword()) {
9785
      lastComparison = TBaseHelper.compareTo(oldPassword, typedOther.oldPassword);
10566
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.oldPassword, typedOther.oldPassword);
9786
      if (lastComparison != 0) {
10567
        if (lastComparison != 0) {
9787
        return lastComparison;
10568
          return lastComparison;
-
 
10569
        }
9788
      }
10570
      }
9789
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(isSetNewPassword());
10571
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(typedOther.isSetNewPassword());
9790
      if (lastComparison != 0) {
10572
      if (lastComparison != 0) {
9791
        return lastComparison;
10573
        return lastComparison;
9792
      }
10574
      }
-
 
10575
      if (isSetNewPassword()) {
9793
      lastComparison = TBaseHelper.compareTo(newPassword, typedOther.newPassword);
10576
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.newPassword, typedOther.newPassword);
9794
      if (lastComparison != 0) {
10577
        if (lastComparison != 0) {
9795
        return lastComparison;
10578
          return lastComparison;
-
 
10579
        }
9796
      }
10580
      }
9797
      return 0;
10581
      return 0;
9798
    }
10582
    }
9799
 
10583
 
-
 
10584
    public _Fields fieldForId(int fieldId) {
-
 
10585
      return _Fields.findByThriftId(fieldId);
-
 
10586
    }
-
 
10587
 
9800
    public void read(TProtocol iprot) throws TException {
10588
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9801
      TField field;
10589
      org.apache.thrift.protocol.TField field;
9802
      iprot.readStructBegin();
10590
      iprot.readStructBegin();
9803
      while (true)
10591
      while (true)
9804
      {
10592
      {
9805
        field = iprot.readFieldBegin();
10593
        field = iprot.readFieldBegin();
9806
        if (field.type == TType.STOP) { 
10594
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
9807
          break;
10595
          break;
9808
        }
10596
        }
9809
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9810
        if (fieldId == null) {
-
 
9811
          TProtocolUtil.skip(iprot, field.type);
-
 
9812
        } else {
-
 
9813
          switch (fieldId) {
10597
        switch (field.id) {
9814
            case USERNAME:
10598
          case 1: // USERNAME
9815
              if (field.type == TType.STRING) {
10599
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9816
                this.username = iprot.readString();
10600
              this.username = iprot.readString();
9817
              } else { 
10601
            } else { 
9818
                TProtocolUtil.skip(iprot, field.type);
10602
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9819
              }
10603
            }
9820
              break;
10604
            break;
9821
            case OLD_PASSWORD:
10605
          case 2: // OLD_PASSWORD
9822
              if (field.type == TType.STRING) {
10606
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9823
                this.oldPassword = iprot.readString();
10607
              this.oldPassword = iprot.readString();
9824
              } else { 
10608
            } else { 
9825
                TProtocolUtil.skip(iprot, field.type);
10609
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9826
              }
10610
            }
9827
              break;
10611
            break;
9828
            case NEW_PASSWORD:
10612
          case 3: // NEW_PASSWORD
9829
              if (field.type == TType.STRING) {
10613
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9830
                this.newPassword = iprot.readString();
10614
              this.newPassword = iprot.readString();
9831
              } else { 
10615
            } else { 
9832
                TProtocolUtil.skip(iprot, field.type);
10616
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9833
              }
10617
            }
9834
              break;
10618
            break;
9835
          }
10619
          default:
9836
          iprot.readFieldEnd();
10620
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9837
        }
10621
        }
-
 
10622
        iprot.readFieldEnd();
9838
      }
10623
      }
9839
      iprot.readStructEnd();
10624
      iprot.readStructEnd();
9840
      validate();
10625
      validate();
9841
    }
10626
    }
9842
 
10627
 
9843
    public void write(TProtocol oprot) throws TException {
10628
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
9844
      validate();
10629
      validate();
9845
 
10630
 
9846
      oprot.writeStructBegin(STRUCT_DESC);
10631
      oprot.writeStructBegin(STRUCT_DESC);
9847
      if (this.username != null) {
10632
      if (this.username != null) {
9848
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
10633
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
Line 9893... Line 10678...
9893
      first = false;
10678
      first = false;
9894
      sb.append(")");
10679
      sb.append(")");
9895
      return sb.toString();
10680
      return sb.toString();
9896
    }
10681
    }
9897
 
10682
 
9898
    public void validate() throws TException {
10683
    public void validate() throws org.apache.thrift.TException {
9899
      // check for required fields
10684
      // check for required fields
9900
    }
10685
    }
9901
 
10686
 
-
 
10687
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10688
      try {
-
 
10689
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10690
      } catch (org.apache.thrift.TException te) {
-
 
10691
        throw new java.io.IOException(te);
-
 
10692
      }
-
 
10693
    }
-
 
10694
 
-
 
10695
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10696
      try {
-
 
10697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10698
      } catch (org.apache.thrift.TException te) {
-
 
10699
        throw new java.io.IOException(te);
-
 
10700
      }
-
 
10701
    }
-
 
10702
 
9902
  }
10703
  }
9903
 
10704
 
9904
  public static class updatePassword_result implements TBase<updatePassword_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_result>   {
10705
  public static class updatePassword_result implements org.apache.thrift.TBase<updatePassword_result, updatePassword_result._Fields>, java.io.Serializable, Cloneable   {
9905
    private static final TStruct STRUCT_DESC = new TStruct("updatePassword_result");
10706
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePassword_result");
9906
 
10707
 
9907
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
10708
    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);
9908
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
10709
    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);
9909
 
10710
 
9910
    private boolean success;
10711
    private boolean success; // required
9911
    private HelperServiceException se;
10712
    private HelperServiceException se; // required
9912
 
10713
 
9913
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10714
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
9914
    public enum _Fields implements TFieldIdEnum {
10715
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
9915
      SUCCESS((short)0, "success"),
10716
      SUCCESS((short)0, "success"),
9916
      SE((short)1, "se");
10717
      SE((short)1, "se");
9917
 
10718
 
9918
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9919
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10719
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9920
 
10720
 
9921
      static {
10721
      static {
9922
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10722
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9923
          byId.put((int)field._thriftId, field);
-
 
9924
          byName.put(field.getFieldName(), field);
10723
          byName.put(field.getFieldName(), field);
9925
        }
10724
        }
9926
      }
10725
      }
9927
 
10726
 
9928
      /**
10727
      /**
9929
       * Find the _Fields constant that matches fieldId, or null if its not found.
10728
       * Find the _Fields constant that matches fieldId, or null if its not found.
9930
       */
10729
       */
9931
      public static _Fields findByThriftId(int fieldId) {
10730
      public static _Fields findByThriftId(int fieldId) {
9932
        return byId.get(fieldId);
10731
        switch(fieldId) {
-
 
10732
          case 0: // SUCCESS
-
 
10733
            return SUCCESS;
-
 
10734
          case 1: // SE
-
 
10735
            return SE;
-
 
10736
          default:
-
 
10737
            return null;
-
 
10738
        }
9933
      }
10739
      }
9934
 
10740
 
9935
      /**
10741
      /**
9936
       * Find the _Fields constant that matches fieldId, throwing an exception
10742
       * Find the _Fields constant that matches fieldId, throwing an exception
9937
       * if it is not found.
10743
       * if it is not found.
Line 9968... Line 10774...
9968
 
10774
 
9969
    // isset id assignments
10775
    // isset id assignments
9970
    private static final int __SUCCESS_ISSET_ID = 0;
10776
    private static final int __SUCCESS_ISSET_ID = 0;
9971
    private BitSet __isset_bit_vector = new BitSet(1);
10777
    private BitSet __isset_bit_vector = new BitSet(1);
9972
 
10778
 
9973
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
10779
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
9974
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
9975
          new FieldValueMetaData(TType.BOOL)));
-
 
9976
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
9977
          new FieldValueMetaData(TType.STRUCT)));
-
 
9978
    }});
-
 
9979
 
-
 
9980
    static {
10780
    static {
-
 
10781
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10782
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10783
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
10784
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10785
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
10786
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9981
      FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
10787
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePassword_result.class, metaDataMap);
9982
    }
10788
    }
9983
 
10789
 
9984
    public updatePassword_result() {
10790
    public updatePassword_result() {
9985
    }
10791
    }
9986
 
10792
 
Line 10008... Line 10814...
10008
 
10814
 
10009
    public updatePassword_result deepCopy() {
10815
    public updatePassword_result deepCopy() {
10010
      return new updatePassword_result(this);
10816
      return new updatePassword_result(this);
10011
    }
10817
    }
10012
 
10818
 
10013
    @Deprecated
10819
    @Override
10014
    public updatePassword_result clone() {
10820
    public void clear() {
10015
      return new updatePassword_result(this);
10821
      setSuccessIsSet(false);
-
 
10822
      this.success = false;
-
 
10823
      this.se = null;
10016
    }
10824
    }
10017
 
10825
 
10018
    public boolean isSuccess() {
10826
    public boolean isSuccess() {
10019
      return this.success;
10827
      return this.success;
10020
    }
10828
    }
10021
 
10829
 
10022
    public updatePassword_result setSuccess(boolean success) {
10830
    public void setSuccess(boolean success) {
10023
      this.success = success;
10831
      this.success = success;
10024
      setSuccessIsSet(true);
10832
      setSuccessIsSet(true);
10025
      return this;
-
 
10026
    }
10833
    }
10027
 
10834
 
10028
    public void unsetSuccess() {
10835
    public void unsetSuccess() {
10029
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10836
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
10030
    }
10837
    }
10031
 
10838
 
10032
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
10839
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10033
    public boolean isSetSuccess() {
10840
    public boolean isSetSuccess() {
10034
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10841
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
10035
    }
10842
    }
10036
 
10843
 
10037
    public void setSuccessIsSet(boolean value) {
10844
    public void setSuccessIsSet(boolean value) {
Line 10040... Line 10847...
10040
 
10847
 
10041
    public HelperServiceException getSe() {
10848
    public HelperServiceException getSe() {
10042
      return this.se;
10849
      return this.se;
10043
    }
10850
    }
10044
 
10851
 
10045
    public updatePassword_result setSe(HelperServiceException se) {
10852
    public void setSe(HelperServiceException se) {
10046
      this.se = se;
10853
      this.se = se;
10047
      return this;
-
 
10048
    }
10854
    }
10049
 
10855
 
10050
    public void unsetSe() {
10856
    public void unsetSe() {
10051
      this.se = null;
10857
      this.se = null;
10052
    }
10858
    }
10053
 
10859
 
10054
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
10860
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
10055
    public boolean isSetSe() {
10861
    public boolean isSetSe() {
10056
      return this.se != null;
10862
      return this.se != null;
10057
    }
10863
    }
10058
 
10864
 
10059
    public void setSeIsSet(boolean value) {
10865
    public void setSeIsSet(boolean value) {
Line 10081... Line 10887...
10081
        break;
10887
        break;
10082
 
10888
 
10083
      }
10889
      }
10084
    }
10890
    }
10085
 
10891
 
10086
    public void setFieldValue(int fieldID, Object value) {
-
 
10087
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10088
    }
-
 
10089
 
-
 
10090
    public Object getFieldValue(_Fields field) {
10892
    public Object getFieldValue(_Fields field) {
10091
      switch (field) {
10893
      switch (field) {
10092
      case SUCCESS:
10894
      case SUCCESS:
10093
        return new Boolean(isSuccess());
10895
        return Boolean.valueOf(isSuccess());
10094
 
10896
 
10095
      case SE:
10897
      case SE:
10096
        return getSe();
10898
        return getSe();
10097
 
10899
 
10098
      }
10900
      }
10099
      throw new IllegalStateException();
10901
      throw new IllegalStateException();
10100
    }
10902
    }
10101
 
10903
 
10102
    public Object getFieldValue(int fieldId) {
-
 
10103
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10104
    }
-
 
10105
 
-
 
10106
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
10904
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10107
    public boolean isSet(_Fields field) {
10905
    public boolean isSet(_Fields field) {
-
 
10906
      if (field == null) {
-
 
10907
        throw new IllegalArgumentException();
-
 
10908
      }
-
 
10909
 
10108
      switch (field) {
10910
      switch (field) {
10109
      case SUCCESS:
10911
      case SUCCESS:
10110
        return isSetSuccess();
10912
        return isSetSuccess();
10111
      case SE:
10913
      case SE:
10112
        return isSetSe();
10914
        return isSetSe();
10113
      }
10915
      }
10114
      throw new IllegalStateException();
10916
      throw new IllegalStateException();
10115
    }
10917
    }
10116
 
10918
 
10117
    public boolean isSet(int fieldID) {
-
 
10118
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10119
    }
-
 
10120
 
-
 
10121
    @Override
10919
    @Override
10122
    public boolean equals(Object that) {
10920
    public boolean equals(Object that) {
10123
      if (that == null)
10921
      if (that == null)
10124
        return false;
10922
        return false;
10125
      if (that instanceof updatePassword_result)
10923
      if (that instanceof updatePassword_result)
Line 10163... Line 10961...
10163
      }
10961
      }
10164
 
10962
 
10165
      int lastComparison = 0;
10963
      int lastComparison = 0;
10166
      updatePassword_result typedOther = (updatePassword_result)other;
10964
      updatePassword_result typedOther = (updatePassword_result)other;
10167
 
10965
 
10168
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
10966
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10169
      if (lastComparison != 0) {
10967
      if (lastComparison != 0) {
10170
        return lastComparison;
10968
        return lastComparison;
10171
      }
10969
      }
-
 
10970
      if (isSetSuccess()) {
10172
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
10971
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10173
      if (lastComparison != 0) {
10972
        if (lastComparison != 0) {
10174
        return lastComparison;
10973
          return lastComparison;
-
 
10974
        }
10175
      }
10975
      }
10176
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
10976
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
10177
      if (lastComparison != 0) {
10977
      if (lastComparison != 0) {
10178
        return lastComparison;
10978
        return lastComparison;
10179
      }
10979
      }
-
 
10980
      if (isSetSe()) {
10180
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
10981
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
10181
      if (lastComparison != 0) {
10982
        if (lastComparison != 0) {
10182
        return lastComparison;
10983
          return lastComparison;
-
 
10984
        }
10183
      }
10985
      }
10184
      return 0;
10986
      return 0;
10185
    }
10987
    }
10186
 
10988
 
-
 
10989
    public _Fields fieldForId(int fieldId) {
-
 
10990
      return _Fields.findByThriftId(fieldId);
-
 
10991
    }
-
 
10992
 
10187
    public void read(TProtocol iprot) throws TException {
10993
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10188
      TField field;
10994
      org.apache.thrift.protocol.TField field;
10189
      iprot.readStructBegin();
10995
      iprot.readStructBegin();
10190
      while (true)
10996
      while (true)
10191
      {
10997
      {
10192
        field = iprot.readFieldBegin();
10998
        field = iprot.readFieldBegin();
10193
        if (field.type == TType.STOP) { 
10999
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10194
          break;
11000
          break;
10195
        }
11001
        }
10196
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10197
        if (fieldId == null) {
-
 
10198
          TProtocolUtil.skip(iprot, field.type);
-
 
10199
        } else {
-
 
10200
          switch (fieldId) {
11002
        switch (field.id) {
10201
            case SUCCESS:
11003
          case 0: // SUCCESS
10202
              if (field.type == TType.BOOL) {
11004
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10203
                this.success = iprot.readBool();
11005
              this.success = iprot.readBool();
10204
                setSuccessIsSet(true);
11006
              setSuccessIsSet(true);
10205
              } else { 
11007
            } else { 
10206
                TProtocolUtil.skip(iprot, field.type);
11008
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10207
              }
11009
            }
10208
              break;
11010
            break;
10209
            case SE:
11011
          case 1: // SE
10210
              if (field.type == TType.STRUCT) {
11012
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10211
                this.se = new HelperServiceException();
11013
              this.se = new HelperServiceException();
10212
                this.se.read(iprot);
11014
              this.se.read(iprot);
10213
              } else { 
11015
            } else { 
10214
                TProtocolUtil.skip(iprot, field.type);
11016
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10215
              }
11017
            }
10216
              break;
11018
            break;
10217
          }
11019
          default:
10218
          iprot.readFieldEnd();
11020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10219
        }
11021
        }
-
 
11022
        iprot.readFieldEnd();
10220
      }
11023
      }
10221
      iprot.readStructEnd();
11024
      iprot.readStructEnd();
10222
      validate();
11025
      validate();
10223
    }
11026
    }
10224
 
11027
 
10225
    public void write(TProtocol oprot) throws TException {
11028
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10226
      oprot.writeStructBegin(STRUCT_DESC);
11029
      oprot.writeStructBegin(STRUCT_DESC);
10227
 
11030
 
10228
      if (this.isSetSuccess()) {
11031
      if (this.isSetSuccess()) {
10229
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11032
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10230
        oprot.writeBool(this.success);
11033
        oprot.writeBool(this.success);
Line 10256... Line 11059...
10256
      first = false;
11059
      first = false;
10257
      sb.append(")");
11060
      sb.append(")");
10258
      return sb.toString();
11061
      return sb.toString();
10259
    }
11062
    }
10260
 
11063
 
10261
    public void validate() throws TException {
11064
    public void validate() throws org.apache.thrift.TException {
10262
      // check for required fields
11065
      // check for required fields
10263
    }
11066
    }
10264
 
11067
 
-
 
11068
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11069
      try {
-
 
11070
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11071
      } catch (org.apache.thrift.TException te) {
-
 
11072
        throw new java.io.IOException(te);
-
 
11073
      }
-
 
11074
    }
-
 
11075
 
-
 
11076
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11077
      try {
-
 
11078
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11079
      } catch (org.apache.thrift.TException te) {
-
 
11080
        throw new java.io.IOException(te);
-
 
11081
      }
-
 
11082
    }
-
 
11083
 
10265
  }
11084
  }
10266
 
11085
 
10267
  public static class authenticateLogisticsUser_args implements TBase<authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateLogisticsUser_args>   {
11086
  public static class authenticateLogisticsUser_args implements org.apache.thrift.TBase<authenticateLogisticsUser_args, authenticateLogisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
10268
    private static final TStruct STRUCT_DESC = new TStruct("authenticateLogisticsUser_args");
11087
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_args");
10269
 
11088
 
10270
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
11089
    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);
10271
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
11090
    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);
10272
 
11091
 
10273
    private String username;
11092
    private String username; // required
10274
    private String password;
11093
    private String password; // required
10275
 
11094
 
10276
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11095
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10277
    public enum _Fields implements TFieldIdEnum {
11096
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10278
      USERNAME((short)1, "username"),
11097
      USERNAME((short)1, "username"),
10279
      PASSWORD((short)2, "password");
11098
      PASSWORD((short)2, "password");
10280
 
11099
 
10281
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10282
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11100
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10283
 
11101
 
10284
      static {
11102
      static {
10285
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11103
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10286
          byId.put((int)field._thriftId, field);
-
 
10287
          byName.put(field.getFieldName(), field);
11104
          byName.put(field.getFieldName(), field);
10288
        }
11105
        }
10289
      }
11106
      }
10290
 
11107
 
10291
      /**
11108
      /**
10292
       * Find the _Fields constant that matches fieldId, or null if its not found.
11109
       * Find the _Fields constant that matches fieldId, or null if its not found.
10293
       */
11110
       */
10294
      public static _Fields findByThriftId(int fieldId) {
11111
      public static _Fields findByThriftId(int fieldId) {
10295
        return byId.get(fieldId);
11112
        switch(fieldId) {
-
 
11113
          case 1: // USERNAME
-
 
11114
            return USERNAME;
-
 
11115
          case 2: // PASSWORD
-
 
11116
            return PASSWORD;
-
 
11117
          default:
-
 
11118
            return null;
-
 
11119
        }
10296
      }
11120
      }
10297
 
11121
 
10298
      /**
11122
      /**
10299
       * Find the _Fields constant that matches fieldId, throwing an exception
11123
       * Find the _Fields constant that matches fieldId, throwing an exception
10300
       * if it is not found.
11124
       * if it is not found.
Line 10329... Line 11153...
10329
      }
11153
      }
10330
    }
11154
    }
10331
 
11155
 
10332
    // isset id assignments
11156
    // isset id assignments
10333
 
11157
 
10334
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11158
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10335
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
10336
          new FieldValueMetaData(TType.STRING)));
-
 
10337
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
10338
          new FieldValueMetaData(TType.STRING)));
-
 
10339
    }});
-
 
10340
 
-
 
10341
    static {
11159
    static {
-
 
11160
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11161
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11162
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
11163
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11164
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
11165
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10342
      FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
11166
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_args.class, metaDataMap);
10343
    }
11167
    }
10344
 
11168
 
10345
    public authenticateLogisticsUser_args() {
11169
    public authenticateLogisticsUser_args() {
10346
    }
11170
    }
10347
 
11171
 
Line 10368... Line 11192...
10368
 
11192
 
10369
    public authenticateLogisticsUser_args deepCopy() {
11193
    public authenticateLogisticsUser_args deepCopy() {
10370
      return new authenticateLogisticsUser_args(this);
11194
      return new authenticateLogisticsUser_args(this);
10371
    }
11195
    }
10372
 
11196
 
10373
    @Deprecated
11197
    @Override
10374
    public authenticateLogisticsUser_args clone() {
11198
    public void clear() {
10375
      return new authenticateLogisticsUser_args(this);
11199
      this.username = null;
-
 
11200
      this.password = null;
10376
    }
11201
    }
10377
 
11202
 
10378
    public String getUsername() {
11203
    public String getUsername() {
10379
      return this.username;
11204
      return this.username;
10380
    }
11205
    }
10381
 
11206
 
10382
    public authenticateLogisticsUser_args setUsername(String username) {
11207
    public void setUsername(String username) {
10383
      this.username = username;
11208
      this.username = username;
10384
      return this;
-
 
10385
    }
11209
    }
10386
 
11210
 
10387
    public void unsetUsername() {
11211
    public void unsetUsername() {
10388
      this.username = null;
11212
      this.username = null;
10389
    }
11213
    }
10390
 
11214
 
10391
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
11215
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
10392
    public boolean isSetUsername() {
11216
    public boolean isSetUsername() {
10393
      return this.username != null;
11217
      return this.username != null;
10394
    }
11218
    }
10395
 
11219
 
10396
    public void setUsernameIsSet(boolean value) {
11220
    public void setUsernameIsSet(boolean value) {
Line 10401... Line 11225...
10401
 
11225
 
10402
    public String getPassword() {
11226
    public String getPassword() {
10403
      return this.password;
11227
      return this.password;
10404
    }
11228
    }
10405
 
11229
 
10406
    public authenticateLogisticsUser_args setPassword(String password) {
11230
    public void setPassword(String password) {
10407
      this.password = password;
11231
      this.password = password;
10408
      return this;
-
 
10409
    }
11232
    }
10410
 
11233
 
10411
    public void unsetPassword() {
11234
    public void unsetPassword() {
10412
      this.password = null;
11235
      this.password = null;
10413
    }
11236
    }
10414
 
11237
 
10415
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
11238
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
10416
    public boolean isSetPassword() {
11239
    public boolean isSetPassword() {
10417
      return this.password != null;
11240
      return this.password != null;
10418
    }
11241
    }
10419
 
11242
 
10420
    public void setPasswordIsSet(boolean value) {
11243
    public void setPasswordIsSet(boolean value) {
Line 10442... Line 11265...
10442
        break;
11265
        break;
10443
 
11266
 
10444
      }
11267
      }
10445
    }
11268
    }
10446
 
11269
 
10447
    public void setFieldValue(int fieldID, Object value) {
-
 
10448
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10449
    }
-
 
10450
 
-
 
10451
    public Object getFieldValue(_Fields field) {
11270
    public Object getFieldValue(_Fields field) {
10452
      switch (field) {
11271
      switch (field) {
10453
      case USERNAME:
11272
      case USERNAME:
10454
        return getUsername();
11273
        return getUsername();
10455
 
11274
 
Line 10458... Line 11277...
10458
 
11277
 
10459
      }
11278
      }
10460
      throw new IllegalStateException();
11279
      throw new IllegalStateException();
10461
    }
11280
    }
10462
 
11281
 
10463
    public Object getFieldValue(int fieldId) {
-
 
10464
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10465
    }
-
 
10466
 
-
 
10467
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
11282
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10468
    public boolean isSet(_Fields field) {
11283
    public boolean isSet(_Fields field) {
-
 
11284
      if (field == null) {
-
 
11285
        throw new IllegalArgumentException();
-
 
11286
      }
-
 
11287
 
10469
      switch (field) {
11288
      switch (field) {
10470
      case USERNAME:
11289
      case USERNAME:
10471
        return isSetUsername();
11290
        return isSetUsername();
10472
      case PASSWORD:
11291
      case PASSWORD:
10473
        return isSetPassword();
11292
        return isSetPassword();
10474
      }
11293
      }
10475
      throw new IllegalStateException();
11294
      throw new IllegalStateException();
10476
    }
11295
    }
10477
 
11296
 
10478
    public boolean isSet(int fieldID) {
-
 
10479
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10480
    }
-
 
10481
 
-
 
10482
    @Override
11297
    @Override
10483
    public boolean equals(Object that) {
11298
    public boolean equals(Object that) {
10484
      if (that == null)
11299
      if (that == null)
10485
        return false;
11300
        return false;
10486
      if (that instanceof authenticateLogisticsUser_args)
11301
      if (that instanceof authenticateLogisticsUser_args)
Line 10524... Line 11339...
10524
      }
11339
      }
10525
 
11340
 
10526
      int lastComparison = 0;
11341
      int lastComparison = 0;
10527
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
11342
      authenticateLogisticsUser_args typedOther = (authenticateLogisticsUser_args)other;
10528
 
11343
 
10529
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
11344
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
10530
      if (lastComparison != 0) {
11345
      if (lastComparison != 0) {
10531
        return lastComparison;
11346
        return lastComparison;
10532
      }
11347
      }
-
 
11348
      if (isSetUsername()) {
10533
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
11349
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
10534
      if (lastComparison != 0) {
11350
        if (lastComparison != 0) {
10535
        return lastComparison;
11351
          return lastComparison;
-
 
11352
        }
10536
      }
11353
      }
10537
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
11354
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
10538
      if (lastComparison != 0) {
11355
      if (lastComparison != 0) {
10539
        return lastComparison;
11356
        return lastComparison;
10540
      }
11357
      }
-
 
11358
      if (isSetPassword()) {
10541
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
11359
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
10542
      if (lastComparison != 0) {
11360
        if (lastComparison != 0) {
10543
        return lastComparison;
11361
          return lastComparison;
-
 
11362
        }
10544
      }
11363
      }
10545
      return 0;
11364
      return 0;
10546
    }
11365
    }
10547
 
11366
 
-
 
11367
    public _Fields fieldForId(int fieldId) {
-
 
11368
      return _Fields.findByThriftId(fieldId);
-
 
11369
    }
-
 
11370
 
10548
    public void read(TProtocol iprot) throws TException {
11371
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10549
      TField field;
11372
      org.apache.thrift.protocol.TField field;
10550
      iprot.readStructBegin();
11373
      iprot.readStructBegin();
10551
      while (true)
11374
      while (true)
10552
      {
11375
      {
10553
        field = iprot.readFieldBegin();
11376
        field = iprot.readFieldBegin();
10554
        if (field.type == TType.STOP) { 
11377
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10555
          break;
11378
          break;
10556
        }
11379
        }
10557
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10558
        if (fieldId == null) {
-
 
10559
          TProtocolUtil.skip(iprot, field.type);
-
 
10560
        } else {
-
 
10561
          switch (fieldId) {
11380
        switch (field.id) {
10562
            case USERNAME:
11381
          case 1: // USERNAME
10563
              if (field.type == TType.STRING) {
11382
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10564
                this.username = iprot.readString();
11383
              this.username = iprot.readString();
10565
              } else { 
11384
            } else { 
10566
                TProtocolUtil.skip(iprot, field.type);
11385
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10567
              }
11386
            }
10568
              break;
11387
            break;
10569
            case PASSWORD:
11388
          case 2: // PASSWORD
10570
              if (field.type == TType.STRING) {
11389
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10571
                this.password = iprot.readString();
11390
              this.password = iprot.readString();
10572
              } else { 
11391
            } else { 
10573
                TProtocolUtil.skip(iprot, field.type);
11392
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10574
              }
11393
            }
10575
              break;
11394
            break;
10576
          }
11395
          default:
10577
          iprot.readFieldEnd();
11396
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10578
        }
11397
        }
-
 
11398
        iprot.readFieldEnd();
10579
      }
11399
      }
10580
      iprot.readStructEnd();
11400
      iprot.readStructEnd();
10581
      validate();
11401
      validate();
10582
    }
11402
    }
10583
 
11403
 
10584
    public void write(TProtocol oprot) throws TException {
11404
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10585
      validate();
11405
      validate();
10586
 
11406
 
10587
      oprot.writeStructBegin(STRUCT_DESC);
11407
      oprot.writeStructBegin(STRUCT_DESC);
10588
      if (this.username != null) {
11408
      if (this.username != null) {
10589
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
11409
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
Line 10621... Line 11441...
10621
      first = false;
11441
      first = false;
10622
      sb.append(")");
11442
      sb.append(")");
10623
      return sb.toString();
11443
      return sb.toString();
10624
    }
11444
    }
10625
 
11445
 
10626
    public void validate() throws TException {
11446
    public void validate() throws org.apache.thrift.TException {
10627
      // check for required fields
11447
      // check for required fields
10628
    }
11448
    }
10629
 
11449
 
-
 
11450
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11451
      try {
-
 
11452
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11453
      } catch (org.apache.thrift.TException te) {
-
 
11454
        throw new java.io.IOException(te);
-
 
11455
      }
-
 
11456
    }
-
 
11457
 
-
 
11458
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11459
      try {
-
 
11460
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11461
      } catch (org.apache.thrift.TException te) {
-
 
11462
        throw new java.io.IOException(te);
-
 
11463
      }
-
 
11464
    }
-
 
11465
 
10630
  }
11466
  }
10631
 
11467
 
10632
  public static class authenticateLogisticsUser_result implements TBase<authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateLogisticsUser_result>   {
11468
  public static class authenticateLogisticsUser_result implements org.apache.thrift.TBase<authenticateLogisticsUser_result, authenticateLogisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
10633
    private static final TStruct STRUCT_DESC = new TStruct("authenticateLogisticsUser_result");
11469
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateLogisticsUser_result");
10634
 
11470
 
10635
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
11471
    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);
10636
    private static final TField HSE_FIELD_DESC = new TField("hse", TType.STRUCT, (short)1);
11472
    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);
10637
 
11473
 
10638
    private LogisticsUser success;
11474
    private LogisticsUser success; // required
10639
    private HelperServiceException hse;
11475
    private HelperServiceException hse; // required
10640
 
11476
 
10641
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11477
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10642
    public enum _Fields implements TFieldIdEnum {
11478
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10643
      SUCCESS((short)0, "success"),
11479
      SUCCESS((short)0, "success"),
10644
      HSE((short)1, "hse");
11480
      HSE((short)1, "hse");
10645
 
11481
 
10646
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10647
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11482
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10648
 
11483
 
10649
      static {
11484
      static {
10650
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11485
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10651
          byId.put((int)field._thriftId, field);
-
 
10652
          byName.put(field.getFieldName(), field);
11486
          byName.put(field.getFieldName(), field);
10653
        }
11487
        }
10654
      }
11488
      }
10655
 
11489
 
10656
      /**
11490
      /**
10657
       * Find the _Fields constant that matches fieldId, or null if its not found.
11491
       * Find the _Fields constant that matches fieldId, or null if its not found.
10658
       */
11492
       */
10659
      public static _Fields findByThriftId(int fieldId) {
11493
      public static _Fields findByThriftId(int fieldId) {
10660
        return byId.get(fieldId);
11494
        switch(fieldId) {
-
 
11495
          case 0: // SUCCESS
-
 
11496
            return SUCCESS;
-
 
11497
          case 1: // HSE
-
 
11498
            return HSE;
-
 
11499
          default:
-
 
11500
            return null;
-
 
11501
        }
10661
      }
11502
      }
10662
 
11503
 
10663
      /**
11504
      /**
10664
       * Find the _Fields constant that matches fieldId, throwing an exception
11505
       * Find the _Fields constant that matches fieldId, throwing an exception
10665
       * if it is not found.
11506
       * if it is not found.
Line 10694... Line 11535...
10694
      }
11535
      }
10695
    }
11536
    }
10696
 
11537
 
10697
    // isset id assignments
11538
    // isset id assignments
10698
 
11539
 
10699
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11540
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10700
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
10701
          new StructMetaData(TType.STRUCT, LogisticsUser.class)));
-
 
10702
      put(_Fields.HSE, new FieldMetaData("hse", TFieldRequirementType.DEFAULT, 
-
 
10703
          new FieldValueMetaData(TType.STRUCT)));
-
 
10704
    }});
-
 
10705
 
-
 
10706
    static {
11541
    static {
-
 
11542
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11543
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11544
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsUser.class)));
-
 
11545
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11546
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
11547
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10707
      FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
11548
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateLogisticsUser_result.class, metaDataMap);
10708
    }
11549
    }
10709
 
11550
 
10710
    public authenticateLogisticsUser_result() {
11551
    public authenticateLogisticsUser_result() {
10711
    }
11552
    }
10712
 
11553
 
Line 10733... Line 11574...
10733
 
11574
 
10734
    public authenticateLogisticsUser_result deepCopy() {
11575
    public authenticateLogisticsUser_result deepCopy() {
10735
      return new authenticateLogisticsUser_result(this);
11576
      return new authenticateLogisticsUser_result(this);
10736
    }
11577
    }
10737
 
11578
 
10738
    @Deprecated
11579
    @Override
10739
    public authenticateLogisticsUser_result clone() {
11580
    public void clear() {
10740
      return new authenticateLogisticsUser_result(this);
11581
      this.success = null;
-
 
11582
      this.hse = null;
10741
    }
11583
    }
10742
 
11584
 
10743
    public LogisticsUser getSuccess() {
11585
    public LogisticsUser getSuccess() {
10744
      return this.success;
11586
      return this.success;
10745
    }
11587
    }
10746
 
11588
 
10747
    public authenticateLogisticsUser_result setSuccess(LogisticsUser success) {
11589
    public void setSuccess(LogisticsUser success) {
10748
      this.success = success;
11590
      this.success = success;
10749
      return this;
-
 
10750
    }
11591
    }
10751
 
11592
 
10752
    public void unsetSuccess() {
11593
    public void unsetSuccess() {
10753
      this.success = null;
11594
      this.success = null;
10754
    }
11595
    }
10755
 
11596
 
10756
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
11597
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
10757
    public boolean isSetSuccess() {
11598
    public boolean isSetSuccess() {
10758
      return this.success != null;
11599
      return this.success != null;
10759
    }
11600
    }
10760
 
11601
 
10761
    public void setSuccessIsSet(boolean value) {
11602
    public void setSuccessIsSet(boolean value) {
Line 10766... Line 11607...
10766
 
11607
 
10767
    public HelperServiceException getHse() {
11608
    public HelperServiceException getHse() {
10768
      return this.hse;
11609
      return this.hse;
10769
    }
11610
    }
10770
 
11611
 
10771
    public authenticateLogisticsUser_result setHse(HelperServiceException hse) {
11612
    public void setHse(HelperServiceException hse) {
10772
      this.hse = hse;
11613
      this.hse = hse;
10773
      return this;
-
 
10774
    }
11614
    }
10775
 
11615
 
10776
    public void unsetHse() {
11616
    public void unsetHse() {
10777
      this.hse = null;
11617
      this.hse = null;
10778
    }
11618
    }
10779
 
11619
 
10780
    /** Returns true if field hse is set (has been asigned a value) and false otherwise */
11620
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
10781
    public boolean isSetHse() {
11621
    public boolean isSetHse() {
10782
      return this.hse != null;
11622
      return this.hse != null;
10783
    }
11623
    }
10784
 
11624
 
10785
    public void setHseIsSet(boolean value) {
11625
    public void setHseIsSet(boolean value) {
Line 10807... Line 11647...
10807
        break;
11647
        break;
10808
 
11648
 
10809
      }
11649
      }
10810
    }
11650
    }
10811
 
11651
 
10812
    public void setFieldValue(int fieldID, Object value) {
-
 
10813
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10814
    }
-
 
10815
 
-
 
10816
    public Object getFieldValue(_Fields field) {
11652
    public Object getFieldValue(_Fields field) {
10817
      switch (field) {
11653
      switch (field) {
10818
      case SUCCESS:
11654
      case SUCCESS:
10819
        return getSuccess();
11655
        return getSuccess();
10820
 
11656
 
Line 10823... Line 11659...
10823
 
11659
 
10824
      }
11660
      }
10825
      throw new IllegalStateException();
11661
      throw new IllegalStateException();
10826
    }
11662
    }
10827
 
11663
 
10828
    public Object getFieldValue(int fieldId) {
-
 
10829
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10830
    }
-
 
10831
 
-
 
10832
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
11664
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10833
    public boolean isSet(_Fields field) {
11665
    public boolean isSet(_Fields field) {
-
 
11666
      if (field == null) {
-
 
11667
        throw new IllegalArgumentException();
-
 
11668
      }
-
 
11669
 
10834
      switch (field) {
11670
      switch (field) {
10835
      case SUCCESS:
11671
      case SUCCESS:
10836
        return isSetSuccess();
11672
        return isSetSuccess();
10837
      case HSE:
11673
      case HSE:
10838
        return isSetHse();
11674
        return isSetHse();
10839
      }
11675
      }
10840
      throw new IllegalStateException();
11676
      throw new IllegalStateException();
10841
    }
11677
    }
10842
 
11678
 
10843
    public boolean isSet(int fieldID) {
-
 
10844
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10845
    }
-
 
10846
 
-
 
10847
    @Override
11679
    @Override
10848
    public boolean equals(Object that) {
11680
    public boolean equals(Object that) {
10849
      if (that == null)
11681
      if (that == null)
10850
        return false;
11682
        return false;
10851
      if (that instanceof authenticateLogisticsUser_result)
11683
      if (that instanceof authenticateLogisticsUser_result)
Line 10889... Line 11721...
10889
      }
11721
      }
10890
 
11722
 
10891
      int lastComparison = 0;
11723
      int lastComparison = 0;
10892
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
11724
      authenticateLogisticsUser_result typedOther = (authenticateLogisticsUser_result)other;
10893
 
11725
 
10894
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
11726
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
10895
      if (lastComparison != 0) {
11727
      if (lastComparison != 0) {
10896
        return lastComparison;
11728
        return lastComparison;
10897
      }
11729
      }
-
 
11730
      if (isSetSuccess()) {
10898
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
11731
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
10899
      if (lastComparison != 0) {
11732
        if (lastComparison != 0) {
10900
        return lastComparison;
11733
          return lastComparison;
-
 
11734
        }
10901
      }
11735
      }
10902
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(isSetHse());
11736
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
10903
      if (lastComparison != 0) {
11737
      if (lastComparison != 0) {
10904
        return lastComparison;
11738
        return lastComparison;
10905
      }
11739
      }
-
 
11740
      if (isSetHse()) {
10906
      lastComparison = TBaseHelper.compareTo(hse, typedOther.hse);
11741
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
10907
      if (lastComparison != 0) {
11742
        if (lastComparison != 0) {
10908
        return lastComparison;
11743
          return lastComparison;
-
 
11744
        }
10909
      }
11745
      }
10910
      return 0;
11746
      return 0;
10911
    }
11747
    }
10912
 
11748
 
-
 
11749
    public _Fields fieldForId(int fieldId) {
-
 
11750
      return _Fields.findByThriftId(fieldId);
-
 
11751
    }
-
 
11752
 
10913
    public void read(TProtocol iprot) throws TException {
11753
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10914
      TField field;
11754
      org.apache.thrift.protocol.TField field;
10915
      iprot.readStructBegin();
11755
      iprot.readStructBegin();
10916
      while (true)
11756
      while (true)
10917
      {
11757
      {
10918
        field = iprot.readFieldBegin();
11758
        field = iprot.readFieldBegin();
10919
        if (field.type == TType.STOP) { 
11759
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10920
          break;
11760
          break;
10921
        }
11761
        }
10922
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10923
        if (fieldId == null) {
-
 
10924
          TProtocolUtil.skip(iprot, field.type);
-
 
10925
        } else {
-
 
10926
          switch (fieldId) {
11762
        switch (field.id) {
10927
            case SUCCESS:
11763
          case 0: // SUCCESS
10928
              if (field.type == TType.STRUCT) {
11764
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10929
                this.success = new LogisticsUser();
11765
              this.success = new LogisticsUser();
10930
                this.success.read(iprot);
11766
              this.success.read(iprot);
10931
              } else { 
11767
            } else { 
10932
                TProtocolUtil.skip(iprot, field.type);
11768
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10933
              }
11769
            }
10934
              break;
11770
            break;
10935
            case HSE:
11771
          case 1: // HSE
10936
              if (field.type == TType.STRUCT) {
11772
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
10937
                this.hse = new HelperServiceException();
11773
              this.hse = new HelperServiceException();
10938
                this.hse.read(iprot);
11774
              this.hse.read(iprot);
10939
              } else { 
11775
            } else { 
10940
                TProtocolUtil.skip(iprot, field.type);
11776
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10941
              }
11777
            }
10942
              break;
11778
            break;
10943
          }
11779
          default:
10944
          iprot.readFieldEnd();
11780
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10945
        }
11781
        }
-
 
11782
        iprot.readFieldEnd();
10946
      }
11783
      }
10947
      iprot.readStructEnd();
11784
      iprot.readStructEnd();
10948
      validate();
11785
      validate();
10949
    }
11786
    }
10950
 
11787
 
10951
    public void write(TProtocol oprot) throws TException {
11788
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10952
      oprot.writeStructBegin(STRUCT_DESC);
11789
      oprot.writeStructBegin(STRUCT_DESC);
10953
 
11790
 
10954
      if (this.isSetSuccess()) {
11791
      if (this.isSetSuccess()) {
10955
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11792
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
10956
        this.success.write(oprot);
11793
        this.success.write(oprot);
Line 10986... Line 11823...
10986
      first = false;
11823
      first = false;
10987
      sb.append(")");
11824
      sb.append(")");
10988
      return sb.toString();
11825
      return sb.toString();
10989
    }
11826
    }
10990
 
11827
 
10991
    public void validate() throws TException {
11828
    public void validate() throws org.apache.thrift.TException {
10992
      // check for required fields
11829
      // check for required fields
10993
    }
11830
    }
10994
 
11831
 
-
 
11832
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
11833
      try {
-
 
11834
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
11835
      } catch (org.apache.thrift.TException te) {
-
 
11836
        throw new java.io.IOException(te);
-
 
11837
      }
-
 
11838
    }
-
 
11839
 
-
 
11840
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
11841
      try {
-
 
11842
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
11843
      } catch (org.apache.thrift.TException te) {
-
 
11844
        throw new java.io.IOException(te);
-
 
11845
      }
-
 
11846
    }
-
 
11847
 
10995
  }
11848
  }
10996
 
11849
 
10997
  public static class authenticateStatisticsUser_args implements TBase<authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateStatisticsUser_args>   {
11850
  public static class authenticateStatisticsUser_args implements org.apache.thrift.TBase<authenticateStatisticsUser_args, authenticateStatisticsUser_args._Fields>, java.io.Serializable, Cloneable   {
10998
    private static final TStruct STRUCT_DESC = new TStruct("authenticateStatisticsUser_args");
11851
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_args");
10999
 
11852
 
11000
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
11853
    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);
11001
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
11854
    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);
11002
 
11855
 
11003
    private String username;
11856
    private String username; // required
11004
    private String password;
11857
    private String password; // required
11005
 
11858
 
11006
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11859
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11007
    public enum _Fields implements TFieldIdEnum {
11860
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11008
      USERNAME((short)1, "username"),
11861
      USERNAME((short)1, "username"),
11009
      PASSWORD((short)2, "password");
11862
      PASSWORD((short)2, "password");
11010
 
11863
 
11011
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
11012
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11864
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11013
 
11865
 
11014
      static {
11866
      static {
11015
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11867
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11016
          byId.put((int)field._thriftId, field);
-
 
11017
          byName.put(field.getFieldName(), field);
11868
          byName.put(field.getFieldName(), field);
11018
        }
11869
        }
11019
      }
11870
      }
11020
 
11871
 
11021
      /**
11872
      /**
11022
       * Find the _Fields constant that matches fieldId, or null if its not found.
11873
       * Find the _Fields constant that matches fieldId, or null if its not found.
11023
       */
11874
       */
11024
      public static _Fields findByThriftId(int fieldId) {
11875
      public static _Fields findByThriftId(int fieldId) {
11025
        return byId.get(fieldId);
11876
        switch(fieldId) {
-
 
11877
          case 1: // USERNAME
-
 
11878
            return USERNAME;
-
 
11879
          case 2: // PASSWORD
-
 
11880
            return PASSWORD;
-
 
11881
          default:
-
 
11882
            return null;
-
 
11883
        }
11026
      }
11884
      }
11027
 
11885
 
11028
      /**
11886
      /**
11029
       * Find the _Fields constant that matches fieldId, throwing an exception
11887
       * Find the _Fields constant that matches fieldId, throwing an exception
11030
       * if it is not found.
11888
       * if it is not found.
Line 11059... Line 11917...
11059
      }
11917
      }
11060
    }
11918
    }
11061
 
11919
 
11062
    // isset id assignments
11920
    // isset id assignments
11063
 
11921
 
11064
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11922
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11065
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
11066
          new FieldValueMetaData(TType.STRING)));
-
 
11067
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
11068
          new FieldValueMetaData(TType.STRING)));
-
 
11069
    }});
-
 
11070
 
-
 
11071
    static {
11923
    static {
-
 
11924
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
11925
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11926
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
11927
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
11928
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
11929
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11072
      FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
11930
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_args.class, metaDataMap);
11073
    }
11931
    }
11074
 
11932
 
11075
    public authenticateStatisticsUser_args() {
11933
    public authenticateStatisticsUser_args() {
11076
    }
11934
    }
11077
 
11935
 
Line 11098... Line 11956...
11098
 
11956
 
11099
    public authenticateStatisticsUser_args deepCopy() {
11957
    public authenticateStatisticsUser_args deepCopy() {
11100
      return new authenticateStatisticsUser_args(this);
11958
      return new authenticateStatisticsUser_args(this);
11101
    }
11959
    }
11102
 
11960
 
11103
    @Deprecated
11961
    @Override
11104
    public authenticateStatisticsUser_args clone() {
11962
    public void clear() {
11105
      return new authenticateStatisticsUser_args(this);
11963
      this.username = null;
-
 
11964
      this.password = null;
11106
    }
11965
    }
11107
 
11966
 
11108
    public String getUsername() {
11967
    public String getUsername() {
11109
      return this.username;
11968
      return this.username;
11110
    }
11969
    }
11111
 
11970
 
11112
    public authenticateStatisticsUser_args setUsername(String username) {
11971
    public void setUsername(String username) {
11113
      this.username = username;
11972
      this.username = username;
11114
      return this;
-
 
11115
    }
11973
    }
11116
 
11974
 
11117
    public void unsetUsername() {
11975
    public void unsetUsername() {
11118
      this.username = null;
11976
      this.username = null;
11119
    }
11977
    }
11120
 
11978
 
11121
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
11979
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
11122
    public boolean isSetUsername() {
11980
    public boolean isSetUsername() {
11123
      return this.username != null;
11981
      return this.username != null;
11124
    }
11982
    }
11125
 
11983
 
11126
    public void setUsernameIsSet(boolean value) {
11984
    public void setUsernameIsSet(boolean value) {
Line 11131... Line 11989...
11131
 
11989
 
11132
    public String getPassword() {
11990
    public String getPassword() {
11133
      return this.password;
11991
      return this.password;
11134
    }
11992
    }
11135
 
11993
 
11136
    public authenticateStatisticsUser_args setPassword(String password) {
11994
    public void setPassword(String password) {
11137
      this.password = password;
11995
      this.password = password;
11138
      return this;
-
 
11139
    }
11996
    }
11140
 
11997
 
11141
    public void unsetPassword() {
11998
    public void unsetPassword() {
11142
      this.password = null;
11999
      this.password = null;
11143
    }
12000
    }
11144
 
12001
 
11145
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
12002
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
11146
    public boolean isSetPassword() {
12003
    public boolean isSetPassword() {
11147
      return this.password != null;
12004
      return this.password != null;
11148
    }
12005
    }
11149
 
12006
 
11150
    public void setPasswordIsSet(boolean value) {
12007
    public void setPasswordIsSet(boolean value) {
Line 11172... Line 12029...
11172
        break;
12029
        break;
11173
 
12030
 
11174
      }
12031
      }
11175
    }
12032
    }
11176
 
12033
 
11177
    public void setFieldValue(int fieldID, Object value) {
-
 
11178
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
11179
    }
-
 
11180
 
-
 
11181
    public Object getFieldValue(_Fields field) {
12034
    public Object getFieldValue(_Fields field) {
11182
      switch (field) {
12035
      switch (field) {
11183
      case USERNAME:
12036
      case USERNAME:
11184
        return getUsername();
12037
        return getUsername();
11185
 
12038
 
Line 11188... Line 12041...
11188
 
12041
 
11189
      }
12042
      }
11190
      throw new IllegalStateException();
12043
      throw new IllegalStateException();
11191
    }
12044
    }
11192
 
12045
 
11193
    public Object getFieldValue(int fieldId) {
-
 
11194
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
11195
    }
-
 
11196
 
-
 
11197
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
12046
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11198
    public boolean isSet(_Fields field) {
12047
    public boolean isSet(_Fields field) {
-
 
12048
      if (field == null) {
-
 
12049
        throw new IllegalArgumentException();
-
 
12050
      }
-
 
12051
 
11199
      switch (field) {
12052
      switch (field) {
11200
      case USERNAME:
12053
      case USERNAME:
11201
        return isSetUsername();
12054
        return isSetUsername();
11202
      case PASSWORD:
12055
      case PASSWORD:
11203
        return isSetPassword();
12056
        return isSetPassword();
11204
      }
12057
      }
11205
      throw new IllegalStateException();
12058
      throw new IllegalStateException();
11206
    }
12059
    }
11207
 
12060
 
11208
    public boolean isSet(int fieldID) {
-
 
11209
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
11210
    }
-
 
11211
 
-
 
11212
    @Override
12061
    @Override
11213
    public boolean equals(Object that) {
12062
    public boolean equals(Object that) {
11214
      if (that == null)
12063
      if (that == null)
11215
        return false;
12064
        return false;
11216
      if (that instanceof authenticateStatisticsUser_args)
12065
      if (that instanceof authenticateStatisticsUser_args)
Line 11254... Line 12103...
11254
      }
12103
      }
11255
 
12104
 
11256
      int lastComparison = 0;
12105
      int lastComparison = 0;
11257
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
12106
      authenticateStatisticsUser_args typedOther = (authenticateStatisticsUser_args)other;
11258
 
12107
 
11259
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
12108
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
11260
      if (lastComparison != 0) {
12109
      if (lastComparison != 0) {
11261
        return lastComparison;
12110
        return lastComparison;
11262
      }
12111
      }
-
 
12112
      if (isSetUsername()) {
11263
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
12113
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11264
      if (lastComparison != 0) {
12114
        if (lastComparison != 0) {
11265
        return lastComparison;
12115
          return lastComparison;
-
 
12116
        }
11266
      }
12117
      }
11267
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
12118
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
11268
      if (lastComparison != 0) {
12119
      if (lastComparison != 0) {
11269
        return lastComparison;
12120
        return lastComparison;
11270
      }
12121
      }
-
 
12122
      if (isSetPassword()) {
11271
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
12123
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
11272
      if (lastComparison != 0) {
12124
        if (lastComparison != 0) {
11273
        return lastComparison;
12125
          return lastComparison;
-
 
12126
        }
11274
      }
12127
      }
11275
      return 0;
12128
      return 0;
11276
    }
12129
    }
11277
 
12130
 
-
 
12131
    public _Fields fieldForId(int fieldId) {
-
 
12132
      return _Fields.findByThriftId(fieldId);
-
 
12133
    }
-
 
12134
 
11278
    public void read(TProtocol iprot) throws TException {
12135
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11279
      TField field;
12136
      org.apache.thrift.protocol.TField field;
11280
      iprot.readStructBegin();
12137
      iprot.readStructBegin();
11281
      while (true)
12138
      while (true)
11282
      {
12139
      {
11283
        field = iprot.readFieldBegin();
12140
        field = iprot.readFieldBegin();
11284
        if (field.type == TType.STOP) { 
12141
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11285
          break;
12142
          break;
11286
        }
12143
        }
11287
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
11288
        if (fieldId == null) {
-
 
11289
          TProtocolUtil.skip(iprot, field.type);
-
 
11290
        } else {
-
 
11291
          switch (fieldId) {
12144
        switch (field.id) {
11292
            case USERNAME:
12145
          case 1: // USERNAME
11293
              if (field.type == TType.STRING) {
12146
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11294
                this.username = iprot.readString();
12147
              this.username = iprot.readString();
11295
              } else { 
12148
            } else { 
11296
                TProtocolUtil.skip(iprot, field.type);
12149
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11297
              }
12150
            }
11298
              break;
12151
            break;
11299
            case PASSWORD:
12152
          case 2: // PASSWORD
11300
              if (field.type == TType.STRING) {
12153
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
11301
                this.password = iprot.readString();
12154
              this.password = iprot.readString();
11302
              } else { 
12155
            } else { 
11303
                TProtocolUtil.skip(iprot, field.type);
12156
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11304
              }
12157
            }
11305
              break;
12158
            break;
11306
          }
12159
          default:
11307
          iprot.readFieldEnd();
12160
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11308
        }
12161
        }
-
 
12162
        iprot.readFieldEnd();
11309
      }
12163
      }
11310
      iprot.readStructEnd();
12164
      iprot.readStructEnd();
11311
      validate();
12165
      validate();
11312
    }
12166
    }
11313
 
12167
 
11314
    public void write(TProtocol oprot) throws TException {
12168
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11315
      validate();
12169
      validate();
11316
 
12170
 
11317
      oprot.writeStructBegin(STRUCT_DESC);
12171
      oprot.writeStructBegin(STRUCT_DESC);
11318
      if (this.username != null) {
12172
      if (this.username != null) {
11319
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12173
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
Line 11351... Line 12205...
11351
      first = false;
12205
      first = false;
11352
      sb.append(")");
12206
      sb.append(")");
11353
      return sb.toString();
12207
      return sb.toString();
11354
    }
12208
    }
11355
 
12209
 
11356
    public void validate() throws TException {
12210
    public void validate() throws org.apache.thrift.TException {
11357
      // check for required fields
12211
      // check for required fields
11358
    }
12212
    }
11359
 
12213
 
-
 
12214
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12215
      try {
-
 
12216
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12217
      } catch (org.apache.thrift.TException te) {
-
 
12218
        throw new java.io.IOException(te);
-
 
12219
      }
-
 
12220
    }
-
 
12221
 
-
 
12222
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12223
      try {
-
 
12224
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12225
      } catch (org.apache.thrift.TException te) {
-
 
12226
        throw new java.io.IOException(te);
-
 
12227
      }
-
 
12228
    }
-
 
12229
 
11360
  }
12230
  }
11361
 
12231
 
11362
  public static class authenticateStatisticsUser_result implements TBase<authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateStatisticsUser_result>   {
12232
  public static class authenticateStatisticsUser_result implements org.apache.thrift.TBase<authenticateStatisticsUser_result, authenticateStatisticsUser_result._Fields>, java.io.Serializable, Cloneable   {
11363
    private static final TStruct STRUCT_DESC = new TStruct("authenticateStatisticsUser_result");
12233
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateStatisticsUser_result");
11364
 
12234
 
11365
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
12235
    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);
11366
    private static final TField HSE_FIELD_DESC = new TField("hse", TType.STRUCT, (short)1);
12236
    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);
11367
 
12237
 
11368
    private StatisticsUser success;
12238
    private StatisticsUser success; // required
11369
    private HelperServiceException hse;
12239
    private HelperServiceException hse; // required
11370
 
12240
 
11371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12241
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11372
    public enum _Fields implements TFieldIdEnum {
12242
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11373
      SUCCESS((short)0, "success"),
12243
      SUCCESS((short)0, "success"),
11374
      HSE((short)1, "hse");
12244
      HSE((short)1, "hse");
11375
 
12245
 
11376
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
11377
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12246
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11378
 
12247
 
11379
      static {
12248
      static {
11380
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12249
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11381
          byId.put((int)field._thriftId, field);
-
 
11382
          byName.put(field.getFieldName(), field);
12250
          byName.put(field.getFieldName(), field);
11383
        }
12251
        }
11384
      }
12252
      }
11385
 
12253
 
11386
      /**
12254
      /**
11387
       * Find the _Fields constant that matches fieldId, or null if its not found.
12255
       * Find the _Fields constant that matches fieldId, or null if its not found.
11388
       */
12256
       */
11389
      public static _Fields findByThriftId(int fieldId) {
12257
      public static _Fields findByThriftId(int fieldId) {
11390
        return byId.get(fieldId);
12258
        switch(fieldId) {
-
 
12259
          case 0: // SUCCESS
-
 
12260
            return SUCCESS;
-
 
12261
          case 1: // HSE
-
 
12262
            return HSE;
-
 
12263
          default:
-
 
12264
            return null;
-
 
12265
        }
11391
      }
12266
      }
11392
 
12267
 
11393
      /**
12268
      /**
11394
       * Find the _Fields constant that matches fieldId, throwing an exception
12269
       * Find the _Fields constant that matches fieldId, throwing an exception
11395
       * if it is not found.
12270
       * if it is not found.
Line 11424... Line 12299...
11424
      }
12299
      }
11425
    }
12300
    }
11426
 
12301
 
11427
    // isset id assignments
12302
    // isset id assignments
11428
 
12303
 
11429
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
12304
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11430
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
11431
          new StructMetaData(TType.STRUCT, StatisticsUser.class)));
-
 
11432
      put(_Fields.HSE, new FieldMetaData("hse", TFieldRequirementType.DEFAULT, 
-
 
11433
          new FieldValueMetaData(TType.STRUCT)));
-
 
11434
    }});
-
 
11435
 
-
 
11436
    static {
12305
    static {
-
 
12306
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12307
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12308
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, StatisticsUser.class)));
-
 
12309
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12310
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
12311
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11437
      FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
12312
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateStatisticsUser_result.class, metaDataMap);
11438
    }
12313
    }
11439
 
12314
 
11440
    public authenticateStatisticsUser_result() {
12315
    public authenticateStatisticsUser_result() {
11441
    }
12316
    }
11442
 
12317
 
Line 11463... Line 12338...
11463
 
12338
 
11464
    public authenticateStatisticsUser_result deepCopy() {
12339
    public authenticateStatisticsUser_result deepCopy() {
11465
      return new authenticateStatisticsUser_result(this);
12340
      return new authenticateStatisticsUser_result(this);
11466
    }
12341
    }
11467
 
12342
 
11468
    @Deprecated
12343
    @Override
11469
    public authenticateStatisticsUser_result clone() {
12344
    public void clear() {
11470
      return new authenticateStatisticsUser_result(this);
12345
      this.success = null;
-
 
12346
      this.hse = null;
11471
    }
12347
    }
11472
 
12348
 
11473
    public StatisticsUser getSuccess() {
12349
    public StatisticsUser getSuccess() {
11474
      return this.success;
12350
      return this.success;
11475
    }
12351
    }
11476
 
12352
 
11477
    public authenticateStatisticsUser_result setSuccess(StatisticsUser success) {
12353
    public void setSuccess(StatisticsUser success) {
11478
      this.success = success;
12354
      this.success = success;
11479
      return this;
-
 
11480
    }
12355
    }
11481
 
12356
 
11482
    public void unsetSuccess() {
12357
    public void unsetSuccess() {
11483
      this.success = null;
12358
      this.success = null;
11484
    }
12359
    }
11485
 
12360
 
11486
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
12361
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
11487
    public boolean isSetSuccess() {
12362
    public boolean isSetSuccess() {
11488
      return this.success != null;
12363
      return this.success != null;
11489
    }
12364
    }
11490
 
12365
 
11491
    public void setSuccessIsSet(boolean value) {
12366
    public void setSuccessIsSet(boolean value) {
Line 11496... Line 12371...
11496
 
12371
 
11497
    public HelperServiceException getHse() {
12372
    public HelperServiceException getHse() {
11498
      return this.hse;
12373
      return this.hse;
11499
    }
12374
    }
11500
 
12375
 
11501
    public authenticateStatisticsUser_result setHse(HelperServiceException hse) {
12376
    public void setHse(HelperServiceException hse) {
11502
      this.hse = hse;
12377
      this.hse = hse;
11503
      return this;
-
 
11504
    }
12378
    }
11505
 
12379
 
11506
    public void unsetHse() {
12380
    public void unsetHse() {
11507
      this.hse = null;
12381
      this.hse = null;
11508
    }
12382
    }
11509
 
12383
 
11510
    /** Returns true if field hse is set (has been asigned a value) and false otherwise */
12384
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
11511
    public boolean isSetHse() {
12385
    public boolean isSetHse() {
11512
      return this.hse != null;
12386
      return this.hse != null;
11513
    }
12387
    }
11514
 
12388
 
11515
    public void setHseIsSet(boolean value) {
12389
    public void setHseIsSet(boolean value) {
Line 11537... Line 12411...
11537
        break;
12411
        break;
11538
 
12412
 
11539
      }
12413
      }
11540
    }
12414
    }
11541
 
12415
 
11542
    public void setFieldValue(int fieldID, Object value) {
-
 
11543
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
11544
    }
-
 
11545
 
-
 
11546
    public Object getFieldValue(_Fields field) {
12416
    public Object getFieldValue(_Fields field) {
11547
      switch (field) {
12417
      switch (field) {
11548
      case SUCCESS:
12418
      case SUCCESS:
11549
        return getSuccess();
12419
        return getSuccess();
11550
 
12420
 
Line 11553... Line 12423...
11553
 
12423
 
11554
      }
12424
      }
11555
      throw new IllegalStateException();
12425
      throw new IllegalStateException();
11556
    }
12426
    }
11557
 
12427
 
11558
    public Object getFieldValue(int fieldId) {
-
 
11559
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
11560
    }
-
 
11561
 
-
 
11562
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
12428
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11563
    public boolean isSet(_Fields field) {
12429
    public boolean isSet(_Fields field) {
-
 
12430
      if (field == null) {
-
 
12431
        throw new IllegalArgumentException();
-
 
12432
      }
-
 
12433
 
11564
      switch (field) {
12434
      switch (field) {
11565
      case SUCCESS:
12435
      case SUCCESS:
11566
        return isSetSuccess();
12436
        return isSetSuccess();
11567
      case HSE:
12437
      case HSE:
11568
        return isSetHse();
12438
        return isSetHse();
11569
      }
12439
      }
11570
      throw new IllegalStateException();
12440
      throw new IllegalStateException();
11571
    }
12441
    }
11572
 
12442
 
11573
    public boolean isSet(int fieldID) {
-
 
11574
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
11575
    }
-
 
11576
 
-
 
11577
    @Override
12443
    @Override
11578
    public boolean equals(Object that) {
12444
    public boolean equals(Object that) {
11579
      if (that == null)
12445
      if (that == null)
11580
        return false;
12446
        return false;
11581
      if (that instanceof authenticateStatisticsUser_result)
12447
      if (that instanceof authenticateStatisticsUser_result)
Line 11619... Line 12485...
11619
      }
12485
      }
11620
 
12486
 
11621
      int lastComparison = 0;
12487
      int lastComparison = 0;
11622
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
12488
      authenticateStatisticsUser_result typedOther = (authenticateStatisticsUser_result)other;
11623
 
12489
 
11624
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
12490
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
11625
      if (lastComparison != 0) {
12491
      if (lastComparison != 0) {
11626
        return lastComparison;
12492
        return lastComparison;
11627
      }
12493
      }
-
 
12494
      if (isSetSuccess()) {
11628
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
12495
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
11629
      if (lastComparison != 0) {
12496
        if (lastComparison != 0) {
11630
        return lastComparison;
12497
          return lastComparison;
-
 
12498
        }
11631
      }
12499
      }
11632
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(isSetHse());
12500
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
11633
      if (lastComparison != 0) {
12501
      if (lastComparison != 0) {
11634
        return lastComparison;
12502
        return lastComparison;
11635
      }
12503
      }
-
 
12504
      if (isSetHse()) {
11636
      lastComparison = TBaseHelper.compareTo(hse, typedOther.hse);
12505
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
11637
      if (lastComparison != 0) {
12506
        if (lastComparison != 0) {
11638
        return lastComparison;
12507
          return lastComparison;
-
 
12508
        }
11639
      }
12509
      }
11640
      return 0;
12510
      return 0;
11641
    }
12511
    }
11642
 
12512
 
-
 
12513
    public _Fields fieldForId(int fieldId) {
-
 
12514
      return _Fields.findByThriftId(fieldId);
-
 
12515
    }
-
 
12516
 
11643
    public void read(TProtocol iprot) throws TException {
12517
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11644
      TField field;
12518
      org.apache.thrift.protocol.TField field;
11645
      iprot.readStructBegin();
12519
      iprot.readStructBegin();
11646
      while (true)
12520
      while (true)
11647
      {
12521
      {
11648
        field = iprot.readFieldBegin();
12522
        field = iprot.readFieldBegin();
11649
        if (field.type == TType.STOP) { 
12523
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11650
          break;
12524
          break;
11651
        }
12525
        }
11652
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
11653
        if (fieldId == null) {
-
 
11654
          TProtocolUtil.skip(iprot, field.type);
-
 
11655
        } else {
-
 
11656
          switch (fieldId) {
12526
        switch (field.id) {
11657
            case SUCCESS:
12527
          case 0: // SUCCESS
11658
              if (field.type == TType.STRUCT) {
12528
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11659
                this.success = new StatisticsUser();
12529
              this.success = new StatisticsUser();
11660
                this.success.read(iprot);
12530
              this.success.read(iprot);
11661
              } else { 
12531
            } else { 
11662
                TProtocolUtil.skip(iprot, field.type);
12532
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11663
              }
12533
            }
11664
              break;
12534
            break;
11665
            case HSE:
12535
          case 1: // HSE
11666
              if (field.type == TType.STRUCT) {
12536
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11667
                this.hse = new HelperServiceException();
12537
              this.hse = new HelperServiceException();
11668
                this.hse.read(iprot);
12538
              this.hse.read(iprot);
11669
              } else { 
12539
            } else { 
11670
                TProtocolUtil.skip(iprot, field.type);
12540
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11671
              }
12541
            }
11672
              break;
12542
            break;
11673
          }
12543
          default:
11674
          iprot.readFieldEnd();
12544
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11675
        }
12545
        }
-
 
12546
        iprot.readFieldEnd();
11676
      }
12547
      }
11677
      iprot.readStructEnd();
12548
      iprot.readStructEnd();
11678
      validate();
12549
      validate();
11679
    }
12550
    }
11680
 
12551
 
11681
    public void write(TProtocol oprot) throws TException {
12552
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11682
      oprot.writeStructBegin(STRUCT_DESC);
12553
      oprot.writeStructBegin(STRUCT_DESC);
11683
 
12554
 
11684
      if (this.isSetSuccess()) {
12555
      if (this.isSetSuccess()) {
11685
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12556
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
11686
        this.success.write(oprot);
12557
        this.success.write(oprot);
Line 11716... Line 12587...
11716
      first = false;
12587
      first = false;
11717
      sb.append(")");
12588
      sb.append(")");
11718
      return sb.toString();
12589
      return sb.toString();
11719
    }
12590
    }
11720
 
12591
 
11721
    public void validate() throws TException {
12592
    public void validate() throws org.apache.thrift.TException {
11722
      // check for required fields
12593
      // check for required fields
11723
    }
12594
    }
11724
 
12595
 
-
 
12596
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12597
      try {
-
 
12598
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12599
      } catch (org.apache.thrift.TException te) {
-
 
12600
        throw new java.io.IOException(te);
-
 
12601
      }
-
 
12602
    }
-
 
12603
 
-
 
12604
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12605
      try {
-
 
12606
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12607
      } catch (org.apache.thrift.TException te) {
-
 
12608
        throw new java.io.IOException(te);
-
 
12609
      }
-
 
12610
    }
-
 
12611
 
11725
  }
12612
  }
11726
 
12613
 
11727
  public static class authenticateReportUser_args implements TBase<authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateReportUser_args>   {
12614
  public static class authenticateReportUser_args implements org.apache.thrift.TBase<authenticateReportUser_args, authenticateReportUser_args._Fields>, java.io.Serializable, Cloneable   {
11728
    private static final TStruct STRUCT_DESC = new TStruct("authenticateReportUser_args");
12615
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_args");
11729
 
12616
 
11730
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
12617
    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);
11731
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
12618
    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);
11732
 
12619
 
11733
    private String username;
12620
    private String username; // required
11734
    private String password;
12621
    private String password; // required
11735
 
12622
 
11736
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11737
    public enum _Fields implements TFieldIdEnum {
12624
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11738
      USERNAME((short)1, "username"),
12625
      USERNAME((short)1, "username"),
11739
      PASSWORD((short)2, "password");
12626
      PASSWORD((short)2, "password");
11740
 
12627
 
11741
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
11742
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12628
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11743
 
12629
 
11744
      static {
12630
      static {
11745
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12631
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11746
          byId.put((int)field._thriftId, field);
-
 
11747
          byName.put(field.getFieldName(), field);
12632
          byName.put(field.getFieldName(), field);
11748
        }
12633
        }
11749
      }
12634
      }
11750
 
12635
 
11751
      /**
12636
      /**
11752
       * Find the _Fields constant that matches fieldId, or null if its not found.
12637
       * Find the _Fields constant that matches fieldId, or null if its not found.
11753
       */
12638
       */
11754
      public static _Fields findByThriftId(int fieldId) {
12639
      public static _Fields findByThriftId(int fieldId) {
11755
        return byId.get(fieldId);
12640
        switch(fieldId) {
-
 
12641
          case 1: // USERNAME
-
 
12642
            return USERNAME;
-
 
12643
          case 2: // PASSWORD
-
 
12644
            return PASSWORD;
-
 
12645
          default:
-
 
12646
            return null;
-
 
12647
        }
11756
      }
12648
      }
11757
 
12649
 
11758
      /**
12650
      /**
11759
       * Find the _Fields constant that matches fieldId, throwing an exception
12651
       * Find the _Fields constant that matches fieldId, throwing an exception
11760
       * if it is not found.
12652
       * if it is not found.
Line 11789... Line 12681...
11789
      }
12681
      }
11790
    }
12682
    }
11791
 
12683
 
11792
    // isset id assignments
12684
    // isset id assignments
11793
 
12685
 
11794
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
12686
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11795
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
11796
          new FieldValueMetaData(TType.STRING)));
-
 
11797
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
11798
          new FieldValueMetaData(TType.STRING)));
-
 
11799
    }});
-
 
11800
 
-
 
11801
    static {
12687
    static {
-
 
12688
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
12689
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12690
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
12691
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
12692
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
12693
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11802
      FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
12694
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_args.class, metaDataMap);
11803
    }
12695
    }
11804
 
12696
 
11805
    public authenticateReportUser_args() {
12697
    public authenticateReportUser_args() {
11806
    }
12698
    }
11807
 
12699
 
Line 11828... Line 12720...
11828
 
12720
 
11829
    public authenticateReportUser_args deepCopy() {
12721
    public authenticateReportUser_args deepCopy() {
11830
      return new authenticateReportUser_args(this);
12722
      return new authenticateReportUser_args(this);
11831
    }
12723
    }
11832
 
12724
 
11833
    @Deprecated
12725
    @Override
11834
    public authenticateReportUser_args clone() {
12726
    public void clear() {
11835
      return new authenticateReportUser_args(this);
12727
      this.username = null;
-
 
12728
      this.password = null;
11836
    }
12729
    }
11837
 
12730
 
11838
    public String getUsername() {
12731
    public String getUsername() {
11839
      return this.username;
12732
      return this.username;
11840
    }
12733
    }
11841
 
12734
 
11842
    public authenticateReportUser_args setUsername(String username) {
12735
    public void setUsername(String username) {
11843
      this.username = username;
12736
      this.username = username;
11844
      return this;
-
 
11845
    }
12737
    }
11846
 
12738
 
11847
    public void unsetUsername() {
12739
    public void unsetUsername() {
11848
      this.username = null;
12740
      this.username = null;
11849
    }
12741
    }
11850
 
12742
 
11851
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
12743
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
11852
    public boolean isSetUsername() {
12744
    public boolean isSetUsername() {
11853
      return this.username != null;
12745
      return this.username != null;
11854
    }
12746
    }
11855
 
12747
 
11856
    public void setUsernameIsSet(boolean value) {
12748
    public void setUsernameIsSet(boolean value) {
Line 11861... Line 12753...
11861
 
12753
 
11862
    public String getPassword() {
12754
    public String getPassword() {
11863
      return this.password;
12755
      return this.password;
11864
    }
12756
    }
11865
 
12757
 
11866
    public authenticateReportUser_args setPassword(String password) {
12758
    public void setPassword(String password) {
11867
      this.password = password;
12759
      this.password = password;
11868
      return this;
-
 
11869
    }
12760
    }
11870
 
12761
 
11871
    public void unsetPassword() {
12762
    public void unsetPassword() {
11872
      this.password = null;
12763
      this.password = null;
11873
    }
12764
    }
11874
 
12765
 
11875
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
12766
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
11876
    public boolean isSetPassword() {
12767
    public boolean isSetPassword() {
11877
      return this.password != null;
12768
      return this.password != null;
11878
    }
12769
    }
11879
 
12770
 
11880
    public void setPasswordIsSet(boolean value) {
12771
    public void setPasswordIsSet(boolean value) {
Line 11902... Line 12793...
11902
        break;
12793
        break;
11903
 
12794
 
11904
      }
12795
      }
11905
    }
12796
    }
11906
 
12797
 
11907
    public void setFieldValue(int fieldID, Object value) {
-
 
11908
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
11909
    }
-
 
11910
 
-
 
11911
    public Object getFieldValue(_Fields field) {
12798
    public Object getFieldValue(_Fields field) {
11912
      switch (field) {
12799
      switch (field) {
11913
      case USERNAME:
12800
      case USERNAME:
11914
        return getUsername();
12801
        return getUsername();
11915
 
12802
 
Line 11918... Line 12805...
11918
 
12805
 
11919
      }
12806
      }
11920
      throw new IllegalStateException();
12807
      throw new IllegalStateException();
11921
    }
12808
    }
11922
 
12809
 
11923
    public Object getFieldValue(int fieldId) {
-
 
11924
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
11925
    }
-
 
11926
 
-
 
11927
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
12810
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11928
    public boolean isSet(_Fields field) {
12811
    public boolean isSet(_Fields field) {
-
 
12812
      if (field == null) {
-
 
12813
        throw new IllegalArgumentException();
-
 
12814
      }
-
 
12815
 
11929
      switch (field) {
12816
      switch (field) {
11930
      case USERNAME:
12817
      case USERNAME:
11931
        return isSetUsername();
12818
        return isSetUsername();
11932
      case PASSWORD:
12819
      case PASSWORD:
11933
        return isSetPassword();
12820
        return isSetPassword();
11934
      }
12821
      }
11935
      throw new IllegalStateException();
12822
      throw new IllegalStateException();
11936
    }
12823
    }
11937
 
12824
 
11938
    public boolean isSet(int fieldID) {
-
 
11939
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
11940
    }
-
 
11941
 
-
 
11942
    @Override
12825
    @Override
11943
    public boolean equals(Object that) {
12826
    public boolean equals(Object that) {
11944
      if (that == null)
12827
      if (that == null)
11945
        return false;
12828
        return false;
11946
      if (that instanceof authenticateReportUser_args)
12829
      if (that instanceof authenticateReportUser_args)
Line 11984... Line 12867...
11984
      }
12867
      }
11985
 
12868
 
11986
      int lastComparison = 0;
12869
      int lastComparison = 0;
11987
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
12870
      authenticateReportUser_args typedOther = (authenticateReportUser_args)other;
11988
 
12871
 
11989
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
12872
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
11990
      if (lastComparison != 0) {
12873
      if (lastComparison != 0) {
11991
        return lastComparison;
12874
        return lastComparison;
11992
      }
12875
      }
-
 
12876
      if (isSetUsername()) {
11993
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
12877
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
11994
      if (lastComparison != 0) {
12878
        if (lastComparison != 0) {
11995
        return lastComparison;
12879
          return lastComparison;
-
 
12880
        }
11996
      }
12881
      }
11997
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
12882
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
11998
      if (lastComparison != 0) {
12883
      if (lastComparison != 0) {
11999
        return lastComparison;
12884
        return lastComparison;
12000
      }
12885
      }
-
 
12886
      if (isSetPassword()) {
12001
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
12887
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
12002
      if (lastComparison != 0) {
12888
        if (lastComparison != 0) {
12003
        return lastComparison;
12889
          return lastComparison;
-
 
12890
        }
12004
      }
12891
      }
12005
      return 0;
12892
      return 0;
12006
    }
12893
    }
12007
 
12894
 
-
 
12895
    public _Fields fieldForId(int fieldId) {
-
 
12896
      return _Fields.findByThriftId(fieldId);
-
 
12897
    }
-
 
12898
 
12008
    public void read(TProtocol iprot) throws TException {
12899
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12009
      TField field;
12900
      org.apache.thrift.protocol.TField field;
12010
      iprot.readStructBegin();
12901
      iprot.readStructBegin();
12011
      while (true)
12902
      while (true)
12012
      {
12903
      {
12013
        field = iprot.readFieldBegin();
12904
        field = iprot.readFieldBegin();
12014
        if (field.type == TType.STOP) { 
12905
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12015
          break;
12906
          break;
12016
        }
12907
        }
12017
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
12018
        if (fieldId == null) {
-
 
12019
          TProtocolUtil.skip(iprot, field.type);
-
 
12020
        } else {
-
 
12021
          switch (fieldId) {
12908
        switch (field.id) {
12022
            case USERNAME:
12909
          case 1: // USERNAME
12023
              if (field.type == TType.STRING) {
12910
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12024
                this.username = iprot.readString();
12911
              this.username = iprot.readString();
12025
              } else { 
12912
            } else { 
12026
                TProtocolUtil.skip(iprot, field.type);
12913
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12027
              }
12914
            }
12028
              break;
12915
            break;
12029
            case PASSWORD:
12916
          case 2: // PASSWORD
12030
              if (field.type == TType.STRING) {
12917
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
12031
                this.password = iprot.readString();
12918
              this.password = iprot.readString();
12032
              } else { 
12919
            } else { 
12033
                TProtocolUtil.skip(iprot, field.type);
12920
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12034
              }
12921
            }
12035
              break;
12922
            break;
12036
          }
12923
          default:
12037
          iprot.readFieldEnd();
12924
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12038
        }
12925
        }
-
 
12926
        iprot.readFieldEnd();
12039
      }
12927
      }
12040
      iprot.readStructEnd();
12928
      iprot.readStructEnd();
12041
      validate();
12929
      validate();
12042
    }
12930
    }
12043
 
12931
 
12044
    public void write(TProtocol oprot) throws TException {
12932
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12045
      validate();
12933
      validate();
12046
 
12934
 
12047
      oprot.writeStructBegin(STRUCT_DESC);
12935
      oprot.writeStructBegin(STRUCT_DESC);
12048
      if (this.username != null) {
12936
      if (this.username != null) {
12049
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
12937
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
Line 12081... Line 12969...
12081
      first = false;
12969
      first = false;
12082
      sb.append(")");
12970
      sb.append(")");
12083
      return sb.toString();
12971
      return sb.toString();
12084
    }
12972
    }
12085
 
12973
 
12086
    public void validate() throws TException {
12974
    public void validate() throws org.apache.thrift.TException {
12087
      // check for required fields
12975
      // check for required fields
12088
    }
12976
    }
12089
 
12977
 
-
 
12978
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
12979
      try {
-
 
12980
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
12981
      } catch (org.apache.thrift.TException te) {
-
 
12982
        throw new java.io.IOException(te);
-
 
12983
      }
-
 
12984
    }
-
 
12985
 
-
 
12986
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
12987
      try {
-
 
12988
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
12989
      } catch (org.apache.thrift.TException te) {
-
 
12990
        throw new java.io.IOException(te);
-
 
12991
      }
-
 
12992
    }
-
 
12993
 
12090
  }
12994
  }
12091
 
12995
 
12092
  public static class authenticateReportUser_result implements TBase<authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateReportUser_result>   {
12996
  public static class authenticateReportUser_result implements org.apache.thrift.TBase<authenticateReportUser_result, authenticateReportUser_result._Fields>, java.io.Serializable, Cloneable   {
12093
    private static final TStruct STRUCT_DESC = new TStruct("authenticateReportUser_result");
12997
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateReportUser_result");
12094
 
12998
 
12095
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
12999
    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);
12096
    private static final TField HSE_FIELD_DESC = new TField("hse", TType.STRUCT, (short)1);
13000
    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);
12097
 
13001
 
12098
    private ReportUser success;
13002
    private ReportUser success; // required
12099
    private HelperServiceException hse;
13003
    private HelperServiceException hse; // required
12100
 
13004
 
12101
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13005
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12102
    public enum _Fields implements TFieldIdEnum {
13006
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12103
      SUCCESS((short)0, "success"),
13007
      SUCCESS((short)0, "success"),
12104
      HSE((short)1, "hse");
13008
      HSE((short)1, "hse");
12105
 
13009
 
12106
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
12107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13010
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12108
 
13011
 
12109
      static {
13012
      static {
12110
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13013
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12111
          byId.put((int)field._thriftId, field);
-
 
12112
          byName.put(field.getFieldName(), field);
13014
          byName.put(field.getFieldName(), field);
12113
        }
13015
        }
12114
      }
13016
      }
12115
 
13017
 
12116
      /**
13018
      /**
12117
       * Find the _Fields constant that matches fieldId, or null if its not found.
13019
       * Find the _Fields constant that matches fieldId, or null if its not found.
12118
       */
13020
       */
12119
      public static _Fields findByThriftId(int fieldId) {
13021
      public static _Fields findByThriftId(int fieldId) {
12120
        return byId.get(fieldId);
13022
        switch(fieldId) {
-
 
13023
          case 0: // SUCCESS
-
 
13024
            return SUCCESS;
-
 
13025
          case 1: // HSE
-
 
13026
            return HSE;
-
 
13027
          default:
-
 
13028
            return null;
-
 
13029
        }
12121
      }
13030
      }
12122
 
13031
 
12123
      /**
13032
      /**
12124
       * Find the _Fields constant that matches fieldId, throwing an exception
13033
       * Find the _Fields constant that matches fieldId, throwing an exception
12125
       * if it is not found.
13034
       * if it is not found.
Line 12154... Line 13063...
12154
      }
13063
      }
12155
    }
13064
    }
12156
 
13065
 
12157
    // isset id assignments
13066
    // isset id assignments
12158
 
13067
 
12159
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
13068
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12160
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
12161
          new StructMetaData(TType.STRUCT, ReportUser.class)));
-
 
12162
      put(_Fields.HSE, new FieldMetaData("hse", TFieldRequirementType.DEFAULT, 
-
 
12163
          new FieldValueMetaData(TType.STRUCT)));
-
 
12164
    }});
-
 
12165
 
-
 
12166
    static {
13069
    static {
-
 
13070
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13071
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13072
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ReportUser.class)));
-
 
13073
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13074
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
13075
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12167
      FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
13076
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateReportUser_result.class, metaDataMap);
12168
    }
13077
    }
12169
 
13078
 
12170
    public authenticateReportUser_result() {
13079
    public authenticateReportUser_result() {
12171
    }
13080
    }
12172
 
13081
 
Line 12193... Line 13102...
12193
 
13102
 
12194
    public authenticateReportUser_result deepCopy() {
13103
    public authenticateReportUser_result deepCopy() {
12195
      return new authenticateReportUser_result(this);
13104
      return new authenticateReportUser_result(this);
12196
    }
13105
    }
12197
 
13106
 
12198
    @Deprecated
13107
    @Override
12199
    public authenticateReportUser_result clone() {
13108
    public void clear() {
12200
      return new authenticateReportUser_result(this);
13109
      this.success = null;
-
 
13110
      this.hse = null;
12201
    }
13111
    }
12202
 
13112
 
12203
    public ReportUser getSuccess() {
13113
    public ReportUser getSuccess() {
12204
      return this.success;
13114
      return this.success;
12205
    }
13115
    }
12206
 
13116
 
12207
    public authenticateReportUser_result setSuccess(ReportUser success) {
13117
    public void setSuccess(ReportUser success) {
12208
      this.success = success;
13118
      this.success = success;
12209
      return this;
-
 
12210
    }
13119
    }
12211
 
13120
 
12212
    public void unsetSuccess() {
13121
    public void unsetSuccess() {
12213
      this.success = null;
13122
      this.success = null;
12214
    }
13123
    }
12215
 
13124
 
12216
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
13125
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12217
    public boolean isSetSuccess() {
13126
    public boolean isSetSuccess() {
12218
      return this.success != null;
13127
      return this.success != null;
12219
    }
13128
    }
12220
 
13129
 
12221
    public void setSuccessIsSet(boolean value) {
13130
    public void setSuccessIsSet(boolean value) {
Line 12226... Line 13135...
12226
 
13135
 
12227
    public HelperServiceException getHse() {
13136
    public HelperServiceException getHse() {
12228
      return this.hse;
13137
      return this.hse;
12229
    }
13138
    }
12230
 
13139
 
12231
    public authenticateReportUser_result setHse(HelperServiceException hse) {
13140
    public void setHse(HelperServiceException hse) {
12232
      this.hse = hse;
13141
      this.hse = hse;
12233
      return this;
-
 
12234
    }
13142
    }
12235
 
13143
 
12236
    public void unsetHse() {
13144
    public void unsetHse() {
12237
      this.hse = null;
13145
      this.hse = null;
12238
    }
13146
    }
12239
 
13147
 
12240
    /** Returns true if field hse is set (has been asigned a value) and false otherwise */
13148
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
12241
    public boolean isSetHse() {
13149
    public boolean isSetHse() {
12242
      return this.hse != null;
13150
      return this.hse != null;
12243
    }
13151
    }
12244
 
13152
 
12245
    public void setHseIsSet(boolean value) {
13153
    public void setHseIsSet(boolean value) {
Line 12267... Line 13175...
12267
        break;
13175
        break;
12268
 
13176
 
12269
      }
13177
      }
12270
    }
13178
    }
12271
 
13179
 
12272
    public void setFieldValue(int fieldID, Object value) {
-
 
12273
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
12274
    }
-
 
12275
 
-
 
12276
    public Object getFieldValue(_Fields field) {
13180
    public Object getFieldValue(_Fields field) {
12277
      switch (field) {
13181
      switch (field) {
12278
      case SUCCESS:
13182
      case SUCCESS:
12279
        return getSuccess();
13183
        return getSuccess();
12280
 
13184
 
Line 12283... Line 13187...
12283
 
13187
 
12284
      }
13188
      }
12285
      throw new IllegalStateException();
13189
      throw new IllegalStateException();
12286
    }
13190
    }
12287
 
13191
 
12288
    public Object getFieldValue(int fieldId) {
-
 
12289
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
12290
    }
-
 
12291
 
-
 
12292
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
13192
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12293
    public boolean isSet(_Fields field) {
13193
    public boolean isSet(_Fields field) {
-
 
13194
      if (field == null) {
-
 
13195
        throw new IllegalArgumentException();
-
 
13196
      }
-
 
13197
 
12294
      switch (field) {
13198
      switch (field) {
12295
      case SUCCESS:
13199
      case SUCCESS:
12296
        return isSetSuccess();
13200
        return isSetSuccess();
12297
      case HSE:
13201
      case HSE:
12298
        return isSetHse();
13202
        return isSetHse();
12299
      }
13203
      }
12300
      throw new IllegalStateException();
13204
      throw new IllegalStateException();
12301
    }
13205
    }
12302
 
13206
 
12303
    public boolean isSet(int fieldID) {
-
 
12304
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
12305
    }
-
 
12306
 
-
 
12307
    @Override
13207
    @Override
12308
    public boolean equals(Object that) {
13208
    public boolean equals(Object that) {
12309
      if (that == null)
13209
      if (that == null)
12310
        return false;
13210
        return false;
12311
      if (that instanceof authenticateReportUser_result)
13211
      if (that instanceof authenticateReportUser_result)
Line 12349... Line 13249...
12349
      }
13249
      }
12350
 
13250
 
12351
      int lastComparison = 0;
13251
      int lastComparison = 0;
12352
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
13252
      authenticateReportUser_result typedOther = (authenticateReportUser_result)other;
12353
 
13253
 
12354
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
13254
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12355
      if (lastComparison != 0) {
13255
      if (lastComparison != 0) {
12356
        return lastComparison;
13256
        return lastComparison;
12357
      }
13257
      }
-
 
13258
      if (isSetSuccess()) {
12358
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
13259
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12359
      if (lastComparison != 0) {
13260
        if (lastComparison != 0) {
12360
        return lastComparison;
13261
          return lastComparison;
-
 
13262
        }
12361
      }
13263
      }
12362
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(isSetHse());
13264
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
12363
      if (lastComparison != 0) {
13265
      if (lastComparison != 0) {
12364
        return lastComparison;
13266
        return lastComparison;
12365
      }
13267
      }
-
 
13268
      if (isSetHse()) {
12366
      lastComparison = TBaseHelper.compareTo(hse, typedOther.hse);
13269
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
12367
      if (lastComparison != 0) {
13270
        if (lastComparison != 0) {
12368
        return lastComparison;
13271
          return lastComparison;
-
 
13272
        }
12369
      }
13273
      }
12370
      return 0;
13274
      return 0;
12371
    }
13275
    }
12372
 
13276
 
-
 
13277
    public _Fields fieldForId(int fieldId) {
-
 
13278
      return _Fields.findByThriftId(fieldId);
-
 
13279
    }
-
 
13280
 
12373
    public void read(TProtocol iprot) throws TException {
13281
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12374
      TField field;
13282
      org.apache.thrift.protocol.TField field;
12375
      iprot.readStructBegin();
13283
      iprot.readStructBegin();
12376
      while (true)
13284
      while (true)
12377
      {
13285
      {
12378
        field = iprot.readFieldBegin();
13286
        field = iprot.readFieldBegin();
12379
        if (field.type == TType.STOP) { 
13287
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12380
          break;
13288
          break;
12381
        }
13289
        }
12382
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
12383
        if (fieldId == null) {
-
 
12384
          TProtocolUtil.skip(iprot, field.type);
-
 
12385
        } else {
-
 
12386
          switch (fieldId) {
13290
        switch (field.id) {
12387
            case SUCCESS:
13291
          case 0: // SUCCESS
12388
              if (field.type == TType.STRUCT) {
13292
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12389
                this.success = new ReportUser();
13293
              this.success = new ReportUser();
12390
                this.success.read(iprot);
13294
              this.success.read(iprot);
12391
              } else { 
13295
            } else { 
12392
                TProtocolUtil.skip(iprot, field.type);
13296
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12393
              }
13297
            }
12394
              break;
13298
            break;
12395
            case HSE:
13299
          case 1: // HSE
12396
              if (field.type == TType.STRUCT) {
13300
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
12397
                this.hse = new HelperServiceException();
13301
              this.hse = new HelperServiceException();
12398
                this.hse.read(iprot);
13302
              this.hse.read(iprot);
12399
              } else { 
13303
            } else { 
12400
                TProtocolUtil.skip(iprot, field.type);
13304
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12401
              }
13305
            }
12402
              break;
13306
            break;
12403
          }
13307
          default:
12404
          iprot.readFieldEnd();
13308
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12405
        }
13309
        }
-
 
13310
        iprot.readFieldEnd();
12406
      }
13311
      }
12407
      iprot.readStructEnd();
13312
      iprot.readStructEnd();
12408
      validate();
13313
      validate();
12409
    }
13314
    }
12410
 
13315
 
12411
    public void write(TProtocol oprot) throws TException {
13316
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12412
      oprot.writeStructBegin(STRUCT_DESC);
13317
      oprot.writeStructBegin(STRUCT_DESC);
12413
 
13318
 
12414
      if (this.isSetSuccess()) {
13319
      if (this.isSetSuccess()) {
12415
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13320
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12416
        this.success.write(oprot);
13321
        this.success.write(oprot);
Line 12446... Line 13351...
12446
      first = false;
13351
      first = false;
12447
      sb.append(")");
13352
      sb.append(")");
12448
      return sb.toString();
13353
      return sb.toString();
12449
    }
13354
    }
12450
 
13355
 
12451
    public void validate() throws TException {
13356
    public void validate() throws org.apache.thrift.TException {
12452
      // check for required fields
13357
      // check for required fields
12453
    }
13358
    }
12454
 
13359
 
-
 
13360
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13361
      try {
-
 
13362
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13363
      } catch (org.apache.thrift.TException te) {
-
 
13364
        throw new java.io.IOException(te);
-
 
13365
      }
-
 
13366
    }
-
 
13367
 
-
 
13368
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13369
      try {
-
 
13370
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13371
      } catch (org.apache.thrift.TException te) {
-
 
13372
        throw new java.io.IOException(te);
-
 
13373
      }
-
 
13374
    }
-
 
13375
 
12455
  }
13376
  }
12456
 
13377
 
12457
  public static class getReports_args implements TBase<getReports_args._Fields>, java.io.Serializable, Cloneable, Comparable<getReports_args>   {
13378
  public static class getReports_args implements org.apache.thrift.TBase<getReports_args, getReports_args._Fields>, java.io.Serializable, Cloneable   {
12458
    private static final TStruct STRUCT_DESC = new TStruct("getReports_args");
13379
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_args");
12459
 
13380
 
12460
    private static final TField ROLE_FIELD_DESC = new TField("role", TType.I64, (short)1);
13381
    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);
12461
 
13382
 
12462
    private long role;
13383
    private long role; // required
12463
 
13384
 
12464
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12465
    public enum _Fields implements TFieldIdEnum {
13386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12466
      ROLE((short)1, "role");
13387
      ROLE((short)1, "role");
12467
 
13388
 
12468
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
12469
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13389
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12470
 
13390
 
12471
      static {
13391
      static {
12472
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13392
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12473
          byId.put((int)field._thriftId, field);
-
 
12474
          byName.put(field.getFieldName(), field);
13393
          byName.put(field.getFieldName(), field);
12475
        }
13394
        }
12476
      }
13395
      }
12477
 
13396
 
12478
      /**
13397
      /**
12479
       * Find the _Fields constant that matches fieldId, or null if its not found.
13398
       * Find the _Fields constant that matches fieldId, or null if its not found.
12480
       */
13399
       */
12481
      public static _Fields findByThriftId(int fieldId) {
13400
      public static _Fields findByThriftId(int fieldId) {
12482
        return byId.get(fieldId);
13401
        switch(fieldId) {
-
 
13402
          case 1: // ROLE
-
 
13403
            return ROLE;
-
 
13404
          default:
-
 
13405
            return null;
-
 
13406
        }
12483
      }
13407
      }
12484
 
13408
 
12485
      /**
13409
      /**
12486
       * Find the _Fields constant that matches fieldId, throwing an exception
13410
       * Find the _Fields constant that matches fieldId, throwing an exception
12487
       * if it is not found.
13411
       * if it is not found.
Line 12518... Line 13442...
12518
 
13442
 
12519
    // isset id assignments
13443
    // isset id assignments
12520
    private static final int __ROLE_ISSET_ID = 0;
13444
    private static final int __ROLE_ISSET_ID = 0;
12521
    private BitSet __isset_bit_vector = new BitSet(1);
13445
    private BitSet __isset_bit_vector = new BitSet(1);
12522
 
13446
 
12523
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
13447
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12524
      put(_Fields.ROLE, new FieldMetaData("role", TFieldRequirementType.DEFAULT, 
-
 
12525
          new FieldValueMetaData(TType.I64)));
-
 
12526
    }});
-
 
12527
 
-
 
12528
    static {
13448
    static {
-
 
13449
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13450
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13451
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
13452
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12529
      FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
13453
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_args.class, metaDataMap);
12530
    }
13454
    }
12531
 
13455
 
12532
    public getReports_args() {
13456
    public getReports_args() {
12533
    }
13457
    }
12534
 
13458
 
Line 12551... Line 13475...
12551
 
13475
 
12552
    public getReports_args deepCopy() {
13476
    public getReports_args deepCopy() {
12553
      return new getReports_args(this);
13477
      return new getReports_args(this);
12554
    }
13478
    }
12555
 
13479
 
12556
    @Deprecated
13480
    @Override
12557
    public getReports_args clone() {
13481
    public void clear() {
12558
      return new getReports_args(this);
13482
      setRoleIsSet(false);
-
 
13483
      this.role = 0;
12559
    }
13484
    }
12560
 
13485
 
12561
    public long getRole() {
13486
    public long getRole() {
12562
      return this.role;
13487
      return this.role;
12563
    }
13488
    }
12564
 
13489
 
12565
    public getReports_args setRole(long role) {
13490
    public void setRole(long role) {
12566
      this.role = role;
13491
      this.role = role;
12567
      setRoleIsSet(true);
13492
      setRoleIsSet(true);
12568
      return this;
-
 
12569
    }
13493
    }
12570
 
13494
 
12571
    public void unsetRole() {
13495
    public void unsetRole() {
12572
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
13496
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
12573
    }
13497
    }
12574
 
13498
 
12575
    /** Returns true if field role is set (has been asigned a value) and false otherwise */
13499
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
12576
    public boolean isSetRole() {
13500
    public boolean isSetRole() {
12577
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
13501
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
12578
    }
13502
    }
12579
 
13503
 
12580
    public void setRoleIsSet(boolean value) {
13504
    public void setRoleIsSet(boolean value) {
Line 12592... Line 13516...
12592
        break;
13516
        break;
12593
 
13517
 
12594
      }
13518
      }
12595
    }
13519
    }
12596
 
13520
 
12597
    public void setFieldValue(int fieldID, Object value) {
-
 
12598
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
12599
    }
-
 
12600
 
-
 
12601
    public Object getFieldValue(_Fields field) {
13521
    public Object getFieldValue(_Fields field) {
12602
      switch (field) {
13522
      switch (field) {
12603
      case ROLE:
13523
      case ROLE:
12604
        return new Long(getRole());
13524
        return Long.valueOf(getRole());
12605
 
13525
 
12606
      }
13526
      }
12607
      throw new IllegalStateException();
13527
      throw new IllegalStateException();
12608
    }
13528
    }
12609
 
13529
 
12610
    public Object getFieldValue(int fieldId) {
-
 
12611
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
12612
    }
-
 
12613
 
-
 
12614
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
13530
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12615
    public boolean isSet(_Fields field) {
13531
    public boolean isSet(_Fields field) {
-
 
13532
      if (field == null) {
-
 
13533
        throw new IllegalArgumentException();
-
 
13534
      }
-
 
13535
 
12616
      switch (field) {
13536
      switch (field) {
12617
      case ROLE:
13537
      case ROLE:
12618
        return isSetRole();
13538
        return isSetRole();
12619
      }
13539
      }
12620
      throw new IllegalStateException();
13540
      throw new IllegalStateException();
12621
    }
13541
    }
12622
 
13542
 
12623
    public boolean isSet(int fieldID) {
-
 
12624
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
12625
    }
-
 
12626
 
-
 
12627
    @Override
13543
    @Override
12628
    public boolean equals(Object that) {
13544
    public boolean equals(Object that) {
12629
      if (that == null)
13545
      if (that == null)
12630
        return false;
13546
        return false;
12631
      if (that instanceof getReports_args)
13547
      if (that instanceof getReports_args)
Line 12660... Line 13576...
12660
      }
13576
      }
12661
 
13577
 
12662
      int lastComparison = 0;
13578
      int lastComparison = 0;
12663
      getReports_args typedOther = (getReports_args)other;
13579
      getReports_args typedOther = (getReports_args)other;
12664
 
13580
 
12665
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(isSetRole());
13581
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
12666
      if (lastComparison != 0) {
13582
      if (lastComparison != 0) {
12667
        return lastComparison;
13583
        return lastComparison;
12668
      }
13584
      }
-
 
13585
      if (isSetRole()) {
12669
      lastComparison = TBaseHelper.compareTo(role, typedOther.role);
13586
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
12670
      if (lastComparison != 0) {
13587
        if (lastComparison != 0) {
12671
        return lastComparison;
13588
          return lastComparison;
-
 
13589
        }
12672
      }
13590
      }
12673
      return 0;
13591
      return 0;
12674
    }
13592
    }
12675
 
13593
 
-
 
13594
    public _Fields fieldForId(int fieldId) {
-
 
13595
      return _Fields.findByThriftId(fieldId);
-
 
13596
    }
-
 
13597
 
12676
    public void read(TProtocol iprot) throws TException {
13598
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12677
      TField field;
13599
      org.apache.thrift.protocol.TField field;
12678
      iprot.readStructBegin();
13600
      iprot.readStructBegin();
12679
      while (true)
13601
      while (true)
12680
      {
13602
      {
12681
        field = iprot.readFieldBegin();
13603
        field = iprot.readFieldBegin();
12682
        if (field.type == TType.STOP) { 
13604
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12683
          break;
13605
          break;
12684
        }
13606
        }
12685
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
12686
        if (fieldId == null) {
-
 
12687
          TProtocolUtil.skip(iprot, field.type);
-
 
12688
        } else {
-
 
12689
          switch (fieldId) {
13607
        switch (field.id) {
12690
            case ROLE:
13608
          case 1: // ROLE
12691
              if (field.type == TType.I64) {
13609
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12692
                this.role = iprot.readI64();
13610
              this.role = iprot.readI64();
12693
                setRoleIsSet(true);
13611
              setRoleIsSet(true);
12694
              } else { 
13612
            } else { 
12695
                TProtocolUtil.skip(iprot, field.type);
13613
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12696
              }
13614
            }
12697
              break;
13615
            break;
12698
          }
13616
          default:
12699
          iprot.readFieldEnd();
13617
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12700
        }
13618
        }
-
 
13619
        iprot.readFieldEnd();
12701
      }
13620
      }
12702
      iprot.readStructEnd();
13621
      iprot.readStructEnd();
12703
      validate();
13622
      validate();
12704
    }
13623
    }
12705
 
13624
 
12706
    public void write(TProtocol oprot) throws TException {
13625
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12707
      validate();
13626
      validate();
12708
 
13627
 
12709
      oprot.writeStructBegin(STRUCT_DESC);
13628
      oprot.writeStructBegin(STRUCT_DESC);
12710
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
13629
      oprot.writeFieldBegin(ROLE_FIELD_DESC);
12711
      oprot.writeI64(this.role);
13630
      oprot.writeI64(this.role);
Line 12724... Line 13643...
12724
      first = false;
13643
      first = false;
12725
      sb.append(")");
13644
      sb.append(")");
12726
      return sb.toString();
13645
      return sb.toString();
12727
    }
13646
    }
12728
 
13647
 
12729
    public void validate() throws TException {
13648
    public void validate() throws org.apache.thrift.TException {
12730
      // check for required fields
13649
      // check for required fields
12731
    }
13650
    }
12732
 
13651
 
-
 
13652
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13653
      try {
-
 
13654
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13655
      } catch (org.apache.thrift.TException te) {
-
 
13656
        throw new java.io.IOException(te);
-
 
13657
      }
-
 
13658
    }
-
 
13659
 
-
 
13660
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13661
      try {
-
 
13662
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
13663
        __isset_bit_vector = new BitSet(1);
-
 
13664
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13665
      } catch (org.apache.thrift.TException te) {
-
 
13666
        throw new java.io.IOException(te);
-
 
13667
      }
-
 
13668
    }
-
 
13669
 
12733
  }
13670
  }
12734
 
13671
 
12735
  public static class getReports_result implements TBase<getReports_result._Fields>, java.io.Serializable, Cloneable, Comparable<getReports_result>   {
13672
  public static class getReports_result implements org.apache.thrift.TBase<getReports_result, getReports_result._Fields>, java.io.Serializable, Cloneable   {
12736
    private static final TStruct STRUCT_DESC = new TStruct("getReports_result");
13673
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getReports_result");
12737
 
13674
 
12738
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
13675
    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);
12739
 
13676
 
12740
    private List<Report> success;
13677
    private List<Report> success; // required
12741
 
13678
 
12742
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13679
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12743
    public enum _Fields implements TFieldIdEnum {
13680
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12744
      SUCCESS((short)0, "success");
13681
      SUCCESS((short)0, "success");
12745
 
13682
 
12746
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
12747
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13683
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12748
 
13684
 
12749
      static {
13685
      static {
12750
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13686
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12751
          byId.put((int)field._thriftId, field);
-
 
12752
          byName.put(field.getFieldName(), field);
13687
          byName.put(field.getFieldName(), field);
12753
        }
13688
        }
12754
      }
13689
      }
12755
 
13690
 
12756
      /**
13691
      /**
12757
       * Find the _Fields constant that matches fieldId, or null if its not found.
13692
       * Find the _Fields constant that matches fieldId, or null if its not found.
12758
       */
13693
       */
12759
      public static _Fields findByThriftId(int fieldId) {
13694
      public static _Fields findByThriftId(int fieldId) {
12760
        return byId.get(fieldId);
13695
        switch(fieldId) {
-
 
13696
          case 0: // SUCCESS
-
 
13697
            return SUCCESS;
-
 
13698
          default:
-
 
13699
            return null;
-
 
13700
        }
12761
      }
13701
      }
12762
 
13702
 
12763
      /**
13703
      /**
12764
       * Find the _Fields constant that matches fieldId, throwing an exception
13704
       * Find the _Fields constant that matches fieldId, throwing an exception
12765
       * if it is not found.
13705
       * if it is not found.
Line 12794... Line 13734...
12794
      }
13734
      }
12795
    }
13735
    }
12796
 
13736
 
12797
    // isset id assignments
13737
    // isset id assignments
12798
 
13738
 
12799
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
13739
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12800
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
12801
          new ListMetaData(TType.LIST, 
-
 
12802
              new StructMetaData(TType.STRUCT, Report.class))));
-
 
12803
    }});
-
 
12804
 
-
 
12805
    static {
13740
    static {
-
 
13741
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
13742
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
13743
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
13744
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Report.class))));
-
 
13745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12806
      FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
13746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getReports_result.class, metaDataMap);
12807
    }
13747
    }
12808
 
13748
 
12809
    public getReports_result() {
13749
    public getReports_result() {
12810
    }
13750
    }
12811
 
13751
 
Line 12831... Line 13771...
12831
 
13771
 
12832
    public getReports_result deepCopy() {
13772
    public getReports_result deepCopy() {
12833
      return new getReports_result(this);
13773
      return new getReports_result(this);
12834
    }
13774
    }
12835
 
13775
 
12836
    @Deprecated
13776
    @Override
12837
    public getReports_result clone() {
13777
    public void clear() {
12838
      return new getReports_result(this);
13778
      this.success = null;
12839
    }
13779
    }
12840
 
13780
 
12841
    public int getSuccessSize() {
13781
    public int getSuccessSize() {
12842
      return (this.success == null) ? 0 : this.success.size();
13782
      return (this.success == null) ? 0 : this.success.size();
12843
    }
13783
    }
Line 12855... Line 13795...
12855
 
13795
 
12856
    public List<Report> getSuccess() {
13796
    public List<Report> getSuccess() {
12857
      return this.success;
13797
      return this.success;
12858
    }
13798
    }
12859
 
13799
 
12860
    public getReports_result setSuccess(List<Report> success) {
13800
    public void setSuccess(List<Report> success) {
12861
      this.success = success;
13801
      this.success = success;
12862
      return this;
-
 
12863
    }
13802
    }
12864
 
13803
 
12865
    public void unsetSuccess() {
13804
    public void unsetSuccess() {
12866
      this.success = null;
13805
      this.success = null;
12867
    }
13806
    }
12868
 
13807
 
12869
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
13808
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12870
    public boolean isSetSuccess() {
13809
    public boolean isSetSuccess() {
12871
      return this.success != null;
13810
      return this.success != null;
12872
    }
13811
    }
12873
 
13812
 
12874
    public void setSuccessIsSet(boolean value) {
13813
    public void setSuccessIsSet(boolean value) {
Line 12888... Line 13827...
12888
        break;
13827
        break;
12889
 
13828
 
12890
      }
13829
      }
12891
    }
13830
    }
12892
 
13831
 
12893
    public void setFieldValue(int fieldID, Object value) {
-
 
12894
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
12895
    }
-
 
12896
 
-
 
12897
    public Object getFieldValue(_Fields field) {
13832
    public Object getFieldValue(_Fields field) {
12898
      switch (field) {
13833
      switch (field) {
12899
      case SUCCESS:
13834
      case SUCCESS:
12900
        return getSuccess();
13835
        return getSuccess();
12901
 
13836
 
12902
      }
13837
      }
12903
      throw new IllegalStateException();
13838
      throw new IllegalStateException();
12904
    }
13839
    }
12905
 
13840
 
12906
    public Object getFieldValue(int fieldId) {
-
 
12907
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
12908
    }
-
 
12909
 
-
 
12910
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
13841
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12911
    public boolean isSet(_Fields field) {
13842
    public boolean isSet(_Fields field) {
-
 
13843
      if (field == null) {
-
 
13844
        throw new IllegalArgumentException();
-
 
13845
      }
-
 
13846
 
12912
      switch (field) {
13847
      switch (field) {
12913
      case SUCCESS:
13848
      case SUCCESS:
12914
        return isSetSuccess();
13849
        return isSetSuccess();
12915
      }
13850
      }
12916
      throw new IllegalStateException();
13851
      throw new IllegalStateException();
12917
    }
13852
    }
12918
 
13853
 
12919
    public boolean isSet(int fieldID) {
-
 
12920
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
12921
    }
-
 
12922
 
-
 
12923
    @Override
13854
    @Override
12924
    public boolean equals(Object that) {
13855
    public boolean equals(Object that) {
12925
      if (that == null)
13856
      if (that == null)
12926
        return false;
13857
        return false;
12927
      if (that instanceof getReports_result)
13858
      if (that instanceof getReports_result)
Line 12956... Line 13887...
12956
      }
13887
      }
12957
 
13888
 
12958
      int lastComparison = 0;
13889
      int lastComparison = 0;
12959
      getReports_result typedOther = (getReports_result)other;
13890
      getReports_result typedOther = (getReports_result)other;
12960
 
13891
 
12961
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
13892
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12962
      if (lastComparison != 0) {
13893
      if (lastComparison != 0) {
12963
        return lastComparison;
13894
        return lastComparison;
12964
      }
13895
      }
-
 
13896
      if (isSetSuccess()) {
12965
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
13897
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12966
      if (lastComparison != 0) {
13898
        if (lastComparison != 0) {
12967
        return lastComparison;
13899
          return lastComparison;
-
 
13900
        }
12968
      }
13901
      }
12969
      return 0;
13902
      return 0;
12970
    }
13903
    }
12971
 
13904
 
-
 
13905
    public _Fields fieldForId(int fieldId) {
-
 
13906
      return _Fields.findByThriftId(fieldId);
-
 
13907
    }
-
 
13908
 
12972
    public void read(TProtocol iprot) throws TException {
13909
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12973
      TField field;
13910
      org.apache.thrift.protocol.TField field;
12974
      iprot.readStructBegin();
13911
      iprot.readStructBegin();
12975
      while (true)
13912
      while (true)
12976
      {
13913
      {
12977
        field = iprot.readFieldBegin();
13914
        field = iprot.readFieldBegin();
12978
        if (field.type == TType.STOP) { 
13915
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12979
          break;
13916
          break;
12980
        }
13917
        }
12981
        _Fields fieldId = _Fields.findByThriftId(field.id);
13918
        switch (field.id) {
12982
        if (fieldId == null) {
13919
          case 0: // SUCCESS
12983
          TProtocolUtil.skip(iprot, field.type);
13920
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
12984
        } else {
13921
              {
12985
          switch (fieldId) {
13922
                org.apache.thrift.protocol.TList _list17 = iprot.readListBegin();
12986
            case SUCCESS:
13923
                this.success = new ArrayList<Report>(_list17.size);
12987
              if (field.type == TType.LIST) {
13924
                for (int _i18 = 0; _i18 < _list17.size; ++_i18)
12988
                {
13925
                {
12989
                  TList _list17 = iprot.readListBegin();
-
 
12990
                  this.success = new ArrayList<Report>(_list17.size);
-
 
12991
                  for (int _i18 = 0; _i18 < _list17.size; ++_i18)
-
 
12992
                  {
-
 
12993
                    Report _elem19;
13926
                  Report _elem19; // required
12994
                    _elem19 = new Report();
13927
                  _elem19 = new Report();
12995
                    _elem19.read(iprot);
13928
                  _elem19.read(iprot);
12996
                    this.success.add(_elem19);
13929
                  this.success.add(_elem19);
12997
                  }
-
 
12998
                  iprot.readListEnd();
-
 
12999
                }
13930
                }
13000
              } else { 
13931
                iprot.readListEnd();
13001
                TProtocolUtil.skip(iprot, field.type);
-
 
13002
              }
13932
              }
13003
              break;
13933
            } else { 
-
 
13934
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13004
          }
13935
            }
13005
          iprot.readFieldEnd();
13936
            break;
-
 
13937
          default:
-
 
13938
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13006
        }
13939
        }
-
 
13940
        iprot.readFieldEnd();
13007
      }
13941
      }
13008
      iprot.readStructEnd();
13942
      iprot.readStructEnd();
13009
      validate();
13943
      validate();
13010
    }
13944
    }
13011
 
13945
 
13012
    public void write(TProtocol oprot) throws TException {
13946
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13013
      oprot.writeStructBegin(STRUCT_DESC);
13947
      oprot.writeStructBegin(STRUCT_DESC);
13014
 
13948
 
13015
      if (this.isSetSuccess()) {
13949
      if (this.isSetSuccess()) {
13016
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13950
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13017
        {
13951
        {
13018
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
13952
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
13019
          for (Report _iter20 : this.success)
13953
          for (Report _iter20 : this.success)
13020
          {
13954
          {
13021
            _iter20.write(oprot);
13955
            _iter20.write(oprot);
13022
          }
13956
          }
13023
          oprot.writeListEnd();
13957
          oprot.writeListEnd();
Line 13042... Line 13976...
13042
      first = false;
13976
      first = false;
13043
      sb.append(")");
13977
      sb.append(")");
13044
      return sb.toString();
13978
      return sb.toString();
13045
    }
13979
    }
13046
 
13980
 
13047
    public void validate() throws TException {
13981
    public void validate() throws org.apache.thrift.TException {
13048
      // check for required fields
13982
      // check for required fields
13049
    }
13983
    }
13050
 
13984
 
-
 
13985
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
13986
      try {
-
 
13987
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
13988
      } catch (org.apache.thrift.TException te) {
-
 
13989
        throw new java.io.IOException(te);
-
 
13990
      }
-
 
13991
    }
-
 
13992
 
-
 
13993
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
13994
      try {
-
 
13995
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
13996
      } catch (org.apache.thrift.TException te) {
-
 
13997
        throw new java.io.IOException(te);
-
 
13998
      }
-
 
13999
    }
-
 
14000
 
13051
  }
14001
  }
13052
 
14002
 
13053
  public static class authenticateCatalogUser_args implements TBase<authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateCatalogUser_args>   {
14003
  public static class authenticateCatalogUser_args implements org.apache.thrift.TBase<authenticateCatalogUser_args, authenticateCatalogUser_args._Fields>, java.io.Serializable, Cloneable   {
13054
    private static final TStruct STRUCT_DESC = new TStruct("authenticateCatalogUser_args");
14004
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_args");
13055
 
14005
 
13056
    private static final TField USERNAME_FIELD_DESC = new TField("username", TType.STRING, (short)1);
14006
    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);
13057
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
14007
    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);
13058
    private static final TField ROLE_FIELD_DESC = new TField("role", TType.I64, (short)3);
14008
    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)3);
13059
 
14009
 
13060
    private String username;
14010
    private String username; // required
13061
    private String password;
14011
    private String password; // required
13062
    private long role;
14012
    private long role; // required
13063
 
14013
 
13064
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14014
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13065
    public enum _Fields implements TFieldIdEnum {
14015
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13066
      USERNAME((short)1, "username"),
14016
      USERNAME((short)1, "username"),
13067
      PASSWORD((short)2, "password"),
14017
      PASSWORD((short)2, "password"),
13068
      ROLE((short)3, "role");
14018
      ROLE((short)3, "role");
13069
 
14019
 
13070
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
13071
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14020
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13072
 
14021
 
13073
      static {
14022
      static {
13074
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14023
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13075
          byId.put((int)field._thriftId, field);
-
 
13076
          byName.put(field.getFieldName(), field);
14024
          byName.put(field.getFieldName(), field);
13077
        }
14025
        }
13078
      }
14026
      }
13079
 
14027
 
13080
      /**
14028
      /**
13081
       * Find the _Fields constant that matches fieldId, or null if its not found.
14029
       * Find the _Fields constant that matches fieldId, or null if its not found.
13082
       */
14030
       */
13083
      public static _Fields findByThriftId(int fieldId) {
14031
      public static _Fields findByThriftId(int fieldId) {
13084
        return byId.get(fieldId);
14032
        switch(fieldId) {
-
 
14033
          case 1: // USERNAME
-
 
14034
            return USERNAME;
-
 
14035
          case 2: // PASSWORD
-
 
14036
            return PASSWORD;
-
 
14037
          case 3: // ROLE
-
 
14038
            return ROLE;
-
 
14039
          default:
-
 
14040
            return null;
-
 
14041
        }
13085
      }
14042
      }
13086
 
14043
 
13087
      /**
14044
      /**
13088
       * Find the _Fields constant that matches fieldId, throwing an exception
14045
       * Find the _Fields constant that matches fieldId, throwing an exception
13089
       * if it is not found.
14046
       * if it is not found.
Line 13120... Line 14077...
13120
 
14077
 
13121
    // isset id assignments
14078
    // isset id assignments
13122
    private static final int __ROLE_ISSET_ID = 0;
14079
    private static final int __ROLE_ISSET_ID = 0;
13123
    private BitSet __isset_bit_vector = new BitSet(1);
14080
    private BitSet __isset_bit_vector = new BitSet(1);
13124
 
14081
 
13125
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
14082
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13126
      put(_Fields.USERNAME, new FieldMetaData("username", TFieldRequirementType.DEFAULT, 
-
 
13127
          new FieldValueMetaData(TType.STRING)));
-
 
13128
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
13129
          new FieldValueMetaData(TType.STRING)));
-
 
13130
      put(_Fields.ROLE, new FieldMetaData("role", TFieldRequirementType.DEFAULT, 
-
 
13131
          new FieldValueMetaData(TType.I64)));
-
 
13132
    }});
-
 
13133
 
-
 
13134
    static {
14083
    static {
-
 
14084
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
14085
      tmpMap.put(_Fields.USERNAME, new org.apache.thrift.meta_data.FieldMetaData("username", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14086
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
14087
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14088
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
14089
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14090
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
14091
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13135
      FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
14092
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_args.class, metaDataMap);
13136
    }
14093
    }
13137
 
14094
 
13138
    public authenticateCatalogUser_args() {
14095
    public authenticateCatalogUser_args() {
13139
    }
14096
    }
13140
 
14097
 
Line 13167... Line 14124...
13167
 
14124
 
13168
    public authenticateCatalogUser_args deepCopy() {
14125
    public authenticateCatalogUser_args deepCopy() {
13169
      return new authenticateCatalogUser_args(this);
14126
      return new authenticateCatalogUser_args(this);
13170
    }
14127
    }
13171
 
14128
 
13172
    @Deprecated
14129
    @Override
13173
    public authenticateCatalogUser_args clone() {
14130
    public void clear() {
-
 
14131
      this.username = null;
-
 
14132
      this.password = null;
13174
      return new authenticateCatalogUser_args(this);
14133
      setRoleIsSet(false);
-
 
14134
      this.role = 0;
13175
    }
14135
    }
13176
 
14136
 
13177
    public String getUsername() {
14137
    public String getUsername() {
13178
      return this.username;
14138
      return this.username;
13179
    }
14139
    }
13180
 
14140
 
13181
    public authenticateCatalogUser_args setUsername(String username) {
14141
    public void setUsername(String username) {
13182
      this.username = username;
14142
      this.username = username;
13183
      return this;
-
 
13184
    }
14143
    }
13185
 
14144
 
13186
    public void unsetUsername() {
14145
    public void unsetUsername() {
13187
      this.username = null;
14146
      this.username = null;
13188
    }
14147
    }
13189
 
14148
 
13190
    /** Returns true if field username is set (has been asigned a value) and false otherwise */
14149
    /** Returns true if field username is set (has been assigned a value) and false otherwise */
13191
    public boolean isSetUsername() {
14150
    public boolean isSetUsername() {
13192
      return this.username != null;
14151
      return this.username != null;
13193
    }
14152
    }
13194
 
14153
 
13195
    public void setUsernameIsSet(boolean value) {
14154
    public void setUsernameIsSet(boolean value) {
Line 13200... Line 14159...
13200
 
14159
 
13201
    public String getPassword() {
14160
    public String getPassword() {
13202
      return this.password;
14161
      return this.password;
13203
    }
14162
    }
13204
 
14163
 
13205
    public authenticateCatalogUser_args setPassword(String password) {
14164
    public void setPassword(String password) {
13206
      this.password = password;
14165
      this.password = password;
13207
      return this;
-
 
13208
    }
14166
    }
13209
 
14167
 
13210
    public void unsetPassword() {
14168
    public void unsetPassword() {
13211
      this.password = null;
14169
      this.password = null;
13212
    }
14170
    }
13213
 
14171
 
13214
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
14172
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
13215
    public boolean isSetPassword() {
14173
    public boolean isSetPassword() {
13216
      return this.password != null;
14174
      return this.password != null;
13217
    }
14175
    }
13218
 
14176
 
13219
    public void setPasswordIsSet(boolean value) {
14177
    public void setPasswordIsSet(boolean value) {
Line 13224... Line 14182...
13224
 
14182
 
13225
    public long getRole() {
14183
    public long getRole() {
13226
      return this.role;
14184
      return this.role;
13227
    }
14185
    }
13228
 
14186
 
13229
    public authenticateCatalogUser_args setRole(long role) {
14187
    public void setRole(long role) {
13230
      this.role = role;
14188
      this.role = role;
13231
      setRoleIsSet(true);
14189
      setRoleIsSet(true);
13232
      return this;
-
 
13233
    }
14190
    }
13234
 
14191
 
13235
    public void unsetRole() {
14192
    public void unsetRole() {
13236
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
14193
      __isset_bit_vector.clear(__ROLE_ISSET_ID);
13237
    }
14194
    }
13238
 
14195
 
13239
    /** Returns true if field role is set (has been asigned a value) and false otherwise */
14196
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
13240
    public boolean isSetRole() {
14197
    public boolean isSetRole() {
13241
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
14198
      return __isset_bit_vector.get(__ROLE_ISSET_ID);
13242
    }
14199
    }
13243
 
14200
 
13244
    public void setRoleIsSet(boolean value) {
14201
    public void setRoleIsSet(boolean value) {
Line 13272... Line 14229...
13272
        break;
14229
        break;
13273
 
14230
 
13274
      }
14231
      }
13275
    }
14232
    }
13276
 
14233
 
13277
    public void setFieldValue(int fieldID, Object value) {
-
 
13278
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
13279
    }
-
 
13280
 
-
 
13281
    public Object getFieldValue(_Fields field) {
14234
    public Object getFieldValue(_Fields field) {
13282
      switch (field) {
14235
      switch (field) {
13283
      case USERNAME:
14236
      case USERNAME:
13284
        return getUsername();
14237
        return getUsername();
13285
 
14238
 
13286
      case PASSWORD:
14239
      case PASSWORD:
13287
        return getPassword();
14240
        return getPassword();
13288
 
14241
 
13289
      case ROLE:
14242
      case ROLE:
13290
        return new Long(getRole());
14243
        return Long.valueOf(getRole());
13291
 
14244
 
13292
      }
14245
      }
13293
      throw new IllegalStateException();
14246
      throw new IllegalStateException();
13294
    }
14247
    }
13295
 
14248
 
13296
    public Object getFieldValue(int fieldId) {
-
 
13297
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
13298
    }
-
 
13299
 
-
 
13300
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
14249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13301
    public boolean isSet(_Fields field) {
14250
    public boolean isSet(_Fields field) {
-
 
14251
      if (field == null) {
-
 
14252
        throw new IllegalArgumentException();
-
 
14253
      }
-
 
14254
 
13302
      switch (field) {
14255
      switch (field) {
13303
      case USERNAME:
14256
      case USERNAME:
13304
        return isSetUsername();
14257
        return isSetUsername();
13305
      case PASSWORD:
14258
      case PASSWORD:
13306
        return isSetPassword();
14259
        return isSetPassword();
Line 13308... Line 14261...
13308
        return isSetRole();
14261
        return isSetRole();
13309
      }
14262
      }
13310
      throw new IllegalStateException();
14263
      throw new IllegalStateException();
13311
    }
14264
    }
13312
 
14265
 
13313
    public boolean isSet(int fieldID) {
-
 
13314
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
13315
    }
-
 
13316
 
-
 
13317
    @Override
14266
    @Override
13318
    public boolean equals(Object that) {
14267
    public boolean equals(Object that) {
13319
      if (that == null)
14268
      if (that == null)
13320
        return false;
14269
        return false;
13321
      if (that instanceof authenticateCatalogUser_args)
14270
      if (that instanceof authenticateCatalogUser_args)
Line 13368... Line 14317...
13368
      }
14317
      }
13369
 
14318
 
13370
      int lastComparison = 0;
14319
      int lastComparison = 0;
13371
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
14320
      authenticateCatalogUser_args typedOther = (authenticateCatalogUser_args)other;
13372
 
14321
 
13373
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(isSetUsername());
14322
      lastComparison = Boolean.valueOf(isSetUsername()).compareTo(typedOther.isSetUsername());
13374
      if (lastComparison != 0) {
14323
      if (lastComparison != 0) {
13375
        return lastComparison;
14324
        return lastComparison;
13376
      }
14325
      }
-
 
14326
      if (isSetUsername()) {
13377
      lastComparison = TBaseHelper.compareTo(username, typedOther.username);
14327
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.username, typedOther.username);
13378
      if (lastComparison != 0) {
14328
        if (lastComparison != 0) {
13379
        return lastComparison;
14329
          return lastComparison;
-
 
14330
        }
13380
      }
14331
      }
13381
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
14332
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
13382
      if (lastComparison != 0) {
14333
      if (lastComparison != 0) {
13383
        return lastComparison;
14334
        return lastComparison;
13384
      }
14335
      }
-
 
14336
      if (isSetPassword()) {
13385
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
14337
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
13386
      if (lastComparison != 0) {
14338
        if (lastComparison != 0) {
13387
        return lastComparison;
14339
          return lastComparison;
-
 
14340
        }
13388
      }
14341
      }
13389
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(isSetRole());
14342
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
13390
      if (lastComparison != 0) {
14343
      if (lastComparison != 0) {
13391
        return lastComparison;
14344
        return lastComparison;
13392
      }
14345
      }
-
 
14346
      if (isSetRole()) {
13393
      lastComparison = TBaseHelper.compareTo(role, typedOther.role);
14347
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
13394
      if (lastComparison != 0) {
14348
        if (lastComparison != 0) {
13395
        return lastComparison;
14349
          return lastComparison;
-
 
14350
        }
13396
      }
14351
      }
13397
      return 0;
14352
      return 0;
13398
    }
14353
    }
13399
 
14354
 
-
 
14355
    public _Fields fieldForId(int fieldId) {
-
 
14356
      return _Fields.findByThriftId(fieldId);
-
 
14357
    }
-
 
14358
 
13400
    public void read(TProtocol iprot) throws TException {
14359
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13401
      TField field;
14360
      org.apache.thrift.protocol.TField field;
13402
      iprot.readStructBegin();
14361
      iprot.readStructBegin();
13403
      while (true)
14362
      while (true)
13404
      {
14363
      {
13405
        field = iprot.readFieldBegin();
14364
        field = iprot.readFieldBegin();
13406
        if (field.type == TType.STOP) { 
14365
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13407
          break;
14366
          break;
13408
        }
14367
        }
13409
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
13410
        if (fieldId == null) {
-
 
13411
          TProtocolUtil.skip(iprot, field.type);
-
 
13412
        } else {
-
 
13413
          switch (fieldId) {
14368
        switch (field.id) {
13414
            case USERNAME:
14369
          case 1: // USERNAME
13415
              if (field.type == TType.STRING) {
14370
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13416
                this.username = iprot.readString();
14371
              this.username = iprot.readString();
13417
              } else { 
14372
            } else { 
13418
                TProtocolUtil.skip(iprot, field.type);
14373
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13419
              }
14374
            }
13420
              break;
14375
            break;
13421
            case PASSWORD:
14376
          case 2: // PASSWORD
13422
              if (field.type == TType.STRING) {
14377
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13423
                this.password = iprot.readString();
14378
              this.password = iprot.readString();
13424
              } else { 
14379
            } else { 
13425
                TProtocolUtil.skip(iprot, field.type);
14380
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13426
              }
14381
            }
13427
              break;
14382
            break;
13428
            case ROLE:
14383
          case 3: // ROLE
13429
              if (field.type == TType.I64) {
14384
            if (field.type == org.apache.thrift.protocol.TType.I64) {
13430
                this.role = iprot.readI64();
14385
              this.role = iprot.readI64();
13431
                setRoleIsSet(true);
14386
              setRoleIsSet(true);
13432
              } else { 
14387
            } else { 
13433
                TProtocolUtil.skip(iprot, field.type);
14388
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13434
              }
14389
            }
13435
              break;
14390
            break;
13436
          }
14391
          default:
13437
          iprot.readFieldEnd();
14392
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13438
        }
14393
        }
-
 
14394
        iprot.readFieldEnd();
13439
      }
14395
      }
13440
      iprot.readStructEnd();
14396
      iprot.readStructEnd();
13441
      validate();
14397
      validate();
13442
    }
14398
    }
13443
 
14399
 
13444
    public void write(TProtocol oprot) throws TException {
14400
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13445
      validate();
14401
      validate();
13446
 
14402
 
13447
      oprot.writeStructBegin(STRUCT_DESC);
14403
      oprot.writeStructBegin(STRUCT_DESC);
13448
      if (this.username != null) {
14404
      if (this.username != null) {
13449
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
14405
        oprot.writeFieldBegin(USERNAME_FIELD_DESC);
Line 13488... Line 14444...
13488
      first = false;
14444
      first = false;
13489
      sb.append(")");
14445
      sb.append(")");
13490
      return sb.toString();
14446
      return sb.toString();
13491
    }
14447
    }
13492
 
14448
 
13493
    public void validate() throws TException {
14449
    public void validate() throws org.apache.thrift.TException {
13494
      // check for required fields
14450
      // check for required fields
13495
    }
14451
    }
13496
 
14452
 
-
 
14453
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14454
      try {
-
 
14455
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14456
      } catch (org.apache.thrift.TException te) {
-
 
14457
        throw new java.io.IOException(te);
-
 
14458
      }
-
 
14459
    }
-
 
14460
 
-
 
14461
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14462
      try {
-
 
14463
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14464
      } catch (org.apache.thrift.TException te) {
-
 
14465
        throw new java.io.IOException(te);
-
 
14466
      }
-
 
14467
    }
-
 
14468
 
13497
  }
14469
  }
13498
 
14470
 
13499
  public static class authenticateCatalogUser_result implements TBase<authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<authenticateCatalogUser_result>   {
14471
  public static class authenticateCatalogUser_result implements org.apache.thrift.TBase<authenticateCatalogUser_result, authenticateCatalogUser_result._Fields>, java.io.Serializable, Cloneable   {
13500
    private static final TStruct STRUCT_DESC = new TStruct("authenticateCatalogUser_result");
14472
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("authenticateCatalogUser_result");
13501
 
14473
 
13502
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
14474
    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);
13503
    private static final TField HSE_FIELD_DESC = new TField("hse", TType.STRUCT, (short)1);
14475
    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);
13504
 
14476
 
13505
    private CatalogDashboardUser success;
14477
    private CatalogDashboardUser success; // required
13506
    private HelperServiceException hse;
14478
    private HelperServiceException hse; // required
13507
 
14479
 
13508
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
14480
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13509
    public enum _Fields implements TFieldIdEnum {
14481
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13510
      SUCCESS((short)0, "success"),
14482
      SUCCESS((short)0, "success"),
13511
      HSE((short)1, "hse");
14483
      HSE((short)1, "hse");
13512
 
14484
 
13513
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
13514
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
14485
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13515
 
14486
 
13516
      static {
14487
      static {
13517
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
14488
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13518
          byId.put((int)field._thriftId, field);
-
 
13519
          byName.put(field.getFieldName(), field);
14489
          byName.put(field.getFieldName(), field);
13520
        }
14490
        }
13521
      }
14491
      }
13522
 
14492
 
13523
      /**
14493
      /**
13524
       * Find the _Fields constant that matches fieldId, or null if its not found.
14494
       * Find the _Fields constant that matches fieldId, or null if its not found.
13525
       */
14495
       */
13526
      public static _Fields findByThriftId(int fieldId) {
14496
      public static _Fields findByThriftId(int fieldId) {
13527
        return byId.get(fieldId);
14497
        switch(fieldId) {
-
 
14498
          case 0: // SUCCESS
-
 
14499
            return SUCCESS;
-
 
14500
          case 1: // HSE
-
 
14501
            return HSE;
-
 
14502
          default:
-
 
14503
            return null;
-
 
14504
        }
13528
      }
14505
      }
13529
 
14506
 
13530
      /**
14507
      /**
13531
       * Find the _Fields constant that matches fieldId, throwing an exception
14508
       * Find the _Fields constant that matches fieldId, throwing an exception
13532
       * if it is not found.
14509
       * if it is not found.
Line 13561... Line 14538...
13561
      }
14538
      }
13562
    }
14539
    }
13563
 
14540
 
13564
    // isset id assignments
14541
    // isset id assignments
13565
 
14542
 
13566
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
14543
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13567
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
13568
          new StructMetaData(TType.STRUCT, CatalogDashboardUser.class)));
-
 
13569
      put(_Fields.HSE, new FieldMetaData("hse", TFieldRequirementType.DEFAULT, 
-
 
13570
          new FieldValueMetaData(TType.STRUCT)));
-
 
13571
    }});
-
 
13572
 
-
 
13573
    static {
14544
    static {
-
 
14545
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
14546
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14547
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, CatalogDashboardUser.class)));
-
 
14548
      tmpMap.put(_Fields.HSE, new org.apache.thrift.meta_data.FieldMetaData("hse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
14549
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
14550
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13574
      FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
14551
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(authenticateCatalogUser_result.class, metaDataMap);
13575
    }
14552
    }
13576
 
14553
 
13577
    public authenticateCatalogUser_result() {
14554
    public authenticateCatalogUser_result() {
13578
    }
14555
    }
13579
 
14556
 
Line 13600... Line 14577...
13600
 
14577
 
13601
    public authenticateCatalogUser_result deepCopy() {
14578
    public authenticateCatalogUser_result deepCopy() {
13602
      return new authenticateCatalogUser_result(this);
14579
      return new authenticateCatalogUser_result(this);
13603
    }
14580
    }
13604
 
14581
 
13605
    @Deprecated
14582
    @Override
13606
    public authenticateCatalogUser_result clone() {
14583
    public void clear() {
13607
      return new authenticateCatalogUser_result(this);
14584
      this.success = null;
-
 
14585
      this.hse = null;
13608
    }
14586
    }
13609
 
14587
 
13610
    public CatalogDashboardUser getSuccess() {
14588
    public CatalogDashboardUser getSuccess() {
13611
      return this.success;
14589
      return this.success;
13612
    }
14590
    }
13613
 
14591
 
13614
    public authenticateCatalogUser_result setSuccess(CatalogDashboardUser success) {
14592
    public void setSuccess(CatalogDashboardUser success) {
13615
      this.success = success;
14593
      this.success = success;
13616
      return this;
-
 
13617
    }
14594
    }
13618
 
14595
 
13619
    public void unsetSuccess() {
14596
    public void unsetSuccess() {
13620
      this.success = null;
14597
      this.success = null;
13621
    }
14598
    }
13622
 
14599
 
13623
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
14600
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13624
    public boolean isSetSuccess() {
14601
    public boolean isSetSuccess() {
13625
      return this.success != null;
14602
      return this.success != null;
13626
    }
14603
    }
13627
 
14604
 
13628
    public void setSuccessIsSet(boolean value) {
14605
    public void setSuccessIsSet(boolean value) {
Line 13633... Line 14610...
13633
 
14610
 
13634
    public HelperServiceException getHse() {
14611
    public HelperServiceException getHse() {
13635
      return this.hse;
14612
      return this.hse;
13636
    }
14613
    }
13637
 
14614
 
13638
    public authenticateCatalogUser_result setHse(HelperServiceException hse) {
14615
    public void setHse(HelperServiceException hse) {
13639
      this.hse = hse;
14616
      this.hse = hse;
13640
      return this;
-
 
13641
    }
14617
    }
13642
 
14618
 
13643
    public void unsetHse() {
14619
    public void unsetHse() {
13644
      this.hse = null;
14620
      this.hse = null;
13645
    }
14621
    }
13646
 
14622
 
13647
    /** Returns true if field hse is set (has been asigned a value) and false otherwise */
14623
    /** Returns true if field hse is set (has been assigned a value) and false otherwise */
13648
    public boolean isSetHse() {
14624
    public boolean isSetHse() {
13649
      return this.hse != null;
14625
      return this.hse != null;
13650
    }
14626
    }
13651
 
14627
 
13652
    public void setHseIsSet(boolean value) {
14628
    public void setHseIsSet(boolean value) {
Line 13674... Line 14650...
13674
        break;
14650
        break;
13675
 
14651
 
13676
      }
14652
      }
13677
    }
14653
    }
13678
 
14654
 
13679
    public void setFieldValue(int fieldID, Object value) {
-
 
13680
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
13681
    }
-
 
13682
 
-
 
13683
    public Object getFieldValue(_Fields field) {
14655
    public Object getFieldValue(_Fields field) {
13684
      switch (field) {
14656
      switch (field) {
13685
      case SUCCESS:
14657
      case SUCCESS:
13686
        return getSuccess();
14658
        return getSuccess();
13687
 
14659
 
Line 13690... Line 14662...
13690
 
14662
 
13691
      }
14663
      }
13692
      throw new IllegalStateException();
14664
      throw new IllegalStateException();
13693
    }
14665
    }
13694
 
14666
 
13695
    public Object getFieldValue(int fieldId) {
-
 
13696
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
13697
    }
-
 
13698
 
-
 
13699
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
14667
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13700
    public boolean isSet(_Fields field) {
14668
    public boolean isSet(_Fields field) {
-
 
14669
      if (field == null) {
-
 
14670
        throw new IllegalArgumentException();
-
 
14671
      }
-
 
14672
 
13701
      switch (field) {
14673
      switch (field) {
13702
      case SUCCESS:
14674
      case SUCCESS:
13703
        return isSetSuccess();
14675
        return isSetSuccess();
13704
      case HSE:
14676
      case HSE:
13705
        return isSetHse();
14677
        return isSetHse();
13706
      }
14678
      }
13707
      throw new IllegalStateException();
14679
      throw new IllegalStateException();
13708
    }
14680
    }
13709
 
14681
 
13710
    public boolean isSet(int fieldID) {
-
 
13711
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
13712
    }
-
 
13713
 
-
 
13714
    @Override
14682
    @Override
13715
    public boolean equals(Object that) {
14683
    public boolean equals(Object that) {
13716
      if (that == null)
14684
      if (that == null)
13717
        return false;
14685
        return false;
13718
      if (that instanceof authenticateCatalogUser_result)
14686
      if (that instanceof authenticateCatalogUser_result)
Line 13756... Line 14724...
13756
      }
14724
      }
13757
 
14725
 
13758
      int lastComparison = 0;
14726
      int lastComparison = 0;
13759
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
14727
      authenticateCatalogUser_result typedOther = (authenticateCatalogUser_result)other;
13760
 
14728
 
13761
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
14729
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13762
      if (lastComparison != 0) {
14730
      if (lastComparison != 0) {
13763
        return lastComparison;
14731
        return lastComparison;
13764
      }
14732
      }
-
 
14733
      if (isSetSuccess()) {
13765
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
14734
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13766
      if (lastComparison != 0) {
14735
        if (lastComparison != 0) {
13767
        return lastComparison;
14736
          return lastComparison;
-
 
14737
        }
13768
      }
14738
      }
13769
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(isSetHse());
14739
      lastComparison = Boolean.valueOf(isSetHse()).compareTo(typedOther.isSetHse());
13770
      if (lastComparison != 0) {
14740
      if (lastComparison != 0) {
13771
        return lastComparison;
14741
        return lastComparison;
13772
      }
14742
      }
-
 
14743
      if (isSetHse()) {
13773
      lastComparison = TBaseHelper.compareTo(hse, typedOther.hse);
14744
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.hse, typedOther.hse);
13774
      if (lastComparison != 0) {
14745
        if (lastComparison != 0) {
13775
        return lastComparison;
14746
          return lastComparison;
-
 
14747
        }
13776
      }
14748
      }
13777
      return 0;
14749
      return 0;
13778
    }
14750
    }
13779
 
14751
 
-
 
14752
    public _Fields fieldForId(int fieldId) {
-
 
14753
      return _Fields.findByThriftId(fieldId);
-
 
14754
    }
-
 
14755
 
13780
    public void read(TProtocol iprot) throws TException {
14756
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13781
      TField field;
14757
      org.apache.thrift.protocol.TField field;
13782
      iprot.readStructBegin();
14758
      iprot.readStructBegin();
13783
      while (true)
14759
      while (true)
13784
      {
14760
      {
13785
        field = iprot.readFieldBegin();
14761
        field = iprot.readFieldBegin();
13786
        if (field.type == TType.STOP) { 
14762
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13787
          break;
14763
          break;
13788
        }
14764
        }
13789
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
13790
        if (fieldId == null) {
-
 
13791
          TProtocolUtil.skip(iprot, field.type);
-
 
13792
        } else {
-
 
13793
          switch (fieldId) {
14765
        switch (field.id) {
13794
            case SUCCESS:
14766
          case 0: // SUCCESS
13795
              if (field.type == TType.STRUCT) {
14767
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13796
                this.success = new CatalogDashboardUser();
14768
              this.success = new CatalogDashboardUser();
13797
                this.success.read(iprot);
14769
              this.success.read(iprot);
13798
              } else { 
14770
            } else { 
13799
                TProtocolUtil.skip(iprot, field.type);
14771
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13800
              }
14772
            }
13801
              break;
14773
            break;
13802
            case HSE:
14774
          case 1: // HSE
13803
              if (field.type == TType.STRUCT) {
14775
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
13804
                this.hse = new HelperServiceException();
14776
              this.hse = new HelperServiceException();
13805
                this.hse.read(iprot);
14777
              this.hse.read(iprot);
13806
              } else { 
14778
            } else { 
13807
                TProtocolUtil.skip(iprot, field.type);
14779
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13808
              }
14780
            }
13809
              break;
14781
            break;
13810
          }
14782
          default:
13811
          iprot.readFieldEnd();
14783
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13812
        }
14784
        }
-
 
14785
        iprot.readFieldEnd();
13813
      }
14786
      }
13814
      iprot.readStructEnd();
14787
      iprot.readStructEnd();
13815
      validate();
14788
      validate();
13816
    }
14789
    }
13817
 
14790
 
13818
    public void write(TProtocol oprot) throws TException {
14791
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13819
      oprot.writeStructBegin(STRUCT_DESC);
14792
      oprot.writeStructBegin(STRUCT_DESC);
13820
 
14793
 
13821
      if (this.isSetSuccess()) {
14794
      if (this.isSetSuccess()) {
13822
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14795
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13823
        this.success.write(oprot);
14796
        this.success.write(oprot);
Line 13853... Line 14826...
13853
      first = false;
14826
      first = false;
13854
      sb.append(")");
14827
      sb.append(")");
13855
      return sb.toString();
14828
      return sb.toString();
13856
    }
14829
    }
13857
 
14830
 
13858
    public void validate() throws TException {
14831
    public void validate() throws org.apache.thrift.TException {
13859
      // check for required fields
14832
      // check for required fields
13860
    }
14833
    }
13861
 
14834
 
-
 
14835
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
14836
      try {
-
 
14837
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
14838
      } catch (org.apache.thrift.TException te) {
-
 
14839
        throw new java.io.IOException(te);
-
 
14840
      }
-
 
14841
    }
-
 
14842
 
-
 
14843
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
14844
      try {
-
 
14845
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
14846
      } catch (org.apache.thrift.TException te) {
-
 
14847
        throw new java.io.IOException(te);
-
 
14848
      }
-
 
14849
    }
-
 
14850
 
13862
  }
14851
  }
13863
 
14852
 
13864
}
14853
}