Subversion Repositories SmartDukaan

Rev

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

Rev 3405 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.crm;
6
package in.shop2020.crm;
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 CRMService {
23
public class CRMService {
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
    public List<Ticket> getTickets(SearchFilter searchFilter) throws TException;
27
    public List<Ticket> getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException;
-
 
28
 
-
 
29
    public List<Ticket> getUnassignedTickets() throws org.apache.thrift.TException;
-
 
30
 
-
 
31
    public void updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
-
 
32
 
-
 
33
    public long insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
-
 
34
 
-
 
35
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException;
-
 
36
 
-
 
37
    public long insertActivity(Activity activity) throws org.apache.thrift.TException;
-
 
38
 
-
 
39
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException;
-
 
40
 
-
 
41
    public List<Agent> getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException;
-
 
42
 
-
 
43
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
-
 
44
 
-
 
45
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
-
 
46
 
-
 
47
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
-
 
48
 
-
 
49
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException;
-
 
50
 
-
 
51
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException;
-
 
52
 
-
 
53
  }
-
 
54
 
-
 
55
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
-
 
56
 
-
 
57
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
31
 
58
 
32
    public List<Ticket> getUnassignedTickets() throws TException;
59
    public void getUnassignedTickets(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUnassignedTickets_call> resultHandler) throws org.apache.thrift.TException;
33
 
60
 
34
    public void updateTicket(Ticket ticket, Activity activity) throws TException;
61
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTicket_call> resultHandler) throws org.apache.thrift.TException;
35
 
62
 
36
    public long insertTicket(Ticket ticket, Activity activity) throws TException;
63
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertTicket_call> resultHandler) throws org.apache.thrift.TException;
37
 
64
 
38
    public List<Activity> getActivities(SearchFilter searchFilter) throws TException;
65
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivities_call> resultHandler) throws org.apache.thrift.TException;
39
 
66
 
40
    public long insertActivity(Activity activity) throws TException;
67
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertActivity_call> resultHandler) throws org.apache.thrift.TException;
41
 
68
 
42
    public void markAsRead(long activityId, long agentId) throws TException;
69
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAsRead_call> resultHandler) throws org.apache.thrift.TException;
43
 
70
 
44
    public List<Agent> getAgents(SearchFilter searchFilter) throws TException;
71
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
45
 
72
 
46
    public void updatePasswordForAgent(String agentEmailId, String password) throws TException;
73
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
47
 
74
 
48
    public List<String> getRoleNamesForAgent(String agentEmailId) throws TException;
75
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
49
 
76
 
50
    public List<String> getPermissionsForRoleName(String roleName) throws TException;
77
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
51
 
78
 
52
    public long getLastEmailProcessedTimestamp() throws TException;
79
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
53
 
80
 
54
    public void updateLastEmailProcessedTimestamp(long timestamp) throws TException;
81
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
55
 
82
 
56
  }
83
  }
57
 
84
 
58
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
85
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
-
 
86
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
59
    public Client(TProtocol prot)
87
      public Factory() {}
-
 
88
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
-
 
89
        return new Client(prot);
60
    {
90
      }
-
 
91
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
61
      this(prot, prot);
92
        return new Client(iprot, oprot);
-
 
93
      }
62
    }
94
    }
63
 
95
 
64
    public Client(TProtocol iprot, TProtocol oprot)
96
    public Client(org.apache.thrift.protocol.TProtocol prot)
65
    {
97
    {
-
 
98
      super(prot, prot);
-
 
99
    }
-
 
100
 
-
 
101
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
66
      super(iprot, oprot);
102
      super(iprot, oprot);
67
    }
103
    }
68
 
104
 
69
    public List<Ticket> getTickets(SearchFilter searchFilter) throws TException
105
    public List<Ticket> getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException
70
    {
106
    {
71
      send_getTickets(searchFilter);
107
      send_getTickets(searchFilter);
72
      return recv_getTickets();
108
      return recv_getTickets();
73
    }
109
    }
74
 
110
 
75
    public void send_getTickets(SearchFilter searchFilter) throws TException
111
    public void send_getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException
76
    {
112
    {
77
      oprot_.writeMessageBegin(new TMessage("getTickets", TMessageType.CALL, seqid_));
-
 
78
      getTickets_args args = new getTickets_args();
113
      getTickets_args args = new getTickets_args();
79
      args.searchFilter = searchFilter;
114
      args.setSearchFilter(searchFilter);
80
      args.write(oprot_);
-
 
81
      oprot_.writeMessageEnd();
115
      sendBase("getTickets", args);
82
      oprot_.getTransport().flush();
-
 
83
    }
116
    }
84
 
117
 
85
    public List<Ticket> recv_getTickets() throws TException
118
    public List<Ticket> recv_getTickets() throws org.apache.thrift.TException
86
    {
119
    {
87
      TMessage msg = iprot_.readMessageBegin();
-
 
88
      if (msg.type == TMessageType.EXCEPTION) {
-
 
89
        TApplicationException x = TApplicationException.read(iprot_);
-
 
90
        iprot_.readMessageEnd();
-
 
91
        throw x;
-
 
92
      }
-
 
93
      getTickets_result result = new getTickets_result();
120
      getTickets_result result = new getTickets_result();
94
      result.read(iprot_);
121
      receiveBase(result, "getTickets");
95
      iprot_.readMessageEnd();
-
 
96
      if (result.isSetSuccess()) {
122
      if (result.isSetSuccess()) {
97
        return result.success;
123
        return result.success;
98
      }
124
      }
99
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
125
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
100
    }
126
    }
101
 
127
 
102
    public List<Ticket> getUnassignedTickets() throws TException
128
    public List<Ticket> getUnassignedTickets() throws org.apache.thrift.TException
103
    {
129
    {
104
      send_getUnassignedTickets();
130
      send_getUnassignedTickets();
105
      return recv_getUnassignedTickets();
131
      return recv_getUnassignedTickets();
106
    }
132
    }
107
 
133
 
108
    public void send_getUnassignedTickets() throws TException
134
    public void send_getUnassignedTickets() throws org.apache.thrift.TException
109
    {
135
    {
110
      oprot_.writeMessageBegin(new TMessage("getUnassignedTickets", TMessageType.CALL, seqid_));
-
 
111
      getUnassignedTickets_args args = new getUnassignedTickets_args();
136
      getUnassignedTickets_args args = new getUnassignedTickets_args();
112
      args.write(oprot_);
-
 
113
      oprot_.writeMessageEnd();
-
 
114
      oprot_.getTransport().flush();
137
      sendBase("getUnassignedTickets", args);
115
    }
138
    }
116
 
139
 
117
    public List<Ticket> recv_getUnassignedTickets() throws TException
140
    public List<Ticket> recv_getUnassignedTickets() throws org.apache.thrift.TException
118
    {
141
    {
119
      TMessage msg = iprot_.readMessageBegin();
-
 
120
      if (msg.type == TMessageType.EXCEPTION) {
-
 
121
        TApplicationException x = TApplicationException.read(iprot_);
-
 
122
        iprot_.readMessageEnd();
-
 
123
        throw x;
-
 
124
      }
-
 
125
      getUnassignedTickets_result result = new getUnassignedTickets_result();
142
      getUnassignedTickets_result result = new getUnassignedTickets_result();
126
      result.read(iprot_);
143
      receiveBase(result, "getUnassignedTickets");
127
      iprot_.readMessageEnd();
-
 
128
      if (result.isSetSuccess()) {
144
      if (result.isSetSuccess()) {
129
        return result.success;
145
        return result.success;
130
      }
146
      }
131
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
147
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
132
    }
148
    }
133
 
149
 
134
    public void updateTicket(Ticket ticket, Activity activity) throws TException
150
    public void updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
135
    {
151
    {
136
      send_updateTicket(ticket, activity);
152
      send_updateTicket(ticket, activity);
137
      recv_updateTicket();
153
      recv_updateTicket();
138
    }
154
    }
139
 
155
 
140
    public void send_updateTicket(Ticket ticket, Activity activity) throws TException
156
    public void send_updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
141
    {
157
    {
142
      oprot_.writeMessageBegin(new TMessage("updateTicket", TMessageType.CALL, seqid_));
-
 
143
      updateTicket_args args = new updateTicket_args();
158
      updateTicket_args args = new updateTicket_args();
144
      args.ticket = ticket;
159
      args.setTicket(ticket);
145
      args.activity = activity;
160
      args.setActivity(activity);
146
      args.write(oprot_);
-
 
147
      oprot_.writeMessageEnd();
-
 
148
      oprot_.getTransport().flush();
161
      sendBase("updateTicket", args);
149
    }
162
    }
150
 
163
 
151
    public void recv_updateTicket() throws TException
164
    public void recv_updateTicket() throws org.apache.thrift.TException
152
    {
165
    {
153
      TMessage msg = iprot_.readMessageBegin();
-
 
154
      if (msg.type == TMessageType.EXCEPTION) {
-
 
155
        TApplicationException x = TApplicationException.read(iprot_);
-
 
156
        iprot_.readMessageEnd();
-
 
157
        throw x;
-
 
158
      }
-
 
159
      updateTicket_result result = new updateTicket_result();
166
      updateTicket_result result = new updateTicket_result();
160
      result.read(iprot_);
167
      receiveBase(result, "updateTicket");
161
      iprot_.readMessageEnd();
-
 
162
      return;
168
      return;
163
    }
169
    }
164
 
170
 
165
    public long insertTicket(Ticket ticket, Activity activity) throws TException
171
    public long insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
166
    {
172
    {
167
      send_insertTicket(ticket, activity);
173
      send_insertTicket(ticket, activity);
168
      return recv_insertTicket();
174
      return recv_insertTicket();
169
    }
175
    }
170
 
176
 
171
    public void send_insertTicket(Ticket ticket, Activity activity) throws TException
177
    public void send_insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
172
    {
178
    {
173
      oprot_.writeMessageBegin(new TMessage("insertTicket", TMessageType.CALL, seqid_));
-
 
174
      insertTicket_args args = new insertTicket_args();
179
      insertTicket_args args = new insertTicket_args();
175
      args.ticket = ticket;
180
      args.setTicket(ticket);
176
      args.activity = activity;
181
      args.setActivity(activity);
177
      args.write(oprot_);
-
 
178
      oprot_.writeMessageEnd();
-
 
179
      oprot_.getTransport().flush();
182
      sendBase("insertTicket", args);
180
    }
183
    }
181
 
184
 
182
    public long recv_insertTicket() throws TException
185
    public long recv_insertTicket() throws org.apache.thrift.TException
183
    {
186
    {
184
      TMessage msg = iprot_.readMessageBegin();
-
 
185
      if (msg.type == TMessageType.EXCEPTION) {
-
 
186
        TApplicationException x = TApplicationException.read(iprot_);
-
 
187
        iprot_.readMessageEnd();
-
 
188
        throw x;
-
 
189
      }
-
 
190
      insertTicket_result result = new insertTicket_result();
187
      insertTicket_result result = new insertTicket_result();
191
      result.read(iprot_);
188
      receiveBase(result, "insertTicket");
192
      iprot_.readMessageEnd();
-
 
193
      if (result.isSetSuccess()) {
189
      if (result.isSetSuccess()) {
194
        return result.success;
190
        return result.success;
195
      }
191
      }
196
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
192
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
197
    }
193
    }
198
 
194
 
199
    public List<Activity> getActivities(SearchFilter searchFilter) throws TException
195
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
200
    {
196
    {
201
      send_getActivities(searchFilter);
197
      send_getActivities(searchFilter);
202
      return recv_getActivities();
198
      return recv_getActivities();
203
    }
199
    }
204
 
200
 
205
    public void send_getActivities(SearchFilter searchFilter) throws TException
201
    public void send_getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
206
    {
202
    {
207
      oprot_.writeMessageBegin(new TMessage("getActivities", TMessageType.CALL, seqid_));
-
 
208
      getActivities_args args = new getActivities_args();
203
      getActivities_args args = new getActivities_args();
209
      args.searchFilter = searchFilter;
204
      args.setSearchFilter(searchFilter);
210
      args.write(oprot_);
-
 
211
      oprot_.writeMessageEnd();
-
 
212
      oprot_.getTransport().flush();
205
      sendBase("getActivities", args);
213
    }
206
    }
214
 
207
 
215
    public List<Activity> recv_getActivities() throws TException
208
    public List<Activity> recv_getActivities() throws org.apache.thrift.TException
216
    {
209
    {
217
      TMessage msg = iprot_.readMessageBegin();
-
 
218
      if (msg.type == TMessageType.EXCEPTION) {
-
 
219
        TApplicationException x = TApplicationException.read(iprot_);
-
 
220
        iprot_.readMessageEnd();
-
 
221
        throw x;
-
 
222
      }
-
 
223
      getActivities_result result = new getActivities_result();
210
      getActivities_result result = new getActivities_result();
224
      result.read(iprot_);
211
      receiveBase(result, "getActivities");
225
      iprot_.readMessageEnd();
-
 
226
      if (result.isSetSuccess()) {
212
      if (result.isSetSuccess()) {
227
        return result.success;
213
        return result.success;
228
      }
214
      }
229
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
215
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
230
    }
216
    }
231
 
217
 
232
    public long insertActivity(Activity activity) throws TException
218
    public long insertActivity(Activity activity) throws org.apache.thrift.TException
233
    {
219
    {
234
      send_insertActivity(activity);
220
      send_insertActivity(activity);
235
      return recv_insertActivity();
221
      return recv_insertActivity();
236
    }
222
    }
237
 
223
 
238
    public void send_insertActivity(Activity activity) throws TException
224
    public void send_insertActivity(Activity activity) throws org.apache.thrift.TException
239
    {
225
    {
240
      oprot_.writeMessageBegin(new TMessage("insertActivity", TMessageType.CALL, seqid_));
-
 
241
      insertActivity_args args = new insertActivity_args();
226
      insertActivity_args args = new insertActivity_args();
242
      args.activity = activity;
227
      args.setActivity(activity);
243
      args.write(oprot_);
-
 
244
      oprot_.writeMessageEnd();
-
 
245
      oprot_.getTransport().flush();
228
      sendBase("insertActivity", args);
246
    }
229
    }
247
 
230
 
248
    public long recv_insertActivity() throws TException
231
    public long recv_insertActivity() throws org.apache.thrift.TException
249
    {
232
    {
250
      TMessage msg = iprot_.readMessageBegin();
-
 
251
      if (msg.type == TMessageType.EXCEPTION) {
-
 
252
        TApplicationException x = TApplicationException.read(iprot_);
-
 
253
        iprot_.readMessageEnd();
-
 
254
        throw x;
-
 
255
      }
-
 
256
      insertActivity_result result = new insertActivity_result();
233
      insertActivity_result result = new insertActivity_result();
257
      result.read(iprot_);
234
      receiveBase(result, "insertActivity");
258
      iprot_.readMessageEnd();
-
 
259
      if (result.isSetSuccess()) {
235
      if (result.isSetSuccess()) {
260
        return result.success;
236
        return result.success;
261
      }
237
      }
262
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "insertActivity failed: unknown result");
238
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertActivity failed: unknown result");
263
    }
239
    }
264
 
240
 
265
    public void markAsRead(long activityId, long agentId) throws TException
241
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException
266
    {
242
    {
267
      send_markAsRead(activityId, agentId);
243
      send_markAsRead(activityId, agentId);
268
      recv_markAsRead();
244
      recv_markAsRead();
269
    }
245
    }
270
 
246
 
271
    public void send_markAsRead(long activityId, long agentId) throws TException
247
    public void send_markAsRead(long activityId, long agentId) throws org.apache.thrift.TException
272
    {
248
    {
273
      oprot_.writeMessageBegin(new TMessage("markAsRead", TMessageType.CALL, seqid_));
-
 
274
      markAsRead_args args = new markAsRead_args();
249
      markAsRead_args args = new markAsRead_args();
275
      args.activityId = activityId;
250
      args.setActivityId(activityId);
276
      args.agentId = agentId;
251
      args.setAgentId(agentId);
277
      args.write(oprot_);
-
 
278
      oprot_.writeMessageEnd();
-
 
279
      oprot_.getTransport().flush();
252
      sendBase("markAsRead", args);
280
    }
253
    }
281
 
254
 
282
    public void recv_markAsRead() throws TException
255
    public void recv_markAsRead() throws org.apache.thrift.TException
283
    {
256
    {
284
      TMessage msg = iprot_.readMessageBegin();
-
 
285
      if (msg.type == TMessageType.EXCEPTION) {
-
 
286
        TApplicationException x = TApplicationException.read(iprot_);
-
 
287
        iprot_.readMessageEnd();
-
 
288
        throw x;
-
 
289
      }
-
 
290
      markAsRead_result result = new markAsRead_result();
257
      markAsRead_result result = new markAsRead_result();
291
      result.read(iprot_);
258
      receiveBase(result, "markAsRead");
292
      iprot_.readMessageEnd();
-
 
293
      return;
259
      return;
294
    }
260
    }
295
 
261
 
296
    public List<Agent> getAgents(SearchFilter searchFilter) throws TException
262
    public List<Agent> getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
297
    {
263
    {
298
      send_getAgents(searchFilter);
264
      send_getAgents(searchFilter);
299
      return recv_getAgents();
265
      return recv_getAgents();
300
    }
266
    }
301
 
267
 
302
    public void send_getAgents(SearchFilter searchFilter) throws TException
268
    public void send_getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
303
    {
269
    {
304
      oprot_.writeMessageBegin(new TMessage("getAgents", TMessageType.CALL, seqid_));
-
 
305
      getAgents_args args = new getAgents_args();
270
      getAgents_args args = new getAgents_args();
306
      args.searchFilter = searchFilter;
271
      args.setSearchFilter(searchFilter);
307
      args.write(oprot_);
-
 
308
      oprot_.writeMessageEnd();
272
      sendBase("getAgents", args);
309
      oprot_.getTransport().flush();
-
 
310
    }
273
    }
311
 
274
 
312
    public List<Agent> recv_getAgents() throws TException
275
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
313
    {
276
    {
314
      TMessage msg = iprot_.readMessageBegin();
-
 
315
      if (msg.type == TMessageType.EXCEPTION) {
-
 
316
        TApplicationException x = TApplicationException.read(iprot_);
-
 
317
        iprot_.readMessageEnd();
-
 
318
        throw x;
-
 
319
      }
-
 
320
      getAgents_result result = new getAgents_result();
277
      getAgents_result result = new getAgents_result();
321
      result.read(iprot_);
-
 
322
      iprot_.readMessageEnd();
278
      receiveBase(result, "getAgents");
323
      if (result.isSetSuccess()) {
279
      if (result.isSetSuccess()) {
324
        return result.success;
280
        return result.success;
325
      }
281
      }
326
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
282
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
327
    }
283
    }
328
 
284
 
329
    public void updatePasswordForAgent(String agentEmailId, String password) throws TException
285
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
330
    {
286
    {
331
      send_updatePasswordForAgent(agentEmailId, password);
287
      send_updatePasswordForAgent(agentEmailId, password);
332
      recv_updatePasswordForAgent();
288
      recv_updatePasswordForAgent();
333
    }
289
    }
334
 
290
 
335
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws TException
291
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
336
    {
292
    {
337
      oprot_.writeMessageBegin(new TMessage("updatePasswordForAgent", TMessageType.CALL, seqid_));
-
 
338
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
293
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
339
      args.agentEmailId = agentEmailId;
294
      args.setAgentEmailId(agentEmailId);
340
      args.password = password;
295
      args.setPassword(password);
341
      args.write(oprot_);
-
 
342
      oprot_.writeMessageEnd();
-
 
343
      oprot_.getTransport().flush();
296
      sendBase("updatePasswordForAgent", args);
344
    }
297
    }
345
 
298
 
346
    public void recv_updatePasswordForAgent() throws TException
299
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
347
    {
300
    {
348
      TMessage msg = iprot_.readMessageBegin();
-
 
349
      if (msg.type == TMessageType.EXCEPTION) {
-
 
350
        TApplicationException x = TApplicationException.read(iprot_);
-
 
351
        iprot_.readMessageEnd();
-
 
352
        throw x;
-
 
353
      }
-
 
354
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
301
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
355
      result.read(iprot_);
302
      receiveBase(result, "updatePasswordForAgent");
356
      iprot_.readMessageEnd();
-
 
357
      return;
303
      return;
358
    }
304
    }
359
 
305
 
360
    public List<String> getRoleNamesForAgent(String agentEmailId) throws TException
306
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
361
    {
307
    {
362
      send_getRoleNamesForAgent(agentEmailId);
308
      send_getRoleNamesForAgent(agentEmailId);
363
      return recv_getRoleNamesForAgent();
309
      return recv_getRoleNamesForAgent();
364
    }
310
    }
365
 
311
 
366
    public void send_getRoleNamesForAgent(String agentEmailId) throws TException
312
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
367
    {
313
    {
368
      oprot_.writeMessageBegin(new TMessage("getRoleNamesForAgent", TMessageType.CALL, seqid_));
-
 
369
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
314
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
370
      args.agentEmailId = agentEmailId;
315
      args.setAgentEmailId(agentEmailId);
371
      args.write(oprot_);
-
 
372
      oprot_.writeMessageEnd();
-
 
373
      oprot_.getTransport().flush();
316
      sendBase("getRoleNamesForAgent", args);
374
    }
317
    }
375
 
318
 
376
    public List<String> recv_getRoleNamesForAgent() throws TException
319
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
377
    {
320
    {
378
      TMessage msg = iprot_.readMessageBegin();
-
 
379
      if (msg.type == TMessageType.EXCEPTION) {
-
 
380
        TApplicationException x = TApplicationException.read(iprot_);
-
 
381
        iprot_.readMessageEnd();
-
 
382
        throw x;
-
 
383
      }
-
 
384
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
321
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
385
      result.read(iprot_);
322
      receiveBase(result, "getRoleNamesForAgent");
386
      iprot_.readMessageEnd();
-
 
387
      if (result.isSetSuccess()) {
323
      if (result.isSetSuccess()) {
388
        return result.success;
324
        return result.success;
389
      }
325
      }
390
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
326
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
391
    }
327
    }
392
 
328
 
393
    public List<String> getPermissionsForRoleName(String roleName) throws TException
329
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
394
    {
330
    {
395
      send_getPermissionsForRoleName(roleName);
331
      send_getPermissionsForRoleName(roleName);
396
      return recv_getPermissionsForRoleName();
332
      return recv_getPermissionsForRoleName();
397
    }
333
    }
398
 
334
 
399
    public void send_getPermissionsForRoleName(String roleName) throws TException
335
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
400
    {
336
    {
401
      oprot_.writeMessageBegin(new TMessage("getPermissionsForRoleName", TMessageType.CALL, seqid_));
-
 
402
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
337
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
403
      args.roleName = roleName;
338
      args.setRoleName(roleName);
404
      args.write(oprot_);
-
 
405
      oprot_.writeMessageEnd();
-
 
406
      oprot_.getTransport().flush();
339
      sendBase("getPermissionsForRoleName", args);
407
    }
340
    }
408
 
341
 
409
    public List<String> recv_getPermissionsForRoleName() throws TException
342
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
410
    {
343
    {
411
      TMessage msg = iprot_.readMessageBegin();
-
 
412
      if (msg.type == TMessageType.EXCEPTION) {
-
 
413
        TApplicationException x = TApplicationException.read(iprot_);
-
 
414
        iprot_.readMessageEnd();
-
 
415
        throw x;
-
 
416
      }
-
 
417
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
344
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
418
      result.read(iprot_);
345
      receiveBase(result, "getPermissionsForRoleName");
419
      iprot_.readMessageEnd();
-
 
420
      if (result.isSetSuccess()) {
346
      if (result.isSetSuccess()) {
421
        return result.success;
347
        return result.success;
422
      }
348
      }
423
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
349
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
424
    }
350
    }
425
 
351
 
426
    public long getLastEmailProcessedTimestamp() throws TException
352
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
427
    {
353
    {
428
      send_getLastEmailProcessedTimestamp();
354
      send_getLastEmailProcessedTimestamp();
429
      return recv_getLastEmailProcessedTimestamp();
355
      return recv_getLastEmailProcessedTimestamp();
430
    }
356
    }
431
 
357
 
432
    public void send_getLastEmailProcessedTimestamp() throws TException
358
    public void send_getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
433
    {
359
    {
434
      oprot_.writeMessageBegin(new TMessage("getLastEmailProcessedTimestamp", TMessageType.CALL, seqid_));
-
 
435
      getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
360
      getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
436
      args.write(oprot_);
-
 
437
      oprot_.writeMessageEnd();
-
 
438
      oprot_.getTransport().flush();
361
      sendBase("getLastEmailProcessedTimestamp", args);
439
    }
362
    }
440
 
363
 
441
    public long recv_getLastEmailProcessedTimestamp() throws TException
364
    public long recv_getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
442
    {
365
    {
443
      TMessage msg = iprot_.readMessageBegin();
-
 
444
      if (msg.type == TMessageType.EXCEPTION) {
-
 
445
        TApplicationException x = TApplicationException.read(iprot_);
-
 
446
        iprot_.readMessageEnd();
-
 
447
        throw x;
-
 
448
      }
-
 
449
      getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
366
      getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
450
      result.read(iprot_);
367
      receiveBase(result, "getLastEmailProcessedTimestamp");
451
      iprot_.readMessageEnd();
-
 
452
      if (result.isSetSuccess()) {
368
      if (result.isSetSuccess()) {
453
        return result.success;
369
        return result.success;
454
      }
370
      }
455
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");
371
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");
456
    }
372
    }
457
 
373
 
458
    public void updateLastEmailProcessedTimestamp(long timestamp) throws TException
374
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException
459
    {
375
    {
460
      send_updateLastEmailProcessedTimestamp(timestamp);
376
      send_updateLastEmailProcessedTimestamp(timestamp);
461
      recv_updateLastEmailProcessedTimestamp();
377
      recv_updateLastEmailProcessedTimestamp();
462
    }
378
    }
463
 
379
 
464
    public void send_updateLastEmailProcessedTimestamp(long timestamp) throws TException
380
    public void send_updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException
465
    {
381
    {
466
      oprot_.writeMessageBegin(new TMessage("updateLastEmailProcessedTimestamp", TMessageType.CALL, seqid_));
-
 
467
      updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
382
      updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
468
      args.timestamp = timestamp;
383
      args.setTimestamp(timestamp);
469
      args.write(oprot_);
-
 
470
      oprot_.writeMessageEnd();
-
 
471
      oprot_.getTransport().flush();
384
      sendBase("updateLastEmailProcessedTimestamp", args);
472
    }
385
    }
473
 
386
 
474
    public void recv_updateLastEmailProcessedTimestamp() throws TException
387
    public void recv_updateLastEmailProcessedTimestamp() throws org.apache.thrift.TException
475
    {
388
    {
476
      TMessage msg = iprot_.readMessageBegin();
-
 
477
      if (msg.type == TMessageType.EXCEPTION) {
-
 
478
        TApplicationException x = TApplicationException.read(iprot_);
-
 
479
        iprot_.readMessageEnd();
-
 
480
        throw x;
-
 
481
      }
-
 
482
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
389
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
483
      result.read(iprot_);
390
      receiveBase(result, "updateLastEmailProcessedTimestamp");
484
      iprot_.readMessageEnd();
-
 
485
      return;
391
      return;
486
    }
392
    }
487
 
393
 
488
  }
394
  }
489
  public static class Processor extends in.shop2020.generic.GenericService.Processor implements TProcessor {
395
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
490
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
396
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
491
    public Processor(Iface iface)
-
 
492
    {
-
 
493
      super(iface);
-
 
494
      iface_ = iface;
-
 
495
      processMap_.put("getTickets", new getTickets());
-
 
496
      processMap_.put("getUnassignedTickets", new getUnassignedTickets());
397
      private org.apache.thrift.async.TAsyncClientManager clientManager;
497
      processMap_.put("updateTicket", new updateTicket());
-
 
498
      processMap_.put("insertTicket", new insertTicket());
398
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
499
      processMap_.put("getActivities", new getActivities());
-
 
500
      processMap_.put("insertActivity", new insertActivity());
399
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
501
      processMap_.put("markAsRead", new markAsRead());
400
        this.clientManager = clientManager;
502
      processMap_.put("getAgents", new getAgents());
401
        this.protocolFactory = protocolFactory;
503
      processMap_.put("updatePasswordForAgent", new updatePasswordForAgent());
-
 
504
      processMap_.put("getRoleNamesForAgent", new getRoleNamesForAgent());
-
 
505
      processMap_.put("getPermissionsForRoleName", new getPermissionsForRoleName());
-
 
506
      processMap_.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
-
 
507
      processMap_.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
-
 
508
    }
402
      }
509
 
-
 
510
    private Iface iface_;
-
 
511
 
-
 
512
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
403
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
513
    {
-
 
514
      TMessage msg = iprot.readMessageBegin();
-
 
515
      ProcessFunction fn = processMap_.get(msg.name);
-
 
516
      if (fn == null) {
-
 
517
        TProtocolUtil.skip(iprot, TType.STRUCT);
-
 
518
        iprot.readMessageEnd();
-
 
519
        TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");
-
 
520
        oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));
404
        return new AsyncClient(protocolFactory, clientManager, transport);
521
        x.write(oprot);
-
 
522
        oprot.writeMessageEnd();
-
 
523
        oprot.getTransport().flush();
-
 
524
        return true;
-
 
525
      }
405
      }
526
      fn.process(msg.seqid, iprot, oprot);
-
 
527
      return true;
-
 
528
    }
406
    }
529
 
407
 
-
 
408
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
-
 
409
      super(protocolFactory, clientManager, transport);
-
 
410
    }
-
 
411
 
-
 
412
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getTickets_call> resultHandler) throws org.apache.thrift.TException {
-
 
413
      checkReady();
-
 
414
      getTickets_call method_call = new getTickets_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
-
 
415
      this.___currentMethod = method_call;
-
 
416
      ___manager.call(method_call);
-
 
417
    }
-
 
418
 
530
    private class getTickets implements ProcessFunction {
419
    public static class getTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
420
      private SearchFilter searchFilter;
531
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
421
      public getTickets_call(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getTickets_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 {
-
 
422
        super(client, protocolFactory, transport, resultHandler, false);
-
 
423
        this.searchFilter = searchFilter;
532
      {
424
      }
-
 
425
 
-
 
426
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
427
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
533
        getTickets_args args = new getTickets_args();
428
        getTickets_args args = new getTickets_args();
534
        args.read(iprot);
-
 
535
        iprot.readMessageEnd();
-
 
536
        getTickets_result result = new getTickets_result();
-
 
537
        result.success = iface_.getTickets(args.searchFilter);
429
        args.setSearchFilter(searchFilter);
538
        oprot.writeMessageBegin(new TMessage("getTickets", TMessageType.REPLY, seqid));
-
 
539
        result.write(oprot);
430
        args.write(prot);
540
        oprot.writeMessageEnd();
431
        prot.writeMessageEnd();
541
        oprot.getTransport().flush();
-
 
542
      }
432
      }
543
 
433
 
-
 
434
      public List<Ticket> getResult() throws org.apache.thrift.TException {
-
 
435
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
436
          throw new IllegalStateException("Method call not finished!");
-
 
437
        }
-
 
438
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
439
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
440
        return (new Client(prot)).recv_getTickets();
-
 
441
      }
544
    }
442
    }
545
 
443
 
-
 
444
    public void getUnassignedTickets(org.apache.thrift.async.AsyncMethodCallback<getUnassignedTickets_call> resultHandler) throws org.apache.thrift.TException {
-
 
445
      checkReady();
-
 
446
      getUnassignedTickets_call method_call = new getUnassignedTickets_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
447
      this.___currentMethod = method_call;
-
 
448
      ___manager.call(method_call);
-
 
449
    }
-
 
450
 
546
    private class getUnassignedTickets implements ProcessFunction {
451
    public static class getUnassignedTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
547
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
452
      public getUnassignedTickets_call(org.apache.thrift.async.AsyncMethodCallback<getUnassignedTickets_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 {
-
 
453
        super(client, protocolFactory, transport, resultHandler, false);
548
      {
454
      }
-
 
455
 
-
 
456
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
457
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUnassignedTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
549
        getUnassignedTickets_args args = new getUnassignedTickets_args();
458
        getUnassignedTickets_args args = new getUnassignedTickets_args();
550
        args.read(iprot);
459
        args.write(prot);
551
        iprot.readMessageEnd();
-
 
552
        getUnassignedTickets_result result = new getUnassignedTickets_result();
-
 
553
        result.success = iface_.getUnassignedTickets();
-
 
554
        oprot.writeMessageBegin(new TMessage("getUnassignedTickets", TMessageType.REPLY, seqid));
-
 
555
        result.write(oprot);
-
 
556
        oprot.writeMessageEnd();
460
        prot.writeMessageEnd();
557
        oprot.getTransport().flush();
-
 
558
      }
461
      }
559
 
462
 
-
 
463
      public List<Ticket> getResult() throws org.apache.thrift.TException {
-
 
464
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
465
          throw new IllegalStateException("Method call not finished!");
-
 
466
        }
-
 
467
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
468
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
469
        return (new Client(prot)).recv_getUnassignedTickets();
-
 
470
      }
560
    }
471
    }
561
 
472
 
-
 
473
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<updateTicket_call> resultHandler) throws org.apache.thrift.TException {
-
 
474
      checkReady();
-
 
475
      updateTicket_call method_call = new updateTicket_call(ticket, activity, resultHandler, this, ___protocolFactory, ___transport);
-
 
476
      this.___currentMethod = method_call;
-
 
477
      ___manager.call(method_call);
-
 
478
    }
-
 
479
 
562
    private class updateTicket implements ProcessFunction {
480
    public static class updateTicket_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
481
      private Ticket ticket;
-
 
482
      private Activity activity;
563
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
483
      public updateTicket_call(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<updateTicket_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 {
-
 
484
        super(client, protocolFactory, transport, resultHandler, false);
-
 
485
        this.ticket = ticket;
-
 
486
        this.activity = activity;
564
      {
487
      }
-
 
488
 
-
 
489
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
490
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTicket", org.apache.thrift.protocol.TMessageType.CALL, 0));
565
        updateTicket_args args = new updateTicket_args();
491
        updateTicket_args args = new updateTicket_args();
566
        args.read(iprot);
492
        args.setTicket(ticket);
567
        iprot.readMessageEnd();
493
        args.setActivity(activity);
568
        updateTicket_result result = new updateTicket_result();
-
 
569
        iface_.updateTicket(args.ticket, args.activity);
-
 
570
        oprot.writeMessageBegin(new TMessage("updateTicket", TMessageType.REPLY, seqid));
-
 
571
        result.write(oprot);
494
        args.write(prot);
572
        oprot.writeMessageEnd();
495
        prot.writeMessageEnd();
573
        oprot.getTransport().flush();
-
 
574
      }
496
      }
575
 
497
 
-
 
498
      public void getResult() throws org.apache.thrift.TException {
-
 
499
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
500
          throw new IllegalStateException("Method call not finished!");
-
 
501
        }
-
 
502
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
503
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
504
        (new Client(prot)).recv_updateTicket();
-
 
505
      }
576
    }
506
    }
577
 
507
 
-
 
508
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertTicket_call> resultHandler) throws org.apache.thrift.TException {
-
 
509
      checkReady();
-
 
510
      insertTicket_call method_call = new insertTicket_call(ticket, activity, resultHandler, this, ___protocolFactory, ___transport);
-
 
511
      this.___currentMethod = method_call;
-
 
512
      ___manager.call(method_call);
-
 
513
    }
-
 
514
 
578
    private class insertTicket implements ProcessFunction {
515
    public static class insertTicket_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
516
      private Ticket ticket;
-
 
517
      private Activity activity;
579
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
518
      public insertTicket_call(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertTicket_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 {
-
 
519
        super(client, protocolFactory, transport, resultHandler, false);
-
 
520
        this.ticket = ticket;
-
 
521
        this.activity = activity;
580
      {
522
      }
-
 
523
 
-
 
524
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
525
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertTicket", org.apache.thrift.protocol.TMessageType.CALL, 0));
581
        insertTicket_args args = new insertTicket_args();
526
        insertTicket_args args = new insertTicket_args();
582
        args.read(iprot);
527
        args.setTicket(ticket);
583
        iprot.readMessageEnd();
-
 
584
        insertTicket_result result = new insertTicket_result();
-
 
585
        result.success = iface_.insertTicket(args.ticket, args.activity);
-
 
586
        result.setSuccessIsSet(true);
528
        args.setActivity(activity);
587
        oprot.writeMessageBegin(new TMessage("insertTicket", TMessageType.REPLY, seqid));
-
 
588
        result.write(oprot);
529
        args.write(prot);
589
        oprot.writeMessageEnd();
530
        prot.writeMessageEnd();
590
        oprot.getTransport().flush();
-
 
591
      }
531
      }
592
 
532
 
-
 
533
      public long getResult() throws org.apache.thrift.TException {
-
 
534
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
535
          throw new IllegalStateException("Method call not finished!");
-
 
536
        }
-
 
537
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
538
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
539
        return (new Client(prot)).recv_insertTicket();
-
 
540
      }
593
    }
541
    }
594
 
542
 
-
 
543
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getActivities_call> resultHandler) throws org.apache.thrift.TException {
-
 
544
      checkReady();
-
 
545
      getActivities_call method_call = new getActivities_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
-
 
546
      this.___currentMethod = method_call;
-
 
547
      ___manager.call(method_call);
-
 
548
    }
-
 
549
 
595
    private class getActivities implements ProcessFunction {
550
    public static class getActivities_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
551
      private SearchFilter searchFilter;
596
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
552
      public getActivities_call(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getActivities_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 {
-
 
553
        super(client, protocolFactory, transport, resultHandler, false);
-
 
554
        this.searchFilter = searchFilter;
597
      {
555
      }
-
 
556
 
-
 
557
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
558
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivities", org.apache.thrift.protocol.TMessageType.CALL, 0));
598
        getActivities_args args = new getActivities_args();
559
        getActivities_args args = new getActivities_args();
-
 
560
        args.setSearchFilter(searchFilter);
599
        args.read(iprot);
561
        args.write(prot);
600
        iprot.readMessageEnd();
562
        prot.writeMessageEnd();
-
 
563
      }
-
 
564
 
601
        getActivities_result result = new getActivities_result();
565
      public List<Activity> getResult() throws org.apache.thrift.TException {
602
        result.success = iface_.getActivities(args.searchFilter);
566
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
603
        oprot.writeMessageBegin(new TMessage("getActivities", TMessageType.REPLY, seqid));
567
          throw new IllegalStateException("Method call not finished!");
604
        result.write(oprot);
568
        }
-
 
569
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
605
        oprot.writeMessageEnd();
570
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
606
        oprot.getTransport().flush();
571
        return (new Client(prot)).recv_getActivities();
607
      }
572
      }
-
 
573
    }
608
 
574
 
-
 
575
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertActivity_call> resultHandler) throws org.apache.thrift.TException {
-
 
576
      checkReady();
-
 
577
      insertActivity_call method_call = new insertActivity_call(activity, resultHandler, this, ___protocolFactory, ___transport);
-
 
578
      this.___currentMethod = method_call;
-
 
579
      ___manager.call(method_call);
609
    }
580
    }
610
 
581
 
611
    private class insertActivity implements ProcessFunction {
582
    public static class insertActivity_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
583
      private Activity activity;
612
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
584
      public insertActivity_call(Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertActivity_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 {
-
 
585
        super(client, protocolFactory, transport, resultHandler, false);
-
 
586
        this.activity = activity;
613
      {
587
      }
-
 
588
 
-
 
589
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
590
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertActivity", org.apache.thrift.protocol.TMessageType.CALL, 0));
614
        insertActivity_args args = new insertActivity_args();
591
        insertActivity_args args = new insertActivity_args();
615
        args.read(iprot);
592
        args.setActivity(activity);
616
        iprot.readMessageEnd();
-
 
617
        insertActivity_result result = new insertActivity_result();
-
 
618
        result.success = iface_.insertActivity(args.activity);
-
 
619
        result.setSuccessIsSet(true);
-
 
620
        oprot.writeMessageBegin(new TMessage("insertActivity", TMessageType.REPLY, seqid));
-
 
621
        result.write(oprot);
593
        args.write(prot);
622
        oprot.writeMessageEnd();
594
        prot.writeMessageEnd();
623
        oprot.getTransport().flush();
-
 
624
      }
595
      }
625
 
596
 
-
 
597
      public long getResult() throws org.apache.thrift.TException {
-
 
598
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
599
          throw new IllegalStateException("Method call not finished!");
-
 
600
        }
-
 
601
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
602
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
603
        return (new Client(prot)).recv_insertActivity();
-
 
604
      }
626
    }
605
    }
627
 
606
 
-
 
607
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<markAsRead_call> resultHandler) throws org.apache.thrift.TException {
-
 
608
      checkReady();
-
 
609
      markAsRead_call method_call = new markAsRead_call(activityId, agentId, resultHandler, this, ___protocolFactory, ___transport);
-
 
610
      this.___currentMethod = method_call;
-
 
611
      ___manager.call(method_call);
-
 
612
    }
-
 
613
 
628
    private class markAsRead implements ProcessFunction {
614
    public static class markAsRead_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
615
      private long activityId;
-
 
616
      private long agentId;
629
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
617
      public markAsRead_call(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<markAsRead_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 {
-
 
618
        super(client, protocolFactory, transport, resultHandler, false);
-
 
619
        this.activityId = activityId;
-
 
620
        this.agentId = agentId;
630
      {
621
      }
-
 
622
 
-
 
623
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
624
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markAsRead", org.apache.thrift.protocol.TMessageType.CALL, 0));
631
        markAsRead_args args = new markAsRead_args();
625
        markAsRead_args args = new markAsRead_args();
632
        args.read(iprot);
626
        args.setActivityId(activityId);
633
        iprot.readMessageEnd();
627
        args.setAgentId(agentId);
634
        markAsRead_result result = new markAsRead_result();
-
 
635
        iface_.markAsRead(args.activityId, args.agentId);
-
 
636
        oprot.writeMessageBegin(new TMessage("markAsRead", TMessageType.REPLY, seqid));
-
 
637
        result.write(oprot);
628
        args.write(prot);
638
        oprot.writeMessageEnd();
629
        prot.writeMessageEnd();
639
        oprot.getTransport().flush();
-
 
640
      }
630
      }
641
 
631
 
-
 
632
      public void getResult() throws org.apache.thrift.TException {
-
 
633
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
634
          throw new IllegalStateException("Method call not finished!");
-
 
635
        }
-
 
636
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
637
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
638
        (new Client(prot)).recv_markAsRead();
-
 
639
      }
642
    }
640
    }
643
 
641
 
-
 
642
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
-
 
643
      checkReady();
-
 
644
      getAgents_call method_call = new getAgents_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
-
 
645
      this.___currentMethod = method_call;
-
 
646
      ___manager.call(method_call);
-
 
647
    }
-
 
648
 
644
    private class getAgents implements ProcessFunction {
649
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
650
      private SearchFilter searchFilter;
645
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
651
      public getAgents_call(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
652
        super(client, protocolFactory, transport, resultHandler, false);
-
 
653
        this.searchFilter = searchFilter;
646
      {
654
      }
-
 
655
 
-
 
656
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
657
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
647
        getAgents_args args = new getAgents_args();
658
        getAgents_args args = new getAgents_args();
648
        args.read(iprot);
-
 
649
        iprot.readMessageEnd();
-
 
650
        getAgents_result result = new getAgents_result();
-
 
651
        result.success = iface_.getAgents(args.searchFilter);
659
        args.setSearchFilter(searchFilter);
652
        oprot.writeMessageBegin(new TMessage("getAgents", TMessageType.REPLY, seqid));
-
 
653
        result.write(oprot);
660
        args.write(prot);
654
        oprot.writeMessageEnd();
661
        prot.writeMessageEnd();
655
        oprot.getTransport().flush();
-
 
656
      }
662
      }
657
 
663
 
-
 
664
      public List<Agent> getResult() throws org.apache.thrift.TException {
-
 
665
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
666
          throw new IllegalStateException("Method call not finished!");
-
 
667
        }
-
 
668
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
669
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
670
        return (new Client(prot)).recv_getAgents();
-
 
671
      }
658
    }
672
    }
659
 
673
 
-
 
674
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
-
 
675
      checkReady();
-
 
676
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
-
 
677
      this.___currentMethod = method_call;
-
 
678
      ___manager.call(method_call);
-
 
679
    }
-
 
680
 
660
    private class updatePasswordForAgent implements ProcessFunction {
681
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
682
      private String agentEmailId;
-
 
683
      private String password;
661
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
684
      public updatePasswordForAgent_call(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
685
        super(client, protocolFactory, transport, resultHandler, false);
-
 
686
        this.agentEmailId = agentEmailId;
-
 
687
        this.password = password;
662
      {
688
      }
-
 
689
 
-
 
690
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
691
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
663
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
692
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
664
        args.read(iprot);
693
        args.setAgentEmailId(agentEmailId);
665
        iprot.readMessageEnd();
694
        args.setPassword(password);
666
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
-
 
667
        iface_.updatePasswordForAgent(args.agentEmailId, args.password);
-
 
668
        oprot.writeMessageBegin(new TMessage("updatePasswordForAgent", TMessageType.REPLY, seqid));
-
 
669
        result.write(oprot);
695
        args.write(prot);
670
        oprot.writeMessageEnd();
696
        prot.writeMessageEnd();
671
        oprot.getTransport().flush();
-
 
672
      }
697
      }
673
 
698
 
-
 
699
      public void getResult() throws org.apache.thrift.TException {
-
 
700
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
701
          throw new IllegalStateException("Method call not finished!");
-
 
702
        }
-
 
703
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
704
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
705
        (new Client(prot)).recv_updatePasswordForAgent();
-
 
706
      }
674
    }
707
    }
675
 
708
 
-
 
709
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
-
 
710
      checkReady();
-
 
711
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
-
 
712
      this.___currentMethod = method_call;
-
 
713
      ___manager.call(method_call);
-
 
714
    }
-
 
715
 
676
    private class getRoleNamesForAgent implements ProcessFunction {
716
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
717
      private String agentEmailId;
677
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
718
      public getRoleNamesForAgent_call(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
719
        super(client, protocolFactory, transport, resultHandler, false);
-
 
720
        this.agentEmailId = agentEmailId;
678
      {
721
      }
-
 
722
 
-
 
723
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
724
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
679
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
725
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
-
 
726
        args.setAgentEmailId(agentEmailId);
680
        args.read(iprot);
727
        args.write(prot);
681
        iprot.readMessageEnd();
728
        prot.writeMessageEnd();
-
 
729
      }
-
 
730
 
682
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
731
      public List<String> getResult() throws org.apache.thrift.TException {
683
        result.success = iface_.getRoleNamesForAgent(args.agentEmailId);
732
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
684
        oprot.writeMessageBegin(new TMessage("getRoleNamesForAgent", TMessageType.REPLY, seqid));
733
          throw new IllegalStateException("Method call not finished!");
685
        result.write(oprot);
734
        }
-
 
735
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
686
        oprot.writeMessageEnd();
736
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
687
        oprot.getTransport().flush();
737
        return (new Client(prot)).recv_getRoleNamesForAgent();
688
      }
738
      }
-
 
739
    }
689
 
740
 
-
 
741
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
-
 
742
      checkReady();
-
 
743
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
-
 
744
      this.___currentMethod = method_call;
-
 
745
      ___manager.call(method_call);
690
    }
746
    }
691
 
747
 
692
    private class getPermissionsForRoleName implements ProcessFunction {
748
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
749
      private String roleName;
693
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
750
      public getPermissionsForRoleName_call(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
751
        super(client, protocolFactory, transport, resultHandler, false);
-
 
752
        this.roleName = roleName;
694
      {
753
      }
-
 
754
 
-
 
755
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
756
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
695
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
757
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
696
        args.read(iprot);
758
        args.setRoleName(roleName);
697
        iprot.readMessageEnd();
-
 
698
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
-
 
699
        result.success = iface_.getPermissionsForRoleName(args.roleName);
-
 
700
        oprot.writeMessageBegin(new TMessage("getPermissionsForRoleName", TMessageType.REPLY, seqid));
-
 
701
        result.write(oprot);
759
        args.write(prot);
702
        oprot.writeMessageEnd();
760
        prot.writeMessageEnd();
703
        oprot.getTransport().flush();
-
 
704
      }
761
      }
705
 
762
 
-
 
763
      public List<String> getResult() throws org.apache.thrift.TException {
-
 
764
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
765
          throw new IllegalStateException("Method call not finished!");
-
 
766
        }
-
 
767
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
768
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
769
        return (new Client(prot)).recv_getPermissionsForRoleName();
-
 
770
      }
706
    }
771
    }
707
 
772
 
-
 
773
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException {
-
 
774
      checkReady();
-
 
775
      getLastEmailProcessedTimestamp_call method_call = new getLastEmailProcessedTimestamp_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
776
      this.___currentMethod = method_call;
-
 
777
      ___manager.call(method_call);
-
 
778
    }
-
 
779
 
708
    private class getLastEmailProcessedTimestamp implements ProcessFunction {
780
    public static class getLastEmailProcessedTimestamp_call extends org.apache.thrift.async.TAsyncMethodCall {
709
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
781
      public getLastEmailProcessedTimestamp_call(org.apache.thrift.async.AsyncMethodCallback<getLastEmailProcessedTimestamp_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 {
-
 
782
        super(client, protocolFactory, transport, resultHandler, false);
710
      {
783
      }
-
 
784
 
-
 
785
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
786
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLastEmailProcessedTimestamp", org.apache.thrift.protocol.TMessageType.CALL, 0));
711
        getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
787
        getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
712
        args.read(iprot);
788
        args.write(prot);
713
        iprot.readMessageEnd();
-
 
714
        getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
-
 
715
        result.success = iface_.getLastEmailProcessedTimestamp();
-
 
716
        result.setSuccessIsSet(true);
-
 
717
        oprot.writeMessageBegin(new TMessage("getLastEmailProcessedTimestamp", TMessageType.REPLY, seqid));
-
 
718
        result.write(oprot);
-
 
719
        oprot.writeMessageEnd();
789
        prot.writeMessageEnd();
720
        oprot.getTransport().flush();
-
 
721
      }
790
      }
722
 
791
 
-
 
792
      public long getResult() throws org.apache.thrift.TException {
-
 
793
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
794
          throw new IllegalStateException("Method call not finished!");
-
 
795
        }
-
 
796
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
797
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
798
        return (new Client(prot)).recv_getLastEmailProcessedTimestamp();
-
 
799
      }
723
    }
800
    }
724
 
801
 
-
 
802
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException {
-
 
803
      checkReady();
-
 
804
      updateLastEmailProcessedTimestamp_call method_call = new updateLastEmailProcessedTimestamp_call(timestamp, resultHandler, this, ___protocolFactory, ___transport);
-
 
805
      this.___currentMethod = method_call;
-
 
806
      ___manager.call(method_call);
-
 
807
    }
-
 
808
 
725
    private class updateLastEmailProcessedTimestamp implements ProcessFunction {
809
    public static class updateLastEmailProcessedTimestamp_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
810
      private long timestamp;
726
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
811
      public updateLastEmailProcessedTimestamp_call(long timestamp, org.apache.thrift.async.AsyncMethodCallback<updateLastEmailProcessedTimestamp_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 {
-
 
812
        super(client, protocolFactory, transport, resultHandler, false);
-
 
813
        this.timestamp = timestamp;
727
      {
814
      }
-
 
815
 
-
 
816
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
817
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLastEmailProcessedTimestamp", org.apache.thrift.protocol.TMessageType.CALL, 0));
728
        updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
818
        updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
-
 
819
        args.setTimestamp(timestamp);
729
        args.read(iprot);
820
        args.write(prot);
730
        iprot.readMessageEnd();
821
        prot.writeMessageEnd();
-
 
822
      }
-
 
823
 
-
 
824
      public void getResult() throws org.apache.thrift.TException {
-
 
825
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
826
          throw new IllegalStateException("Method call not finished!");
-
 
827
        }
-
 
828
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
829
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
830
        (new Client(prot)).recv_updateLastEmailProcessedTimestamp();
-
 
831
      }
-
 
832
    }
-
 
833
 
-
 
834
  }
-
 
835
 
-
 
836
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
-
 
837
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
-
 
838
    public Processor(I iface) {
-
 
839
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
-
 
840
    }
-
 
841
 
-
 
842
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-
 
843
      super(iface, getProcessMap(processMap));
-
 
844
    }
-
 
845
 
-
 
846
    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) {
-
 
847
      processMap.put("getTickets", new getTickets());
-
 
848
      processMap.put("getUnassignedTickets", new getUnassignedTickets());
-
 
849
      processMap.put("updateTicket", new updateTicket());
-
 
850
      processMap.put("insertTicket", new insertTicket());
-
 
851
      processMap.put("getActivities", new getActivities());
-
 
852
      processMap.put("insertActivity", new insertActivity());
-
 
853
      processMap.put("markAsRead", new markAsRead());
-
 
854
      processMap.put("getAgents", new getAgents());
-
 
855
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
-
 
856
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
-
 
857
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
-
 
858
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
731
        updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
859
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
-
 
860
      return processMap;
-
 
861
    }
-
 
862
 
-
 
863
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
-
 
864
      public getTickets() {
-
 
865
        super("getTickets");
-
 
866
      }
-
 
867
 
-
 
868
      protected getTickets_args getEmptyArgsInstance() {
-
 
869
        return new getTickets_args();
-
 
870
      }
-
 
871
 
-
 
872
      protected getTickets_result getResult(I iface, getTickets_args args) throws org.apache.thrift.TException {
-
 
873
        getTickets_result result = new getTickets_result();
-
 
874
        result.success = iface.getTickets(args.searchFilter);
-
 
875
        return result;
-
 
876
      }
-
 
877
    }
-
 
878
 
-
 
879
    private static class getUnassignedTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUnassignedTickets_args> {
-
 
880
      public getUnassignedTickets() {
-
 
881
        super("getUnassignedTickets");
-
 
882
      }
-
 
883
 
-
 
884
      protected getUnassignedTickets_args getEmptyArgsInstance() {
-
 
885
        return new getUnassignedTickets_args();
-
 
886
      }
-
 
887
 
-
 
888
      protected getUnassignedTickets_result getResult(I iface, getUnassignedTickets_args args) throws org.apache.thrift.TException {
-
 
889
        getUnassignedTickets_result result = new getUnassignedTickets_result();
-
 
890
        result.success = iface.getUnassignedTickets();
-
 
891
        return result;
-
 
892
      }
-
 
893
    }
-
 
894
 
-
 
895
    private static class updateTicket<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTicket_args> {
-
 
896
      public updateTicket() {
-
 
897
        super("updateTicket");
-
 
898
      }
-
 
899
 
-
 
900
      protected updateTicket_args getEmptyArgsInstance() {
-
 
901
        return new updateTicket_args();
-
 
902
      }
-
 
903
 
-
 
904
      protected updateTicket_result getResult(I iface, updateTicket_args args) throws org.apache.thrift.TException {
-
 
905
        updateTicket_result result = new updateTicket_result();
732
        iface_.updateLastEmailProcessedTimestamp(args.timestamp);
906
        iface.updateTicket(args.ticket, args.activity);
-
 
907
        return result;
-
 
908
      }
-
 
909
    }
-
 
910
 
-
 
911
    private static class insertTicket<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertTicket_args> {
-
 
912
      public insertTicket() {
-
 
913
        super("insertTicket");
-
 
914
      }
-
 
915
 
-
 
916
      protected insertTicket_args getEmptyArgsInstance() {
-
 
917
        return new insertTicket_args();
-
 
918
      }
-
 
919
 
733
        oprot.writeMessageBegin(new TMessage("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid));
920
      protected insertTicket_result getResult(I iface, insertTicket_args args) throws org.apache.thrift.TException {
-
 
921
        insertTicket_result result = new insertTicket_result();
-
 
922
        result.success = iface.insertTicket(args.ticket, args.activity);
-
 
923
        result.setSuccessIsSet(true);
734
        result.write(oprot);
924
        return result;
-
 
925
      }
-
 
926
    }
-
 
927
 
-
 
928
    private static class getActivities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivities_args> {
-
 
929
      public getActivities() {
-
 
930
        super("getActivities");
-
 
931
      }
-
 
932
 
-
 
933
      protected getActivities_args getEmptyArgsInstance() {
-
 
934
        return new getActivities_args();
-
 
935
      }
-
 
936
 
-
 
937
      protected getActivities_result getResult(I iface, getActivities_args args) throws org.apache.thrift.TException {
-
 
938
        getActivities_result result = new getActivities_result();
-
 
939
        result.success = iface.getActivities(args.searchFilter);
-
 
940
        return result;
-
 
941
      }
-
 
942
    }
-
 
943
 
-
 
944
    private static class insertActivity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertActivity_args> {
-
 
945
      public insertActivity() {
-
 
946
        super("insertActivity");
-
 
947
      }
-
 
948
 
-
 
949
      protected insertActivity_args getEmptyArgsInstance() {
-
 
950
        return new insertActivity_args();
-
 
951
      }
-
 
952
 
-
 
953
      protected insertActivity_result getResult(I iface, insertActivity_args args) throws org.apache.thrift.TException {
-
 
954
        insertActivity_result result = new insertActivity_result();
-
 
955
        result.success = iface.insertActivity(args.activity);
-
 
956
        result.setSuccessIsSet(true);
-
 
957
        return result;
-
 
958
      }
-
 
959
    }
-
 
960
 
-
 
961
    private static class markAsRead<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markAsRead_args> {
-
 
962
      public markAsRead() {
735
        oprot.writeMessageEnd();
963
        super("markAsRead");
-
 
964
      }
-
 
965
 
-
 
966
      protected markAsRead_args getEmptyArgsInstance() {
-
 
967
        return new markAsRead_args();
-
 
968
      }
-
 
969
 
-
 
970
      protected markAsRead_result getResult(I iface, markAsRead_args args) throws org.apache.thrift.TException {
-
 
971
        markAsRead_result result = new markAsRead_result();
-
 
972
        iface.markAsRead(args.activityId, args.agentId);
-
 
973
        return result;
-
 
974
      }
-
 
975
    }
-
 
976
 
-
 
977
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
-
 
978
      public getAgents() {
-
 
979
        super("getAgents");
-
 
980
      }
-
 
981
 
-
 
982
      protected getAgents_args getEmptyArgsInstance() {
-
 
983
        return new getAgents_args();
-
 
984
      }
-
 
985
 
-
 
986
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
-
 
987
        getAgents_result result = new getAgents_result();
-
 
988
        result.success = iface.getAgents(args.searchFilter);
-
 
989
        return result;
-
 
990
      }
-
 
991
    }
-
 
992
 
-
 
993
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
-
 
994
      public updatePasswordForAgent() {
736
        oprot.getTransport().flush();
995
        super("updatePasswordForAgent");
737
      }
996
      }
738
 
997
 
-
 
998
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
-
 
999
        return new updatePasswordForAgent_args();
-
 
1000
      }
-
 
1001
 
-
 
1002
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
-
 
1003
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
-
 
1004
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
-
 
1005
        return result;
-
 
1006
      }
-
 
1007
    }
-
 
1008
 
-
 
1009
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
-
 
1010
      public getRoleNamesForAgent() {
-
 
1011
        super("getRoleNamesForAgent");
-
 
1012
      }
-
 
1013
 
-
 
1014
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
-
 
1015
        return new getRoleNamesForAgent_args();
-
 
1016
      }
-
 
1017
 
-
 
1018
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
-
 
1019
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
-
 
1020
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
-
 
1021
        return result;
-
 
1022
      }
-
 
1023
    }
-
 
1024
 
-
 
1025
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
-
 
1026
      public getPermissionsForRoleName() {
-
 
1027
        super("getPermissionsForRoleName");
-
 
1028
      }
-
 
1029
 
-
 
1030
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
-
 
1031
        return new getPermissionsForRoleName_args();
-
 
1032
      }
-
 
1033
 
-
 
1034
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
-
 
1035
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
-
 
1036
        result.success = iface.getPermissionsForRoleName(args.roleName);
-
 
1037
        return result;
-
 
1038
      }
-
 
1039
    }
-
 
1040
 
-
 
1041
    private static class getLastEmailProcessedTimestamp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLastEmailProcessedTimestamp_args> {
-
 
1042
      public getLastEmailProcessedTimestamp() {
-
 
1043
        super("getLastEmailProcessedTimestamp");
-
 
1044
      }
-
 
1045
 
-
 
1046
      protected getLastEmailProcessedTimestamp_args getEmptyArgsInstance() {
-
 
1047
        return new getLastEmailProcessedTimestamp_args();
-
 
1048
      }
-
 
1049
 
-
 
1050
      protected getLastEmailProcessedTimestamp_result getResult(I iface, getLastEmailProcessedTimestamp_args args) throws org.apache.thrift.TException {
-
 
1051
        getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
-
 
1052
        result.success = iface.getLastEmailProcessedTimestamp();
-
 
1053
        result.setSuccessIsSet(true);
-
 
1054
        return result;
-
 
1055
      }
-
 
1056
    }
-
 
1057
 
-
 
1058
    private static class updateLastEmailProcessedTimestamp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateLastEmailProcessedTimestamp_args> {
-
 
1059
      public updateLastEmailProcessedTimestamp() {
-
 
1060
        super("updateLastEmailProcessedTimestamp");
-
 
1061
      }
-
 
1062
 
-
 
1063
      protected updateLastEmailProcessedTimestamp_args getEmptyArgsInstance() {
-
 
1064
        return new updateLastEmailProcessedTimestamp_args();
-
 
1065
      }
-
 
1066
 
-
 
1067
      protected updateLastEmailProcessedTimestamp_result getResult(I iface, updateLastEmailProcessedTimestamp_args args) throws org.apache.thrift.TException {
-
 
1068
        updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
-
 
1069
        iface.updateLastEmailProcessedTimestamp(args.timestamp);
-
 
1070
        return result;
-
 
1071
      }
739
    }
1072
    }
740
 
1073
 
741
  }
1074
  }
742
 
1075
 
743
  public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args>   {
1076
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
744
    private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");
1077
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
745
 
1078
 
746
    private static final TField SEARCH_FILTER_FIELD_DESC = new TField("searchFilter", TType.STRUCT, (short)1);
1079
    private static final org.apache.thrift.protocol.TField SEARCH_FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("searchFilter", org.apache.thrift.protocol.TType.STRUCT, (short)1);
747
 
1080
 
748
    private SearchFilter searchFilter;
1081
    private SearchFilter searchFilter; // required
749
 
1082
 
750
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1083
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
751
    public enum _Fields implements TFieldIdEnum {
1084
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
752
      SEARCH_FILTER((short)1, "searchFilter");
1085
      SEARCH_FILTER((short)1, "searchFilter");
753
 
1086
 
754
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
755
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1087
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
756
 
1088
 
757
      static {
1089
      static {
758
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1090
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
759
          byId.put((int)field._thriftId, field);
-
 
760
          byName.put(field.getFieldName(), field);
1091
          byName.put(field.getFieldName(), field);
761
        }
1092
        }
762
      }
1093
      }
763
 
1094
 
764
      /**
1095
      /**
765
       * Find the _Fields constant that matches fieldId, or null if its not found.
1096
       * Find the _Fields constant that matches fieldId, or null if its not found.
766
       */
1097
       */
767
      public static _Fields findByThriftId(int fieldId) {
1098
      public static _Fields findByThriftId(int fieldId) {
768
        return byId.get(fieldId);
1099
        switch(fieldId) {
-
 
1100
          case 1: // SEARCH_FILTER
-
 
1101
            return SEARCH_FILTER;
-
 
1102
          default:
-
 
1103
            return null;
-
 
1104
        }
769
      }
1105
      }
770
 
1106
 
771
      /**
1107
      /**
772
       * Find the _Fields constant that matches fieldId, throwing an exception
1108
       * Find the _Fields constant that matches fieldId, throwing an exception
773
       * if it is not found.
1109
       * if it is not found.
Line 802... Line 1138...
802
      }
1138
      }
803
    }
1139
    }
804
 
1140
 
805
    // isset id assignments
1141
    // isset id assignments
806
 
1142
 
807
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1143
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
808
      put(_Fields.SEARCH_FILTER, new FieldMetaData("searchFilter", TFieldRequirementType.DEFAULT, 
-
 
809
          new StructMetaData(TType.STRUCT, SearchFilter.class)));
-
 
810
    }});
-
 
811
 
-
 
812
    static {
1144
    static {
-
 
1145
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1146
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1147
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
-
 
1148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
813
      FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);
1149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);
814
    }
1150
    }
815
 
1151
 
816
    public getTickets_args() {
1152
    public getTickets_args() {
817
    }
1153
    }
818
 
1154
 
Line 834... Line 1170...
834
 
1170
 
835
    public getTickets_args deepCopy() {
1171
    public getTickets_args deepCopy() {
836
      return new getTickets_args(this);
1172
      return new getTickets_args(this);
837
    }
1173
    }
838
 
1174
 
839
    @Deprecated
1175
    @Override
840
    public getTickets_args clone() {
1176
    public void clear() {
841
      return new getTickets_args(this);
1177
      this.searchFilter = null;
842
    }
1178
    }
843
 
1179
 
844
    public SearchFilter getSearchFilter() {
1180
    public SearchFilter getSearchFilter() {
845
      return this.searchFilter;
1181
      return this.searchFilter;
846
    }
1182
    }
847
 
1183
 
848
    public getTickets_args setSearchFilter(SearchFilter searchFilter) {
1184
    public void setSearchFilter(SearchFilter searchFilter) {
849
      this.searchFilter = searchFilter;
1185
      this.searchFilter = searchFilter;
850
      return this;
-
 
851
    }
1186
    }
852
 
1187
 
853
    public void unsetSearchFilter() {
1188
    public void unsetSearchFilter() {
854
      this.searchFilter = null;
1189
      this.searchFilter = null;
855
    }
1190
    }
856
 
1191
 
857
    /** Returns true if field searchFilter is set (has been asigned a value) and false otherwise */
1192
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
858
    public boolean isSetSearchFilter() {
1193
    public boolean isSetSearchFilter() {
859
      return this.searchFilter != null;
1194
      return this.searchFilter != null;
860
    }
1195
    }
861
 
1196
 
862
    public void setSearchFilterIsSet(boolean value) {
1197
    public void setSearchFilterIsSet(boolean value) {
Line 876... Line 1211...
876
        break;
1211
        break;
877
 
1212
 
878
      }
1213
      }
879
    }
1214
    }
880
 
1215
 
881
    public void setFieldValue(int fieldID, Object value) {
-
 
882
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
883
    }
-
 
884
 
-
 
885
    public Object getFieldValue(_Fields field) {
1216
    public Object getFieldValue(_Fields field) {
886
      switch (field) {
1217
      switch (field) {
887
      case SEARCH_FILTER:
1218
      case SEARCH_FILTER:
888
        return getSearchFilter();
1219
        return getSearchFilter();
889
 
1220
 
890
      }
1221
      }
891
      throw new IllegalStateException();
1222
      throw new IllegalStateException();
892
    }
1223
    }
893
 
1224
 
894
    public Object getFieldValue(int fieldId) {
-
 
895
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
896
    }
-
 
897
 
-
 
898
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1225
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
899
    public boolean isSet(_Fields field) {
1226
    public boolean isSet(_Fields field) {
-
 
1227
      if (field == null) {
-
 
1228
        throw new IllegalArgumentException();
-
 
1229
      }
-
 
1230
 
900
      switch (field) {
1231
      switch (field) {
901
      case SEARCH_FILTER:
1232
      case SEARCH_FILTER:
902
        return isSetSearchFilter();
1233
        return isSetSearchFilter();
903
      }
1234
      }
904
      throw new IllegalStateException();
1235
      throw new IllegalStateException();
905
    }
1236
    }
906
 
1237
 
907
    public boolean isSet(int fieldID) {
-
 
908
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
909
    }
-
 
910
 
-
 
911
    @Override
1238
    @Override
912
    public boolean equals(Object that) {
1239
    public boolean equals(Object that) {
913
      if (that == null)
1240
      if (that == null)
914
        return false;
1241
        return false;
915
      if (that instanceof getTickets_args)
1242
      if (that instanceof getTickets_args)
Line 944... Line 1271...
944
      }
1271
      }
945
 
1272
 
946
      int lastComparison = 0;
1273
      int lastComparison = 0;
947
      getTickets_args typedOther = (getTickets_args)other;
1274
      getTickets_args typedOther = (getTickets_args)other;
948
 
1275
 
949
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(isSetSearchFilter());
1276
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
950
      if (lastComparison != 0) {
1277
      if (lastComparison != 0) {
951
        return lastComparison;
1278
        return lastComparison;
952
      }
1279
      }
-
 
1280
      if (isSetSearchFilter()) {
953
      lastComparison = TBaseHelper.compareTo(searchFilter, typedOther.searchFilter);
1281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
954
      if (lastComparison != 0) {
1282
        if (lastComparison != 0) {
955
        return lastComparison;
1283
          return lastComparison;
-
 
1284
        }
956
      }
1285
      }
957
      return 0;
1286
      return 0;
958
    }
1287
    }
959
 
1288
 
-
 
1289
    public _Fields fieldForId(int fieldId) {
-
 
1290
      return _Fields.findByThriftId(fieldId);
-
 
1291
    }
-
 
1292
 
960
    public void read(TProtocol iprot) throws TException {
1293
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
961
      TField field;
1294
      org.apache.thrift.protocol.TField field;
962
      iprot.readStructBegin();
1295
      iprot.readStructBegin();
963
      while (true)
1296
      while (true)
964
      {
1297
      {
965
        field = iprot.readFieldBegin();
1298
        field = iprot.readFieldBegin();
966
        if (field.type == TType.STOP) { 
1299
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
967
          break;
1300
          break;
968
        }
1301
        }
969
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
970
        if (fieldId == null) {
-
 
971
          TProtocolUtil.skip(iprot, field.type);
-
 
972
        } else {
-
 
973
          switch (fieldId) {
1302
        switch (field.id) {
974
            case SEARCH_FILTER:
1303
          case 1: // SEARCH_FILTER
975
              if (field.type == TType.STRUCT) {
1304
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
976
                this.searchFilter = new SearchFilter();
1305
              this.searchFilter = new SearchFilter();
977
                this.searchFilter.read(iprot);
1306
              this.searchFilter.read(iprot);
978
              } else { 
1307
            } else { 
979
                TProtocolUtil.skip(iprot, field.type);
1308
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
980
              }
1309
            }
981
              break;
1310
            break;
982
          }
1311
          default:
983
          iprot.readFieldEnd();
1312
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
984
        }
1313
        }
-
 
1314
        iprot.readFieldEnd();
985
      }
1315
      }
986
      iprot.readStructEnd();
1316
      iprot.readStructEnd();
987
      validate();
1317
      validate();
988
    }
1318
    }
989
 
1319
 
990
    public void write(TProtocol oprot) throws TException {
1320
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
991
      validate();
1321
      validate();
992
 
1322
 
993
      oprot.writeStructBegin(STRUCT_DESC);
1323
      oprot.writeStructBegin(STRUCT_DESC);
994
      if (this.searchFilter != null) {
1324
      if (this.searchFilter != null) {
995
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
1325
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
Line 1014... Line 1344...
1014
      first = false;
1344
      first = false;
1015
      sb.append(")");
1345
      sb.append(")");
1016
      return sb.toString();
1346
      return sb.toString();
1017
    }
1347
    }
1018
 
1348
 
1019
    public void validate() throws TException {
1349
    public void validate() throws org.apache.thrift.TException {
1020
      // check for required fields
1350
      // check for required fields
1021
    }
1351
    }
1022
 
1352
 
-
 
1353
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1354
      try {
-
 
1355
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1356
      } catch (org.apache.thrift.TException te) {
-
 
1357
        throw new java.io.IOException(te);
-
 
1358
      }
-
 
1359
    }
-
 
1360
 
-
 
1361
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1362
      try {
-
 
1363
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1364
      } catch (org.apache.thrift.TException te) {
-
 
1365
        throw new java.io.IOException(te);
-
 
1366
      }
-
 
1367
    }
-
 
1368
 
1023
  }
1369
  }
1024
 
1370
 
1025
  public static class getTickets_result implements TBase<getTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_result>   {
1371
  public static class getTickets_result implements org.apache.thrift.TBase<getTickets_result, getTickets_result._Fields>, java.io.Serializable, Cloneable   {
1026
    private static final TStruct STRUCT_DESC = new TStruct("getTickets_result");
1372
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_result");
1027
 
1373
 
1028
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
1374
    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);
1029
 
1375
 
1030
    private List<Ticket> success;
1376
    private List<Ticket> success; // required
1031
 
1377
 
1032
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1378
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1033
    public enum _Fields implements TFieldIdEnum {
1379
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1034
      SUCCESS((short)0, "success");
1380
      SUCCESS((short)0, "success");
1035
 
1381
 
1036
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1037
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1382
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1038
 
1383
 
1039
      static {
1384
      static {
1040
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1385
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1041
          byId.put((int)field._thriftId, field);
-
 
1042
          byName.put(field.getFieldName(), field);
1386
          byName.put(field.getFieldName(), field);
1043
        }
1387
        }
1044
      }
1388
      }
1045
 
1389
 
1046
      /**
1390
      /**
1047
       * Find the _Fields constant that matches fieldId, or null if its not found.
1391
       * Find the _Fields constant that matches fieldId, or null if its not found.
1048
       */
1392
       */
1049
      public static _Fields findByThriftId(int fieldId) {
1393
      public static _Fields findByThriftId(int fieldId) {
1050
        return byId.get(fieldId);
1394
        switch(fieldId) {
-
 
1395
          case 0: // SUCCESS
-
 
1396
            return SUCCESS;
-
 
1397
          default:
-
 
1398
            return null;
-
 
1399
        }
1051
      }
1400
      }
1052
 
1401
 
1053
      /**
1402
      /**
1054
       * Find the _Fields constant that matches fieldId, throwing an exception
1403
       * Find the _Fields constant that matches fieldId, throwing an exception
1055
       * if it is not found.
1404
       * if it is not found.
Line 1084... Line 1433...
1084
      }
1433
      }
1085
    }
1434
    }
1086
 
1435
 
1087
    // isset id assignments
1436
    // isset id assignments
1088
 
1437
 
1089
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1438
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1090
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
1091
          new ListMetaData(TType.LIST, 
-
 
1092
              new StructMetaData(TType.STRUCT, Ticket.class))));
-
 
1093
    }});
-
 
1094
 
-
 
1095
    static {
1439
    static {
-
 
1440
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1441
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1442
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
1443
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class))));
-
 
1444
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1096
      FieldMetaData.addStructMetaDataMap(getTickets_result.class, metaDataMap);
1445
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTickets_result.class, metaDataMap);
1097
    }
1446
    }
1098
 
1447
 
1099
    public getTickets_result() {
1448
    public getTickets_result() {
1100
    }
1449
    }
1101
 
1450
 
Line 1121... Line 1470...
1121
 
1470
 
1122
    public getTickets_result deepCopy() {
1471
    public getTickets_result deepCopy() {
1123
      return new getTickets_result(this);
1472
      return new getTickets_result(this);
1124
    }
1473
    }
1125
 
1474
 
1126
    @Deprecated
1475
    @Override
1127
    public getTickets_result clone() {
1476
    public void clear() {
1128
      return new getTickets_result(this);
1477
      this.success = null;
1129
    }
1478
    }
1130
 
1479
 
1131
    public int getSuccessSize() {
1480
    public int getSuccessSize() {
1132
      return (this.success == null) ? 0 : this.success.size();
1481
      return (this.success == null) ? 0 : this.success.size();
1133
    }
1482
    }
Line 1145... Line 1494...
1145
 
1494
 
1146
    public List<Ticket> getSuccess() {
1495
    public List<Ticket> getSuccess() {
1147
      return this.success;
1496
      return this.success;
1148
    }
1497
    }
1149
 
1498
 
1150
    public getTickets_result setSuccess(List<Ticket> success) {
1499
    public void setSuccess(List<Ticket> success) {
1151
      this.success = success;
1500
      this.success = success;
1152
      return this;
-
 
1153
    }
1501
    }
1154
 
1502
 
1155
    public void unsetSuccess() {
1503
    public void unsetSuccess() {
1156
      this.success = null;
1504
      this.success = null;
1157
    }
1505
    }
1158
 
1506
 
1159
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
1507
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1160
    public boolean isSetSuccess() {
1508
    public boolean isSetSuccess() {
1161
      return this.success != null;
1509
      return this.success != null;
1162
    }
1510
    }
1163
 
1511
 
1164
    public void setSuccessIsSet(boolean value) {
1512
    public void setSuccessIsSet(boolean value) {
Line 1178... Line 1526...
1178
        break;
1526
        break;
1179
 
1527
 
1180
      }
1528
      }
1181
    }
1529
    }
1182
 
1530
 
1183
    public void setFieldValue(int fieldID, Object value) {
-
 
1184
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1185
    }
-
 
1186
 
-
 
1187
    public Object getFieldValue(_Fields field) {
1531
    public Object getFieldValue(_Fields field) {
1188
      switch (field) {
1532
      switch (field) {
1189
      case SUCCESS:
1533
      case SUCCESS:
1190
        return getSuccess();
1534
        return getSuccess();
1191
 
1535
 
1192
      }
1536
      }
1193
      throw new IllegalStateException();
1537
      throw new IllegalStateException();
1194
    }
1538
    }
1195
 
1539
 
1196
    public Object getFieldValue(int fieldId) {
-
 
1197
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1198
    }
-
 
1199
 
-
 
1200
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1540
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1201
    public boolean isSet(_Fields field) {
1541
    public boolean isSet(_Fields field) {
-
 
1542
      if (field == null) {
-
 
1543
        throw new IllegalArgumentException();
-
 
1544
      }
-
 
1545
 
1202
      switch (field) {
1546
      switch (field) {
1203
      case SUCCESS:
1547
      case SUCCESS:
1204
        return isSetSuccess();
1548
        return isSetSuccess();
1205
      }
1549
      }
1206
      throw new IllegalStateException();
1550
      throw new IllegalStateException();
1207
    }
1551
    }
1208
 
1552
 
1209
    public boolean isSet(int fieldID) {
-
 
1210
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1211
    }
-
 
1212
 
-
 
1213
    @Override
1553
    @Override
1214
    public boolean equals(Object that) {
1554
    public boolean equals(Object that) {
1215
      if (that == null)
1555
      if (that == null)
1216
        return false;
1556
        return false;
1217
      if (that instanceof getTickets_result)
1557
      if (that instanceof getTickets_result)
Line 1246... Line 1586...
1246
      }
1586
      }
1247
 
1587
 
1248
      int lastComparison = 0;
1588
      int lastComparison = 0;
1249
      getTickets_result typedOther = (getTickets_result)other;
1589
      getTickets_result typedOther = (getTickets_result)other;
1250
 
1590
 
1251
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
1591
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1252
      if (lastComparison != 0) {
1592
      if (lastComparison != 0) {
1253
        return lastComparison;
1593
        return lastComparison;
1254
      }
1594
      }
-
 
1595
      if (isSetSuccess()) {
1255
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
1596
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
1256
      if (lastComparison != 0) {
1597
        if (lastComparison != 0) {
1257
        return lastComparison;
1598
          return lastComparison;
-
 
1599
        }
1258
      }
1600
      }
1259
      return 0;
1601
      return 0;
1260
    }
1602
    }
1261
 
1603
 
-
 
1604
    public _Fields fieldForId(int fieldId) {
-
 
1605
      return _Fields.findByThriftId(fieldId);
-
 
1606
    }
-
 
1607
 
1262
    public void read(TProtocol iprot) throws TException {
1608
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1263
      TField field;
1609
      org.apache.thrift.protocol.TField field;
1264
      iprot.readStructBegin();
1610
      iprot.readStructBegin();
1265
      while (true)
1611
      while (true)
1266
      {
1612
      {
1267
        field = iprot.readFieldBegin();
1613
        field = iprot.readFieldBegin();
1268
        if (field.type == TType.STOP) { 
1614
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1269
          break;
1615
          break;
1270
        }
1616
        }
1271
        _Fields fieldId = _Fields.findByThriftId(field.id);
1617
        switch (field.id) {
1272
        if (fieldId == null) {
1618
          case 0: // SUCCESS
1273
          TProtocolUtil.skip(iprot, field.type);
1619
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
1274
        } else {
1620
              {
1275
          switch (fieldId) {
1621
                org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
1276
            case SUCCESS:
1622
                this.success = new ArrayList<Ticket>(_list8.size);
1277
              if (field.type == TType.LIST) {
1623
                for (int _i9 = 0; _i9 < _list8.size; ++_i9)
1278
                {
1624
                {
1279
                  TList _list8 = iprot.readListBegin();
-
 
1280
                  this.success = new ArrayList<Ticket>(_list8.size);
-
 
1281
                  for (int _i9 = 0; _i9 < _list8.size; ++_i9)
-
 
1282
                  {
-
 
1283
                    Ticket _elem10;
1625
                  Ticket _elem10; // required
1284
                    _elem10 = new Ticket();
1626
                  _elem10 = new Ticket();
1285
                    _elem10.read(iprot);
1627
                  _elem10.read(iprot);
1286
                    this.success.add(_elem10);
1628
                  this.success.add(_elem10);
1287
                  }
-
 
1288
                  iprot.readListEnd();
-
 
1289
                }
1629
                }
1290
              } else { 
1630
                iprot.readListEnd();
1291
                TProtocolUtil.skip(iprot, field.type);
-
 
1292
              }
1631
              }
1293
              break;
1632
            } else { 
-
 
1633
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1294
          }
1634
            }
1295
          iprot.readFieldEnd();
1635
            break;
-
 
1636
          default:
-
 
1637
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1296
        }
1638
        }
-
 
1639
        iprot.readFieldEnd();
1297
      }
1640
      }
1298
      iprot.readStructEnd();
1641
      iprot.readStructEnd();
1299
      validate();
1642
      validate();
1300
    }
1643
    }
1301
 
1644
 
1302
    public void write(TProtocol oprot) throws TException {
1645
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1303
      oprot.writeStructBegin(STRUCT_DESC);
1646
      oprot.writeStructBegin(STRUCT_DESC);
1304
 
1647
 
1305
      if (this.isSetSuccess()) {
1648
      if (this.isSetSuccess()) {
1306
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1649
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1307
        {
1650
        {
1308
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
1651
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1309
          for (Ticket _iter11 : this.success)
1652
          for (Ticket _iter11 : this.success)
1310
          {
1653
          {
1311
            _iter11.write(oprot);
1654
            _iter11.write(oprot);
1312
          }
1655
          }
1313
          oprot.writeListEnd();
1656
          oprot.writeListEnd();
Line 1332... Line 1675...
1332
      first = false;
1675
      first = false;
1333
      sb.append(")");
1676
      sb.append(")");
1334
      return sb.toString();
1677
      return sb.toString();
1335
    }
1678
    }
1336
 
1679
 
1337
    public void validate() throws TException {
1680
    public void validate() throws org.apache.thrift.TException {
1338
      // check for required fields
1681
      // check for required fields
1339
    }
1682
    }
1340
 
1683
 
-
 
1684
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1685
      try {
-
 
1686
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1687
      } catch (org.apache.thrift.TException te) {
-
 
1688
        throw new java.io.IOException(te);
-
 
1689
      }
-
 
1690
    }
-
 
1691
 
-
 
1692
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1693
      try {
-
 
1694
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1695
      } catch (org.apache.thrift.TException te) {
-
 
1696
        throw new java.io.IOException(te);
-
 
1697
      }
-
 
1698
    }
-
 
1699
 
1341
  }
1700
  }
1342
 
1701
 
1343
  public static class getUnassignedTickets_args implements TBase<getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_args>   {
1702
  public static class getUnassignedTickets_args implements org.apache.thrift.TBase<getUnassignedTickets_args, getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable   {
1344
    private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_args");
1703
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnassignedTickets_args");
1345
 
1704
 
1346
 
1705
 
1347
 
1706
 
1348
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1707
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1349
    public enum _Fields implements TFieldIdEnum {
1708
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1350
;
1709
;
1351
 
1710
 
1352
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1353
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1711
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1354
 
1712
 
1355
      static {
1713
      static {
1356
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1714
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1357
          byId.put((int)field._thriftId, field);
-
 
1358
          byName.put(field.getFieldName(), field);
1715
          byName.put(field.getFieldName(), field);
1359
        }
1716
        }
1360
      }
1717
      }
1361
 
1718
 
1362
      /**
1719
      /**
1363
       * Find the _Fields constant that matches fieldId, or null if its not found.
1720
       * Find the _Fields constant that matches fieldId, or null if its not found.
1364
       */
1721
       */
1365
      public static _Fields findByThriftId(int fieldId) {
1722
      public static _Fields findByThriftId(int fieldId) {
1366
        return byId.get(fieldId);
1723
        switch(fieldId) {
-
 
1724
          default:
-
 
1725
            return null;
-
 
1726
        }
1367
      }
1727
      }
1368
 
1728
 
1369
      /**
1729
      /**
1370
       * Find the _Fields constant that matches fieldId, throwing an exception
1730
       * Find the _Fields constant that matches fieldId, throwing an exception
1371
       * if it is not found.
1731
       * if it is not found.
Line 1397... Line 1757...
1397
 
1757
 
1398
      public String getFieldName() {
1758
      public String getFieldName() {
1399
        return _fieldName;
1759
        return _fieldName;
1400
      }
1760
      }
1401
    }
1761
    }
1402
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1762
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1403
    }});
-
 
1404
 
-
 
1405
    static {
1763
    static {
-
 
1764
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1765
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1406
      FieldMetaData.addStructMetaDataMap(getUnassignedTickets_args.class, metaDataMap);
1766
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnassignedTickets_args.class, metaDataMap);
1407
    }
1767
    }
1408
 
1768
 
1409
    public getUnassignedTickets_args() {
1769
    public getUnassignedTickets_args() {
1410
    }
1770
    }
1411
 
1771
 
Line 1417... Line 1777...
1417
 
1777
 
1418
    public getUnassignedTickets_args deepCopy() {
1778
    public getUnassignedTickets_args deepCopy() {
1419
      return new getUnassignedTickets_args(this);
1779
      return new getUnassignedTickets_args(this);
1420
    }
1780
    }
1421
 
1781
 
1422
    @Deprecated
1782
    @Override
1423
    public getUnassignedTickets_args clone() {
1783
    public void clear() {
1424
      return new getUnassignedTickets_args(this);
-
 
1425
    }
1784
    }
1426
 
1785
 
1427
    public void setFieldValue(_Fields field, Object value) {
1786
    public void setFieldValue(_Fields field, Object value) {
1428
      switch (field) {
1787
      switch (field) {
1429
      }
1788
      }
1430
    }
1789
    }
1431
 
1790
 
1432
    public void setFieldValue(int fieldID, Object value) {
-
 
1433
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1434
    }
-
 
1435
 
-
 
1436
    public Object getFieldValue(_Fields field) {
1791
    public Object getFieldValue(_Fields field) {
1437
      switch (field) {
1792
      switch (field) {
1438
      }
1793
      }
1439
      throw new IllegalStateException();
1794
      throw new IllegalStateException();
1440
    }
1795
    }
1441
 
1796
 
1442
    public Object getFieldValue(int fieldId) {
-
 
1443
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1444
    }
-
 
1445
 
-
 
1446
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1797
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1447
    public boolean isSet(_Fields field) {
1798
    public boolean isSet(_Fields field) {
-
 
1799
      if (field == null) {
-
 
1800
        throw new IllegalArgumentException();
-
 
1801
      }
-
 
1802
 
1448
      switch (field) {
1803
      switch (field) {
1449
      }
1804
      }
1450
      throw new IllegalStateException();
1805
      throw new IllegalStateException();
1451
    }
1806
    }
1452
 
1807
 
1453
    public boolean isSet(int fieldID) {
-
 
1454
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1455
    }
-
 
1456
 
-
 
1457
    @Override
1808
    @Override
1458
    public boolean equals(Object that) {
1809
    public boolean equals(Object that) {
1459
      if (that == null)
1810
      if (that == null)
1460
        return false;
1811
        return false;
1461
      if (that instanceof getUnassignedTickets_args)
1812
      if (that instanceof getUnassignedTickets_args)
Line 1484... Line 1835...
1484
      getUnassignedTickets_args typedOther = (getUnassignedTickets_args)other;
1835
      getUnassignedTickets_args typedOther = (getUnassignedTickets_args)other;
1485
 
1836
 
1486
      return 0;
1837
      return 0;
1487
    }
1838
    }
1488
 
1839
 
-
 
1840
    public _Fields fieldForId(int fieldId) {
-
 
1841
      return _Fields.findByThriftId(fieldId);
-
 
1842
    }
-
 
1843
 
1489
    public void read(TProtocol iprot) throws TException {
1844
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1490
      TField field;
1845
      org.apache.thrift.protocol.TField field;
1491
      iprot.readStructBegin();
1846
      iprot.readStructBegin();
1492
      while (true)
1847
      while (true)
1493
      {
1848
      {
1494
        field = iprot.readFieldBegin();
1849
        field = iprot.readFieldBegin();
1495
        if (field.type == TType.STOP) { 
1850
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1496
          break;
1851
          break;
1497
        }
1852
        }
1498
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1499
        if (fieldId == null) {
-
 
1500
          TProtocolUtil.skip(iprot, field.type);
-
 
1501
        } else {
-
 
1502
          switch (fieldId) {
1853
        switch (field.id) {
1503
          }
1854
          default:
1504
          iprot.readFieldEnd();
1855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1505
        }
1856
        }
-
 
1857
        iprot.readFieldEnd();
1506
      }
1858
      }
1507
      iprot.readStructEnd();
1859
      iprot.readStructEnd();
1508
      validate();
1860
      validate();
1509
    }
1861
    }
1510
 
1862
 
1511
    public void write(TProtocol oprot) throws TException {
1863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1512
      validate();
1864
      validate();
1513
 
1865
 
1514
      oprot.writeStructBegin(STRUCT_DESC);
1866
      oprot.writeStructBegin(STRUCT_DESC);
1515
      oprot.writeFieldStop();
1867
      oprot.writeFieldStop();
1516
      oprot.writeStructEnd();
1868
      oprot.writeStructEnd();
Line 1523... Line 1875...
1523
 
1875
 
1524
      sb.append(")");
1876
      sb.append(")");
1525
      return sb.toString();
1877
      return sb.toString();
1526
    }
1878
    }
1527
 
1879
 
1528
    public void validate() throws TException {
1880
    public void validate() throws org.apache.thrift.TException {
1529
      // check for required fields
1881
      // check for required fields
1530
    }
1882
    }
1531
 
1883
 
-
 
1884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1885
      try {
-
 
1886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1887
      } catch (org.apache.thrift.TException te) {
-
 
1888
        throw new java.io.IOException(te);
-
 
1889
      }
-
 
1890
    }
-
 
1891
 
-
 
1892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1893
      try {
-
 
1894
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1895
      } catch (org.apache.thrift.TException te) {
-
 
1896
        throw new java.io.IOException(te);
-
 
1897
      }
-
 
1898
    }
-
 
1899
 
1532
  }
1900
  }
1533
 
1901
 
1534
  public static class getUnassignedTickets_result implements TBase<getUnassignedTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUnassignedTickets_result>   {
1902
  public static class getUnassignedTickets_result implements org.apache.thrift.TBase<getUnassignedTickets_result, getUnassignedTickets_result._Fields>, java.io.Serializable, Cloneable   {
1535
    private static final TStruct STRUCT_DESC = new TStruct("getUnassignedTickets_result");
1903
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnassignedTickets_result");
1536
 
1904
 
1537
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
1905
    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);
1538
 
1906
 
1539
    private List<Ticket> success;
1907
    private List<Ticket> success; // required
1540
 
1908
 
1541
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1909
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1542
    public enum _Fields implements TFieldIdEnum {
1910
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1543
      SUCCESS((short)0, "success");
1911
      SUCCESS((short)0, "success");
1544
 
1912
 
1545
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1546
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1913
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1547
 
1914
 
1548
      static {
1915
      static {
1549
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1916
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1550
          byId.put((int)field._thriftId, field);
-
 
1551
          byName.put(field.getFieldName(), field);
1917
          byName.put(field.getFieldName(), field);
1552
        }
1918
        }
1553
      }
1919
      }
1554
 
1920
 
1555
      /**
1921
      /**
1556
       * Find the _Fields constant that matches fieldId, or null if its not found.
1922
       * Find the _Fields constant that matches fieldId, or null if its not found.
1557
       */
1923
       */
1558
      public static _Fields findByThriftId(int fieldId) {
1924
      public static _Fields findByThriftId(int fieldId) {
1559
        return byId.get(fieldId);
1925
        switch(fieldId) {
-
 
1926
          case 0: // SUCCESS
-
 
1927
            return SUCCESS;
-
 
1928
          default:
-
 
1929
            return null;
-
 
1930
        }
1560
      }
1931
      }
1561
 
1932
 
1562
      /**
1933
      /**
1563
       * Find the _Fields constant that matches fieldId, throwing an exception
1934
       * Find the _Fields constant that matches fieldId, throwing an exception
1564
       * if it is not found.
1935
       * if it is not found.
Line 1593... Line 1964...
1593
      }
1964
      }
1594
    }
1965
    }
1595
 
1966
 
1596
    // isset id assignments
1967
    // isset id assignments
1597
 
1968
 
1598
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1969
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1599
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
1600
          new ListMetaData(TType.LIST, 
-
 
1601
              new StructMetaData(TType.STRUCT, Ticket.class))));
-
 
1602
    }});
-
 
1603
 
-
 
1604
    static {
1970
    static {
-
 
1971
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1972
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1973
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
1974
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class))));
-
 
1975
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1605
      FieldMetaData.addStructMetaDataMap(getUnassignedTickets_result.class, metaDataMap);
1976
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnassignedTickets_result.class, metaDataMap);
1606
    }
1977
    }
1607
 
1978
 
1608
    public getUnassignedTickets_result() {
1979
    public getUnassignedTickets_result() {
1609
    }
1980
    }
1610
 
1981
 
Line 1630... Line 2001...
1630
 
2001
 
1631
    public getUnassignedTickets_result deepCopy() {
2002
    public getUnassignedTickets_result deepCopy() {
1632
      return new getUnassignedTickets_result(this);
2003
      return new getUnassignedTickets_result(this);
1633
    }
2004
    }
1634
 
2005
 
1635
    @Deprecated
2006
    @Override
1636
    public getUnassignedTickets_result clone() {
2007
    public void clear() {
1637
      return new getUnassignedTickets_result(this);
2008
      this.success = null;
1638
    }
2009
    }
1639
 
2010
 
1640
    public int getSuccessSize() {
2011
    public int getSuccessSize() {
1641
      return (this.success == null) ? 0 : this.success.size();
2012
      return (this.success == null) ? 0 : this.success.size();
1642
    }
2013
    }
Line 1654... Line 2025...
1654
 
2025
 
1655
    public List<Ticket> getSuccess() {
2026
    public List<Ticket> getSuccess() {
1656
      return this.success;
2027
      return this.success;
1657
    }
2028
    }
1658
 
2029
 
1659
    public getUnassignedTickets_result setSuccess(List<Ticket> success) {
2030
    public void setSuccess(List<Ticket> success) {
1660
      this.success = success;
2031
      this.success = success;
1661
      return this;
-
 
1662
    }
2032
    }
1663
 
2033
 
1664
    public void unsetSuccess() {
2034
    public void unsetSuccess() {
1665
      this.success = null;
2035
      this.success = null;
1666
    }
2036
    }
1667
 
2037
 
1668
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
2038
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1669
    public boolean isSetSuccess() {
2039
    public boolean isSetSuccess() {
1670
      return this.success != null;
2040
      return this.success != null;
1671
    }
2041
    }
1672
 
2042
 
1673
    public void setSuccessIsSet(boolean value) {
2043
    public void setSuccessIsSet(boolean value) {
Line 1687... Line 2057...
1687
        break;
2057
        break;
1688
 
2058
 
1689
      }
2059
      }
1690
    }
2060
    }
1691
 
2061
 
1692
    public void setFieldValue(int fieldID, Object value) {
-
 
1693
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1694
    }
-
 
1695
 
-
 
1696
    public Object getFieldValue(_Fields field) {
2062
    public Object getFieldValue(_Fields field) {
1697
      switch (field) {
2063
      switch (field) {
1698
      case SUCCESS:
2064
      case SUCCESS:
1699
        return getSuccess();
2065
        return getSuccess();
1700
 
2066
 
1701
      }
2067
      }
1702
      throw new IllegalStateException();
2068
      throw new IllegalStateException();
1703
    }
2069
    }
1704
 
2070
 
1705
    public Object getFieldValue(int fieldId) {
-
 
1706
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1707
    }
-
 
1708
 
-
 
1709
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2071
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1710
    public boolean isSet(_Fields field) {
2072
    public boolean isSet(_Fields field) {
-
 
2073
      if (field == null) {
-
 
2074
        throw new IllegalArgumentException();
-
 
2075
      }
-
 
2076
 
1711
      switch (field) {
2077
      switch (field) {
1712
      case SUCCESS:
2078
      case SUCCESS:
1713
        return isSetSuccess();
2079
        return isSetSuccess();
1714
      }
2080
      }
1715
      throw new IllegalStateException();
2081
      throw new IllegalStateException();
1716
    }
2082
    }
1717
 
2083
 
1718
    public boolean isSet(int fieldID) {
-
 
1719
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1720
    }
-
 
1721
 
-
 
1722
    @Override
2084
    @Override
1723
    public boolean equals(Object that) {
2085
    public boolean equals(Object that) {
1724
      if (that == null)
2086
      if (that == null)
1725
        return false;
2087
        return false;
1726
      if (that instanceof getUnassignedTickets_result)
2088
      if (that instanceof getUnassignedTickets_result)
Line 1755... Line 2117...
1755
      }
2117
      }
1756
 
2118
 
1757
      int lastComparison = 0;
2119
      int lastComparison = 0;
1758
      getUnassignedTickets_result typedOther = (getUnassignedTickets_result)other;
2120
      getUnassignedTickets_result typedOther = (getUnassignedTickets_result)other;
1759
 
2121
 
1760
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
2122
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1761
      if (lastComparison != 0) {
2123
      if (lastComparison != 0) {
1762
        return lastComparison;
2124
        return lastComparison;
1763
      }
2125
      }
-
 
2126
      if (isSetSuccess()) {
1764
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
2127
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
1765
      if (lastComparison != 0) {
2128
        if (lastComparison != 0) {
1766
        return lastComparison;
2129
          return lastComparison;
-
 
2130
        }
1767
      }
2131
      }
1768
      return 0;
2132
      return 0;
1769
    }
2133
    }
1770
 
2134
 
-
 
2135
    public _Fields fieldForId(int fieldId) {
-
 
2136
      return _Fields.findByThriftId(fieldId);
-
 
2137
    }
-
 
2138
 
1771
    public void read(TProtocol iprot) throws TException {
2139
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1772
      TField field;
2140
      org.apache.thrift.protocol.TField field;
1773
      iprot.readStructBegin();
2141
      iprot.readStructBegin();
1774
      while (true)
2142
      while (true)
1775
      {
2143
      {
1776
        field = iprot.readFieldBegin();
2144
        field = iprot.readFieldBegin();
1777
        if (field.type == TType.STOP) { 
2145
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1778
          break;
2146
          break;
1779
        }
2147
        }
1780
        _Fields fieldId = _Fields.findByThriftId(field.id);
2148
        switch (field.id) {
1781
        if (fieldId == null) {
2149
          case 0: // SUCCESS
1782
          TProtocolUtil.skip(iprot, field.type);
2150
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
1783
        } else {
2151
              {
1784
          switch (fieldId) {
2152
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
1785
            case SUCCESS:
2153
                this.success = new ArrayList<Ticket>(_list12.size);
1786
              if (field.type == TType.LIST) {
2154
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
1787
                {
2155
                {
1788
                  TList _list12 = iprot.readListBegin();
-
 
1789
                  this.success = new ArrayList<Ticket>(_list12.size);
-
 
1790
                  for (int _i13 = 0; _i13 < _list12.size; ++_i13)
-
 
1791
                  {
-
 
1792
                    Ticket _elem14;
2156
                  Ticket _elem14; // required
1793
                    _elem14 = new Ticket();
2157
                  _elem14 = new Ticket();
1794
                    _elem14.read(iprot);
2158
                  _elem14.read(iprot);
1795
                    this.success.add(_elem14);
2159
                  this.success.add(_elem14);
1796
                  }
-
 
1797
                  iprot.readListEnd();
-
 
1798
                }
2160
                }
1799
              } else { 
2161
                iprot.readListEnd();
1800
                TProtocolUtil.skip(iprot, field.type);
-
 
1801
              }
2162
              }
1802
              break;
2163
            } else { 
-
 
2164
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1803
          }
2165
            }
1804
          iprot.readFieldEnd();
2166
            break;
-
 
2167
          default:
-
 
2168
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1805
        }
2169
        }
-
 
2170
        iprot.readFieldEnd();
1806
      }
2171
      }
1807
      iprot.readStructEnd();
2172
      iprot.readStructEnd();
1808
      validate();
2173
      validate();
1809
    }
2174
    }
1810
 
2175
 
1811
    public void write(TProtocol oprot) throws TException {
2176
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1812
      oprot.writeStructBegin(STRUCT_DESC);
2177
      oprot.writeStructBegin(STRUCT_DESC);
1813
 
2178
 
1814
      if (this.isSetSuccess()) {
2179
      if (this.isSetSuccess()) {
1815
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2180
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1816
        {
2181
        {
1817
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
2182
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1818
          for (Ticket _iter15 : this.success)
2183
          for (Ticket _iter15 : this.success)
1819
          {
2184
          {
1820
            _iter15.write(oprot);
2185
            _iter15.write(oprot);
1821
          }
2186
          }
1822
          oprot.writeListEnd();
2187
          oprot.writeListEnd();
Line 1841... Line 2206...
1841
      first = false;
2206
      first = false;
1842
      sb.append(")");
2207
      sb.append(")");
1843
      return sb.toString();
2208
      return sb.toString();
1844
    }
2209
    }
1845
 
2210
 
1846
    public void validate() throws TException {
2211
    public void validate() throws org.apache.thrift.TException {
1847
      // check for required fields
2212
      // check for required fields
1848
    }
2213
    }
1849
 
2214
 
-
 
2215
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2216
      try {
-
 
2217
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2218
      } catch (org.apache.thrift.TException te) {
-
 
2219
        throw new java.io.IOException(te);
-
 
2220
      }
-
 
2221
    }
-
 
2222
 
-
 
2223
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2224
      try {
-
 
2225
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2226
      } catch (org.apache.thrift.TException te) {
-
 
2227
        throw new java.io.IOException(te);
-
 
2228
      }
-
 
2229
    }
-
 
2230
 
1850
  }
2231
  }
1851
 
2232
 
1852
  public static class updateTicket_args implements TBase<updateTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateTicket_args>   {
2233
  public static class updateTicket_args implements org.apache.thrift.TBase<updateTicket_args, updateTicket_args._Fields>, java.io.Serializable, Cloneable   {
1853
    private static final TStruct STRUCT_DESC = new TStruct("updateTicket_args");
2234
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTicket_args");
1854
 
2235
 
1855
    private static final TField TICKET_FIELD_DESC = new TField("ticket", TType.STRUCT, (short)1);
2236
    private static final org.apache.thrift.protocol.TField TICKET_FIELD_DESC = new org.apache.thrift.protocol.TField("ticket", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1856
    private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)2);
2237
    private static final org.apache.thrift.protocol.TField ACTIVITY_FIELD_DESC = new org.apache.thrift.protocol.TField("activity", org.apache.thrift.protocol.TType.STRUCT, (short)2);
1857
 
2238
 
1858
    private Ticket ticket;
2239
    private Ticket ticket; // required
1859
    private Activity activity;
2240
    private Activity activity; // required
1860
 
2241
 
1861
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1862
    public enum _Fields implements TFieldIdEnum {
2243
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1863
      TICKET((short)1, "ticket"),
2244
      TICKET((short)1, "ticket"),
1864
      ACTIVITY((short)2, "activity");
2245
      ACTIVITY((short)2, "activity");
1865
 
2246
 
1866
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1867
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2247
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1868
 
2248
 
1869
      static {
2249
      static {
1870
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2250
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1871
          byId.put((int)field._thriftId, field);
-
 
1872
          byName.put(field.getFieldName(), field);
2251
          byName.put(field.getFieldName(), field);
1873
        }
2252
        }
1874
      }
2253
      }
1875
 
2254
 
1876
      /**
2255
      /**
1877
       * Find the _Fields constant that matches fieldId, or null if its not found.
2256
       * Find the _Fields constant that matches fieldId, or null if its not found.
1878
       */
2257
       */
1879
      public static _Fields findByThriftId(int fieldId) {
2258
      public static _Fields findByThriftId(int fieldId) {
1880
        return byId.get(fieldId);
2259
        switch(fieldId) {
-
 
2260
          case 1: // TICKET
-
 
2261
            return TICKET;
-
 
2262
          case 2: // ACTIVITY
-
 
2263
            return ACTIVITY;
-
 
2264
          default:
-
 
2265
            return null;
-
 
2266
        }
1881
      }
2267
      }
1882
 
2268
 
1883
      /**
2269
      /**
1884
       * Find the _Fields constant that matches fieldId, throwing an exception
2270
       * Find the _Fields constant that matches fieldId, throwing an exception
1885
       * if it is not found.
2271
       * if it is not found.
Line 1914... Line 2300...
1914
      }
2300
      }
1915
    }
2301
    }
1916
 
2302
 
1917
    // isset id assignments
2303
    // isset id assignments
1918
 
2304
 
1919
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2305
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1920
      put(_Fields.TICKET, new FieldMetaData("ticket", TFieldRequirementType.DEFAULT, 
-
 
1921
          new StructMetaData(TType.STRUCT, Ticket.class)));
-
 
1922
      put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT, 
-
 
1923
          new StructMetaData(TType.STRUCT, Activity.class)));
-
 
1924
    }});
-
 
1925
 
-
 
1926
    static {
2306
    static {
-
 
2307
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2308
      tmpMap.put(_Fields.TICKET, new org.apache.thrift.meta_data.FieldMetaData("ticket", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2309
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class)));
-
 
2310
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2311
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
-
 
2312
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1927
      FieldMetaData.addStructMetaDataMap(updateTicket_args.class, metaDataMap);
2313
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTicket_args.class, metaDataMap);
1928
    }
2314
    }
1929
 
2315
 
1930
    public updateTicket_args() {
2316
    public updateTicket_args() {
1931
    }
2317
    }
1932
 
2318
 
Line 1953... Line 2339...
1953
 
2339
 
1954
    public updateTicket_args deepCopy() {
2340
    public updateTicket_args deepCopy() {
1955
      return new updateTicket_args(this);
2341
      return new updateTicket_args(this);
1956
    }
2342
    }
1957
 
2343
 
1958
    @Deprecated
2344
    @Override
1959
    public updateTicket_args clone() {
2345
    public void clear() {
1960
      return new updateTicket_args(this);
2346
      this.ticket = null;
-
 
2347
      this.activity = null;
1961
    }
2348
    }
1962
 
2349
 
1963
    public Ticket getTicket() {
2350
    public Ticket getTicket() {
1964
      return this.ticket;
2351
      return this.ticket;
1965
    }
2352
    }
1966
 
2353
 
1967
    public updateTicket_args setTicket(Ticket ticket) {
2354
    public void setTicket(Ticket ticket) {
1968
      this.ticket = ticket;
2355
      this.ticket = ticket;
1969
      return this;
-
 
1970
    }
2356
    }
1971
 
2357
 
1972
    public void unsetTicket() {
2358
    public void unsetTicket() {
1973
      this.ticket = null;
2359
      this.ticket = null;
1974
    }
2360
    }
1975
 
2361
 
1976
    /** Returns true if field ticket is set (has been asigned a value) and false otherwise */
2362
    /** Returns true if field ticket is set (has been assigned a value) and false otherwise */
1977
    public boolean isSetTicket() {
2363
    public boolean isSetTicket() {
1978
      return this.ticket != null;
2364
      return this.ticket != null;
1979
    }
2365
    }
1980
 
2366
 
1981
    public void setTicketIsSet(boolean value) {
2367
    public void setTicketIsSet(boolean value) {
Line 1986... Line 2372...
1986
 
2372
 
1987
    public Activity getActivity() {
2373
    public Activity getActivity() {
1988
      return this.activity;
2374
      return this.activity;
1989
    }
2375
    }
1990
 
2376
 
1991
    public updateTicket_args setActivity(Activity activity) {
2377
    public void setActivity(Activity activity) {
1992
      this.activity = activity;
2378
      this.activity = activity;
1993
      return this;
-
 
1994
    }
2379
    }
1995
 
2380
 
1996
    public void unsetActivity() {
2381
    public void unsetActivity() {
1997
      this.activity = null;
2382
      this.activity = null;
1998
    }
2383
    }
1999
 
2384
 
2000
    /** Returns true if field activity is set (has been asigned a value) and false otherwise */
2385
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
2001
    public boolean isSetActivity() {
2386
    public boolean isSetActivity() {
2002
      return this.activity != null;
2387
      return this.activity != null;
2003
    }
2388
    }
2004
 
2389
 
2005
    public void setActivityIsSet(boolean value) {
2390
    public void setActivityIsSet(boolean value) {
Line 2027... Line 2412...
2027
        break;
2412
        break;
2028
 
2413
 
2029
      }
2414
      }
2030
    }
2415
    }
2031
 
2416
 
2032
    public void setFieldValue(int fieldID, Object value) {
-
 
2033
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2034
    }
-
 
2035
 
-
 
2036
    public Object getFieldValue(_Fields field) {
2417
    public Object getFieldValue(_Fields field) {
2037
      switch (field) {
2418
      switch (field) {
2038
      case TICKET:
2419
      case TICKET:
2039
        return getTicket();
2420
        return getTicket();
2040
 
2421
 
Line 2043... Line 2424...
2043
 
2424
 
2044
      }
2425
      }
2045
      throw new IllegalStateException();
2426
      throw new IllegalStateException();
2046
    }
2427
    }
2047
 
2428
 
2048
    public Object getFieldValue(int fieldId) {
-
 
2049
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2050
    }
-
 
2051
 
-
 
2052
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2429
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2053
    public boolean isSet(_Fields field) {
2430
    public boolean isSet(_Fields field) {
-
 
2431
      if (field == null) {
-
 
2432
        throw new IllegalArgumentException();
-
 
2433
      }
-
 
2434
 
2054
      switch (field) {
2435
      switch (field) {
2055
      case TICKET:
2436
      case TICKET:
2056
        return isSetTicket();
2437
        return isSetTicket();
2057
      case ACTIVITY:
2438
      case ACTIVITY:
2058
        return isSetActivity();
2439
        return isSetActivity();
2059
      }
2440
      }
2060
      throw new IllegalStateException();
2441
      throw new IllegalStateException();
2061
    }
2442
    }
2062
 
2443
 
2063
    public boolean isSet(int fieldID) {
-
 
2064
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2065
    }
-
 
2066
 
-
 
2067
    @Override
2444
    @Override
2068
    public boolean equals(Object that) {
2445
    public boolean equals(Object that) {
2069
      if (that == null)
2446
      if (that == null)
2070
        return false;
2447
        return false;
2071
      if (that instanceof updateTicket_args)
2448
      if (that instanceof updateTicket_args)
Line 2109... Line 2486...
2109
      }
2486
      }
2110
 
2487
 
2111
      int lastComparison = 0;
2488
      int lastComparison = 0;
2112
      updateTicket_args typedOther = (updateTicket_args)other;
2489
      updateTicket_args typedOther = (updateTicket_args)other;
2113
 
2490
 
2114
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(isSetTicket());
2491
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(typedOther.isSetTicket());
2115
      if (lastComparison != 0) {
2492
      if (lastComparison != 0) {
2116
        return lastComparison;
2493
        return lastComparison;
2117
      }
2494
      }
-
 
2495
      if (isSetTicket()) {
2118
      lastComparison = TBaseHelper.compareTo(ticket, typedOther.ticket);
2496
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticket, typedOther.ticket);
2119
      if (lastComparison != 0) {
2497
        if (lastComparison != 0) {
2120
        return lastComparison;
2498
          return lastComparison;
-
 
2499
        }
2121
      }
2500
      }
2122
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());
2501
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
2123
      if (lastComparison != 0) {
2502
      if (lastComparison != 0) {
2124
        return lastComparison;
2503
        return lastComparison;
2125
      }
2504
      }
-
 
2505
      if (isSetActivity()) {
2126
      lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);
2506
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
2127
      if (lastComparison != 0) {
2507
        if (lastComparison != 0) {
2128
        return lastComparison;
2508
          return lastComparison;
-
 
2509
        }
2129
      }
2510
      }
2130
      return 0;
2511
      return 0;
2131
    }
2512
    }
2132
 
2513
 
-
 
2514
    public _Fields fieldForId(int fieldId) {
-
 
2515
      return _Fields.findByThriftId(fieldId);
-
 
2516
    }
-
 
2517
 
2133
    public void read(TProtocol iprot) throws TException {
2518
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2134
      TField field;
2519
      org.apache.thrift.protocol.TField field;
2135
      iprot.readStructBegin();
2520
      iprot.readStructBegin();
2136
      while (true)
2521
      while (true)
2137
      {
2522
      {
2138
        field = iprot.readFieldBegin();
2523
        field = iprot.readFieldBegin();
2139
        if (field.type == TType.STOP) { 
2524
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2140
          break;
2525
          break;
2141
        }
2526
        }
2142
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2143
        if (fieldId == null) {
-
 
2144
          TProtocolUtil.skip(iprot, field.type);
-
 
2145
        } else {
-
 
2146
          switch (fieldId) {
2527
        switch (field.id) {
2147
            case TICKET:
2528
          case 1: // TICKET
2148
              if (field.type == TType.STRUCT) {
2529
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2149
                this.ticket = new Ticket();
2530
              this.ticket = new Ticket();
2150
                this.ticket.read(iprot);
2531
              this.ticket.read(iprot);
2151
              } else { 
2532
            } else { 
2152
                TProtocolUtil.skip(iprot, field.type);
2533
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2153
              }
2534
            }
2154
              break;
2535
            break;
2155
            case ACTIVITY:
2536
          case 2: // ACTIVITY
2156
              if (field.type == TType.STRUCT) {
2537
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2157
                this.activity = new Activity();
2538
              this.activity = new Activity();
2158
                this.activity.read(iprot);
2539
              this.activity.read(iprot);
2159
              } else { 
2540
            } else { 
2160
                TProtocolUtil.skip(iprot, field.type);
2541
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2161
              }
2542
            }
2162
              break;
2543
            break;
2163
          }
2544
          default:
2164
          iprot.readFieldEnd();
2545
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2165
        }
2546
        }
-
 
2547
        iprot.readFieldEnd();
2166
      }
2548
      }
2167
      iprot.readStructEnd();
2549
      iprot.readStructEnd();
2168
      validate();
2550
      validate();
2169
    }
2551
    }
2170
 
2552
 
2171
    public void write(TProtocol oprot) throws TException {
2553
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2172
      validate();
2554
      validate();
2173
 
2555
 
2174
      oprot.writeStructBegin(STRUCT_DESC);
2556
      oprot.writeStructBegin(STRUCT_DESC);
2175
      if (this.ticket != null) {
2557
      if (this.ticket != null) {
2176
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
2558
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
Line 2208... Line 2590...
2208
      first = false;
2590
      first = false;
2209
      sb.append(")");
2591
      sb.append(")");
2210
      return sb.toString();
2592
      return sb.toString();
2211
    }
2593
    }
2212
 
2594
 
2213
    public void validate() throws TException {
2595
    public void validate() throws org.apache.thrift.TException {
2214
      // check for required fields
2596
      // check for required fields
2215
    }
2597
    }
2216
 
2598
 
-
 
2599
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2600
      try {
-
 
2601
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2602
      } catch (org.apache.thrift.TException te) {
-
 
2603
        throw new java.io.IOException(te);
-
 
2604
      }
-
 
2605
    }
-
 
2606
 
-
 
2607
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2608
      try {
-
 
2609
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2610
      } catch (org.apache.thrift.TException te) {
-
 
2611
        throw new java.io.IOException(te);
-
 
2612
      }
-
 
2613
    }
-
 
2614
 
2217
  }
2615
  }
2218
 
2616
 
2219
  public static class updateTicket_result implements TBase<updateTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateTicket_result>   {
2617
  public static class updateTicket_result implements org.apache.thrift.TBase<updateTicket_result, updateTicket_result._Fields>, java.io.Serializable, Cloneable   {
2220
    private static final TStruct STRUCT_DESC = new TStruct("updateTicket_result");
2618
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTicket_result");
2221
 
2619
 
2222
 
2620
 
2223
 
2621
 
2224
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2225
    public enum _Fields implements TFieldIdEnum {
2623
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2226
;
2624
;
2227
 
2625
 
2228
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2229
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2626
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2230
 
2627
 
2231
      static {
2628
      static {
2232
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2629
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2233
          byId.put((int)field._thriftId, field);
-
 
2234
          byName.put(field.getFieldName(), field);
2630
          byName.put(field.getFieldName(), field);
2235
        }
2631
        }
2236
      }
2632
      }
2237
 
2633
 
2238
      /**
2634
      /**
2239
       * Find the _Fields constant that matches fieldId, or null if its not found.
2635
       * Find the _Fields constant that matches fieldId, or null if its not found.
2240
       */
2636
       */
2241
      public static _Fields findByThriftId(int fieldId) {
2637
      public static _Fields findByThriftId(int fieldId) {
2242
        return byId.get(fieldId);
2638
        switch(fieldId) {
-
 
2639
          default:
-
 
2640
            return null;
-
 
2641
        }
2243
      }
2642
      }
2244
 
2643
 
2245
      /**
2644
      /**
2246
       * Find the _Fields constant that matches fieldId, throwing an exception
2645
       * Find the _Fields constant that matches fieldId, throwing an exception
2247
       * if it is not found.
2646
       * if it is not found.
Line 2273... Line 2672...
2273
 
2672
 
2274
      public String getFieldName() {
2673
      public String getFieldName() {
2275
        return _fieldName;
2674
        return _fieldName;
2276
      }
2675
      }
2277
    }
2676
    }
2278
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2677
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2279
    }});
-
 
2280
 
-
 
2281
    static {
2678
    static {
-
 
2679
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2680
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2282
      FieldMetaData.addStructMetaDataMap(updateTicket_result.class, metaDataMap);
2681
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTicket_result.class, metaDataMap);
2283
    }
2682
    }
2284
 
2683
 
2285
    public updateTicket_result() {
2684
    public updateTicket_result() {
2286
    }
2685
    }
2287
 
2686
 
Line 2293... Line 2692...
2293
 
2692
 
2294
    public updateTicket_result deepCopy() {
2693
    public updateTicket_result deepCopy() {
2295
      return new updateTicket_result(this);
2694
      return new updateTicket_result(this);
2296
    }
2695
    }
2297
 
2696
 
2298
    @Deprecated
2697
    @Override
2299
    public updateTicket_result clone() {
2698
    public void clear() {
2300
      return new updateTicket_result(this);
-
 
2301
    }
2699
    }
2302
 
2700
 
2303
    public void setFieldValue(_Fields field, Object value) {
2701
    public void setFieldValue(_Fields field, Object value) {
2304
      switch (field) {
2702
      switch (field) {
2305
      }
2703
      }
2306
    }
2704
    }
2307
 
2705
 
2308
    public void setFieldValue(int fieldID, Object value) {
-
 
2309
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2310
    }
-
 
2311
 
-
 
2312
    public Object getFieldValue(_Fields field) {
2706
    public Object getFieldValue(_Fields field) {
2313
      switch (field) {
2707
      switch (field) {
2314
      }
2708
      }
2315
      throw new IllegalStateException();
2709
      throw new IllegalStateException();
2316
    }
2710
    }
2317
 
2711
 
2318
    public Object getFieldValue(int fieldId) {
-
 
2319
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2320
    }
-
 
2321
 
-
 
2322
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2712
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2323
    public boolean isSet(_Fields field) {
2713
    public boolean isSet(_Fields field) {
-
 
2714
      if (field == null) {
-
 
2715
        throw new IllegalArgumentException();
-
 
2716
      }
-
 
2717
 
2324
      switch (field) {
2718
      switch (field) {
2325
      }
2719
      }
2326
      throw new IllegalStateException();
2720
      throw new IllegalStateException();
2327
    }
2721
    }
2328
 
2722
 
2329
    public boolean isSet(int fieldID) {
-
 
2330
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2331
    }
-
 
2332
 
-
 
2333
    @Override
2723
    @Override
2334
    public boolean equals(Object that) {
2724
    public boolean equals(Object that) {
2335
      if (that == null)
2725
      if (that == null)
2336
        return false;
2726
        return false;
2337
      if (that instanceof updateTicket_result)
2727
      if (that instanceof updateTicket_result)
Line 2360... Line 2750...
2360
      updateTicket_result typedOther = (updateTicket_result)other;
2750
      updateTicket_result typedOther = (updateTicket_result)other;
2361
 
2751
 
2362
      return 0;
2752
      return 0;
2363
    }
2753
    }
2364
 
2754
 
-
 
2755
    public _Fields fieldForId(int fieldId) {
-
 
2756
      return _Fields.findByThriftId(fieldId);
-
 
2757
    }
-
 
2758
 
2365
    public void read(TProtocol iprot) throws TException {
2759
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2366
      TField field;
2760
      org.apache.thrift.protocol.TField field;
2367
      iprot.readStructBegin();
2761
      iprot.readStructBegin();
2368
      while (true)
2762
      while (true)
2369
      {
2763
      {
2370
        field = iprot.readFieldBegin();
2764
        field = iprot.readFieldBegin();
2371
        if (field.type == TType.STOP) { 
2765
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2372
          break;
2766
          break;
2373
        }
2767
        }
2374
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2375
        if (fieldId == null) {
-
 
2376
          TProtocolUtil.skip(iprot, field.type);
-
 
2377
        } else {
-
 
2378
          switch (fieldId) {
2768
        switch (field.id) {
2379
          }
2769
          default:
2380
          iprot.readFieldEnd();
2770
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2381
        }
2771
        }
-
 
2772
        iprot.readFieldEnd();
2382
      }
2773
      }
2383
      iprot.readStructEnd();
2774
      iprot.readStructEnd();
2384
      validate();
2775
      validate();
2385
    }
2776
    }
2386
 
2777
 
2387
    public void write(TProtocol oprot) throws TException {
2778
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2388
      oprot.writeStructBegin(STRUCT_DESC);
2779
      oprot.writeStructBegin(STRUCT_DESC);
2389
 
2780
 
2390
      oprot.writeFieldStop();
2781
      oprot.writeFieldStop();
2391
      oprot.writeStructEnd();
2782
      oprot.writeStructEnd();
2392
    }
2783
    }
Line 2398... Line 2789...
2398
 
2789
 
2399
      sb.append(")");
2790
      sb.append(")");
2400
      return sb.toString();
2791
      return sb.toString();
2401
    }
2792
    }
2402
 
2793
 
2403
    public void validate() throws TException {
2794
    public void validate() throws org.apache.thrift.TException {
2404
      // check for required fields
2795
      // check for required fields
2405
    }
2796
    }
2406
 
2797
 
-
 
2798
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2799
      try {
-
 
2800
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2801
      } catch (org.apache.thrift.TException te) {
-
 
2802
        throw new java.io.IOException(te);
-
 
2803
      }
-
 
2804
    }
-
 
2805
 
-
 
2806
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2807
      try {
-
 
2808
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2809
      } catch (org.apache.thrift.TException te) {
-
 
2810
        throw new java.io.IOException(te);
-
 
2811
      }
-
 
2812
    }
-
 
2813
 
2407
  }
2814
  }
2408
 
2815
 
2409
  public static class insertTicket_args implements TBase<insertTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertTicket_args>   {
2816
  public static class insertTicket_args implements org.apache.thrift.TBase<insertTicket_args, insertTicket_args._Fields>, java.io.Serializable, Cloneable   {
2410
    private static final TStruct STRUCT_DESC = new TStruct("insertTicket_args");
2817
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertTicket_args");
2411
 
2818
 
2412
    private static final TField TICKET_FIELD_DESC = new TField("ticket", TType.STRUCT, (short)1);
2819
    private static final org.apache.thrift.protocol.TField TICKET_FIELD_DESC = new org.apache.thrift.protocol.TField("ticket", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2413
    private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)2);
2820
    private static final org.apache.thrift.protocol.TField ACTIVITY_FIELD_DESC = new org.apache.thrift.protocol.TField("activity", org.apache.thrift.protocol.TType.STRUCT, (short)2);
2414
 
2821
 
2415
    private Ticket ticket;
2822
    private Ticket ticket; // required
2416
    private Activity activity;
2823
    private Activity activity; // required
2417
 
2824
 
2418
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2825
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2419
    public enum _Fields implements TFieldIdEnum {
2826
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2420
      TICKET((short)1, "ticket"),
2827
      TICKET((short)1, "ticket"),
2421
      ACTIVITY((short)2, "activity");
2828
      ACTIVITY((short)2, "activity");
2422
 
2829
 
2423
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2424
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2830
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2425
 
2831
 
2426
      static {
2832
      static {
2427
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2833
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2428
          byId.put((int)field._thriftId, field);
-
 
2429
          byName.put(field.getFieldName(), field);
2834
          byName.put(field.getFieldName(), field);
2430
        }
2835
        }
2431
      }
2836
      }
2432
 
2837
 
2433
      /**
2838
      /**
2434
       * Find the _Fields constant that matches fieldId, or null if its not found.
2839
       * Find the _Fields constant that matches fieldId, or null if its not found.
2435
       */
2840
       */
2436
      public static _Fields findByThriftId(int fieldId) {
2841
      public static _Fields findByThriftId(int fieldId) {
2437
        return byId.get(fieldId);
2842
        switch(fieldId) {
-
 
2843
          case 1: // TICKET
-
 
2844
            return TICKET;
-
 
2845
          case 2: // ACTIVITY
-
 
2846
            return ACTIVITY;
-
 
2847
          default:
-
 
2848
            return null;
-
 
2849
        }
2438
      }
2850
      }
2439
 
2851
 
2440
      /**
2852
      /**
2441
       * Find the _Fields constant that matches fieldId, throwing an exception
2853
       * Find the _Fields constant that matches fieldId, throwing an exception
2442
       * if it is not found.
2854
       * if it is not found.
Line 2471... Line 2883...
2471
      }
2883
      }
2472
    }
2884
    }
2473
 
2885
 
2474
    // isset id assignments
2886
    // isset id assignments
2475
 
2887
 
2476
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2888
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2477
      put(_Fields.TICKET, new FieldMetaData("ticket", TFieldRequirementType.DEFAULT, 
-
 
2478
          new StructMetaData(TType.STRUCT, Ticket.class)));
-
 
2479
      put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT, 
-
 
2480
          new StructMetaData(TType.STRUCT, Activity.class)));
-
 
2481
    }});
-
 
2482
 
-
 
2483
    static {
2889
    static {
-
 
2890
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2891
      tmpMap.put(_Fields.TICKET, new org.apache.thrift.meta_data.FieldMetaData("ticket", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2892
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class)));
-
 
2893
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2894
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
-
 
2895
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2484
      FieldMetaData.addStructMetaDataMap(insertTicket_args.class, metaDataMap);
2896
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertTicket_args.class, metaDataMap);
2485
    }
2897
    }
2486
 
2898
 
2487
    public insertTicket_args() {
2899
    public insertTicket_args() {
2488
    }
2900
    }
2489
 
2901
 
Line 2510... Line 2922...
2510
 
2922
 
2511
    public insertTicket_args deepCopy() {
2923
    public insertTicket_args deepCopy() {
2512
      return new insertTicket_args(this);
2924
      return new insertTicket_args(this);
2513
    }
2925
    }
2514
 
2926
 
2515
    @Deprecated
2927
    @Override
2516
    public insertTicket_args clone() {
2928
    public void clear() {
2517
      return new insertTicket_args(this);
2929
      this.ticket = null;
-
 
2930
      this.activity = null;
2518
    }
2931
    }
2519
 
2932
 
2520
    public Ticket getTicket() {
2933
    public Ticket getTicket() {
2521
      return this.ticket;
2934
      return this.ticket;
2522
    }
2935
    }
2523
 
2936
 
2524
    public insertTicket_args setTicket(Ticket ticket) {
2937
    public void setTicket(Ticket ticket) {
2525
      this.ticket = ticket;
2938
      this.ticket = ticket;
2526
      return this;
-
 
2527
    }
2939
    }
2528
 
2940
 
2529
    public void unsetTicket() {
2941
    public void unsetTicket() {
2530
      this.ticket = null;
2942
      this.ticket = null;
2531
    }
2943
    }
2532
 
2944
 
2533
    /** Returns true if field ticket is set (has been asigned a value) and false otherwise */
2945
    /** Returns true if field ticket is set (has been assigned a value) and false otherwise */
2534
    public boolean isSetTicket() {
2946
    public boolean isSetTicket() {
2535
      return this.ticket != null;
2947
      return this.ticket != null;
2536
    }
2948
    }
2537
 
2949
 
2538
    public void setTicketIsSet(boolean value) {
2950
    public void setTicketIsSet(boolean value) {
Line 2543... Line 2955...
2543
 
2955
 
2544
    public Activity getActivity() {
2956
    public Activity getActivity() {
2545
      return this.activity;
2957
      return this.activity;
2546
    }
2958
    }
2547
 
2959
 
2548
    public insertTicket_args setActivity(Activity activity) {
2960
    public void setActivity(Activity activity) {
2549
      this.activity = activity;
2961
      this.activity = activity;
2550
      return this;
-
 
2551
    }
2962
    }
2552
 
2963
 
2553
    public void unsetActivity() {
2964
    public void unsetActivity() {
2554
      this.activity = null;
2965
      this.activity = null;
2555
    }
2966
    }
2556
 
2967
 
2557
    /** Returns true if field activity is set (has been asigned a value) and false otherwise */
2968
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
2558
    public boolean isSetActivity() {
2969
    public boolean isSetActivity() {
2559
      return this.activity != null;
2970
      return this.activity != null;
2560
    }
2971
    }
2561
 
2972
 
2562
    public void setActivityIsSet(boolean value) {
2973
    public void setActivityIsSet(boolean value) {
Line 2584... Line 2995...
2584
        break;
2995
        break;
2585
 
2996
 
2586
      }
2997
      }
2587
    }
2998
    }
2588
 
2999
 
2589
    public void setFieldValue(int fieldID, Object value) {
-
 
2590
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2591
    }
-
 
2592
 
-
 
2593
    public Object getFieldValue(_Fields field) {
3000
    public Object getFieldValue(_Fields field) {
2594
      switch (field) {
3001
      switch (field) {
2595
      case TICKET:
3002
      case TICKET:
2596
        return getTicket();
3003
        return getTicket();
2597
 
3004
 
Line 2600... Line 3007...
2600
 
3007
 
2601
      }
3008
      }
2602
      throw new IllegalStateException();
3009
      throw new IllegalStateException();
2603
    }
3010
    }
2604
 
3011
 
2605
    public Object getFieldValue(int fieldId) {
-
 
2606
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2607
    }
-
 
2608
 
-
 
2609
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3012
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2610
    public boolean isSet(_Fields field) {
3013
    public boolean isSet(_Fields field) {
-
 
3014
      if (field == null) {
-
 
3015
        throw new IllegalArgumentException();
-
 
3016
      }
-
 
3017
 
2611
      switch (field) {
3018
      switch (field) {
2612
      case TICKET:
3019
      case TICKET:
2613
        return isSetTicket();
3020
        return isSetTicket();
2614
      case ACTIVITY:
3021
      case ACTIVITY:
2615
        return isSetActivity();
3022
        return isSetActivity();
2616
      }
3023
      }
2617
      throw new IllegalStateException();
3024
      throw new IllegalStateException();
2618
    }
3025
    }
2619
 
3026
 
2620
    public boolean isSet(int fieldID) {
-
 
2621
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2622
    }
-
 
2623
 
-
 
2624
    @Override
3027
    @Override
2625
    public boolean equals(Object that) {
3028
    public boolean equals(Object that) {
2626
      if (that == null)
3029
      if (that == null)
2627
        return false;
3030
        return false;
2628
      if (that instanceof insertTicket_args)
3031
      if (that instanceof insertTicket_args)
Line 2666... Line 3069...
2666
      }
3069
      }
2667
 
3070
 
2668
      int lastComparison = 0;
3071
      int lastComparison = 0;
2669
      insertTicket_args typedOther = (insertTicket_args)other;
3072
      insertTicket_args typedOther = (insertTicket_args)other;
2670
 
3073
 
2671
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(isSetTicket());
3074
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(typedOther.isSetTicket());
2672
      if (lastComparison != 0) {
3075
      if (lastComparison != 0) {
2673
        return lastComparison;
3076
        return lastComparison;
2674
      }
3077
      }
-
 
3078
      if (isSetTicket()) {
2675
      lastComparison = TBaseHelper.compareTo(ticket, typedOther.ticket);
3079
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticket, typedOther.ticket);
2676
      if (lastComparison != 0) {
3080
        if (lastComparison != 0) {
2677
        return lastComparison;
3081
          return lastComparison;
-
 
3082
        }
2678
      }
3083
      }
2679
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());
3084
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
2680
      if (lastComparison != 0) {
3085
      if (lastComparison != 0) {
2681
        return lastComparison;
3086
        return lastComparison;
2682
      }
3087
      }
-
 
3088
      if (isSetActivity()) {
2683
      lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);
3089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
2684
      if (lastComparison != 0) {
3090
        if (lastComparison != 0) {
2685
        return lastComparison;
3091
          return lastComparison;
-
 
3092
        }
2686
      }
3093
      }
2687
      return 0;
3094
      return 0;
2688
    }
3095
    }
2689
 
3096
 
-
 
3097
    public _Fields fieldForId(int fieldId) {
-
 
3098
      return _Fields.findByThriftId(fieldId);
-
 
3099
    }
-
 
3100
 
2690
    public void read(TProtocol iprot) throws TException {
3101
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2691
      TField field;
3102
      org.apache.thrift.protocol.TField field;
2692
      iprot.readStructBegin();
3103
      iprot.readStructBegin();
2693
      while (true)
3104
      while (true)
2694
      {
3105
      {
2695
        field = iprot.readFieldBegin();
3106
        field = iprot.readFieldBegin();
2696
        if (field.type == TType.STOP) { 
3107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2697
          break;
3108
          break;
2698
        }
3109
        }
2699
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2700
        if (fieldId == null) {
-
 
2701
          TProtocolUtil.skip(iprot, field.type);
-
 
2702
        } else {
-
 
2703
          switch (fieldId) {
3110
        switch (field.id) {
2704
            case TICKET:
3111
          case 1: // TICKET
2705
              if (field.type == TType.STRUCT) {
3112
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2706
                this.ticket = new Ticket();
3113
              this.ticket = new Ticket();
2707
                this.ticket.read(iprot);
3114
              this.ticket.read(iprot);
2708
              } else { 
3115
            } else { 
2709
                TProtocolUtil.skip(iprot, field.type);
3116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2710
              }
3117
            }
2711
              break;
3118
            break;
2712
            case ACTIVITY:
3119
          case 2: // ACTIVITY
2713
              if (field.type == TType.STRUCT) {
3120
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2714
                this.activity = new Activity();
3121
              this.activity = new Activity();
2715
                this.activity.read(iprot);
3122
              this.activity.read(iprot);
2716
              } else { 
3123
            } else { 
2717
                TProtocolUtil.skip(iprot, field.type);
3124
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2718
              }
3125
            }
2719
              break;
3126
            break;
2720
          }
3127
          default:
2721
          iprot.readFieldEnd();
3128
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2722
        }
3129
        }
-
 
3130
        iprot.readFieldEnd();
2723
      }
3131
      }
2724
      iprot.readStructEnd();
3132
      iprot.readStructEnd();
2725
      validate();
3133
      validate();
2726
    }
3134
    }
2727
 
3135
 
2728
    public void write(TProtocol oprot) throws TException {
3136
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2729
      validate();
3137
      validate();
2730
 
3138
 
2731
      oprot.writeStructBegin(STRUCT_DESC);
3139
      oprot.writeStructBegin(STRUCT_DESC);
2732
      if (this.ticket != null) {
3140
      if (this.ticket != null) {
2733
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
3141
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
Line 2765... Line 3173...
2765
      first = false;
3173
      first = false;
2766
      sb.append(")");
3174
      sb.append(")");
2767
      return sb.toString();
3175
      return sb.toString();
2768
    }
3176
    }
2769
 
3177
 
2770
    public void validate() throws TException {
3178
    public void validate() throws org.apache.thrift.TException {
2771
      // check for required fields
3179
      // check for required fields
2772
    }
3180
    }
2773
 
3181
 
-
 
3182
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3183
      try {
-
 
3184
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3185
      } catch (org.apache.thrift.TException te) {
-
 
3186
        throw new java.io.IOException(te);
-
 
3187
      }
-
 
3188
    }
-
 
3189
 
-
 
3190
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3191
      try {
-
 
3192
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3193
      } catch (org.apache.thrift.TException te) {
-
 
3194
        throw new java.io.IOException(te);
-
 
3195
      }
-
 
3196
    }
-
 
3197
 
2774
  }
3198
  }
2775
 
3199
 
2776
  public static class insertTicket_result implements TBase<insertTicket_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertTicket_result>   {
3200
  public static class insertTicket_result implements org.apache.thrift.TBase<insertTicket_result, insertTicket_result._Fields>, java.io.Serializable, Cloneable   {
2777
    private static final TStruct STRUCT_DESC = new TStruct("insertTicket_result");
3201
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertTicket_result");
2778
 
3202
 
2779
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
3203
    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);
2780
 
3204
 
2781
    private long success;
3205
    private long success; // required
2782
 
3206
 
2783
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3207
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2784
    public enum _Fields implements TFieldIdEnum {
3208
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2785
      SUCCESS((short)0, "success");
3209
      SUCCESS((short)0, "success");
2786
 
3210
 
2787
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3211
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2789
 
3212
 
2790
      static {
3213
      static {
2791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3214
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2792
          byId.put((int)field._thriftId, field);
-
 
2793
          byName.put(field.getFieldName(), field);
3215
          byName.put(field.getFieldName(), field);
2794
        }
3216
        }
2795
      }
3217
      }
2796
 
3218
 
2797
      /**
3219
      /**
2798
       * Find the _Fields constant that matches fieldId, or null if its not found.
3220
       * Find the _Fields constant that matches fieldId, or null if its not found.
2799
       */
3221
       */
2800
      public static _Fields findByThriftId(int fieldId) {
3222
      public static _Fields findByThriftId(int fieldId) {
2801
        return byId.get(fieldId);
3223
        switch(fieldId) {
-
 
3224
          case 0: // SUCCESS
-
 
3225
            return SUCCESS;
-
 
3226
          default:
-
 
3227
            return null;
-
 
3228
        }
2802
      }
3229
      }
2803
 
3230
 
2804
      /**
3231
      /**
2805
       * Find the _Fields constant that matches fieldId, throwing an exception
3232
       * Find the _Fields constant that matches fieldId, throwing an exception
2806
       * if it is not found.
3233
       * if it is not found.
Line 2837... Line 3264...
2837
 
3264
 
2838
    // isset id assignments
3265
    // isset id assignments
2839
    private static final int __SUCCESS_ISSET_ID = 0;
3266
    private static final int __SUCCESS_ISSET_ID = 0;
2840
    private BitSet __isset_bit_vector = new BitSet(1);
3267
    private BitSet __isset_bit_vector = new BitSet(1);
2841
 
3268
 
2842
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3269
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2843
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
2844
          new FieldValueMetaData(TType.I64)));
-
 
2845
    }});
-
 
2846
 
-
 
2847
    static {
3270
    static {
-
 
3271
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3272
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3273
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3274
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2848
      FieldMetaData.addStructMetaDataMap(insertTicket_result.class, metaDataMap);
3275
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertTicket_result.class, metaDataMap);
2849
    }
3276
    }
2850
 
3277
 
2851
    public insertTicket_result() {
3278
    public insertTicket_result() {
2852
    }
3279
    }
2853
 
3280
 
Line 2870... Line 3297...
2870
 
3297
 
2871
    public insertTicket_result deepCopy() {
3298
    public insertTicket_result deepCopy() {
2872
      return new insertTicket_result(this);
3299
      return new insertTicket_result(this);
2873
    }
3300
    }
2874
 
3301
 
2875
    @Deprecated
3302
    @Override
2876
    public insertTicket_result clone() {
3303
    public void clear() {
2877
      return new insertTicket_result(this);
3304
      setSuccessIsSet(false);
-
 
3305
      this.success = 0;
2878
    }
3306
    }
2879
 
3307
 
2880
    public long getSuccess() {
3308
    public long getSuccess() {
2881
      return this.success;
3309
      return this.success;
2882
    }
3310
    }
2883
 
3311
 
2884
    public insertTicket_result setSuccess(long success) {
3312
    public void setSuccess(long success) {
2885
      this.success = success;
3313
      this.success = success;
2886
      setSuccessIsSet(true);
3314
      setSuccessIsSet(true);
2887
      return this;
-
 
2888
    }
3315
    }
2889
 
3316
 
2890
    public void unsetSuccess() {
3317
    public void unsetSuccess() {
2891
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3318
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
2892
    }
3319
    }
2893
 
3320
 
2894
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
3321
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2895
    public boolean isSetSuccess() {
3322
    public boolean isSetSuccess() {
2896
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3323
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
2897
    }
3324
    }
2898
 
3325
 
2899
    public void setSuccessIsSet(boolean value) {
3326
    public void setSuccessIsSet(boolean value) {
Line 2911... Line 3338...
2911
        break;
3338
        break;
2912
 
3339
 
2913
      }
3340
      }
2914
    }
3341
    }
2915
 
3342
 
2916
    public void setFieldValue(int fieldID, Object value) {
-
 
2917
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2918
    }
-
 
2919
 
-
 
2920
    public Object getFieldValue(_Fields field) {
3343
    public Object getFieldValue(_Fields field) {
2921
      switch (field) {
3344
      switch (field) {
2922
      case SUCCESS:
3345
      case SUCCESS:
2923
        return new Long(getSuccess());
3346
        return Long.valueOf(getSuccess());
2924
 
3347
 
2925
      }
3348
      }
2926
      throw new IllegalStateException();
3349
      throw new IllegalStateException();
2927
    }
3350
    }
2928
 
3351
 
2929
    public Object getFieldValue(int fieldId) {
-
 
2930
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2931
    }
-
 
2932
 
-
 
2933
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3352
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2934
    public boolean isSet(_Fields field) {
3353
    public boolean isSet(_Fields field) {
-
 
3354
      if (field == null) {
-
 
3355
        throw new IllegalArgumentException();
-
 
3356
      }
-
 
3357
 
2935
      switch (field) {
3358
      switch (field) {
2936
      case SUCCESS:
3359
      case SUCCESS:
2937
        return isSetSuccess();
3360
        return isSetSuccess();
2938
      }
3361
      }
2939
      throw new IllegalStateException();
3362
      throw new IllegalStateException();
2940
    }
3363
    }
2941
 
3364
 
2942
    public boolean isSet(int fieldID) {
-
 
2943
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2944
    }
-
 
2945
 
-
 
2946
    @Override
3365
    @Override
2947
    public boolean equals(Object that) {
3366
    public boolean equals(Object that) {
2948
      if (that == null)
3367
      if (that == null)
2949
        return false;
3368
        return false;
2950
      if (that instanceof insertTicket_result)
3369
      if (that instanceof insertTicket_result)
Line 2979... Line 3398...
2979
      }
3398
      }
2980
 
3399
 
2981
      int lastComparison = 0;
3400
      int lastComparison = 0;
2982
      insertTicket_result typedOther = (insertTicket_result)other;
3401
      insertTicket_result typedOther = (insertTicket_result)other;
2983
 
3402
 
2984
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
3403
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2985
      if (lastComparison != 0) {
3404
      if (lastComparison != 0) {
2986
        return lastComparison;
3405
        return lastComparison;
2987
      }
3406
      }
-
 
3407
      if (isSetSuccess()) {
2988
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
3408
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2989
      if (lastComparison != 0) {
3409
        if (lastComparison != 0) {
2990
        return lastComparison;
3410
          return lastComparison;
-
 
3411
        }
2991
      }
3412
      }
2992
      return 0;
3413
      return 0;
2993
    }
3414
    }
2994
 
3415
 
-
 
3416
    public _Fields fieldForId(int fieldId) {
-
 
3417
      return _Fields.findByThriftId(fieldId);
-
 
3418
    }
-
 
3419
 
2995
    public void read(TProtocol iprot) throws TException {
3420
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2996
      TField field;
3421
      org.apache.thrift.protocol.TField field;
2997
      iprot.readStructBegin();
3422
      iprot.readStructBegin();
2998
      while (true)
3423
      while (true)
2999
      {
3424
      {
3000
        field = iprot.readFieldBegin();
3425
        field = iprot.readFieldBegin();
3001
        if (field.type == TType.STOP) { 
3426
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3002
          break;
3427
          break;
3003
        }
3428
        }
3004
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3005
        if (fieldId == null) {
-
 
3006
          TProtocolUtil.skip(iprot, field.type);
-
 
3007
        } else {
-
 
3008
          switch (fieldId) {
3429
        switch (field.id) {
3009
            case SUCCESS:
3430
          case 0: // SUCCESS
3010
              if (field.type == TType.I64) {
3431
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3011
                this.success = iprot.readI64();
3432
              this.success = iprot.readI64();
3012
                setSuccessIsSet(true);
3433
              setSuccessIsSet(true);
3013
              } else { 
3434
            } else { 
3014
                TProtocolUtil.skip(iprot, field.type);
3435
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3015
              }
3436
            }
3016
              break;
3437
            break;
3017
          }
3438
          default:
3018
          iprot.readFieldEnd();
3439
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3019
        }
3440
        }
-
 
3441
        iprot.readFieldEnd();
3020
      }
3442
      }
3021
      iprot.readStructEnd();
3443
      iprot.readStructEnd();
3022
      validate();
3444
      validate();
3023
    }
3445
    }
3024
 
3446
 
3025
    public void write(TProtocol oprot) throws TException {
3447
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3026
      oprot.writeStructBegin(STRUCT_DESC);
3448
      oprot.writeStructBegin(STRUCT_DESC);
3027
 
3449
 
3028
      if (this.isSetSuccess()) {
3450
      if (this.isSetSuccess()) {
3029
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3451
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3030
        oprot.writeI64(this.success);
3452
        oprot.writeI64(this.success);
Line 3044... Line 3466...
3044
      first = false;
3466
      first = false;
3045
      sb.append(")");
3467
      sb.append(")");
3046
      return sb.toString();
3468
      return sb.toString();
3047
    }
3469
    }
3048
 
3470
 
3049
    public void validate() throws TException {
3471
    public void validate() throws org.apache.thrift.TException {
3050
      // check for required fields
3472
      // check for required fields
3051
    }
3473
    }
3052
 
3474
 
-
 
3475
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3476
      try {
-
 
3477
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3478
      } catch (org.apache.thrift.TException te) {
-
 
3479
        throw new java.io.IOException(te);
-
 
3480
      }
-
 
3481
    }
-
 
3482
 
-
 
3483
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3484
      try {
-
 
3485
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3486
      } catch (org.apache.thrift.TException te) {
-
 
3487
        throw new java.io.IOException(te);
-
 
3488
      }
-
 
3489
    }
-
 
3490
 
3053
  }
3491
  }
3054
 
3492
 
3055
  public static class getActivities_args implements TBase<getActivities_args._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_args>   {
3493
  public static class getActivities_args implements org.apache.thrift.TBase<getActivities_args, getActivities_args._Fields>, java.io.Serializable, Cloneable   {
3056
    private static final TStruct STRUCT_DESC = new TStruct("getActivities_args");
3494
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivities_args");
3057
 
3495
 
3058
    private static final TField SEARCH_FILTER_FIELD_DESC = new TField("searchFilter", TType.STRUCT, (short)1);
3496
    private static final org.apache.thrift.protocol.TField SEARCH_FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("searchFilter", org.apache.thrift.protocol.TType.STRUCT, (short)1);
3059
 
3497
 
3060
    private SearchFilter searchFilter;
3498
    private SearchFilter searchFilter; // required
3061
 
3499
 
3062
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3500
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3063
    public enum _Fields implements TFieldIdEnum {
3501
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3064
      SEARCH_FILTER((short)1, "searchFilter");
3502
      SEARCH_FILTER((short)1, "searchFilter");
3065
 
3503
 
3066
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3067
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3504
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3068
 
3505
 
3069
      static {
3506
      static {
3070
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3507
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3071
          byId.put((int)field._thriftId, field);
-
 
3072
          byName.put(field.getFieldName(), field);
3508
          byName.put(field.getFieldName(), field);
3073
        }
3509
        }
3074
      }
3510
      }
3075
 
3511
 
3076
      /**
3512
      /**
3077
       * Find the _Fields constant that matches fieldId, or null if its not found.
3513
       * Find the _Fields constant that matches fieldId, or null if its not found.
3078
       */
3514
       */
3079
      public static _Fields findByThriftId(int fieldId) {
3515
      public static _Fields findByThriftId(int fieldId) {
3080
        return byId.get(fieldId);
3516
        switch(fieldId) {
-
 
3517
          case 1: // SEARCH_FILTER
-
 
3518
            return SEARCH_FILTER;
-
 
3519
          default:
-
 
3520
            return null;
-
 
3521
        }
3081
      }
3522
      }
3082
 
3523
 
3083
      /**
3524
      /**
3084
       * Find the _Fields constant that matches fieldId, throwing an exception
3525
       * Find the _Fields constant that matches fieldId, throwing an exception
3085
       * if it is not found.
3526
       * if it is not found.
Line 3114... Line 3555...
3114
      }
3555
      }
3115
    }
3556
    }
3116
 
3557
 
3117
    // isset id assignments
3558
    // isset id assignments
3118
 
3559
 
3119
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3560
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3120
      put(_Fields.SEARCH_FILTER, new FieldMetaData("searchFilter", TFieldRequirementType.DEFAULT, 
-
 
3121
          new StructMetaData(TType.STRUCT, SearchFilter.class)));
-
 
3122
    }});
-
 
3123
 
-
 
3124
    static {
3561
    static {
-
 
3562
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3563
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3564
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
-
 
3565
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3125
      FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);
3566
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);
3126
    }
3567
    }
3127
 
3568
 
3128
    public getActivities_args() {
3569
    public getActivities_args() {
3129
    }
3570
    }
3130
 
3571
 
Line 3146... Line 3587...
3146
 
3587
 
3147
    public getActivities_args deepCopy() {
3588
    public getActivities_args deepCopy() {
3148
      return new getActivities_args(this);
3589
      return new getActivities_args(this);
3149
    }
3590
    }
3150
 
3591
 
3151
    @Deprecated
3592
    @Override
3152
    public getActivities_args clone() {
3593
    public void clear() {
3153
      return new getActivities_args(this);
3594
      this.searchFilter = null;
3154
    }
3595
    }
3155
 
3596
 
3156
    public SearchFilter getSearchFilter() {
3597
    public SearchFilter getSearchFilter() {
3157
      return this.searchFilter;
3598
      return this.searchFilter;
3158
    }
3599
    }
3159
 
3600
 
3160
    public getActivities_args setSearchFilter(SearchFilter searchFilter) {
3601
    public void setSearchFilter(SearchFilter searchFilter) {
3161
      this.searchFilter = searchFilter;
3602
      this.searchFilter = searchFilter;
3162
      return this;
-
 
3163
    }
3603
    }
3164
 
3604
 
3165
    public void unsetSearchFilter() {
3605
    public void unsetSearchFilter() {
3166
      this.searchFilter = null;
3606
      this.searchFilter = null;
3167
    }
3607
    }
3168
 
3608
 
3169
    /** Returns true if field searchFilter is set (has been asigned a value) and false otherwise */
3609
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3170
    public boolean isSetSearchFilter() {
3610
    public boolean isSetSearchFilter() {
3171
      return this.searchFilter != null;
3611
      return this.searchFilter != null;
3172
    }
3612
    }
3173
 
3613
 
3174
    public void setSearchFilterIsSet(boolean value) {
3614
    public void setSearchFilterIsSet(boolean value) {
Line 3188... Line 3628...
3188
        break;
3628
        break;
3189
 
3629
 
3190
      }
3630
      }
3191
    }
3631
    }
3192
 
3632
 
3193
    public void setFieldValue(int fieldID, Object value) {
-
 
3194
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3195
    }
-
 
3196
 
-
 
3197
    public Object getFieldValue(_Fields field) {
3633
    public Object getFieldValue(_Fields field) {
3198
      switch (field) {
3634
      switch (field) {
3199
      case SEARCH_FILTER:
3635
      case SEARCH_FILTER:
3200
        return getSearchFilter();
3636
        return getSearchFilter();
3201
 
3637
 
3202
      }
3638
      }
3203
      throw new IllegalStateException();
3639
      throw new IllegalStateException();
3204
    }
3640
    }
3205
 
3641
 
3206
    public Object getFieldValue(int fieldId) {
-
 
3207
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3208
    }
-
 
3209
 
-
 
3210
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3642
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3211
    public boolean isSet(_Fields field) {
3643
    public boolean isSet(_Fields field) {
-
 
3644
      if (field == null) {
-
 
3645
        throw new IllegalArgumentException();
-
 
3646
      }
-
 
3647
 
3212
      switch (field) {
3648
      switch (field) {
3213
      case SEARCH_FILTER:
3649
      case SEARCH_FILTER:
3214
        return isSetSearchFilter();
3650
        return isSetSearchFilter();
3215
      }
3651
      }
3216
      throw new IllegalStateException();
3652
      throw new IllegalStateException();
3217
    }
3653
    }
3218
 
3654
 
3219
    public boolean isSet(int fieldID) {
-
 
3220
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3221
    }
-
 
3222
 
-
 
3223
    @Override
3655
    @Override
3224
    public boolean equals(Object that) {
3656
    public boolean equals(Object that) {
3225
      if (that == null)
3657
      if (that == null)
3226
        return false;
3658
        return false;
3227
      if (that instanceof getActivities_args)
3659
      if (that instanceof getActivities_args)
Line 3256... Line 3688...
3256
      }
3688
      }
3257
 
3689
 
3258
      int lastComparison = 0;
3690
      int lastComparison = 0;
3259
      getActivities_args typedOther = (getActivities_args)other;
3691
      getActivities_args typedOther = (getActivities_args)other;
3260
 
3692
 
3261
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(isSetSearchFilter());
3693
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3262
      if (lastComparison != 0) {
3694
      if (lastComparison != 0) {
3263
        return lastComparison;
3695
        return lastComparison;
3264
      }
3696
      }
-
 
3697
      if (isSetSearchFilter()) {
3265
      lastComparison = TBaseHelper.compareTo(searchFilter, typedOther.searchFilter);
3698
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
3266
      if (lastComparison != 0) {
3699
        if (lastComparison != 0) {
3267
        return lastComparison;
3700
          return lastComparison;
-
 
3701
        }
3268
      }
3702
      }
3269
      return 0;
3703
      return 0;
3270
    }
3704
    }
3271
 
3705
 
-
 
3706
    public _Fields fieldForId(int fieldId) {
-
 
3707
      return _Fields.findByThriftId(fieldId);
-
 
3708
    }
-
 
3709
 
3272
    public void read(TProtocol iprot) throws TException {
3710
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3273
      TField field;
3711
      org.apache.thrift.protocol.TField field;
3274
      iprot.readStructBegin();
3712
      iprot.readStructBegin();
3275
      while (true)
3713
      while (true)
3276
      {
3714
      {
3277
        field = iprot.readFieldBegin();
3715
        field = iprot.readFieldBegin();
3278
        if (field.type == TType.STOP) { 
3716
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3279
          break;
3717
          break;
3280
        }
3718
        }
3281
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3282
        if (fieldId == null) {
-
 
3283
          TProtocolUtil.skip(iprot, field.type);
-
 
3284
        } else {
-
 
3285
          switch (fieldId) {
3719
        switch (field.id) {
3286
            case SEARCH_FILTER:
3720
          case 1: // SEARCH_FILTER
3287
              if (field.type == TType.STRUCT) {
3721
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3288
                this.searchFilter = new SearchFilter();
3722
              this.searchFilter = new SearchFilter();
3289
                this.searchFilter.read(iprot);
3723
              this.searchFilter.read(iprot);
3290
              } else { 
3724
            } else { 
3291
                TProtocolUtil.skip(iprot, field.type);
3725
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3292
              }
3726
            }
3293
              break;
3727
            break;
3294
          }
3728
          default:
3295
          iprot.readFieldEnd();
3729
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3296
        }
3730
        }
-
 
3731
        iprot.readFieldEnd();
3297
      }
3732
      }
3298
      iprot.readStructEnd();
3733
      iprot.readStructEnd();
3299
      validate();
3734
      validate();
3300
    }
3735
    }
3301
 
3736
 
3302
    public void write(TProtocol oprot) throws TException {
3737
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3303
      validate();
3738
      validate();
3304
 
3739
 
3305
      oprot.writeStructBegin(STRUCT_DESC);
3740
      oprot.writeStructBegin(STRUCT_DESC);
3306
      if (this.searchFilter != null) {
3741
      if (this.searchFilter != null) {
3307
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
3742
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
Line 3326... Line 3761...
3326
      first = false;
3761
      first = false;
3327
      sb.append(")");
3762
      sb.append(")");
3328
      return sb.toString();
3763
      return sb.toString();
3329
    }
3764
    }
3330
 
3765
 
3331
    public void validate() throws TException {
3766
    public void validate() throws org.apache.thrift.TException {
3332
      // check for required fields
3767
      // check for required fields
3333
    }
3768
    }
3334
 
3769
 
-
 
3770
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3771
      try {
-
 
3772
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3773
      } catch (org.apache.thrift.TException te) {
-
 
3774
        throw new java.io.IOException(te);
-
 
3775
      }
-
 
3776
    }
-
 
3777
 
-
 
3778
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3779
      try {
-
 
3780
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3781
      } catch (org.apache.thrift.TException te) {
-
 
3782
        throw new java.io.IOException(te);
-
 
3783
      }
-
 
3784
    }
-
 
3785
 
3335
  }
3786
  }
3336
 
3787
 
3337
  public static class getActivities_result implements TBase<getActivities_result._Fields>, java.io.Serializable, Cloneable, Comparable<getActivities_result>   {
3788
  public static class getActivities_result implements org.apache.thrift.TBase<getActivities_result, getActivities_result._Fields>, java.io.Serializable, Cloneable   {
3338
    private static final TStruct STRUCT_DESC = new TStruct("getActivities_result");
3789
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivities_result");
3339
 
3790
 
3340
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
3791
    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);
3341
 
3792
 
3342
    private List<Activity> success;
3793
    private List<Activity> success; // required
3343
 
3794
 
3344
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3795
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3345
    public enum _Fields implements TFieldIdEnum {
3796
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3346
      SUCCESS((short)0, "success");
3797
      SUCCESS((short)0, "success");
3347
 
3798
 
3348
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3349
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3799
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3350
 
3800
 
3351
      static {
3801
      static {
3352
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3802
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3353
          byId.put((int)field._thriftId, field);
-
 
3354
          byName.put(field.getFieldName(), field);
3803
          byName.put(field.getFieldName(), field);
3355
        }
3804
        }
3356
      }
3805
      }
3357
 
3806
 
3358
      /**
3807
      /**
3359
       * Find the _Fields constant that matches fieldId, or null if its not found.
3808
       * Find the _Fields constant that matches fieldId, or null if its not found.
3360
       */
3809
       */
3361
      public static _Fields findByThriftId(int fieldId) {
3810
      public static _Fields findByThriftId(int fieldId) {
3362
        return byId.get(fieldId);
3811
        switch(fieldId) {
-
 
3812
          case 0: // SUCCESS
-
 
3813
            return SUCCESS;
-
 
3814
          default:
-
 
3815
            return null;
-
 
3816
        }
3363
      }
3817
      }
3364
 
3818
 
3365
      /**
3819
      /**
3366
       * Find the _Fields constant that matches fieldId, throwing an exception
3820
       * Find the _Fields constant that matches fieldId, throwing an exception
3367
       * if it is not found.
3821
       * if it is not found.
Line 3396... Line 3850...
3396
      }
3850
      }
3397
    }
3851
    }
3398
 
3852
 
3399
    // isset id assignments
3853
    // isset id assignments
3400
 
3854
 
3401
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3855
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3402
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
3403
          new ListMetaData(TType.LIST, 
-
 
3404
              new StructMetaData(TType.STRUCT, Activity.class))));
-
 
3405
    }});
-
 
3406
 
-
 
3407
    static {
3856
    static {
-
 
3857
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3858
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3859
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
3860
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class))));
-
 
3861
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3408
      FieldMetaData.addStructMetaDataMap(getActivities_result.class, metaDataMap);
3862
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivities_result.class, metaDataMap);
3409
    }
3863
    }
3410
 
3864
 
3411
    public getActivities_result() {
3865
    public getActivities_result() {
3412
    }
3866
    }
3413
 
3867
 
Line 3433... Line 3887...
3433
 
3887
 
3434
    public getActivities_result deepCopy() {
3888
    public getActivities_result deepCopy() {
3435
      return new getActivities_result(this);
3889
      return new getActivities_result(this);
3436
    }
3890
    }
3437
 
3891
 
3438
    @Deprecated
3892
    @Override
3439
    public getActivities_result clone() {
3893
    public void clear() {
3440
      return new getActivities_result(this);
3894
      this.success = null;
3441
    }
3895
    }
3442
 
3896
 
3443
    public int getSuccessSize() {
3897
    public int getSuccessSize() {
3444
      return (this.success == null) ? 0 : this.success.size();
3898
      return (this.success == null) ? 0 : this.success.size();
3445
    }
3899
    }
Line 3457... Line 3911...
3457
 
3911
 
3458
    public List<Activity> getSuccess() {
3912
    public List<Activity> getSuccess() {
3459
      return this.success;
3913
      return this.success;
3460
    }
3914
    }
3461
 
3915
 
3462
    public getActivities_result setSuccess(List<Activity> success) {
3916
    public void setSuccess(List<Activity> success) {
3463
      this.success = success;
3917
      this.success = success;
3464
      return this;
-
 
3465
    }
3918
    }
3466
 
3919
 
3467
    public void unsetSuccess() {
3920
    public void unsetSuccess() {
3468
      this.success = null;
3921
      this.success = null;
3469
    }
3922
    }
3470
 
3923
 
3471
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
3924
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3472
    public boolean isSetSuccess() {
3925
    public boolean isSetSuccess() {
3473
      return this.success != null;
3926
      return this.success != null;
3474
    }
3927
    }
3475
 
3928
 
3476
    public void setSuccessIsSet(boolean value) {
3929
    public void setSuccessIsSet(boolean value) {
Line 3490... Line 3943...
3490
        break;
3943
        break;
3491
 
3944
 
3492
      }
3945
      }
3493
    }
3946
    }
3494
 
3947
 
3495
    public void setFieldValue(int fieldID, Object value) {
-
 
3496
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3497
    }
-
 
3498
 
-
 
3499
    public Object getFieldValue(_Fields field) {
3948
    public Object getFieldValue(_Fields field) {
3500
      switch (field) {
3949
      switch (field) {
3501
      case SUCCESS:
3950
      case SUCCESS:
3502
        return getSuccess();
3951
        return getSuccess();
3503
 
3952
 
3504
      }
3953
      }
3505
      throw new IllegalStateException();
3954
      throw new IllegalStateException();
3506
    }
3955
    }
3507
 
3956
 
3508
    public Object getFieldValue(int fieldId) {
-
 
3509
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3510
    }
-
 
3511
 
-
 
3512
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3513
    public boolean isSet(_Fields field) {
3958
    public boolean isSet(_Fields field) {
-
 
3959
      if (field == null) {
-
 
3960
        throw new IllegalArgumentException();
-
 
3961
      }
-
 
3962
 
3514
      switch (field) {
3963
      switch (field) {
3515
      case SUCCESS:
3964
      case SUCCESS:
3516
        return isSetSuccess();
3965
        return isSetSuccess();
3517
      }
3966
      }
3518
      throw new IllegalStateException();
3967
      throw new IllegalStateException();
3519
    }
3968
    }
3520
 
3969
 
3521
    public boolean isSet(int fieldID) {
-
 
3522
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3523
    }
-
 
3524
 
-
 
3525
    @Override
3970
    @Override
3526
    public boolean equals(Object that) {
3971
    public boolean equals(Object that) {
3527
      if (that == null)
3972
      if (that == null)
3528
        return false;
3973
        return false;
3529
      if (that instanceof getActivities_result)
3974
      if (that instanceof getActivities_result)
Line 3558... Line 4003...
3558
      }
4003
      }
3559
 
4004
 
3560
      int lastComparison = 0;
4005
      int lastComparison = 0;
3561
      getActivities_result typedOther = (getActivities_result)other;
4006
      getActivities_result typedOther = (getActivities_result)other;
3562
 
4007
 
3563
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
4008
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3564
      if (lastComparison != 0) {
4009
      if (lastComparison != 0) {
3565
        return lastComparison;
4010
        return lastComparison;
3566
      }
4011
      }
-
 
4012
      if (isSetSuccess()) {
3567
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
4013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3568
      if (lastComparison != 0) {
4014
        if (lastComparison != 0) {
3569
        return lastComparison;
4015
          return lastComparison;
-
 
4016
        }
3570
      }
4017
      }
3571
      return 0;
4018
      return 0;
3572
    }
4019
    }
3573
 
4020
 
-
 
4021
    public _Fields fieldForId(int fieldId) {
-
 
4022
      return _Fields.findByThriftId(fieldId);
-
 
4023
    }
-
 
4024
 
3574
    public void read(TProtocol iprot) throws TException {
4025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3575
      TField field;
4026
      org.apache.thrift.protocol.TField field;
3576
      iprot.readStructBegin();
4027
      iprot.readStructBegin();
3577
      while (true)
4028
      while (true)
3578
      {
4029
      {
3579
        field = iprot.readFieldBegin();
4030
        field = iprot.readFieldBegin();
3580
        if (field.type == TType.STOP) { 
4031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3581
          break;
4032
          break;
3582
        }
4033
        }
3583
        _Fields fieldId = _Fields.findByThriftId(field.id);
4034
        switch (field.id) {
3584
        if (fieldId == null) {
4035
          case 0: // SUCCESS
3585
          TProtocolUtil.skip(iprot, field.type);
4036
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
3586
        } else {
4037
              {
3587
          switch (fieldId) {
4038
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
3588
            case SUCCESS:
4039
                this.success = new ArrayList<Activity>(_list16.size);
3589
              if (field.type == TType.LIST) {
4040
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
3590
                {
4041
                {
3591
                  TList _list16 = iprot.readListBegin();
-
 
3592
                  this.success = new ArrayList<Activity>(_list16.size);
-
 
3593
                  for (int _i17 = 0; _i17 < _list16.size; ++_i17)
-
 
3594
                  {
-
 
3595
                    Activity _elem18;
4042
                  Activity _elem18; // required
3596
                    _elem18 = new Activity();
4043
                  _elem18 = new Activity();
3597
                    _elem18.read(iprot);
4044
                  _elem18.read(iprot);
3598
                    this.success.add(_elem18);
4045
                  this.success.add(_elem18);
3599
                  }
-
 
3600
                  iprot.readListEnd();
-
 
3601
                }
4046
                }
3602
              } else { 
4047
                iprot.readListEnd();
3603
                TProtocolUtil.skip(iprot, field.type);
-
 
3604
              }
4048
              }
3605
              break;
4049
            } else { 
-
 
4050
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3606
          }
4051
            }
3607
          iprot.readFieldEnd();
4052
            break;
-
 
4053
          default:
-
 
4054
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3608
        }
4055
        }
-
 
4056
        iprot.readFieldEnd();
3609
      }
4057
      }
3610
      iprot.readStructEnd();
4058
      iprot.readStructEnd();
3611
      validate();
4059
      validate();
3612
    }
4060
    }
3613
 
4061
 
3614
    public void write(TProtocol oprot) throws TException {
4062
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3615
      oprot.writeStructBegin(STRUCT_DESC);
4063
      oprot.writeStructBegin(STRUCT_DESC);
3616
 
4064
 
3617
      if (this.isSetSuccess()) {
4065
      if (this.isSetSuccess()) {
3618
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4066
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3619
        {
4067
        {
3620
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
4068
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3621
          for (Activity _iter19 : this.success)
4069
          for (Activity _iter19 : this.success)
3622
          {
4070
          {
3623
            _iter19.write(oprot);
4071
            _iter19.write(oprot);
3624
          }
4072
          }
3625
          oprot.writeListEnd();
4073
          oprot.writeListEnd();
Line 3644... Line 4092...
3644
      first = false;
4092
      first = false;
3645
      sb.append(")");
4093
      sb.append(")");
3646
      return sb.toString();
4094
      return sb.toString();
3647
    }
4095
    }
3648
 
4096
 
3649
    public void validate() throws TException {
4097
    public void validate() throws org.apache.thrift.TException {
3650
      // check for required fields
4098
      // check for required fields
3651
    }
4099
    }
3652
 
4100
 
-
 
4101
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4102
      try {
-
 
4103
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4104
      } catch (org.apache.thrift.TException te) {
-
 
4105
        throw new java.io.IOException(te);
-
 
4106
      }
-
 
4107
    }
-
 
4108
 
-
 
4109
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4110
      try {
-
 
4111
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4112
      } catch (org.apache.thrift.TException te) {
-
 
4113
        throw new java.io.IOException(te);
-
 
4114
      }
-
 
4115
    }
-
 
4116
 
3653
  }
4117
  }
3654
 
4118
 
3655
  public static class insertActivity_args implements TBase<insertActivity_args._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_args>   {
4119
  public static class insertActivity_args implements org.apache.thrift.TBase<insertActivity_args, insertActivity_args._Fields>, java.io.Serializable, Cloneable   {
3656
    private static final TStruct STRUCT_DESC = new TStruct("insertActivity_args");
4120
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertActivity_args");
3657
 
4121
 
3658
    private static final TField ACTIVITY_FIELD_DESC = new TField("activity", TType.STRUCT, (short)1);
4122
    private static final org.apache.thrift.protocol.TField ACTIVITY_FIELD_DESC = new org.apache.thrift.protocol.TField("activity", org.apache.thrift.protocol.TType.STRUCT, (short)1);
3659
 
4123
 
3660
    private Activity activity;
4124
    private Activity activity; // required
3661
 
4125
 
3662
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4126
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3663
    public enum _Fields implements TFieldIdEnum {
4127
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3664
      ACTIVITY((short)1, "activity");
4128
      ACTIVITY((short)1, "activity");
3665
 
4129
 
3666
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3667
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4130
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3668
 
4131
 
3669
      static {
4132
      static {
3670
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4133
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3671
          byId.put((int)field._thriftId, field);
-
 
3672
          byName.put(field.getFieldName(), field);
4134
          byName.put(field.getFieldName(), field);
3673
        }
4135
        }
3674
      }
4136
      }
3675
 
4137
 
3676
      /**
4138
      /**
3677
       * Find the _Fields constant that matches fieldId, or null if its not found.
4139
       * Find the _Fields constant that matches fieldId, or null if its not found.
3678
       */
4140
       */
3679
      public static _Fields findByThriftId(int fieldId) {
4141
      public static _Fields findByThriftId(int fieldId) {
3680
        return byId.get(fieldId);
4142
        switch(fieldId) {
-
 
4143
          case 1: // ACTIVITY
-
 
4144
            return ACTIVITY;
-
 
4145
          default:
-
 
4146
            return null;
-
 
4147
        }
3681
      }
4148
      }
3682
 
4149
 
3683
      /**
4150
      /**
3684
       * Find the _Fields constant that matches fieldId, throwing an exception
4151
       * Find the _Fields constant that matches fieldId, throwing an exception
3685
       * if it is not found.
4152
       * if it is not found.
Line 3714... Line 4181...
3714
      }
4181
      }
3715
    }
4182
    }
3716
 
4183
 
3717
    // isset id assignments
4184
    // isset id assignments
3718
 
4185
 
3719
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4186
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3720
      put(_Fields.ACTIVITY, new FieldMetaData("activity", TFieldRequirementType.DEFAULT, 
-
 
3721
          new StructMetaData(TType.STRUCT, Activity.class)));
-
 
3722
    }});
-
 
3723
 
-
 
3724
    static {
4187
    static {
-
 
4188
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4189
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4190
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
-
 
4191
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3725
      FieldMetaData.addStructMetaDataMap(insertActivity_args.class, metaDataMap);
4192
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertActivity_args.class, metaDataMap);
3726
    }
4193
    }
3727
 
4194
 
3728
    public insertActivity_args() {
4195
    public insertActivity_args() {
3729
    }
4196
    }
3730
 
4197
 
Line 3746... Line 4213...
3746
 
4213
 
3747
    public insertActivity_args deepCopy() {
4214
    public insertActivity_args deepCopy() {
3748
      return new insertActivity_args(this);
4215
      return new insertActivity_args(this);
3749
    }
4216
    }
3750
 
4217
 
3751
    @Deprecated
4218
    @Override
3752
    public insertActivity_args clone() {
4219
    public void clear() {
3753
      return new insertActivity_args(this);
4220
      this.activity = null;
3754
    }
4221
    }
3755
 
4222
 
3756
    public Activity getActivity() {
4223
    public Activity getActivity() {
3757
      return this.activity;
4224
      return this.activity;
3758
    }
4225
    }
3759
 
4226
 
3760
    public insertActivity_args setActivity(Activity activity) {
4227
    public void setActivity(Activity activity) {
3761
      this.activity = activity;
4228
      this.activity = activity;
3762
      return this;
-
 
3763
    }
4229
    }
3764
 
4230
 
3765
    public void unsetActivity() {
4231
    public void unsetActivity() {
3766
      this.activity = null;
4232
      this.activity = null;
3767
    }
4233
    }
3768
 
4234
 
3769
    /** Returns true if field activity is set (has been asigned a value) and false otherwise */
4235
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3770
    public boolean isSetActivity() {
4236
    public boolean isSetActivity() {
3771
      return this.activity != null;
4237
      return this.activity != null;
3772
    }
4238
    }
3773
 
4239
 
3774
    public void setActivityIsSet(boolean value) {
4240
    public void setActivityIsSet(boolean value) {
Line 3788... Line 4254...
3788
        break;
4254
        break;
3789
 
4255
 
3790
      }
4256
      }
3791
    }
4257
    }
3792
 
4258
 
3793
    public void setFieldValue(int fieldID, Object value) {
-
 
3794
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3795
    }
-
 
3796
 
-
 
3797
    public Object getFieldValue(_Fields field) {
4259
    public Object getFieldValue(_Fields field) {
3798
      switch (field) {
4260
      switch (field) {
3799
      case ACTIVITY:
4261
      case ACTIVITY:
3800
        return getActivity();
4262
        return getActivity();
3801
 
4263
 
3802
      }
4264
      }
3803
      throw new IllegalStateException();
4265
      throw new IllegalStateException();
3804
    }
4266
    }
3805
 
4267
 
3806
    public Object getFieldValue(int fieldId) {
-
 
3807
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3808
    }
-
 
3809
 
-
 
3810
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4268
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3811
    public boolean isSet(_Fields field) {
4269
    public boolean isSet(_Fields field) {
-
 
4270
      if (field == null) {
-
 
4271
        throw new IllegalArgumentException();
-
 
4272
      }
-
 
4273
 
3812
      switch (field) {
4274
      switch (field) {
3813
      case ACTIVITY:
4275
      case ACTIVITY:
3814
        return isSetActivity();
4276
        return isSetActivity();
3815
      }
4277
      }
3816
      throw new IllegalStateException();
4278
      throw new IllegalStateException();
3817
    }
4279
    }
3818
 
4280
 
3819
    public boolean isSet(int fieldID) {
-
 
3820
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3821
    }
-
 
3822
 
-
 
3823
    @Override
4281
    @Override
3824
    public boolean equals(Object that) {
4282
    public boolean equals(Object that) {
3825
      if (that == null)
4283
      if (that == null)
3826
        return false;
4284
        return false;
3827
      if (that instanceof insertActivity_args)
4285
      if (that instanceof insertActivity_args)
Line 3856... Line 4314...
3856
      }
4314
      }
3857
 
4315
 
3858
      int lastComparison = 0;
4316
      int lastComparison = 0;
3859
      insertActivity_args typedOther = (insertActivity_args)other;
4317
      insertActivity_args typedOther = (insertActivity_args)other;
3860
 
4318
 
3861
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(isSetActivity());
4319
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3862
      if (lastComparison != 0) {
4320
      if (lastComparison != 0) {
3863
        return lastComparison;
4321
        return lastComparison;
3864
      }
4322
      }
-
 
4323
      if (isSetActivity()) {
3865
      lastComparison = TBaseHelper.compareTo(activity, typedOther.activity);
4324
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
3866
      if (lastComparison != 0) {
4325
        if (lastComparison != 0) {
3867
        return lastComparison;
4326
          return lastComparison;
-
 
4327
        }
3868
      }
4328
      }
3869
      return 0;
4329
      return 0;
3870
    }
4330
    }
3871
 
4331
 
-
 
4332
    public _Fields fieldForId(int fieldId) {
-
 
4333
      return _Fields.findByThriftId(fieldId);
-
 
4334
    }
-
 
4335
 
3872
    public void read(TProtocol iprot) throws TException {
4336
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3873
      TField field;
4337
      org.apache.thrift.protocol.TField field;
3874
      iprot.readStructBegin();
4338
      iprot.readStructBegin();
3875
      while (true)
4339
      while (true)
3876
      {
4340
      {
3877
        field = iprot.readFieldBegin();
4341
        field = iprot.readFieldBegin();
3878
        if (field.type == TType.STOP) { 
4342
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3879
          break;
4343
          break;
3880
        }
4344
        }
3881
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3882
        if (fieldId == null) {
-
 
3883
          TProtocolUtil.skip(iprot, field.type);
-
 
3884
        } else {
-
 
3885
          switch (fieldId) {
4345
        switch (field.id) {
3886
            case ACTIVITY:
4346
          case 1: // ACTIVITY
3887
              if (field.type == TType.STRUCT) {
4347
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3888
                this.activity = new Activity();
4348
              this.activity = new Activity();
3889
                this.activity.read(iprot);
4349
              this.activity.read(iprot);
3890
              } else { 
4350
            } else { 
3891
                TProtocolUtil.skip(iprot, field.type);
4351
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3892
              }
4352
            }
3893
              break;
4353
            break;
3894
          }
4354
          default:
3895
          iprot.readFieldEnd();
4355
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3896
        }
4356
        }
-
 
4357
        iprot.readFieldEnd();
3897
      }
4358
      }
3898
      iprot.readStructEnd();
4359
      iprot.readStructEnd();
3899
      validate();
4360
      validate();
3900
    }
4361
    }
3901
 
4362
 
3902
    public void write(TProtocol oprot) throws TException {
4363
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3903
      validate();
4364
      validate();
3904
 
4365
 
3905
      oprot.writeStructBegin(STRUCT_DESC);
4366
      oprot.writeStructBegin(STRUCT_DESC);
3906
      if (this.activity != null) {
4367
      if (this.activity != null) {
3907
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
4368
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
Line 3926... Line 4387...
3926
      first = false;
4387
      first = false;
3927
      sb.append(")");
4388
      sb.append(")");
3928
      return sb.toString();
4389
      return sb.toString();
3929
    }
4390
    }
3930
 
4391
 
3931
    public void validate() throws TException {
4392
    public void validate() throws org.apache.thrift.TException {
3932
      // check for required fields
4393
      // check for required fields
3933
    }
4394
    }
3934
 
4395
 
-
 
4396
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4397
      try {
-
 
4398
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4399
      } catch (org.apache.thrift.TException te) {
-
 
4400
        throw new java.io.IOException(te);
-
 
4401
      }
-
 
4402
    }
-
 
4403
 
-
 
4404
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4405
      try {
-
 
4406
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4407
      } catch (org.apache.thrift.TException te) {
-
 
4408
        throw new java.io.IOException(te);
-
 
4409
      }
-
 
4410
    }
-
 
4411
 
3935
  }
4412
  }
3936
 
4413
 
3937
  public static class insertActivity_result implements TBase<insertActivity_result._Fields>, java.io.Serializable, Cloneable, Comparable<insertActivity_result>   {
4414
  public static class insertActivity_result implements org.apache.thrift.TBase<insertActivity_result, insertActivity_result._Fields>, java.io.Serializable, Cloneable   {
3938
    private static final TStruct STRUCT_DESC = new TStruct("insertActivity_result");
4415
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertActivity_result");
3939
 
4416
 
3940
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
4417
    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);
3941
 
4418
 
3942
    private long success;
4419
    private long success; // required
3943
 
4420
 
3944
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4421
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3945
    public enum _Fields implements TFieldIdEnum {
4422
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3946
      SUCCESS((short)0, "success");
4423
      SUCCESS((short)0, "success");
3947
 
4424
 
3948
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3949
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4425
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3950
 
4426
 
3951
      static {
4427
      static {
3952
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4428
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3953
          byId.put((int)field._thriftId, field);
-
 
3954
          byName.put(field.getFieldName(), field);
4429
          byName.put(field.getFieldName(), field);
3955
        }
4430
        }
3956
      }
4431
      }
3957
 
4432
 
3958
      /**
4433
      /**
3959
       * Find the _Fields constant that matches fieldId, or null if its not found.
4434
       * Find the _Fields constant that matches fieldId, or null if its not found.
3960
       */
4435
       */
3961
      public static _Fields findByThriftId(int fieldId) {
4436
      public static _Fields findByThriftId(int fieldId) {
3962
        return byId.get(fieldId);
4437
        switch(fieldId) {
-
 
4438
          case 0: // SUCCESS
-
 
4439
            return SUCCESS;
-
 
4440
          default:
-
 
4441
            return null;
-
 
4442
        }
3963
      }
4443
      }
3964
 
4444
 
3965
      /**
4445
      /**
3966
       * Find the _Fields constant that matches fieldId, throwing an exception
4446
       * Find the _Fields constant that matches fieldId, throwing an exception
3967
       * if it is not found.
4447
       * if it is not found.
Line 3998... Line 4478...
3998
 
4478
 
3999
    // isset id assignments
4479
    // isset id assignments
4000
    private static final int __SUCCESS_ISSET_ID = 0;
4480
    private static final int __SUCCESS_ISSET_ID = 0;
4001
    private BitSet __isset_bit_vector = new BitSet(1);
4481
    private BitSet __isset_bit_vector = new BitSet(1);
4002
 
4482
 
4003
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4483
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4004
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
4005
          new FieldValueMetaData(TType.I64)));
-
 
4006
    }});
-
 
4007
 
-
 
4008
    static {
4484
    static {
-
 
4485
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4486
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4487
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4488
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4009
      FieldMetaData.addStructMetaDataMap(insertActivity_result.class, metaDataMap);
4489
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertActivity_result.class, metaDataMap);
4010
    }
4490
    }
4011
 
4491
 
4012
    public insertActivity_result() {
4492
    public insertActivity_result() {
4013
    }
4493
    }
4014
 
4494
 
Line 4031... Line 4511...
4031
 
4511
 
4032
    public insertActivity_result deepCopy() {
4512
    public insertActivity_result deepCopy() {
4033
      return new insertActivity_result(this);
4513
      return new insertActivity_result(this);
4034
    }
4514
    }
4035
 
4515
 
4036
    @Deprecated
4516
    @Override
4037
    public insertActivity_result clone() {
4517
    public void clear() {
4038
      return new insertActivity_result(this);
4518
      setSuccessIsSet(false);
-
 
4519
      this.success = 0;
4039
    }
4520
    }
4040
 
4521
 
4041
    public long getSuccess() {
4522
    public long getSuccess() {
4042
      return this.success;
4523
      return this.success;
4043
    }
4524
    }
4044
 
4525
 
4045
    public insertActivity_result setSuccess(long success) {
4526
    public void setSuccess(long success) {
4046
      this.success = success;
4527
      this.success = success;
4047
      setSuccessIsSet(true);
4528
      setSuccessIsSet(true);
4048
      return this;
-
 
4049
    }
4529
    }
4050
 
4530
 
4051
    public void unsetSuccess() {
4531
    public void unsetSuccess() {
4052
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
4532
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
4053
    }
4533
    }
4054
 
4534
 
4055
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
4535
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4056
    public boolean isSetSuccess() {
4536
    public boolean isSetSuccess() {
4057
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
4537
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
4058
    }
4538
    }
4059
 
4539
 
4060
    public void setSuccessIsSet(boolean value) {
4540
    public void setSuccessIsSet(boolean value) {
Line 4072... Line 4552...
4072
        break;
4552
        break;
4073
 
4553
 
4074
      }
4554
      }
4075
    }
4555
    }
4076
 
4556
 
4077
    public void setFieldValue(int fieldID, Object value) {
-
 
4078
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4079
    }
-
 
4080
 
-
 
4081
    public Object getFieldValue(_Fields field) {
4557
    public Object getFieldValue(_Fields field) {
4082
      switch (field) {
4558
      switch (field) {
4083
      case SUCCESS:
4559
      case SUCCESS:
4084
        return new Long(getSuccess());
4560
        return Long.valueOf(getSuccess());
4085
 
4561
 
4086
      }
4562
      }
4087
      throw new IllegalStateException();
4563
      throw new IllegalStateException();
4088
    }
4564
    }
4089
 
4565
 
4090
    public Object getFieldValue(int fieldId) {
-
 
4091
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4092
    }
-
 
4093
 
-
 
4094
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4566
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4095
    public boolean isSet(_Fields field) {
4567
    public boolean isSet(_Fields field) {
-
 
4568
      if (field == null) {
-
 
4569
        throw new IllegalArgumentException();
-
 
4570
      }
-
 
4571
 
4096
      switch (field) {
4572
      switch (field) {
4097
      case SUCCESS:
4573
      case SUCCESS:
4098
        return isSetSuccess();
4574
        return isSetSuccess();
4099
      }
4575
      }
4100
      throw new IllegalStateException();
4576
      throw new IllegalStateException();
4101
    }
4577
    }
4102
 
4578
 
4103
    public boolean isSet(int fieldID) {
-
 
4104
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4105
    }
-
 
4106
 
-
 
4107
    @Override
4579
    @Override
4108
    public boolean equals(Object that) {
4580
    public boolean equals(Object that) {
4109
      if (that == null)
4581
      if (that == null)
4110
        return false;
4582
        return false;
4111
      if (that instanceof insertActivity_result)
4583
      if (that instanceof insertActivity_result)
Line 4140... Line 4612...
4140
      }
4612
      }
4141
 
4613
 
4142
      int lastComparison = 0;
4614
      int lastComparison = 0;
4143
      insertActivity_result typedOther = (insertActivity_result)other;
4615
      insertActivity_result typedOther = (insertActivity_result)other;
4144
 
4616
 
4145
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
4617
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4146
      if (lastComparison != 0) {
4618
      if (lastComparison != 0) {
4147
        return lastComparison;
4619
        return lastComparison;
4148
      }
4620
      }
-
 
4621
      if (isSetSuccess()) {
4149
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
4622
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4150
      if (lastComparison != 0) {
4623
        if (lastComparison != 0) {
4151
        return lastComparison;
4624
          return lastComparison;
-
 
4625
        }
4152
      }
4626
      }
4153
      return 0;
4627
      return 0;
4154
    }
4628
    }
4155
 
4629
 
-
 
4630
    public _Fields fieldForId(int fieldId) {
-
 
4631
      return _Fields.findByThriftId(fieldId);
-
 
4632
    }
-
 
4633
 
4156
    public void read(TProtocol iprot) throws TException {
4634
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4157
      TField field;
4635
      org.apache.thrift.protocol.TField field;
4158
      iprot.readStructBegin();
4636
      iprot.readStructBegin();
4159
      while (true)
4637
      while (true)
4160
      {
4638
      {
4161
        field = iprot.readFieldBegin();
4639
        field = iprot.readFieldBegin();
4162
        if (field.type == TType.STOP) { 
4640
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4163
          break;
4641
          break;
4164
        }
4642
        }
4165
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4166
        if (fieldId == null) {
-
 
4167
          TProtocolUtil.skip(iprot, field.type);
-
 
4168
        } else {
-
 
4169
          switch (fieldId) {
4643
        switch (field.id) {
4170
            case SUCCESS:
4644
          case 0: // SUCCESS
4171
              if (field.type == TType.I64) {
4645
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4172
                this.success = iprot.readI64();
4646
              this.success = iprot.readI64();
4173
                setSuccessIsSet(true);
4647
              setSuccessIsSet(true);
4174
              } else { 
4648
            } else { 
4175
                TProtocolUtil.skip(iprot, field.type);
4649
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4176
              }
4650
            }
4177
              break;
4651
            break;
4178
          }
4652
          default:
4179
          iprot.readFieldEnd();
4653
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4180
        }
4654
        }
-
 
4655
        iprot.readFieldEnd();
4181
      }
4656
      }
4182
      iprot.readStructEnd();
4657
      iprot.readStructEnd();
4183
      validate();
4658
      validate();
4184
    }
4659
    }
4185
 
4660
 
4186
    public void write(TProtocol oprot) throws TException {
4661
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4187
      oprot.writeStructBegin(STRUCT_DESC);
4662
      oprot.writeStructBegin(STRUCT_DESC);
4188
 
4663
 
4189
      if (this.isSetSuccess()) {
4664
      if (this.isSetSuccess()) {
4190
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4665
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4191
        oprot.writeI64(this.success);
4666
        oprot.writeI64(this.success);
Line 4205... Line 4680...
4205
      first = false;
4680
      first = false;
4206
      sb.append(")");
4681
      sb.append(")");
4207
      return sb.toString();
4682
      return sb.toString();
4208
    }
4683
    }
4209
 
4684
 
4210
    public void validate() throws TException {
4685
    public void validate() throws org.apache.thrift.TException {
4211
      // check for required fields
4686
      // check for required fields
4212
    }
4687
    }
4213
 
4688
 
-
 
4689
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4690
      try {
-
 
4691
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4692
      } catch (org.apache.thrift.TException te) {
-
 
4693
        throw new java.io.IOException(te);
-
 
4694
      }
-
 
4695
    }
-
 
4696
 
-
 
4697
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4698
      try {
-
 
4699
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4700
      } catch (org.apache.thrift.TException te) {
-
 
4701
        throw new java.io.IOException(te);
-
 
4702
      }
-
 
4703
    }
-
 
4704
 
4214
  }
4705
  }
4215
 
4706
 
4216
  public static class markAsRead_args implements TBase<markAsRead_args._Fields>, java.io.Serializable, Cloneable, Comparable<markAsRead_args>   {
4707
  public static class markAsRead_args implements org.apache.thrift.TBase<markAsRead_args, markAsRead_args._Fields>, java.io.Serializable, Cloneable   {
4217
    private static final TStruct STRUCT_DESC = new TStruct("markAsRead_args");
4708
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_args");
4218
 
4709
 
4219
    private static final TField ACTIVITY_ID_FIELD_DESC = new TField("activityId", TType.I64, (short)1);
4710
    private static final org.apache.thrift.protocol.TField ACTIVITY_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("activityId", org.apache.thrift.protocol.TType.I64, (short)1);
4220
    private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)2);
4711
    private static final org.apache.thrift.protocol.TField AGENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentId", org.apache.thrift.protocol.TType.I64, (short)2);
4221
 
4712
 
4222
    private long activityId;
4713
    private long activityId; // required
4223
    private long agentId;
4714
    private long agentId; // required
4224
 
4715
 
4225
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4716
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4226
    public enum _Fields implements TFieldIdEnum {
4717
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4227
      ACTIVITY_ID((short)1, "activityId"),
4718
      ACTIVITY_ID((short)1, "activityId"),
4228
      AGENT_ID((short)2, "agentId");
4719
      AGENT_ID((short)2, "agentId");
4229
 
4720
 
4230
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4231
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4721
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4232
 
4722
 
4233
      static {
4723
      static {
4234
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4724
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4235
          byId.put((int)field._thriftId, field);
-
 
4236
          byName.put(field.getFieldName(), field);
4725
          byName.put(field.getFieldName(), field);
4237
        }
4726
        }
4238
      }
4727
      }
4239
 
4728
 
4240
      /**
4729
      /**
4241
       * Find the _Fields constant that matches fieldId, or null if its not found.
4730
       * Find the _Fields constant that matches fieldId, or null if its not found.
4242
       */
4731
       */
4243
      public static _Fields findByThriftId(int fieldId) {
4732
      public static _Fields findByThriftId(int fieldId) {
4244
        return byId.get(fieldId);
4733
        switch(fieldId) {
-
 
4734
          case 1: // ACTIVITY_ID
-
 
4735
            return ACTIVITY_ID;
-
 
4736
          case 2: // AGENT_ID
-
 
4737
            return AGENT_ID;
-
 
4738
          default:
-
 
4739
            return null;
-
 
4740
        }
4245
      }
4741
      }
4246
 
4742
 
4247
      /**
4743
      /**
4248
       * Find the _Fields constant that matches fieldId, throwing an exception
4744
       * Find the _Fields constant that matches fieldId, throwing an exception
4249
       * if it is not found.
4745
       * if it is not found.
Line 4281... Line 4777...
4281
    // isset id assignments
4777
    // isset id assignments
4282
    private static final int __ACTIVITYID_ISSET_ID = 0;
4778
    private static final int __ACTIVITYID_ISSET_ID = 0;
4283
    private static final int __AGENTID_ISSET_ID = 1;
4779
    private static final int __AGENTID_ISSET_ID = 1;
4284
    private BitSet __isset_bit_vector = new BitSet(2);
4780
    private BitSet __isset_bit_vector = new BitSet(2);
4285
 
4781
 
4286
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4782
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4287
      put(_Fields.ACTIVITY_ID, new FieldMetaData("activityId", TFieldRequirementType.DEFAULT, 
-
 
4288
          new FieldValueMetaData(TType.I64)));
-
 
4289
      put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT, 
-
 
4290
          new FieldValueMetaData(TType.I64)));
-
 
4291
    }});
-
 
4292
 
-
 
4293
    static {
4783
    static {
-
 
4784
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4785
      tmpMap.put(_Fields.ACTIVITY_ID, new org.apache.thrift.meta_data.FieldMetaData("activityId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4786
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4787
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4788
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4789
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4294
      FieldMetaData.addStructMetaDataMap(markAsRead_args.class, metaDataMap);
4790
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_args.class, metaDataMap);
4295
    }
4791
    }
4296
 
4792
 
4297
    public markAsRead_args() {
4793
    public markAsRead_args() {
4298
    }
4794
    }
4299
 
4795
 
Line 4320... Line 4816...
4320
 
4816
 
4321
    public markAsRead_args deepCopy() {
4817
    public markAsRead_args deepCopy() {
4322
      return new markAsRead_args(this);
4818
      return new markAsRead_args(this);
4323
    }
4819
    }
4324
 
4820
 
4325
    @Deprecated
4821
    @Override
4326
    public markAsRead_args clone() {
4822
    public void clear() {
-
 
4823
      setActivityIdIsSet(false);
-
 
4824
      this.activityId = 0;
4327
      return new markAsRead_args(this);
4825
      setAgentIdIsSet(false);
-
 
4826
      this.agentId = 0;
4328
    }
4827
    }
4329
 
4828
 
4330
    public long getActivityId() {
4829
    public long getActivityId() {
4331
      return this.activityId;
4830
      return this.activityId;
4332
    }
4831
    }
4333
 
4832
 
4334
    public markAsRead_args setActivityId(long activityId) {
4833
    public void setActivityId(long activityId) {
4335
      this.activityId = activityId;
4834
      this.activityId = activityId;
4336
      setActivityIdIsSet(true);
4835
      setActivityIdIsSet(true);
4337
      return this;
-
 
4338
    }
4836
    }
4339
 
4837
 
4340
    public void unsetActivityId() {
4838
    public void unsetActivityId() {
4341
      __isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);
4839
      __isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);
4342
    }
4840
    }
4343
 
4841
 
4344
    /** Returns true if field activityId is set (has been asigned a value) and false otherwise */
4842
    /** Returns true if field activityId is set (has been assigned a value) and false otherwise */
4345
    public boolean isSetActivityId() {
4843
    public boolean isSetActivityId() {
4346
      return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);
4844
      return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);
4347
    }
4845
    }
4348
 
4846
 
4349
    public void setActivityIdIsSet(boolean value) {
4847
    public void setActivityIdIsSet(boolean value) {
Line 4352... Line 4850...
4352
 
4850
 
4353
    public long getAgentId() {
4851
    public long getAgentId() {
4354
      return this.agentId;
4852
      return this.agentId;
4355
    }
4853
    }
4356
 
4854
 
4357
    public markAsRead_args setAgentId(long agentId) {
4855
    public void setAgentId(long agentId) {
4358
      this.agentId = agentId;
4856
      this.agentId = agentId;
4359
      setAgentIdIsSet(true);
4857
      setAgentIdIsSet(true);
4360
      return this;
-
 
4361
    }
4858
    }
4362
 
4859
 
4363
    public void unsetAgentId() {
4860
    public void unsetAgentId() {
4364
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
4861
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
4365
    }
4862
    }
4366
 
4863
 
4367
    /** Returns true if field agentId is set (has been asigned a value) and false otherwise */
4864
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
4368
    public boolean isSetAgentId() {
4865
    public boolean isSetAgentId() {
4369
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
4866
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
4370
    }
4867
    }
4371
 
4868
 
4372
    public void setAgentIdIsSet(boolean value) {
4869
    public void setAgentIdIsSet(boolean value) {
Line 4392... Line 4889...
4392
        break;
4889
        break;
4393
 
4890
 
4394
      }
4891
      }
4395
    }
4892
    }
4396
 
4893
 
4397
    public void setFieldValue(int fieldID, Object value) {
-
 
4398
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4399
    }
-
 
4400
 
-
 
4401
    public Object getFieldValue(_Fields field) {
4894
    public Object getFieldValue(_Fields field) {
4402
      switch (field) {
4895
      switch (field) {
4403
      case ACTIVITY_ID:
4896
      case ACTIVITY_ID:
4404
        return new Long(getActivityId());
4897
        return Long.valueOf(getActivityId());
4405
 
4898
 
4406
      case AGENT_ID:
4899
      case AGENT_ID:
4407
        return new Long(getAgentId());
4900
        return Long.valueOf(getAgentId());
4408
 
4901
 
4409
      }
4902
      }
4410
      throw new IllegalStateException();
4903
      throw new IllegalStateException();
4411
    }
4904
    }
4412
 
4905
 
4413
    public Object getFieldValue(int fieldId) {
-
 
4414
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4415
    }
-
 
4416
 
-
 
4417
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4906
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4418
    public boolean isSet(_Fields field) {
4907
    public boolean isSet(_Fields field) {
-
 
4908
      if (field == null) {
-
 
4909
        throw new IllegalArgumentException();
-
 
4910
      }
-
 
4911
 
4419
      switch (field) {
4912
      switch (field) {
4420
      case ACTIVITY_ID:
4913
      case ACTIVITY_ID:
4421
        return isSetActivityId();
4914
        return isSetActivityId();
4422
      case AGENT_ID:
4915
      case AGENT_ID:
4423
        return isSetAgentId();
4916
        return isSetAgentId();
4424
      }
4917
      }
4425
      throw new IllegalStateException();
4918
      throw new IllegalStateException();
4426
    }
4919
    }
4427
 
4920
 
4428
    public boolean isSet(int fieldID) {
-
 
4429
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4430
    }
-
 
4431
 
-
 
4432
    @Override
4921
    @Override
4433
    public boolean equals(Object that) {
4922
    public boolean equals(Object that) {
4434
      if (that == null)
4923
      if (that == null)
4435
        return false;
4924
        return false;
4436
      if (that instanceof markAsRead_args)
4925
      if (that instanceof markAsRead_args)
Line 4474... Line 4963...
4474
      }
4963
      }
4475
 
4964
 
4476
      int lastComparison = 0;
4965
      int lastComparison = 0;
4477
      markAsRead_args typedOther = (markAsRead_args)other;
4966
      markAsRead_args typedOther = (markAsRead_args)other;
4478
 
4967
 
4479
      lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(isSetActivityId());
4968
      lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(typedOther.isSetActivityId());
4480
      if (lastComparison != 0) {
4969
      if (lastComparison != 0) {
4481
        return lastComparison;
4970
        return lastComparison;
4482
      }
4971
      }
-
 
4972
      if (isSetActivityId()) {
4483
      lastComparison = TBaseHelper.compareTo(activityId, typedOther.activityId);
4973
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activityId, typedOther.activityId);
4484
      if (lastComparison != 0) {
4974
        if (lastComparison != 0) {
4485
        return lastComparison;
4975
          return lastComparison;
-
 
4976
        }
4486
      }
4977
      }
4487
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());
4978
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
4488
      if (lastComparison != 0) {
4979
      if (lastComparison != 0) {
4489
        return lastComparison;
4980
        return lastComparison;
4490
      }
4981
      }
-
 
4982
      if (isSetAgentId()) {
4491
      lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);
4983
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
4492
      if (lastComparison != 0) {
4984
        if (lastComparison != 0) {
4493
        return lastComparison;
4985
          return lastComparison;
-
 
4986
        }
4494
      }
4987
      }
4495
      return 0;
4988
      return 0;
4496
    }
4989
    }
4497
 
4990
 
-
 
4991
    public _Fields fieldForId(int fieldId) {
-
 
4992
      return _Fields.findByThriftId(fieldId);
-
 
4993
    }
-
 
4994
 
4498
    public void read(TProtocol iprot) throws TException {
4995
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4499
      TField field;
4996
      org.apache.thrift.protocol.TField field;
4500
      iprot.readStructBegin();
4997
      iprot.readStructBegin();
4501
      while (true)
4998
      while (true)
4502
      {
4999
      {
4503
        field = iprot.readFieldBegin();
5000
        field = iprot.readFieldBegin();
4504
        if (field.type == TType.STOP) { 
5001
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4505
          break;
5002
          break;
4506
        }
5003
        }
4507
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4508
        if (fieldId == null) {
-
 
4509
          TProtocolUtil.skip(iprot, field.type);
-
 
4510
        } else {
-
 
4511
          switch (fieldId) {
5004
        switch (field.id) {
4512
            case ACTIVITY_ID:
5005
          case 1: // ACTIVITY_ID
4513
              if (field.type == TType.I64) {
5006
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4514
                this.activityId = iprot.readI64();
5007
              this.activityId = iprot.readI64();
4515
                setActivityIdIsSet(true);
5008
              setActivityIdIsSet(true);
4516
              } else { 
5009
            } else { 
4517
                TProtocolUtil.skip(iprot, field.type);
5010
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4518
              }
5011
            }
4519
              break;
5012
            break;
4520
            case AGENT_ID:
5013
          case 2: // AGENT_ID
4521
              if (field.type == TType.I64) {
5014
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4522
                this.agentId = iprot.readI64();
5015
              this.agentId = iprot.readI64();
4523
                setAgentIdIsSet(true);
5016
              setAgentIdIsSet(true);
4524
              } else { 
5017
            } else { 
4525
                TProtocolUtil.skip(iprot, field.type);
5018
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4526
              }
5019
            }
4527
              break;
5020
            break;
4528
          }
5021
          default:
4529
          iprot.readFieldEnd();
5022
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4530
        }
5023
        }
-
 
5024
        iprot.readFieldEnd();
4531
      }
5025
      }
4532
      iprot.readStructEnd();
5026
      iprot.readStructEnd();
4533
      validate();
5027
      validate();
4534
    }
5028
    }
4535
 
5029
 
4536
    public void write(TProtocol oprot) throws TException {
5030
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4537
      validate();
5031
      validate();
4538
 
5032
 
4539
      oprot.writeStructBegin(STRUCT_DESC);
5033
      oprot.writeStructBegin(STRUCT_DESC);
4540
      oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);
5034
      oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);
4541
      oprot.writeI64(this.activityId);
5035
      oprot.writeI64(this.activityId);
Line 4561... Line 5055...
4561
      first = false;
5055
      first = false;
4562
      sb.append(")");
5056
      sb.append(")");
4563
      return sb.toString();
5057
      return sb.toString();
4564
    }
5058
    }
4565
 
5059
 
4566
    public void validate() throws TException {
5060
    public void validate() throws org.apache.thrift.TException {
4567
      // check for required fields
5061
      // check for required fields
4568
    }
5062
    }
4569
 
5063
 
-
 
5064
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5065
      try {
-
 
5066
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5067
      } catch (org.apache.thrift.TException te) {
-
 
5068
        throw new java.io.IOException(te);
-
 
5069
      }
-
 
5070
    }
-
 
5071
 
-
 
5072
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5073
      try {
-
 
5074
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
5075
        __isset_bit_vector = new BitSet(1);
-
 
5076
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5077
      } catch (org.apache.thrift.TException te) {
-
 
5078
        throw new java.io.IOException(te);
-
 
5079
      }
-
 
5080
    }
-
 
5081
 
4570
  }
5082
  }
4571
 
5083
 
4572
  public static class markAsRead_result implements TBase<markAsRead_result._Fields>, java.io.Serializable, Cloneable, Comparable<markAsRead_result>   {
5084
  public static class markAsRead_result implements org.apache.thrift.TBase<markAsRead_result, markAsRead_result._Fields>, java.io.Serializable, Cloneable   {
4573
    private static final TStruct STRUCT_DESC = new TStruct("markAsRead_result");
5085
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_result");
4574
 
5086
 
4575
 
5087
 
4576
 
5088
 
4577
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5089
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4578
    public enum _Fields implements TFieldIdEnum {
5090
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4579
;
5091
;
4580
 
5092
 
4581
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4582
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5093
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4583
 
5094
 
4584
      static {
5095
      static {
4585
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5096
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4586
          byId.put((int)field._thriftId, field);
-
 
4587
          byName.put(field.getFieldName(), field);
5097
          byName.put(field.getFieldName(), field);
4588
        }
5098
        }
4589
      }
5099
      }
4590
 
5100
 
4591
      /**
5101
      /**
4592
       * Find the _Fields constant that matches fieldId, or null if its not found.
5102
       * Find the _Fields constant that matches fieldId, or null if its not found.
4593
       */
5103
       */
4594
      public static _Fields findByThriftId(int fieldId) {
5104
      public static _Fields findByThriftId(int fieldId) {
4595
        return byId.get(fieldId);
5105
        switch(fieldId) {
-
 
5106
          default:
-
 
5107
            return null;
-
 
5108
        }
4596
      }
5109
      }
4597
 
5110
 
4598
      /**
5111
      /**
4599
       * Find the _Fields constant that matches fieldId, throwing an exception
5112
       * Find the _Fields constant that matches fieldId, throwing an exception
4600
       * if it is not found.
5113
       * if it is not found.
Line 4626... Line 5139...
4626
 
5139
 
4627
      public String getFieldName() {
5140
      public String getFieldName() {
4628
        return _fieldName;
5141
        return _fieldName;
4629
      }
5142
      }
4630
    }
5143
    }
4631
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5144
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4632
    }});
-
 
4633
 
-
 
4634
    static {
5145
    static {
-
 
5146
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5147
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4635
      FieldMetaData.addStructMetaDataMap(markAsRead_result.class, metaDataMap);
5148
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_result.class, metaDataMap);
4636
    }
5149
    }
4637
 
5150
 
4638
    public markAsRead_result() {
5151
    public markAsRead_result() {
4639
    }
5152
    }
4640
 
5153
 
Line 4646... Line 5159...
4646
 
5159
 
4647
    public markAsRead_result deepCopy() {
5160
    public markAsRead_result deepCopy() {
4648
      return new markAsRead_result(this);
5161
      return new markAsRead_result(this);
4649
    }
5162
    }
4650
 
5163
 
4651
    @Deprecated
5164
    @Override
4652
    public markAsRead_result clone() {
5165
    public void clear() {
4653
      return new markAsRead_result(this);
-
 
4654
    }
5166
    }
4655
 
5167
 
4656
    public void setFieldValue(_Fields field, Object value) {
5168
    public void setFieldValue(_Fields field, Object value) {
4657
      switch (field) {
5169
      switch (field) {
4658
      }
5170
      }
4659
    }
5171
    }
4660
 
5172
 
4661
    public void setFieldValue(int fieldID, Object value) {
-
 
4662
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4663
    }
-
 
4664
 
-
 
4665
    public Object getFieldValue(_Fields field) {
5173
    public Object getFieldValue(_Fields field) {
4666
      switch (field) {
5174
      switch (field) {
4667
      }
5175
      }
4668
      throw new IllegalStateException();
5176
      throw new IllegalStateException();
4669
    }
5177
    }
4670
 
5178
 
4671
    public Object getFieldValue(int fieldId) {
-
 
4672
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4673
    }
-
 
4674
 
-
 
4675
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5179
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4676
    public boolean isSet(_Fields field) {
5180
    public boolean isSet(_Fields field) {
-
 
5181
      if (field == null) {
-
 
5182
        throw new IllegalArgumentException();
-
 
5183
      }
-
 
5184
 
4677
      switch (field) {
5185
      switch (field) {
4678
      }
5186
      }
4679
      throw new IllegalStateException();
5187
      throw new IllegalStateException();
4680
    }
5188
    }
4681
 
5189
 
4682
    public boolean isSet(int fieldID) {
-
 
4683
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4684
    }
-
 
4685
 
-
 
4686
    @Override
5190
    @Override
4687
    public boolean equals(Object that) {
5191
    public boolean equals(Object that) {
4688
      if (that == null)
5192
      if (that == null)
4689
        return false;
5193
        return false;
4690
      if (that instanceof markAsRead_result)
5194
      if (that instanceof markAsRead_result)
Line 4713... Line 5217...
4713
      markAsRead_result typedOther = (markAsRead_result)other;
5217
      markAsRead_result typedOther = (markAsRead_result)other;
4714
 
5218
 
4715
      return 0;
5219
      return 0;
4716
    }
5220
    }
4717
 
5221
 
-
 
5222
    public _Fields fieldForId(int fieldId) {
-
 
5223
      return _Fields.findByThriftId(fieldId);
-
 
5224
    }
-
 
5225
 
4718
    public void read(TProtocol iprot) throws TException {
5226
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4719
      TField field;
5227
      org.apache.thrift.protocol.TField field;
4720
      iprot.readStructBegin();
5228
      iprot.readStructBegin();
4721
      while (true)
5229
      while (true)
4722
      {
5230
      {
4723
        field = iprot.readFieldBegin();
5231
        field = iprot.readFieldBegin();
4724
        if (field.type == TType.STOP) { 
5232
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4725
          break;
5233
          break;
4726
        }
5234
        }
4727
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4728
        if (fieldId == null) {
-
 
4729
          TProtocolUtil.skip(iprot, field.type);
-
 
4730
        } else {
-
 
4731
          switch (fieldId) {
5235
        switch (field.id) {
4732
          }
5236
          default:
4733
          iprot.readFieldEnd();
5237
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4734
        }
5238
        }
-
 
5239
        iprot.readFieldEnd();
4735
      }
5240
      }
4736
      iprot.readStructEnd();
5241
      iprot.readStructEnd();
4737
      validate();
5242
      validate();
4738
    }
5243
    }
4739
 
5244
 
4740
    public void write(TProtocol oprot) throws TException {
5245
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4741
      oprot.writeStructBegin(STRUCT_DESC);
5246
      oprot.writeStructBegin(STRUCT_DESC);
4742
 
5247
 
4743
      oprot.writeFieldStop();
5248
      oprot.writeFieldStop();
4744
      oprot.writeStructEnd();
5249
      oprot.writeStructEnd();
4745
    }
5250
    }
Line 4751... Line 5256...
4751
 
5256
 
4752
      sb.append(")");
5257
      sb.append(")");
4753
      return sb.toString();
5258
      return sb.toString();
4754
    }
5259
    }
4755
 
5260
 
4756
    public void validate() throws TException {
5261
    public void validate() throws org.apache.thrift.TException {
4757
      // check for required fields
5262
      // check for required fields
4758
    }
5263
    }
4759
 
5264
 
-
 
5265
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5266
      try {
-
 
5267
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5268
      } catch (org.apache.thrift.TException te) {
-
 
5269
        throw new java.io.IOException(te);
-
 
5270
      }
-
 
5271
    }
-
 
5272
 
-
 
5273
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5274
      try {
-
 
5275
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5276
      } catch (org.apache.thrift.TException te) {
-
 
5277
        throw new java.io.IOException(te);
-
 
5278
      }
-
 
5279
    }
-
 
5280
 
4760
  }
5281
  }
4761
 
5282
 
4762
  public static class getAgents_args implements TBase<getAgents_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgents_args>   {
5283
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
4763
    private static final TStruct STRUCT_DESC = new TStruct("getAgents_args");
5284
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
4764
 
5285
 
4765
    private static final TField SEARCH_FILTER_FIELD_DESC = new TField("searchFilter", TType.STRUCT, (short)1);
5286
    private static final org.apache.thrift.protocol.TField SEARCH_FILTER_FIELD_DESC = new org.apache.thrift.protocol.TField("searchFilter", org.apache.thrift.protocol.TType.STRUCT, (short)1);
4766
 
5287
 
4767
    private SearchFilter searchFilter;
5288
    private SearchFilter searchFilter; // required
4768
 
5289
 
4769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4770
    public enum _Fields implements TFieldIdEnum {
5291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4771
      SEARCH_FILTER((short)1, "searchFilter");
5292
      SEARCH_FILTER((short)1, "searchFilter");
4772
 
5293
 
4773
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4774
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4775
 
5295
 
4776
      static {
5296
      static {
4777
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4778
          byId.put((int)field._thriftId, field);
-
 
4779
          byName.put(field.getFieldName(), field);
5298
          byName.put(field.getFieldName(), field);
4780
        }
5299
        }
4781
      }
5300
      }
4782
 
5301
 
4783
      /**
5302
      /**
4784
       * Find the _Fields constant that matches fieldId, or null if its not found.
5303
       * Find the _Fields constant that matches fieldId, or null if its not found.
4785
       */
5304
       */
4786
      public static _Fields findByThriftId(int fieldId) {
5305
      public static _Fields findByThriftId(int fieldId) {
4787
        return byId.get(fieldId);
5306
        switch(fieldId) {
-
 
5307
          case 1: // SEARCH_FILTER
-
 
5308
            return SEARCH_FILTER;
-
 
5309
          default:
-
 
5310
            return null;
-
 
5311
        }
4788
      }
5312
      }
4789
 
5313
 
4790
      /**
5314
      /**
4791
       * Find the _Fields constant that matches fieldId, throwing an exception
5315
       * Find the _Fields constant that matches fieldId, throwing an exception
4792
       * if it is not found.
5316
       * if it is not found.
Line 4821... Line 5345...
4821
      }
5345
      }
4822
    }
5346
    }
4823
 
5347
 
4824
    // isset id assignments
5348
    // isset id assignments
4825
 
5349
 
4826
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5350
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4827
      put(_Fields.SEARCH_FILTER, new FieldMetaData("searchFilter", TFieldRequirementType.DEFAULT, 
-
 
4828
          new StructMetaData(TType.STRUCT, SearchFilter.class)));
-
 
4829
    }});
-
 
4830
 
-
 
4831
    static {
5351
    static {
-
 
5352
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5353
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5354
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
-
 
5355
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4832
      FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
5356
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
4833
    }
5357
    }
4834
 
5358
 
4835
    public getAgents_args() {
5359
    public getAgents_args() {
4836
    }
5360
    }
4837
 
5361
 
Line 4853... Line 5377...
4853
 
5377
 
4854
    public getAgents_args deepCopy() {
5378
    public getAgents_args deepCopy() {
4855
      return new getAgents_args(this);
5379
      return new getAgents_args(this);
4856
    }
5380
    }
4857
 
5381
 
4858
    @Deprecated
5382
    @Override
4859
    public getAgents_args clone() {
5383
    public void clear() {
4860
      return new getAgents_args(this);
5384
      this.searchFilter = null;
4861
    }
5385
    }
4862
 
5386
 
4863
    public SearchFilter getSearchFilter() {
5387
    public SearchFilter getSearchFilter() {
4864
      return this.searchFilter;
5388
      return this.searchFilter;
4865
    }
5389
    }
4866
 
5390
 
4867
    public getAgents_args setSearchFilter(SearchFilter searchFilter) {
5391
    public void setSearchFilter(SearchFilter searchFilter) {
4868
      this.searchFilter = searchFilter;
5392
      this.searchFilter = searchFilter;
4869
      return this;
-
 
4870
    }
5393
    }
4871
 
5394
 
4872
    public void unsetSearchFilter() {
5395
    public void unsetSearchFilter() {
4873
      this.searchFilter = null;
5396
      this.searchFilter = null;
4874
    }
5397
    }
4875
 
5398
 
4876
    /** Returns true if field searchFilter is set (has been asigned a value) and false otherwise */
5399
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
4877
    public boolean isSetSearchFilter() {
5400
    public boolean isSetSearchFilter() {
4878
      return this.searchFilter != null;
5401
      return this.searchFilter != null;
4879
    }
5402
    }
4880
 
5403
 
4881
    public void setSearchFilterIsSet(boolean value) {
5404
    public void setSearchFilterIsSet(boolean value) {
Line 4895... Line 5418...
4895
        break;
5418
        break;
4896
 
5419
 
4897
      }
5420
      }
4898
    }
5421
    }
4899
 
5422
 
4900
    public void setFieldValue(int fieldID, Object value) {
-
 
4901
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4902
    }
-
 
4903
 
-
 
4904
    public Object getFieldValue(_Fields field) {
5423
    public Object getFieldValue(_Fields field) {
4905
      switch (field) {
5424
      switch (field) {
4906
      case SEARCH_FILTER:
5425
      case SEARCH_FILTER:
4907
        return getSearchFilter();
5426
        return getSearchFilter();
4908
 
5427
 
4909
      }
5428
      }
4910
      throw new IllegalStateException();
5429
      throw new IllegalStateException();
4911
    }
5430
    }
4912
 
5431
 
4913
    public Object getFieldValue(int fieldId) {
-
 
4914
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4915
    }
-
 
4916
 
-
 
4917
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5432
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4918
    public boolean isSet(_Fields field) {
5433
    public boolean isSet(_Fields field) {
-
 
5434
      if (field == null) {
-
 
5435
        throw new IllegalArgumentException();
-
 
5436
      }
-
 
5437
 
4919
      switch (field) {
5438
      switch (field) {
4920
      case SEARCH_FILTER:
5439
      case SEARCH_FILTER:
4921
        return isSetSearchFilter();
5440
        return isSetSearchFilter();
4922
      }
5441
      }
4923
      throw new IllegalStateException();
5442
      throw new IllegalStateException();
4924
    }
5443
    }
4925
 
5444
 
4926
    public boolean isSet(int fieldID) {
-
 
4927
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4928
    }
-
 
4929
 
-
 
4930
    @Override
5445
    @Override
4931
    public boolean equals(Object that) {
5446
    public boolean equals(Object that) {
4932
      if (that == null)
5447
      if (that == null)
4933
        return false;
5448
        return false;
4934
      if (that instanceof getAgents_args)
5449
      if (that instanceof getAgents_args)
Line 4963... Line 5478...
4963
      }
5478
      }
4964
 
5479
 
4965
      int lastComparison = 0;
5480
      int lastComparison = 0;
4966
      getAgents_args typedOther = (getAgents_args)other;
5481
      getAgents_args typedOther = (getAgents_args)other;
4967
 
5482
 
4968
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(isSetSearchFilter());
5483
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
4969
      if (lastComparison != 0) {
5484
      if (lastComparison != 0) {
4970
        return lastComparison;
5485
        return lastComparison;
4971
      }
5486
      }
-
 
5487
      if (isSetSearchFilter()) {
4972
      lastComparison = TBaseHelper.compareTo(searchFilter, typedOther.searchFilter);
5488
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
4973
      if (lastComparison != 0) {
5489
        if (lastComparison != 0) {
4974
        return lastComparison;
5490
          return lastComparison;
-
 
5491
        }
4975
      }
5492
      }
4976
      return 0;
5493
      return 0;
4977
    }
5494
    }
4978
 
5495
 
-
 
5496
    public _Fields fieldForId(int fieldId) {
-
 
5497
      return _Fields.findByThriftId(fieldId);
-
 
5498
    }
-
 
5499
 
4979
    public void read(TProtocol iprot) throws TException {
5500
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4980
      TField field;
5501
      org.apache.thrift.protocol.TField field;
4981
      iprot.readStructBegin();
5502
      iprot.readStructBegin();
4982
      while (true)
5503
      while (true)
4983
      {
5504
      {
4984
        field = iprot.readFieldBegin();
5505
        field = iprot.readFieldBegin();
4985
        if (field.type == TType.STOP) { 
5506
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4986
          break;
5507
          break;
4987
        }
5508
        }
4988
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4989
        if (fieldId == null) {
-
 
4990
          TProtocolUtil.skip(iprot, field.type);
-
 
4991
        } else {
-
 
4992
          switch (fieldId) {
5509
        switch (field.id) {
4993
            case SEARCH_FILTER:
5510
          case 1: // SEARCH_FILTER
4994
              if (field.type == TType.STRUCT) {
5511
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4995
                this.searchFilter = new SearchFilter();
5512
              this.searchFilter = new SearchFilter();
4996
                this.searchFilter.read(iprot);
5513
              this.searchFilter.read(iprot);
4997
              } else { 
5514
            } else { 
4998
                TProtocolUtil.skip(iprot, field.type);
5515
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4999
              }
5516
            }
5000
              break;
5517
            break;
5001
          }
5518
          default:
5002
          iprot.readFieldEnd();
5519
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5003
        }
5520
        }
-
 
5521
        iprot.readFieldEnd();
5004
      }
5522
      }
5005
      iprot.readStructEnd();
5523
      iprot.readStructEnd();
5006
      validate();
5524
      validate();
5007
    }
5525
    }
5008
 
5526
 
5009
    public void write(TProtocol oprot) throws TException {
5527
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5010
      validate();
5528
      validate();
5011
 
5529
 
5012
      oprot.writeStructBegin(STRUCT_DESC);
5530
      oprot.writeStructBegin(STRUCT_DESC);
5013
      if (this.searchFilter != null) {
5531
      if (this.searchFilter != null) {
5014
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
5532
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
Line 5033... Line 5551...
5033
      first = false;
5551
      first = false;
5034
      sb.append(")");
5552
      sb.append(")");
5035
      return sb.toString();
5553
      return sb.toString();
5036
    }
5554
    }
5037
 
5555
 
5038
    public void validate() throws TException {
5556
    public void validate() throws org.apache.thrift.TException {
5039
      // check for required fields
5557
      // check for required fields
5040
    }
5558
    }
5041
 
5559
 
-
 
5560
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5561
      try {
-
 
5562
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5563
      } catch (org.apache.thrift.TException te) {
-
 
5564
        throw new java.io.IOException(te);
-
 
5565
      }
-
 
5566
    }
-
 
5567
 
-
 
5568
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5569
      try {
-
 
5570
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5571
      } catch (org.apache.thrift.TException te) {
-
 
5572
        throw new java.io.IOException(te);
-
 
5573
      }
-
 
5574
    }
-
 
5575
 
5042
  }
5576
  }
5043
 
5577
 
5044
  public static class getAgents_result implements TBase<getAgents_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAgents_result>   {
5578
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
5045
    private static final TStruct STRUCT_DESC = new TStruct("getAgents_result");
5579
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
5046
 
5580
 
5047
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
5581
    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);
5048
 
5582
 
5049
    private List<Agent> success;
5583
    private List<Agent> success; // required
5050
 
5584
 
5051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5585
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5052
    public enum _Fields implements TFieldIdEnum {
5586
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5053
      SUCCESS((short)0, "success");
5587
      SUCCESS((short)0, "success");
5054
 
5588
 
5055
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5056
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5589
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5057
 
5590
 
5058
      static {
5591
      static {
5059
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5592
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5060
          byId.put((int)field._thriftId, field);
-
 
5061
          byName.put(field.getFieldName(), field);
5593
          byName.put(field.getFieldName(), field);
5062
        }
5594
        }
5063
      }
5595
      }
5064
 
5596
 
5065
      /**
5597
      /**
5066
       * Find the _Fields constant that matches fieldId, or null if its not found.
5598
       * Find the _Fields constant that matches fieldId, or null if its not found.
5067
       */
5599
       */
5068
      public static _Fields findByThriftId(int fieldId) {
5600
      public static _Fields findByThriftId(int fieldId) {
5069
        return byId.get(fieldId);
5601
        switch(fieldId) {
-
 
5602
          case 0: // SUCCESS
-
 
5603
            return SUCCESS;
-
 
5604
          default:
-
 
5605
            return null;
-
 
5606
        }
5070
      }
5607
      }
5071
 
5608
 
5072
      /**
5609
      /**
5073
       * Find the _Fields constant that matches fieldId, throwing an exception
5610
       * Find the _Fields constant that matches fieldId, throwing an exception
5074
       * if it is not found.
5611
       * if it is not found.
Line 5103... Line 5640...
5103
      }
5640
      }
5104
    }
5641
    }
5105
 
5642
 
5106
    // isset id assignments
5643
    // isset id assignments
5107
 
5644
 
5108
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5645
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5109
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
5110
          new ListMetaData(TType.LIST, 
-
 
5111
              new StructMetaData(TType.STRUCT, Agent.class))));
-
 
5112
    }});
-
 
5113
 
-
 
5114
    static {
5646
    static {
-
 
5647
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5648
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5649
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
5650
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
-
 
5651
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5115
      FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
5652
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
5116
    }
5653
    }
5117
 
5654
 
5118
    public getAgents_result() {
5655
    public getAgents_result() {
5119
    }
5656
    }
5120
 
5657
 
Line 5140... Line 5677...
5140
 
5677
 
5141
    public getAgents_result deepCopy() {
5678
    public getAgents_result deepCopy() {
5142
      return new getAgents_result(this);
5679
      return new getAgents_result(this);
5143
    }
5680
    }
5144
 
5681
 
5145
    @Deprecated
5682
    @Override
5146
    public getAgents_result clone() {
5683
    public void clear() {
5147
      return new getAgents_result(this);
5684
      this.success = null;
5148
    }
5685
    }
5149
 
5686
 
5150
    public int getSuccessSize() {
5687
    public int getSuccessSize() {
5151
      return (this.success == null) ? 0 : this.success.size();
5688
      return (this.success == null) ? 0 : this.success.size();
5152
    }
5689
    }
Line 5164... Line 5701...
5164
 
5701
 
5165
    public List<Agent> getSuccess() {
5702
    public List<Agent> getSuccess() {
5166
      return this.success;
5703
      return this.success;
5167
    }
5704
    }
5168
 
5705
 
5169
    public getAgents_result setSuccess(List<Agent> success) {
5706
    public void setSuccess(List<Agent> success) {
5170
      this.success = success;
5707
      this.success = success;
5171
      return this;
-
 
5172
    }
5708
    }
5173
 
5709
 
5174
    public void unsetSuccess() {
5710
    public void unsetSuccess() {
5175
      this.success = null;
5711
      this.success = null;
5176
    }
5712
    }
5177
 
5713
 
5178
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
5714
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5179
    public boolean isSetSuccess() {
5715
    public boolean isSetSuccess() {
5180
      return this.success != null;
5716
      return this.success != null;
5181
    }
5717
    }
5182
 
5718
 
5183
    public void setSuccessIsSet(boolean value) {
5719
    public void setSuccessIsSet(boolean value) {
Line 5197... Line 5733...
5197
        break;
5733
        break;
5198
 
5734
 
5199
      }
5735
      }
5200
    }
5736
    }
5201
 
5737
 
5202
    public void setFieldValue(int fieldID, Object value) {
-
 
5203
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5204
    }
-
 
5205
 
-
 
5206
    public Object getFieldValue(_Fields field) {
5738
    public Object getFieldValue(_Fields field) {
5207
      switch (field) {
5739
      switch (field) {
5208
      case SUCCESS:
5740
      case SUCCESS:
5209
        return getSuccess();
5741
        return getSuccess();
5210
 
5742
 
5211
      }
5743
      }
5212
      throw new IllegalStateException();
5744
      throw new IllegalStateException();
5213
    }
5745
    }
5214
 
5746
 
5215
    public Object getFieldValue(int fieldId) {
-
 
5216
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5217
    }
-
 
5218
 
-
 
5219
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5747
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5220
    public boolean isSet(_Fields field) {
5748
    public boolean isSet(_Fields field) {
-
 
5749
      if (field == null) {
-
 
5750
        throw new IllegalArgumentException();
-
 
5751
      }
-
 
5752
 
5221
      switch (field) {
5753
      switch (field) {
5222
      case SUCCESS:
5754
      case SUCCESS:
5223
        return isSetSuccess();
5755
        return isSetSuccess();
5224
      }
5756
      }
5225
      throw new IllegalStateException();
5757
      throw new IllegalStateException();
5226
    }
5758
    }
5227
 
5759
 
5228
    public boolean isSet(int fieldID) {
-
 
5229
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5230
    }
-
 
5231
 
-
 
5232
    @Override
5760
    @Override
5233
    public boolean equals(Object that) {
5761
    public boolean equals(Object that) {
5234
      if (that == null)
5762
      if (that == null)
5235
        return false;
5763
        return false;
5236
      if (that instanceof getAgents_result)
5764
      if (that instanceof getAgents_result)
Line 5265... Line 5793...
5265
      }
5793
      }
5266
 
5794
 
5267
      int lastComparison = 0;
5795
      int lastComparison = 0;
5268
      getAgents_result typedOther = (getAgents_result)other;
5796
      getAgents_result typedOther = (getAgents_result)other;
5269
 
5797
 
5270
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
5798
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5271
      if (lastComparison != 0) {
5799
      if (lastComparison != 0) {
5272
        return lastComparison;
5800
        return lastComparison;
5273
      }
5801
      }
-
 
5802
      if (isSetSuccess()) {
5274
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
5803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5275
      if (lastComparison != 0) {
5804
        if (lastComparison != 0) {
5276
        return lastComparison;
5805
          return lastComparison;
-
 
5806
        }
5277
      }
5807
      }
5278
      return 0;
5808
      return 0;
5279
    }
5809
    }
5280
 
5810
 
-
 
5811
    public _Fields fieldForId(int fieldId) {
-
 
5812
      return _Fields.findByThriftId(fieldId);
-
 
5813
    }
-
 
5814
 
5281
    public void read(TProtocol iprot) throws TException {
5815
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5282
      TField field;
5816
      org.apache.thrift.protocol.TField field;
5283
      iprot.readStructBegin();
5817
      iprot.readStructBegin();
5284
      while (true)
5818
      while (true)
5285
      {
5819
      {
5286
        field = iprot.readFieldBegin();
5820
        field = iprot.readFieldBegin();
5287
        if (field.type == TType.STOP) { 
5821
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5288
          break;
5822
          break;
5289
        }
5823
        }
5290
        _Fields fieldId = _Fields.findByThriftId(field.id);
5824
        switch (field.id) {
5291
        if (fieldId == null) {
5825
          case 0: // SUCCESS
5292
          TProtocolUtil.skip(iprot, field.type);
5826
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5293
        } else {
5827
              {
5294
          switch (fieldId) {
5828
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
5295
            case SUCCESS:
5829
                this.success = new ArrayList<Agent>(_list20.size);
5296
              if (field.type == TType.LIST) {
5830
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
5297
                {
5831
                {
5298
                  TList _list20 = iprot.readListBegin();
-
 
5299
                  this.success = new ArrayList<Agent>(_list20.size);
-
 
5300
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
5301
                  {
-
 
5302
                    Agent _elem22;
5832
                  Agent _elem22; // required
5303
                    _elem22 = new Agent();
5833
                  _elem22 = new Agent();
5304
                    _elem22.read(iprot);
5834
                  _elem22.read(iprot);
5305
                    this.success.add(_elem22);
5835
                  this.success.add(_elem22);
5306
                  }
-
 
5307
                  iprot.readListEnd();
-
 
5308
                }
5836
                }
5309
              } else { 
5837
                iprot.readListEnd();
5310
                TProtocolUtil.skip(iprot, field.type);
-
 
5311
              }
5838
              }
5312
              break;
5839
            } else { 
-
 
5840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5313
          }
5841
            }
5314
          iprot.readFieldEnd();
5842
            break;
-
 
5843
          default:
-
 
5844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5315
        }
5845
        }
-
 
5846
        iprot.readFieldEnd();
5316
      }
5847
      }
5317
      iprot.readStructEnd();
5848
      iprot.readStructEnd();
5318
      validate();
5849
      validate();
5319
    }
5850
    }
5320
 
5851
 
5321
    public void write(TProtocol oprot) throws TException {
5852
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5322
      oprot.writeStructBegin(STRUCT_DESC);
5853
      oprot.writeStructBegin(STRUCT_DESC);
5323
 
5854
 
5324
      if (this.isSetSuccess()) {
5855
      if (this.isSetSuccess()) {
5325
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5856
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5326
        {
5857
        {
5327
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
5858
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
5328
          for (Agent _iter23 : this.success)
5859
          for (Agent _iter23 : this.success)
5329
          {
5860
          {
5330
            _iter23.write(oprot);
5861
            _iter23.write(oprot);
5331
          }
5862
          }
5332
          oprot.writeListEnd();
5863
          oprot.writeListEnd();
Line 5351... Line 5882...
5351
      first = false;
5882
      first = false;
5352
      sb.append(")");
5883
      sb.append(")");
5353
      return sb.toString();
5884
      return sb.toString();
5354
    }
5885
    }
5355
 
5886
 
5356
    public void validate() throws TException {
5887
    public void validate() throws org.apache.thrift.TException {
5357
      // check for required fields
5888
      // check for required fields
5358
    }
5889
    }
5359
 
5890
 
-
 
5891
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5892
      try {
-
 
5893
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5894
      } catch (org.apache.thrift.TException te) {
-
 
5895
        throw new java.io.IOException(te);
-
 
5896
      }
-
 
5897
    }
-
 
5898
 
-
 
5899
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5900
      try {
-
 
5901
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5902
      } catch (org.apache.thrift.TException te) {
-
 
5903
        throw new java.io.IOException(te);
-
 
5904
      }
-
 
5905
    }
-
 
5906
 
5360
  }
5907
  }
5361
 
5908
 
5362
  public static class updatePasswordForAgent_args implements TBase<updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePasswordForAgent_args>   {
5909
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
5363
    private static final TStruct STRUCT_DESC = new TStruct("updatePasswordForAgent_args");
5910
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
5364
 
5911
 
5365
    private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);
5912
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
5366
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
5913
    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);
5367
 
5914
 
5368
    private String agentEmailId;
5915
    private String agentEmailId; // required
5369
    private String password;
5916
    private String password; // required
5370
 
5917
 
5371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5918
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5372
    public enum _Fields implements TFieldIdEnum {
5919
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5373
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
5920
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
5374
      PASSWORD((short)2, "password");
5921
      PASSWORD((short)2, "password");
5375
 
5922
 
5376
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5377
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5923
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5378
 
5924
 
5379
      static {
5925
      static {
5380
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5926
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5381
          byId.put((int)field._thriftId, field);
-
 
5382
          byName.put(field.getFieldName(), field);
5927
          byName.put(field.getFieldName(), field);
5383
        }
5928
        }
5384
      }
5929
      }
5385
 
5930
 
5386
      /**
5931
      /**
5387
       * Find the _Fields constant that matches fieldId, or null if its not found.
5932
       * Find the _Fields constant that matches fieldId, or null if its not found.
5388
       */
5933
       */
5389
      public static _Fields findByThriftId(int fieldId) {
5934
      public static _Fields findByThriftId(int fieldId) {
5390
        return byId.get(fieldId);
5935
        switch(fieldId) {
-
 
5936
          case 1: // AGENT_EMAIL_ID
-
 
5937
            return AGENT_EMAIL_ID;
-
 
5938
          case 2: // PASSWORD
-
 
5939
            return PASSWORD;
-
 
5940
          default:
-
 
5941
            return null;
-
 
5942
        }
5391
      }
5943
      }
5392
 
5944
 
5393
      /**
5945
      /**
5394
       * Find the _Fields constant that matches fieldId, throwing an exception
5946
       * Find the _Fields constant that matches fieldId, throwing an exception
5395
       * if it is not found.
5947
       * if it is not found.
Line 5424... Line 5976...
5424
      }
5976
      }
5425
    }
5977
    }
5426
 
5978
 
5427
    // isset id assignments
5979
    // isset id assignments
5428
 
5980
 
5429
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5981
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5430
      put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT, 
-
 
5431
          new FieldValueMetaData(TType.STRING)));
-
 
5432
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
5433
          new FieldValueMetaData(TType.STRING)));
-
 
5434
    }});
-
 
5435
 
-
 
5436
    static {
5982
    static {
-
 
5983
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5984
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5985
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
5986
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5987
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
5988
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5437
      FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
5989
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
5438
    }
5990
    }
5439
 
5991
 
5440
    public updatePasswordForAgent_args() {
5992
    public updatePasswordForAgent_args() {
5441
    }
5993
    }
5442
 
5994
 
Line 5463... Line 6015...
5463
 
6015
 
5464
    public updatePasswordForAgent_args deepCopy() {
6016
    public updatePasswordForAgent_args deepCopy() {
5465
      return new updatePasswordForAgent_args(this);
6017
      return new updatePasswordForAgent_args(this);
5466
    }
6018
    }
5467
 
6019
 
5468
    @Deprecated
6020
    @Override
5469
    public updatePasswordForAgent_args clone() {
6021
    public void clear() {
-
 
6022
      this.agentEmailId = null;
5470
      return new updatePasswordForAgent_args(this);
6023
      this.password = null;
5471
    }
6024
    }
5472
 
6025
 
5473
    public String getAgentEmailId() {
6026
    public String getAgentEmailId() {
5474
      return this.agentEmailId;
6027
      return this.agentEmailId;
5475
    }
6028
    }
5476
 
6029
 
5477
    public updatePasswordForAgent_args setAgentEmailId(String agentEmailId) {
6030
    public void setAgentEmailId(String agentEmailId) {
5478
      this.agentEmailId = agentEmailId;
6031
      this.agentEmailId = agentEmailId;
5479
      return this;
-
 
5480
    }
6032
    }
5481
 
6033
 
5482
    public void unsetAgentEmailId() {
6034
    public void unsetAgentEmailId() {
5483
      this.agentEmailId = null;
6035
      this.agentEmailId = null;
5484
    }
6036
    }
5485
 
6037
 
5486
    /** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */
6038
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
5487
    public boolean isSetAgentEmailId() {
6039
    public boolean isSetAgentEmailId() {
5488
      return this.agentEmailId != null;
6040
      return this.agentEmailId != null;
5489
    }
6041
    }
5490
 
6042
 
5491
    public void setAgentEmailIdIsSet(boolean value) {
6043
    public void setAgentEmailIdIsSet(boolean value) {
Line 5496... Line 6048...
5496
 
6048
 
5497
    public String getPassword() {
6049
    public String getPassword() {
5498
      return this.password;
6050
      return this.password;
5499
    }
6051
    }
5500
 
6052
 
5501
    public updatePasswordForAgent_args setPassword(String password) {
6053
    public void setPassword(String password) {
5502
      this.password = password;
6054
      this.password = password;
5503
      return this;
-
 
5504
    }
6055
    }
5505
 
6056
 
5506
    public void unsetPassword() {
6057
    public void unsetPassword() {
5507
      this.password = null;
6058
      this.password = null;
5508
    }
6059
    }
5509
 
6060
 
5510
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
6061
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
5511
    public boolean isSetPassword() {
6062
    public boolean isSetPassword() {
5512
      return this.password != null;
6063
      return this.password != null;
5513
    }
6064
    }
5514
 
6065
 
5515
    public void setPasswordIsSet(boolean value) {
6066
    public void setPasswordIsSet(boolean value) {
Line 5537... Line 6088...
5537
        break;
6088
        break;
5538
 
6089
 
5539
      }
6090
      }
5540
    }
6091
    }
5541
 
6092
 
5542
    public void setFieldValue(int fieldID, Object value) {
-
 
5543
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5544
    }
-
 
5545
 
-
 
5546
    public Object getFieldValue(_Fields field) {
6093
    public Object getFieldValue(_Fields field) {
5547
      switch (field) {
6094
      switch (field) {
5548
      case AGENT_EMAIL_ID:
6095
      case AGENT_EMAIL_ID:
5549
        return getAgentEmailId();
6096
        return getAgentEmailId();
5550
 
6097
 
Line 5553... Line 6100...
5553
 
6100
 
5554
      }
6101
      }
5555
      throw new IllegalStateException();
6102
      throw new IllegalStateException();
5556
    }
6103
    }
5557
 
6104
 
5558
    public Object getFieldValue(int fieldId) {
-
 
5559
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5560
    }
-
 
5561
 
-
 
5562
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6105
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5563
    public boolean isSet(_Fields field) {
6106
    public boolean isSet(_Fields field) {
-
 
6107
      if (field == null) {
-
 
6108
        throw new IllegalArgumentException();
-
 
6109
      }
-
 
6110
 
5564
      switch (field) {
6111
      switch (field) {
5565
      case AGENT_EMAIL_ID:
6112
      case AGENT_EMAIL_ID:
5566
        return isSetAgentEmailId();
6113
        return isSetAgentEmailId();
5567
      case PASSWORD:
6114
      case PASSWORD:
5568
        return isSetPassword();
6115
        return isSetPassword();
5569
      }
6116
      }
5570
      throw new IllegalStateException();
6117
      throw new IllegalStateException();
5571
    }
6118
    }
5572
 
6119
 
5573
    public boolean isSet(int fieldID) {
-
 
5574
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5575
    }
-
 
5576
 
-
 
5577
    @Override
6120
    @Override
5578
    public boolean equals(Object that) {
6121
    public boolean equals(Object that) {
5579
      if (that == null)
6122
      if (that == null)
5580
        return false;
6123
        return false;
5581
      if (that instanceof updatePasswordForAgent_args)
6124
      if (that instanceof updatePasswordForAgent_args)
Line 5619... Line 6162...
5619
      }
6162
      }
5620
 
6163
 
5621
      int lastComparison = 0;
6164
      int lastComparison = 0;
5622
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
6165
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
5623
 
6166
 
5624
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());
6167
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
5625
      if (lastComparison != 0) {
6168
      if (lastComparison != 0) {
5626
        return lastComparison;
6169
        return lastComparison;
5627
      }
6170
      }
-
 
6171
      if (isSetAgentEmailId()) {
5628
      lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);
6172
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
5629
      if (lastComparison != 0) {
6173
        if (lastComparison != 0) {
5630
        return lastComparison;
6174
          return lastComparison;
-
 
6175
        }
5631
      }
6176
      }
5632
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
6177
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
5633
      if (lastComparison != 0) {
6178
      if (lastComparison != 0) {
5634
        return lastComparison;
6179
        return lastComparison;
5635
      }
6180
      }
-
 
6181
      if (isSetPassword()) {
5636
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
6182
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
5637
      if (lastComparison != 0) {
6183
        if (lastComparison != 0) {
5638
        return lastComparison;
6184
          return lastComparison;
-
 
6185
        }
5639
      }
6186
      }
5640
      return 0;
6187
      return 0;
5641
    }
6188
    }
5642
 
6189
 
-
 
6190
    public _Fields fieldForId(int fieldId) {
-
 
6191
      return _Fields.findByThriftId(fieldId);
-
 
6192
    }
-
 
6193
 
5643
    public void read(TProtocol iprot) throws TException {
6194
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5644
      TField field;
6195
      org.apache.thrift.protocol.TField field;
5645
      iprot.readStructBegin();
6196
      iprot.readStructBegin();
5646
      while (true)
6197
      while (true)
5647
      {
6198
      {
5648
        field = iprot.readFieldBegin();
6199
        field = iprot.readFieldBegin();
5649
        if (field.type == TType.STOP) { 
6200
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5650
          break;
6201
          break;
5651
        }
6202
        }
5652
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5653
        if (fieldId == null) {
-
 
5654
          TProtocolUtil.skip(iprot, field.type);
-
 
5655
        } else {
-
 
5656
          switch (fieldId) {
6203
        switch (field.id) {
5657
            case AGENT_EMAIL_ID:
6204
          case 1: // AGENT_EMAIL_ID
5658
              if (field.type == TType.STRING) {
6205
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5659
                this.agentEmailId = iprot.readString();
6206
              this.agentEmailId = iprot.readString();
5660
              } else { 
6207
            } else { 
5661
                TProtocolUtil.skip(iprot, field.type);
6208
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5662
              }
6209
            }
5663
              break;
6210
            break;
5664
            case PASSWORD:
6211
          case 2: // PASSWORD
5665
              if (field.type == TType.STRING) {
6212
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5666
                this.password = iprot.readString();
6213
              this.password = iprot.readString();
5667
              } else { 
6214
            } else { 
5668
                TProtocolUtil.skip(iprot, field.type);
6215
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5669
              }
6216
            }
5670
              break;
6217
            break;
5671
          }
6218
          default:
5672
          iprot.readFieldEnd();
6219
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5673
        }
6220
        }
-
 
6221
        iprot.readFieldEnd();
5674
      }
6222
      }
5675
      iprot.readStructEnd();
6223
      iprot.readStructEnd();
5676
      validate();
6224
      validate();
5677
    }
6225
    }
5678
 
6226
 
5679
    public void write(TProtocol oprot) throws TException {
6227
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5680
      validate();
6228
      validate();
5681
 
6229
 
5682
      oprot.writeStructBegin(STRUCT_DESC);
6230
      oprot.writeStructBegin(STRUCT_DESC);
5683
      if (this.agentEmailId != null) {
6231
      if (this.agentEmailId != null) {
5684
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
6232
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
Line 5716... Line 6264...
5716
      first = false;
6264
      first = false;
5717
      sb.append(")");
6265
      sb.append(")");
5718
      return sb.toString();
6266
      return sb.toString();
5719
    }
6267
    }
5720
 
6268
 
5721
    public void validate() throws TException {
6269
    public void validate() throws org.apache.thrift.TException {
5722
      // check for required fields
6270
      // check for required fields
5723
    }
6271
    }
5724
 
6272
 
-
 
6273
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6274
      try {
-
 
6275
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6276
      } catch (org.apache.thrift.TException te) {
-
 
6277
        throw new java.io.IOException(te);
-
 
6278
      }
-
 
6279
    }
-
 
6280
 
-
 
6281
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6282
      try {
-
 
6283
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6284
      } catch (org.apache.thrift.TException te) {
-
 
6285
        throw new java.io.IOException(te);
-
 
6286
      }
-
 
6287
    }
-
 
6288
 
5725
  }
6289
  }
5726
 
6290
 
5727
  public static class updatePasswordForAgent_result implements TBase<updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePasswordForAgent_result>   {
6291
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
5728
    private static final TStruct STRUCT_DESC = new TStruct("updatePasswordForAgent_result");
6292
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
5729
 
6293
 
5730
 
6294
 
5731
 
6295
 
5732
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6296
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5733
    public enum _Fields implements TFieldIdEnum {
6297
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5734
;
6298
;
5735
 
6299
 
5736
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5737
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6300
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5738
 
6301
 
5739
      static {
6302
      static {
5740
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6303
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5741
          byId.put((int)field._thriftId, field);
-
 
5742
          byName.put(field.getFieldName(), field);
6304
          byName.put(field.getFieldName(), field);
5743
        }
6305
        }
5744
      }
6306
      }
5745
 
6307
 
5746
      /**
6308
      /**
5747
       * Find the _Fields constant that matches fieldId, or null if its not found.
6309
       * Find the _Fields constant that matches fieldId, or null if its not found.
5748
       */
6310
       */
5749
      public static _Fields findByThriftId(int fieldId) {
6311
      public static _Fields findByThriftId(int fieldId) {
5750
        return byId.get(fieldId);
6312
        switch(fieldId) {
-
 
6313
          default:
-
 
6314
            return null;
-
 
6315
        }
5751
      }
6316
      }
5752
 
6317
 
5753
      /**
6318
      /**
5754
       * Find the _Fields constant that matches fieldId, throwing an exception
6319
       * Find the _Fields constant that matches fieldId, throwing an exception
5755
       * if it is not found.
6320
       * if it is not found.
Line 5781... Line 6346...
5781
 
6346
 
5782
      public String getFieldName() {
6347
      public String getFieldName() {
5783
        return _fieldName;
6348
        return _fieldName;
5784
      }
6349
      }
5785
    }
6350
    }
5786
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6351
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5787
    }});
-
 
5788
 
-
 
5789
    static {
6352
    static {
-
 
6353
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6354
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5790
      FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
6355
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
5791
    }
6356
    }
5792
 
6357
 
5793
    public updatePasswordForAgent_result() {
6358
    public updatePasswordForAgent_result() {
5794
    }
6359
    }
5795
 
6360
 
Line 5801... Line 6366...
5801
 
6366
 
5802
    public updatePasswordForAgent_result deepCopy() {
6367
    public updatePasswordForAgent_result deepCopy() {
5803
      return new updatePasswordForAgent_result(this);
6368
      return new updatePasswordForAgent_result(this);
5804
    }
6369
    }
5805
 
6370
 
5806
    @Deprecated
6371
    @Override
5807
    public updatePasswordForAgent_result clone() {
6372
    public void clear() {
5808
      return new updatePasswordForAgent_result(this);
-
 
5809
    }
6373
    }
5810
 
6374
 
5811
    public void setFieldValue(_Fields field, Object value) {
6375
    public void setFieldValue(_Fields field, Object value) {
5812
      switch (field) {
6376
      switch (field) {
5813
      }
6377
      }
5814
    }
6378
    }
5815
 
6379
 
5816
    public void setFieldValue(int fieldID, Object value) {
-
 
5817
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5818
    }
-
 
5819
 
-
 
5820
    public Object getFieldValue(_Fields field) {
6380
    public Object getFieldValue(_Fields field) {
5821
      switch (field) {
6381
      switch (field) {
5822
      }
6382
      }
5823
      throw new IllegalStateException();
6383
      throw new IllegalStateException();
5824
    }
6384
    }
5825
 
6385
 
5826
    public Object getFieldValue(int fieldId) {
-
 
5827
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5828
    }
-
 
5829
 
-
 
5830
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6386
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5831
    public boolean isSet(_Fields field) {
6387
    public boolean isSet(_Fields field) {
-
 
6388
      if (field == null) {
-
 
6389
        throw new IllegalArgumentException();
-
 
6390
      }
-
 
6391
 
5832
      switch (field) {
6392
      switch (field) {
5833
      }
6393
      }
5834
      throw new IllegalStateException();
6394
      throw new IllegalStateException();
5835
    }
6395
    }
5836
 
6396
 
5837
    public boolean isSet(int fieldID) {
-
 
5838
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5839
    }
-
 
5840
 
-
 
5841
    @Override
6397
    @Override
5842
    public boolean equals(Object that) {
6398
    public boolean equals(Object that) {
5843
      if (that == null)
6399
      if (that == null)
5844
        return false;
6400
        return false;
5845
      if (that instanceof updatePasswordForAgent_result)
6401
      if (that instanceof updatePasswordForAgent_result)
Line 5868... Line 6424...
5868
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
6424
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
5869
 
6425
 
5870
      return 0;
6426
      return 0;
5871
    }
6427
    }
5872
 
6428
 
-
 
6429
    public _Fields fieldForId(int fieldId) {
-
 
6430
      return _Fields.findByThriftId(fieldId);
-
 
6431
    }
-
 
6432
 
5873
    public void read(TProtocol iprot) throws TException {
6433
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5874
      TField field;
6434
      org.apache.thrift.protocol.TField field;
5875
      iprot.readStructBegin();
6435
      iprot.readStructBegin();
5876
      while (true)
6436
      while (true)
5877
      {
6437
      {
5878
        field = iprot.readFieldBegin();
6438
        field = iprot.readFieldBegin();
5879
        if (field.type == TType.STOP) { 
6439
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5880
          break;
6440
          break;
5881
        }
6441
        }
5882
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5883
        if (fieldId == null) {
-
 
5884
          TProtocolUtil.skip(iprot, field.type);
-
 
5885
        } else {
-
 
5886
          switch (fieldId) {
6442
        switch (field.id) {
5887
          }
6443
          default:
5888
          iprot.readFieldEnd();
6444
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5889
        }
6445
        }
-
 
6446
        iprot.readFieldEnd();
5890
      }
6447
      }
5891
      iprot.readStructEnd();
6448
      iprot.readStructEnd();
5892
      validate();
6449
      validate();
5893
    }
6450
    }
5894
 
6451
 
5895
    public void write(TProtocol oprot) throws TException {
6452
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5896
      oprot.writeStructBegin(STRUCT_DESC);
6453
      oprot.writeStructBegin(STRUCT_DESC);
5897
 
6454
 
5898
      oprot.writeFieldStop();
6455
      oprot.writeFieldStop();
5899
      oprot.writeStructEnd();
6456
      oprot.writeStructEnd();
5900
    }
6457
    }
Line 5906... Line 6463...
5906
 
6463
 
5907
      sb.append(")");
6464
      sb.append(")");
5908
      return sb.toString();
6465
      return sb.toString();
5909
    }
6466
    }
5910
 
6467
 
5911
    public void validate() throws TException {
6468
    public void validate() throws org.apache.thrift.TException {
5912
      // check for required fields
6469
      // check for required fields
5913
    }
6470
    }
5914
 
6471
 
-
 
6472
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6473
      try {
-
 
6474
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6475
      } catch (org.apache.thrift.TException te) {
-
 
6476
        throw new java.io.IOException(te);
-
 
6477
      }
-
 
6478
    }
-
 
6479
 
-
 
6480
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6481
      try {
-
 
6482
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6483
      } catch (org.apache.thrift.TException te) {
-
 
6484
        throw new java.io.IOException(te);
-
 
6485
      }
-
 
6486
    }
-
 
6487
 
5915
  }
6488
  }
5916
 
6489
 
5917
  public static class getRoleNamesForAgent_args implements TBase<getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoleNamesForAgent_args>   {
6490
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
5918
    private static final TStruct STRUCT_DESC = new TStruct("getRoleNamesForAgent_args");
6491
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
5919
 
6492
 
5920
    private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);
6493
    private static final org.apache.thrift.protocol.TField AGENT_EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentEmailId", org.apache.thrift.protocol.TType.STRING, (short)1);
5921
 
6494
 
5922
    private String agentEmailId;
6495
    private String agentEmailId; // required
5923
 
6496
 
5924
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6497
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5925
    public enum _Fields implements TFieldIdEnum {
6498
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5926
      AGENT_EMAIL_ID((short)1, "agentEmailId");
6499
      AGENT_EMAIL_ID((short)1, "agentEmailId");
5927
 
6500
 
5928
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6501
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5930
 
6502
 
5931
      static {
6503
      static {
5932
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6504
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5933
          byId.put((int)field._thriftId, field);
-
 
5934
          byName.put(field.getFieldName(), field);
6505
          byName.put(field.getFieldName(), field);
5935
        }
6506
        }
5936
      }
6507
      }
5937
 
6508
 
5938
      /**
6509
      /**
5939
       * Find the _Fields constant that matches fieldId, or null if its not found.
6510
       * Find the _Fields constant that matches fieldId, or null if its not found.
5940
       */
6511
       */
5941
      public static _Fields findByThriftId(int fieldId) {
6512
      public static _Fields findByThriftId(int fieldId) {
5942
        return byId.get(fieldId);
6513
        switch(fieldId) {
-
 
6514
          case 1: // AGENT_EMAIL_ID
-
 
6515
            return AGENT_EMAIL_ID;
-
 
6516
          default:
-
 
6517
            return null;
-
 
6518
        }
5943
      }
6519
      }
5944
 
6520
 
5945
      /**
6521
      /**
5946
       * Find the _Fields constant that matches fieldId, throwing an exception
6522
       * Find the _Fields constant that matches fieldId, throwing an exception
5947
       * if it is not found.
6523
       * if it is not found.
Line 5976... Line 6552...
5976
      }
6552
      }
5977
    }
6553
    }
5978
 
6554
 
5979
    // isset id assignments
6555
    // isset id assignments
5980
 
6556
 
5981
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5982
      put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT, 
-
 
5983
          new FieldValueMetaData(TType.STRING)));
-
 
5984
    }});
-
 
5985
 
-
 
5986
    static {
6558
    static {
-
 
6559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6560
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6562
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5987
      FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
6563
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
5988
    }
6564
    }
5989
 
6565
 
5990
    public getRoleNamesForAgent_args() {
6566
    public getRoleNamesForAgent_args() {
5991
    }
6567
    }
5992
 
6568
 
Line 6008... Line 6584...
6008
 
6584
 
6009
    public getRoleNamesForAgent_args deepCopy() {
6585
    public getRoleNamesForAgent_args deepCopy() {
6010
      return new getRoleNamesForAgent_args(this);
6586
      return new getRoleNamesForAgent_args(this);
6011
    }
6587
    }
6012
 
6588
 
6013
    @Deprecated
6589
    @Override
6014
    public getRoleNamesForAgent_args clone() {
6590
    public void clear() {
6015
      return new getRoleNamesForAgent_args(this);
6591
      this.agentEmailId = null;
6016
    }
6592
    }
6017
 
6593
 
6018
    public String getAgentEmailId() {
6594
    public String getAgentEmailId() {
6019
      return this.agentEmailId;
6595
      return this.agentEmailId;
6020
    }
6596
    }
6021
 
6597
 
6022
    public getRoleNamesForAgent_args setAgentEmailId(String agentEmailId) {
6598
    public void setAgentEmailId(String agentEmailId) {
6023
      this.agentEmailId = agentEmailId;
6599
      this.agentEmailId = agentEmailId;
6024
      return this;
-
 
6025
    }
6600
    }
6026
 
6601
 
6027
    public void unsetAgentEmailId() {
6602
    public void unsetAgentEmailId() {
6028
      this.agentEmailId = null;
6603
      this.agentEmailId = null;
6029
    }
6604
    }
6030
 
6605
 
6031
    /** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */
6606
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
6032
    public boolean isSetAgentEmailId() {
6607
    public boolean isSetAgentEmailId() {
6033
      return this.agentEmailId != null;
6608
      return this.agentEmailId != null;
6034
    }
6609
    }
6035
 
6610
 
6036
    public void setAgentEmailIdIsSet(boolean value) {
6611
    public void setAgentEmailIdIsSet(boolean value) {
Line 6050... Line 6625...
6050
        break;
6625
        break;
6051
 
6626
 
6052
      }
6627
      }
6053
    }
6628
    }
6054
 
6629
 
6055
    public void setFieldValue(int fieldID, Object value) {
-
 
6056
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6057
    }
-
 
6058
 
-
 
6059
    public Object getFieldValue(_Fields field) {
6630
    public Object getFieldValue(_Fields field) {
6060
      switch (field) {
6631
      switch (field) {
6061
      case AGENT_EMAIL_ID:
6632
      case AGENT_EMAIL_ID:
6062
        return getAgentEmailId();
6633
        return getAgentEmailId();
6063
 
6634
 
6064
      }
6635
      }
6065
      throw new IllegalStateException();
6636
      throw new IllegalStateException();
6066
    }
6637
    }
6067
 
6638
 
6068
    public Object getFieldValue(int fieldId) {
-
 
6069
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6070
    }
-
 
6071
 
-
 
6072
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6639
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6073
    public boolean isSet(_Fields field) {
6640
    public boolean isSet(_Fields field) {
-
 
6641
      if (field == null) {
-
 
6642
        throw new IllegalArgumentException();
-
 
6643
      }
-
 
6644
 
6074
      switch (field) {
6645
      switch (field) {
6075
      case AGENT_EMAIL_ID:
6646
      case AGENT_EMAIL_ID:
6076
        return isSetAgentEmailId();
6647
        return isSetAgentEmailId();
6077
      }
6648
      }
6078
      throw new IllegalStateException();
6649
      throw new IllegalStateException();
6079
    }
6650
    }
6080
 
6651
 
6081
    public boolean isSet(int fieldID) {
-
 
6082
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6083
    }
-
 
6084
 
-
 
6085
    @Override
6652
    @Override
6086
    public boolean equals(Object that) {
6653
    public boolean equals(Object that) {
6087
      if (that == null)
6654
      if (that == null)
6088
        return false;
6655
        return false;
6089
      if (that instanceof getRoleNamesForAgent_args)
6656
      if (that instanceof getRoleNamesForAgent_args)
Line 6118... Line 6685...
6118
      }
6685
      }
6119
 
6686
 
6120
      int lastComparison = 0;
6687
      int lastComparison = 0;
6121
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
6688
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
6122
 
6689
 
6123
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());
6690
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
6124
      if (lastComparison != 0) {
6691
      if (lastComparison != 0) {
6125
        return lastComparison;
6692
        return lastComparison;
6126
      }
6693
      }
-
 
6694
      if (isSetAgentEmailId()) {
6127
      lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);
6695
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
6128
      if (lastComparison != 0) {
6696
        if (lastComparison != 0) {
6129
        return lastComparison;
6697
          return lastComparison;
-
 
6698
        }
6130
      }
6699
      }
6131
      return 0;
6700
      return 0;
6132
    }
6701
    }
6133
 
6702
 
-
 
6703
    public _Fields fieldForId(int fieldId) {
-
 
6704
      return _Fields.findByThriftId(fieldId);
-
 
6705
    }
-
 
6706
 
6134
    public void read(TProtocol iprot) throws TException {
6707
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6135
      TField field;
6708
      org.apache.thrift.protocol.TField field;
6136
      iprot.readStructBegin();
6709
      iprot.readStructBegin();
6137
      while (true)
6710
      while (true)
6138
      {
6711
      {
6139
        field = iprot.readFieldBegin();
6712
        field = iprot.readFieldBegin();
6140
        if (field.type == TType.STOP) { 
6713
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6141
          break;
6714
          break;
6142
        }
6715
        }
6143
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6144
        if (fieldId == null) {
-
 
6145
          TProtocolUtil.skip(iprot, field.type);
-
 
6146
        } else {
-
 
6147
          switch (fieldId) {
6716
        switch (field.id) {
6148
            case AGENT_EMAIL_ID:
6717
          case 1: // AGENT_EMAIL_ID
6149
              if (field.type == TType.STRING) {
6718
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6150
                this.agentEmailId = iprot.readString();
6719
              this.agentEmailId = iprot.readString();
6151
              } else { 
6720
            } else { 
6152
                TProtocolUtil.skip(iprot, field.type);
6721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6153
              }
6722
            }
6154
              break;
6723
            break;
6155
          }
6724
          default:
6156
          iprot.readFieldEnd();
6725
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6157
        }
6726
        }
-
 
6727
        iprot.readFieldEnd();
6158
      }
6728
      }
6159
      iprot.readStructEnd();
6729
      iprot.readStructEnd();
6160
      validate();
6730
      validate();
6161
    }
6731
    }
6162
 
6732
 
6163
    public void write(TProtocol oprot) throws TException {
6733
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6164
      validate();
6734
      validate();
6165
 
6735
 
6166
      oprot.writeStructBegin(STRUCT_DESC);
6736
      oprot.writeStructBegin(STRUCT_DESC);
6167
      if (this.agentEmailId != null) {
6737
      if (this.agentEmailId != null) {
6168
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
6738
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
Line 6187... Line 6757...
6187
      first = false;
6757
      first = false;
6188
      sb.append(")");
6758
      sb.append(")");
6189
      return sb.toString();
6759
      return sb.toString();
6190
    }
6760
    }
6191
 
6761
 
6192
    public void validate() throws TException {
6762
    public void validate() throws org.apache.thrift.TException {
6193
      // check for required fields
6763
      // check for required fields
6194
    }
6764
    }
6195
 
6765
 
-
 
6766
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6767
      try {
-
 
6768
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6769
      } catch (org.apache.thrift.TException te) {
-
 
6770
        throw new java.io.IOException(te);
-
 
6771
      }
-
 
6772
    }
-
 
6773
 
-
 
6774
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6775
      try {
-
 
6776
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6777
      } catch (org.apache.thrift.TException te) {
-
 
6778
        throw new java.io.IOException(te);
-
 
6779
      }
-
 
6780
    }
-
 
6781
 
6196
  }
6782
  }
6197
 
6783
 
6198
  public static class getRoleNamesForAgent_result implements TBase<getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoleNamesForAgent_result>   {
6784
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
6199
    private static final TStruct STRUCT_DESC = new TStruct("getRoleNamesForAgent_result");
6785
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
6200
 
6786
 
6201
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
6787
    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);
6202
 
6788
 
6203
    private List<String> success;
6789
    private List<String> success; // required
6204
 
6790
 
6205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6791
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6206
    public enum _Fields implements TFieldIdEnum {
6792
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6207
      SUCCESS((short)0, "success");
6793
      SUCCESS((short)0, "success");
6208
 
6794
 
6209
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6795
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6211
 
6796
 
6212
      static {
6797
      static {
6213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6798
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6214
          byId.put((int)field._thriftId, field);
-
 
6215
          byName.put(field.getFieldName(), field);
6799
          byName.put(field.getFieldName(), field);
6216
        }
6800
        }
6217
      }
6801
      }
6218
 
6802
 
6219
      /**
6803
      /**
6220
       * Find the _Fields constant that matches fieldId, or null if its not found.
6804
       * Find the _Fields constant that matches fieldId, or null if its not found.
6221
       */
6805
       */
6222
      public static _Fields findByThriftId(int fieldId) {
6806
      public static _Fields findByThriftId(int fieldId) {
6223
        return byId.get(fieldId);
6807
        switch(fieldId) {
-
 
6808
          case 0: // SUCCESS
-
 
6809
            return SUCCESS;
-
 
6810
          default:
-
 
6811
            return null;
-
 
6812
        }
6224
      }
6813
      }
6225
 
6814
 
6226
      /**
6815
      /**
6227
       * Find the _Fields constant that matches fieldId, throwing an exception
6816
       * Find the _Fields constant that matches fieldId, throwing an exception
6228
       * if it is not found.
6817
       * if it is not found.
Line 6257... Line 6846...
6257
      }
6846
      }
6258
    }
6847
    }
6259
 
6848
 
6260
    // isset id assignments
6849
    // isset id assignments
6261
 
6850
 
6262
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6851
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6263
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6264
          new ListMetaData(TType.LIST, 
-
 
6265
              new FieldValueMetaData(TType.STRING))));
-
 
6266
    }});
-
 
6267
 
-
 
6268
    static {
6852
    static {
-
 
6853
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6854
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6855
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
6856
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
6857
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6269
      FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
6858
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
6270
    }
6859
    }
6271
 
6860
 
6272
    public getRoleNamesForAgent_result() {
6861
    public getRoleNamesForAgent_result() {
6273
    }
6862
    }
6274
 
6863
 
Line 6294... Line 6883...
6294
 
6883
 
6295
    public getRoleNamesForAgent_result deepCopy() {
6884
    public getRoleNamesForAgent_result deepCopy() {
6296
      return new getRoleNamesForAgent_result(this);
6885
      return new getRoleNamesForAgent_result(this);
6297
    }
6886
    }
6298
 
6887
 
6299
    @Deprecated
6888
    @Override
6300
    public getRoleNamesForAgent_result clone() {
6889
    public void clear() {
6301
      return new getRoleNamesForAgent_result(this);
6890
      this.success = null;
6302
    }
6891
    }
6303
 
6892
 
6304
    public int getSuccessSize() {
6893
    public int getSuccessSize() {
6305
      return (this.success == null) ? 0 : this.success.size();
6894
      return (this.success == null) ? 0 : this.success.size();
6306
    }
6895
    }
Line 6318... Line 6907...
6318
 
6907
 
6319
    public List<String> getSuccess() {
6908
    public List<String> getSuccess() {
6320
      return this.success;
6909
      return this.success;
6321
    }
6910
    }
6322
 
6911
 
6323
    public getRoleNamesForAgent_result setSuccess(List<String> success) {
6912
    public void setSuccess(List<String> success) {
6324
      this.success = success;
6913
      this.success = success;
6325
      return this;
-
 
6326
    }
6914
    }
6327
 
6915
 
6328
    public void unsetSuccess() {
6916
    public void unsetSuccess() {
6329
      this.success = null;
6917
      this.success = null;
6330
    }
6918
    }
6331
 
6919
 
6332
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
6920
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6333
    public boolean isSetSuccess() {
6921
    public boolean isSetSuccess() {
6334
      return this.success != null;
6922
      return this.success != null;
6335
    }
6923
    }
6336
 
6924
 
6337
    public void setSuccessIsSet(boolean value) {
6925
    public void setSuccessIsSet(boolean value) {
Line 6351... Line 6939...
6351
        break;
6939
        break;
6352
 
6940
 
6353
      }
6941
      }
6354
    }
6942
    }
6355
 
6943
 
6356
    public void setFieldValue(int fieldID, Object value) {
-
 
6357
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6358
    }
-
 
6359
 
-
 
6360
    public Object getFieldValue(_Fields field) {
6944
    public Object getFieldValue(_Fields field) {
6361
      switch (field) {
6945
      switch (field) {
6362
      case SUCCESS:
6946
      case SUCCESS:
6363
        return getSuccess();
6947
        return getSuccess();
6364
 
6948
 
6365
      }
6949
      }
6366
      throw new IllegalStateException();
6950
      throw new IllegalStateException();
6367
    }
6951
    }
6368
 
6952
 
6369
    public Object getFieldValue(int fieldId) {
-
 
6370
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6371
    }
-
 
6372
 
-
 
6373
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6953
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6374
    public boolean isSet(_Fields field) {
6954
    public boolean isSet(_Fields field) {
-
 
6955
      if (field == null) {
-
 
6956
        throw new IllegalArgumentException();
-
 
6957
      }
-
 
6958
 
6375
      switch (field) {
6959
      switch (field) {
6376
      case SUCCESS:
6960
      case SUCCESS:
6377
        return isSetSuccess();
6961
        return isSetSuccess();
6378
      }
6962
      }
6379
      throw new IllegalStateException();
6963
      throw new IllegalStateException();
6380
    }
6964
    }
6381
 
6965
 
6382
    public boolean isSet(int fieldID) {
-
 
6383
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6384
    }
-
 
6385
 
-
 
6386
    @Override
6966
    @Override
6387
    public boolean equals(Object that) {
6967
    public boolean equals(Object that) {
6388
      if (that == null)
6968
      if (that == null)
6389
        return false;
6969
        return false;
6390
      if (that instanceof getRoleNamesForAgent_result)
6970
      if (that instanceof getRoleNamesForAgent_result)
Line 6419... Line 6999...
6419
      }
6999
      }
6420
 
7000
 
6421
      int lastComparison = 0;
7001
      int lastComparison = 0;
6422
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
7002
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
6423
 
7003
 
6424
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
7004
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6425
      if (lastComparison != 0) {
7005
      if (lastComparison != 0) {
6426
        return lastComparison;
7006
        return lastComparison;
6427
      }
7007
      }
-
 
7008
      if (isSetSuccess()) {
6428
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
7009
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6429
      if (lastComparison != 0) {
7010
        if (lastComparison != 0) {
6430
        return lastComparison;
7011
          return lastComparison;
-
 
7012
        }
6431
      }
7013
      }
6432
      return 0;
7014
      return 0;
6433
    }
7015
    }
6434
 
7016
 
-
 
7017
    public _Fields fieldForId(int fieldId) {
-
 
7018
      return _Fields.findByThriftId(fieldId);
-
 
7019
    }
-
 
7020
 
6435
    public void read(TProtocol iprot) throws TException {
7021
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6436
      TField field;
7022
      org.apache.thrift.protocol.TField field;
6437
      iprot.readStructBegin();
7023
      iprot.readStructBegin();
6438
      while (true)
7024
      while (true)
6439
      {
7025
      {
6440
        field = iprot.readFieldBegin();
7026
        field = iprot.readFieldBegin();
6441
        if (field.type == TType.STOP) { 
7027
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6442
          break;
7028
          break;
6443
        }
7029
        }
6444
        _Fields fieldId = _Fields.findByThriftId(field.id);
7030
        switch (field.id) {
6445
        if (fieldId == null) {
7031
          case 0: // SUCCESS
6446
          TProtocolUtil.skip(iprot, field.type);
7032
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6447
        } else {
7033
              {
6448
          switch (fieldId) {
7034
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
6449
            case SUCCESS:
7035
                this.success = new ArrayList<String>(_list24.size);
6450
              if (field.type == TType.LIST) {
7036
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
6451
                {
7037
                {
6452
                  TList _list24 = iprot.readListBegin();
-
 
6453
                  this.success = new ArrayList<String>(_list24.size);
-
 
6454
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
6455
                  {
-
 
6456
                    String _elem26;
7038
                  String _elem26; // required
6457
                    _elem26 = iprot.readString();
7039
                  _elem26 = iprot.readString();
6458
                    this.success.add(_elem26);
7040
                  this.success.add(_elem26);
6459
                  }
-
 
6460
                  iprot.readListEnd();
-
 
6461
                }
7041
                }
6462
              } else { 
7042
                iprot.readListEnd();
6463
                TProtocolUtil.skip(iprot, field.type);
-
 
6464
              }
7043
              }
6465
              break;
7044
            } else { 
-
 
7045
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6466
          }
7046
            }
6467
          iprot.readFieldEnd();
7047
            break;
-
 
7048
          default:
-
 
7049
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6468
        }
7050
        }
-
 
7051
        iprot.readFieldEnd();
6469
      }
7052
      }
6470
      iprot.readStructEnd();
7053
      iprot.readStructEnd();
6471
      validate();
7054
      validate();
6472
    }
7055
    }
6473
 
7056
 
6474
    public void write(TProtocol oprot) throws TException {
7057
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6475
      oprot.writeStructBegin(STRUCT_DESC);
7058
      oprot.writeStructBegin(STRUCT_DESC);
6476
 
7059
 
6477
      if (this.isSetSuccess()) {
7060
      if (this.isSetSuccess()) {
6478
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7061
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6479
        {
7062
        {
6480
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
7063
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
6481
          for (String _iter27 : this.success)
7064
          for (String _iter27 : this.success)
6482
          {
7065
          {
6483
            oprot.writeString(_iter27);
7066
            oprot.writeString(_iter27);
6484
          }
7067
          }
6485
          oprot.writeListEnd();
7068
          oprot.writeListEnd();
Line 6504... Line 7087...
6504
      first = false;
7087
      first = false;
6505
      sb.append(")");
7088
      sb.append(")");
6506
      return sb.toString();
7089
      return sb.toString();
6507
    }
7090
    }
6508
 
7091
 
6509
    public void validate() throws TException {
7092
    public void validate() throws org.apache.thrift.TException {
6510
      // check for required fields
7093
      // check for required fields
6511
    }
7094
    }
6512
 
7095
 
-
 
7096
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7097
      try {
-
 
7098
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7099
      } catch (org.apache.thrift.TException te) {
-
 
7100
        throw new java.io.IOException(te);
-
 
7101
      }
-
 
7102
    }
-
 
7103
 
-
 
7104
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7105
      try {
-
 
7106
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7107
      } catch (org.apache.thrift.TException te) {
-
 
7108
        throw new java.io.IOException(te);
-
 
7109
      }
-
 
7110
    }
-
 
7111
 
6513
  }
7112
  }
6514
 
7113
 
6515
  public static class getPermissionsForRoleName_args implements TBase<getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionsForRoleName_args>   {
7114
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
6516
    private static final TStruct STRUCT_DESC = new TStruct("getPermissionsForRoleName_args");
7115
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
6517
 
7116
 
6518
    private static final TField ROLE_NAME_FIELD_DESC = new TField("roleName", TType.STRING, (short)1);
7117
    private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1);
6519
 
7118
 
6520
    private String roleName;
7119
    private String roleName; // required
6521
 
7120
 
6522
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7121
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6523
    public enum _Fields implements TFieldIdEnum {
7122
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6524
      ROLE_NAME((short)1, "roleName");
7123
      ROLE_NAME((short)1, "roleName");
6525
 
7124
 
6526
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7125
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6528
 
7126
 
6529
      static {
7127
      static {
6530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7128
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6531
          byId.put((int)field._thriftId, field);
-
 
6532
          byName.put(field.getFieldName(), field);
7129
          byName.put(field.getFieldName(), field);
6533
        }
7130
        }
6534
      }
7131
      }
6535
 
7132
 
6536
      /**
7133
      /**
6537
       * Find the _Fields constant that matches fieldId, or null if its not found.
7134
       * Find the _Fields constant that matches fieldId, or null if its not found.
6538
       */
7135
       */
6539
      public static _Fields findByThriftId(int fieldId) {
7136
      public static _Fields findByThriftId(int fieldId) {
6540
        return byId.get(fieldId);
7137
        switch(fieldId) {
-
 
7138
          case 1: // ROLE_NAME
-
 
7139
            return ROLE_NAME;
-
 
7140
          default:
-
 
7141
            return null;
-
 
7142
        }
6541
      }
7143
      }
6542
 
7144
 
6543
      /**
7145
      /**
6544
       * Find the _Fields constant that matches fieldId, throwing an exception
7146
       * Find the _Fields constant that matches fieldId, throwing an exception
6545
       * if it is not found.
7147
       * if it is not found.
Line 6574... Line 7176...
6574
      }
7176
      }
6575
    }
7177
    }
6576
 
7178
 
6577
    // isset id assignments
7179
    // isset id assignments
6578
 
7180
 
6579
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7181
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6580
      put(_Fields.ROLE_NAME, new FieldMetaData("roleName", TFieldRequirementType.DEFAULT, 
-
 
6581
          new FieldValueMetaData(TType.STRING)));
-
 
6582
    }});
-
 
6583
 
-
 
6584
    static {
7182
    static {
-
 
7183
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7184
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7185
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
7186
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6585
      FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
7187
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
6586
    }
7188
    }
6587
 
7189
 
6588
    public getPermissionsForRoleName_args() {
7190
    public getPermissionsForRoleName_args() {
6589
    }
7191
    }
6590
 
7192
 
Line 6606... Line 7208...
6606
 
7208
 
6607
    public getPermissionsForRoleName_args deepCopy() {
7209
    public getPermissionsForRoleName_args deepCopy() {
6608
      return new getPermissionsForRoleName_args(this);
7210
      return new getPermissionsForRoleName_args(this);
6609
    }
7211
    }
6610
 
7212
 
6611
    @Deprecated
7213
    @Override
6612
    public getPermissionsForRoleName_args clone() {
7214
    public void clear() {
6613
      return new getPermissionsForRoleName_args(this);
7215
      this.roleName = null;
6614
    }
7216
    }
6615
 
7217
 
6616
    public String getRoleName() {
7218
    public String getRoleName() {
6617
      return this.roleName;
7219
      return this.roleName;
6618
    }
7220
    }
6619
 
7221
 
6620
    public getPermissionsForRoleName_args setRoleName(String roleName) {
7222
    public void setRoleName(String roleName) {
6621
      this.roleName = roleName;
7223
      this.roleName = roleName;
6622
      return this;
-
 
6623
    }
7224
    }
6624
 
7225
 
6625
    public void unsetRoleName() {
7226
    public void unsetRoleName() {
6626
      this.roleName = null;
7227
      this.roleName = null;
6627
    }
7228
    }
6628
 
7229
 
6629
    /** Returns true if field roleName is set (has been asigned a value) and false otherwise */
7230
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
6630
    public boolean isSetRoleName() {
7231
    public boolean isSetRoleName() {
6631
      return this.roleName != null;
7232
      return this.roleName != null;
6632
    }
7233
    }
6633
 
7234
 
6634
    public void setRoleNameIsSet(boolean value) {
7235
    public void setRoleNameIsSet(boolean value) {
Line 6648... Line 7249...
6648
        break;
7249
        break;
6649
 
7250
 
6650
      }
7251
      }
6651
    }
7252
    }
6652
 
7253
 
6653
    public void setFieldValue(int fieldID, Object value) {
-
 
6654
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6655
    }
-
 
6656
 
-
 
6657
    public Object getFieldValue(_Fields field) {
7254
    public Object getFieldValue(_Fields field) {
6658
      switch (field) {
7255
      switch (field) {
6659
      case ROLE_NAME:
7256
      case ROLE_NAME:
6660
        return getRoleName();
7257
        return getRoleName();
6661
 
7258
 
6662
      }
7259
      }
6663
      throw new IllegalStateException();
7260
      throw new IllegalStateException();
6664
    }
7261
    }
6665
 
7262
 
6666
    public Object getFieldValue(int fieldId) {
-
 
6667
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6668
    }
-
 
6669
 
-
 
6670
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7263
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6671
    public boolean isSet(_Fields field) {
7264
    public boolean isSet(_Fields field) {
-
 
7265
      if (field == null) {
-
 
7266
        throw new IllegalArgumentException();
-
 
7267
      }
-
 
7268
 
6672
      switch (field) {
7269
      switch (field) {
6673
      case ROLE_NAME:
7270
      case ROLE_NAME:
6674
        return isSetRoleName();
7271
        return isSetRoleName();
6675
      }
7272
      }
6676
      throw new IllegalStateException();
7273
      throw new IllegalStateException();
6677
    }
7274
    }
6678
 
7275
 
6679
    public boolean isSet(int fieldID) {
-
 
6680
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6681
    }
-
 
6682
 
-
 
6683
    @Override
7276
    @Override
6684
    public boolean equals(Object that) {
7277
    public boolean equals(Object that) {
6685
      if (that == null)
7278
      if (that == null)
6686
        return false;
7279
        return false;
6687
      if (that instanceof getPermissionsForRoleName_args)
7280
      if (that instanceof getPermissionsForRoleName_args)
Line 6716... Line 7309...
6716
      }
7309
      }
6717
 
7310
 
6718
      int lastComparison = 0;
7311
      int lastComparison = 0;
6719
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
7312
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
6720
 
7313
 
6721
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(isSetRoleName());
7314
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
6722
      if (lastComparison != 0) {
7315
      if (lastComparison != 0) {
6723
        return lastComparison;
7316
        return lastComparison;
6724
      }
7317
      }
-
 
7318
      if (isSetRoleName()) {
6725
      lastComparison = TBaseHelper.compareTo(roleName, typedOther.roleName);
7319
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
6726
      if (lastComparison != 0) {
7320
        if (lastComparison != 0) {
6727
        return lastComparison;
7321
          return lastComparison;
-
 
7322
        }
6728
      }
7323
      }
6729
      return 0;
7324
      return 0;
6730
    }
7325
    }
6731
 
7326
 
-
 
7327
    public _Fields fieldForId(int fieldId) {
-
 
7328
      return _Fields.findByThriftId(fieldId);
-
 
7329
    }
-
 
7330
 
6732
    public void read(TProtocol iprot) throws TException {
7331
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6733
      TField field;
7332
      org.apache.thrift.protocol.TField field;
6734
      iprot.readStructBegin();
7333
      iprot.readStructBegin();
6735
      while (true)
7334
      while (true)
6736
      {
7335
      {
6737
        field = iprot.readFieldBegin();
7336
        field = iprot.readFieldBegin();
6738
        if (field.type == TType.STOP) { 
7337
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6739
          break;
7338
          break;
6740
        }
7339
        }
6741
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6742
        if (fieldId == null) {
-
 
6743
          TProtocolUtil.skip(iprot, field.type);
-
 
6744
        } else {
-
 
6745
          switch (fieldId) {
7340
        switch (field.id) {
6746
            case ROLE_NAME:
7341
          case 1: // ROLE_NAME
6747
              if (field.type == TType.STRING) {
7342
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
6748
                this.roleName = iprot.readString();
7343
              this.roleName = iprot.readString();
6749
              } else { 
7344
            } else { 
6750
                TProtocolUtil.skip(iprot, field.type);
7345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6751
              }
7346
            }
6752
              break;
7347
            break;
6753
          }
7348
          default:
6754
          iprot.readFieldEnd();
7349
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6755
        }
7350
        }
-
 
7351
        iprot.readFieldEnd();
6756
      }
7352
      }
6757
      iprot.readStructEnd();
7353
      iprot.readStructEnd();
6758
      validate();
7354
      validate();
6759
    }
7355
    }
6760
 
7356
 
6761
    public void write(TProtocol oprot) throws TException {
7357
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6762
      validate();
7358
      validate();
6763
 
7359
 
6764
      oprot.writeStructBegin(STRUCT_DESC);
7360
      oprot.writeStructBegin(STRUCT_DESC);
6765
      if (this.roleName != null) {
7361
      if (this.roleName != null) {
6766
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
7362
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
Line 6785... Line 7381...
6785
      first = false;
7381
      first = false;
6786
      sb.append(")");
7382
      sb.append(")");
6787
      return sb.toString();
7383
      return sb.toString();
6788
    }
7384
    }
6789
 
7385
 
6790
    public void validate() throws TException {
7386
    public void validate() throws org.apache.thrift.TException {
6791
      // check for required fields
7387
      // check for required fields
6792
    }
7388
    }
6793
 
7389
 
-
 
7390
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7391
      try {
-
 
7392
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7393
      } catch (org.apache.thrift.TException te) {
-
 
7394
        throw new java.io.IOException(te);
-
 
7395
      }
-
 
7396
    }
-
 
7397
 
-
 
7398
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7399
      try {
-
 
7400
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7401
      } catch (org.apache.thrift.TException te) {
-
 
7402
        throw new java.io.IOException(te);
-
 
7403
      }
-
 
7404
    }
-
 
7405
 
6794
  }
7406
  }
6795
 
7407
 
6796
  public static class getPermissionsForRoleName_result implements TBase<getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionsForRoleName_result>   {
7408
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
6797
    private static final TStruct STRUCT_DESC = new TStruct("getPermissionsForRoleName_result");
7409
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
6798
 
7410
 
6799
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
7411
    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);
6800
 
7412
 
6801
    private List<String> success;
7413
    private List<String> success; // required
6802
 
7414
 
6803
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7415
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6804
    public enum _Fields implements TFieldIdEnum {
7416
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6805
      SUCCESS((short)0, "success");
7417
      SUCCESS((short)0, "success");
6806
 
7418
 
6807
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6808
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7419
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6809
 
7420
 
6810
      static {
7421
      static {
6811
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7422
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6812
          byId.put((int)field._thriftId, field);
-
 
6813
          byName.put(field.getFieldName(), field);
7423
          byName.put(field.getFieldName(), field);
6814
        }
7424
        }
6815
      }
7425
      }
6816
 
7426
 
6817
      /**
7427
      /**
6818
       * Find the _Fields constant that matches fieldId, or null if its not found.
7428
       * Find the _Fields constant that matches fieldId, or null if its not found.
6819
       */
7429
       */
6820
      public static _Fields findByThriftId(int fieldId) {
7430
      public static _Fields findByThriftId(int fieldId) {
6821
        return byId.get(fieldId);
7431
        switch(fieldId) {
-
 
7432
          case 0: // SUCCESS
-
 
7433
            return SUCCESS;
-
 
7434
          default:
-
 
7435
            return null;
-
 
7436
        }
6822
      }
7437
      }
6823
 
7438
 
6824
      /**
7439
      /**
6825
       * Find the _Fields constant that matches fieldId, throwing an exception
7440
       * Find the _Fields constant that matches fieldId, throwing an exception
6826
       * if it is not found.
7441
       * if it is not found.
Line 6855... Line 7470...
6855
      }
7470
      }
6856
    }
7471
    }
6857
 
7472
 
6858
    // isset id assignments
7473
    // isset id assignments
6859
 
7474
 
6860
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7475
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6861
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6862
          new ListMetaData(TType.LIST, 
-
 
6863
              new FieldValueMetaData(TType.STRING))));
-
 
6864
    }});
-
 
6865
 
-
 
6866
    static {
7476
    static {
-
 
7477
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7478
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7479
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
7480
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
7481
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6867
      FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
7482
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
6868
    }
7483
    }
6869
 
7484
 
6870
    public getPermissionsForRoleName_result() {
7485
    public getPermissionsForRoleName_result() {
6871
    }
7486
    }
6872
 
7487
 
Line 6892... Line 7507...
6892
 
7507
 
6893
    public getPermissionsForRoleName_result deepCopy() {
7508
    public getPermissionsForRoleName_result deepCopy() {
6894
      return new getPermissionsForRoleName_result(this);
7509
      return new getPermissionsForRoleName_result(this);
6895
    }
7510
    }
6896
 
7511
 
6897
    @Deprecated
7512
    @Override
6898
    public getPermissionsForRoleName_result clone() {
7513
    public void clear() {
6899
      return new getPermissionsForRoleName_result(this);
7514
      this.success = null;
6900
    }
7515
    }
6901
 
7516
 
6902
    public int getSuccessSize() {
7517
    public int getSuccessSize() {
6903
      return (this.success == null) ? 0 : this.success.size();
7518
      return (this.success == null) ? 0 : this.success.size();
6904
    }
7519
    }
Line 6916... Line 7531...
6916
 
7531
 
6917
    public List<String> getSuccess() {
7532
    public List<String> getSuccess() {
6918
      return this.success;
7533
      return this.success;
6919
    }
7534
    }
6920
 
7535
 
6921
    public getPermissionsForRoleName_result setSuccess(List<String> success) {
7536
    public void setSuccess(List<String> success) {
6922
      this.success = success;
7537
      this.success = success;
6923
      return this;
-
 
6924
    }
7538
    }
6925
 
7539
 
6926
    public void unsetSuccess() {
7540
    public void unsetSuccess() {
6927
      this.success = null;
7541
      this.success = null;
6928
    }
7542
    }
6929
 
7543
 
6930
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
7544
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6931
    public boolean isSetSuccess() {
7545
    public boolean isSetSuccess() {
6932
      return this.success != null;
7546
      return this.success != null;
6933
    }
7547
    }
6934
 
7548
 
6935
    public void setSuccessIsSet(boolean value) {
7549
    public void setSuccessIsSet(boolean value) {
Line 6949... Line 7563...
6949
        break;
7563
        break;
6950
 
7564
 
6951
      }
7565
      }
6952
    }
7566
    }
6953
 
7567
 
6954
    public void setFieldValue(int fieldID, Object value) {
-
 
6955
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6956
    }
-
 
6957
 
-
 
6958
    public Object getFieldValue(_Fields field) {
7568
    public Object getFieldValue(_Fields field) {
6959
      switch (field) {
7569
      switch (field) {
6960
      case SUCCESS:
7570
      case SUCCESS:
6961
        return getSuccess();
7571
        return getSuccess();
6962
 
7572
 
6963
      }
7573
      }
6964
      throw new IllegalStateException();
7574
      throw new IllegalStateException();
6965
    }
7575
    }
6966
 
7576
 
6967
    public Object getFieldValue(int fieldId) {
-
 
6968
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6969
    }
-
 
6970
 
-
 
6971
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7577
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6972
    public boolean isSet(_Fields field) {
7578
    public boolean isSet(_Fields field) {
-
 
7579
      if (field == null) {
-
 
7580
        throw new IllegalArgumentException();
-
 
7581
      }
-
 
7582
 
6973
      switch (field) {
7583
      switch (field) {
6974
      case SUCCESS:
7584
      case SUCCESS:
6975
        return isSetSuccess();
7585
        return isSetSuccess();
6976
      }
7586
      }
6977
      throw new IllegalStateException();
7587
      throw new IllegalStateException();
6978
    }
7588
    }
6979
 
7589
 
6980
    public boolean isSet(int fieldID) {
-
 
6981
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6982
    }
-
 
6983
 
-
 
6984
    @Override
7590
    @Override
6985
    public boolean equals(Object that) {
7591
    public boolean equals(Object that) {
6986
      if (that == null)
7592
      if (that == null)
6987
        return false;
7593
        return false;
6988
      if (that instanceof getPermissionsForRoleName_result)
7594
      if (that instanceof getPermissionsForRoleName_result)
Line 7017... Line 7623...
7017
      }
7623
      }
7018
 
7624
 
7019
      int lastComparison = 0;
7625
      int lastComparison = 0;
7020
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
7626
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
7021
 
7627
 
7022
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
7628
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7023
      if (lastComparison != 0) {
7629
      if (lastComparison != 0) {
7024
        return lastComparison;
7630
        return lastComparison;
7025
      }
7631
      }
-
 
7632
      if (isSetSuccess()) {
7026
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
7633
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7027
      if (lastComparison != 0) {
7634
        if (lastComparison != 0) {
7028
        return lastComparison;
7635
          return lastComparison;
-
 
7636
        }
7029
      }
7637
      }
7030
      return 0;
7638
      return 0;
7031
    }
7639
    }
7032
 
7640
 
-
 
7641
    public _Fields fieldForId(int fieldId) {
-
 
7642
      return _Fields.findByThriftId(fieldId);
-
 
7643
    }
-
 
7644
 
7033
    public void read(TProtocol iprot) throws TException {
7645
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7034
      TField field;
7646
      org.apache.thrift.protocol.TField field;
7035
      iprot.readStructBegin();
7647
      iprot.readStructBegin();
7036
      while (true)
7648
      while (true)
7037
      {
7649
      {
7038
        field = iprot.readFieldBegin();
7650
        field = iprot.readFieldBegin();
7039
        if (field.type == TType.STOP) { 
7651
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7040
          break;
7652
          break;
7041
        }
7653
        }
7042
        _Fields fieldId = _Fields.findByThriftId(field.id);
7654
        switch (field.id) {
7043
        if (fieldId == null) {
7655
          case 0: // SUCCESS
7044
          TProtocolUtil.skip(iprot, field.type);
7656
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7045
        } else {
7657
              {
7046
          switch (fieldId) {
7658
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
7047
            case SUCCESS:
7659
                this.success = new ArrayList<String>(_list28.size);
7048
              if (field.type == TType.LIST) {
7660
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7049
                {
7661
                {
7050
                  TList _list28 = iprot.readListBegin();
-
 
7051
                  this.success = new ArrayList<String>(_list28.size);
-
 
7052
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
7053
                  {
-
 
7054
                    String _elem30;
7662
                  String _elem30; // required
7055
                    _elem30 = iprot.readString();
7663
                  _elem30 = iprot.readString();
7056
                    this.success.add(_elem30);
7664
                  this.success.add(_elem30);
7057
                  }
-
 
7058
                  iprot.readListEnd();
-
 
7059
                }
7665
                }
7060
              } else { 
7666
                iprot.readListEnd();
7061
                TProtocolUtil.skip(iprot, field.type);
-
 
7062
              }
7667
              }
7063
              break;
7668
            } else { 
-
 
7669
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7064
          }
7670
            }
7065
          iprot.readFieldEnd();
7671
            break;
-
 
7672
          default:
-
 
7673
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7066
        }
7674
        }
-
 
7675
        iprot.readFieldEnd();
7067
      }
7676
      }
7068
      iprot.readStructEnd();
7677
      iprot.readStructEnd();
7069
      validate();
7678
      validate();
7070
    }
7679
    }
7071
 
7680
 
7072
    public void write(TProtocol oprot) throws TException {
7681
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7073
      oprot.writeStructBegin(STRUCT_DESC);
7682
      oprot.writeStructBegin(STRUCT_DESC);
7074
 
7683
 
7075
      if (this.isSetSuccess()) {
7684
      if (this.isSetSuccess()) {
7076
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7685
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7077
        {
7686
        {
7078
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
7687
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
7079
          for (String _iter31 : this.success)
7688
          for (String _iter31 : this.success)
7080
          {
7689
          {
7081
            oprot.writeString(_iter31);
7690
            oprot.writeString(_iter31);
7082
          }
7691
          }
7083
          oprot.writeListEnd();
7692
          oprot.writeListEnd();
Line 7102... Line 7711...
7102
      first = false;
7711
      first = false;
7103
      sb.append(")");
7712
      sb.append(")");
7104
      return sb.toString();
7713
      return sb.toString();
7105
    }
7714
    }
7106
 
7715
 
7107
    public void validate() throws TException {
7716
    public void validate() throws org.apache.thrift.TException {
7108
      // check for required fields
7717
      // check for required fields
7109
    }
7718
    }
7110
 
7719
 
-
 
7720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7721
      try {
-
 
7722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7723
      } catch (org.apache.thrift.TException te) {
-
 
7724
        throw new java.io.IOException(te);
-
 
7725
      }
-
 
7726
    }
-
 
7727
 
-
 
7728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7729
      try {
-
 
7730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7731
      } catch (org.apache.thrift.TException te) {
-
 
7732
        throw new java.io.IOException(te);
-
 
7733
      }
-
 
7734
    }
-
 
7735
 
7111
  }
7736
  }
7112
 
7737
 
7113
  public static class getLastEmailProcessedTimestamp_args implements TBase<getLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLastEmailProcessedTimestamp_args>   {
7738
  public static class getLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_args, getLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
7114
    private static final TStruct STRUCT_DESC = new TStruct("getLastEmailProcessedTimestamp_args");
7739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_args");
7115
 
7740
 
7116
 
7741
 
7117
 
7742
 
7118
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7743
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7119
    public enum _Fields implements TFieldIdEnum {
7744
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7120
;
7745
;
7121
 
7746
 
7122
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7123
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7747
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7124
 
7748
 
7125
      static {
7749
      static {
7126
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7750
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7127
          byId.put((int)field._thriftId, field);
-
 
7128
          byName.put(field.getFieldName(), field);
7751
          byName.put(field.getFieldName(), field);
7129
        }
7752
        }
7130
      }
7753
      }
7131
 
7754
 
7132
      /**
7755
      /**
7133
       * Find the _Fields constant that matches fieldId, or null if its not found.
7756
       * Find the _Fields constant that matches fieldId, or null if its not found.
7134
       */
7757
       */
7135
      public static _Fields findByThriftId(int fieldId) {
7758
      public static _Fields findByThriftId(int fieldId) {
7136
        return byId.get(fieldId);
7759
        switch(fieldId) {
-
 
7760
          default:
-
 
7761
            return null;
-
 
7762
        }
7137
      }
7763
      }
7138
 
7764
 
7139
      /**
7765
      /**
7140
       * Find the _Fields constant that matches fieldId, throwing an exception
7766
       * Find the _Fields constant that matches fieldId, throwing an exception
7141
       * if it is not found.
7767
       * if it is not found.
Line 7167... Line 7793...
7167
 
7793
 
7168
      public String getFieldName() {
7794
      public String getFieldName() {
7169
        return _fieldName;
7795
        return _fieldName;
7170
      }
7796
      }
7171
    }
7797
    }
7172
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7798
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7173
    }});
-
 
7174
 
-
 
7175
    static {
7799
    static {
-
 
7800
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7801
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7176
      FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_args.class, metaDataMap);
7802
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_args.class, metaDataMap);
7177
    }
7803
    }
7178
 
7804
 
7179
    public getLastEmailProcessedTimestamp_args() {
7805
    public getLastEmailProcessedTimestamp_args() {
7180
    }
7806
    }
7181
 
7807
 
Line 7187... Line 7813...
7187
 
7813
 
7188
    public getLastEmailProcessedTimestamp_args deepCopy() {
7814
    public getLastEmailProcessedTimestamp_args deepCopy() {
7189
      return new getLastEmailProcessedTimestamp_args(this);
7815
      return new getLastEmailProcessedTimestamp_args(this);
7190
    }
7816
    }
7191
 
7817
 
7192
    @Deprecated
7818
    @Override
7193
    public getLastEmailProcessedTimestamp_args clone() {
7819
    public void clear() {
7194
      return new getLastEmailProcessedTimestamp_args(this);
-
 
7195
    }
7820
    }
7196
 
7821
 
7197
    public void setFieldValue(_Fields field, Object value) {
7822
    public void setFieldValue(_Fields field, Object value) {
7198
      switch (field) {
7823
      switch (field) {
7199
      }
7824
      }
7200
    }
7825
    }
7201
 
7826
 
7202
    public void setFieldValue(int fieldID, Object value) {
-
 
7203
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7204
    }
-
 
7205
 
-
 
7206
    public Object getFieldValue(_Fields field) {
7827
    public Object getFieldValue(_Fields field) {
7207
      switch (field) {
7828
      switch (field) {
7208
      }
7829
      }
7209
      throw new IllegalStateException();
7830
      throw new IllegalStateException();
7210
    }
7831
    }
7211
 
7832
 
7212
    public Object getFieldValue(int fieldId) {
-
 
7213
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7214
    }
-
 
7215
 
-
 
7216
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7217
    public boolean isSet(_Fields field) {
7834
    public boolean isSet(_Fields field) {
-
 
7835
      if (field == null) {
-
 
7836
        throw new IllegalArgumentException();
-
 
7837
      }
-
 
7838
 
7218
      switch (field) {
7839
      switch (field) {
7219
      }
7840
      }
7220
      throw new IllegalStateException();
7841
      throw new IllegalStateException();
7221
    }
7842
    }
7222
 
7843
 
7223
    public boolean isSet(int fieldID) {
-
 
7224
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7225
    }
-
 
7226
 
-
 
7227
    @Override
7844
    @Override
7228
    public boolean equals(Object that) {
7845
    public boolean equals(Object that) {
7229
      if (that == null)
7846
      if (that == null)
7230
        return false;
7847
        return false;
7231
      if (that instanceof getLastEmailProcessedTimestamp_args)
7848
      if (that instanceof getLastEmailProcessedTimestamp_args)
Line 7254... Line 7871...
7254
      getLastEmailProcessedTimestamp_args typedOther = (getLastEmailProcessedTimestamp_args)other;
7871
      getLastEmailProcessedTimestamp_args typedOther = (getLastEmailProcessedTimestamp_args)other;
7255
 
7872
 
7256
      return 0;
7873
      return 0;
7257
    }
7874
    }
7258
 
7875
 
-
 
7876
    public _Fields fieldForId(int fieldId) {
-
 
7877
      return _Fields.findByThriftId(fieldId);
-
 
7878
    }
-
 
7879
 
7259
    public void read(TProtocol iprot) throws TException {
7880
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7260
      TField field;
7881
      org.apache.thrift.protocol.TField field;
7261
      iprot.readStructBegin();
7882
      iprot.readStructBegin();
7262
      while (true)
7883
      while (true)
7263
      {
7884
      {
7264
        field = iprot.readFieldBegin();
7885
        field = iprot.readFieldBegin();
7265
        if (field.type == TType.STOP) { 
7886
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7266
          break;
7887
          break;
7267
        }
7888
        }
7268
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7269
        if (fieldId == null) {
-
 
7270
          TProtocolUtil.skip(iprot, field.type);
-
 
7271
        } else {
-
 
7272
          switch (fieldId) {
7889
        switch (field.id) {
7273
          }
7890
          default:
7274
          iprot.readFieldEnd();
7891
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7275
        }
7892
        }
-
 
7893
        iprot.readFieldEnd();
7276
      }
7894
      }
7277
      iprot.readStructEnd();
7895
      iprot.readStructEnd();
7278
      validate();
7896
      validate();
7279
    }
7897
    }
7280
 
7898
 
7281
    public void write(TProtocol oprot) throws TException {
7899
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7282
      validate();
7900
      validate();
7283
 
7901
 
7284
      oprot.writeStructBegin(STRUCT_DESC);
7902
      oprot.writeStructBegin(STRUCT_DESC);
7285
      oprot.writeFieldStop();
7903
      oprot.writeFieldStop();
7286
      oprot.writeStructEnd();
7904
      oprot.writeStructEnd();
Line 7293... Line 7911...
7293
 
7911
 
7294
      sb.append(")");
7912
      sb.append(")");
7295
      return sb.toString();
7913
      return sb.toString();
7296
    }
7914
    }
7297
 
7915
 
7298
    public void validate() throws TException {
7916
    public void validate() throws org.apache.thrift.TException {
7299
      // check for required fields
7917
      // check for required fields
7300
    }
7918
    }
7301
 
7919
 
-
 
7920
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7921
      try {
-
 
7922
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7923
      } catch (org.apache.thrift.TException te) {
-
 
7924
        throw new java.io.IOException(te);
-
 
7925
      }
-
 
7926
    }
-
 
7927
 
-
 
7928
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7929
      try {
-
 
7930
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7931
      } catch (org.apache.thrift.TException te) {
-
 
7932
        throw new java.io.IOException(te);
-
 
7933
      }
-
 
7934
    }
-
 
7935
 
7302
  }
7936
  }
7303
 
7937
 
7304
  public static class getLastEmailProcessedTimestamp_result implements TBase<getLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLastEmailProcessedTimestamp_result>   {
7938
  public static class getLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_result, getLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
7305
    private static final TStruct STRUCT_DESC = new TStruct("getLastEmailProcessedTimestamp_result");
7939
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_result");
7306
 
7940
 
7307
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
7941
    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);
7308
 
7942
 
7309
    private long success;
7943
    private long success; // required
7310
 
7944
 
7311
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7945
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7312
    public enum _Fields implements TFieldIdEnum {
7946
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7313
      SUCCESS((short)0, "success");
7947
      SUCCESS((short)0, "success");
7314
 
7948
 
7315
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7316
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7949
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7317
 
7950
 
7318
      static {
7951
      static {
7319
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7952
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7320
          byId.put((int)field._thriftId, field);
-
 
7321
          byName.put(field.getFieldName(), field);
7953
          byName.put(field.getFieldName(), field);
7322
        }
7954
        }
7323
      }
7955
      }
7324
 
7956
 
7325
      /**
7957
      /**
7326
       * Find the _Fields constant that matches fieldId, or null if its not found.
7958
       * Find the _Fields constant that matches fieldId, or null if its not found.
7327
       */
7959
       */
7328
      public static _Fields findByThriftId(int fieldId) {
7960
      public static _Fields findByThriftId(int fieldId) {
7329
        return byId.get(fieldId);
7961
        switch(fieldId) {
-
 
7962
          case 0: // SUCCESS
-
 
7963
            return SUCCESS;
-
 
7964
          default:
-
 
7965
            return null;
-
 
7966
        }
7330
      }
7967
      }
7331
 
7968
 
7332
      /**
7969
      /**
7333
       * Find the _Fields constant that matches fieldId, throwing an exception
7970
       * Find the _Fields constant that matches fieldId, throwing an exception
7334
       * if it is not found.
7971
       * if it is not found.
Line 7365... Line 8002...
7365
 
8002
 
7366
    // isset id assignments
8003
    // isset id assignments
7367
    private static final int __SUCCESS_ISSET_ID = 0;
8004
    private static final int __SUCCESS_ISSET_ID = 0;
7368
    private BitSet __isset_bit_vector = new BitSet(1);
8005
    private BitSet __isset_bit_vector = new BitSet(1);
7369
 
8006
 
7370
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8007
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7371
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7372
          new FieldValueMetaData(TType.I64)));
-
 
7373
    }});
-
 
7374
 
-
 
7375
    static {
8008
    static {
-
 
8009
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8010
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8011
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8012
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7376
      FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_result.class, metaDataMap);
8013
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_result.class, metaDataMap);
7377
    }
8014
    }
7378
 
8015
 
7379
    public getLastEmailProcessedTimestamp_result() {
8016
    public getLastEmailProcessedTimestamp_result() {
7380
    }
8017
    }
7381
 
8018
 
Line 7398... Line 8035...
7398
 
8035
 
7399
    public getLastEmailProcessedTimestamp_result deepCopy() {
8036
    public getLastEmailProcessedTimestamp_result deepCopy() {
7400
      return new getLastEmailProcessedTimestamp_result(this);
8037
      return new getLastEmailProcessedTimestamp_result(this);
7401
    }
8038
    }
7402
 
8039
 
7403
    @Deprecated
8040
    @Override
7404
    public getLastEmailProcessedTimestamp_result clone() {
8041
    public void clear() {
7405
      return new getLastEmailProcessedTimestamp_result(this);
8042
      setSuccessIsSet(false);
-
 
8043
      this.success = 0;
7406
    }
8044
    }
7407
 
8045
 
7408
    public long getSuccess() {
8046
    public long getSuccess() {
7409
      return this.success;
8047
      return this.success;
7410
    }
8048
    }
7411
 
8049
 
7412
    public getLastEmailProcessedTimestamp_result setSuccess(long success) {
8050
    public void setSuccess(long success) {
7413
      this.success = success;
8051
      this.success = success;
7414
      setSuccessIsSet(true);
8052
      setSuccessIsSet(true);
7415
      return this;
-
 
7416
    }
8053
    }
7417
 
8054
 
7418
    public void unsetSuccess() {
8055
    public void unsetSuccess() {
7419
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
8056
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7420
    }
8057
    }
7421
 
8058
 
7422
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
8059
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7423
    public boolean isSetSuccess() {
8060
    public boolean isSetSuccess() {
7424
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
8061
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7425
    }
8062
    }
7426
 
8063
 
7427
    public void setSuccessIsSet(boolean value) {
8064
    public void setSuccessIsSet(boolean value) {
Line 7439... Line 8076...
7439
        break;
8076
        break;
7440
 
8077
 
7441
      }
8078
      }
7442
    }
8079
    }
7443
 
8080
 
7444
    public void setFieldValue(int fieldID, Object value) {
-
 
7445
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7446
    }
-
 
7447
 
-
 
7448
    public Object getFieldValue(_Fields field) {
8081
    public Object getFieldValue(_Fields field) {
7449
      switch (field) {
8082
      switch (field) {
7450
      case SUCCESS:
8083
      case SUCCESS:
7451
        return new Long(getSuccess());
8084
        return Long.valueOf(getSuccess());
7452
 
8085
 
7453
      }
8086
      }
7454
      throw new IllegalStateException();
8087
      throw new IllegalStateException();
7455
    }
8088
    }
7456
 
8089
 
7457
    public Object getFieldValue(int fieldId) {
-
 
7458
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7459
    }
-
 
7460
 
-
 
7461
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8090
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7462
    public boolean isSet(_Fields field) {
8091
    public boolean isSet(_Fields field) {
-
 
8092
      if (field == null) {
-
 
8093
        throw new IllegalArgumentException();
-
 
8094
      }
-
 
8095
 
7463
      switch (field) {
8096
      switch (field) {
7464
      case SUCCESS:
8097
      case SUCCESS:
7465
        return isSetSuccess();
8098
        return isSetSuccess();
7466
      }
8099
      }
7467
      throw new IllegalStateException();
8100
      throw new IllegalStateException();
7468
    }
8101
    }
7469
 
8102
 
7470
    public boolean isSet(int fieldID) {
-
 
7471
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7472
    }
-
 
7473
 
-
 
7474
    @Override
8103
    @Override
7475
    public boolean equals(Object that) {
8104
    public boolean equals(Object that) {
7476
      if (that == null)
8105
      if (that == null)
7477
        return false;
8106
        return false;
7478
      if (that instanceof getLastEmailProcessedTimestamp_result)
8107
      if (that instanceof getLastEmailProcessedTimestamp_result)
Line 7507... Line 8136...
7507
      }
8136
      }
7508
 
8137
 
7509
      int lastComparison = 0;
8138
      int lastComparison = 0;
7510
      getLastEmailProcessedTimestamp_result typedOther = (getLastEmailProcessedTimestamp_result)other;
8139
      getLastEmailProcessedTimestamp_result typedOther = (getLastEmailProcessedTimestamp_result)other;
7511
 
8140
 
7512
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
8141
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7513
      if (lastComparison != 0) {
8142
      if (lastComparison != 0) {
7514
        return lastComparison;
8143
        return lastComparison;
7515
      }
8144
      }
-
 
8145
      if (isSetSuccess()) {
7516
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
8146
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7517
      if (lastComparison != 0) {
8147
        if (lastComparison != 0) {
7518
        return lastComparison;
8148
          return lastComparison;
-
 
8149
        }
7519
      }
8150
      }
7520
      return 0;
8151
      return 0;
7521
    }
8152
    }
7522
 
8153
 
-
 
8154
    public _Fields fieldForId(int fieldId) {
-
 
8155
      return _Fields.findByThriftId(fieldId);
-
 
8156
    }
-
 
8157
 
7523
    public void read(TProtocol iprot) throws TException {
8158
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7524
      TField field;
8159
      org.apache.thrift.protocol.TField field;
7525
      iprot.readStructBegin();
8160
      iprot.readStructBegin();
7526
      while (true)
8161
      while (true)
7527
      {
8162
      {
7528
        field = iprot.readFieldBegin();
8163
        field = iprot.readFieldBegin();
7529
        if (field.type == TType.STOP) { 
8164
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7530
          break;
8165
          break;
7531
        }
8166
        }
7532
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7533
        if (fieldId == null) {
-
 
7534
          TProtocolUtil.skip(iprot, field.type);
-
 
7535
        } else {
-
 
7536
          switch (fieldId) {
8167
        switch (field.id) {
7537
            case SUCCESS:
8168
          case 0: // SUCCESS
7538
              if (field.type == TType.I64) {
8169
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7539
                this.success = iprot.readI64();
8170
              this.success = iprot.readI64();
7540
                setSuccessIsSet(true);
8171
              setSuccessIsSet(true);
7541
              } else { 
8172
            } else { 
7542
                TProtocolUtil.skip(iprot, field.type);
8173
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7543
              }
8174
            }
7544
              break;
8175
            break;
7545
          }
8176
          default:
7546
          iprot.readFieldEnd();
8177
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7547
        }
8178
        }
-
 
8179
        iprot.readFieldEnd();
7548
      }
8180
      }
7549
      iprot.readStructEnd();
8181
      iprot.readStructEnd();
7550
      validate();
8182
      validate();
7551
    }
8183
    }
7552
 
8184
 
7553
    public void write(TProtocol oprot) throws TException {
8185
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7554
      oprot.writeStructBegin(STRUCT_DESC);
8186
      oprot.writeStructBegin(STRUCT_DESC);
7555
 
8187
 
7556
      if (this.isSetSuccess()) {
8188
      if (this.isSetSuccess()) {
7557
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8189
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7558
        oprot.writeI64(this.success);
8190
        oprot.writeI64(this.success);
Line 7572... Line 8204...
7572
      first = false;
8204
      first = false;
7573
      sb.append(")");
8205
      sb.append(")");
7574
      return sb.toString();
8206
      return sb.toString();
7575
    }
8207
    }
7576
 
8208
 
7577
    public void validate() throws TException {
8209
    public void validate() throws org.apache.thrift.TException {
7578
      // check for required fields
8210
      // check for required fields
7579
    }
8211
    }
7580
 
8212
 
-
 
8213
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8214
      try {
-
 
8215
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8216
      } catch (org.apache.thrift.TException te) {
-
 
8217
        throw new java.io.IOException(te);
-
 
8218
      }
-
 
8219
    }
-
 
8220
 
-
 
8221
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8222
      try {
-
 
8223
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8224
      } catch (org.apache.thrift.TException te) {
-
 
8225
        throw new java.io.IOException(te);
-
 
8226
      }
-
 
8227
    }
-
 
8228
 
7581
  }
8229
  }
7582
 
8230
 
7583
  public static class updateLastEmailProcessedTimestamp_args implements TBase<updateLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable, Comparable<updateLastEmailProcessedTimestamp_args>   {
8231
  public static class updateLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_args, updateLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
7584
    private static final TStruct STRUCT_DESC = new TStruct("updateLastEmailProcessedTimestamp_args");
8232
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_args");
7585
 
8233
 
7586
    private static final TField TIMESTAMP_FIELD_DESC = new TField("timestamp", TType.I64, (short)1);
8234
    private static final org.apache.thrift.protocol.TField TIMESTAMP_FIELD_DESC = new org.apache.thrift.protocol.TField("timestamp", org.apache.thrift.protocol.TType.I64, (short)1);
7587
 
8235
 
7588
    private long timestamp;
8236
    private long timestamp; // required
7589
 
8237
 
7590
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8238
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7591
    public enum _Fields implements TFieldIdEnum {
8239
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7592
      TIMESTAMP((short)1, "timestamp");
8240
      TIMESTAMP((short)1, "timestamp");
7593
 
8241
 
7594
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7595
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8242
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7596
 
8243
 
7597
      static {
8244
      static {
7598
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8245
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7599
          byId.put((int)field._thriftId, field);
-
 
7600
          byName.put(field.getFieldName(), field);
8246
          byName.put(field.getFieldName(), field);
7601
        }
8247
        }
7602
      }
8248
      }
7603
 
8249
 
7604
      /**
8250
      /**
7605
       * Find the _Fields constant that matches fieldId, or null if its not found.
8251
       * Find the _Fields constant that matches fieldId, or null if its not found.
7606
       */
8252
       */
7607
      public static _Fields findByThriftId(int fieldId) {
8253
      public static _Fields findByThriftId(int fieldId) {
7608
        return byId.get(fieldId);
8254
        switch(fieldId) {
-
 
8255
          case 1: // TIMESTAMP
-
 
8256
            return TIMESTAMP;
-
 
8257
          default:
-
 
8258
            return null;
-
 
8259
        }
7609
      }
8260
      }
7610
 
8261
 
7611
      /**
8262
      /**
7612
       * Find the _Fields constant that matches fieldId, throwing an exception
8263
       * Find the _Fields constant that matches fieldId, throwing an exception
7613
       * if it is not found.
8264
       * if it is not found.
Line 7644... Line 8295...
7644
 
8295
 
7645
    // isset id assignments
8296
    // isset id assignments
7646
    private static final int __TIMESTAMP_ISSET_ID = 0;
8297
    private static final int __TIMESTAMP_ISSET_ID = 0;
7647
    private BitSet __isset_bit_vector = new BitSet(1);
8298
    private BitSet __isset_bit_vector = new BitSet(1);
7648
 
8299
 
7649
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8300
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7650
      put(_Fields.TIMESTAMP, new FieldMetaData("timestamp", TFieldRequirementType.DEFAULT, 
-
 
7651
          new FieldValueMetaData(TType.I64)));
-
 
7652
    }});
-
 
7653
 
-
 
7654
    static {
8301
    static {
-
 
8302
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8303
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
8304
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
8305
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7655
      FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_args.class, metaDataMap);
8306
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_args.class, metaDataMap);
7656
    }
8307
    }
7657
 
8308
 
7658
    public updateLastEmailProcessedTimestamp_args() {
8309
    public updateLastEmailProcessedTimestamp_args() {
7659
    }
8310
    }
7660
 
8311
 
Line 7677... Line 8328...
7677
 
8328
 
7678
    public updateLastEmailProcessedTimestamp_args deepCopy() {
8329
    public updateLastEmailProcessedTimestamp_args deepCopy() {
7679
      return new updateLastEmailProcessedTimestamp_args(this);
8330
      return new updateLastEmailProcessedTimestamp_args(this);
7680
    }
8331
    }
7681
 
8332
 
7682
    @Deprecated
8333
    @Override
7683
    public updateLastEmailProcessedTimestamp_args clone() {
8334
    public void clear() {
7684
      return new updateLastEmailProcessedTimestamp_args(this);
8335
      setTimestampIsSet(false);
-
 
8336
      this.timestamp = 0;
7685
    }
8337
    }
7686
 
8338
 
7687
    public long getTimestamp() {
8339
    public long getTimestamp() {
7688
      return this.timestamp;
8340
      return this.timestamp;
7689
    }
8341
    }
7690
 
8342
 
7691
    public updateLastEmailProcessedTimestamp_args setTimestamp(long timestamp) {
8343
    public void setTimestamp(long timestamp) {
7692
      this.timestamp = timestamp;
8344
      this.timestamp = timestamp;
7693
      setTimestampIsSet(true);
8345
      setTimestampIsSet(true);
7694
      return this;
-
 
7695
    }
8346
    }
7696
 
8347
 
7697
    public void unsetTimestamp() {
8348
    public void unsetTimestamp() {
7698
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
8349
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
7699
    }
8350
    }
7700
 
8351
 
7701
    /** Returns true if field timestamp is set (has been asigned a value) and false otherwise */
8352
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
7702
    public boolean isSetTimestamp() {
8353
    public boolean isSetTimestamp() {
7703
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
8354
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
7704
    }
8355
    }
7705
 
8356
 
7706
    public void setTimestampIsSet(boolean value) {
8357
    public void setTimestampIsSet(boolean value) {
Line 7718... Line 8369...
7718
        break;
8369
        break;
7719
 
8370
 
7720
      }
8371
      }
7721
    }
8372
    }
7722
 
8373
 
7723
    public void setFieldValue(int fieldID, Object value) {
-
 
7724
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7725
    }
-
 
7726
 
-
 
7727
    public Object getFieldValue(_Fields field) {
8374
    public Object getFieldValue(_Fields field) {
7728
      switch (field) {
8375
      switch (field) {
7729
      case TIMESTAMP:
8376
      case TIMESTAMP:
7730
        return new Long(getTimestamp());
8377
        return Long.valueOf(getTimestamp());
7731
 
8378
 
7732
      }
8379
      }
7733
      throw new IllegalStateException();
8380
      throw new IllegalStateException();
7734
    }
8381
    }
7735
 
8382
 
7736
    public Object getFieldValue(int fieldId) {
-
 
7737
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7738
    }
-
 
7739
 
-
 
7740
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8383
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7741
    public boolean isSet(_Fields field) {
8384
    public boolean isSet(_Fields field) {
-
 
8385
      if (field == null) {
-
 
8386
        throw new IllegalArgumentException();
-
 
8387
      }
-
 
8388
 
7742
      switch (field) {
8389
      switch (field) {
7743
      case TIMESTAMP:
8390
      case TIMESTAMP:
7744
        return isSetTimestamp();
8391
        return isSetTimestamp();
7745
      }
8392
      }
7746
      throw new IllegalStateException();
8393
      throw new IllegalStateException();
7747
    }
8394
    }
7748
 
8395
 
7749
    public boolean isSet(int fieldID) {
-
 
7750
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7751
    }
-
 
7752
 
-
 
7753
    @Override
8396
    @Override
7754
    public boolean equals(Object that) {
8397
    public boolean equals(Object that) {
7755
      if (that == null)
8398
      if (that == null)
7756
        return false;
8399
        return false;
7757
      if (that instanceof updateLastEmailProcessedTimestamp_args)
8400
      if (that instanceof updateLastEmailProcessedTimestamp_args)
Line 7786... Line 8429...
7786
      }
8429
      }
7787
 
8430
 
7788
      int lastComparison = 0;
8431
      int lastComparison = 0;
7789
      updateLastEmailProcessedTimestamp_args typedOther = (updateLastEmailProcessedTimestamp_args)other;
8432
      updateLastEmailProcessedTimestamp_args typedOther = (updateLastEmailProcessedTimestamp_args)other;
7790
 
8433
 
7791
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(isSetTimestamp());
8434
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
7792
      if (lastComparison != 0) {
8435
      if (lastComparison != 0) {
7793
        return lastComparison;
8436
        return lastComparison;
7794
      }
8437
      }
-
 
8438
      if (isSetTimestamp()) {
7795
      lastComparison = TBaseHelper.compareTo(timestamp, typedOther.timestamp);
8439
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
7796
      if (lastComparison != 0) {
8440
        if (lastComparison != 0) {
7797
        return lastComparison;
8441
          return lastComparison;
-
 
8442
        }
7798
      }
8443
      }
7799
      return 0;
8444
      return 0;
7800
    }
8445
    }
7801
 
8446
 
-
 
8447
    public _Fields fieldForId(int fieldId) {
-
 
8448
      return _Fields.findByThriftId(fieldId);
-
 
8449
    }
-
 
8450
 
7802
    public void read(TProtocol iprot) throws TException {
8451
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7803
      TField field;
8452
      org.apache.thrift.protocol.TField field;
7804
      iprot.readStructBegin();
8453
      iprot.readStructBegin();
7805
      while (true)
8454
      while (true)
7806
      {
8455
      {
7807
        field = iprot.readFieldBegin();
8456
        field = iprot.readFieldBegin();
7808
        if (field.type == TType.STOP) { 
8457
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7809
          break;
8458
          break;
7810
        }
8459
        }
7811
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7812
        if (fieldId == null) {
-
 
7813
          TProtocolUtil.skip(iprot, field.type);
-
 
7814
        } else {
-
 
7815
          switch (fieldId) {
8460
        switch (field.id) {
7816
            case TIMESTAMP:
8461
          case 1: // TIMESTAMP
7817
              if (field.type == TType.I64) {
8462
            if (field.type == org.apache.thrift.protocol.TType.I64) {
7818
                this.timestamp = iprot.readI64();
8463
              this.timestamp = iprot.readI64();
7819
                setTimestampIsSet(true);
8464
              setTimestampIsSet(true);
7820
              } else { 
8465
            } else { 
7821
                TProtocolUtil.skip(iprot, field.type);
8466
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7822
              }
8467
            }
7823
              break;
8468
            break;
7824
          }
8469
          default:
7825
          iprot.readFieldEnd();
8470
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7826
        }
8471
        }
-
 
8472
        iprot.readFieldEnd();
7827
      }
8473
      }
7828
      iprot.readStructEnd();
8474
      iprot.readStructEnd();
7829
      validate();
8475
      validate();
7830
    }
8476
    }
7831
 
8477
 
7832
    public void write(TProtocol oprot) throws TException {
8478
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7833
      validate();
8479
      validate();
7834
 
8480
 
7835
      oprot.writeStructBegin(STRUCT_DESC);
8481
      oprot.writeStructBegin(STRUCT_DESC);
7836
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
8482
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
7837
      oprot.writeI64(this.timestamp);
8483
      oprot.writeI64(this.timestamp);
Line 7850... Line 8496...
7850
      first = false;
8496
      first = false;
7851
      sb.append(")");
8497
      sb.append(")");
7852
      return sb.toString();
8498
      return sb.toString();
7853
    }
8499
    }
7854
 
8500
 
7855
    public void validate() throws TException {
8501
    public void validate() throws org.apache.thrift.TException {
7856
      // check for required fields
8502
      // check for required fields
7857
    }
8503
    }
7858
 
8504
 
-
 
8505
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8506
      try {
-
 
8507
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8508
      } catch (org.apache.thrift.TException te) {
-
 
8509
        throw new java.io.IOException(te);
-
 
8510
      }
-
 
8511
    }
-
 
8512
 
-
 
8513
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8514
      try {
-
 
8515
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
8516
        __isset_bit_vector = new BitSet(1);
-
 
8517
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8518
      } catch (org.apache.thrift.TException te) {
-
 
8519
        throw new java.io.IOException(te);
-
 
8520
      }
-
 
8521
    }
-
 
8522
 
7859
  }
8523
  }
7860
 
8524
 
7861
  public static class updateLastEmailProcessedTimestamp_result implements TBase<updateLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable, Comparable<updateLastEmailProcessedTimestamp_result>   {
8525
  public static class updateLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_result, updateLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
7862
    private static final TStruct STRUCT_DESC = new TStruct("updateLastEmailProcessedTimestamp_result");
8526
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_result");
7863
 
8527
 
7864
 
8528
 
7865
 
8529
 
7866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
8530
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7867
    public enum _Fields implements TFieldIdEnum {
8531
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7868
;
8532
;
7869
 
8533
 
7870
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7871
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8534
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7872
 
8535
 
7873
      static {
8536
      static {
7874
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8537
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7875
          byId.put((int)field._thriftId, field);
-
 
7876
          byName.put(field.getFieldName(), field);
8538
          byName.put(field.getFieldName(), field);
7877
        }
8539
        }
7878
      }
8540
      }
7879
 
8541
 
7880
      /**
8542
      /**
7881
       * Find the _Fields constant that matches fieldId, or null if its not found.
8543
       * Find the _Fields constant that matches fieldId, or null if its not found.
7882
       */
8544
       */
7883
      public static _Fields findByThriftId(int fieldId) {
8545
      public static _Fields findByThriftId(int fieldId) {
7884
        return byId.get(fieldId);
8546
        switch(fieldId) {
-
 
8547
          default:
-
 
8548
            return null;
-
 
8549
        }
7885
      }
8550
      }
7886
 
8551
 
7887
      /**
8552
      /**
7888
       * Find the _Fields constant that matches fieldId, throwing an exception
8553
       * Find the _Fields constant that matches fieldId, throwing an exception
7889
       * if it is not found.
8554
       * if it is not found.
Line 7915... Line 8580...
7915
 
8580
 
7916
      public String getFieldName() {
8581
      public String getFieldName() {
7917
        return _fieldName;
8582
        return _fieldName;
7918
      }
8583
      }
7919
    }
8584
    }
7920
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
8585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7921
    }});
-
 
7922
 
-
 
7923
    static {
8586
    static {
-
 
8587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
8588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7924
      FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_result.class, metaDataMap);
8589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_result.class, metaDataMap);
7925
    }
8590
    }
7926
 
8591
 
7927
    public updateLastEmailProcessedTimestamp_result() {
8592
    public updateLastEmailProcessedTimestamp_result() {
7928
    }
8593
    }
7929
 
8594
 
Line 7935... Line 8600...
7935
 
8600
 
7936
    public updateLastEmailProcessedTimestamp_result deepCopy() {
8601
    public updateLastEmailProcessedTimestamp_result deepCopy() {
7937
      return new updateLastEmailProcessedTimestamp_result(this);
8602
      return new updateLastEmailProcessedTimestamp_result(this);
7938
    }
8603
    }
7939
 
8604
 
7940
    @Deprecated
8605
    @Override
7941
    public updateLastEmailProcessedTimestamp_result clone() {
8606
    public void clear() {
7942
      return new updateLastEmailProcessedTimestamp_result(this);
-
 
7943
    }
8607
    }
7944
 
8608
 
7945
    public void setFieldValue(_Fields field, Object value) {
8609
    public void setFieldValue(_Fields field, Object value) {
7946
      switch (field) {
8610
      switch (field) {
7947
      }
8611
      }
7948
    }
8612
    }
7949
 
8613
 
7950
    public void setFieldValue(int fieldID, Object value) {
-
 
7951
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7952
    }
-
 
7953
 
-
 
7954
    public Object getFieldValue(_Fields field) {
8614
    public Object getFieldValue(_Fields field) {
7955
      switch (field) {
8615
      switch (field) {
7956
      }
8616
      }
7957
      throw new IllegalStateException();
8617
      throw new IllegalStateException();
7958
    }
8618
    }
7959
 
8619
 
7960
    public Object getFieldValue(int fieldId) {
-
 
7961
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7962
    }
-
 
7963
 
-
 
7964
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
8620
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7965
    public boolean isSet(_Fields field) {
8621
    public boolean isSet(_Fields field) {
-
 
8622
      if (field == null) {
-
 
8623
        throw new IllegalArgumentException();
-
 
8624
      }
-
 
8625
 
7966
      switch (field) {
8626
      switch (field) {
7967
      }
8627
      }
7968
      throw new IllegalStateException();
8628
      throw new IllegalStateException();
7969
    }
8629
    }
7970
 
8630
 
7971
    public boolean isSet(int fieldID) {
-
 
7972
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7973
    }
-
 
7974
 
-
 
7975
    @Override
8631
    @Override
7976
    public boolean equals(Object that) {
8632
    public boolean equals(Object that) {
7977
      if (that == null)
8633
      if (that == null)
7978
        return false;
8634
        return false;
7979
      if (that instanceof updateLastEmailProcessedTimestamp_result)
8635
      if (that instanceof updateLastEmailProcessedTimestamp_result)
Line 8002... Line 8658...
8002
      updateLastEmailProcessedTimestamp_result typedOther = (updateLastEmailProcessedTimestamp_result)other;
8658
      updateLastEmailProcessedTimestamp_result typedOther = (updateLastEmailProcessedTimestamp_result)other;
8003
 
8659
 
8004
      return 0;
8660
      return 0;
8005
    }
8661
    }
8006
 
8662
 
-
 
8663
    public _Fields fieldForId(int fieldId) {
-
 
8664
      return _Fields.findByThriftId(fieldId);
-
 
8665
    }
-
 
8666
 
8007
    public void read(TProtocol iprot) throws TException {
8667
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8008
      TField field;
8668
      org.apache.thrift.protocol.TField field;
8009
      iprot.readStructBegin();
8669
      iprot.readStructBegin();
8010
      while (true)
8670
      while (true)
8011
      {
8671
      {
8012
        field = iprot.readFieldBegin();
8672
        field = iprot.readFieldBegin();
8013
        if (field.type == TType.STOP) { 
8673
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
8014
          break;
8674
          break;
8015
        }
8675
        }
8016
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8017
        if (fieldId == null) {
-
 
8018
          TProtocolUtil.skip(iprot, field.type);
-
 
8019
        } else {
-
 
8020
          switch (fieldId) {
8676
        switch (field.id) {
8021
          }
8677
          default:
8022
          iprot.readFieldEnd();
8678
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8023
        }
8679
        }
-
 
8680
        iprot.readFieldEnd();
8024
      }
8681
      }
8025
      iprot.readStructEnd();
8682
      iprot.readStructEnd();
8026
      validate();
8683
      validate();
8027
    }
8684
    }
8028
 
8685
 
8029
    public void write(TProtocol oprot) throws TException {
8686
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
8030
      oprot.writeStructBegin(STRUCT_DESC);
8687
      oprot.writeStructBegin(STRUCT_DESC);
8031
 
8688
 
8032
      oprot.writeFieldStop();
8689
      oprot.writeFieldStop();
8033
      oprot.writeStructEnd();
8690
      oprot.writeStructEnd();
8034
    }
8691
    }
Line 8040... Line 8697...
8040
 
8697
 
8041
      sb.append(")");
8698
      sb.append(")");
8042
      return sb.toString();
8699
      return sb.toString();
8043
    }
8700
    }
8044
 
8701
 
8045
    public void validate() throws TException {
8702
    public void validate() throws org.apache.thrift.TException {
8046
      // check for required fields
8703
      // check for required fields
8047
    }
8704
    }
8048
 
8705
 
-
 
8706
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8707
      try {
-
 
8708
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8709
      } catch (org.apache.thrift.TException te) {
-
 
8710
        throw new java.io.IOException(te);
-
 
8711
      }
-
 
8712
    }
-
 
8713
 
-
 
8714
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8715
      try {
-
 
8716
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8717
      } catch (org.apache.thrift.TException te) {
-
 
8718
        throw new java.io.IOException(te);
-
 
8719
      }
-
 
8720
    }
-
 
8721
 
8049
  }
8722
  }
8050
 
8723
 
8051
}
8724
}