Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
3028 mandeep.dh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
3028 mandeep.dh 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.crm;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
3028 mandeep.dh 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class CRMService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
3028 mandeep.dh 26
 
3430 rajveer 27
    public List<Ticket> getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException;
3028 mandeep.dh 28
 
3430 rajveer 29
    public List<Ticket> getUnassignedTickets() throws org.apache.thrift.TException;
3087 mandeep.dh 30
 
3430 rajveer 31
    public void updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
3028 mandeep.dh 32
 
3430 rajveer 33
    public long insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
3028 mandeep.dh 34
 
4793 amar.kumar 35
    public void unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException;
36
 
3430 rajveer 37
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException;
3028 mandeep.dh 38
 
3430 rajveer 39
    public long insertActivity(Activity activity) throws org.apache.thrift.TException;
3028 mandeep.dh 40
 
3430 rajveer 41
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException;
3087 mandeep.dh 42
 
3430 rajveer 43
    public List<Agent> getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException;
3028 mandeep.dh 44
 
5287 amar.kumar 45
    public List<Agent> getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException;
46
 
3430 rajveer 47
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
3087 mandeep.dh 48
 
3430 rajveer 49
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
3087 mandeep.dh 50
 
3430 rajveer 51
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
3087 mandeep.dh 52
 
3430 rajveer 53
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException;
3339 mandeep.dh 54
 
3430 rajveer 55
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException;
3339 mandeep.dh 56
 
4793 amar.kumar 57
    public void changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException;
58
 
59
    public void insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException;
60
 
5169 amar.kumar 61
    public void changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException;
62
 
63
    public int getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException;
64
 
5909 amar.kumar 65
    public Map<String,Long> getOpenTicketsMap() throws org.apache.thrift.TException;
66
 
3028 mandeep.dh 67
  }
68
 
3430 rajveer 69
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
70
 
71
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
72
 
73
    public void getUnassignedTickets(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUnassignedTickets_call> resultHandler) throws org.apache.thrift.TException;
74
 
75
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTicket_call> resultHandler) throws org.apache.thrift.TException;
76
 
77
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertTicket_call> resultHandler) throws org.apache.thrift.TException;
78
 
4793 amar.kumar 79
    public void unassignAgentTickets(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.unassignAgentTickets_call> resultHandler) throws org.apache.thrift.TException;
80
 
3430 rajveer 81
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivities_call> resultHandler) throws org.apache.thrift.TException;
82
 
83
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertActivity_call> resultHandler) throws org.apache.thrift.TException;
84
 
85
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAsRead_call> resultHandler) throws org.apache.thrift.TException;
86
 
87
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
88
 
5287 amar.kumar 89
    public void getInactiveAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInactiveAgents_call> resultHandler) throws org.apache.thrift.TException;
90
 
3430 rajveer 91
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
92
 
93
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
94
 
95
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
96
 
97
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
98
 
99
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
100
 
4793 amar.kumar 101
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException;
102
 
103
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertAgent_call> resultHandler) throws org.apache.thrift.TException;
104
 
5169 amar.kumar 105
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentRole_call> resultHandler) throws org.apache.thrift.TException;
106
 
107
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException;
108
 
5909 amar.kumar 109
    public void getOpenTicketsMap(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOpenTicketsMap_call> resultHandler) throws org.apache.thrift.TException;
110
 
3430 rajveer 111
  }
112
 
3374 rajveer 113
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 114
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
115
      public Factory() {}
116
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
117
        return new Client(prot);
118
      }
119
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
120
        return new Client(iprot, oprot);
121
      }
122
    }
123
 
124
    public Client(org.apache.thrift.protocol.TProtocol prot)
3028 mandeep.dh 125
    {
3430 rajveer 126
      super(prot, prot);
3028 mandeep.dh 127
    }
128
 
3430 rajveer 129
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 130
      super(iprot, oprot);
3028 mandeep.dh 131
    }
132
 
3430 rajveer 133
    public List<Ticket> getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 134
    {
3390 mandeep.dh 135
      send_getTickets(searchFilter);
3028 mandeep.dh 136
      return recv_getTickets();
137
    }
138
 
3430 rajveer 139
    public void send_getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 140
    {
141
      getTickets_args args = new getTickets_args();
3430 rajveer 142
      args.setSearchFilter(searchFilter);
143
      sendBase("getTickets", args);
3028 mandeep.dh 144
    }
145
 
3430 rajveer 146
    public List<Ticket> recv_getTickets() throws org.apache.thrift.TException
3028 mandeep.dh 147
    {
148
      getTickets_result result = new getTickets_result();
3430 rajveer 149
      receiveBase(result, "getTickets");
3028 mandeep.dh 150
      if (result.isSetSuccess()) {
151
        return result.success;
152
      }
3430 rajveer 153
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
3028 mandeep.dh 154
    }
155
 
3430 rajveer 156
    public List<Ticket> getUnassignedTickets() throws org.apache.thrift.TException
3087 mandeep.dh 157
    {
3137 mandeep.dh 158
      send_getUnassignedTickets();
159
      return recv_getUnassignedTickets();
3087 mandeep.dh 160
    }
161
 
3430 rajveer 162
    public void send_getUnassignedTickets() throws org.apache.thrift.TException
3087 mandeep.dh 163
    {
3137 mandeep.dh 164
      getUnassignedTickets_args args = new getUnassignedTickets_args();
3430 rajveer 165
      sendBase("getUnassignedTickets", args);
3087 mandeep.dh 166
    }
167
 
3430 rajveer 168
    public List<Ticket> recv_getUnassignedTickets() throws org.apache.thrift.TException
3087 mandeep.dh 169
    {
3137 mandeep.dh 170
      getUnassignedTickets_result result = new getUnassignedTickets_result();
3430 rajveer 171
      receiveBase(result, "getUnassignedTickets");
3087 mandeep.dh 172
      if (result.isSetSuccess()) {
173
        return result.success;
174
      }
3430 rajveer 175
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
3087 mandeep.dh 176
    }
177
 
3430 rajveer 178
    public void updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 179
    {
3206 mandeep.dh 180
      send_updateTicket(ticket, activity);
3028 mandeep.dh 181
      recv_updateTicket();
182
    }
183
 
3430 rajveer 184
    public void send_updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 185
    {
186
      updateTicket_args args = new updateTicket_args();
3430 rajveer 187
      args.setTicket(ticket);
188
      args.setActivity(activity);
189
      sendBase("updateTicket", args);
3028 mandeep.dh 190
    }
191
 
3430 rajveer 192
    public void recv_updateTicket() throws org.apache.thrift.TException
3028 mandeep.dh 193
    {
194
      updateTicket_result result = new updateTicket_result();
3430 rajveer 195
      receiveBase(result, "updateTicket");
3028 mandeep.dh 196
      return;
197
    }
198
 
3430 rajveer 199
    public long insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 200
    {
3206 mandeep.dh 201
      send_insertTicket(ticket, activity);
3028 mandeep.dh 202
      return recv_insertTicket();
203
    }
204
 
3430 rajveer 205
    public void send_insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 206
    {
207
      insertTicket_args args = new insertTicket_args();
3430 rajveer 208
      args.setTicket(ticket);
209
      args.setActivity(activity);
210
      sendBase("insertTicket", args);
3028 mandeep.dh 211
    }
212
 
3430 rajveer 213
    public long recv_insertTicket() throws org.apache.thrift.TException
3028 mandeep.dh 214
    {
215
      insertTicket_result result = new insertTicket_result();
3430 rajveer 216
      receiveBase(result, "insertTicket");
3028 mandeep.dh 217
      if (result.isSetSuccess()) {
218
        return result.success;
219
      }
3430 rajveer 220
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
3028 mandeep.dh 221
    }
222
 
4793 amar.kumar 223
    public void unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException
224
    {
225
      send_unassignAgentTickets(assigneeId);
226
      recv_unassignAgentTickets();
227
    }
228
 
229
    public void send_unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException
230
    {
231
      unassignAgentTickets_args args = new unassignAgentTickets_args();
232
      args.setAssigneeId(assigneeId);
233
      sendBase("unassignAgentTickets", args);
234
    }
235
 
236
    public void recv_unassignAgentTickets() throws org.apache.thrift.TException
237
    {
238
      unassignAgentTickets_result result = new unassignAgentTickets_result();
239
      receiveBase(result, "unassignAgentTickets");
240
      return;
241
    }
242
 
3430 rajveer 243
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 244
    {
3390 mandeep.dh 245
      send_getActivities(searchFilter);
3028 mandeep.dh 246
      return recv_getActivities();
247
    }
248
 
3430 rajveer 249
    public void send_getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 250
    {
251
      getActivities_args args = new getActivities_args();
3430 rajveer 252
      args.setSearchFilter(searchFilter);
253
      sendBase("getActivities", args);
3028 mandeep.dh 254
    }
255
 
3430 rajveer 256
    public List<Activity> recv_getActivities() throws org.apache.thrift.TException
3028 mandeep.dh 257
    {
258
      getActivities_result result = new getActivities_result();
3430 rajveer 259
      receiveBase(result, "getActivities");
3028 mandeep.dh 260
      if (result.isSetSuccess()) {
261
        return result.success;
262
      }
3430 rajveer 263
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
3028 mandeep.dh 264
    }
265
 
3430 rajveer 266
    public long insertActivity(Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 267
    {
268
      send_insertActivity(activity);
3405 mandeep.dh 269
      return recv_insertActivity();
3028 mandeep.dh 270
    }
271
 
3430 rajveer 272
    public void send_insertActivity(Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 273
    {
274
      insertActivity_args args = new insertActivity_args();
3430 rajveer 275
      args.setActivity(activity);
276
      sendBase("insertActivity", args);
3028 mandeep.dh 277
    }
278
 
3430 rajveer 279
    public long recv_insertActivity() throws org.apache.thrift.TException
3028 mandeep.dh 280
    {
281
      insertActivity_result result = new insertActivity_result();
3430 rajveer 282
      receiveBase(result, "insertActivity");
3405 mandeep.dh 283
      if (result.isSetSuccess()) {
284
        return result.success;
285
      }
3430 rajveer 286
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertActivity failed: unknown result");
3028 mandeep.dh 287
    }
288
 
3430 rajveer 289
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException
3087 mandeep.dh 290
    {
3390 mandeep.dh 291
      send_markAsRead(activityId, agentId);
292
      recv_markAsRead();
3087 mandeep.dh 293
    }
294
 
3430 rajveer 295
    public void send_markAsRead(long activityId, long agentId) throws org.apache.thrift.TException
3087 mandeep.dh 296
    {
3390 mandeep.dh 297
      markAsRead_args args = new markAsRead_args();
3430 rajveer 298
      args.setActivityId(activityId);
299
      args.setAgentId(agentId);
300
      sendBase("markAsRead", args);
3028 mandeep.dh 301
    }
302
 
3430 rajveer 303
    public void recv_markAsRead() throws org.apache.thrift.TException
3028 mandeep.dh 304
    {
3390 mandeep.dh 305
      markAsRead_result result = new markAsRead_result();
3430 rajveer 306
      receiveBase(result, "markAsRead");
3390 mandeep.dh 307
      return;
3028 mandeep.dh 308
    }
309
 
3430 rajveer 310
    public List<Agent> getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 311
    {
3390 mandeep.dh 312
      send_getAgents(searchFilter);
313
      return recv_getAgents();
3028 mandeep.dh 314
    }
315
 
3430 rajveer 316
    public void send_getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 317
    {
3390 mandeep.dh 318
      getAgents_args args = new getAgents_args();
3430 rajveer 319
      args.setSearchFilter(searchFilter);
320
      sendBase("getAgents", args);
3028 mandeep.dh 321
    }
322
 
3430 rajveer 323
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
3028 mandeep.dh 324
    {
3390 mandeep.dh 325
      getAgents_result result = new getAgents_result();
3430 rajveer 326
      receiveBase(result, "getAgents");
3028 mandeep.dh 327
      if (result.isSetSuccess()) {
328
        return result.success;
329
      }
3430 rajveer 330
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
3028 mandeep.dh 331
    }
332
 
5287 amar.kumar 333
    public List<Agent> getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
334
    {
335
      send_getInactiveAgents(searchFilter);
336
      return recv_getInactiveAgents();
337
    }
338
 
339
    public void send_getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
340
    {
341
      getInactiveAgents_args args = new getInactiveAgents_args();
342
      args.setSearchFilter(searchFilter);
343
      sendBase("getInactiveAgents", args);
344
    }
345
 
346
    public List<Agent> recv_getInactiveAgents() throws org.apache.thrift.TException
347
    {
348
      getInactiveAgents_result result = new getInactiveAgents_result();
349
      receiveBase(result, "getInactiveAgents");
350
      if (result.isSetSuccess()) {
351
        return result.success;
352
      }
353
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInactiveAgents failed: unknown result");
354
    }
355
 
3430 rajveer 356
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
3087 mandeep.dh 357
    {
358
      send_updatePasswordForAgent(agentEmailId, password);
359
      recv_updatePasswordForAgent();
360
    }
361
 
3430 rajveer 362
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
3087 mandeep.dh 363
    {
364
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
3430 rajveer 365
      args.setAgentEmailId(agentEmailId);
366
      args.setPassword(password);
367
      sendBase("updatePasswordForAgent", args);
3087 mandeep.dh 368
    }
369
 
3430 rajveer 370
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
3087 mandeep.dh 371
    {
372
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
3430 rajveer 373
      receiveBase(result, "updatePasswordForAgent");
3087 mandeep.dh 374
      return;
375
    }
376
 
3430 rajveer 377
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
3087 mandeep.dh 378
    {
379
      send_getRoleNamesForAgent(agentEmailId);
380
      return recv_getRoleNamesForAgent();
381
    }
382
 
3430 rajveer 383
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
3087 mandeep.dh 384
    {
385
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
3430 rajveer 386
      args.setAgentEmailId(agentEmailId);
387
      sendBase("getRoleNamesForAgent", args);
3087 mandeep.dh 388
    }
389
 
3430 rajveer 390
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
3087 mandeep.dh 391
    {
392
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
3430 rajveer 393
      receiveBase(result, "getRoleNamesForAgent");
3087 mandeep.dh 394
      if (result.isSetSuccess()) {
395
        return result.success;
396
      }
3430 rajveer 397
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
3087 mandeep.dh 398
    }
399
 
3430 rajveer 400
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
3087 mandeep.dh 401
    {
402
      send_getPermissionsForRoleName(roleName);
403
      return recv_getPermissionsForRoleName();
404
    }
405
 
3430 rajveer 406
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
3087 mandeep.dh 407
    {
408
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
3430 rajveer 409
      args.setRoleName(roleName);
410
      sendBase("getPermissionsForRoleName", args);
3087 mandeep.dh 411
    }
412
 
3430 rajveer 413
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
3087 mandeep.dh 414
    {
415
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
3430 rajveer 416
      receiveBase(result, "getPermissionsForRoleName");
3087 mandeep.dh 417
      if (result.isSetSuccess()) {
418
        return result.success;
419
      }
3430 rajveer 420
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
3087 mandeep.dh 421
    }
422
 
3430 rajveer 423
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 424
    {
425
      send_getLastEmailProcessedTimestamp();
426
      return recv_getLastEmailProcessedTimestamp();
427
    }
428
 
3430 rajveer 429
    public void send_getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 430
    {
431
      getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
3430 rajveer 432
      sendBase("getLastEmailProcessedTimestamp", args);
3339 mandeep.dh 433
    }
434
 
3430 rajveer 435
    public long recv_getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 436
    {
437
      getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
3430 rajveer 438
      receiveBase(result, "getLastEmailProcessedTimestamp");
3339 mandeep.dh 439
      if (result.isSetSuccess()) {
440
        return result.success;
441
      }
3430 rajveer 442
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");
3339 mandeep.dh 443
    }
444
 
3430 rajveer 445
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException
3339 mandeep.dh 446
    {
447
      send_updateLastEmailProcessedTimestamp(timestamp);
448
      recv_updateLastEmailProcessedTimestamp();
449
    }
450
 
3430 rajveer 451
    public void send_updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException
3339 mandeep.dh 452
    {
453
      updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
3430 rajveer 454
      args.setTimestamp(timestamp);
455
      sendBase("updateLastEmailProcessedTimestamp", args);
3339 mandeep.dh 456
    }
457
 
3430 rajveer 458
    public void recv_updateLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 459
    {
460
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
3430 rajveer 461
      receiveBase(result, "updateLastEmailProcessedTimestamp");
3339 mandeep.dh 462
      return;
463
    }
464
 
4793 amar.kumar 465
    public void changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException
466
    {
467
      send_changeAgentStatus(status, emailId);
468
      recv_changeAgentStatus();
469
    }
470
 
471
    public void send_changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException
472
    {
473
      changeAgentStatus_args args = new changeAgentStatus_args();
474
      args.setStatus(status);
475
      args.setEmailId(emailId);
476
      sendBase("changeAgentStatus", args);
477
    }
478
 
479
    public void recv_changeAgentStatus() throws org.apache.thrift.TException
480
    {
481
      changeAgentStatus_result result = new changeAgentStatus_result();
482
      receiveBase(result, "changeAgentStatus");
483
      return;
484
    }
485
 
486
    public void insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException
487
    {
488
      send_insertAgent(agent, role);
489
      recv_insertAgent();
490
    }
491
 
492
    public void send_insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException
493
    {
494
      insertAgent_args args = new insertAgent_args();
495
      args.setAgent(agent);
496
      args.setRole(role);
497
      sendBase("insertAgent", args);
498
    }
499
 
500
    public void recv_insertAgent() throws org.apache.thrift.TException
501
    {
502
      insertAgent_result result = new insertAgent_result();
503
      receiveBase(result, "insertAgent");
504
      return;
505
    }
506
 
5169 amar.kumar 507
    public void changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException
508
    {
509
      send_changeAgentRole(id, role);
510
      recv_changeAgentRole();
511
    }
512
 
513
    public void send_changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException
514
    {
515
      changeAgentRole_args args = new changeAgentRole_args();
516
      args.setId(id);
517
      args.setRole(role);
518
      sendBase("changeAgentRole", args);
519
    }
520
 
521
    public void recv_changeAgentRole() throws org.apache.thrift.TException
522
    {
523
      changeAgentRole_result result = new changeAgentRole_result();
524
      receiveBase(result, "changeAgentRole");
525
      return;
526
    }
527
 
528
    public int getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException
529
    {
530
      send_getOpenTicketCountForAgent(agentId);
531
      return recv_getOpenTicketCountForAgent();
532
    }
533
 
534
    public void send_getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException
535
    {
536
      getOpenTicketCountForAgent_args args = new getOpenTicketCountForAgent_args();
537
      args.setAgentId(agentId);
538
      sendBase("getOpenTicketCountForAgent", args);
539
    }
540
 
541
    public int recv_getOpenTicketCountForAgent() throws org.apache.thrift.TException
542
    {
543
      getOpenTicketCountForAgent_result result = new getOpenTicketCountForAgent_result();
544
      receiveBase(result, "getOpenTicketCountForAgent");
545
      if (result.isSetSuccess()) {
546
        return result.success;
547
      }
548
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOpenTicketCountForAgent failed: unknown result");
549
    }
550
 
5909 amar.kumar 551
    public Map<String,Long> getOpenTicketsMap() throws org.apache.thrift.TException
552
    {
553
      send_getOpenTicketsMap();
554
      return recv_getOpenTicketsMap();
555
    }
556
 
557
    public void send_getOpenTicketsMap() throws org.apache.thrift.TException
558
    {
559
      getOpenTicketsMap_args args = new getOpenTicketsMap_args();
560
      sendBase("getOpenTicketsMap", args);
561
    }
562
 
563
    public Map<String,Long> recv_getOpenTicketsMap() throws org.apache.thrift.TException
564
    {
565
      getOpenTicketsMap_result result = new getOpenTicketsMap_result();
566
      receiveBase(result, "getOpenTicketsMap");
567
      if (result.isSetSuccess()) {
568
        return result.success;
569
      }
570
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOpenTicketsMap failed: unknown result");
571
    }
572
 
3028 mandeep.dh 573
  }
3430 rajveer 574
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
575
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
576
      private org.apache.thrift.async.TAsyncClientManager clientManager;
577
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
578
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
579
        this.clientManager = clientManager;
580
        this.protocolFactory = protocolFactory;
581
      }
582
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
583
        return new AsyncClient(protocolFactory, clientManager, transport);
584
      }
3028 mandeep.dh 585
    }
586
 
3430 rajveer 587
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
588
      super(protocolFactory, clientManager, transport);
589
    }
3028 mandeep.dh 590
 
3430 rajveer 591
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getTickets_call> resultHandler) throws org.apache.thrift.TException {
592
      checkReady();
593
      getTickets_call method_call = new getTickets_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
594
      this.___currentMethod = method_call;
595
      ___manager.call(method_call);
3028 mandeep.dh 596
    }
597
 
3430 rajveer 598
    public static class getTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
599
      private SearchFilter searchFilter;
600
      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 {
601
        super(client, protocolFactory, transport, resultHandler, false);
602
        this.searchFilter = searchFilter;
603
      }
604
 
605
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
606
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 607
        getTickets_args args = new getTickets_args();
3430 rajveer 608
        args.setSearchFilter(searchFilter);
609
        args.write(prot);
610
        prot.writeMessageEnd();
3028 mandeep.dh 611
      }
612
 
3430 rajveer 613
      public List<Ticket> getResult() throws org.apache.thrift.TException {
614
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
615
          throw new IllegalStateException("Method call not finished!");
616
        }
617
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
618
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
619
        return (new Client(prot)).recv_getTickets();
620
      }
3028 mandeep.dh 621
    }
622
 
3430 rajveer 623
    public void getUnassignedTickets(org.apache.thrift.async.AsyncMethodCallback<getUnassignedTickets_call> resultHandler) throws org.apache.thrift.TException {
624
      checkReady();
625
      getUnassignedTickets_call method_call = new getUnassignedTickets_call(resultHandler, this, ___protocolFactory, ___transport);
626
      this.___currentMethod = method_call;
627
      ___manager.call(method_call);
628
    }
629
 
630
    public static class getUnassignedTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
631
      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 {
632
        super(client, protocolFactory, transport, resultHandler, false);
633
      }
634
 
635
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
636
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUnassignedTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
3137 mandeep.dh 637
        getUnassignedTickets_args args = new getUnassignedTickets_args();
3430 rajveer 638
        args.write(prot);
639
        prot.writeMessageEnd();
3087 mandeep.dh 640
      }
641
 
3430 rajveer 642
      public List<Ticket> getResult() throws org.apache.thrift.TException {
643
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
644
          throw new IllegalStateException("Method call not finished!");
645
        }
646
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
647
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
648
        return (new Client(prot)).recv_getUnassignedTickets();
649
      }
3087 mandeep.dh 650
    }
651
 
3430 rajveer 652
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<updateTicket_call> resultHandler) throws org.apache.thrift.TException {
653
      checkReady();
654
      updateTicket_call method_call = new updateTicket_call(ticket, activity, resultHandler, this, ___protocolFactory, ___transport);
655
      this.___currentMethod = method_call;
656
      ___manager.call(method_call);
657
    }
658
 
659
    public static class updateTicket_call extends org.apache.thrift.async.TAsyncMethodCall {
660
      private Ticket ticket;
661
      private Activity activity;
662
      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 {
663
        super(client, protocolFactory, transport, resultHandler, false);
664
        this.ticket = ticket;
665
        this.activity = activity;
666
      }
667
 
668
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
669
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTicket", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 670
        updateTicket_args args = new updateTicket_args();
3430 rajveer 671
        args.setTicket(ticket);
672
        args.setActivity(activity);
673
        args.write(prot);
674
        prot.writeMessageEnd();
3028 mandeep.dh 675
      }
676
 
3430 rajveer 677
      public void getResult() throws org.apache.thrift.TException {
678
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
679
          throw new IllegalStateException("Method call not finished!");
680
        }
681
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
682
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
683
        (new Client(prot)).recv_updateTicket();
684
      }
3028 mandeep.dh 685
    }
686
 
3430 rajveer 687
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertTicket_call> resultHandler) throws org.apache.thrift.TException {
688
      checkReady();
689
      insertTicket_call method_call = new insertTicket_call(ticket, activity, resultHandler, this, ___protocolFactory, ___transport);
690
      this.___currentMethod = method_call;
691
      ___manager.call(method_call);
692
    }
693
 
694
    public static class insertTicket_call extends org.apache.thrift.async.TAsyncMethodCall {
695
      private Ticket ticket;
696
      private Activity activity;
697
      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 {
698
        super(client, protocolFactory, transport, resultHandler, false);
699
        this.ticket = ticket;
700
        this.activity = activity;
701
      }
702
 
703
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
704
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertTicket", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 705
        insertTicket_args args = new insertTicket_args();
3430 rajveer 706
        args.setTicket(ticket);
707
        args.setActivity(activity);
708
        args.write(prot);
709
        prot.writeMessageEnd();
3028 mandeep.dh 710
      }
711
 
3430 rajveer 712
      public long getResult() throws org.apache.thrift.TException {
713
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
714
          throw new IllegalStateException("Method call not finished!");
715
        }
716
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
717
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
718
        return (new Client(prot)).recv_insertTicket();
719
      }
3028 mandeep.dh 720
    }
721
 
4793 amar.kumar 722
    public void unassignAgentTickets(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<unassignAgentTickets_call> resultHandler) throws org.apache.thrift.TException {
723
      checkReady();
724
      unassignAgentTickets_call method_call = new unassignAgentTickets_call(assigneeId, resultHandler, this, ___protocolFactory, ___transport);
725
      this.___currentMethod = method_call;
726
      ___manager.call(method_call);
727
    }
728
 
729
    public static class unassignAgentTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
730
      private int assigneeId;
731
      public unassignAgentTickets_call(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<unassignAgentTickets_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 {
732
        super(client, protocolFactory, transport, resultHandler, false);
733
        this.assigneeId = assigneeId;
734
      }
735
 
736
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
737
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unassignAgentTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
738
        unassignAgentTickets_args args = new unassignAgentTickets_args();
739
        args.setAssigneeId(assigneeId);
740
        args.write(prot);
741
        prot.writeMessageEnd();
742
      }
743
 
744
      public void getResult() throws org.apache.thrift.TException {
745
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
746
          throw new IllegalStateException("Method call not finished!");
747
        }
748
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
749
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
750
        (new Client(prot)).recv_unassignAgentTickets();
751
      }
752
    }
753
 
3430 rajveer 754
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getActivities_call> resultHandler) throws org.apache.thrift.TException {
755
      checkReady();
756
      getActivities_call method_call = new getActivities_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
757
      this.___currentMethod = method_call;
758
      ___manager.call(method_call);
759
    }
760
 
761
    public static class getActivities_call extends org.apache.thrift.async.TAsyncMethodCall {
762
      private SearchFilter searchFilter;
763
      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 {
764
        super(client, protocolFactory, transport, resultHandler, false);
765
        this.searchFilter = searchFilter;
766
      }
767
 
768
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
769
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivities", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 770
        getActivities_args args = new getActivities_args();
3430 rajveer 771
        args.setSearchFilter(searchFilter);
772
        args.write(prot);
773
        prot.writeMessageEnd();
3028 mandeep.dh 774
      }
775
 
3430 rajveer 776
      public List<Activity> getResult() throws org.apache.thrift.TException {
777
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
778
          throw new IllegalStateException("Method call not finished!");
779
        }
780
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
781
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
782
        return (new Client(prot)).recv_getActivities();
783
      }
3028 mandeep.dh 784
    }
785
 
3430 rajveer 786
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertActivity_call> resultHandler) throws org.apache.thrift.TException {
787
      checkReady();
788
      insertActivity_call method_call = new insertActivity_call(activity, resultHandler, this, ___protocolFactory, ___transport);
789
      this.___currentMethod = method_call;
790
      ___manager.call(method_call);
791
    }
792
 
793
    public static class insertActivity_call extends org.apache.thrift.async.TAsyncMethodCall {
794
      private Activity activity;
795
      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 {
796
        super(client, protocolFactory, transport, resultHandler, false);
797
        this.activity = activity;
798
      }
799
 
800
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
801
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertActivity", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 802
        insertActivity_args args = new insertActivity_args();
3430 rajveer 803
        args.setActivity(activity);
804
        args.write(prot);
805
        prot.writeMessageEnd();
3028 mandeep.dh 806
      }
807
 
3430 rajveer 808
      public long getResult() throws org.apache.thrift.TException {
809
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
810
          throw new IllegalStateException("Method call not finished!");
811
        }
812
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
813
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
814
        return (new Client(prot)).recv_insertActivity();
815
      }
3028 mandeep.dh 816
    }
817
 
3430 rajveer 818
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<markAsRead_call> resultHandler) throws org.apache.thrift.TException {
819
      checkReady();
820
      markAsRead_call method_call = new markAsRead_call(activityId, agentId, resultHandler, this, ___protocolFactory, ___transport);
821
      this.___currentMethod = method_call;
822
      ___manager.call(method_call);
823
    }
824
 
825
    public static class markAsRead_call extends org.apache.thrift.async.TAsyncMethodCall {
826
      private long activityId;
827
      private long agentId;
828
      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 {
829
        super(client, protocolFactory, transport, resultHandler, false);
830
        this.activityId = activityId;
831
        this.agentId = agentId;
832
      }
833
 
834
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
835
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markAsRead", org.apache.thrift.protocol.TMessageType.CALL, 0));
3390 mandeep.dh 836
        markAsRead_args args = new markAsRead_args();
3430 rajveer 837
        args.setActivityId(activityId);
838
        args.setAgentId(agentId);
839
        args.write(prot);
840
        prot.writeMessageEnd();
3087 mandeep.dh 841
      }
842
 
3430 rajveer 843
      public void getResult() throws org.apache.thrift.TException {
844
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
845
          throw new IllegalStateException("Method call not finished!");
846
        }
847
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
848
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
849
        (new Client(prot)).recv_markAsRead();
850
      }
3087 mandeep.dh 851
    }
852
 
3430 rajveer 853
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
854
      checkReady();
855
      getAgents_call method_call = new getAgents_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
856
      this.___currentMethod = method_call;
857
      ___manager.call(method_call);
858
    }
859
 
860
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
861
      private SearchFilter searchFilter;
862
      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 {
863
        super(client, protocolFactory, transport, resultHandler, false);
864
        this.searchFilter = searchFilter;
865
      }
866
 
867
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
868
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
3390 mandeep.dh 869
        getAgents_args args = new getAgents_args();
3430 rajveer 870
        args.setSearchFilter(searchFilter);
871
        args.write(prot);
872
        prot.writeMessageEnd();
3028 mandeep.dh 873
      }
874
 
3430 rajveer 875
      public List<Agent> getResult() throws org.apache.thrift.TException {
876
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
877
          throw new IllegalStateException("Method call not finished!");
878
        }
879
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
880
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
881
        return (new Client(prot)).recv_getAgents();
882
      }
3028 mandeep.dh 883
    }
884
 
5287 amar.kumar 885
    public void getInactiveAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getInactiveAgents_call> resultHandler) throws org.apache.thrift.TException {
886
      checkReady();
887
      getInactiveAgents_call method_call = new getInactiveAgents_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
888
      this.___currentMethod = method_call;
889
      ___manager.call(method_call);
890
    }
891
 
892
    public static class getInactiveAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
893
      private SearchFilter searchFilter;
894
      public getInactiveAgents_call(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getInactiveAgents_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 {
895
        super(client, protocolFactory, transport, resultHandler, false);
896
        this.searchFilter = searchFilter;
897
      }
898
 
899
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
900
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInactiveAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
901
        getInactiveAgents_args args = new getInactiveAgents_args();
902
        args.setSearchFilter(searchFilter);
903
        args.write(prot);
904
        prot.writeMessageEnd();
905
      }
906
 
907
      public List<Agent> getResult() throws org.apache.thrift.TException {
908
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
909
          throw new IllegalStateException("Method call not finished!");
910
        }
911
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
912
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
913
        return (new Client(prot)).recv_getInactiveAgents();
914
      }
915
    }
916
 
3430 rajveer 917
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
918
      checkReady();
919
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
920
      this.___currentMethod = method_call;
921
      ___manager.call(method_call);
922
    }
923
 
924
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
925
      private String agentEmailId;
926
      private String password;
927
      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 {
928
        super(client, protocolFactory, transport, resultHandler, false);
929
        this.agentEmailId = agentEmailId;
930
        this.password = password;
931
      }
932
 
933
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
934
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
3087 mandeep.dh 935
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
3430 rajveer 936
        args.setAgentEmailId(agentEmailId);
937
        args.setPassword(password);
938
        args.write(prot);
939
        prot.writeMessageEnd();
3087 mandeep.dh 940
      }
941
 
3430 rajveer 942
      public void getResult() throws org.apache.thrift.TException {
943
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
944
          throw new IllegalStateException("Method call not finished!");
945
        }
946
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
947
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
948
        (new Client(prot)).recv_updatePasswordForAgent();
949
      }
3087 mandeep.dh 950
    }
951
 
3430 rajveer 952
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
953
      checkReady();
954
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
955
      this.___currentMethod = method_call;
956
      ___manager.call(method_call);
957
    }
958
 
959
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
960
      private String agentEmailId;
961
      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 {
962
        super(client, protocolFactory, transport, resultHandler, false);
963
        this.agentEmailId = agentEmailId;
964
      }
965
 
966
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
967
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
3087 mandeep.dh 968
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
3430 rajveer 969
        args.setAgentEmailId(agentEmailId);
970
        args.write(prot);
971
        prot.writeMessageEnd();
3087 mandeep.dh 972
      }
973
 
3430 rajveer 974
      public List<String> getResult() throws org.apache.thrift.TException {
975
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
976
          throw new IllegalStateException("Method call not finished!");
977
        }
978
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
979
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
980
        return (new Client(prot)).recv_getRoleNamesForAgent();
981
      }
3087 mandeep.dh 982
    }
983
 
3430 rajveer 984
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
985
      checkReady();
986
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
987
      this.___currentMethod = method_call;
988
      ___manager.call(method_call);
989
    }
990
 
991
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
992
      private String roleName;
993
      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 {
994
        super(client, protocolFactory, transport, resultHandler, false);
995
        this.roleName = roleName;
996
      }
997
 
998
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
999
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3087 mandeep.dh 1000
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
3430 rajveer 1001
        args.setRoleName(roleName);
1002
        args.write(prot);
1003
        prot.writeMessageEnd();
3087 mandeep.dh 1004
      }
1005
 
3430 rajveer 1006
      public List<String> getResult() throws org.apache.thrift.TException {
1007
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1008
          throw new IllegalStateException("Method call not finished!");
1009
        }
1010
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1011
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1012
        return (new Client(prot)).recv_getPermissionsForRoleName();
1013
      }
3087 mandeep.dh 1014
    }
1015
 
3430 rajveer 1016
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException {
1017
      checkReady();
1018
      getLastEmailProcessedTimestamp_call method_call = new getLastEmailProcessedTimestamp_call(resultHandler, this, ___protocolFactory, ___transport);
1019
      this.___currentMethod = method_call;
1020
      ___manager.call(method_call);
1021
    }
1022
 
1023
    public static class getLastEmailProcessedTimestamp_call extends org.apache.thrift.async.TAsyncMethodCall {
1024
      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 {
1025
        super(client, protocolFactory, transport, resultHandler, false);
1026
      }
1027
 
1028
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1029
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLastEmailProcessedTimestamp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3339 mandeep.dh 1030
        getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
3430 rajveer 1031
        args.write(prot);
1032
        prot.writeMessageEnd();
3339 mandeep.dh 1033
      }
1034
 
3430 rajveer 1035
      public long getResult() throws org.apache.thrift.TException {
1036
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1037
          throw new IllegalStateException("Method call not finished!");
1038
        }
1039
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1040
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1041
        return (new Client(prot)).recv_getLastEmailProcessedTimestamp();
1042
      }
3339 mandeep.dh 1043
    }
1044
 
3430 rajveer 1045
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException {
1046
      checkReady();
1047
      updateLastEmailProcessedTimestamp_call method_call = new updateLastEmailProcessedTimestamp_call(timestamp, resultHandler, this, ___protocolFactory, ___transport);
1048
      this.___currentMethod = method_call;
1049
      ___manager.call(method_call);
1050
    }
1051
 
1052
    public static class updateLastEmailProcessedTimestamp_call extends org.apache.thrift.async.TAsyncMethodCall {
1053
      private long timestamp;
1054
      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 {
1055
        super(client, protocolFactory, transport, resultHandler, false);
1056
        this.timestamp = timestamp;
1057
      }
1058
 
1059
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1060
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLastEmailProcessedTimestamp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3339 mandeep.dh 1061
        updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
3430 rajveer 1062
        args.setTimestamp(timestamp);
1063
        args.write(prot);
1064
        prot.writeMessageEnd();
3339 mandeep.dh 1065
      }
1066
 
3430 rajveer 1067
      public void getResult() throws org.apache.thrift.TException {
1068
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1069
          throw new IllegalStateException("Method call not finished!");
1070
        }
1071
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1072
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1073
        (new Client(prot)).recv_updateLastEmailProcessedTimestamp();
1074
      }
3339 mandeep.dh 1075
    }
1076
 
4793 amar.kumar 1077
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException {
1078
      checkReady();
1079
      changeAgentStatus_call method_call = new changeAgentStatus_call(status, emailId, resultHandler, this, ___protocolFactory, ___transport);
1080
      this.___currentMethod = method_call;
1081
      ___manager.call(method_call);
1082
    }
1083
 
1084
    public static class changeAgentStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
1085
      private boolean status;
1086
      private String emailId;
1087
      public changeAgentStatus_call(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<changeAgentStatus_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 {
1088
        super(client, protocolFactory, transport, resultHandler, false);
1089
        this.status = status;
1090
        this.emailId = emailId;
1091
      }
1092
 
1093
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1094
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeAgentStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
1095
        changeAgentStatus_args args = new changeAgentStatus_args();
1096
        args.setStatus(status);
1097
        args.setEmailId(emailId);
1098
        args.write(prot);
1099
        prot.writeMessageEnd();
1100
      }
1101
 
1102
      public void getResult() throws org.apache.thrift.TException {
1103
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1104
          throw new IllegalStateException("Method call not finished!");
1105
        }
1106
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1107
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1108
        (new Client(prot)).recv_changeAgentStatus();
1109
      }
1110
    }
1111
 
1112
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<insertAgent_call> resultHandler) throws org.apache.thrift.TException {
1113
      checkReady();
1114
      insertAgent_call method_call = new insertAgent_call(agent, role, resultHandler, this, ___protocolFactory, ___transport);
1115
      this.___currentMethod = method_call;
1116
      ___manager.call(method_call);
1117
    }
1118
 
1119
    public static class insertAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1120
      private Agent agent;
1121
      private List<String> role;
1122
      public insertAgent_call(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<insertAgent_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 {
1123
        super(client, protocolFactory, transport, resultHandler, false);
1124
        this.agent = agent;
1125
        this.role = role;
1126
      }
1127
 
1128
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1129
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1130
        insertAgent_args args = new insertAgent_args();
1131
        args.setAgent(agent);
1132
        args.setRole(role);
1133
        args.write(prot);
1134
        prot.writeMessageEnd();
1135
      }
1136
 
1137
      public void getResult() throws org.apache.thrift.TException {
1138
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1139
          throw new IllegalStateException("Method call not finished!");
1140
        }
1141
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1142
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1143
        (new Client(prot)).recv_insertAgent();
1144
      }
1145
    }
1146
 
5169 amar.kumar 1147
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<changeAgentRole_call> resultHandler) throws org.apache.thrift.TException {
1148
      checkReady();
1149
      changeAgentRole_call method_call = new changeAgentRole_call(id, role, resultHandler, this, ___protocolFactory, ___transport);
1150
      this.___currentMethod = method_call;
1151
      ___manager.call(method_call);
1152
    }
1153
 
1154
    public static class changeAgentRole_call extends org.apache.thrift.async.TAsyncMethodCall {
1155
      private long id;
1156
      private List<String> role;
1157
      public changeAgentRole_call(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<changeAgentRole_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 {
1158
        super(client, protocolFactory, transport, resultHandler, false);
1159
        this.id = id;
1160
        this.role = role;
1161
      }
1162
 
1163
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1164
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeAgentRole", org.apache.thrift.protocol.TMessageType.CALL, 0));
1165
        changeAgentRole_args args = new changeAgentRole_args();
1166
        args.setId(id);
1167
        args.setRole(role);
1168
        args.write(prot);
1169
        prot.writeMessageEnd();
1170
      }
1171
 
1172
      public void getResult() throws org.apache.thrift.TException {
1173
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1174
          throw new IllegalStateException("Method call not finished!");
1175
        }
1176
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1177
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1178
        (new Client(prot)).recv_changeAgentRole();
1179
      }
1180
    }
1181
 
1182
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException {
1183
      checkReady();
1184
      getOpenTicketCountForAgent_call method_call = new getOpenTicketCountForAgent_call(agentId, resultHandler, this, ___protocolFactory, ___transport);
1185
      this.___currentMethod = method_call;
1186
      ___manager.call(method_call);
1187
    }
1188
 
1189
    public static class getOpenTicketCountForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1190
      private long agentId;
1191
      public getOpenTicketCountForAgent_call(long agentId, org.apache.thrift.async.AsyncMethodCallback<getOpenTicketCountForAgent_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 {
1192
        super(client, protocolFactory, transport, resultHandler, false);
1193
        this.agentId = agentId;
1194
      }
1195
 
1196
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1197
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOpenTicketCountForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1198
        getOpenTicketCountForAgent_args args = new getOpenTicketCountForAgent_args();
1199
        args.setAgentId(agentId);
1200
        args.write(prot);
1201
        prot.writeMessageEnd();
1202
      }
1203
 
1204
      public int getResult() throws org.apache.thrift.TException {
1205
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1206
          throw new IllegalStateException("Method call not finished!");
1207
        }
1208
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1209
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1210
        return (new Client(prot)).recv_getOpenTicketCountForAgent();
1211
      }
1212
    }
1213
 
5909 amar.kumar 1214
    public void getOpenTicketsMap(org.apache.thrift.async.AsyncMethodCallback<getOpenTicketsMap_call> resultHandler) throws org.apache.thrift.TException {
1215
      checkReady();
1216
      getOpenTicketsMap_call method_call = new getOpenTicketsMap_call(resultHandler, this, ___protocolFactory, ___transport);
1217
      this.___currentMethod = method_call;
1218
      ___manager.call(method_call);
1219
    }
1220
 
1221
    public static class getOpenTicketsMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1222
      public getOpenTicketsMap_call(org.apache.thrift.async.AsyncMethodCallback<getOpenTicketsMap_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 {
1223
        super(client, protocolFactory, transport, resultHandler, false);
1224
      }
1225
 
1226
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1227
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOpenTicketsMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1228
        getOpenTicketsMap_args args = new getOpenTicketsMap_args();
1229
        args.write(prot);
1230
        prot.writeMessageEnd();
1231
      }
1232
 
1233
      public Map<String,Long> getResult() throws org.apache.thrift.TException {
1234
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1235
          throw new IllegalStateException("Method call not finished!");
1236
        }
1237
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1238
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1239
        return (new Client(prot)).recv_getOpenTicketsMap();
1240
      }
1241
    }
1242
 
3028 mandeep.dh 1243
  }
1244
 
3430 rajveer 1245
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1246
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1247
    public Processor(I iface) {
1248
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1249
    }
3028 mandeep.dh 1250
 
3430 rajveer 1251
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1252
      super(iface, getProcessMap(processMap));
1253
    }
3028 mandeep.dh 1254
 
3430 rajveer 1255
    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) {
1256
      processMap.put("getTickets", new getTickets());
1257
      processMap.put("getUnassignedTickets", new getUnassignedTickets());
1258
      processMap.put("updateTicket", new updateTicket());
1259
      processMap.put("insertTicket", new insertTicket());
4793 amar.kumar 1260
      processMap.put("unassignAgentTickets", new unassignAgentTickets());
3430 rajveer 1261
      processMap.put("getActivities", new getActivities());
1262
      processMap.put("insertActivity", new insertActivity());
1263
      processMap.put("markAsRead", new markAsRead());
1264
      processMap.put("getAgents", new getAgents());
5287 amar.kumar 1265
      processMap.put("getInactiveAgents", new getInactiveAgents());
3430 rajveer 1266
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1267
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1268
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1269
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
1270
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
4793 amar.kumar 1271
      processMap.put("changeAgentStatus", new changeAgentStatus());
1272
      processMap.put("insertAgent", new insertAgent());
5169 amar.kumar 1273
      processMap.put("changeAgentRole", new changeAgentRole());
1274
      processMap.put("getOpenTicketCountForAgent", new getOpenTicketCountForAgent());
5909 amar.kumar 1275
      processMap.put("getOpenTicketsMap", new getOpenTicketsMap());
3430 rajveer 1276
      return processMap;
1277
    }
3028 mandeep.dh 1278
 
3430 rajveer 1279
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
1280
      public getTickets() {
1281
        super("getTickets");
1282
      }
1283
 
1284
      protected getTickets_args getEmptyArgsInstance() {
1285
        return new getTickets_args();
1286
      }
1287
 
1288
      protected getTickets_result getResult(I iface, getTickets_args args) throws org.apache.thrift.TException {
1289
        getTickets_result result = new getTickets_result();
1290
        result.success = iface.getTickets(args.searchFilter);
1291
        return result;
1292
      }
1293
    }
1294
 
1295
    private static class getUnassignedTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUnassignedTickets_args> {
1296
      public getUnassignedTickets() {
1297
        super("getUnassignedTickets");
1298
      }
1299
 
1300
      protected getUnassignedTickets_args getEmptyArgsInstance() {
1301
        return new getUnassignedTickets_args();
1302
      }
1303
 
1304
      protected getUnassignedTickets_result getResult(I iface, getUnassignedTickets_args args) throws org.apache.thrift.TException {
1305
        getUnassignedTickets_result result = new getUnassignedTickets_result();
1306
        result.success = iface.getUnassignedTickets();
1307
        return result;
1308
      }
1309
    }
1310
 
1311
    private static class updateTicket<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTicket_args> {
1312
      public updateTicket() {
1313
        super("updateTicket");
1314
      }
1315
 
1316
      protected updateTicket_args getEmptyArgsInstance() {
1317
        return new updateTicket_args();
1318
      }
1319
 
1320
      protected updateTicket_result getResult(I iface, updateTicket_args args) throws org.apache.thrift.TException {
1321
        updateTicket_result result = new updateTicket_result();
1322
        iface.updateTicket(args.ticket, args.activity);
1323
        return result;
1324
      }
1325
    }
1326
 
1327
    private static class insertTicket<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertTicket_args> {
1328
      public insertTicket() {
1329
        super("insertTicket");
1330
      }
1331
 
1332
      protected insertTicket_args getEmptyArgsInstance() {
1333
        return new insertTicket_args();
1334
      }
1335
 
1336
      protected insertTicket_result getResult(I iface, insertTicket_args args) throws org.apache.thrift.TException {
1337
        insertTicket_result result = new insertTicket_result();
1338
        result.success = iface.insertTicket(args.ticket, args.activity);
1339
        result.setSuccessIsSet(true);
1340
        return result;
1341
      }
1342
    }
1343
 
4793 amar.kumar 1344
    private static class unassignAgentTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unassignAgentTickets_args> {
1345
      public unassignAgentTickets() {
1346
        super("unassignAgentTickets");
1347
      }
1348
 
1349
      protected unassignAgentTickets_args getEmptyArgsInstance() {
1350
        return new unassignAgentTickets_args();
1351
      }
1352
 
1353
      protected unassignAgentTickets_result getResult(I iface, unassignAgentTickets_args args) throws org.apache.thrift.TException {
1354
        unassignAgentTickets_result result = new unassignAgentTickets_result();
1355
        iface.unassignAgentTickets(args.assigneeId);
1356
        return result;
1357
      }
1358
    }
1359
 
3430 rajveer 1360
    private static class getActivities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivities_args> {
1361
      public getActivities() {
1362
        super("getActivities");
1363
      }
1364
 
1365
      protected getActivities_args getEmptyArgsInstance() {
1366
        return new getActivities_args();
1367
      }
1368
 
1369
      protected getActivities_result getResult(I iface, getActivities_args args) throws org.apache.thrift.TException {
1370
        getActivities_result result = new getActivities_result();
1371
        result.success = iface.getActivities(args.searchFilter);
1372
        return result;
1373
      }
1374
    }
1375
 
1376
    private static class insertActivity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertActivity_args> {
1377
      public insertActivity() {
1378
        super("insertActivity");
1379
      }
1380
 
1381
      protected insertActivity_args getEmptyArgsInstance() {
1382
        return new insertActivity_args();
1383
      }
1384
 
1385
      protected insertActivity_result getResult(I iface, insertActivity_args args) throws org.apache.thrift.TException {
1386
        insertActivity_result result = new insertActivity_result();
1387
        result.success = iface.insertActivity(args.activity);
1388
        result.setSuccessIsSet(true);
1389
        return result;
1390
      }
1391
    }
1392
 
1393
    private static class markAsRead<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markAsRead_args> {
1394
      public markAsRead() {
1395
        super("markAsRead");
1396
      }
1397
 
1398
      protected markAsRead_args getEmptyArgsInstance() {
1399
        return new markAsRead_args();
1400
      }
1401
 
1402
      protected markAsRead_result getResult(I iface, markAsRead_args args) throws org.apache.thrift.TException {
1403
        markAsRead_result result = new markAsRead_result();
1404
        iface.markAsRead(args.activityId, args.agentId);
1405
        return result;
1406
      }
1407
    }
1408
 
1409
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
1410
      public getAgents() {
1411
        super("getAgents");
1412
      }
1413
 
1414
      protected getAgents_args getEmptyArgsInstance() {
1415
        return new getAgents_args();
1416
      }
1417
 
1418
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
1419
        getAgents_result result = new getAgents_result();
1420
        result.success = iface.getAgents(args.searchFilter);
1421
        return result;
1422
      }
1423
    }
1424
 
5287 amar.kumar 1425
    private static class getInactiveAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInactiveAgents_args> {
1426
      public getInactiveAgents() {
1427
        super("getInactiveAgents");
1428
      }
1429
 
1430
      protected getInactiveAgents_args getEmptyArgsInstance() {
1431
        return new getInactiveAgents_args();
1432
      }
1433
 
1434
      protected getInactiveAgents_result getResult(I iface, getInactiveAgents_args args) throws org.apache.thrift.TException {
1435
        getInactiveAgents_result result = new getInactiveAgents_result();
1436
        result.success = iface.getInactiveAgents(args.searchFilter);
1437
        return result;
1438
      }
1439
    }
1440
 
3430 rajveer 1441
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
1442
      public updatePasswordForAgent() {
1443
        super("updatePasswordForAgent");
1444
      }
1445
 
1446
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
1447
        return new updatePasswordForAgent_args();
1448
      }
1449
 
1450
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
1451
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
1452
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
1453
        return result;
1454
      }
1455
    }
1456
 
1457
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
1458
      public getRoleNamesForAgent() {
1459
        super("getRoleNamesForAgent");
1460
      }
1461
 
1462
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
1463
        return new getRoleNamesForAgent_args();
1464
      }
1465
 
1466
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
1467
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
1468
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
1469
        return result;
1470
      }
1471
    }
1472
 
1473
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
1474
      public getPermissionsForRoleName() {
1475
        super("getPermissionsForRoleName");
1476
      }
1477
 
1478
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
1479
        return new getPermissionsForRoleName_args();
1480
      }
1481
 
1482
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
1483
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
1484
        result.success = iface.getPermissionsForRoleName(args.roleName);
1485
        return result;
1486
      }
1487
    }
1488
 
1489
    private static class getLastEmailProcessedTimestamp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLastEmailProcessedTimestamp_args> {
1490
      public getLastEmailProcessedTimestamp() {
1491
        super("getLastEmailProcessedTimestamp");
1492
      }
1493
 
1494
      protected getLastEmailProcessedTimestamp_args getEmptyArgsInstance() {
1495
        return new getLastEmailProcessedTimestamp_args();
1496
      }
1497
 
1498
      protected getLastEmailProcessedTimestamp_result getResult(I iface, getLastEmailProcessedTimestamp_args args) throws org.apache.thrift.TException {
1499
        getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
1500
        result.success = iface.getLastEmailProcessedTimestamp();
1501
        result.setSuccessIsSet(true);
1502
        return result;
1503
      }
1504
    }
1505
 
1506
    private static class updateLastEmailProcessedTimestamp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateLastEmailProcessedTimestamp_args> {
1507
      public updateLastEmailProcessedTimestamp() {
1508
        super("updateLastEmailProcessedTimestamp");
1509
      }
1510
 
1511
      protected updateLastEmailProcessedTimestamp_args getEmptyArgsInstance() {
1512
        return new updateLastEmailProcessedTimestamp_args();
1513
      }
1514
 
1515
      protected updateLastEmailProcessedTimestamp_result getResult(I iface, updateLastEmailProcessedTimestamp_args args) throws org.apache.thrift.TException {
1516
        updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
1517
        iface.updateLastEmailProcessedTimestamp(args.timestamp);
1518
        return result;
1519
      }
1520
    }
1521
 
4793 amar.kumar 1522
    private static class changeAgentStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAgentStatus_args> {
1523
      public changeAgentStatus() {
1524
        super("changeAgentStatus");
1525
      }
1526
 
1527
      protected changeAgentStatus_args getEmptyArgsInstance() {
1528
        return new changeAgentStatus_args();
1529
      }
1530
 
1531
      protected changeAgentStatus_result getResult(I iface, changeAgentStatus_args args) throws org.apache.thrift.TException {
1532
        changeAgentStatus_result result = new changeAgentStatus_result();
1533
        iface.changeAgentStatus(args.status, args.emailId);
1534
        return result;
1535
      }
1536
    }
1537
 
1538
    private static class insertAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertAgent_args> {
1539
      public insertAgent() {
1540
        super("insertAgent");
1541
      }
1542
 
1543
      protected insertAgent_args getEmptyArgsInstance() {
1544
        return new insertAgent_args();
1545
      }
1546
 
1547
      protected insertAgent_result getResult(I iface, insertAgent_args args) throws org.apache.thrift.TException {
1548
        insertAgent_result result = new insertAgent_result();
1549
        iface.insertAgent(args.agent, args.role);
1550
        return result;
1551
      }
1552
    }
1553
 
5169 amar.kumar 1554
    private static class changeAgentRole<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAgentRole_args> {
1555
      public changeAgentRole() {
1556
        super("changeAgentRole");
1557
      }
1558
 
1559
      protected changeAgentRole_args getEmptyArgsInstance() {
1560
        return new changeAgentRole_args();
1561
      }
1562
 
1563
      protected changeAgentRole_result getResult(I iface, changeAgentRole_args args) throws org.apache.thrift.TException {
1564
        changeAgentRole_result result = new changeAgentRole_result();
1565
        iface.changeAgentRole(args.id, args.role);
1566
        return result;
1567
      }
1568
    }
1569
 
1570
    private static class getOpenTicketCountForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOpenTicketCountForAgent_args> {
1571
      public getOpenTicketCountForAgent() {
1572
        super("getOpenTicketCountForAgent");
1573
      }
1574
 
1575
      protected getOpenTicketCountForAgent_args getEmptyArgsInstance() {
1576
        return new getOpenTicketCountForAgent_args();
1577
      }
1578
 
1579
      protected getOpenTicketCountForAgent_result getResult(I iface, getOpenTicketCountForAgent_args args) throws org.apache.thrift.TException {
1580
        getOpenTicketCountForAgent_result result = new getOpenTicketCountForAgent_result();
1581
        result.success = iface.getOpenTicketCountForAgent(args.agentId);
1582
        result.setSuccessIsSet(true);
1583
        return result;
1584
      }
1585
    }
1586
 
5909 amar.kumar 1587
    private static class getOpenTicketsMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOpenTicketsMap_args> {
1588
      public getOpenTicketsMap() {
1589
        super("getOpenTicketsMap");
1590
      }
1591
 
1592
      protected getOpenTicketsMap_args getEmptyArgsInstance() {
1593
        return new getOpenTicketsMap_args();
1594
      }
1595
 
1596
      protected getOpenTicketsMap_result getResult(I iface, getOpenTicketsMap_args args) throws org.apache.thrift.TException {
1597
        getOpenTicketsMap_result result = new getOpenTicketsMap_result();
1598
        result.success = iface.getOpenTicketsMap();
1599
        return result;
1600
      }
1601
    }
1602
 
3430 rajveer 1603
  }
1604
 
1605
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1606
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1607
 
1608
    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);
1609
 
1610
    private SearchFilter searchFilter; // required
1611
 
3028 mandeep.dh 1612
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1613
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 1614
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 1615
 
1616
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1617
 
1618
      static {
1619
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1620
          byName.put(field.getFieldName(), field);
1621
        }
1622
      }
1623
 
1624
      /**
1625
       * Find the _Fields constant that matches fieldId, or null if its not found.
1626
       */
1627
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1628
        switch(fieldId) {
1629
          case 1: // SEARCH_FILTER
1630
            return SEARCH_FILTER;
1631
          default:
1632
            return null;
1633
        }
3028 mandeep.dh 1634
      }
1635
 
1636
      /**
1637
       * Find the _Fields constant that matches fieldId, throwing an exception
1638
       * if it is not found.
1639
       */
1640
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1641
        _Fields fields = findByThriftId(fieldId);
1642
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1643
        return fields;
1644
      }
1645
 
1646
      /**
1647
       * Find the _Fields constant that matches name, or null if its not found.
1648
       */
1649
      public static _Fields findByName(String name) {
1650
        return byName.get(name);
1651
      }
1652
 
1653
      private final short _thriftId;
1654
      private final String _fieldName;
1655
 
1656
      _Fields(short thriftId, String fieldName) {
1657
        _thriftId = thriftId;
1658
        _fieldName = fieldName;
1659
      }
1660
 
1661
      public short getThriftFieldId() {
1662
        return _thriftId;
1663
      }
1664
 
1665
      public String getFieldName() {
1666
        return _fieldName;
1667
      }
1668
    }
1669
 
1670
    // isset id assignments
1671
 
3430 rajveer 1672
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 1673
    static {
3430 rajveer 1674
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1675
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1676
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
1677
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1678
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);
3028 mandeep.dh 1679
    }
1680
 
1681
    public getTickets_args() {
1682
    }
1683
 
1684
    public getTickets_args(
3390 mandeep.dh 1685
      SearchFilter searchFilter)
3028 mandeep.dh 1686
    {
1687
      this();
3390 mandeep.dh 1688
      this.searchFilter = searchFilter;
3028 mandeep.dh 1689
    }
1690
 
1691
    /**
1692
     * Performs a deep copy on <i>other</i>.
1693
     */
1694
    public getTickets_args(getTickets_args other) {
3390 mandeep.dh 1695
      if (other.isSetSearchFilter()) {
1696
        this.searchFilter = new SearchFilter(other.searchFilter);
1697
      }
3028 mandeep.dh 1698
    }
1699
 
1700
    public getTickets_args deepCopy() {
1701
      return new getTickets_args(this);
1702
    }
1703
 
3430 rajveer 1704
    @Override
1705
    public void clear() {
1706
      this.searchFilter = null;
3028 mandeep.dh 1707
    }
1708
 
3390 mandeep.dh 1709
    public SearchFilter getSearchFilter() {
1710
      return this.searchFilter;
3028 mandeep.dh 1711
    }
1712
 
3430 rajveer 1713
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 1714
      this.searchFilter = searchFilter;
3028 mandeep.dh 1715
    }
1716
 
3390 mandeep.dh 1717
    public void unsetSearchFilter() {
1718
      this.searchFilter = null;
3028 mandeep.dh 1719
    }
1720
 
3430 rajveer 1721
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 1722
    public boolean isSetSearchFilter() {
1723
      return this.searchFilter != null;
3028 mandeep.dh 1724
    }
1725
 
3390 mandeep.dh 1726
    public void setSearchFilterIsSet(boolean value) {
1727
      if (!value) {
1728
        this.searchFilter = null;
1729
      }
3028 mandeep.dh 1730
    }
1731
 
1732
    public void setFieldValue(_Fields field, Object value) {
1733
      switch (field) {
3390 mandeep.dh 1734
      case SEARCH_FILTER:
3028 mandeep.dh 1735
        if (value == null) {
3390 mandeep.dh 1736
          unsetSearchFilter();
3028 mandeep.dh 1737
        } else {
3390 mandeep.dh 1738
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 1739
        }
1740
        break;
1741
 
1742
      }
1743
    }
1744
 
1745
    public Object getFieldValue(_Fields field) {
1746
      switch (field) {
3390 mandeep.dh 1747
      case SEARCH_FILTER:
1748
        return getSearchFilter();
3028 mandeep.dh 1749
 
1750
      }
1751
      throw new IllegalStateException();
1752
    }
1753
 
3430 rajveer 1754
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1755
    public boolean isSet(_Fields field) {
1756
      if (field == null) {
1757
        throw new IllegalArgumentException();
1758
      }
3028 mandeep.dh 1759
 
1760
      switch (field) {
3390 mandeep.dh 1761
      case SEARCH_FILTER:
1762
        return isSetSearchFilter();
3028 mandeep.dh 1763
      }
1764
      throw new IllegalStateException();
1765
    }
1766
 
1767
    @Override
1768
    public boolean equals(Object that) {
1769
      if (that == null)
1770
        return false;
1771
      if (that instanceof getTickets_args)
1772
        return this.equals((getTickets_args)that);
1773
      return false;
1774
    }
1775
 
1776
    public boolean equals(getTickets_args that) {
1777
      if (that == null)
1778
        return false;
1779
 
3390 mandeep.dh 1780
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
1781
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
1782
      if (this_present_searchFilter || that_present_searchFilter) {
1783
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 1784
          return false;
3390 mandeep.dh 1785
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 1786
          return false;
1787
      }
1788
 
1789
      return true;
1790
    }
1791
 
1792
    @Override
1793
    public int hashCode() {
1794
      return 0;
1795
    }
1796
 
1797
    public int compareTo(getTickets_args other) {
1798
      if (!getClass().equals(other.getClass())) {
1799
        return getClass().getName().compareTo(other.getClass().getName());
1800
      }
1801
 
1802
      int lastComparison = 0;
1803
      getTickets_args typedOther = (getTickets_args)other;
1804
 
3430 rajveer 1805
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 1806
      if (lastComparison != 0) {
1807
        return lastComparison;
1808
      }
3430 rajveer 1809
      if (isSetSearchFilter()) {
1810
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
1811
        if (lastComparison != 0) {
1812
          return lastComparison;
1813
        }
3028 mandeep.dh 1814
      }
1815
      return 0;
1816
    }
1817
 
3430 rajveer 1818
    public _Fields fieldForId(int fieldId) {
1819
      return _Fields.findByThriftId(fieldId);
1820
    }
1821
 
1822
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1823
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 1824
      iprot.readStructBegin();
1825
      while (true)
1826
      {
1827
        field = iprot.readFieldBegin();
3430 rajveer 1828
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 1829
          break;
1830
        }
3430 rajveer 1831
        switch (field.id) {
1832
          case 1: // SEARCH_FILTER
1833
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1834
              this.searchFilter = new SearchFilter();
1835
              this.searchFilter.read(iprot);
1836
            } else { 
1837
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1838
            }
1839
            break;
1840
          default:
1841
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 1842
        }
3430 rajveer 1843
        iprot.readFieldEnd();
3028 mandeep.dh 1844
      }
1845
      iprot.readStructEnd();
1846
      validate();
1847
    }
1848
 
3430 rajveer 1849
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 1850
      validate();
1851
 
1852
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 1853
      if (this.searchFilter != null) {
1854
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
1855
        this.searchFilter.write(oprot);
1856
        oprot.writeFieldEnd();
1857
      }
3028 mandeep.dh 1858
      oprot.writeFieldStop();
1859
      oprot.writeStructEnd();
1860
    }
1861
 
1862
    @Override
1863
    public String toString() {
1864
      StringBuilder sb = new StringBuilder("getTickets_args(");
1865
      boolean first = true;
1866
 
3390 mandeep.dh 1867
      sb.append("searchFilter:");
1868
      if (this.searchFilter == null) {
1869
        sb.append("null");
1870
      } else {
1871
        sb.append(this.searchFilter);
1872
      }
3028 mandeep.dh 1873
      first = false;
1874
      sb.append(")");
1875
      return sb.toString();
1876
    }
1877
 
3430 rajveer 1878
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 1879
      // check for required fields
1880
    }
1881
 
3430 rajveer 1882
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1883
      try {
1884
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1885
      } catch (org.apache.thrift.TException te) {
1886
        throw new java.io.IOException(te);
1887
      }
1888
    }
1889
 
1890
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1891
      try {
1892
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1893
      } catch (org.apache.thrift.TException te) {
1894
        throw new java.io.IOException(te);
1895
      }
1896
    }
1897
 
3028 mandeep.dh 1898
  }
1899
 
3430 rajveer 1900
  public static class getTickets_result implements org.apache.thrift.TBase<getTickets_result, getTickets_result._Fields>, java.io.Serializable, Cloneable   {
1901
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_result");
3028 mandeep.dh 1902
 
3430 rajveer 1903
    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);
3028 mandeep.dh 1904
 
3430 rajveer 1905
    private List<Ticket> success; // required
3028 mandeep.dh 1906
 
1907
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1908
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 1909
      SUCCESS((short)0, "success");
1910
 
1911
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1912
 
1913
      static {
1914
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1915
          byName.put(field.getFieldName(), field);
1916
        }
1917
      }
1918
 
1919
      /**
1920
       * Find the _Fields constant that matches fieldId, or null if its not found.
1921
       */
1922
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1923
        switch(fieldId) {
1924
          case 0: // SUCCESS
1925
            return SUCCESS;
1926
          default:
1927
            return null;
1928
        }
3028 mandeep.dh 1929
      }
1930
 
1931
      /**
1932
       * Find the _Fields constant that matches fieldId, throwing an exception
1933
       * if it is not found.
1934
       */
1935
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1936
        _Fields fields = findByThriftId(fieldId);
1937
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1938
        return fields;
1939
      }
1940
 
1941
      /**
1942
       * Find the _Fields constant that matches name, or null if its not found.
1943
       */
1944
      public static _Fields findByName(String name) {
1945
        return byName.get(name);
1946
      }
1947
 
1948
      private final short _thriftId;
1949
      private final String _fieldName;
1950
 
1951
      _Fields(short thriftId, String fieldName) {
1952
        _thriftId = thriftId;
1953
        _fieldName = fieldName;
1954
      }
1955
 
1956
      public short getThriftFieldId() {
1957
        return _thriftId;
1958
      }
1959
 
1960
      public String getFieldName() {
1961
        return _fieldName;
1962
      }
1963
    }
1964
 
1965
    // isset id assignments
1966
 
3430 rajveer 1967
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 1968
    static {
3430 rajveer 1969
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1970
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1971
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
1972
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class))));
1973
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1974
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTickets_result.class, metaDataMap);
3028 mandeep.dh 1975
    }
1976
 
1977
    public getTickets_result() {
1978
    }
1979
 
1980
    public getTickets_result(
1981
      List<Ticket> success)
1982
    {
1983
      this();
1984
      this.success = success;
1985
    }
1986
 
1987
    /**
1988
     * Performs a deep copy on <i>other</i>.
1989
     */
1990
    public getTickets_result(getTickets_result other) {
1991
      if (other.isSetSuccess()) {
1992
        List<Ticket> __this__success = new ArrayList<Ticket>();
1993
        for (Ticket other_element : other.success) {
1994
          __this__success.add(new Ticket(other_element));
1995
        }
1996
        this.success = __this__success;
1997
      }
1998
    }
1999
 
2000
    public getTickets_result deepCopy() {
2001
      return new getTickets_result(this);
2002
    }
2003
 
3430 rajveer 2004
    @Override
2005
    public void clear() {
2006
      this.success = null;
3028 mandeep.dh 2007
    }
2008
 
2009
    public int getSuccessSize() {
2010
      return (this.success == null) ? 0 : this.success.size();
2011
    }
2012
 
2013
    public java.util.Iterator<Ticket> getSuccessIterator() {
2014
      return (this.success == null) ? null : this.success.iterator();
2015
    }
2016
 
2017
    public void addToSuccess(Ticket elem) {
2018
      if (this.success == null) {
2019
        this.success = new ArrayList<Ticket>();
2020
      }
2021
      this.success.add(elem);
2022
    }
2023
 
2024
    public List<Ticket> getSuccess() {
2025
      return this.success;
2026
    }
2027
 
3430 rajveer 2028
    public void setSuccess(List<Ticket> success) {
3028 mandeep.dh 2029
      this.success = success;
2030
    }
2031
 
2032
    public void unsetSuccess() {
2033
      this.success = null;
2034
    }
2035
 
3430 rajveer 2036
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 2037
    public boolean isSetSuccess() {
2038
      return this.success != null;
2039
    }
2040
 
2041
    public void setSuccessIsSet(boolean value) {
2042
      if (!value) {
2043
        this.success = null;
2044
      }
2045
    }
2046
 
2047
    public void setFieldValue(_Fields field, Object value) {
2048
      switch (field) {
2049
      case SUCCESS:
2050
        if (value == null) {
2051
          unsetSuccess();
2052
        } else {
2053
          setSuccess((List<Ticket>)value);
2054
        }
2055
        break;
2056
 
2057
      }
2058
    }
2059
 
2060
    public Object getFieldValue(_Fields field) {
2061
      switch (field) {
2062
      case SUCCESS:
2063
        return getSuccess();
2064
 
2065
      }
2066
      throw new IllegalStateException();
2067
    }
2068
 
3430 rajveer 2069
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2070
    public boolean isSet(_Fields field) {
2071
      if (field == null) {
2072
        throw new IllegalArgumentException();
2073
      }
3028 mandeep.dh 2074
 
2075
      switch (field) {
2076
      case SUCCESS:
2077
        return isSetSuccess();
2078
      }
2079
      throw new IllegalStateException();
2080
    }
2081
 
2082
    @Override
2083
    public boolean equals(Object that) {
2084
      if (that == null)
2085
        return false;
2086
      if (that instanceof getTickets_result)
2087
        return this.equals((getTickets_result)that);
2088
      return false;
2089
    }
2090
 
2091
    public boolean equals(getTickets_result that) {
2092
      if (that == null)
2093
        return false;
2094
 
2095
      boolean this_present_success = true && this.isSetSuccess();
2096
      boolean that_present_success = true && that.isSetSuccess();
2097
      if (this_present_success || that_present_success) {
2098
        if (!(this_present_success && that_present_success))
2099
          return false;
2100
        if (!this.success.equals(that.success))
2101
          return false;
2102
      }
2103
 
2104
      return true;
2105
    }
2106
 
2107
    @Override
2108
    public int hashCode() {
2109
      return 0;
2110
    }
2111
 
2112
    public int compareTo(getTickets_result other) {
2113
      if (!getClass().equals(other.getClass())) {
2114
        return getClass().getName().compareTo(other.getClass().getName());
2115
      }
2116
 
2117
      int lastComparison = 0;
2118
      getTickets_result typedOther = (getTickets_result)other;
2119
 
3430 rajveer 2120
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 2121
      if (lastComparison != 0) {
2122
        return lastComparison;
2123
      }
3430 rajveer 2124
      if (isSetSuccess()) {
2125
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2126
        if (lastComparison != 0) {
2127
          return lastComparison;
2128
        }
3028 mandeep.dh 2129
      }
2130
      return 0;
2131
    }
2132
 
3430 rajveer 2133
    public _Fields fieldForId(int fieldId) {
2134
      return _Fields.findByThriftId(fieldId);
2135
    }
2136
 
2137
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2138
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 2139
      iprot.readStructBegin();
2140
      while (true)
2141
      {
2142
        field = iprot.readFieldBegin();
3430 rajveer 2143
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 2144
          break;
2145
        }
3430 rajveer 2146
        switch (field.id) {
2147
          case 0: // SUCCESS
2148
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2149
              {
3546 mandeep.dh 2150
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
2151
                this.success = new ArrayList<Ticket>(_list12.size);
2152
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
3028 mandeep.dh 2153
                {
3546 mandeep.dh 2154
                  Ticket _elem14; // required
2155
                  _elem14 = new Ticket();
2156
                  _elem14.read(iprot);
2157
                  this.success.add(_elem14);
3028 mandeep.dh 2158
                }
3430 rajveer 2159
                iprot.readListEnd();
3028 mandeep.dh 2160
              }
3430 rajveer 2161
            } else { 
2162
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2163
            }
2164
            break;
2165
          default:
2166
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 2167
        }
3430 rajveer 2168
        iprot.readFieldEnd();
3028 mandeep.dh 2169
      }
2170
      iprot.readStructEnd();
2171
      validate();
2172
    }
2173
 
3430 rajveer 2174
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 2175
      oprot.writeStructBegin(STRUCT_DESC);
2176
 
2177
      if (this.isSetSuccess()) {
2178
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2179
        {
3430 rajveer 2180
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 2181
          for (Ticket _iter15 : this.success)
3028 mandeep.dh 2182
          {
3546 mandeep.dh 2183
            _iter15.write(oprot);
3028 mandeep.dh 2184
          }
2185
          oprot.writeListEnd();
2186
        }
2187
        oprot.writeFieldEnd();
2188
      }
2189
      oprot.writeFieldStop();
2190
      oprot.writeStructEnd();
2191
    }
2192
 
2193
    @Override
2194
    public String toString() {
2195
      StringBuilder sb = new StringBuilder("getTickets_result(");
2196
      boolean first = true;
2197
 
2198
      sb.append("success:");
2199
      if (this.success == null) {
2200
        sb.append("null");
2201
      } else {
2202
        sb.append(this.success);
2203
      }
2204
      first = false;
2205
      sb.append(")");
2206
      return sb.toString();
2207
    }
2208
 
3430 rajveer 2209
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 2210
      // check for required fields
2211
    }
2212
 
3430 rajveer 2213
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2214
      try {
2215
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2216
      } catch (org.apache.thrift.TException te) {
2217
        throw new java.io.IOException(te);
2218
      }
2219
    }
2220
 
2221
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2222
      try {
2223
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2224
      } catch (org.apache.thrift.TException te) {
2225
        throw new java.io.IOException(te);
2226
      }
2227
    }
2228
 
3028 mandeep.dh 2229
  }
2230
 
3430 rajveer 2231
  public static class getUnassignedTickets_args implements org.apache.thrift.TBase<getUnassignedTickets_args, getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable   {
2232
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnassignedTickets_args");
3087 mandeep.dh 2233
 
2234
 
2235
 
2236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2237
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 2238
;
2239
 
2240
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2241
 
2242
      static {
2243
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2244
          byName.put(field.getFieldName(), field);
2245
        }
2246
      }
2247
 
2248
      /**
2249
       * Find the _Fields constant that matches fieldId, or null if its not found.
2250
       */
2251
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2252
        switch(fieldId) {
2253
          default:
2254
            return null;
2255
        }
3087 mandeep.dh 2256
      }
2257
 
2258
      /**
2259
       * Find the _Fields constant that matches fieldId, throwing an exception
2260
       * if it is not found.
2261
       */
2262
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2263
        _Fields fields = findByThriftId(fieldId);
2264
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2265
        return fields;
2266
      }
2267
 
2268
      /**
2269
       * Find the _Fields constant that matches name, or null if its not found.
2270
       */
2271
      public static _Fields findByName(String name) {
2272
        return byName.get(name);
2273
      }
2274
 
2275
      private final short _thriftId;
2276
      private final String _fieldName;
2277
 
2278
      _Fields(short thriftId, String fieldName) {
2279
        _thriftId = thriftId;
2280
        _fieldName = fieldName;
2281
      }
2282
 
2283
      public short getThriftFieldId() {
2284
        return _thriftId;
2285
      }
2286
 
2287
      public String getFieldName() {
2288
        return _fieldName;
2289
      }
2290
    }
3430 rajveer 2291
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 2292
    static {
3430 rajveer 2293
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2294
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2295
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnassignedTickets_args.class, metaDataMap);
3087 mandeep.dh 2296
    }
2297
 
3137 mandeep.dh 2298
    public getUnassignedTickets_args() {
3087 mandeep.dh 2299
    }
2300
 
2301
    /**
2302
     * Performs a deep copy on <i>other</i>.
2303
     */
3137 mandeep.dh 2304
    public getUnassignedTickets_args(getUnassignedTickets_args other) {
3087 mandeep.dh 2305
    }
2306
 
3137 mandeep.dh 2307
    public getUnassignedTickets_args deepCopy() {
2308
      return new getUnassignedTickets_args(this);
3087 mandeep.dh 2309
    }
2310
 
3430 rajveer 2311
    @Override
2312
    public void clear() {
3087 mandeep.dh 2313
    }
2314
 
2315
    public void setFieldValue(_Fields field, Object value) {
2316
      switch (field) {
2317
      }
2318
    }
2319
 
2320
    public Object getFieldValue(_Fields field) {
2321
      switch (field) {
2322
      }
2323
      throw new IllegalStateException();
2324
    }
2325
 
3430 rajveer 2326
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2327
    public boolean isSet(_Fields field) {
2328
      if (field == null) {
2329
        throw new IllegalArgumentException();
2330
      }
3087 mandeep.dh 2331
 
2332
      switch (field) {
2333
      }
2334
      throw new IllegalStateException();
2335
    }
2336
 
2337
    @Override
2338
    public boolean equals(Object that) {
2339
      if (that == null)
2340
        return false;
3137 mandeep.dh 2341
      if (that instanceof getUnassignedTickets_args)
2342
        return this.equals((getUnassignedTickets_args)that);
3087 mandeep.dh 2343
      return false;
2344
    }
2345
 
3137 mandeep.dh 2346
    public boolean equals(getUnassignedTickets_args that) {
3087 mandeep.dh 2347
      if (that == null)
2348
        return false;
2349
 
2350
      return true;
2351
    }
2352
 
2353
    @Override
2354
    public int hashCode() {
2355
      return 0;
2356
    }
2357
 
3137 mandeep.dh 2358
    public int compareTo(getUnassignedTickets_args other) {
3087 mandeep.dh 2359
      if (!getClass().equals(other.getClass())) {
2360
        return getClass().getName().compareTo(other.getClass().getName());
2361
      }
2362
 
2363
      int lastComparison = 0;
3137 mandeep.dh 2364
      getUnassignedTickets_args typedOther = (getUnassignedTickets_args)other;
3087 mandeep.dh 2365
 
2366
      return 0;
2367
    }
2368
 
3430 rajveer 2369
    public _Fields fieldForId(int fieldId) {
2370
      return _Fields.findByThriftId(fieldId);
2371
    }
2372
 
2373
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2374
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 2375
      iprot.readStructBegin();
2376
      while (true)
2377
      {
2378
        field = iprot.readFieldBegin();
3430 rajveer 2379
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 2380
          break;
2381
        }
3430 rajveer 2382
        switch (field.id) {
2383
          default:
2384
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 2385
        }
3430 rajveer 2386
        iprot.readFieldEnd();
3087 mandeep.dh 2387
      }
2388
      iprot.readStructEnd();
2389
      validate();
2390
    }
2391
 
3430 rajveer 2392
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 2393
      validate();
2394
 
2395
      oprot.writeStructBegin(STRUCT_DESC);
2396
      oprot.writeFieldStop();
2397
      oprot.writeStructEnd();
2398
    }
2399
 
2400
    @Override
2401
    public String toString() {
3137 mandeep.dh 2402
      StringBuilder sb = new StringBuilder("getUnassignedTickets_args(");
3087 mandeep.dh 2403
      boolean first = true;
2404
 
2405
      sb.append(")");
2406
      return sb.toString();
2407
    }
2408
 
3430 rajveer 2409
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 2410
      // check for required fields
2411
    }
2412
 
3430 rajveer 2413
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2414
      try {
2415
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2416
      } catch (org.apache.thrift.TException te) {
2417
        throw new java.io.IOException(te);
2418
      }
2419
    }
2420
 
2421
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2422
      try {
2423
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2424
      } catch (org.apache.thrift.TException te) {
2425
        throw new java.io.IOException(te);
2426
      }
2427
    }
2428
 
3087 mandeep.dh 2429
  }
2430
 
3430 rajveer 2431
  public static class getUnassignedTickets_result implements org.apache.thrift.TBase<getUnassignedTickets_result, getUnassignedTickets_result._Fields>, java.io.Serializable, Cloneable   {
2432
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnassignedTickets_result");
3087 mandeep.dh 2433
 
3430 rajveer 2434
    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);
3087 mandeep.dh 2435
 
3430 rajveer 2436
    private List<Ticket> success; // required
3087 mandeep.dh 2437
 
2438
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2439
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 2440
      SUCCESS((short)0, "success");
2441
 
2442
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2443
 
2444
      static {
2445
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2446
          byName.put(field.getFieldName(), field);
2447
        }
2448
      }
2449
 
2450
      /**
2451
       * Find the _Fields constant that matches fieldId, or null if its not found.
2452
       */
2453
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2454
        switch(fieldId) {
2455
          case 0: // SUCCESS
2456
            return SUCCESS;
2457
          default:
2458
            return null;
2459
        }
3087 mandeep.dh 2460
      }
2461
 
2462
      /**
2463
       * Find the _Fields constant that matches fieldId, throwing an exception
2464
       * if it is not found.
2465
       */
2466
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2467
        _Fields fields = findByThriftId(fieldId);
2468
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2469
        return fields;
2470
      }
2471
 
2472
      /**
2473
       * Find the _Fields constant that matches name, or null if its not found.
2474
       */
2475
      public static _Fields findByName(String name) {
2476
        return byName.get(name);
2477
      }
2478
 
2479
      private final short _thriftId;
2480
      private final String _fieldName;
2481
 
2482
      _Fields(short thriftId, String fieldName) {
2483
        _thriftId = thriftId;
2484
        _fieldName = fieldName;
2485
      }
2486
 
2487
      public short getThriftFieldId() {
2488
        return _thriftId;
2489
      }
2490
 
2491
      public String getFieldName() {
2492
        return _fieldName;
2493
      }
2494
    }
2495
 
2496
    // isset id assignments
2497
 
3430 rajveer 2498
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 2499
    static {
3430 rajveer 2500
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2501
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2502
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2503
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class))));
2504
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2505
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnassignedTickets_result.class, metaDataMap);
3087 mandeep.dh 2506
    }
2507
 
3137 mandeep.dh 2508
    public getUnassignedTickets_result() {
3087 mandeep.dh 2509
    }
2510
 
3137 mandeep.dh 2511
    public getUnassignedTickets_result(
3087 mandeep.dh 2512
      List<Ticket> success)
2513
    {
2514
      this();
2515
      this.success = success;
2516
    }
2517
 
2518
    /**
2519
     * Performs a deep copy on <i>other</i>.
2520
     */
3137 mandeep.dh 2521
    public getUnassignedTickets_result(getUnassignedTickets_result other) {
3087 mandeep.dh 2522
      if (other.isSetSuccess()) {
2523
        List<Ticket> __this__success = new ArrayList<Ticket>();
2524
        for (Ticket other_element : other.success) {
2525
          __this__success.add(new Ticket(other_element));
2526
        }
2527
        this.success = __this__success;
2528
      }
2529
    }
2530
 
3137 mandeep.dh 2531
    public getUnassignedTickets_result deepCopy() {
2532
      return new getUnassignedTickets_result(this);
3087 mandeep.dh 2533
    }
2534
 
3430 rajveer 2535
    @Override
2536
    public void clear() {
2537
      this.success = null;
3087 mandeep.dh 2538
    }
2539
 
2540
    public int getSuccessSize() {
2541
      return (this.success == null) ? 0 : this.success.size();
2542
    }
2543
 
2544
    public java.util.Iterator<Ticket> getSuccessIterator() {
2545
      return (this.success == null) ? null : this.success.iterator();
2546
    }
2547
 
2548
    public void addToSuccess(Ticket elem) {
2549
      if (this.success == null) {
2550
        this.success = new ArrayList<Ticket>();
2551
      }
2552
      this.success.add(elem);
2553
    }
2554
 
2555
    public List<Ticket> getSuccess() {
2556
      return this.success;
2557
    }
2558
 
3430 rajveer 2559
    public void setSuccess(List<Ticket> success) {
3087 mandeep.dh 2560
      this.success = success;
2561
    }
2562
 
2563
    public void unsetSuccess() {
2564
      this.success = null;
2565
    }
2566
 
3430 rajveer 2567
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 2568
    public boolean isSetSuccess() {
2569
      return this.success != null;
2570
    }
2571
 
2572
    public void setSuccessIsSet(boolean value) {
2573
      if (!value) {
2574
        this.success = null;
2575
      }
2576
    }
2577
 
2578
    public void setFieldValue(_Fields field, Object value) {
2579
      switch (field) {
2580
      case SUCCESS:
2581
        if (value == null) {
2582
          unsetSuccess();
2583
        } else {
2584
          setSuccess((List<Ticket>)value);
2585
        }
2586
        break;
2587
 
2588
      }
2589
    }
2590
 
2591
    public Object getFieldValue(_Fields field) {
2592
      switch (field) {
2593
      case SUCCESS:
2594
        return getSuccess();
2595
 
2596
      }
2597
      throw new IllegalStateException();
2598
    }
2599
 
3430 rajveer 2600
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2601
    public boolean isSet(_Fields field) {
2602
      if (field == null) {
2603
        throw new IllegalArgumentException();
2604
      }
3087 mandeep.dh 2605
 
2606
      switch (field) {
2607
      case SUCCESS:
2608
        return isSetSuccess();
2609
      }
2610
      throw new IllegalStateException();
2611
    }
2612
 
2613
    @Override
2614
    public boolean equals(Object that) {
2615
      if (that == null)
2616
        return false;
3137 mandeep.dh 2617
      if (that instanceof getUnassignedTickets_result)
2618
        return this.equals((getUnassignedTickets_result)that);
3087 mandeep.dh 2619
      return false;
2620
    }
2621
 
3137 mandeep.dh 2622
    public boolean equals(getUnassignedTickets_result that) {
3087 mandeep.dh 2623
      if (that == null)
2624
        return false;
2625
 
2626
      boolean this_present_success = true && this.isSetSuccess();
2627
      boolean that_present_success = true && that.isSetSuccess();
2628
      if (this_present_success || that_present_success) {
2629
        if (!(this_present_success && that_present_success))
2630
          return false;
2631
        if (!this.success.equals(that.success))
2632
          return false;
2633
      }
2634
 
2635
      return true;
2636
    }
2637
 
2638
    @Override
2639
    public int hashCode() {
2640
      return 0;
2641
    }
2642
 
3137 mandeep.dh 2643
    public int compareTo(getUnassignedTickets_result other) {
3087 mandeep.dh 2644
      if (!getClass().equals(other.getClass())) {
2645
        return getClass().getName().compareTo(other.getClass().getName());
2646
      }
2647
 
2648
      int lastComparison = 0;
3137 mandeep.dh 2649
      getUnassignedTickets_result typedOther = (getUnassignedTickets_result)other;
3087 mandeep.dh 2650
 
3430 rajveer 2651
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 2652
      if (lastComparison != 0) {
2653
        return lastComparison;
2654
      }
3430 rajveer 2655
      if (isSetSuccess()) {
2656
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2657
        if (lastComparison != 0) {
2658
          return lastComparison;
2659
        }
3087 mandeep.dh 2660
      }
2661
      return 0;
2662
    }
2663
 
3430 rajveer 2664
    public _Fields fieldForId(int fieldId) {
2665
      return _Fields.findByThriftId(fieldId);
2666
    }
2667
 
2668
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2669
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 2670
      iprot.readStructBegin();
2671
      while (true)
2672
      {
2673
        field = iprot.readFieldBegin();
3430 rajveer 2674
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 2675
          break;
2676
        }
3430 rajveer 2677
        switch (field.id) {
2678
          case 0: // SUCCESS
2679
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2680
              {
3546 mandeep.dh 2681
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
2682
                this.success = new ArrayList<Ticket>(_list16.size);
2683
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
3087 mandeep.dh 2684
                {
3546 mandeep.dh 2685
                  Ticket _elem18; // required
2686
                  _elem18 = new Ticket();
2687
                  _elem18.read(iprot);
2688
                  this.success.add(_elem18);
3137 mandeep.dh 2689
                }
3430 rajveer 2690
                iprot.readListEnd();
3137 mandeep.dh 2691
              }
3430 rajveer 2692
            } else { 
2693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2694
            }
2695
            break;
2696
          default:
2697
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3137 mandeep.dh 2698
        }
3430 rajveer 2699
        iprot.readFieldEnd();
3137 mandeep.dh 2700
      }
2701
      iprot.readStructEnd();
2702
      validate();
2703
    }
2704
 
3430 rajveer 2705
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3137 mandeep.dh 2706
      oprot.writeStructBegin(STRUCT_DESC);
2707
 
2708
      if (this.isSetSuccess()) {
2709
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2710
        {
3430 rajveer 2711
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 2712
          for (Ticket _iter19 : this.success)
3137 mandeep.dh 2713
          {
3546 mandeep.dh 2714
            _iter19.write(oprot);
3137 mandeep.dh 2715
          }
2716
          oprot.writeListEnd();
2717
        }
2718
        oprot.writeFieldEnd();
2719
      }
2720
      oprot.writeFieldStop();
2721
      oprot.writeStructEnd();
2722
    }
2723
 
2724
    @Override
2725
    public String toString() {
3390 mandeep.dh 2726
      StringBuilder sb = new StringBuilder("getUnassignedTickets_result(");
3137 mandeep.dh 2727
      boolean first = true;
2728
 
2729
      sb.append("success:");
2730
      if (this.success == null) {
2731
        sb.append("null");
2732
      } else {
2733
        sb.append(this.success);
2734
      }
2735
      first = false;
2736
      sb.append(")");
2737
      return sb.toString();
2738
    }
2739
 
3430 rajveer 2740
    public void validate() throws org.apache.thrift.TException {
3137 mandeep.dh 2741
      // check for required fields
2742
    }
2743
 
3430 rajveer 2744
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2745
      try {
2746
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2747
      } catch (org.apache.thrift.TException te) {
2748
        throw new java.io.IOException(te);
2749
      }
2750
    }
2751
 
2752
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2753
      try {
2754
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2755
      } catch (org.apache.thrift.TException te) {
2756
        throw new java.io.IOException(te);
2757
      }
2758
    }
2759
 
3137 mandeep.dh 2760
  }
2761
 
3430 rajveer 2762
  public static class updateTicket_args implements org.apache.thrift.TBase<updateTicket_args, updateTicket_args._Fields>, java.io.Serializable, Cloneable   {
2763
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTicket_args");
3028 mandeep.dh 2764
 
3430 rajveer 2765
    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);
2766
    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);
3028 mandeep.dh 2767
 
3430 rajveer 2768
    private Ticket ticket; // required
2769
    private Activity activity; // required
3028 mandeep.dh 2770
 
2771
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2772
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 2773
      TICKET((short)1, "ticket"),
2774
      ACTIVITY((short)2, "activity");
3028 mandeep.dh 2775
 
2776
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2777
 
2778
      static {
2779
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2780
          byName.put(field.getFieldName(), field);
2781
        }
2782
      }
2783
 
2784
      /**
2785
       * Find the _Fields constant that matches fieldId, or null if its not found.
2786
       */
2787
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2788
        switch(fieldId) {
2789
          case 1: // TICKET
2790
            return TICKET;
2791
          case 2: // ACTIVITY
2792
            return ACTIVITY;
2793
          default:
2794
            return null;
2795
        }
3028 mandeep.dh 2796
      }
2797
 
2798
      /**
2799
       * Find the _Fields constant that matches fieldId, throwing an exception
2800
       * if it is not found.
2801
       */
2802
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2803
        _Fields fields = findByThriftId(fieldId);
2804
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2805
        return fields;
2806
      }
2807
 
2808
      /**
2809
       * Find the _Fields constant that matches name, or null if its not found.
2810
       */
2811
      public static _Fields findByName(String name) {
2812
        return byName.get(name);
2813
      }
2814
 
2815
      private final short _thriftId;
2816
      private final String _fieldName;
2817
 
2818
      _Fields(short thriftId, String fieldName) {
2819
        _thriftId = thriftId;
2820
        _fieldName = fieldName;
2821
      }
2822
 
2823
      public short getThriftFieldId() {
2824
        return _thriftId;
2825
      }
2826
 
2827
      public String getFieldName() {
2828
        return _fieldName;
2829
      }
2830
    }
2831
 
2832
    // isset id assignments
2833
 
3430 rajveer 2834
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 2835
    static {
3430 rajveer 2836
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2837
      tmpMap.put(_Fields.TICKET, new org.apache.thrift.meta_data.FieldMetaData("ticket", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2838
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class)));
2839
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2840
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
2841
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2842
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTicket_args.class, metaDataMap);
3028 mandeep.dh 2843
    }
2844
 
2845
    public updateTicket_args() {
2846
    }
2847
 
2848
    public updateTicket_args(
3206 mandeep.dh 2849
      Ticket ticket,
2850
      Activity activity)
3028 mandeep.dh 2851
    {
2852
      this();
2853
      this.ticket = ticket;
3206 mandeep.dh 2854
      this.activity = activity;
3028 mandeep.dh 2855
    }
2856
 
2857
    /**
2858
     * Performs a deep copy on <i>other</i>.
2859
     */
2860
    public updateTicket_args(updateTicket_args other) {
2861
      if (other.isSetTicket()) {
2862
        this.ticket = new Ticket(other.ticket);
2863
      }
3206 mandeep.dh 2864
      if (other.isSetActivity()) {
2865
        this.activity = new Activity(other.activity);
2866
      }
3028 mandeep.dh 2867
    }
2868
 
2869
    public updateTicket_args deepCopy() {
2870
      return new updateTicket_args(this);
2871
    }
2872
 
3430 rajveer 2873
    @Override
2874
    public void clear() {
2875
      this.ticket = null;
2876
      this.activity = null;
3028 mandeep.dh 2877
    }
2878
 
2879
    public Ticket getTicket() {
2880
      return this.ticket;
2881
    }
2882
 
3430 rajveer 2883
    public void setTicket(Ticket ticket) {
3028 mandeep.dh 2884
      this.ticket = ticket;
2885
    }
2886
 
2887
    public void unsetTicket() {
2888
      this.ticket = null;
2889
    }
2890
 
3430 rajveer 2891
    /** Returns true if field ticket is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 2892
    public boolean isSetTicket() {
2893
      return this.ticket != null;
2894
    }
2895
 
2896
    public void setTicketIsSet(boolean value) {
2897
      if (!value) {
2898
        this.ticket = null;
2899
      }
2900
    }
2901
 
3206 mandeep.dh 2902
    public Activity getActivity() {
2903
      return this.activity;
2904
    }
2905
 
3430 rajveer 2906
    public void setActivity(Activity activity) {
3206 mandeep.dh 2907
      this.activity = activity;
2908
    }
2909
 
2910
    public void unsetActivity() {
2911
      this.activity = null;
2912
    }
2913
 
3430 rajveer 2914
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 2915
    public boolean isSetActivity() {
2916
      return this.activity != null;
2917
    }
2918
 
2919
    public void setActivityIsSet(boolean value) {
2920
      if (!value) {
2921
        this.activity = null;
2922
      }
2923
    }
2924
 
3028 mandeep.dh 2925
    public void setFieldValue(_Fields field, Object value) {
2926
      switch (field) {
2927
      case TICKET:
2928
        if (value == null) {
2929
          unsetTicket();
2930
        } else {
2931
          setTicket((Ticket)value);
2932
        }
2933
        break;
2934
 
3206 mandeep.dh 2935
      case ACTIVITY:
2936
        if (value == null) {
2937
          unsetActivity();
2938
        } else {
2939
          setActivity((Activity)value);
2940
        }
2941
        break;
2942
 
3028 mandeep.dh 2943
      }
2944
    }
2945
 
2946
    public Object getFieldValue(_Fields field) {
2947
      switch (field) {
2948
      case TICKET:
2949
        return getTicket();
2950
 
3206 mandeep.dh 2951
      case ACTIVITY:
2952
        return getActivity();
2953
 
3028 mandeep.dh 2954
      }
2955
      throw new IllegalStateException();
2956
    }
2957
 
3430 rajveer 2958
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2959
    public boolean isSet(_Fields field) {
2960
      if (field == null) {
2961
        throw new IllegalArgumentException();
2962
      }
3028 mandeep.dh 2963
 
2964
      switch (field) {
2965
      case TICKET:
2966
        return isSetTicket();
3206 mandeep.dh 2967
      case ACTIVITY:
2968
        return isSetActivity();
3028 mandeep.dh 2969
      }
2970
      throw new IllegalStateException();
2971
    }
2972
 
2973
    @Override
2974
    public boolean equals(Object that) {
2975
      if (that == null)
2976
        return false;
2977
      if (that instanceof updateTicket_args)
2978
        return this.equals((updateTicket_args)that);
2979
      return false;
2980
    }
2981
 
2982
    public boolean equals(updateTicket_args that) {
2983
      if (that == null)
2984
        return false;
2985
 
2986
      boolean this_present_ticket = true && this.isSetTicket();
2987
      boolean that_present_ticket = true && that.isSetTicket();
2988
      if (this_present_ticket || that_present_ticket) {
2989
        if (!(this_present_ticket && that_present_ticket))
2990
          return false;
2991
        if (!this.ticket.equals(that.ticket))
2992
          return false;
2993
      }
2994
 
3206 mandeep.dh 2995
      boolean this_present_activity = true && this.isSetActivity();
2996
      boolean that_present_activity = true && that.isSetActivity();
2997
      if (this_present_activity || that_present_activity) {
2998
        if (!(this_present_activity && that_present_activity))
2999
          return false;
3000
        if (!this.activity.equals(that.activity))
3001
          return false;
3002
      }
3003
 
3028 mandeep.dh 3004
      return true;
3005
    }
3006
 
3007
    @Override
3008
    public int hashCode() {
3009
      return 0;
3010
    }
3011
 
3012
    public int compareTo(updateTicket_args other) {
3013
      if (!getClass().equals(other.getClass())) {
3014
        return getClass().getName().compareTo(other.getClass().getName());
3015
      }
3016
 
3017
      int lastComparison = 0;
3018
      updateTicket_args typedOther = (updateTicket_args)other;
3019
 
3430 rajveer 3020
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(typedOther.isSetTicket());
3028 mandeep.dh 3021
      if (lastComparison != 0) {
3022
        return lastComparison;
3023
      }
3430 rajveer 3024
      if (isSetTicket()) {
3025
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticket, typedOther.ticket);
3026
        if (lastComparison != 0) {
3027
          return lastComparison;
3028
        }
3028 mandeep.dh 3029
      }
3430 rajveer 3030
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3206 mandeep.dh 3031
      if (lastComparison != 0) {
3032
        return lastComparison;
3033
      }
3430 rajveer 3034
      if (isSetActivity()) {
3035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
3036
        if (lastComparison != 0) {
3037
          return lastComparison;
3038
        }
3206 mandeep.dh 3039
      }
3028 mandeep.dh 3040
      return 0;
3041
    }
3042
 
3430 rajveer 3043
    public _Fields fieldForId(int fieldId) {
3044
      return _Fields.findByThriftId(fieldId);
3045
    }
3046
 
3047
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3048
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3049
      iprot.readStructBegin();
3050
      while (true)
3051
      {
3052
        field = iprot.readFieldBegin();
3430 rajveer 3053
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3054
          break;
3055
        }
3430 rajveer 3056
        switch (field.id) {
3057
          case 1: // TICKET
3058
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3059
              this.ticket = new Ticket();
3060
              this.ticket.read(iprot);
3061
            } else { 
3062
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3063
            }
3064
            break;
3065
          case 2: // ACTIVITY
3066
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3067
              this.activity = new Activity();
3068
              this.activity.read(iprot);
3069
            } else { 
3070
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3071
            }
3072
            break;
3073
          default:
3074
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3075
        }
3430 rajveer 3076
        iprot.readFieldEnd();
3028 mandeep.dh 3077
      }
3078
      iprot.readStructEnd();
3079
      validate();
3080
    }
3081
 
3430 rajveer 3082
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3083
      validate();
3084
 
3085
      oprot.writeStructBegin(STRUCT_DESC);
3086
      if (this.ticket != null) {
3087
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
3088
        this.ticket.write(oprot);
3089
        oprot.writeFieldEnd();
3090
      }
3206 mandeep.dh 3091
      if (this.activity != null) {
3092
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
3093
        this.activity.write(oprot);
3094
        oprot.writeFieldEnd();
3095
      }
3028 mandeep.dh 3096
      oprot.writeFieldStop();
3097
      oprot.writeStructEnd();
3098
    }
3099
 
3100
    @Override
3101
    public String toString() {
3102
      StringBuilder sb = new StringBuilder("updateTicket_args(");
3103
      boolean first = true;
3104
 
3105
      sb.append("ticket:");
3106
      if (this.ticket == null) {
3107
        sb.append("null");
3108
      } else {
3109
        sb.append(this.ticket);
3110
      }
3111
      first = false;
3206 mandeep.dh 3112
      if (!first) sb.append(", ");
3113
      sb.append("activity:");
3114
      if (this.activity == null) {
3115
        sb.append("null");
3116
      } else {
3117
        sb.append(this.activity);
3118
      }
3119
      first = false;
3028 mandeep.dh 3120
      sb.append(")");
3121
      return sb.toString();
3122
    }
3123
 
3430 rajveer 3124
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3125
      // check for required fields
3126
    }
3127
 
3430 rajveer 3128
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3129
      try {
3130
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3131
      } catch (org.apache.thrift.TException te) {
3132
        throw new java.io.IOException(te);
3133
      }
3134
    }
3135
 
3136
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3137
      try {
3138
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3139
      } catch (org.apache.thrift.TException te) {
3140
        throw new java.io.IOException(te);
3141
      }
3142
    }
3143
 
3028 mandeep.dh 3144
  }
3145
 
3430 rajveer 3146
  public static class updateTicket_result implements org.apache.thrift.TBase<updateTicket_result, updateTicket_result._Fields>, java.io.Serializable, Cloneable   {
3147
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTicket_result");
3028 mandeep.dh 3148
 
3149
 
3150
 
3151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3152
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 3153
;
3154
 
3155
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3156
 
3157
      static {
3158
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3159
          byName.put(field.getFieldName(), field);
3160
        }
3161
      }
3162
 
3163
      /**
3164
       * Find the _Fields constant that matches fieldId, or null if its not found.
3165
       */
3166
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3167
        switch(fieldId) {
3168
          default:
3169
            return null;
3170
        }
3028 mandeep.dh 3171
      }
3172
 
3173
      /**
3174
       * Find the _Fields constant that matches fieldId, throwing an exception
3175
       * if it is not found.
3176
       */
3177
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3178
        _Fields fields = findByThriftId(fieldId);
3179
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3180
        return fields;
3181
      }
3182
 
3183
      /**
3184
       * Find the _Fields constant that matches name, or null if its not found.
3185
       */
3186
      public static _Fields findByName(String name) {
3187
        return byName.get(name);
3188
      }
3189
 
3190
      private final short _thriftId;
3191
      private final String _fieldName;
3192
 
3193
      _Fields(short thriftId, String fieldName) {
3194
        _thriftId = thriftId;
3195
        _fieldName = fieldName;
3196
      }
3197
 
3198
      public short getThriftFieldId() {
3199
        return _thriftId;
3200
      }
3201
 
3202
      public String getFieldName() {
3203
        return _fieldName;
3204
      }
3205
    }
3430 rajveer 3206
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 3207
    static {
3430 rajveer 3208
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3209
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3210
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTicket_result.class, metaDataMap);
3028 mandeep.dh 3211
    }
3212
 
3213
    public updateTicket_result() {
3214
    }
3215
 
3216
    /**
3217
     * Performs a deep copy on <i>other</i>.
3218
     */
3219
    public updateTicket_result(updateTicket_result other) {
3220
    }
3221
 
3222
    public updateTicket_result deepCopy() {
3223
      return new updateTicket_result(this);
3224
    }
3225
 
3430 rajveer 3226
    @Override
3227
    public void clear() {
3028 mandeep.dh 3228
    }
3229
 
3230
    public void setFieldValue(_Fields field, Object value) {
3231
      switch (field) {
3232
      }
3233
    }
3234
 
3235
    public Object getFieldValue(_Fields field) {
3236
      switch (field) {
3237
      }
3238
      throw new IllegalStateException();
3239
    }
3240
 
3430 rajveer 3241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3242
    public boolean isSet(_Fields field) {
3243
      if (field == null) {
3244
        throw new IllegalArgumentException();
3245
      }
3028 mandeep.dh 3246
 
3247
      switch (field) {
3248
      }
3249
      throw new IllegalStateException();
3250
    }
3251
 
3252
    @Override
3253
    public boolean equals(Object that) {
3254
      if (that == null)
3255
        return false;
3256
      if (that instanceof updateTicket_result)
3257
        return this.equals((updateTicket_result)that);
3258
      return false;
3259
    }
3260
 
3261
    public boolean equals(updateTicket_result that) {
3262
      if (that == null)
3263
        return false;
3264
 
3265
      return true;
3266
    }
3267
 
3268
    @Override
3269
    public int hashCode() {
3270
      return 0;
3271
    }
3272
 
3273
    public int compareTo(updateTicket_result other) {
3274
      if (!getClass().equals(other.getClass())) {
3275
        return getClass().getName().compareTo(other.getClass().getName());
3276
      }
3277
 
3278
      int lastComparison = 0;
3279
      updateTicket_result typedOther = (updateTicket_result)other;
3280
 
3281
      return 0;
3282
    }
3283
 
3430 rajveer 3284
    public _Fields fieldForId(int fieldId) {
3285
      return _Fields.findByThriftId(fieldId);
3286
    }
3287
 
3288
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3289
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3290
      iprot.readStructBegin();
3291
      while (true)
3292
      {
3293
        field = iprot.readFieldBegin();
3430 rajveer 3294
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3295
          break;
3296
        }
3430 rajveer 3297
        switch (field.id) {
3298
          default:
3299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3300
        }
3430 rajveer 3301
        iprot.readFieldEnd();
3028 mandeep.dh 3302
      }
3303
      iprot.readStructEnd();
3304
      validate();
3305
    }
3306
 
3430 rajveer 3307
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3308
      oprot.writeStructBegin(STRUCT_DESC);
3309
 
3310
      oprot.writeFieldStop();
3311
      oprot.writeStructEnd();
3312
    }
3313
 
3314
    @Override
3315
    public String toString() {
3316
      StringBuilder sb = new StringBuilder("updateTicket_result(");
3317
      boolean first = true;
3318
 
3319
      sb.append(")");
3320
      return sb.toString();
3321
    }
3322
 
3430 rajveer 3323
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3324
      // check for required fields
3325
    }
3326
 
3430 rajveer 3327
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3328
      try {
3329
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3330
      } catch (org.apache.thrift.TException te) {
3331
        throw new java.io.IOException(te);
3332
      }
3333
    }
3334
 
3335
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3336
      try {
3337
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3338
      } catch (org.apache.thrift.TException te) {
3339
        throw new java.io.IOException(te);
3340
      }
3341
    }
3342
 
3028 mandeep.dh 3343
  }
3344
 
3430 rajveer 3345
  public static class insertTicket_args implements org.apache.thrift.TBase<insertTicket_args, insertTicket_args._Fields>, java.io.Serializable, Cloneable   {
3346
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertTicket_args");
3028 mandeep.dh 3347
 
3430 rajveer 3348
    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);
3349
    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);
3028 mandeep.dh 3350
 
3430 rajveer 3351
    private Ticket ticket; // required
3352
    private Activity activity; // required
3028 mandeep.dh 3353
 
3354
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3355
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3356
      TICKET((short)1, "ticket"),
3357
      ACTIVITY((short)2, "activity");
3028 mandeep.dh 3358
 
3359
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3360
 
3361
      static {
3362
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3363
          byName.put(field.getFieldName(), field);
3364
        }
3365
      }
3366
 
3367
      /**
3368
       * Find the _Fields constant that matches fieldId, or null if its not found.
3369
       */
3370
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3371
        switch(fieldId) {
3372
          case 1: // TICKET
3373
            return TICKET;
3374
          case 2: // ACTIVITY
3375
            return ACTIVITY;
3376
          default:
3377
            return null;
3378
        }
3028 mandeep.dh 3379
      }
3380
 
3381
      /**
3382
       * Find the _Fields constant that matches fieldId, throwing an exception
3383
       * if it is not found.
3384
       */
3385
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3386
        _Fields fields = findByThriftId(fieldId);
3387
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3388
        return fields;
3389
      }
3390
 
3391
      /**
3392
       * Find the _Fields constant that matches name, or null if its not found.
3393
       */
3394
      public static _Fields findByName(String name) {
3395
        return byName.get(name);
3396
      }
3397
 
3398
      private final short _thriftId;
3399
      private final String _fieldName;
3400
 
3401
      _Fields(short thriftId, String fieldName) {
3402
        _thriftId = thriftId;
3403
        _fieldName = fieldName;
3404
      }
3405
 
3406
      public short getThriftFieldId() {
3407
        return _thriftId;
3408
      }
3409
 
3410
      public String getFieldName() {
3411
        return _fieldName;
3412
      }
3413
    }
3414
 
3415
    // isset id assignments
3416
 
3430 rajveer 3417
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 3418
    static {
3430 rajveer 3419
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3420
      tmpMap.put(_Fields.TICKET, new org.apache.thrift.meta_data.FieldMetaData("ticket", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3421
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class)));
3422
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3423
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
3424
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3425
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertTicket_args.class, metaDataMap);
3028 mandeep.dh 3426
    }
3427
 
3428
    public insertTicket_args() {
3429
    }
3430
 
3431
    public insertTicket_args(
3206 mandeep.dh 3432
      Ticket ticket,
3433
      Activity activity)
3028 mandeep.dh 3434
    {
3435
      this();
3436
      this.ticket = ticket;
3206 mandeep.dh 3437
      this.activity = activity;
3028 mandeep.dh 3438
    }
3439
 
3440
    /**
3441
     * Performs a deep copy on <i>other</i>.
3442
     */
3443
    public insertTicket_args(insertTicket_args other) {
3444
      if (other.isSetTicket()) {
3445
        this.ticket = new Ticket(other.ticket);
3446
      }
3206 mandeep.dh 3447
      if (other.isSetActivity()) {
3448
        this.activity = new Activity(other.activity);
3449
      }
3028 mandeep.dh 3450
    }
3451
 
3452
    public insertTicket_args deepCopy() {
3453
      return new insertTicket_args(this);
3454
    }
3455
 
3430 rajveer 3456
    @Override
3457
    public void clear() {
3458
      this.ticket = null;
3459
      this.activity = null;
3028 mandeep.dh 3460
    }
3461
 
3462
    public Ticket getTicket() {
3463
      return this.ticket;
3464
    }
3465
 
3430 rajveer 3466
    public void setTicket(Ticket ticket) {
3028 mandeep.dh 3467
      this.ticket = ticket;
3468
    }
3469
 
3470
    public void unsetTicket() {
3471
      this.ticket = null;
3472
    }
3473
 
3430 rajveer 3474
    /** Returns true if field ticket is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 3475
    public boolean isSetTicket() {
3476
      return this.ticket != null;
3477
    }
3478
 
3479
    public void setTicketIsSet(boolean value) {
3480
      if (!value) {
3481
        this.ticket = null;
3482
      }
3483
    }
3484
 
3206 mandeep.dh 3485
    public Activity getActivity() {
3486
      return this.activity;
3487
    }
3488
 
3430 rajveer 3489
    public void setActivity(Activity activity) {
3206 mandeep.dh 3490
      this.activity = activity;
3491
    }
3492
 
3493
    public void unsetActivity() {
3494
      this.activity = null;
3495
    }
3496
 
3430 rajveer 3497
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3498
    public boolean isSetActivity() {
3499
      return this.activity != null;
3500
    }
3501
 
3502
    public void setActivityIsSet(boolean value) {
3503
      if (!value) {
3504
        this.activity = null;
3505
      }
3506
    }
3507
 
3028 mandeep.dh 3508
    public void setFieldValue(_Fields field, Object value) {
3509
      switch (field) {
3510
      case TICKET:
3511
        if (value == null) {
3512
          unsetTicket();
3513
        } else {
3514
          setTicket((Ticket)value);
3515
        }
3516
        break;
3517
 
3206 mandeep.dh 3518
      case ACTIVITY:
3519
        if (value == null) {
3520
          unsetActivity();
3521
        } else {
3522
          setActivity((Activity)value);
3523
        }
3524
        break;
3525
 
3028 mandeep.dh 3526
      }
3527
    }
3528
 
3529
    public Object getFieldValue(_Fields field) {
3530
      switch (field) {
3531
      case TICKET:
3532
        return getTicket();
3533
 
3206 mandeep.dh 3534
      case ACTIVITY:
3535
        return getActivity();
3536
 
3028 mandeep.dh 3537
      }
3538
      throw new IllegalStateException();
3539
    }
3540
 
3430 rajveer 3541
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3542
    public boolean isSet(_Fields field) {
3543
      if (field == null) {
3544
        throw new IllegalArgumentException();
3545
      }
3028 mandeep.dh 3546
 
3547
      switch (field) {
3548
      case TICKET:
3549
        return isSetTicket();
3206 mandeep.dh 3550
      case ACTIVITY:
3551
        return isSetActivity();
3028 mandeep.dh 3552
      }
3553
      throw new IllegalStateException();
3554
    }
3555
 
3556
    @Override
3557
    public boolean equals(Object that) {
3558
      if (that == null)
3559
        return false;
3560
      if (that instanceof insertTicket_args)
3561
        return this.equals((insertTicket_args)that);
3562
      return false;
3563
    }
3564
 
3565
    public boolean equals(insertTicket_args that) {
3566
      if (that == null)
3567
        return false;
3568
 
3569
      boolean this_present_ticket = true && this.isSetTicket();
3570
      boolean that_present_ticket = true && that.isSetTicket();
3571
      if (this_present_ticket || that_present_ticket) {
3572
        if (!(this_present_ticket && that_present_ticket))
3573
          return false;
3574
        if (!this.ticket.equals(that.ticket))
3575
          return false;
3576
      }
3577
 
3206 mandeep.dh 3578
      boolean this_present_activity = true && this.isSetActivity();
3579
      boolean that_present_activity = true && that.isSetActivity();
3580
      if (this_present_activity || that_present_activity) {
3581
        if (!(this_present_activity && that_present_activity))
3582
          return false;
3583
        if (!this.activity.equals(that.activity))
3584
          return false;
3585
      }
3586
 
3028 mandeep.dh 3587
      return true;
3588
    }
3589
 
3590
    @Override
3591
    public int hashCode() {
3592
      return 0;
3593
    }
3594
 
3595
    public int compareTo(insertTicket_args other) {
3596
      if (!getClass().equals(other.getClass())) {
3597
        return getClass().getName().compareTo(other.getClass().getName());
3598
      }
3599
 
3600
      int lastComparison = 0;
3601
      insertTicket_args typedOther = (insertTicket_args)other;
3602
 
3430 rajveer 3603
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(typedOther.isSetTicket());
3028 mandeep.dh 3604
      if (lastComparison != 0) {
3605
        return lastComparison;
3606
      }
3430 rajveer 3607
      if (isSetTicket()) {
3608
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticket, typedOther.ticket);
3609
        if (lastComparison != 0) {
3610
          return lastComparison;
3611
        }
3028 mandeep.dh 3612
      }
3430 rajveer 3613
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3206 mandeep.dh 3614
      if (lastComparison != 0) {
3615
        return lastComparison;
3616
      }
3430 rajveer 3617
      if (isSetActivity()) {
3618
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
3619
        if (lastComparison != 0) {
3620
          return lastComparison;
3621
        }
3206 mandeep.dh 3622
      }
3028 mandeep.dh 3623
      return 0;
3624
    }
3625
 
3430 rajveer 3626
    public _Fields fieldForId(int fieldId) {
3627
      return _Fields.findByThriftId(fieldId);
3628
    }
3629
 
3630
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3631
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3632
      iprot.readStructBegin();
3633
      while (true)
3634
      {
3635
        field = iprot.readFieldBegin();
3430 rajveer 3636
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3637
          break;
3638
        }
3430 rajveer 3639
        switch (field.id) {
3640
          case 1: // TICKET
3641
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3642
              this.ticket = new Ticket();
3643
              this.ticket.read(iprot);
3644
            } else { 
3645
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3646
            }
3647
            break;
3648
          case 2: // ACTIVITY
3649
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3650
              this.activity = new Activity();
3651
              this.activity.read(iprot);
3652
            } else { 
3653
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3654
            }
3655
            break;
3656
          default:
3657
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3658
        }
3430 rajveer 3659
        iprot.readFieldEnd();
3028 mandeep.dh 3660
      }
3661
      iprot.readStructEnd();
3662
      validate();
3663
    }
3664
 
3430 rajveer 3665
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3666
      validate();
3667
 
3668
      oprot.writeStructBegin(STRUCT_DESC);
3669
      if (this.ticket != null) {
3670
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
3671
        this.ticket.write(oprot);
3672
        oprot.writeFieldEnd();
3673
      }
3206 mandeep.dh 3674
      if (this.activity != null) {
3675
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
3676
        this.activity.write(oprot);
3677
        oprot.writeFieldEnd();
3678
      }
3028 mandeep.dh 3679
      oprot.writeFieldStop();
3680
      oprot.writeStructEnd();
3681
    }
3682
 
3683
    @Override
3684
    public String toString() {
3685
      StringBuilder sb = new StringBuilder("insertTicket_args(");
3686
      boolean first = true;
3687
 
3688
      sb.append("ticket:");
3689
      if (this.ticket == null) {
3690
        sb.append("null");
3691
      } else {
3692
        sb.append(this.ticket);
3693
      }
3694
      first = false;
3206 mandeep.dh 3695
      if (!first) sb.append(", ");
3696
      sb.append("activity:");
3697
      if (this.activity == null) {
3698
        sb.append("null");
3699
      } else {
3700
        sb.append(this.activity);
3701
      }
3702
      first = false;
3028 mandeep.dh 3703
      sb.append(")");
3704
      return sb.toString();
3705
    }
3706
 
3430 rajveer 3707
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3708
      // check for required fields
3709
    }
3710
 
3430 rajveer 3711
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3712
      try {
3713
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3714
      } catch (org.apache.thrift.TException te) {
3715
        throw new java.io.IOException(te);
3716
      }
3717
    }
3718
 
3719
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3720
      try {
3721
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3722
      } catch (org.apache.thrift.TException te) {
3723
        throw new java.io.IOException(te);
3724
      }
3725
    }
3726
 
3028 mandeep.dh 3727
  }
3728
 
3430 rajveer 3729
  public static class insertTicket_result implements org.apache.thrift.TBase<insertTicket_result, insertTicket_result._Fields>, java.io.Serializable, Cloneable   {
3730
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertTicket_result");
3028 mandeep.dh 3731
 
3430 rajveer 3732
    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);
3028 mandeep.dh 3733
 
3430 rajveer 3734
    private long success; // required
3028 mandeep.dh 3735
 
3736
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3737
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 3738
      SUCCESS((short)0, "success");
3739
 
3740
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3741
 
3742
      static {
3743
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3744
          byName.put(field.getFieldName(), field);
3745
        }
3746
      }
3747
 
3748
      /**
3749
       * Find the _Fields constant that matches fieldId, or null if its not found.
3750
       */
3751
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3752
        switch(fieldId) {
3753
          case 0: // SUCCESS
3754
            return SUCCESS;
3755
          default:
3756
            return null;
3757
        }
3028 mandeep.dh 3758
      }
3759
 
3760
      /**
3761
       * Find the _Fields constant that matches fieldId, throwing an exception
3762
       * if it is not found.
3763
       */
3764
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3765
        _Fields fields = findByThriftId(fieldId);
3766
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3767
        return fields;
3768
      }
3769
 
3770
      /**
3771
       * Find the _Fields constant that matches name, or null if its not found.
3772
       */
3773
      public static _Fields findByName(String name) {
3774
        return byName.get(name);
3775
      }
3776
 
3777
      private final short _thriftId;
3778
      private final String _fieldName;
3779
 
3780
      _Fields(short thriftId, String fieldName) {
3781
        _thriftId = thriftId;
3782
        _fieldName = fieldName;
3783
      }
3784
 
3785
      public short getThriftFieldId() {
3786
        return _thriftId;
3787
      }
3788
 
3789
      public String getFieldName() {
3790
        return _fieldName;
3791
      }
3792
    }
3793
 
3794
    // isset id assignments
3795
    private static final int __SUCCESS_ISSET_ID = 0;
3796
    private BitSet __isset_bit_vector = new BitSet(1);
3797
 
3430 rajveer 3798
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 3799
    static {
3430 rajveer 3800
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3801
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3802
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3803
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3804
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertTicket_result.class, metaDataMap);
3028 mandeep.dh 3805
    }
3806
 
3807
    public insertTicket_result() {
3808
    }
3809
 
3810
    public insertTicket_result(
3811
      long success)
3812
    {
3813
      this();
3814
      this.success = success;
3815
      setSuccessIsSet(true);
3816
    }
3817
 
3818
    /**
3819
     * Performs a deep copy on <i>other</i>.
3820
     */
3821
    public insertTicket_result(insertTicket_result other) {
3822
      __isset_bit_vector.clear();
3823
      __isset_bit_vector.or(other.__isset_bit_vector);
3824
      this.success = other.success;
3825
    }
3826
 
3827
    public insertTicket_result deepCopy() {
3828
      return new insertTicket_result(this);
3829
    }
3830
 
3430 rajveer 3831
    @Override
3832
    public void clear() {
3833
      setSuccessIsSet(false);
3834
      this.success = 0;
3028 mandeep.dh 3835
    }
3836
 
3837
    public long getSuccess() {
3838
      return this.success;
3839
    }
3840
 
3430 rajveer 3841
    public void setSuccess(long success) {
3028 mandeep.dh 3842
      this.success = success;
3843
      setSuccessIsSet(true);
3844
    }
3845
 
3846
    public void unsetSuccess() {
3847
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3848
    }
3849
 
3430 rajveer 3850
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 3851
    public boolean isSetSuccess() {
3852
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3853
    }
3854
 
3855
    public void setSuccessIsSet(boolean value) {
3856
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3857
    }
3858
 
3859
    public void setFieldValue(_Fields field, Object value) {
3860
      switch (field) {
3861
      case SUCCESS:
3862
        if (value == null) {
3863
          unsetSuccess();
3864
        } else {
3865
          setSuccess((Long)value);
3866
        }
3867
        break;
3868
 
3869
      }
3870
    }
3871
 
3872
    public Object getFieldValue(_Fields field) {
3873
      switch (field) {
3874
      case SUCCESS:
3430 rajveer 3875
        return Long.valueOf(getSuccess());
3028 mandeep.dh 3876
 
3877
      }
3878
      throw new IllegalStateException();
3879
    }
3880
 
3430 rajveer 3881
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3882
    public boolean isSet(_Fields field) {
3883
      if (field == null) {
3884
        throw new IllegalArgumentException();
3885
      }
3028 mandeep.dh 3886
 
3887
      switch (field) {
3888
      case SUCCESS:
3889
        return isSetSuccess();
3890
      }
3891
      throw new IllegalStateException();
3892
    }
3893
 
3894
    @Override
3895
    public boolean equals(Object that) {
3896
      if (that == null)
3897
        return false;
3898
      if (that instanceof insertTicket_result)
3899
        return this.equals((insertTicket_result)that);
3900
      return false;
3901
    }
3902
 
3903
    public boolean equals(insertTicket_result that) {
3904
      if (that == null)
3905
        return false;
3906
 
3907
      boolean this_present_success = true;
3908
      boolean that_present_success = true;
3909
      if (this_present_success || that_present_success) {
3910
        if (!(this_present_success && that_present_success))
3911
          return false;
3912
        if (this.success != that.success)
3913
          return false;
3914
      }
3915
 
3916
      return true;
3917
    }
3918
 
3919
    @Override
3920
    public int hashCode() {
3921
      return 0;
3922
    }
3923
 
3924
    public int compareTo(insertTicket_result other) {
3925
      if (!getClass().equals(other.getClass())) {
3926
        return getClass().getName().compareTo(other.getClass().getName());
3927
      }
3928
 
3929
      int lastComparison = 0;
3930
      insertTicket_result typedOther = (insertTicket_result)other;
3931
 
3430 rajveer 3932
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 3933
      if (lastComparison != 0) {
3934
        return lastComparison;
3935
      }
3430 rajveer 3936
      if (isSetSuccess()) {
3937
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3938
        if (lastComparison != 0) {
3939
          return lastComparison;
3940
        }
3028 mandeep.dh 3941
      }
3942
      return 0;
3943
    }
3944
 
3430 rajveer 3945
    public _Fields fieldForId(int fieldId) {
3946
      return _Fields.findByThriftId(fieldId);
3947
    }
3948
 
3949
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3950
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3951
      iprot.readStructBegin();
3952
      while (true)
3953
      {
3954
        field = iprot.readFieldBegin();
3430 rajveer 3955
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3956
          break;
3957
        }
3430 rajveer 3958
        switch (field.id) {
3959
          case 0: // SUCCESS
3960
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3961
              this.success = iprot.readI64();
3962
              setSuccessIsSet(true);
3963
            } else { 
3964
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3965
            }
3966
            break;
3967
          default:
3968
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3969
        }
3430 rajveer 3970
        iprot.readFieldEnd();
3028 mandeep.dh 3971
      }
3972
      iprot.readStructEnd();
3973
      validate();
3974
    }
3975
 
3430 rajveer 3976
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3977
      oprot.writeStructBegin(STRUCT_DESC);
3978
 
3979
      if (this.isSetSuccess()) {
3980
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3981
        oprot.writeI64(this.success);
3982
        oprot.writeFieldEnd();
3983
      }
3984
      oprot.writeFieldStop();
3985
      oprot.writeStructEnd();
3986
    }
3987
 
3988
    @Override
3989
    public String toString() {
3990
      StringBuilder sb = new StringBuilder("insertTicket_result(");
3991
      boolean first = true;
3992
 
3993
      sb.append("success:");
3994
      sb.append(this.success);
3995
      first = false;
3996
      sb.append(")");
3997
      return sb.toString();
3998
    }
3999
 
3430 rajveer 4000
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 4001
      // check for required fields
4002
    }
4003
 
3430 rajveer 4004
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4005
      try {
4006
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4007
      } catch (org.apache.thrift.TException te) {
4008
        throw new java.io.IOException(te);
4009
      }
4010
    }
4011
 
4012
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4013
      try {
4014
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4015
      } catch (org.apache.thrift.TException te) {
4016
        throw new java.io.IOException(te);
4017
      }
4018
    }
4019
 
3028 mandeep.dh 4020
  }
4021
 
4793 amar.kumar 4022
  public static class unassignAgentTickets_args implements org.apache.thrift.TBase<unassignAgentTickets_args, unassignAgentTickets_args._Fields>, java.io.Serializable, Cloneable   {
4023
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unassignAgentTickets_args");
4024
 
4025
    private static final org.apache.thrift.protocol.TField ASSIGNEE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("assigneeId", org.apache.thrift.protocol.TType.I32, (short)1);
4026
 
4027
    private int assigneeId; // required
4028
 
4029
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4030
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4031
      ASSIGNEE_ID((short)1, "assigneeId");
4032
 
4033
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4034
 
4035
      static {
4036
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4037
          byName.put(field.getFieldName(), field);
4038
        }
4039
      }
4040
 
4041
      /**
4042
       * Find the _Fields constant that matches fieldId, or null if its not found.
4043
       */
4044
      public static _Fields findByThriftId(int fieldId) {
4045
        switch(fieldId) {
4046
          case 1: // ASSIGNEE_ID
4047
            return ASSIGNEE_ID;
4048
          default:
4049
            return null;
4050
        }
4051
      }
4052
 
4053
      /**
4054
       * Find the _Fields constant that matches fieldId, throwing an exception
4055
       * if it is not found.
4056
       */
4057
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4058
        _Fields fields = findByThriftId(fieldId);
4059
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4060
        return fields;
4061
      }
4062
 
4063
      /**
4064
       * Find the _Fields constant that matches name, or null if its not found.
4065
       */
4066
      public static _Fields findByName(String name) {
4067
        return byName.get(name);
4068
      }
4069
 
4070
      private final short _thriftId;
4071
      private final String _fieldName;
4072
 
4073
      _Fields(short thriftId, String fieldName) {
4074
        _thriftId = thriftId;
4075
        _fieldName = fieldName;
4076
      }
4077
 
4078
      public short getThriftFieldId() {
4079
        return _thriftId;
4080
      }
4081
 
4082
      public String getFieldName() {
4083
        return _fieldName;
4084
      }
4085
    }
4086
 
4087
    // isset id assignments
4088
    private static final int __ASSIGNEEID_ISSET_ID = 0;
4089
    private BitSet __isset_bit_vector = new BitSet(1);
4090
 
4091
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4092
    static {
4093
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4094
      tmpMap.put(_Fields.ASSIGNEE_ID, new org.apache.thrift.meta_data.FieldMetaData("assigneeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4095
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4096
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4097
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unassignAgentTickets_args.class, metaDataMap);
4098
    }
4099
 
4100
    public unassignAgentTickets_args() {
4101
    }
4102
 
4103
    public unassignAgentTickets_args(
4104
      int assigneeId)
4105
    {
4106
      this();
4107
      this.assigneeId = assigneeId;
4108
      setAssigneeIdIsSet(true);
4109
    }
4110
 
4111
    /**
4112
     * Performs a deep copy on <i>other</i>.
4113
     */
4114
    public unassignAgentTickets_args(unassignAgentTickets_args other) {
4115
      __isset_bit_vector.clear();
4116
      __isset_bit_vector.or(other.__isset_bit_vector);
4117
      this.assigneeId = other.assigneeId;
4118
    }
4119
 
4120
    public unassignAgentTickets_args deepCopy() {
4121
      return new unassignAgentTickets_args(this);
4122
    }
4123
 
4124
    @Override
4125
    public void clear() {
4126
      setAssigneeIdIsSet(false);
4127
      this.assigneeId = 0;
4128
    }
4129
 
4130
    public int getAssigneeId() {
4131
      return this.assigneeId;
4132
    }
4133
 
4134
    public void setAssigneeId(int assigneeId) {
4135
      this.assigneeId = assigneeId;
4136
      setAssigneeIdIsSet(true);
4137
    }
4138
 
4139
    public void unsetAssigneeId() {
4140
      __isset_bit_vector.clear(__ASSIGNEEID_ISSET_ID);
4141
    }
4142
 
4143
    /** Returns true if field assigneeId is set (has been assigned a value) and false otherwise */
4144
    public boolean isSetAssigneeId() {
4145
      return __isset_bit_vector.get(__ASSIGNEEID_ISSET_ID);
4146
    }
4147
 
4148
    public void setAssigneeIdIsSet(boolean value) {
4149
      __isset_bit_vector.set(__ASSIGNEEID_ISSET_ID, value);
4150
    }
4151
 
4152
    public void setFieldValue(_Fields field, Object value) {
4153
      switch (field) {
4154
      case ASSIGNEE_ID:
4155
        if (value == null) {
4156
          unsetAssigneeId();
4157
        } else {
4158
          setAssigneeId((Integer)value);
4159
        }
4160
        break;
4161
 
4162
      }
4163
    }
4164
 
4165
    public Object getFieldValue(_Fields field) {
4166
      switch (field) {
4167
      case ASSIGNEE_ID:
4168
        return Integer.valueOf(getAssigneeId());
4169
 
4170
      }
4171
      throw new IllegalStateException();
4172
    }
4173
 
4174
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4175
    public boolean isSet(_Fields field) {
4176
      if (field == null) {
4177
        throw new IllegalArgumentException();
4178
      }
4179
 
4180
      switch (field) {
4181
      case ASSIGNEE_ID:
4182
        return isSetAssigneeId();
4183
      }
4184
      throw new IllegalStateException();
4185
    }
4186
 
4187
    @Override
4188
    public boolean equals(Object that) {
4189
      if (that == null)
4190
        return false;
4191
      if (that instanceof unassignAgentTickets_args)
4192
        return this.equals((unassignAgentTickets_args)that);
4193
      return false;
4194
    }
4195
 
4196
    public boolean equals(unassignAgentTickets_args that) {
4197
      if (that == null)
4198
        return false;
4199
 
4200
      boolean this_present_assigneeId = true;
4201
      boolean that_present_assigneeId = true;
4202
      if (this_present_assigneeId || that_present_assigneeId) {
4203
        if (!(this_present_assigneeId && that_present_assigneeId))
4204
          return false;
4205
        if (this.assigneeId != that.assigneeId)
4206
          return false;
4207
      }
4208
 
4209
      return true;
4210
    }
4211
 
4212
    @Override
4213
    public int hashCode() {
4214
      return 0;
4215
    }
4216
 
4217
    public int compareTo(unassignAgentTickets_args other) {
4218
      if (!getClass().equals(other.getClass())) {
4219
        return getClass().getName().compareTo(other.getClass().getName());
4220
      }
4221
 
4222
      int lastComparison = 0;
4223
      unassignAgentTickets_args typedOther = (unassignAgentTickets_args)other;
4224
 
4225
      lastComparison = Boolean.valueOf(isSetAssigneeId()).compareTo(typedOther.isSetAssigneeId());
4226
      if (lastComparison != 0) {
4227
        return lastComparison;
4228
      }
4229
      if (isSetAssigneeId()) {
4230
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.assigneeId, typedOther.assigneeId);
4231
        if (lastComparison != 0) {
4232
          return lastComparison;
4233
        }
4234
      }
4235
      return 0;
4236
    }
4237
 
4238
    public _Fields fieldForId(int fieldId) {
4239
      return _Fields.findByThriftId(fieldId);
4240
    }
4241
 
4242
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4243
      org.apache.thrift.protocol.TField field;
4244
      iprot.readStructBegin();
4245
      while (true)
4246
      {
4247
        field = iprot.readFieldBegin();
4248
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4249
          break;
4250
        }
4251
        switch (field.id) {
4252
          case 1: // ASSIGNEE_ID
4253
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4254
              this.assigneeId = iprot.readI32();
4255
              setAssigneeIdIsSet(true);
4256
            } else { 
4257
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4258
            }
4259
            break;
4260
          default:
4261
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4262
        }
4263
        iprot.readFieldEnd();
4264
      }
4265
      iprot.readStructEnd();
4266
      validate();
4267
    }
4268
 
4269
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4270
      validate();
4271
 
4272
      oprot.writeStructBegin(STRUCT_DESC);
4273
      oprot.writeFieldBegin(ASSIGNEE_ID_FIELD_DESC);
4274
      oprot.writeI32(this.assigneeId);
4275
      oprot.writeFieldEnd();
4276
      oprot.writeFieldStop();
4277
      oprot.writeStructEnd();
4278
    }
4279
 
4280
    @Override
4281
    public String toString() {
4282
      StringBuilder sb = new StringBuilder("unassignAgentTickets_args(");
4283
      boolean first = true;
4284
 
4285
      sb.append("assigneeId:");
4286
      sb.append(this.assigneeId);
4287
      first = false;
4288
      sb.append(")");
4289
      return sb.toString();
4290
    }
4291
 
4292
    public void validate() throws org.apache.thrift.TException {
4293
      // check for required fields
4294
    }
4295
 
4296
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4297
      try {
4298
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4299
      } catch (org.apache.thrift.TException te) {
4300
        throw new java.io.IOException(te);
4301
      }
4302
    }
4303
 
4304
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4305
      try {
4306
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4307
        __isset_bit_vector = new BitSet(1);
4308
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4309
      } catch (org.apache.thrift.TException te) {
4310
        throw new java.io.IOException(te);
4311
      }
4312
    }
4313
 
4314
  }
4315
 
4316
  public static class unassignAgentTickets_result implements org.apache.thrift.TBase<unassignAgentTickets_result, unassignAgentTickets_result._Fields>, java.io.Serializable, Cloneable   {
4317
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unassignAgentTickets_result");
4318
 
4319
 
4320
 
4321
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4322
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4323
;
4324
 
4325
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4326
 
4327
      static {
4328
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4329
          byName.put(field.getFieldName(), field);
4330
        }
4331
      }
4332
 
4333
      /**
4334
       * Find the _Fields constant that matches fieldId, or null if its not found.
4335
       */
4336
      public static _Fields findByThriftId(int fieldId) {
4337
        switch(fieldId) {
4338
          default:
4339
            return null;
4340
        }
4341
      }
4342
 
4343
      /**
4344
       * Find the _Fields constant that matches fieldId, throwing an exception
4345
       * if it is not found.
4346
       */
4347
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4348
        _Fields fields = findByThriftId(fieldId);
4349
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4350
        return fields;
4351
      }
4352
 
4353
      /**
4354
       * Find the _Fields constant that matches name, or null if its not found.
4355
       */
4356
      public static _Fields findByName(String name) {
4357
        return byName.get(name);
4358
      }
4359
 
4360
      private final short _thriftId;
4361
      private final String _fieldName;
4362
 
4363
      _Fields(short thriftId, String fieldName) {
4364
        _thriftId = thriftId;
4365
        _fieldName = fieldName;
4366
      }
4367
 
4368
      public short getThriftFieldId() {
4369
        return _thriftId;
4370
      }
4371
 
4372
      public String getFieldName() {
4373
        return _fieldName;
4374
      }
4375
    }
4376
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4377
    static {
4378
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4379
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4380
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unassignAgentTickets_result.class, metaDataMap);
4381
    }
4382
 
4383
    public unassignAgentTickets_result() {
4384
    }
4385
 
4386
    /**
4387
     * Performs a deep copy on <i>other</i>.
4388
     */
4389
    public unassignAgentTickets_result(unassignAgentTickets_result other) {
4390
    }
4391
 
4392
    public unassignAgentTickets_result deepCopy() {
4393
      return new unassignAgentTickets_result(this);
4394
    }
4395
 
4396
    @Override
4397
    public void clear() {
4398
    }
4399
 
4400
    public void setFieldValue(_Fields field, Object value) {
4401
      switch (field) {
4402
      }
4403
    }
4404
 
4405
    public Object getFieldValue(_Fields field) {
4406
      switch (field) {
4407
      }
4408
      throw new IllegalStateException();
4409
    }
4410
 
4411
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4412
    public boolean isSet(_Fields field) {
4413
      if (field == null) {
4414
        throw new IllegalArgumentException();
4415
      }
4416
 
4417
      switch (field) {
4418
      }
4419
      throw new IllegalStateException();
4420
    }
4421
 
4422
    @Override
4423
    public boolean equals(Object that) {
4424
      if (that == null)
4425
        return false;
4426
      if (that instanceof unassignAgentTickets_result)
4427
        return this.equals((unassignAgentTickets_result)that);
4428
      return false;
4429
    }
4430
 
4431
    public boolean equals(unassignAgentTickets_result that) {
4432
      if (that == null)
4433
        return false;
4434
 
4435
      return true;
4436
    }
4437
 
4438
    @Override
4439
    public int hashCode() {
4440
      return 0;
4441
    }
4442
 
4443
    public int compareTo(unassignAgentTickets_result other) {
4444
      if (!getClass().equals(other.getClass())) {
4445
        return getClass().getName().compareTo(other.getClass().getName());
4446
      }
4447
 
4448
      int lastComparison = 0;
4449
      unassignAgentTickets_result typedOther = (unassignAgentTickets_result)other;
4450
 
4451
      return 0;
4452
    }
4453
 
4454
    public _Fields fieldForId(int fieldId) {
4455
      return _Fields.findByThriftId(fieldId);
4456
    }
4457
 
4458
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4459
      org.apache.thrift.protocol.TField field;
4460
      iprot.readStructBegin();
4461
      while (true)
4462
      {
4463
        field = iprot.readFieldBegin();
4464
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4465
          break;
4466
        }
4467
        switch (field.id) {
4468
          default:
4469
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4470
        }
4471
        iprot.readFieldEnd();
4472
      }
4473
      iprot.readStructEnd();
4474
      validate();
4475
    }
4476
 
4477
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4478
      oprot.writeStructBegin(STRUCT_DESC);
4479
 
4480
      oprot.writeFieldStop();
4481
      oprot.writeStructEnd();
4482
    }
4483
 
4484
    @Override
4485
    public String toString() {
4486
      StringBuilder sb = new StringBuilder("unassignAgentTickets_result(");
4487
      boolean first = true;
4488
 
4489
      sb.append(")");
4490
      return sb.toString();
4491
    }
4492
 
4493
    public void validate() throws org.apache.thrift.TException {
4494
      // check for required fields
4495
    }
4496
 
4497
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4498
      try {
4499
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4500
      } catch (org.apache.thrift.TException te) {
4501
        throw new java.io.IOException(te);
4502
      }
4503
    }
4504
 
4505
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4506
      try {
4507
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4508
      } catch (org.apache.thrift.TException te) {
4509
        throw new java.io.IOException(te);
4510
      }
4511
    }
4512
 
4513
  }
4514
 
3430 rajveer 4515
  public static class getActivities_args implements org.apache.thrift.TBase<getActivities_args, getActivities_args._Fields>, java.io.Serializable, Cloneable   {
4516
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivities_args");
3028 mandeep.dh 4517
 
3430 rajveer 4518
    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);
3028 mandeep.dh 4519
 
3430 rajveer 4520
    private SearchFilter searchFilter; // required
3028 mandeep.dh 4521
 
4522
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4523
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 4524
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 4525
 
4526
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4527
 
4528
      static {
4529
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4530
          byName.put(field.getFieldName(), field);
4531
        }
4532
      }
4533
 
4534
      /**
4535
       * Find the _Fields constant that matches fieldId, or null if its not found.
4536
       */
4537
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4538
        switch(fieldId) {
4539
          case 1: // SEARCH_FILTER
4540
            return SEARCH_FILTER;
4541
          default:
4542
            return null;
4543
        }
3028 mandeep.dh 4544
      }
4545
 
4546
      /**
4547
       * Find the _Fields constant that matches fieldId, throwing an exception
4548
       * if it is not found.
4549
       */
4550
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4551
        _Fields fields = findByThriftId(fieldId);
4552
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4553
        return fields;
4554
      }
4555
 
4556
      /**
4557
       * Find the _Fields constant that matches name, or null if its not found.
4558
       */
4559
      public static _Fields findByName(String name) {
4560
        return byName.get(name);
4561
      }
4562
 
4563
      private final short _thriftId;
4564
      private final String _fieldName;
4565
 
4566
      _Fields(short thriftId, String fieldName) {
4567
        _thriftId = thriftId;
4568
        _fieldName = fieldName;
4569
      }
4570
 
4571
      public short getThriftFieldId() {
4572
        return _thriftId;
4573
      }
4574
 
4575
      public String getFieldName() {
4576
        return _fieldName;
4577
      }
4578
    }
4579
 
4580
    // isset id assignments
4581
 
3430 rajveer 4582
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 4583
    static {
3430 rajveer 4584
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4585
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4586
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
4587
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4588
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);
3028 mandeep.dh 4589
    }
4590
 
4591
    public getActivities_args() {
4592
    }
4593
 
4594
    public getActivities_args(
3390 mandeep.dh 4595
      SearchFilter searchFilter)
3028 mandeep.dh 4596
    {
4597
      this();
3390 mandeep.dh 4598
      this.searchFilter = searchFilter;
3028 mandeep.dh 4599
    }
4600
 
4601
    /**
4602
     * Performs a deep copy on <i>other</i>.
4603
     */
4604
    public getActivities_args(getActivities_args other) {
3390 mandeep.dh 4605
      if (other.isSetSearchFilter()) {
4606
        this.searchFilter = new SearchFilter(other.searchFilter);
4607
      }
3028 mandeep.dh 4608
    }
4609
 
4610
    public getActivities_args deepCopy() {
4611
      return new getActivities_args(this);
4612
    }
4613
 
3430 rajveer 4614
    @Override
4615
    public void clear() {
4616
      this.searchFilter = null;
3028 mandeep.dh 4617
    }
4618
 
3390 mandeep.dh 4619
    public SearchFilter getSearchFilter() {
4620
      return this.searchFilter;
3028 mandeep.dh 4621
    }
4622
 
3430 rajveer 4623
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 4624
      this.searchFilter = searchFilter;
3028 mandeep.dh 4625
    }
4626
 
3390 mandeep.dh 4627
    public void unsetSearchFilter() {
4628
      this.searchFilter = null;
3028 mandeep.dh 4629
    }
4630
 
3430 rajveer 4631
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 4632
    public boolean isSetSearchFilter() {
4633
      return this.searchFilter != null;
3028 mandeep.dh 4634
    }
4635
 
3390 mandeep.dh 4636
    public void setSearchFilterIsSet(boolean value) {
4637
      if (!value) {
4638
        this.searchFilter = null;
4639
      }
3028 mandeep.dh 4640
    }
4641
 
4642
    public void setFieldValue(_Fields field, Object value) {
4643
      switch (field) {
3390 mandeep.dh 4644
      case SEARCH_FILTER:
3028 mandeep.dh 4645
        if (value == null) {
3390 mandeep.dh 4646
          unsetSearchFilter();
3028 mandeep.dh 4647
        } else {
3390 mandeep.dh 4648
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 4649
        }
4650
        break;
4651
 
4652
      }
4653
    }
4654
 
4655
    public Object getFieldValue(_Fields field) {
4656
      switch (field) {
3390 mandeep.dh 4657
      case SEARCH_FILTER:
4658
        return getSearchFilter();
3028 mandeep.dh 4659
 
4660
      }
4661
      throw new IllegalStateException();
4662
    }
4663
 
3430 rajveer 4664
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4665
    public boolean isSet(_Fields field) {
4666
      if (field == null) {
4667
        throw new IllegalArgumentException();
4668
      }
3028 mandeep.dh 4669
 
4670
      switch (field) {
3390 mandeep.dh 4671
      case SEARCH_FILTER:
4672
        return isSetSearchFilter();
3028 mandeep.dh 4673
      }
4674
      throw new IllegalStateException();
4675
    }
4676
 
4677
    @Override
4678
    public boolean equals(Object that) {
4679
      if (that == null)
4680
        return false;
4681
      if (that instanceof getActivities_args)
4682
        return this.equals((getActivities_args)that);
4683
      return false;
4684
    }
4685
 
4686
    public boolean equals(getActivities_args that) {
4687
      if (that == null)
4688
        return false;
4689
 
3390 mandeep.dh 4690
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
4691
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
4692
      if (this_present_searchFilter || that_present_searchFilter) {
4693
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 4694
          return false;
3390 mandeep.dh 4695
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 4696
          return false;
4697
      }
4698
 
4699
      return true;
4700
    }
4701
 
4702
    @Override
4703
    public int hashCode() {
4704
      return 0;
4705
    }
4706
 
4707
    public int compareTo(getActivities_args other) {
4708
      if (!getClass().equals(other.getClass())) {
4709
        return getClass().getName().compareTo(other.getClass().getName());
4710
      }
4711
 
4712
      int lastComparison = 0;
4713
      getActivities_args typedOther = (getActivities_args)other;
4714
 
3430 rajveer 4715
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 4716
      if (lastComparison != 0) {
4717
        return lastComparison;
4718
      }
3430 rajveer 4719
      if (isSetSearchFilter()) {
4720
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
4721
        if (lastComparison != 0) {
4722
          return lastComparison;
4723
        }
3028 mandeep.dh 4724
      }
4725
      return 0;
4726
    }
4727
 
3430 rajveer 4728
    public _Fields fieldForId(int fieldId) {
4729
      return _Fields.findByThriftId(fieldId);
4730
    }
4731
 
4732
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4733
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 4734
      iprot.readStructBegin();
4735
      while (true)
4736
      {
4737
        field = iprot.readFieldBegin();
3430 rajveer 4738
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 4739
          break;
4740
        }
3430 rajveer 4741
        switch (field.id) {
4742
          case 1: // SEARCH_FILTER
4743
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4744
              this.searchFilter = new SearchFilter();
4745
              this.searchFilter.read(iprot);
4746
            } else { 
4747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4748
            }
4749
            break;
4750
          default:
4751
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 4752
        }
3430 rajveer 4753
        iprot.readFieldEnd();
3028 mandeep.dh 4754
      }
4755
      iprot.readStructEnd();
4756
      validate();
4757
    }
4758
 
3430 rajveer 4759
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 4760
      validate();
4761
 
4762
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 4763
      if (this.searchFilter != null) {
4764
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
4765
        this.searchFilter.write(oprot);
4766
        oprot.writeFieldEnd();
4767
      }
3028 mandeep.dh 4768
      oprot.writeFieldStop();
4769
      oprot.writeStructEnd();
4770
    }
4771
 
4772
    @Override
4773
    public String toString() {
4774
      StringBuilder sb = new StringBuilder("getActivities_args(");
4775
      boolean first = true;
4776
 
3390 mandeep.dh 4777
      sb.append("searchFilter:");
4778
      if (this.searchFilter == null) {
4779
        sb.append("null");
4780
      } else {
4781
        sb.append(this.searchFilter);
4782
      }
3028 mandeep.dh 4783
      first = false;
4784
      sb.append(")");
4785
      return sb.toString();
4786
    }
4787
 
3430 rajveer 4788
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 4789
      // check for required fields
4790
    }
4791
 
3430 rajveer 4792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4793
      try {
4794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4795
      } catch (org.apache.thrift.TException te) {
4796
        throw new java.io.IOException(te);
4797
      }
4798
    }
4799
 
4800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4801
      try {
4802
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4803
      } catch (org.apache.thrift.TException te) {
4804
        throw new java.io.IOException(te);
4805
      }
4806
    }
4807
 
3028 mandeep.dh 4808
  }
4809
 
3430 rajveer 4810
  public static class getActivities_result implements org.apache.thrift.TBase<getActivities_result, getActivities_result._Fields>, java.io.Serializable, Cloneable   {
4811
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivities_result");
3028 mandeep.dh 4812
 
3430 rajveer 4813
    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);
3028 mandeep.dh 4814
 
3430 rajveer 4815
    private List<Activity> success; // required
3028 mandeep.dh 4816
 
4817
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4818
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 4819
      SUCCESS((short)0, "success");
4820
 
4821
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4822
 
4823
      static {
4824
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4825
          byName.put(field.getFieldName(), field);
4826
        }
4827
      }
4828
 
4829
      /**
4830
       * Find the _Fields constant that matches fieldId, or null if its not found.
4831
       */
4832
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4833
        switch(fieldId) {
4834
          case 0: // SUCCESS
4835
            return SUCCESS;
4836
          default:
4837
            return null;
4838
        }
3028 mandeep.dh 4839
      }
4840
 
4841
      /**
4842
       * Find the _Fields constant that matches fieldId, throwing an exception
4843
       * if it is not found.
4844
       */
4845
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4846
        _Fields fields = findByThriftId(fieldId);
4847
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4848
        return fields;
4849
      }
4850
 
4851
      /**
4852
       * Find the _Fields constant that matches name, or null if its not found.
4853
       */
4854
      public static _Fields findByName(String name) {
4855
        return byName.get(name);
4856
      }
4857
 
4858
      private final short _thriftId;
4859
      private final String _fieldName;
4860
 
4861
      _Fields(short thriftId, String fieldName) {
4862
        _thriftId = thriftId;
4863
        _fieldName = fieldName;
4864
      }
4865
 
4866
      public short getThriftFieldId() {
4867
        return _thriftId;
4868
      }
4869
 
4870
      public String getFieldName() {
4871
        return _fieldName;
4872
      }
4873
    }
4874
 
4875
    // isset id assignments
4876
 
3430 rajveer 4877
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 4878
    static {
3430 rajveer 4879
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4880
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4881
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4882
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class))));
4883
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4884
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivities_result.class, metaDataMap);
3028 mandeep.dh 4885
    }
4886
 
4887
    public getActivities_result() {
4888
    }
4889
 
4890
    public getActivities_result(
4891
      List<Activity> success)
4892
    {
4893
      this();
4894
      this.success = success;
4895
    }
4896
 
4897
    /**
4898
     * Performs a deep copy on <i>other</i>.
4899
     */
4900
    public getActivities_result(getActivities_result other) {
4901
      if (other.isSetSuccess()) {
4902
        List<Activity> __this__success = new ArrayList<Activity>();
4903
        for (Activity other_element : other.success) {
4904
          __this__success.add(new Activity(other_element));
4905
        }
4906
        this.success = __this__success;
4907
      }
4908
    }
4909
 
4910
    public getActivities_result deepCopy() {
4911
      return new getActivities_result(this);
4912
    }
4913
 
3430 rajveer 4914
    @Override
4915
    public void clear() {
4916
      this.success = null;
3028 mandeep.dh 4917
    }
4918
 
4919
    public int getSuccessSize() {
4920
      return (this.success == null) ? 0 : this.success.size();
4921
    }
4922
 
4923
    public java.util.Iterator<Activity> getSuccessIterator() {
4924
      return (this.success == null) ? null : this.success.iterator();
4925
    }
4926
 
4927
    public void addToSuccess(Activity elem) {
4928
      if (this.success == null) {
4929
        this.success = new ArrayList<Activity>();
4930
      }
4931
      this.success.add(elem);
4932
    }
4933
 
4934
    public List<Activity> getSuccess() {
4935
      return this.success;
4936
    }
4937
 
3430 rajveer 4938
    public void setSuccess(List<Activity> success) {
3028 mandeep.dh 4939
      this.success = success;
4940
    }
4941
 
4942
    public void unsetSuccess() {
4943
      this.success = null;
4944
    }
4945
 
3430 rajveer 4946
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 4947
    public boolean isSetSuccess() {
4948
      return this.success != null;
4949
    }
4950
 
4951
    public void setSuccessIsSet(boolean value) {
4952
      if (!value) {
4953
        this.success = null;
4954
      }
4955
    }
4956
 
4957
    public void setFieldValue(_Fields field, Object value) {
4958
      switch (field) {
4959
      case SUCCESS:
4960
        if (value == null) {
4961
          unsetSuccess();
4962
        } else {
4963
          setSuccess((List<Activity>)value);
4964
        }
4965
        break;
4966
 
4967
      }
4968
    }
4969
 
4970
    public Object getFieldValue(_Fields field) {
4971
      switch (field) {
4972
      case SUCCESS:
4973
        return getSuccess();
4974
 
4975
      }
4976
      throw new IllegalStateException();
4977
    }
4978
 
3430 rajveer 4979
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4980
    public boolean isSet(_Fields field) {
4981
      if (field == null) {
4982
        throw new IllegalArgumentException();
4983
      }
3028 mandeep.dh 4984
 
4985
      switch (field) {
4986
      case SUCCESS:
4987
        return isSetSuccess();
4988
      }
4989
      throw new IllegalStateException();
4990
    }
4991
 
4992
    @Override
4993
    public boolean equals(Object that) {
4994
      if (that == null)
4995
        return false;
4996
      if (that instanceof getActivities_result)
4997
        return this.equals((getActivities_result)that);
4998
      return false;
4999
    }
5000
 
5001
    public boolean equals(getActivities_result that) {
5002
      if (that == null)
5003
        return false;
5004
 
5005
      boolean this_present_success = true && this.isSetSuccess();
5006
      boolean that_present_success = true && that.isSetSuccess();
5007
      if (this_present_success || that_present_success) {
5008
        if (!(this_present_success && that_present_success))
5009
          return false;
5010
        if (!this.success.equals(that.success))
5011
          return false;
5012
      }
5013
 
5014
      return true;
5015
    }
5016
 
5017
    @Override
5018
    public int hashCode() {
5019
      return 0;
5020
    }
5021
 
5022
    public int compareTo(getActivities_result other) {
5023
      if (!getClass().equals(other.getClass())) {
5024
        return getClass().getName().compareTo(other.getClass().getName());
5025
      }
5026
 
5027
      int lastComparison = 0;
5028
      getActivities_result typedOther = (getActivities_result)other;
5029
 
3430 rajveer 5030
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 5031
      if (lastComparison != 0) {
5032
        return lastComparison;
5033
      }
3430 rajveer 5034
      if (isSetSuccess()) {
5035
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5036
        if (lastComparison != 0) {
5037
          return lastComparison;
5038
        }
3028 mandeep.dh 5039
      }
5040
      return 0;
5041
    }
5042
 
3430 rajveer 5043
    public _Fields fieldForId(int fieldId) {
5044
      return _Fields.findByThriftId(fieldId);
5045
    }
5046
 
5047
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5048
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 5049
      iprot.readStructBegin();
5050
      while (true)
5051
      {
5052
        field = iprot.readFieldBegin();
3430 rajveer 5053
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 5054
          break;
5055
        }
3430 rajveer 5056
        switch (field.id) {
5057
          case 0: // SUCCESS
5058
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5059
              {
3546 mandeep.dh 5060
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
5061
                this.success = new ArrayList<Activity>(_list20.size);
5062
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
3028 mandeep.dh 5063
                {
3546 mandeep.dh 5064
                  Activity _elem22; // required
5065
                  _elem22 = new Activity();
5066
                  _elem22.read(iprot);
5067
                  this.success.add(_elem22);
3028 mandeep.dh 5068
                }
3430 rajveer 5069
                iprot.readListEnd();
3028 mandeep.dh 5070
              }
3430 rajveer 5071
            } else { 
5072
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5073
            }
5074
            break;
5075
          default:
5076
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5077
        }
3430 rajveer 5078
        iprot.readFieldEnd();
3028 mandeep.dh 5079
      }
5080
      iprot.readStructEnd();
5081
      validate();
5082
    }
5083
 
3430 rajveer 5084
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5085
      oprot.writeStructBegin(STRUCT_DESC);
5086
 
5087
      if (this.isSetSuccess()) {
5088
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5089
        {
3430 rajveer 5090
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 5091
          for (Activity _iter23 : this.success)
3028 mandeep.dh 5092
          {
3546 mandeep.dh 5093
            _iter23.write(oprot);
3028 mandeep.dh 5094
          }
5095
          oprot.writeListEnd();
5096
        }
5097
        oprot.writeFieldEnd();
5098
      }
5099
      oprot.writeFieldStop();
5100
      oprot.writeStructEnd();
5101
    }
5102
 
5103
    @Override
5104
    public String toString() {
5105
      StringBuilder sb = new StringBuilder("getActivities_result(");
5106
      boolean first = true;
5107
 
5108
      sb.append("success:");
5109
      if (this.success == null) {
5110
        sb.append("null");
5111
      } else {
5112
        sb.append(this.success);
5113
      }
5114
      first = false;
5115
      sb.append(")");
5116
      return sb.toString();
5117
    }
5118
 
3430 rajveer 5119
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 5120
      // check for required fields
5121
    }
5122
 
3430 rajveer 5123
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5124
      try {
5125
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5126
      } catch (org.apache.thrift.TException te) {
5127
        throw new java.io.IOException(te);
5128
      }
5129
    }
5130
 
5131
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5132
      try {
5133
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5134
      } catch (org.apache.thrift.TException te) {
5135
        throw new java.io.IOException(te);
5136
      }
5137
    }
5138
 
3028 mandeep.dh 5139
  }
5140
 
3430 rajveer 5141
  public static class insertActivity_args implements org.apache.thrift.TBase<insertActivity_args, insertActivity_args._Fields>, java.io.Serializable, Cloneable   {
5142
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertActivity_args");
3028 mandeep.dh 5143
 
3430 rajveer 5144
    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);
3028 mandeep.dh 5145
 
3430 rajveer 5146
    private Activity activity; // required
3028 mandeep.dh 5147
 
5148
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5149
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 5150
      ACTIVITY((short)1, "activity");
5151
 
5152
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5153
 
5154
      static {
5155
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5156
          byName.put(field.getFieldName(), field);
5157
        }
5158
      }
5159
 
5160
      /**
5161
       * Find the _Fields constant that matches fieldId, or null if its not found.
5162
       */
5163
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5164
        switch(fieldId) {
5165
          case 1: // ACTIVITY
5166
            return ACTIVITY;
5167
          default:
5168
            return null;
5169
        }
3028 mandeep.dh 5170
      }
5171
 
5172
      /**
5173
       * Find the _Fields constant that matches fieldId, throwing an exception
5174
       * if it is not found.
5175
       */
5176
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5177
        _Fields fields = findByThriftId(fieldId);
5178
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5179
        return fields;
5180
      }
5181
 
5182
      /**
5183
       * Find the _Fields constant that matches name, or null if its not found.
5184
       */
5185
      public static _Fields findByName(String name) {
5186
        return byName.get(name);
5187
      }
5188
 
5189
      private final short _thriftId;
5190
      private final String _fieldName;
5191
 
5192
      _Fields(short thriftId, String fieldName) {
5193
        _thriftId = thriftId;
5194
        _fieldName = fieldName;
5195
      }
5196
 
5197
      public short getThriftFieldId() {
5198
        return _thriftId;
5199
      }
5200
 
5201
      public String getFieldName() {
5202
        return _fieldName;
5203
      }
5204
    }
5205
 
5206
    // isset id assignments
5207
 
3430 rajveer 5208
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 5209
    static {
3430 rajveer 5210
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5211
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5212
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
5213
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5214
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertActivity_args.class, metaDataMap);
3028 mandeep.dh 5215
    }
5216
 
5217
    public insertActivity_args() {
5218
    }
5219
 
5220
    public insertActivity_args(
5221
      Activity activity)
5222
    {
5223
      this();
5224
      this.activity = activity;
5225
    }
5226
 
5227
    /**
5228
     * Performs a deep copy on <i>other</i>.
5229
     */
5230
    public insertActivity_args(insertActivity_args other) {
5231
      if (other.isSetActivity()) {
5232
        this.activity = new Activity(other.activity);
5233
      }
5234
    }
5235
 
5236
    public insertActivity_args deepCopy() {
5237
      return new insertActivity_args(this);
5238
    }
5239
 
3430 rajveer 5240
    @Override
5241
    public void clear() {
5242
      this.activity = null;
3028 mandeep.dh 5243
    }
5244
 
5245
    public Activity getActivity() {
5246
      return this.activity;
5247
    }
5248
 
3430 rajveer 5249
    public void setActivity(Activity activity) {
3028 mandeep.dh 5250
      this.activity = activity;
5251
    }
5252
 
5253
    public void unsetActivity() {
5254
      this.activity = null;
5255
    }
5256
 
3430 rajveer 5257
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 5258
    public boolean isSetActivity() {
5259
      return this.activity != null;
5260
    }
5261
 
5262
    public void setActivityIsSet(boolean value) {
5263
      if (!value) {
5264
        this.activity = null;
5265
      }
5266
    }
5267
 
5268
    public void setFieldValue(_Fields field, Object value) {
5269
      switch (field) {
5270
      case ACTIVITY:
5271
        if (value == null) {
5272
          unsetActivity();
5273
        } else {
5274
          setActivity((Activity)value);
5275
        }
5276
        break;
5277
 
5278
      }
5279
    }
5280
 
5281
    public Object getFieldValue(_Fields field) {
5282
      switch (field) {
5283
      case ACTIVITY:
5284
        return getActivity();
5285
 
5286
      }
5287
      throw new IllegalStateException();
5288
    }
5289
 
3430 rajveer 5290
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5291
    public boolean isSet(_Fields field) {
5292
      if (field == null) {
5293
        throw new IllegalArgumentException();
5294
      }
3028 mandeep.dh 5295
 
5296
      switch (field) {
5297
      case ACTIVITY:
5298
        return isSetActivity();
5299
      }
5300
      throw new IllegalStateException();
5301
    }
5302
 
5303
    @Override
5304
    public boolean equals(Object that) {
5305
      if (that == null)
5306
        return false;
5307
      if (that instanceof insertActivity_args)
5308
        return this.equals((insertActivity_args)that);
5309
      return false;
5310
    }
5311
 
5312
    public boolean equals(insertActivity_args that) {
5313
      if (that == null)
5314
        return false;
5315
 
5316
      boolean this_present_activity = true && this.isSetActivity();
5317
      boolean that_present_activity = true && that.isSetActivity();
5318
      if (this_present_activity || that_present_activity) {
5319
        if (!(this_present_activity && that_present_activity))
5320
          return false;
5321
        if (!this.activity.equals(that.activity))
5322
          return false;
5323
      }
5324
 
5325
      return true;
5326
    }
5327
 
5328
    @Override
5329
    public int hashCode() {
5330
      return 0;
5331
    }
5332
 
5333
    public int compareTo(insertActivity_args other) {
5334
      if (!getClass().equals(other.getClass())) {
5335
        return getClass().getName().compareTo(other.getClass().getName());
5336
      }
5337
 
5338
      int lastComparison = 0;
5339
      insertActivity_args typedOther = (insertActivity_args)other;
5340
 
3430 rajveer 5341
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3028 mandeep.dh 5342
      if (lastComparison != 0) {
5343
        return lastComparison;
5344
      }
3430 rajveer 5345
      if (isSetActivity()) {
5346
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
5347
        if (lastComparison != 0) {
5348
          return lastComparison;
5349
        }
3028 mandeep.dh 5350
      }
5351
      return 0;
5352
    }
5353
 
3430 rajveer 5354
    public _Fields fieldForId(int fieldId) {
5355
      return _Fields.findByThriftId(fieldId);
5356
    }
5357
 
5358
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5359
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 5360
      iprot.readStructBegin();
5361
      while (true)
5362
      {
5363
        field = iprot.readFieldBegin();
3430 rajveer 5364
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 5365
          break;
5366
        }
3430 rajveer 5367
        switch (field.id) {
5368
          case 1: // ACTIVITY
5369
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5370
              this.activity = new Activity();
5371
              this.activity.read(iprot);
5372
            } else { 
5373
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5374
            }
5375
            break;
5376
          default:
5377
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5378
        }
3430 rajveer 5379
        iprot.readFieldEnd();
3028 mandeep.dh 5380
      }
5381
      iprot.readStructEnd();
5382
      validate();
5383
    }
5384
 
3430 rajveer 5385
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5386
      validate();
5387
 
5388
      oprot.writeStructBegin(STRUCT_DESC);
5389
      if (this.activity != null) {
5390
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
5391
        this.activity.write(oprot);
5392
        oprot.writeFieldEnd();
5393
      }
5394
      oprot.writeFieldStop();
5395
      oprot.writeStructEnd();
5396
    }
5397
 
5398
    @Override
5399
    public String toString() {
5400
      StringBuilder sb = new StringBuilder("insertActivity_args(");
5401
      boolean first = true;
5402
 
5403
      sb.append("activity:");
5404
      if (this.activity == null) {
5405
        sb.append("null");
5406
      } else {
5407
        sb.append(this.activity);
5408
      }
5409
      first = false;
5410
      sb.append(")");
5411
      return sb.toString();
5412
    }
5413
 
3430 rajveer 5414
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 5415
      // check for required fields
5416
    }
5417
 
3430 rajveer 5418
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5419
      try {
5420
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5421
      } catch (org.apache.thrift.TException te) {
5422
        throw new java.io.IOException(te);
5423
      }
5424
    }
5425
 
5426
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5427
      try {
5428
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5429
      } catch (org.apache.thrift.TException te) {
5430
        throw new java.io.IOException(te);
5431
      }
5432
    }
5433
 
3028 mandeep.dh 5434
  }
5435
 
3430 rajveer 5436
  public static class insertActivity_result implements org.apache.thrift.TBase<insertActivity_result, insertActivity_result._Fields>, java.io.Serializable, Cloneable   {
5437
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertActivity_result");
3028 mandeep.dh 5438
 
3430 rajveer 5439
    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);
3028 mandeep.dh 5440
 
3430 rajveer 5441
    private long success; // required
3028 mandeep.dh 5442
 
5443
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5444
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3405 mandeep.dh 5445
      SUCCESS((short)0, "success");
3028 mandeep.dh 5446
 
5447
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5448
 
5449
      static {
5450
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5451
          byName.put(field.getFieldName(), field);
5452
        }
5453
      }
5454
 
5455
      /**
5456
       * Find the _Fields constant that matches fieldId, or null if its not found.
5457
       */
5458
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5459
        switch(fieldId) {
5460
          case 0: // SUCCESS
5461
            return SUCCESS;
5462
          default:
5463
            return null;
5464
        }
3028 mandeep.dh 5465
      }
5466
 
5467
      /**
5468
       * Find the _Fields constant that matches fieldId, throwing an exception
5469
       * if it is not found.
5470
       */
5471
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5472
        _Fields fields = findByThriftId(fieldId);
5473
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5474
        return fields;
5475
      }
5476
 
5477
      /**
5478
       * Find the _Fields constant that matches name, or null if its not found.
5479
       */
5480
      public static _Fields findByName(String name) {
5481
        return byName.get(name);
5482
      }
5483
 
5484
      private final short _thriftId;
5485
      private final String _fieldName;
5486
 
5487
      _Fields(short thriftId, String fieldName) {
5488
        _thriftId = thriftId;
5489
        _fieldName = fieldName;
5490
      }
5491
 
5492
      public short getThriftFieldId() {
5493
        return _thriftId;
5494
      }
5495
 
5496
      public String getFieldName() {
5497
        return _fieldName;
5498
      }
5499
    }
3405 mandeep.dh 5500
 
5501
    // isset id assignments
5502
    private static final int __SUCCESS_ISSET_ID = 0;
5503
    private BitSet __isset_bit_vector = new BitSet(1);
5504
 
3430 rajveer 5505
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 5506
    static {
3430 rajveer 5507
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5508
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5509
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5510
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5511
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertActivity_result.class, metaDataMap);
3028 mandeep.dh 5512
    }
5513
 
5514
    public insertActivity_result() {
5515
    }
5516
 
3405 mandeep.dh 5517
    public insertActivity_result(
5518
      long success)
5519
    {
5520
      this();
5521
      this.success = success;
5522
      setSuccessIsSet(true);
5523
    }
5524
 
3028 mandeep.dh 5525
    /**
5526
     * Performs a deep copy on <i>other</i>.
5527
     */
5528
    public insertActivity_result(insertActivity_result other) {
3405 mandeep.dh 5529
      __isset_bit_vector.clear();
5530
      __isset_bit_vector.or(other.__isset_bit_vector);
5531
      this.success = other.success;
3028 mandeep.dh 5532
    }
5533
 
5534
    public insertActivity_result deepCopy() {
5535
      return new insertActivity_result(this);
5536
    }
5537
 
3430 rajveer 5538
    @Override
5539
    public void clear() {
5540
      setSuccessIsSet(false);
5541
      this.success = 0;
3028 mandeep.dh 5542
    }
5543
 
3405 mandeep.dh 5544
    public long getSuccess() {
5545
      return this.success;
5546
    }
5547
 
3430 rajveer 5548
    public void setSuccess(long success) {
3405 mandeep.dh 5549
      this.success = success;
5550
      setSuccessIsSet(true);
5551
    }
5552
 
5553
    public void unsetSuccess() {
5554
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5555
    }
5556
 
3430 rajveer 5557
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3405 mandeep.dh 5558
    public boolean isSetSuccess() {
5559
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5560
    }
5561
 
5562
    public void setSuccessIsSet(boolean value) {
5563
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5564
    }
5565
 
3028 mandeep.dh 5566
    public void setFieldValue(_Fields field, Object value) {
5567
      switch (field) {
3405 mandeep.dh 5568
      case SUCCESS:
5569
        if (value == null) {
5570
          unsetSuccess();
5571
        } else {
5572
          setSuccess((Long)value);
5573
        }
5574
        break;
5575
 
3028 mandeep.dh 5576
      }
5577
    }
5578
 
5579
    public Object getFieldValue(_Fields field) {
5580
      switch (field) {
3405 mandeep.dh 5581
      case SUCCESS:
3430 rajveer 5582
        return Long.valueOf(getSuccess());
3405 mandeep.dh 5583
 
3028 mandeep.dh 5584
      }
5585
      throw new IllegalStateException();
5586
    }
5587
 
3430 rajveer 5588
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5589
    public boolean isSet(_Fields field) {
5590
      if (field == null) {
5591
        throw new IllegalArgumentException();
5592
      }
3028 mandeep.dh 5593
 
5594
      switch (field) {
3405 mandeep.dh 5595
      case SUCCESS:
5596
        return isSetSuccess();
3028 mandeep.dh 5597
      }
5598
      throw new IllegalStateException();
5599
    }
5600
 
5601
    @Override
5602
    public boolean equals(Object that) {
5603
      if (that == null)
5604
        return false;
5605
      if (that instanceof insertActivity_result)
5606
        return this.equals((insertActivity_result)that);
5607
      return false;
5608
    }
5609
 
5610
    public boolean equals(insertActivity_result that) {
5611
      if (that == null)
5612
        return false;
5613
 
3405 mandeep.dh 5614
      boolean this_present_success = true;
5615
      boolean that_present_success = true;
5616
      if (this_present_success || that_present_success) {
5617
        if (!(this_present_success && that_present_success))
5618
          return false;
5619
        if (this.success != that.success)
5620
          return false;
5621
      }
5622
 
3028 mandeep.dh 5623
      return true;
5624
    }
5625
 
5626
    @Override
5627
    public int hashCode() {
5628
      return 0;
5629
    }
5630
 
5631
    public int compareTo(insertActivity_result other) {
5632
      if (!getClass().equals(other.getClass())) {
5633
        return getClass().getName().compareTo(other.getClass().getName());
5634
      }
5635
 
5636
      int lastComparison = 0;
5637
      insertActivity_result typedOther = (insertActivity_result)other;
5638
 
3430 rajveer 5639
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3405 mandeep.dh 5640
      if (lastComparison != 0) {
5641
        return lastComparison;
5642
      }
3430 rajveer 5643
      if (isSetSuccess()) {
5644
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5645
        if (lastComparison != 0) {
5646
          return lastComparison;
5647
        }
3405 mandeep.dh 5648
      }
3028 mandeep.dh 5649
      return 0;
5650
    }
5651
 
3430 rajveer 5652
    public _Fields fieldForId(int fieldId) {
5653
      return _Fields.findByThriftId(fieldId);
5654
    }
5655
 
5656
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5657
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 5658
      iprot.readStructBegin();
5659
      while (true)
5660
      {
5661
        field = iprot.readFieldBegin();
3430 rajveer 5662
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 5663
          break;
5664
        }
3430 rajveer 5665
        switch (field.id) {
5666
          case 0: // SUCCESS
5667
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5668
              this.success = iprot.readI64();
5669
              setSuccessIsSet(true);
5670
            } else { 
5671
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5672
            }
5673
            break;
5674
          default:
5675
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5676
        }
3430 rajveer 5677
        iprot.readFieldEnd();
3028 mandeep.dh 5678
      }
5679
      iprot.readStructEnd();
5680
      validate();
5681
    }
5682
 
3430 rajveer 5683
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5684
      oprot.writeStructBegin(STRUCT_DESC);
5685
 
3405 mandeep.dh 5686
      if (this.isSetSuccess()) {
5687
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5688
        oprot.writeI64(this.success);
5689
        oprot.writeFieldEnd();
5690
      }
3028 mandeep.dh 5691
      oprot.writeFieldStop();
5692
      oprot.writeStructEnd();
5693
    }
5694
 
5695
    @Override
5696
    public String toString() {
5697
      StringBuilder sb = new StringBuilder("insertActivity_result(");
5698
      boolean first = true;
5699
 
3405 mandeep.dh 5700
      sb.append("success:");
5701
      sb.append(this.success);
5702
      first = false;
3028 mandeep.dh 5703
      sb.append(")");
5704
      return sb.toString();
5705
    }
5706
 
3430 rajveer 5707
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 5708
      // check for required fields
5709
    }
5710
 
3430 rajveer 5711
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5712
      try {
5713
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5714
      } catch (org.apache.thrift.TException te) {
5715
        throw new java.io.IOException(te);
5716
      }
5717
    }
5718
 
5719
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5720
      try {
7410 amar.kumar 5721
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
5722
        __isset_bit_vector = new BitSet(1);
3430 rajveer 5723
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5724
      } catch (org.apache.thrift.TException te) {
5725
        throw new java.io.IOException(te);
5726
      }
5727
    }
5728
 
3028 mandeep.dh 5729
  }
5730
 
3430 rajveer 5731
  public static class markAsRead_args implements org.apache.thrift.TBase<markAsRead_args, markAsRead_args._Fields>, java.io.Serializable, Cloneable   {
5732
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_args");
3087 mandeep.dh 5733
 
3430 rajveer 5734
    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);
5735
    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);
3087 mandeep.dh 5736
 
3430 rajveer 5737
    private long activityId; // required
5738
    private long agentId; // required
3087 mandeep.dh 5739
 
5740
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5741
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 5742
      ACTIVITY_ID((short)1, "activityId"),
5743
      AGENT_ID((short)2, "agentId");
3087 mandeep.dh 5744
 
5745
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5746
 
5747
      static {
5748
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5749
          byName.put(field.getFieldName(), field);
5750
        }
5751
      }
5752
 
5753
      /**
5754
       * Find the _Fields constant that matches fieldId, or null if its not found.
5755
       */
5756
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5757
        switch(fieldId) {
5758
          case 1: // ACTIVITY_ID
5759
            return ACTIVITY_ID;
5760
          case 2: // AGENT_ID
5761
            return AGENT_ID;
5762
          default:
5763
            return null;
5764
        }
3087 mandeep.dh 5765
      }
5766
 
5767
      /**
5768
       * Find the _Fields constant that matches fieldId, throwing an exception
5769
       * if it is not found.
5770
       */
5771
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5772
        _Fields fields = findByThriftId(fieldId);
5773
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5774
        return fields;
5775
      }
5776
 
5777
      /**
5778
       * Find the _Fields constant that matches name, or null if its not found.
5779
       */
5780
      public static _Fields findByName(String name) {
5781
        return byName.get(name);
5782
      }
5783
 
5784
      private final short _thriftId;
5785
      private final String _fieldName;
5786
 
5787
      _Fields(short thriftId, String fieldName) {
5788
        _thriftId = thriftId;
5789
        _fieldName = fieldName;
5790
      }
5791
 
5792
      public short getThriftFieldId() {
5793
        return _thriftId;
5794
      }
5795
 
5796
      public String getFieldName() {
5797
        return _fieldName;
5798
      }
5799
    }
5800
 
5801
    // isset id assignments
3390 mandeep.dh 5802
    private static final int __ACTIVITYID_ISSET_ID = 0;
5803
    private static final int __AGENTID_ISSET_ID = 1;
5804
    private BitSet __isset_bit_vector = new BitSet(2);
3087 mandeep.dh 5805
 
3430 rajveer 5806
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 5807
    static {
3430 rajveer 5808
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5809
      tmpMap.put(_Fields.ACTIVITY_ID, new org.apache.thrift.meta_data.FieldMetaData("activityId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5810
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5811
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5812
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5813
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5814
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_args.class, metaDataMap);
3087 mandeep.dh 5815
    }
5816
 
3390 mandeep.dh 5817
    public markAsRead_args() {
3087 mandeep.dh 5818
    }
5819
 
3390 mandeep.dh 5820
    public markAsRead_args(
5821
      long activityId,
5822
      long agentId)
3087 mandeep.dh 5823
    {
5824
      this();
3390 mandeep.dh 5825
      this.activityId = activityId;
5826
      setActivityIdIsSet(true);
5827
      this.agentId = agentId;
5828
      setAgentIdIsSet(true);
3087 mandeep.dh 5829
    }
5830
 
5831
    /**
5832
     * Performs a deep copy on <i>other</i>.
5833
     */
3390 mandeep.dh 5834
    public markAsRead_args(markAsRead_args other) {
5835
      __isset_bit_vector.clear();
5836
      __isset_bit_vector.or(other.__isset_bit_vector);
5837
      this.activityId = other.activityId;
5838
      this.agentId = other.agentId;
3087 mandeep.dh 5839
    }
5840
 
3390 mandeep.dh 5841
    public markAsRead_args deepCopy() {
5842
      return new markAsRead_args(this);
3087 mandeep.dh 5843
    }
5844
 
3430 rajveer 5845
    @Override
5846
    public void clear() {
5847
      setActivityIdIsSet(false);
5848
      this.activityId = 0;
5849
      setAgentIdIsSet(false);
5850
      this.agentId = 0;
3087 mandeep.dh 5851
    }
5852
 
3390 mandeep.dh 5853
    public long getActivityId() {
5854
      return this.activityId;
3087 mandeep.dh 5855
    }
5856
 
3430 rajveer 5857
    public void setActivityId(long activityId) {
3390 mandeep.dh 5858
      this.activityId = activityId;
5859
      setActivityIdIsSet(true);
3087 mandeep.dh 5860
    }
5861
 
3390 mandeep.dh 5862
    public void unsetActivityId() {
5863
      __isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);
3087 mandeep.dh 5864
    }
5865
 
3430 rajveer 5866
    /** Returns true if field activityId is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 5867
    public boolean isSetActivityId() {
5868
      return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);
3087 mandeep.dh 5869
    }
5870
 
3390 mandeep.dh 5871
    public void setActivityIdIsSet(boolean value) {
5872
      __isset_bit_vector.set(__ACTIVITYID_ISSET_ID, value);
3087 mandeep.dh 5873
    }
5874
 
3028 mandeep.dh 5875
    public long getAgentId() {
5876
      return this.agentId;
5877
    }
5878
 
3430 rajveer 5879
    public void setAgentId(long agentId) {
3028 mandeep.dh 5880
      this.agentId = agentId;
5881
      setAgentIdIsSet(true);
5882
    }
5883
 
5884
    public void unsetAgentId() {
5885
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
5886
    }
5887
 
3430 rajveer 5888
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 5889
    public boolean isSetAgentId() {
5890
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
5891
    }
5892
 
5893
    public void setAgentIdIsSet(boolean value) {
5894
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
5895
    }
5896
 
5897
    public void setFieldValue(_Fields field, Object value) {
5898
      switch (field) {
3390 mandeep.dh 5899
      case ACTIVITY_ID:
5900
        if (value == null) {
5901
          unsetActivityId();
5902
        } else {
5903
          setActivityId((Long)value);
5904
        }
5905
        break;
5906
 
3028 mandeep.dh 5907
      case AGENT_ID:
5908
        if (value == null) {
5909
          unsetAgentId();
5910
        } else {
5911
          setAgentId((Long)value);
5912
        }
5913
        break;
5914
 
5915
      }
5916
    }
5917
 
5918
    public Object getFieldValue(_Fields field) {
5919
      switch (field) {
3390 mandeep.dh 5920
      case ACTIVITY_ID:
3430 rajveer 5921
        return Long.valueOf(getActivityId());
3390 mandeep.dh 5922
 
3028 mandeep.dh 5923
      case AGENT_ID:
3430 rajveer 5924
        return Long.valueOf(getAgentId());
3028 mandeep.dh 5925
 
5926
      }
5927
      throw new IllegalStateException();
5928
    }
5929
 
3430 rajveer 5930
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5931
    public boolean isSet(_Fields field) {
5932
      if (field == null) {
5933
        throw new IllegalArgumentException();
5934
      }
3028 mandeep.dh 5935
 
5936
      switch (field) {
3390 mandeep.dh 5937
      case ACTIVITY_ID:
5938
        return isSetActivityId();
3028 mandeep.dh 5939
      case AGENT_ID:
5940
        return isSetAgentId();
5941
      }
5942
      throw new IllegalStateException();
5943
    }
5944
 
5945
    @Override
5946
    public boolean equals(Object that) {
5947
      if (that == null)
5948
        return false;
3390 mandeep.dh 5949
      if (that instanceof markAsRead_args)
5950
        return this.equals((markAsRead_args)that);
3028 mandeep.dh 5951
      return false;
5952
    }
5953
 
3390 mandeep.dh 5954
    public boolean equals(markAsRead_args that) {
3028 mandeep.dh 5955
      if (that == null)
5956
        return false;
5957
 
3390 mandeep.dh 5958
      boolean this_present_activityId = true;
5959
      boolean that_present_activityId = true;
5960
      if (this_present_activityId || that_present_activityId) {
5961
        if (!(this_present_activityId && that_present_activityId))
5962
          return false;
5963
        if (this.activityId != that.activityId)
5964
          return false;
5965
      }
5966
 
3028 mandeep.dh 5967
      boolean this_present_agentId = true;
5968
      boolean that_present_agentId = true;
5969
      if (this_present_agentId || that_present_agentId) {
5970
        if (!(this_present_agentId && that_present_agentId))
5971
          return false;
5972
        if (this.agentId != that.agentId)
5973
          return false;
5974
      }
5975
 
5976
      return true;
5977
    }
5978
 
5979
    @Override
5980
    public int hashCode() {
5981
      return 0;
5982
    }
5983
 
3390 mandeep.dh 5984
    public int compareTo(markAsRead_args other) {
3028 mandeep.dh 5985
      if (!getClass().equals(other.getClass())) {
5986
        return getClass().getName().compareTo(other.getClass().getName());
5987
      }
5988
 
5989
      int lastComparison = 0;
3390 mandeep.dh 5990
      markAsRead_args typedOther = (markAsRead_args)other;
3028 mandeep.dh 5991
 
3430 rajveer 5992
      lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(typedOther.isSetActivityId());
3390 mandeep.dh 5993
      if (lastComparison != 0) {
5994
        return lastComparison;
5995
      }
3430 rajveer 5996
      if (isSetActivityId()) {
5997
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activityId, typedOther.activityId);
5998
        if (lastComparison != 0) {
5999
          return lastComparison;
6000
        }
3390 mandeep.dh 6001
      }
3430 rajveer 6002
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
3028 mandeep.dh 6003
      if (lastComparison != 0) {
6004
        return lastComparison;
6005
      }
3430 rajveer 6006
      if (isSetAgentId()) {
6007
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
6008
        if (lastComparison != 0) {
6009
          return lastComparison;
6010
        }
3028 mandeep.dh 6011
      }
6012
      return 0;
6013
    }
6014
 
3430 rajveer 6015
    public _Fields fieldForId(int fieldId) {
6016
      return _Fields.findByThriftId(fieldId);
6017
    }
6018
 
6019
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6020
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6021
      iprot.readStructBegin();
6022
      while (true)
6023
      {
6024
        field = iprot.readFieldBegin();
3430 rajveer 6025
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6026
          break;
6027
        }
3430 rajveer 6028
        switch (field.id) {
6029
          case 1: // ACTIVITY_ID
6030
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6031
              this.activityId = iprot.readI64();
6032
              setActivityIdIsSet(true);
6033
            } else { 
6034
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6035
            }
6036
            break;
6037
          case 2: // AGENT_ID
6038
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6039
              this.agentId = iprot.readI64();
6040
              setAgentIdIsSet(true);
6041
            } else { 
6042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6043
            }
6044
            break;
6045
          default:
6046
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6047
        }
3430 rajveer 6048
        iprot.readFieldEnd();
3028 mandeep.dh 6049
      }
6050
      iprot.readStructEnd();
6051
      validate();
6052
    }
6053
 
3430 rajveer 6054
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6055
      validate();
6056
 
6057
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 6058
      oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);
6059
      oprot.writeI64(this.activityId);
6060
      oprot.writeFieldEnd();
3028 mandeep.dh 6061
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
6062
      oprot.writeI64(this.agentId);
6063
      oprot.writeFieldEnd();
6064
      oprot.writeFieldStop();
6065
      oprot.writeStructEnd();
6066
    }
6067
 
6068
    @Override
6069
    public String toString() {
3390 mandeep.dh 6070
      StringBuilder sb = new StringBuilder("markAsRead_args(");
3028 mandeep.dh 6071
      boolean first = true;
6072
 
3390 mandeep.dh 6073
      sb.append("activityId:");
6074
      sb.append(this.activityId);
6075
      first = false;
6076
      if (!first) sb.append(", ");
3028 mandeep.dh 6077
      sb.append("agentId:");
6078
      sb.append(this.agentId);
6079
      first = false;
6080
      sb.append(")");
6081
      return sb.toString();
6082
    }
6083
 
3430 rajveer 6084
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6085
      // check for required fields
6086
    }
6087
 
3430 rajveer 6088
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6089
      try {
6090
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6091
      } catch (org.apache.thrift.TException te) {
6092
        throw new java.io.IOException(te);
6093
      }
6094
    }
6095
 
6096
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6097
      try {
6098
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6099
        __isset_bit_vector = new BitSet(1);
6100
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6101
      } catch (org.apache.thrift.TException te) {
6102
        throw new java.io.IOException(te);
6103
      }
6104
    }
6105
 
3028 mandeep.dh 6106
  }
6107
 
3430 rajveer 6108
  public static class markAsRead_result implements org.apache.thrift.TBase<markAsRead_result, markAsRead_result._Fields>, java.io.Serializable, Cloneable   {
6109
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_result");
3028 mandeep.dh 6110
 
6111
 
6112
 
6113
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6114
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 6115
;
3028 mandeep.dh 6116
 
6117
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6118
 
6119
      static {
6120
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6121
          byName.put(field.getFieldName(), field);
6122
        }
6123
      }
6124
 
6125
      /**
6126
       * Find the _Fields constant that matches fieldId, or null if its not found.
6127
       */
6128
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6129
        switch(fieldId) {
6130
          default:
6131
            return null;
6132
        }
3028 mandeep.dh 6133
      }
6134
 
6135
      /**
6136
       * Find the _Fields constant that matches fieldId, throwing an exception
6137
       * if it is not found.
6138
       */
6139
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6140
        _Fields fields = findByThriftId(fieldId);
6141
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6142
        return fields;
6143
      }
6144
 
6145
      /**
6146
       * Find the _Fields constant that matches name, or null if its not found.
6147
       */
6148
      public static _Fields findByName(String name) {
6149
        return byName.get(name);
6150
      }
6151
 
6152
      private final short _thriftId;
6153
      private final String _fieldName;
6154
 
6155
      _Fields(short thriftId, String fieldName) {
6156
        _thriftId = thriftId;
6157
        _fieldName = fieldName;
6158
      }
6159
 
6160
      public short getThriftFieldId() {
6161
        return _thriftId;
6162
      }
6163
 
6164
      public String getFieldName() {
6165
        return _fieldName;
6166
      }
6167
    }
3430 rajveer 6168
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6169
    static {
3430 rajveer 6170
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6171
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6172
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_result.class, metaDataMap);
3028 mandeep.dh 6173
    }
6174
 
3390 mandeep.dh 6175
    public markAsRead_result() {
3028 mandeep.dh 6176
    }
6177
 
6178
    /**
6179
     * Performs a deep copy on <i>other</i>.
6180
     */
3390 mandeep.dh 6181
    public markAsRead_result(markAsRead_result other) {
3028 mandeep.dh 6182
    }
6183
 
3390 mandeep.dh 6184
    public markAsRead_result deepCopy() {
6185
      return new markAsRead_result(this);
3028 mandeep.dh 6186
    }
6187
 
3430 rajveer 6188
    @Override
6189
    public void clear() {
3028 mandeep.dh 6190
    }
6191
 
6192
    public void setFieldValue(_Fields field, Object value) {
6193
      switch (field) {
6194
      }
6195
    }
6196
 
6197
    public Object getFieldValue(_Fields field) {
6198
      switch (field) {
6199
      }
6200
      throw new IllegalStateException();
6201
    }
6202
 
3430 rajveer 6203
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6204
    public boolean isSet(_Fields field) {
6205
      if (field == null) {
6206
        throw new IllegalArgumentException();
6207
      }
3028 mandeep.dh 6208
 
6209
      switch (field) {
6210
      }
6211
      throw new IllegalStateException();
6212
    }
6213
 
6214
    @Override
6215
    public boolean equals(Object that) {
6216
      if (that == null)
6217
        return false;
3390 mandeep.dh 6218
      if (that instanceof markAsRead_result)
6219
        return this.equals((markAsRead_result)that);
3028 mandeep.dh 6220
      return false;
6221
    }
6222
 
3390 mandeep.dh 6223
    public boolean equals(markAsRead_result that) {
3028 mandeep.dh 6224
      if (that == null)
6225
        return false;
6226
 
6227
      return true;
6228
    }
6229
 
6230
    @Override
6231
    public int hashCode() {
6232
      return 0;
6233
    }
6234
 
3390 mandeep.dh 6235
    public int compareTo(markAsRead_result other) {
3028 mandeep.dh 6236
      if (!getClass().equals(other.getClass())) {
6237
        return getClass().getName().compareTo(other.getClass().getName());
6238
      }
6239
 
6240
      int lastComparison = 0;
3390 mandeep.dh 6241
      markAsRead_result typedOther = (markAsRead_result)other;
3028 mandeep.dh 6242
 
6243
      return 0;
6244
    }
6245
 
3430 rajveer 6246
    public _Fields fieldForId(int fieldId) {
6247
      return _Fields.findByThriftId(fieldId);
6248
    }
6249
 
6250
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6251
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6252
      iprot.readStructBegin();
6253
      while (true)
6254
      {
6255
        field = iprot.readFieldBegin();
3430 rajveer 6256
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6257
          break;
6258
        }
3430 rajveer 6259
        switch (field.id) {
6260
          default:
6261
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6262
        }
3430 rajveer 6263
        iprot.readFieldEnd();
3028 mandeep.dh 6264
      }
6265
      iprot.readStructEnd();
6266
      validate();
6267
    }
6268
 
3430 rajveer 6269
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6270
      oprot.writeStructBegin(STRUCT_DESC);
6271
 
6272
      oprot.writeFieldStop();
6273
      oprot.writeStructEnd();
6274
    }
6275
 
6276
    @Override
6277
    public String toString() {
3390 mandeep.dh 6278
      StringBuilder sb = new StringBuilder("markAsRead_result(");
3028 mandeep.dh 6279
      boolean first = true;
6280
 
6281
      sb.append(")");
6282
      return sb.toString();
6283
    }
6284
 
3430 rajveer 6285
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6286
      // check for required fields
6287
    }
6288
 
3430 rajveer 6289
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6290
      try {
6291
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6292
      } catch (org.apache.thrift.TException te) {
6293
        throw new java.io.IOException(te);
6294
      }
6295
    }
6296
 
6297
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6298
      try {
6299
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6300
      } catch (org.apache.thrift.TException te) {
6301
        throw new java.io.IOException(te);
6302
      }
6303
    }
6304
 
3028 mandeep.dh 6305
  }
6306
 
3430 rajveer 6307
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
6308
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
3028 mandeep.dh 6309
 
3430 rajveer 6310
    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);
3028 mandeep.dh 6311
 
3430 rajveer 6312
    private SearchFilter searchFilter; // required
3028 mandeep.dh 6313
 
6314
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6315
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 6316
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 6317
 
6318
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6319
 
6320
      static {
6321
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6322
          byName.put(field.getFieldName(), field);
6323
        }
6324
      }
6325
 
6326
      /**
6327
       * Find the _Fields constant that matches fieldId, or null if its not found.
6328
       */
6329
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6330
        switch(fieldId) {
6331
          case 1: // SEARCH_FILTER
6332
            return SEARCH_FILTER;
6333
          default:
6334
            return null;
6335
        }
3028 mandeep.dh 6336
      }
6337
 
6338
      /**
6339
       * Find the _Fields constant that matches fieldId, throwing an exception
6340
       * if it is not found.
6341
       */
6342
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6343
        _Fields fields = findByThriftId(fieldId);
6344
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6345
        return fields;
6346
      }
6347
 
6348
      /**
6349
       * Find the _Fields constant that matches name, or null if its not found.
6350
       */
6351
      public static _Fields findByName(String name) {
6352
        return byName.get(name);
6353
      }
6354
 
6355
      private final short _thriftId;
6356
      private final String _fieldName;
6357
 
6358
      _Fields(short thriftId, String fieldName) {
6359
        _thriftId = thriftId;
6360
        _fieldName = fieldName;
6361
      }
6362
 
6363
      public short getThriftFieldId() {
6364
        return _thriftId;
6365
      }
6366
 
6367
      public String getFieldName() {
6368
        return _fieldName;
6369
      }
6370
    }
6371
 
6372
    // isset id assignments
6373
 
3430 rajveer 6374
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6375
    static {
3430 rajveer 6376
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6377
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6378
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
6379
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6380
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
3028 mandeep.dh 6381
    }
6382
 
3390 mandeep.dh 6383
    public getAgents_args() {
3028 mandeep.dh 6384
    }
6385
 
3390 mandeep.dh 6386
    public getAgents_args(
6387
      SearchFilter searchFilter)
3028 mandeep.dh 6388
    {
6389
      this();
3390 mandeep.dh 6390
      this.searchFilter = searchFilter;
3028 mandeep.dh 6391
    }
6392
 
6393
    /**
6394
     * Performs a deep copy on <i>other</i>.
6395
     */
3390 mandeep.dh 6396
    public getAgents_args(getAgents_args other) {
6397
      if (other.isSetSearchFilter()) {
6398
        this.searchFilter = new SearchFilter(other.searchFilter);
3028 mandeep.dh 6399
      }
6400
    }
6401
 
3390 mandeep.dh 6402
    public getAgents_args deepCopy() {
6403
      return new getAgents_args(this);
3028 mandeep.dh 6404
    }
6405
 
3430 rajveer 6406
    @Override
6407
    public void clear() {
6408
      this.searchFilter = null;
3028 mandeep.dh 6409
    }
6410
 
3390 mandeep.dh 6411
    public SearchFilter getSearchFilter() {
6412
      return this.searchFilter;
3028 mandeep.dh 6413
    }
6414
 
3430 rajveer 6415
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 6416
      this.searchFilter = searchFilter;
3028 mandeep.dh 6417
    }
6418
 
3390 mandeep.dh 6419
    public void unsetSearchFilter() {
6420
      this.searchFilter = null;
3028 mandeep.dh 6421
    }
6422
 
3430 rajveer 6423
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 6424
    public boolean isSetSearchFilter() {
6425
      return this.searchFilter != null;
3028 mandeep.dh 6426
    }
6427
 
3390 mandeep.dh 6428
    public void setSearchFilterIsSet(boolean value) {
3028 mandeep.dh 6429
      if (!value) {
3390 mandeep.dh 6430
        this.searchFilter = null;
3028 mandeep.dh 6431
      }
6432
    }
6433
 
6434
    public void setFieldValue(_Fields field, Object value) {
6435
      switch (field) {
3390 mandeep.dh 6436
      case SEARCH_FILTER:
3028 mandeep.dh 6437
        if (value == null) {
3390 mandeep.dh 6438
          unsetSearchFilter();
3028 mandeep.dh 6439
        } else {
3390 mandeep.dh 6440
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 6441
        }
6442
        break;
6443
 
6444
      }
6445
    }
6446
 
6447
    public Object getFieldValue(_Fields field) {
6448
      switch (field) {
3390 mandeep.dh 6449
      case SEARCH_FILTER:
6450
        return getSearchFilter();
3028 mandeep.dh 6451
 
6452
      }
6453
      throw new IllegalStateException();
6454
    }
6455
 
3430 rajveer 6456
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6457
    public boolean isSet(_Fields field) {
6458
      if (field == null) {
6459
        throw new IllegalArgumentException();
6460
      }
3028 mandeep.dh 6461
 
6462
      switch (field) {
3390 mandeep.dh 6463
      case SEARCH_FILTER:
6464
        return isSetSearchFilter();
3028 mandeep.dh 6465
      }
6466
      throw new IllegalStateException();
6467
    }
6468
 
6469
    @Override
6470
    public boolean equals(Object that) {
6471
      if (that == null)
6472
        return false;
3390 mandeep.dh 6473
      if (that instanceof getAgents_args)
6474
        return this.equals((getAgents_args)that);
3028 mandeep.dh 6475
      return false;
6476
    }
6477
 
3390 mandeep.dh 6478
    public boolean equals(getAgents_args that) {
3028 mandeep.dh 6479
      if (that == null)
6480
        return false;
6481
 
3390 mandeep.dh 6482
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
6483
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
6484
      if (this_present_searchFilter || that_present_searchFilter) {
6485
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 6486
          return false;
3390 mandeep.dh 6487
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 6488
          return false;
6489
      }
6490
 
6491
      return true;
6492
    }
6493
 
6494
    @Override
6495
    public int hashCode() {
6496
      return 0;
6497
    }
6498
 
3390 mandeep.dh 6499
    public int compareTo(getAgents_args other) {
3028 mandeep.dh 6500
      if (!getClass().equals(other.getClass())) {
6501
        return getClass().getName().compareTo(other.getClass().getName());
6502
      }
6503
 
6504
      int lastComparison = 0;
3390 mandeep.dh 6505
      getAgents_args typedOther = (getAgents_args)other;
3028 mandeep.dh 6506
 
3430 rajveer 6507
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 6508
      if (lastComparison != 0) {
6509
        return lastComparison;
6510
      }
3430 rajveer 6511
      if (isSetSearchFilter()) {
6512
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
6513
        if (lastComparison != 0) {
6514
          return lastComparison;
6515
        }
3028 mandeep.dh 6516
      }
6517
      return 0;
6518
    }
6519
 
3430 rajveer 6520
    public _Fields fieldForId(int fieldId) {
6521
      return _Fields.findByThriftId(fieldId);
6522
    }
6523
 
6524
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6525
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6526
      iprot.readStructBegin();
6527
      while (true)
6528
      {
6529
        field = iprot.readFieldBegin();
3430 rajveer 6530
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6531
          break;
6532
        }
3430 rajveer 6533
        switch (field.id) {
6534
          case 1: // SEARCH_FILTER
6535
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6536
              this.searchFilter = new SearchFilter();
6537
              this.searchFilter.read(iprot);
6538
            } else { 
6539
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6540
            }
6541
            break;
6542
          default:
6543
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6544
        }
3430 rajveer 6545
        iprot.readFieldEnd();
3028 mandeep.dh 6546
      }
6547
      iprot.readStructEnd();
6548
      validate();
6549
    }
6550
 
3430 rajveer 6551
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6552
      validate();
6553
 
6554
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 6555
      if (this.searchFilter != null) {
6556
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
6557
        this.searchFilter.write(oprot);
3028 mandeep.dh 6558
        oprot.writeFieldEnd();
6559
      }
6560
      oprot.writeFieldStop();
6561
      oprot.writeStructEnd();
6562
    }
6563
 
6564
    @Override
6565
    public String toString() {
3390 mandeep.dh 6566
      StringBuilder sb = new StringBuilder("getAgents_args(");
3028 mandeep.dh 6567
      boolean first = true;
6568
 
3390 mandeep.dh 6569
      sb.append("searchFilter:");
6570
      if (this.searchFilter == null) {
3028 mandeep.dh 6571
        sb.append("null");
6572
      } else {
3390 mandeep.dh 6573
        sb.append(this.searchFilter);
3028 mandeep.dh 6574
      }
6575
      first = false;
6576
      sb.append(")");
6577
      return sb.toString();
6578
    }
6579
 
3430 rajveer 6580
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6581
      // check for required fields
6582
    }
6583
 
3430 rajveer 6584
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6585
      try {
6586
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6587
      } catch (org.apache.thrift.TException te) {
6588
        throw new java.io.IOException(te);
6589
      }
6590
    }
6591
 
6592
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6593
      try {
6594
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6595
      } catch (org.apache.thrift.TException te) {
6596
        throw new java.io.IOException(te);
6597
      }
6598
    }
6599
 
3028 mandeep.dh 6600
  }
6601
 
3430 rajveer 6602
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
6603
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
3028 mandeep.dh 6604
 
3430 rajveer 6605
    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);
3028 mandeep.dh 6606
 
3430 rajveer 6607
    private List<Agent> success; // required
3028 mandeep.dh 6608
 
6609
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6610
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 6611
      SUCCESS((short)0, "success");
6612
 
6613
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6614
 
6615
      static {
6616
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6617
          byName.put(field.getFieldName(), field);
6618
        }
6619
      }
6620
 
6621
      /**
6622
       * Find the _Fields constant that matches fieldId, or null if its not found.
6623
       */
6624
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6625
        switch(fieldId) {
6626
          case 0: // SUCCESS
6627
            return SUCCESS;
6628
          default:
6629
            return null;
6630
        }
3028 mandeep.dh 6631
      }
6632
 
6633
      /**
6634
       * Find the _Fields constant that matches fieldId, throwing an exception
6635
       * if it is not found.
6636
       */
6637
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6638
        _Fields fields = findByThriftId(fieldId);
6639
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6640
        return fields;
6641
      }
6642
 
6643
      /**
6644
       * Find the _Fields constant that matches name, or null if its not found.
6645
       */
6646
      public static _Fields findByName(String name) {
6647
        return byName.get(name);
6648
      }
6649
 
6650
      private final short _thriftId;
6651
      private final String _fieldName;
6652
 
6653
      _Fields(short thriftId, String fieldName) {
6654
        _thriftId = thriftId;
6655
        _fieldName = fieldName;
6656
      }
6657
 
6658
      public short getThriftFieldId() {
6659
        return _thriftId;
6660
      }
6661
 
6662
      public String getFieldName() {
6663
        return _fieldName;
6664
      }
6665
    }
6666
 
6667
    // isset id assignments
6668
 
3430 rajveer 6669
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6670
    static {
3430 rajveer 6671
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6672
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6673
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6674
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
6675
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6676
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
3028 mandeep.dh 6677
    }
6678
 
3390 mandeep.dh 6679
    public getAgents_result() {
3028 mandeep.dh 6680
    }
6681
 
3390 mandeep.dh 6682
    public getAgents_result(
6683
      List<Agent> success)
3028 mandeep.dh 6684
    {
6685
      this();
6686
      this.success = success;
6687
    }
6688
 
6689
    /**
6690
     * Performs a deep copy on <i>other</i>.
6691
     */
3390 mandeep.dh 6692
    public getAgents_result(getAgents_result other) {
3028 mandeep.dh 6693
      if (other.isSetSuccess()) {
3390 mandeep.dh 6694
        List<Agent> __this__success = new ArrayList<Agent>();
6695
        for (Agent other_element : other.success) {
6696
          __this__success.add(new Agent(other_element));
6697
        }
6698
        this.success = __this__success;
3028 mandeep.dh 6699
      }
6700
    }
6701
 
3390 mandeep.dh 6702
    public getAgents_result deepCopy() {
6703
      return new getAgents_result(this);
3028 mandeep.dh 6704
    }
6705
 
3430 rajveer 6706
    @Override
6707
    public void clear() {
6708
      this.success = null;
3028 mandeep.dh 6709
    }
6710
 
3390 mandeep.dh 6711
    public int getSuccessSize() {
6712
      return (this.success == null) ? 0 : this.success.size();
6713
    }
6714
 
6715
    public java.util.Iterator<Agent> getSuccessIterator() {
6716
      return (this.success == null) ? null : this.success.iterator();
6717
    }
6718
 
6719
    public void addToSuccess(Agent elem) {
6720
      if (this.success == null) {
6721
        this.success = new ArrayList<Agent>();
6722
      }
6723
      this.success.add(elem);
6724
    }
6725
 
6726
    public List<Agent> getSuccess() {
3028 mandeep.dh 6727
      return this.success;
6728
    }
6729
 
3430 rajveer 6730
    public void setSuccess(List<Agent> success) {
3028 mandeep.dh 6731
      this.success = success;
6732
    }
6733
 
6734
    public void unsetSuccess() {
6735
      this.success = null;
6736
    }
6737
 
3430 rajveer 6738
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 6739
    public boolean isSetSuccess() {
6740
      return this.success != null;
6741
    }
6742
 
6743
    public void setSuccessIsSet(boolean value) {
6744
      if (!value) {
6745
        this.success = null;
6746
      }
6747
    }
6748
 
6749
    public void setFieldValue(_Fields field, Object value) {
6750
      switch (field) {
6751
      case SUCCESS:
6752
        if (value == null) {
6753
          unsetSuccess();
6754
        } else {
3390 mandeep.dh 6755
          setSuccess((List<Agent>)value);
3028 mandeep.dh 6756
        }
6757
        break;
6758
 
6759
      }
6760
    }
6761
 
6762
    public Object getFieldValue(_Fields field) {
6763
      switch (field) {
6764
      case SUCCESS:
6765
        return getSuccess();
6766
 
6767
      }
6768
      throw new IllegalStateException();
6769
    }
6770
 
3430 rajveer 6771
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6772
    public boolean isSet(_Fields field) {
6773
      if (field == null) {
6774
        throw new IllegalArgumentException();
6775
      }
3028 mandeep.dh 6776
 
6777
      switch (field) {
6778
      case SUCCESS:
6779
        return isSetSuccess();
6780
      }
6781
      throw new IllegalStateException();
6782
    }
6783
 
6784
    @Override
6785
    public boolean equals(Object that) {
6786
      if (that == null)
6787
        return false;
3390 mandeep.dh 6788
      if (that instanceof getAgents_result)
6789
        return this.equals((getAgents_result)that);
3028 mandeep.dh 6790
      return false;
6791
    }
6792
 
3390 mandeep.dh 6793
    public boolean equals(getAgents_result that) {
3028 mandeep.dh 6794
      if (that == null)
6795
        return false;
6796
 
6797
      boolean this_present_success = true && this.isSetSuccess();
6798
      boolean that_present_success = true && that.isSetSuccess();
6799
      if (this_present_success || that_present_success) {
6800
        if (!(this_present_success && that_present_success))
6801
          return false;
6802
        if (!this.success.equals(that.success))
6803
          return false;
6804
      }
6805
 
6806
      return true;
6807
    }
6808
 
6809
    @Override
6810
    public int hashCode() {
6811
      return 0;
6812
    }
6813
 
3390 mandeep.dh 6814
    public int compareTo(getAgents_result other) {
3028 mandeep.dh 6815
      if (!getClass().equals(other.getClass())) {
6816
        return getClass().getName().compareTo(other.getClass().getName());
6817
      }
6818
 
6819
      int lastComparison = 0;
3390 mandeep.dh 6820
      getAgents_result typedOther = (getAgents_result)other;
3028 mandeep.dh 6821
 
3430 rajveer 6822
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 6823
      if (lastComparison != 0) {
6824
        return lastComparison;
6825
      }
3430 rajveer 6826
      if (isSetSuccess()) {
6827
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6828
        if (lastComparison != 0) {
6829
          return lastComparison;
6830
        }
3028 mandeep.dh 6831
      }
6832
      return 0;
6833
    }
6834
 
3430 rajveer 6835
    public _Fields fieldForId(int fieldId) {
6836
      return _Fields.findByThriftId(fieldId);
6837
    }
6838
 
6839
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6840
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6841
      iprot.readStructBegin();
6842
      while (true)
6843
      {
6844
        field = iprot.readFieldBegin();
3430 rajveer 6845
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6846
          break;
6847
        }
3430 rajveer 6848
        switch (field.id) {
6849
          case 0: // SUCCESS
6850
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6851
              {
3546 mandeep.dh 6852
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
6853
                this.success = new ArrayList<Agent>(_list24.size);
6854
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
3390 mandeep.dh 6855
                {
3546 mandeep.dh 6856
                  Agent _elem26; // required
6857
                  _elem26 = new Agent();
6858
                  _elem26.read(iprot);
6859
                  this.success.add(_elem26);
3390 mandeep.dh 6860
                }
3430 rajveer 6861
                iprot.readListEnd();
3028 mandeep.dh 6862
              }
3430 rajveer 6863
            } else { 
6864
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6865
            }
6866
            break;
6867
          default:
6868
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6869
        }
3430 rajveer 6870
        iprot.readFieldEnd();
3028 mandeep.dh 6871
      }
6872
      iprot.readStructEnd();
6873
      validate();
6874
    }
6875
 
3430 rajveer 6876
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6877
      oprot.writeStructBegin(STRUCT_DESC);
6878
 
6879
      if (this.isSetSuccess()) {
6880
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3390 mandeep.dh 6881
        {
3430 rajveer 6882
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 6883
          for (Agent _iter27 : this.success)
3390 mandeep.dh 6884
          {
3546 mandeep.dh 6885
            _iter27.write(oprot);
3390 mandeep.dh 6886
          }
6887
          oprot.writeListEnd();
6888
        }
3028 mandeep.dh 6889
        oprot.writeFieldEnd();
6890
      }
6891
      oprot.writeFieldStop();
6892
      oprot.writeStructEnd();
6893
    }
6894
 
6895
    @Override
6896
    public String toString() {
3390 mandeep.dh 6897
      StringBuilder sb = new StringBuilder("getAgents_result(");
3028 mandeep.dh 6898
      boolean first = true;
6899
 
6900
      sb.append("success:");
6901
      if (this.success == null) {
6902
        sb.append("null");
6903
      } else {
6904
        sb.append(this.success);
6905
      }
6906
      first = false;
6907
      sb.append(")");
6908
      return sb.toString();
6909
    }
6910
 
3430 rajveer 6911
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6912
      // check for required fields
6913
    }
6914
 
3430 rajveer 6915
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6916
      try {
6917
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6918
      } catch (org.apache.thrift.TException te) {
6919
        throw new java.io.IOException(te);
6920
      }
6921
    }
6922
 
6923
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6924
      try {
6925
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6926
      } catch (org.apache.thrift.TException te) {
6927
        throw new java.io.IOException(te);
6928
      }
6929
    }
6930
 
3028 mandeep.dh 6931
  }
6932
 
5287 amar.kumar 6933
  public static class getInactiveAgents_args implements org.apache.thrift.TBase<getInactiveAgents_args, getInactiveAgents_args._Fields>, java.io.Serializable, Cloneable   {
6934
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_args");
6935
 
6936
    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);
6937
 
6938
    private SearchFilter searchFilter; // required
6939
 
6940
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6941
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6942
      SEARCH_FILTER((short)1, "searchFilter");
6943
 
6944
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6945
 
6946
      static {
6947
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6948
          byName.put(field.getFieldName(), field);
6949
        }
6950
      }
6951
 
6952
      /**
6953
       * Find the _Fields constant that matches fieldId, or null if its not found.
6954
       */
6955
      public static _Fields findByThriftId(int fieldId) {
6956
        switch(fieldId) {
6957
          case 1: // SEARCH_FILTER
6958
            return SEARCH_FILTER;
6959
          default:
6960
            return null;
6961
        }
6962
      }
6963
 
6964
      /**
6965
       * Find the _Fields constant that matches fieldId, throwing an exception
6966
       * if it is not found.
6967
       */
6968
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6969
        _Fields fields = findByThriftId(fieldId);
6970
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6971
        return fields;
6972
      }
6973
 
6974
      /**
6975
       * Find the _Fields constant that matches name, or null if its not found.
6976
       */
6977
      public static _Fields findByName(String name) {
6978
        return byName.get(name);
6979
      }
6980
 
6981
      private final short _thriftId;
6982
      private final String _fieldName;
6983
 
6984
      _Fields(short thriftId, String fieldName) {
6985
        _thriftId = thriftId;
6986
        _fieldName = fieldName;
6987
      }
6988
 
6989
      public short getThriftFieldId() {
6990
        return _thriftId;
6991
      }
6992
 
6993
      public String getFieldName() {
6994
        return _fieldName;
6995
      }
6996
    }
6997
 
6998
    // isset id assignments
6999
 
7000
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7001
    static {
7002
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7003
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7004
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
7005
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7006
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_args.class, metaDataMap);
7007
    }
7008
 
7009
    public getInactiveAgents_args() {
7010
    }
7011
 
7012
    public getInactiveAgents_args(
7013
      SearchFilter searchFilter)
7014
    {
7015
      this();
7016
      this.searchFilter = searchFilter;
7017
    }
7018
 
7019
    /**
7020
     * Performs a deep copy on <i>other</i>.
7021
     */
7022
    public getInactiveAgents_args(getInactiveAgents_args other) {
7023
      if (other.isSetSearchFilter()) {
7024
        this.searchFilter = new SearchFilter(other.searchFilter);
7025
      }
7026
    }
7027
 
7028
    public getInactiveAgents_args deepCopy() {
7029
      return new getInactiveAgents_args(this);
7030
    }
7031
 
7032
    @Override
7033
    public void clear() {
7034
      this.searchFilter = null;
7035
    }
7036
 
7037
    public SearchFilter getSearchFilter() {
7038
      return this.searchFilter;
7039
    }
7040
 
7041
    public void setSearchFilter(SearchFilter searchFilter) {
7042
      this.searchFilter = searchFilter;
7043
    }
7044
 
7045
    public void unsetSearchFilter() {
7046
      this.searchFilter = null;
7047
    }
7048
 
7049
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
7050
    public boolean isSetSearchFilter() {
7051
      return this.searchFilter != null;
7052
    }
7053
 
7054
    public void setSearchFilterIsSet(boolean value) {
7055
      if (!value) {
7056
        this.searchFilter = null;
7057
      }
7058
    }
7059
 
7060
    public void setFieldValue(_Fields field, Object value) {
7061
      switch (field) {
7062
      case SEARCH_FILTER:
7063
        if (value == null) {
7064
          unsetSearchFilter();
7065
        } else {
7066
          setSearchFilter((SearchFilter)value);
7067
        }
7068
        break;
7069
 
7070
      }
7071
    }
7072
 
7073
    public Object getFieldValue(_Fields field) {
7074
      switch (field) {
7075
      case SEARCH_FILTER:
7076
        return getSearchFilter();
7077
 
7078
      }
7079
      throw new IllegalStateException();
7080
    }
7081
 
7082
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7083
    public boolean isSet(_Fields field) {
7084
      if (field == null) {
7085
        throw new IllegalArgumentException();
7086
      }
7087
 
7088
      switch (field) {
7089
      case SEARCH_FILTER:
7090
        return isSetSearchFilter();
7091
      }
7092
      throw new IllegalStateException();
7093
    }
7094
 
7095
    @Override
7096
    public boolean equals(Object that) {
7097
      if (that == null)
7098
        return false;
7099
      if (that instanceof getInactiveAgents_args)
7100
        return this.equals((getInactiveAgents_args)that);
7101
      return false;
7102
    }
7103
 
7104
    public boolean equals(getInactiveAgents_args that) {
7105
      if (that == null)
7106
        return false;
7107
 
7108
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
7109
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
7110
      if (this_present_searchFilter || that_present_searchFilter) {
7111
        if (!(this_present_searchFilter && that_present_searchFilter))
7112
          return false;
7113
        if (!this.searchFilter.equals(that.searchFilter))
7114
          return false;
7115
      }
7116
 
7117
      return true;
7118
    }
7119
 
7120
    @Override
7121
    public int hashCode() {
7122
      return 0;
7123
    }
7124
 
7125
    public int compareTo(getInactiveAgents_args other) {
7126
      if (!getClass().equals(other.getClass())) {
7127
        return getClass().getName().compareTo(other.getClass().getName());
7128
      }
7129
 
7130
      int lastComparison = 0;
7131
      getInactiveAgents_args typedOther = (getInactiveAgents_args)other;
7132
 
7133
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
7134
      if (lastComparison != 0) {
7135
        return lastComparison;
7136
      }
7137
      if (isSetSearchFilter()) {
7138
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
7139
        if (lastComparison != 0) {
7140
          return lastComparison;
7141
        }
7142
      }
7143
      return 0;
7144
    }
7145
 
7146
    public _Fields fieldForId(int fieldId) {
7147
      return _Fields.findByThriftId(fieldId);
7148
    }
7149
 
7150
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7151
      org.apache.thrift.protocol.TField field;
7152
      iprot.readStructBegin();
7153
      while (true)
7154
      {
7155
        field = iprot.readFieldBegin();
7156
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7157
          break;
7158
        }
7159
        switch (field.id) {
7160
          case 1: // SEARCH_FILTER
7161
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7162
              this.searchFilter = new SearchFilter();
7163
              this.searchFilter.read(iprot);
7164
            } else { 
7165
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7166
            }
7167
            break;
7168
          default:
7169
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7170
        }
7171
        iprot.readFieldEnd();
7172
      }
7173
      iprot.readStructEnd();
7174
      validate();
7175
    }
7176
 
7177
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7178
      validate();
7179
 
7180
      oprot.writeStructBegin(STRUCT_DESC);
7181
      if (this.searchFilter != null) {
7182
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
7183
        this.searchFilter.write(oprot);
7184
        oprot.writeFieldEnd();
7185
      }
7186
      oprot.writeFieldStop();
7187
      oprot.writeStructEnd();
7188
    }
7189
 
7190
    @Override
7191
    public String toString() {
7192
      StringBuilder sb = new StringBuilder("getInactiveAgents_args(");
7193
      boolean first = true;
7194
 
7195
      sb.append("searchFilter:");
7196
      if (this.searchFilter == null) {
7197
        sb.append("null");
7198
      } else {
7199
        sb.append(this.searchFilter);
7200
      }
7201
      first = false;
7202
      sb.append(")");
7203
      return sb.toString();
7204
    }
7205
 
7206
    public void validate() throws org.apache.thrift.TException {
7207
      // check for required fields
7208
    }
7209
 
7210
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7211
      try {
7212
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7213
      } catch (org.apache.thrift.TException te) {
7214
        throw new java.io.IOException(te);
7215
      }
7216
    }
7217
 
7218
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7219
      try {
7220
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7221
      } catch (org.apache.thrift.TException te) {
7222
        throw new java.io.IOException(te);
7223
      }
7224
    }
7225
 
7226
  }
7227
 
7228
  public static class getInactiveAgents_result implements org.apache.thrift.TBase<getInactiveAgents_result, getInactiveAgents_result._Fields>, java.io.Serializable, Cloneable   {
7229
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_result");
7230
 
7231
    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);
7232
 
7233
    private List<Agent> success; // required
7234
 
7235
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7236
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7237
      SUCCESS((short)0, "success");
7238
 
7239
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7240
 
7241
      static {
7242
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7243
          byName.put(field.getFieldName(), field);
7244
        }
7245
      }
7246
 
7247
      /**
7248
       * Find the _Fields constant that matches fieldId, or null if its not found.
7249
       */
7250
      public static _Fields findByThriftId(int fieldId) {
7251
        switch(fieldId) {
7252
          case 0: // SUCCESS
7253
            return SUCCESS;
7254
          default:
7255
            return null;
7256
        }
7257
      }
7258
 
7259
      /**
7260
       * Find the _Fields constant that matches fieldId, throwing an exception
7261
       * if it is not found.
7262
       */
7263
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7264
        _Fields fields = findByThriftId(fieldId);
7265
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7266
        return fields;
7267
      }
7268
 
7269
      /**
7270
       * Find the _Fields constant that matches name, or null if its not found.
7271
       */
7272
      public static _Fields findByName(String name) {
7273
        return byName.get(name);
7274
      }
7275
 
7276
      private final short _thriftId;
7277
      private final String _fieldName;
7278
 
7279
      _Fields(short thriftId, String fieldName) {
7280
        _thriftId = thriftId;
7281
        _fieldName = fieldName;
7282
      }
7283
 
7284
      public short getThriftFieldId() {
7285
        return _thriftId;
7286
      }
7287
 
7288
      public String getFieldName() {
7289
        return _fieldName;
7290
      }
7291
    }
7292
 
7293
    // isset id assignments
7294
 
7295
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7296
    static {
7297
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7298
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7299
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7300
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
7301
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7302
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_result.class, metaDataMap);
7303
    }
7304
 
7305
    public getInactiveAgents_result() {
7306
    }
7307
 
7308
    public getInactiveAgents_result(
7309
      List<Agent> success)
7310
    {
7311
      this();
7312
      this.success = success;
7313
    }
7314
 
7315
    /**
7316
     * Performs a deep copy on <i>other</i>.
7317
     */
7318
    public getInactiveAgents_result(getInactiveAgents_result other) {
7319
      if (other.isSetSuccess()) {
7320
        List<Agent> __this__success = new ArrayList<Agent>();
7321
        for (Agent other_element : other.success) {
7322
          __this__success.add(new Agent(other_element));
7323
        }
7324
        this.success = __this__success;
7325
      }
7326
    }
7327
 
7328
    public getInactiveAgents_result deepCopy() {
7329
      return new getInactiveAgents_result(this);
7330
    }
7331
 
7332
    @Override
7333
    public void clear() {
7334
      this.success = null;
7335
    }
7336
 
7337
    public int getSuccessSize() {
7338
      return (this.success == null) ? 0 : this.success.size();
7339
    }
7340
 
7341
    public java.util.Iterator<Agent> getSuccessIterator() {
7342
      return (this.success == null) ? null : this.success.iterator();
7343
    }
7344
 
7345
    public void addToSuccess(Agent elem) {
7346
      if (this.success == null) {
7347
        this.success = new ArrayList<Agent>();
7348
      }
7349
      this.success.add(elem);
7350
    }
7351
 
7352
    public List<Agent> getSuccess() {
7353
      return this.success;
7354
    }
7355
 
7356
    public void setSuccess(List<Agent> success) {
7357
      this.success = success;
7358
    }
7359
 
7360
    public void unsetSuccess() {
7361
      this.success = null;
7362
    }
7363
 
7364
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7365
    public boolean isSetSuccess() {
7366
      return this.success != null;
7367
    }
7368
 
7369
    public void setSuccessIsSet(boolean value) {
7370
      if (!value) {
7371
        this.success = null;
7372
      }
7373
    }
7374
 
7375
    public void setFieldValue(_Fields field, Object value) {
7376
      switch (field) {
7377
      case SUCCESS:
7378
        if (value == null) {
7379
          unsetSuccess();
7380
        } else {
7381
          setSuccess((List<Agent>)value);
7382
        }
7383
        break;
7384
 
7385
      }
7386
    }
7387
 
7388
    public Object getFieldValue(_Fields field) {
7389
      switch (field) {
7390
      case SUCCESS:
7391
        return getSuccess();
7392
 
7393
      }
7394
      throw new IllegalStateException();
7395
    }
7396
 
7397
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7398
    public boolean isSet(_Fields field) {
7399
      if (field == null) {
7400
        throw new IllegalArgumentException();
7401
      }
7402
 
7403
      switch (field) {
7404
      case SUCCESS:
7405
        return isSetSuccess();
7406
      }
7407
      throw new IllegalStateException();
7408
    }
7409
 
7410
    @Override
7411
    public boolean equals(Object that) {
7412
      if (that == null)
7413
        return false;
7414
      if (that instanceof getInactiveAgents_result)
7415
        return this.equals((getInactiveAgents_result)that);
7416
      return false;
7417
    }
7418
 
7419
    public boolean equals(getInactiveAgents_result that) {
7420
      if (that == null)
7421
        return false;
7422
 
7423
      boolean this_present_success = true && this.isSetSuccess();
7424
      boolean that_present_success = true && that.isSetSuccess();
7425
      if (this_present_success || that_present_success) {
7426
        if (!(this_present_success && that_present_success))
7427
          return false;
7428
        if (!this.success.equals(that.success))
7429
          return false;
7430
      }
7431
 
7432
      return true;
7433
    }
7434
 
7435
    @Override
7436
    public int hashCode() {
7437
      return 0;
7438
    }
7439
 
7440
    public int compareTo(getInactiveAgents_result other) {
7441
      if (!getClass().equals(other.getClass())) {
7442
        return getClass().getName().compareTo(other.getClass().getName());
7443
      }
7444
 
7445
      int lastComparison = 0;
7446
      getInactiveAgents_result typedOther = (getInactiveAgents_result)other;
7447
 
7448
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7449
      if (lastComparison != 0) {
7450
        return lastComparison;
7451
      }
7452
      if (isSetSuccess()) {
7453
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7454
        if (lastComparison != 0) {
7455
          return lastComparison;
7456
        }
7457
      }
7458
      return 0;
7459
    }
7460
 
7461
    public _Fields fieldForId(int fieldId) {
7462
      return _Fields.findByThriftId(fieldId);
7463
    }
7464
 
7465
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7466
      org.apache.thrift.protocol.TField field;
7467
      iprot.readStructBegin();
7468
      while (true)
7469
      {
7470
        field = iprot.readFieldBegin();
7471
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7472
          break;
7473
        }
7474
        switch (field.id) {
7475
          case 0: // SUCCESS
7476
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7477
              {
7478
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
7479
                this.success = new ArrayList<Agent>(_list28.size);
7480
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7481
                {
7482
                  Agent _elem30; // required
7483
                  _elem30 = new Agent();
7484
                  _elem30.read(iprot);
7485
                  this.success.add(_elem30);
7486
                }
7487
                iprot.readListEnd();
7488
              }
7489
            } else { 
7490
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7491
            }
7492
            break;
7493
          default:
7494
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7495
        }
7496
        iprot.readFieldEnd();
7497
      }
7498
      iprot.readStructEnd();
7499
      validate();
7500
    }
7501
 
7502
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7503
      oprot.writeStructBegin(STRUCT_DESC);
7504
 
7505
      if (this.isSetSuccess()) {
7506
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7507
        {
7508
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7509
          for (Agent _iter31 : this.success)
7510
          {
7511
            _iter31.write(oprot);
7512
          }
7513
          oprot.writeListEnd();
7514
        }
7515
        oprot.writeFieldEnd();
7516
      }
7517
      oprot.writeFieldStop();
7518
      oprot.writeStructEnd();
7519
    }
7520
 
7521
    @Override
7522
    public String toString() {
7523
      StringBuilder sb = new StringBuilder("getInactiveAgents_result(");
7524
      boolean first = true;
7525
 
7526
      sb.append("success:");
7527
      if (this.success == null) {
7528
        sb.append("null");
7529
      } else {
7530
        sb.append(this.success);
7531
      }
7532
      first = false;
7533
      sb.append(")");
7534
      return sb.toString();
7535
    }
7536
 
7537
    public void validate() throws org.apache.thrift.TException {
7538
      // check for required fields
7539
    }
7540
 
7541
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7542
      try {
7543
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7544
      } catch (org.apache.thrift.TException te) {
7545
        throw new java.io.IOException(te);
7546
      }
7547
    }
7548
 
7549
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7550
      try {
7551
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7552
      } catch (org.apache.thrift.TException te) {
7553
        throw new java.io.IOException(te);
7554
      }
7555
    }
7556
 
7557
  }
7558
 
3430 rajveer 7559
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
7560
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
3087 mandeep.dh 7561
 
3430 rajveer 7562
    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);
7563
    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);
3087 mandeep.dh 7564
 
3430 rajveer 7565
    private String agentEmailId; // required
7566
    private String password; // required
3087 mandeep.dh 7567
 
7568
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7569
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 7570
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
7571
      PASSWORD((short)2, "password");
7572
 
7573
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7574
 
7575
      static {
7576
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7577
          byName.put(field.getFieldName(), field);
7578
        }
7579
      }
7580
 
7581
      /**
7582
       * Find the _Fields constant that matches fieldId, or null if its not found.
7583
       */
7584
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7585
        switch(fieldId) {
7586
          case 1: // AGENT_EMAIL_ID
7587
            return AGENT_EMAIL_ID;
7588
          case 2: // PASSWORD
7589
            return PASSWORD;
7590
          default:
7591
            return null;
7592
        }
3087 mandeep.dh 7593
      }
7594
 
7595
      /**
7596
       * Find the _Fields constant that matches fieldId, throwing an exception
7597
       * if it is not found.
7598
       */
7599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7600
        _Fields fields = findByThriftId(fieldId);
7601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7602
        return fields;
7603
      }
7604
 
7605
      /**
7606
       * Find the _Fields constant that matches name, or null if its not found.
7607
       */
7608
      public static _Fields findByName(String name) {
7609
        return byName.get(name);
7610
      }
7611
 
7612
      private final short _thriftId;
7613
      private final String _fieldName;
7614
 
7615
      _Fields(short thriftId, String fieldName) {
7616
        _thriftId = thriftId;
7617
        _fieldName = fieldName;
7618
      }
7619
 
7620
      public short getThriftFieldId() {
7621
        return _thriftId;
7622
      }
7623
 
7624
      public String getFieldName() {
7625
        return _fieldName;
7626
      }
7627
    }
7628
 
7629
    // isset id assignments
7630
 
3430 rajveer 7631
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 7632
    static {
3430 rajveer 7633
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7634
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7636
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
3087 mandeep.dh 7640
    }
7641
 
7642
    public updatePasswordForAgent_args() {
7643
    }
7644
 
7645
    public updatePasswordForAgent_args(
7646
      String agentEmailId,
7647
      String password)
7648
    {
7649
      this();
7650
      this.agentEmailId = agentEmailId;
7651
      this.password = password;
7652
    }
7653
 
7654
    /**
7655
     * Performs a deep copy on <i>other</i>.
7656
     */
7657
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
7658
      if (other.isSetAgentEmailId()) {
7659
        this.agentEmailId = other.agentEmailId;
7660
      }
7661
      if (other.isSetPassword()) {
7662
        this.password = other.password;
7663
      }
7664
    }
7665
 
7666
    public updatePasswordForAgent_args deepCopy() {
7667
      return new updatePasswordForAgent_args(this);
7668
    }
7669
 
3430 rajveer 7670
    @Override
7671
    public void clear() {
7672
      this.agentEmailId = null;
7673
      this.password = null;
3087 mandeep.dh 7674
    }
7675
 
7676
    public String getAgentEmailId() {
7677
      return this.agentEmailId;
7678
    }
7679
 
3430 rajveer 7680
    public void setAgentEmailId(String agentEmailId) {
3087 mandeep.dh 7681
      this.agentEmailId = agentEmailId;
7682
    }
7683
 
7684
    public void unsetAgentEmailId() {
7685
      this.agentEmailId = null;
7686
    }
7687
 
3430 rajveer 7688
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 7689
    public boolean isSetAgentEmailId() {
7690
      return this.agentEmailId != null;
7691
    }
7692
 
7693
    public void setAgentEmailIdIsSet(boolean value) {
7694
      if (!value) {
7695
        this.agentEmailId = null;
7696
      }
7697
    }
7698
 
7699
    public String getPassword() {
7700
      return this.password;
7701
    }
7702
 
3430 rajveer 7703
    public void setPassword(String password) {
3087 mandeep.dh 7704
      this.password = password;
7705
    }
7706
 
7707
    public void unsetPassword() {
7708
      this.password = null;
7709
    }
7710
 
3430 rajveer 7711
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 7712
    public boolean isSetPassword() {
7713
      return this.password != null;
7714
    }
7715
 
7716
    public void setPasswordIsSet(boolean value) {
7717
      if (!value) {
7718
        this.password = null;
7719
      }
7720
    }
7721
 
7722
    public void setFieldValue(_Fields field, Object value) {
7723
      switch (field) {
7724
      case AGENT_EMAIL_ID:
7725
        if (value == null) {
7726
          unsetAgentEmailId();
7727
        } else {
7728
          setAgentEmailId((String)value);
7729
        }
7730
        break;
7731
 
7732
      case PASSWORD:
7733
        if (value == null) {
7734
          unsetPassword();
7735
        } else {
7736
          setPassword((String)value);
7737
        }
7738
        break;
7739
 
7740
      }
7741
    }
7742
 
7743
    public Object getFieldValue(_Fields field) {
7744
      switch (field) {
7745
      case AGENT_EMAIL_ID:
7746
        return getAgentEmailId();
7747
 
7748
      case PASSWORD:
7749
        return getPassword();
7750
 
7751
      }
7752
      throw new IllegalStateException();
7753
    }
7754
 
3430 rajveer 7755
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7756
    public boolean isSet(_Fields field) {
7757
      if (field == null) {
7758
        throw new IllegalArgumentException();
7759
      }
3087 mandeep.dh 7760
 
7761
      switch (field) {
7762
      case AGENT_EMAIL_ID:
7763
        return isSetAgentEmailId();
7764
      case PASSWORD:
7765
        return isSetPassword();
7766
      }
7767
      throw new IllegalStateException();
7768
    }
7769
 
7770
    @Override
7771
    public boolean equals(Object that) {
7772
      if (that == null)
7773
        return false;
7774
      if (that instanceof updatePasswordForAgent_args)
7775
        return this.equals((updatePasswordForAgent_args)that);
7776
      return false;
7777
    }
7778
 
7779
    public boolean equals(updatePasswordForAgent_args that) {
7780
      if (that == null)
7781
        return false;
7782
 
7783
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
7784
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
7785
      if (this_present_agentEmailId || that_present_agentEmailId) {
7786
        if (!(this_present_agentEmailId && that_present_agentEmailId))
7787
          return false;
7788
        if (!this.agentEmailId.equals(that.agentEmailId))
7789
          return false;
7790
      }
7791
 
7792
      boolean this_present_password = true && this.isSetPassword();
7793
      boolean that_present_password = true && that.isSetPassword();
7794
      if (this_present_password || that_present_password) {
7795
        if (!(this_present_password && that_present_password))
7796
          return false;
7797
        if (!this.password.equals(that.password))
7798
          return false;
7799
      }
7800
 
7801
      return true;
7802
    }
7803
 
7804
    @Override
7805
    public int hashCode() {
7806
      return 0;
7807
    }
7808
 
7809
    public int compareTo(updatePasswordForAgent_args other) {
7810
      if (!getClass().equals(other.getClass())) {
7811
        return getClass().getName().compareTo(other.getClass().getName());
7812
      }
7813
 
7814
      int lastComparison = 0;
7815
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
7816
 
3430 rajveer 7817
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
3087 mandeep.dh 7818
      if (lastComparison != 0) {
7819
        return lastComparison;
7820
      }
3430 rajveer 7821
      if (isSetAgentEmailId()) {
7822
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
7823
        if (lastComparison != 0) {
7824
          return lastComparison;
7825
        }
3087 mandeep.dh 7826
      }
3430 rajveer 7827
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
3087 mandeep.dh 7828
      if (lastComparison != 0) {
7829
        return lastComparison;
7830
      }
3430 rajveer 7831
      if (isSetPassword()) {
7832
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
7833
        if (lastComparison != 0) {
7834
          return lastComparison;
7835
        }
3087 mandeep.dh 7836
      }
7837
      return 0;
7838
    }
7839
 
3430 rajveer 7840
    public _Fields fieldForId(int fieldId) {
7841
      return _Fields.findByThriftId(fieldId);
7842
    }
7843
 
7844
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7845
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 7846
      iprot.readStructBegin();
7847
      while (true)
7848
      {
7849
        field = iprot.readFieldBegin();
3430 rajveer 7850
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 7851
          break;
7852
        }
3430 rajveer 7853
        switch (field.id) {
7854
          case 1: // AGENT_EMAIL_ID
7855
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7856
              this.agentEmailId = iprot.readString();
7857
            } else { 
7858
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7859
            }
7860
            break;
7861
          case 2: // PASSWORD
7862
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7863
              this.password = iprot.readString();
7864
            } else { 
7865
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7866
            }
7867
            break;
7868
          default:
7869
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 7870
        }
3430 rajveer 7871
        iprot.readFieldEnd();
3087 mandeep.dh 7872
      }
7873
      iprot.readStructEnd();
7874
      validate();
7875
    }
7876
 
3430 rajveer 7877
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 7878
      validate();
7879
 
7880
      oprot.writeStructBegin(STRUCT_DESC);
7881
      if (this.agentEmailId != null) {
7882
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
7883
        oprot.writeString(this.agentEmailId);
7884
        oprot.writeFieldEnd();
7885
      }
7886
      if (this.password != null) {
7887
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
7888
        oprot.writeString(this.password);
7889
        oprot.writeFieldEnd();
7890
      }
7891
      oprot.writeFieldStop();
7892
      oprot.writeStructEnd();
7893
    }
7894
 
7895
    @Override
7896
    public String toString() {
7897
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
7898
      boolean first = true;
7899
 
7900
      sb.append("agentEmailId:");
7901
      if (this.agentEmailId == null) {
7902
        sb.append("null");
7903
      } else {
7904
        sb.append(this.agentEmailId);
7905
      }
7906
      first = false;
7907
      if (!first) sb.append(", ");
7908
      sb.append("password:");
7909
      if (this.password == null) {
7910
        sb.append("null");
7911
      } else {
7912
        sb.append(this.password);
7913
      }
7914
      first = false;
7915
      sb.append(")");
7916
      return sb.toString();
7917
    }
7918
 
3430 rajveer 7919
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 7920
      // check for required fields
7921
    }
7922
 
3430 rajveer 7923
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7924
      try {
7925
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7926
      } catch (org.apache.thrift.TException te) {
7927
        throw new java.io.IOException(te);
7928
      }
7929
    }
7930
 
7931
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7932
      try {
7933
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7934
      } catch (org.apache.thrift.TException te) {
7935
        throw new java.io.IOException(te);
7936
      }
7937
    }
7938
 
3087 mandeep.dh 7939
  }
7940
 
3430 rajveer 7941
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
7942
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
3087 mandeep.dh 7943
 
7944
 
7945
 
7946
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7947
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 7948
;
7949
 
7950
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7951
 
7952
      static {
7953
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7954
          byName.put(field.getFieldName(), field);
7955
        }
7956
      }
7957
 
7958
      /**
7959
       * Find the _Fields constant that matches fieldId, or null if its not found.
7960
       */
7961
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7962
        switch(fieldId) {
7963
          default:
7964
            return null;
7965
        }
3087 mandeep.dh 7966
      }
7967
 
7968
      /**
7969
       * Find the _Fields constant that matches fieldId, throwing an exception
7970
       * if it is not found.
7971
       */
7972
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7973
        _Fields fields = findByThriftId(fieldId);
7974
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7975
        return fields;
7976
      }
7977
 
7978
      /**
7979
       * Find the _Fields constant that matches name, or null if its not found.
7980
       */
7981
      public static _Fields findByName(String name) {
7982
        return byName.get(name);
7983
      }
7984
 
7985
      private final short _thriftId;
7986
      private final String _fieldName;
7987
 
7988
      _Fields(short thriftId, String fieldName) {
7989
        _thriftId = thriftId;
7990
        _fieldName = fieldName;
7991
      }
7992
 
7993
      public short getThriftFieldId() {
7994
        return _thriftId;
7995
      }
7996
 
7997
      public String getFieldName() {
7998
        return _fieldName;
7999
      }
8000
    }
3430 rajveer 8001
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8002
    static {
3430 rajveer 8003
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8004
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8005
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
3087 mandeep.dh 8006
    }
8007
 
8008
    public updatePasswordForAgent_result() {
8009
    }
8010
 
8011
    /**
8012
     * Performs a deep copy on <i>other</i>.
8013
     */
8014
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
8015
    }
8016
 
8017
    public updatePasswordForAgent_result deepCopy() {
8018
      return new updatePasswordForAgent_result(this);
8019
    }
8020
 
3430 rajveer 8021
    @Override
8022
    public void clear() {
3087 mandeep.dh 8023
    }
8024
 
8025
    public void setFieldValue(_Fields field, Object value) {
8026
      switch (field) {
8027
      }
8028
    }
8029
 
8030
    public Object getFieldValue(_Fields field) {
8031
      switch (field) {
8032
      }
8033
      throw new IllegalStateException();
8034
    }
8035
 
3430 rajveer 8036
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8037
    public boolean isSet(_Fields field) {
8038
      if (field == null) {
8039
        throw new IllegalArgumentException();
8040
      }
3087 mandeep.dh 8041
 
8042
      switch (field) {
8043
      }
8044
      throw new IllegalStateException();
8045
    }
8046
 
8047
    @Override
8048
    public boolean equals(Object that) {
8049
      if (that == null)
8050
        return false;
8051
      if (that instanceof updatePasswordForAgent_result)
8052
        return this.equals((updatePasswordForAgent_result)that);
8053
      return false;
8054
    }
8055
 
8056
    public boolean equals(updatePasswordForAgent_result that) {
8057
      if (that == null)
8058
        return false;
8059
 
8060
      return true;
8061
    }
8062
 
8063
    @Override
8064
    public int hashCode() {
8065
      return 0;
8066
    }
8067
 
8068
    public int compareTo(updatePasswordForAgent_result other) {
8069
      if (!getClass().equals(other.getClass())) {
8070
        return getClass().getName().compareTo(other.getClass().getName());
8071
      }
8072
 
8073
      int lastComparison = 0;
8074
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
8075
 
8076
      return 0;
8077
    }
8078
 
3430 rajveer 8079
    public _Fields fieldForId(int fieldId) {
8080
      return _Fields.findByThriftId(fieldId);
8081
    }
8082
 
8083
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8084
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8085
      iprot.readStructBegin();
8086
      while (true)
8087
      {
8088
        field = iprot.readFieldBegin();
3430 rajveer 8089
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8090
          break;
8091
        }
3430 rajveer 8092
        switch (field.id) {
8093
          default:
8094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8095
        }
3430 rajveer 8096
        iprot.readFieldEnd();
3087 mandeep.dh 8097
      }
8098
      iprot.readStructEnd();
8099
      validate();
8100
    }
8101
 
3430 rajveer 8102
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8103
      oprot.writeStructBegin(STRUCT_DESC);
8104
 
8105
      oprot.writeFieldStop();
8106
      oprot.writeStructEnd();
8107
    }
8108
 
8109
    @Override
8110
    public String toString() {
8111
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
8112
      boolean first = true;
8113
 
8114
      sb.append(")");
8115
      return sb.toString();
8116
    }
8117
 
3430 rajveer 8118
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8119
      // check for required fields
8120
    }
8121
 
3430 rajveer 8122
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8123
      try {
8124
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8125
      } catch (org.apache.thrift.TException te) {
8126
        throw new java.io.IOException(te);
8127
      }
8128
    }
8129
 
8130
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8131
      try {
8132
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8133
      } catch (org.apache.thrift.TException te) {
8134
        throw new java.io.IOException(te);
8135
      }
8136
    }
8137
 
3087 mandeep.dh 8138
  }
8139
 
3430 rajveer 8140
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
8141
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
3087 mandeep.dh 8142
 
3430 rajveer 8143
    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);
3087 mandeep.dh 8144
 
3430 rajveer 8145
    private String agentEmailId; // required
3087 mandeep.dh 8146
 
8147
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8148
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8149
      AGENT_EMAIL_ID((short)1, "agentEmailId");
8150
 
8151
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8152
 
8153
      static {
8154
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8155
          byName.put(field.getFieldName(), field);
8156
        }
8157
      }
8158
 
8159
      /**
8160
       * Find the _Fields constant that matches fieldId, or null if its not found.
8161
       */
8162
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8163
        switch(fieldId) {
8164
          case 1: // AGENT_EMAIL_ID
8165
            return AGENT_EMAIL_ID;
8166
          default:
8167
            return null;
8168
        }
3087 mandeep.dh 8169
      }
8170
 
8171
      /**
8172
       * Find the _Fields constant that matches fieldId, throwing an exception
8173
       * if it is not found.
8174
       */
8175
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8176
        _Fields fields = findByThriftId(fieldId);
8177
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8178
        return fields;
8179
      }
8180
 
8181
      /**
8182
       * Find the _Fields constant that matches name, or null if its not found.
8183
       */
8184
      public static _Fields findByName(String name) {
8185
        return byName.get(name);
8186
      }
8187
 
8188
      private final short _thriftId;
8189
      private final String _fieldName;
8190
 
8191
      _Fields(short thriftId, String fieldName) {
8192
        _thriftId = thriftId;
8193
        _fieldName = fieldName;
8194
      }
8195
 
8196
      public short getThriftFieldId() {
8197
        return _thriftId;
8198
      }
8199
 
8200
      public String getFieldName() {
8201
        return _fieldName;
8202
      }
8203
    }
8204
 
8205
    // isset id assignments
8206
 
3430 rajveer 8207
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8208
    static {
3430 rajveer 8209
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8210
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8211
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8212
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8213
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
3087 mandeep.dh 8214
    }
8215
 
8216
    public getRoleNamesForAgent_args() {
8217
    }
8218
 
8219
    public getRoleNamesForAgent_args(
8220
      String agentEmailId)
8221
    {
8222
      this();
8223
      this.agentEmailId = agentEmailId;
8224
    }
8225
 
8226
    /**
8227
     * Performs a deep copy on <i>other</i>.
8228
     */
8229
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
8230
      if (other.isSetAgentEmailId()) {
8231
        this.agentEmailId = other.agentEmailId;
8232
      }
8233
    }
8234
 
8235
    public getRoleNamesForAgent_args deepCopy() {
8236
      return new getRoleNamesForAgent_args(this);
8237
    }
8238
 
3430 rajveer 8239
    @Override
8240
    public void clear() {
8241
      this.agentEmailId = null;
3087 mandeep.dh 8242
    }
8243
 
8244
    public String getAgentEmailId() {
8245
      return this.agentEmailId;
8246
    }
8247
 
3430 rajveer 8248
    public void setAgentEmailId(String agentEmailId) {
3087 mandeep.dh 8249
      this.agentEmailId = agentEmailId;
8250
    }
8251
 
8252
    public void unsetAgentEmailId() {
8253
      this.agentEmailId = null;
8254
    }
8255
 
3430 rajveer 8256
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8257
    public boolean isSetAgentEmailId() {
8258
      return this.agentEmailId != null;
8259
    }
8260
 
8261
    public void setAgentEmailIdIsSet(boolean value) {
8262
      if (!value) {
8263
        this.agentEmailId = null;
8264
      }
8265
    }
8266
 
8267
    public void setFieldValue(_Fields field, Object value) {
8268
      switch (field) {
8269
      case AGENT_EMAIL_ID:
8270
        if (value == null) {
8271
          unsetAgentEmailId();
8272
        } else {
8273
          setAgentEmailId((String)value);
8274
        }
8275
        break;
8276
 
8277
      }
8278
    }
8279
 
8280
    public Object getFieldValue(_Fields field) {
8281
      switch (field) {
8282
      case AGENT_EMAIL_ID:
8283
        return getAgentEmailId();
8284
 
8285
      }
8286
      throw new IllegalStateException();
8287
    }
8288
 
3430 rajveer 8289
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8290
    public boolean isSet(_Fields field) {
8291
      if (field == null) {
8292
        throw new IllegalArgumentException();
8293
      }
3087 mandeep.dh 8294
 
8295
      switch (field) {
8296
      case AGENT_EMAIL_ID:
8297
        return isSetAgentEmailId();
8298
      }
8299
      throw new IllegalStateException();
8300
    }
8301
 
8302
    @Override
8303
    public boolean equals(Object that) {
8304
      if (that == null)
8305
        return false;
8306
      if (that instanceof getRoleNamesForAgent_args)
8307
        return this.equals((getRoleNamesForAgent_args)that);
8308
      return false;
8309
    }
8310
 
8311
    public boolean equals(getRoleNamesForAgent_args that) {
8312
      if (that == null)
8313
        return false;
8314
 
8315
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
8316
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
8317
      if (this_present_agentEmailId || that_present_agentEmailId) {
8318
        if (!(this_present_agentEmailId && that_present_agentEmailId))
8319
          return false;
8320
        if (!this.agentEmailId.equals(that.agentEmailId))
8321
          return false;
8322
      }
8323
 
8324
      return true;
8325
    }
8326
 
8327
    @Override
8328
    public int hashCode() {
8329
      return 0;
8330
    }
8331
 
8332
    public int compareTo(getRoleNamesForAgent_args other) {
8333
      if (!getClass().equals(other.getClass())) {
8334
        return getClass().getName().compareTo(other.getClass().getName());
8335
      }
8336
 
8337
      int lastComparison = 0;
8338
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
8339
 
3430 rajveer 8340
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
3087 mandeep.dh 8341
      if (lastComparison != 0) {
8342
        return lastComparison;
8343
      }
3430 rajveer 8344
      if (isSetAgentEmailId()) {
8345
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
8346
        if (lastComparison != 0) {
8347
          return lastComparison;
8348
        }
3087 mandeep.dh 8349
      }
8350
      return 0;
8351
    }
8352
 
3430 rajveer 8353
    public _Fields fieldForId(int fieldId) {
8354
      return _Fields.findByThriftId(fieldId);
8355
    }
8356
 
8357
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8358
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8359
      iprot.readStructBegin();
8360
      while (true)
8361
      {
8362
        field = iprot.readFieldBegin();
3430 rajveer 8363
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8364
          break;
8365
        }
3430 rajveer 8366
        switch (field.id) {
8367
          case 1: // AGENT_EMAIL_ID
8368
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8369
              this.agentEmailId = iprot.readString();
8370
            } else { 
8371
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8372
            }
8373
            break;
8374
          default:
8375
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8376
        }
3430 rajveer 8377
        iprot.readFieldEnd();
3087 mandeep.dh 8378
      }
8379
      iprot.readStructEnd();
8380
      validate();
8381
    }
8382
 
3430 rajveer 8383
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8384
      validate();
8385
 
8386
      oprot.writeStructBegin(STRUCT_DESC);
8387
      if (this.agentEmailId != null) {
8388
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
8389
        oprot.writeString(this.agentEmailId);
8390
        oprot.writeFieldEnd();
8391
      }
8392
      oprot.writeFieldStop();
8393
      oprot.writeStructEnd();
8394
    }
8395
 
8396
    @Override
8397
    public String toString() {
8398
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
8399
      boolean first = true;
8400
 
8401
      sb.append("agentEmailId:");
8402
      if (this.agentEmailId == null) {
8403
        sb.append("null");
8404
      } else {
8405
        sb.append(this.agentEmailId);
8406
      }
8407
      first = false;
8408
      sb.append(")");
8409
      return sb.toString();
8410
    }
8411
 
3430 rajveer 8412
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8413
      // check for required fields
8414
    }
8415
 
3430 rajveer 8416
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8417
      try {
8418
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8419
      } catch (org.apache.thrift.TException te) {
8420
        throw new java.io.IOException(te);
8421
      }
8422
    }
8423
 
8424
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8425
      try {
8426
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8427
      } catch (org.apache.thrift.TException te) {
8428
        throw new java.io.IOException(te);
8429
      }
8430
    }
8431
 
3087 mandeep.dh 8432
  }
8433
 
3430 rajveer 8434
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
8435
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
3087 mandeep.dh 8436
 
3430 rajveer 8437
    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);
3087 mandeep.dh 8438
 
3430 rajveer 8439
    private List<String> success; // required
3087 mandeep.dh 8440
 
8441
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8442
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8443
      SUCCESS((short)0, "success");
8444
 
8445
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8446
 
8447
      static {
8448
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8449
          byName.put(field.getFieldName(), field);
8450
        }
8451
      }
8452
 
8453
      /**
8454
       * Find the _Fields constant that matches fieldId, or null if its not found.
8455
       */
8456
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8457
        switch(fieldId) {
8458
          case 0: // SUCCESS
8459
            return SUCCESS;
8460
          default:
8461
            return null;
8462
        }
3087 mandeep.dh 8463
      }
8464
 
8465
      /**
8466
       * Find the _Fields constant that matches fieldId, throwing an exception
8467
       * if it is not found.
8468
       */
8469
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8470
        _Fields fields = findByThriftId(fieldId);
8471
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8472
        return fields;
8473
      }
8474
 
8475
      /**
8476
       * Find the _Fields constant that matches name, or null if its not found.
8477
       */
8478
      public static _Fields findByName(String name) {
8479
        return byName.get(name);
8480
      }
8481
 
8482
      private final short _thriftId;
8483
      private final String _fieldName;
8484
 
8485
      _Fields(short thriftId, String fieldName) {
8486
        _thriftId = thriftId;
8487
        _fieldName = fieldName;
8488
      }
8489
 
8490
      public short getThriftFieldId() {
8491
        return _thriftId;
8492
      }
8493
 
8494
      public String getFieldName() {
8495
        return _fieldName;
8496
      }
8497
    }
8498
 
8499
    // isset id assignments
8500
 
3430 rajveer 8501
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8502
    static {
3430 rajveer 8503
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8504
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8505
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8506
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8507
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8508
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
3087 mandeep.dh 8509
    }
8510
 
8511
    public getRoleNamesForAgent_result() {
8512
    }
8513
 
8514
    public getRoleNamesForAgent_result(
8515
      List<String> success)
8516
    {
8517
      this();
8518
      this.success = success;
8519
    }
8520
 
8521
    /**
8522
     * Performs a deep copy on <i>other</i>.
8523
     */
8524
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
8525
      if (other.isSetSuccess()) {
8526
        List<String> __this__success = new ArrayList<String>();
8527
        for (String other_element : other.success) {
8528
          __this__success.add(other_element);
8529
        }
8530
        this.success = __this__success;
8531
      }
8532
    }
8533
 
8534
    public getRoleNamesForAgent_result deepCopy() {
8535
      return new getRoleNamesForAgent_result(this);
8536
    }
8537
 
3430 rajveer 8538
    @Override
8539
    public void clear() {
8540
      this.success = null;
3087 mandeep.dh 8541
    }
8542
 
8543
    public int getSuccessSize() {
8544
      return (this.success == null) ? 0 : this.success.size();
8545
    }
8546
 
8547
    public java.util.Iterator<String> getSuccessIterator() {
8548
      return (this.success == null) ? null : this.success.iterator();
8549
    }
8550
 
8551
    public void addToSuccess(String elem) {
8552
      if (this.success == null) {
8553
        this.success = new ArrayList<String>();
8554
      }
8555
      this.success.add(elem);
8556
    }
8557
 
8558
    public List<String> getSuccess() {
8559
      return this.success;
8560
    }
8561
 
3430 rajveer 8562
    public void setSuccess(List<String> success) {
3087 mandeep.dh 8563
      this.success = success;
8564
    }
8565
 
8566
    public void unsetSuccess() {
8567
      this.success = null;
8568
    }
8569
 
3430 rajveer 8570
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8571
    public boolean isSetSuccess() {
8572
      return this.success != null;
8573
    }
8574
 
8575
    public void setSuccessIsSet(boolean value) {
8576
      if (!value) {
8577
        this.success = null;
8578
      }
8579
    }
8580
 
8581
    public void setFieldValue(_Fields field, Object value) {
8582
      switch (field) {
8583
      case SUCCESS:
8584
        if (value == null) {
8585
          unsetSuccess();
8586
        } else {
8587
          setSuccess((List<String>)value);
8588
        }
8589
        break;
8590
 
8591
      }
8592
    }
8593
 
8594
    public Object getFieldValue(_Fields field) {
8595
      switch (field) {
8596
      case SUCCESS:
8597
        return getSuccess();
8598
 
8599
      }
8600
      throw new IllegalStateException();
8601
    }
8602
 
3430 rajveer 8603
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8604
    public boolean isSet(_Fields field) {
8605
      if (field == null) {
8606
        throw new IllegalArgumentException();
8607
      }
3087 mandeep.dh 8608
 
8609
      switch (field) {
8610
      case SUCCESS:
8611
        return isSetSuccess();
8612
      }
8613
      throw new IllegalStateException();
8614
    }
8615
 
8616
    @Override
8617
    public boolean equals(Object that) {
8618
      if (that == null)
8619
        return false;
8620
      if (that instanceof getRoleNamesForAgent_result)
8621
        return this.equals((getRoleNamesForAgent_result)that);
8622
      return false;
8623
    }
8624
 
8625
    public boolean equals(getRoleNamesForAgent_result that) {
8626
      if (that == null)
8627
        return false;
8628
 
8629
      boolean this_present_success = true && this.isSetSuccess();
8630
      boolean that_present_success = true && that.isSetSuccess();
8631
      if (this_present_success || that_present_success) {
8632
        if (!(this_present_success && that_present_success))
8633
          return false;
8634
        if (!this.success.equals(that.success))
8635
          return false;
8636
      }
8637
 
8638
      return true;
8639
    }
8640
 
8641
    @Override
8642
    public int hashCode() {
8643
      return 0;
8644
    }
8645
 
8646
    public int compareTo(getRoleNamesForAgent_result other) {
8647
      if (!getClass().equals(other.getClass())) {
8648
        return getClass().getName().compareTo(other.getClass().getName());
8649
      }
8650
 
8651
      int lastComparison = 0;
8652
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
8653
 
3430 rajveer 8654
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 8655
      if (lastComparison != 0) {
8656
        return lastComparison;
8657
      }
3430 rajveer 8658
      if (isSetSuccess()) {
8659
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8660
        if (lastComparison != 0) {
8661
          return lastComparison;
8662
        }
3087 mandeep.dh 8663
      }
8664
      return 0;
8665
    }
8666
 
3430 rajveer 8667
    public _Fields fieldForId(int fieldId) {
8668
      return _Fields.findByThriftId(fieldId);
8669
    }
8670
 
8671
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8672
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8673
      iprot.readStructBegin();
8674
      while (true)
8675
      {
8676
        field = iprot.readFieldBegin();
3430 rajveer 8677
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8678
          break;
8679
        }
3430 rajveer 8680
        switch (field.id) {
8681
          case 0: // SUCCESS
8682
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8683
              {
5287 amar.kumar 8684
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
8685
                this.success = new ArrayList<String>(_list32.size);
8686
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
3087 mandeep.dh 8687
                {
5287 amar.kumar 8688
                  String _elem34; // required
8689
                  _elem34 = iprot.readString();
8690
                  this.success.add(_elem34);
3087 mandeep.dh 8691
                }
3430 rajveer 8692
                iprot.readListEnd();
3087 mandeep.dh 8693
              }
3430 rajveer 8694
            } else { 
8695
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8696
            }
8697
            break;
8698
          default:
8699
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8700
        }
3430 rajveer 8701
        iprot.readFieldEnd();
3087 mandeep.dh 8702
      }
8703
      iprot.readStructEnd();
8704
      validate();
8705
    }
8706
 
3430 rajveer 8707
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8708
      oprot.writeStructBegin(STRUCT_DESC);
8709
 
8710
      if (this.isSetSuccess()) {
8711
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8712
        {
3430 rajveer 8713
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5287 amar.kumar 8714
          for (String _iter35 : this.success)
3087 mandeep.dh 8715
          {
5287 amar.kumar 8716
            oprot.writeString(_iter35);
3087 mandeep.dh 8717
          }
8718
          oprot.writeListEnd();
8719
        }
8720
        oprot.writeFieldEnd();
8721
      }
8722
      oprot.writeFieldStop();
8723
      oprot.writeStructEnd();
8724
    }
8725
 
8726
    @Override
8727
    public String toString() {
8728
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
8729
      boolean first = true;
8730
 
8731
      sb.append("success:");
8732
      if (this.success == null) {
8733
        sb.append("null");
8734
      } else {
8735
        sb.append(this.success);
8736
      }
8737
      first = false;
8738
      sb.append(")");
8739
      return sb.toString();
8740
    }
8741
 
3430 rajveer 8742
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8743
      // check for required fields
8744
    }
8745
 
3430 rajveer 8746
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8747
      try {
8748
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8749
      } catch (org.apache.thrift.TException te) {
8750
        throw new java.io.IOException(te);
8751
      }
8752
    }
8753
 
8754
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8755
      try {
8756
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8757
      } catch (org.apache.thrift.TException te) {
8758
        throw new java.io.IOException(te);
8759
      }
8760
    }
8761
 
3087 mandeep.dh 8762
  }
8763
 
3430 rajveer 8764
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
8765
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
3087 mandeep.dh 8766
 
3430 rajveer 8767
    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);
3087 mandeep.dh 8768
 
3430 rajveer 8769
    private String roleName; // required
3087 mandeep.dh 8770
 
8771
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8772
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8773
      ROLE_NAME((short)1, "roleName");
8774
 
8775
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8776
 
8777
      static {
8778
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8779
          byName.put(field.getFieldName(), field);
8780
        }
8781
      }
8782
 
8783
      /**
8784
       * Find the _Fields constant that matches fieldId, or null if its not found.
8785
       */
8786
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8787
        switch(fieldId) {
8788
          case 1: // ROLE_NAME
8789
            return ROLE_NAME;
8790
          default:
8791
            return null;
8792
        }
3087 mandeep.dh 8793
      }
8794
 
8795
      /**
8796
       * Find the _Fields constant that matches fieldId, throwing an exception
8797
       * if it is not found.
8798
       */
8799
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8800
        _Fields fields = findByThriftId(fieldId);
8801
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8802
        return fields;
8803
      }
8804
 
8805
      /**
8806
       * Find the _Fields constant that matches name, or null if its not found.
8807
       */
8808
      public static _Fields findByName(String name) {
8809
        return byName.get(name);
8810
      }
8811
 
8812
      private final short _thriftId;
8813
      private final String _fieldName;
8814
 
8815
      _Fields(short thriftId, String fieldName) {
8816
        _thriftId = thriftId;
8817
        _fieldName = fieldName;
8818
      }
8819
 
8820
      public short getThriftFieldId() {
8821
        return _thriftId;
8822
      }
8823
 
8824
      public String getFieldName() {
8825
        return _fieldName;
8826
      }
8827
    }
8828
 
8829
    // isset id assignments
8830
 
3430 rajveer 8831
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8832
    static {
3430 rajveer 8833
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8834
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8835
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8836
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8837
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
3087 mandeep.dh 8838
    }
8839
 
8840
    public getPermissionsForRoleName_args() {
8841
    }
8842
 
8843
    public getPermissionsForRoleName_args(
8844
      String roleName)
8845
    {
8846
      this();
8847
      this.roleName = roleName;
8848
    }
8849
 
8850
    /**
8851
     * Performs a deep copy on <i>other</i>.
8852
     */
8853
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
8854
      if (other.isSetRoleName()) {
8855
        this.roleName = other.roleName;
8856
      }
8857
    }
8858
 
8859
    public getPermissionsForRoleName_args deepCopy() {
8860
      return new getPermissionsForRoleName_args(this);
8861
    }
8862
 
3430 rajveer 8863
    @Override
8864
    public void clear() {
8865
      this.roleName = null;
3087 mandeep.dh 8866
    }
8867
 
8868
    public String getRoleName() {
8869
      return this.roleName;
8870
    }
8871
 
3430 rajveer 8872
    public void setRoleName(String roleName) {
3087 mandeep.dh 8873
      this.roleName = roleName;
8874
    }
8875
 
8876
    public void unsetRoleName() {
8877
      this.roleName = null;
8878
    }
8879
 
3430 rajveer 8880
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8881
    public boolean isSetRoleName() {
8882
      return this.roleName != null;
8883
    }
8884
 
8885
    public void setRoleNameIsSet(boolean value) {
8886
      if (!value) {
8887
        this.roleName = null;
8888
      }
8889
    }
8890
 
8891
    public void setFieldValue(_Fields field, Object value) {
8892
      switch (field) {
8893
      case ROLE_NAME:
8894
        if (value == null) {
8895
          unsetRoleName();
8896
        } else {
8897
          setRoleName((String)value);
8898
        }
8899
        break;
8900
 
8901
      }
8902
    }
8903
 
8904
    public Object getFieldValue(_Fields field) {
8905
      switch (field) {
8906
      case ROLE_NAME:
8907
        return getRoleName();
8908
 
8909
      }
8910
      throw new IllegalStateException();
8911
    }
8912
 
3430 rajveer 8913
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8914
    public boolean isSet(_Fields field) {
8915
      if (field == null) {
8916
        throw new IllegalArgumentException();
8917
      }
3087 mandeep.dh 8918
 
8919
      switch (field) {
8920
      case ROLE_NAME:
8921
        return isSetRoleName();
8922
      }
8923
      throw new IllegalStateException();
8924
    }
8925
 
8926
    @Override
8927
    public boolean equals(Object that) {
8928
      if (that == null)
8929
        return false;
8930
      if (that instanceof getPermissionsForRoleName_args)
8931
        return this.equals((getPermissionsForRoleName_args)that);
8932
      return false;
8933
    }
8934
 
8935
    public boolean equals(getPermissionsForRoleName_args that) {
8936
      if (that == null)
8937
        return false;
8938
 
8939
      boolean this_present_roleName = true && this.isSetRoleName();
8940
      boolean that_present_roleName = true && that.isSetRoleName();
8941
      if (this_present_roleName || that_present_roleName) {
8942
        if (!(this_present_roleName && that_present_roleName))
8943
          return false;
8944
        if (!this.roleName.equals(that.roleName))
8945
          return false;
8946
      }
8947
 
8948
      return true;
8949
    }
8950
 
8951
    @Override
8952
    public int hashCode() {
8953
      return 0;
8954
    }
8955
 
8956
    public int compareTo(getPermissionsForRoleName_args other) {
8957
      if (!getClass().equals(other.getClass())) {
8958
        return getClass().getName().compareTo(other.getClass().getName());
8959
      }
8960
 
8961
      int lastComparison = 0;
8962
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
8963
 
3430 rajveer 8964
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
3087 mandeep.dh 8965
      if (lastComparison != 0) {
8966
        return lastComparison;
8967
      }
3430 rajveer 8968
      if (isSetRoleName()) {
8969
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
8970
        if (lastComparison != 0) {
8971
          return lastComparison;
8972
        }
3087 mandeep.dh 8973
      }
8974
      return 0;
8975
    }
8976
 
3430 rajveer 8977
    public _Fields fieldForId(int fieldId) {
8978
      return _Fields.findByThriftId(fieldId);
8979
    }
8980
 
8981
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8982
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8983
      iprot.readStructBegin();
8984
      while (true)
8985
      {
8986
        field = iprot.readFieldBegin();
3430 rajveer 8987
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8988
          break;
8989
        }
3430 rajveer 8990
        switch (field.id) {
8991
          case 1: // ROLE_NAME
8992
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8993
              this.roleName = iprot.readString();
8994
            } else { 
8995
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8996
            }
8997
            break;
8998
          default:
8999
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 9000
        }
3430 rajveer 9001
        iprot.readFieldEnd();
3087 mandeep.dh 9002
      }
9003
      iprot.readStructEnd();
9004
      validate();
9005
    }
9006
 
3430 rajveer 9007
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 9008
      validate();
9009
 
9010
      oprot.writeStructBegin(STRUCT_DESC);
9011
      if (this.roleName != null) {
9012
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
9013
        oprot.writeString(this.roleName);
9014
        oprot.writeFieldEnd();
9015
      }
9016
      oprot.writeFieldStop();
9017
      oprot.writeStructEnd();
9018
    }
9019
 
9020
    @Override
9021
    public String toString() {
9022
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
9023
      boolean first = true;
9024
 
9025
      sb.append("roleName:");
9026
      if (this.roleName == null) {
9027
        sb.append("null");
9028
      } else {
9029
        sb.append(this.roleName);
9030
      }
9031
      first = false;
9032
      sb.append(")");
9033
      return sb.toString();
9034
    }
9035
 
3430 rajveer 9036
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 9037
      // check for required fields
9038
    }
9039
 
3430 rajveer 9040
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9041
      try {
9042
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9043
      } catch (org.apache.thrift.TException te) {
9044
        throw new java.io.IOException(te);
9045
      }
9046
    }
9047
 
9048
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9049
      try {
9050
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9051
      } catch (org.apache.thrift.TException te) {
9052
        throw new java.io.IOException(te);
9053
      }
9054
    }
9055
 
3087 mandeep.dh 9056
  }
9057
 
3430 rajveer 9058
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
9059
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
3087 mandeep.dh 9060
 
3430 rajveer 9061
    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);
3087 mandeep.dh 9062
 
3430 rajveer 9063
    private List<String> success; // required
3087 mandeep.dh 9064
 
9065
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9066
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 9067
      SUCCESS((short)0, "success");
9068
 
9069
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9070
 
9071
      static {
9072
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9073
          byName.put(field.getFieldName(), field);
9074
        }
9075
      }
9076
 
9077
      /**
9078
       * Find the _Fields constant that matches fieldId, or null if its not found.
9079
       */
9080
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9081
        switch(fieldId) {
9082
          case 0: // SUCCESS
9083
            return SUCCESS;
9084
          default:
9085
            return null;
9086
        }
3087 mandeep.dh 9087
      }
9088
 
9089
      /**
9090
       * Find the _Fields constant that matches fieldId, throwing an exception
9091
       * if it is not found.
9092
       */
9093
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9094
        _Fields fields = findByThriftId(fieldId);
9095
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9096
        return fields;
9097
      }
9098
 
9099
      /**
9100
       * Find the _Fields constant that matches name, or null if its not found.
9101
       */
9102
      public static _Fields findByName(String name) {
9103
        return byName.get(name);
9104
      }
9105
 
9106
      private final short _thriftId;
9107
      private final String _fieldName;
9108
 
9109
      _Fields(short thriftId, String fieldName) {
9110
        _thriftId = thriftId;
9111
        _fieldName = fieldName;
9112
      }
9113
 
9114
      public short getThriftFieldId() {
9115
        return _thriftId;
9116
      }
9117
 
9118
      public String getFieldName() {
9119
        return _fieldName;
9120
      }
9121
    }
9122
 
9123
    // isset id assignments
9124
 
3430 rajveer 9125
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 9126
    static {
3430 rajveer 9127
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9128
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9129
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9130
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9131
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9132
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
3087 mandeep.dh 9133
    }
9134
 
9135
    public getPermissionsForRoleName_result() {
9136
    }
9137
 
9138
    public getPermissionsForRoleName_result(
9139
      List<String> success)
9140
    {
9141
      this();
9142
      this.success = success;
9143
    }
9144
 
9145
    /**
9146
     * Performs a deep copy on <i>other</i>.
9147
     */
9148
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
9149
      if (other.isSetSuccess()) {
9150
        List<String> __this__success = new ArrayList<String>();
9151
        for (String other_element : other.success) {
9152
          __this__success.add(other_element);
9153
        }
9154
        this.success = __this__success;
9155
      }
9156
    }
9157
 
9158
    public getPermissionsForRoleName_result deepCopy() {
9159
      return new getPermissionsForRoleName_result(this);
9160
    }
9161
 
3430 rajveer 9162
    @Override
9163
    public void clear() {
9164
      this.success = null;
3087 mandeep.dh 9165
    }
9166
 
9167
    public int getSuccessSize() {
9168
      return (this.success == null) ? 0 : this.success.size();
9169
    }
9170
 
9171
    public java.util.Iterator<String> getSuccessIterator() {
9172
      return (this.success == null) ? null : this.success.iterator();
9173
    }
9174
 
9175
    public void addToSuccess(String elem) {
9176
      if (this.success == null) {
9177
        this.success = new ArrayList<String>();
9178
      }
9179
      this.success.add(elem);
9180
    }
9181
 
9182
    public List<String> getSuccess() {
9183
      return this.success;
9184
    }
9185
 
3430 rajveer 9186
    public void setSuccess(List<String> success) {
3087 mandeep.dh 9187
      this.success = success;
9188
    }
9189
 
9190
    public void unsetSuccess() {
9191
      this.success = null;
9192
    }
9193
 
3430 rajveer 9194
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 9195
    public boolean isSetSuccess() {
9196
      return this.success != null;
9197
    }
9198
 
9199
    public void setSuccessIsSet(boolean value) {
9200
      if (!value) {
9201
        this.success = null;
9202
      }
9203
    }
9204
 
9205
    public void setFieldValue(_Fields field, Object value) {
9206
      switch (field) {
9207
      case SUCCESS:
9208
        if (value == null) {
9209
          unsetSuccess();
9210
        } else {
9211
          setSuccess((List<String>)value);
9212
        }
9213
        break;
9214
 
9215
      }
9216
    }
9217
 
9218
    public Object getFieldValue(_Fields field) {
9219
      switch (field) {
9220
      case SUCCESS:
9221
        return getSuccess();
9222
 
9223
      }
9224
      throw new IllegalStateException();
9225
    }
9226
 
3430 rajveer 9227
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9228
    public boolean isSet(_Fields field) {
9229
      if (field == null) {
9230
        throw new IllegalArgumentException();
9231
      }
3087 mandeep.dh 9232
 
9233
      switch (field) {
9234
      case SUCCESS:
9235
        return isSetSuccess();
9236
      }
9237
      throw new IllegalStateException();
9238
    }
9239
 
9240
    @Override
9241
    public boolean equals(Object that) {
9242
      if (that == null)
9243
        return false;
9244
      if (that instanceof getPermissionsForRoleName_result)
9245
        return this.equals((getPermissionsForRoleName_result)that);
9246
      return false;
9247
    }
9248
 
9249
    public boolean equals(getPermissionsForRoleName_result that) {
9250
      if (that == null)
9251
        return false;
9252
 
9253
      boolean this_present_success = true && this.isSetSuccess();
9254
      boolean that_present_success = true && that.isSetSuccess();
9255
      if (this_present_success || that_present_success) {
9256
        if (!(this_present_success && that_present_success))
9257
          return false;
9258
        if (!this.success.equals(that.success))
9259
          return false;
9260
      }
9261
 
9262
      return true;
9263
    }
9264
 
9265
    @Override
9266
    public int hashCode() {
9267
      return 0;
9268
    }
9269
 
9270
    public int compareTo(getPermissionsForRoleName_result other) {
9271
      if (!getClass().equals(other.getClass())) {
9272
        return getClass().getName().compareTo(other.getClass().getName());
9273
      }
9274
 
9275
      int lastComparison = 0;
9276
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
9277
 
3430 rajveer 9278
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 9279
      if (lastComparison != 0) {
9280
        return lastComparison;
9281
      }
3430 rajveer 9282
      if (isSetSuccess()) {
9283
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9284
        if (lastComparison != 0) {
9285
          return lastComparison;
9286
        }
3087 mandeep.dh 9287
      }
9288
      return 0;
9289
    }
9290
 
3430 rajveer 9291
    public _Fields fieldForId(int fieldId) {
9292
      return _Fields.findByThriftId(fieldId);
9293
    }
9294
 
9295
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9296
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 9297
      iprot.readStructBegin();
9298
      while (true)
9299
      {
9300
        field = iprot.readFieldBegin();
3430 rajveer 9301
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 9302
          break;
9303
        }
3430 rajveer 9304
        switch (field.id) {
9305
          case 0: // SUCCESS
9306
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9307
              {
5287 amar.kumar 9308
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
9309
                this.success = new ArrayList<String>(_list36.size);
9310
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
3087 mandeep.dh 9311
                {
5287 amar.kumar 9312
                  String _elem38; // required
9313
                  _elem38 = iprot.readString();
9314
                  this.success.add(_elem38);
3087 mandeep.dh 9315
                }
3430 rajveer 9316
                iprot.readListEnd();
3087 mandeep.dh 9317
              }
3430 rajveer 9318
            } else { 
9319
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9320
            }
9321
            break;
9322
          default:
9323
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 9324
        }
3430 rajveer 9325
        iprot.readFieldEnd();
3087 mandeep.dh 9326
      }
9327
      iprot.readStructEnd();
9328
      validate();
9329
    }
9330
 
3430 rajveer 9331
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 9332
      oprot.writeStructBegin(STRUCT_DESC);
9333
 
9334
      if (this.isSetSuccess()) {
9335
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9336
        {
3430 rajveer 9337
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5287 amar.kumar 9338
          for (String _iter39 : this.success)
3087 mandeep.dh 9339
          {
5287 amar.kumar 9340
            oprot.writeString(_iter39);
3087 mandeep.dh 9341
          }
9342
          oprot.writeListEnd();
9343
        }
9344
        oprot.writeFieldEnd();
9345
      }
9346
      oprot.writeFieldStop();
9347
      oprot.writeStructEnd();
9348
    }
9349
 
9350
    @Override
9351
    public String toString() {
9352
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
9353
      boolean first = true;
9354
 
9355
      sb.append("success:");
9356
      if (this.success == null) {
9357
        sb.append("null");
9358
      } else {
9359
        sb.append(this.success);
9360
      }
9361
      first = false;
9362
      sb.append(")");
9363
      return sb.toString();
9364
    }
9365
 
3430 rajveer 9366
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 9367
      // check for required fields
9368
    }
9369
 
3430 rajveer 9370
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9371
      try {
9372
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9373
      } catch (org.apache.thrift.TException te) {
9374
        throw new java.io.IOException(te);
9375
      }
9376
    }
9377
 
9378
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9379
      try {
9380
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9381
      } catch (org.apache.thrift.TException te) {
9382
        throw new java.io.IOException(te);
9383
      }
9384
    }
9385
 
3087 mandeep.dh 9386
  }
9387
 
3430 rajveer 9388
  public static class getLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_args, getLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
9389
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_args");
3339 mandeep.dh 9390
 
9391
 
9392
 
9393
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9394
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9395
;
9396
 
9397
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9398
 
9399
      static {
9400
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9401
          byName.put(field.getFieldName(), field);
9402
        }
9403
      }
9404
 
9405
      /**
9406
       * Find the _Fields constant that matches fieldId, or null if its not found.
9407
       */
9408
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9409
        switch(fieldId) {
9410
          default:
9411
            return null;
9412
        }
3339 mandeep.dh 9413
      }
9414
 
9415
      /**
9416
       * Find the _Fields constant that matches fieldId, throwing an exception
9417
       * if it is not found.
9418
       */
9419
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9420
        _Fields fields = findByThriftId(fieldId);
9421
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9422
        return fields;
9423
      }
9424
 
9425
      /**
9426
       * Find the _Fields constant that matches name, or null if its not found.
9427
       */
9428
      public static _Fields findByName(String name) {
9429
        return byName.get(name);
9430
      }
9431
 
9432
      private final short _thriftId;
9433
      private final String _fieldName;
9434
 
9435
      _Fields(short thriftId, String fieldName) {
9436
        _thriftId = thriftId;
9437
        _fieldName = fieldName;
9438
      }
9439
 
9440
      public short getThriftFieldId() {
9441
        return _thriftId;
9442
      }
9443
 
9444
      public String getFieldName() {
9445
        return _fieldName;
9446
      }
9447
    }
3430 rajveer 9448
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9449
    static {
3430 rajveer 9450
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9451
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9452
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_args.class, metaDataMap);
3339 mandeep.dh 9453
    }
9454
 
9455
    public getLastEmailProcessedTimestamp_args() {
9456
    }
9457
 
9458
    /**
9459
     * Performs a deep copy on <i>other</i>.
9460
     */
9461
    public getLastEmailProcessedTimestamp_args(getLastEmailProcessedTimestamp_args other) {
9462
    }
9463
 
9464
    public getLastEmailProcessedTimestamp_args deepCopy() {
9465
      return new getLastEmailProcessedTimestamp_args(this);
9466
    }
9467
 
3430 rajveer 9468
    @Override
9469
    public void clear() {
3339 mandeep.dh 9470
    }
9471
 
9472
    public void setFieldValue(_Fields field, Object value) {
9473
      switch (field) {
9474
      }
9475
    }
9476
 
9477
    public Object getFieldValue(_Fields field) {
9478
      switch (field) {
9479
      }
9480
      throw new IllegalStateException();
9481
    }
9482
 
3430 rajveer 9483
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9484
    public boolean isSet(_Fields field) {
9485
      if (field == null) {
9486
        throw new IllegalArgumentException();
9487
      }
3339 mandeep.dh 9488
 
9489
      switch (field) {
9490
      }
9491
      throw new IllegalStateException();
9492
    }
9493
 
9494
    @Override
9495
    public boolean equals(Object that) {
9496
      if (that == null)
9497
        return false;
9498
      if (that instanceof getLastEmailProcessedTimestamp_args)
9499
        return this.equals((getLastEmailProcessedTimestamp_args)that);
9500
      return false;
9501
    }
9502
 
9503
    public boolean equals(getLastEmailProcessedTimestamp_args that) {
9504
      if (that == null)
9505
        return false;
9506
 
9507
      return true;
9508
    }
9509
 
9510
    @Override
9511
    public int hashCode() {
9512
      return 0;
9513
    }
9514
 
9515
    public int compareTo(getLastEmailProcessedTimestamp_args other) {
9516
      if (!getClass().equals(other.getClass())) {
9517
        return getClass().getName().compareTo(other.getClass().getName());
9518
      }
9519
 
9520
      int lastComparison = 0;
9521
      getLastEmailProcessedTimestamp_args typedOther = (getLastEmailProcessedTimestamp_args)other;
9522
 
9523
      return 0;
9524
    }
9525
 
3430 rajveer 9526
    public _Fields fieldForId(int fieldId) {
9527
      return _Fields.findByThriftId(fieldId);
9528
    }
9529
 
9530
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9531
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 9532
      iprot.readStructBegin();
9533
      while (true)
9534
      {
9535
        field = iprot.readFieldBegin();
3430 rajveer 9536
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 9537
          break;
9538
        }
3430 rajveer 9539
        switch (field.id) {
9540
          default:
9541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 9542
        }
3430 rajveer 9543
        iprot.readFieldEnd();
3339 mandeep.dh 9544
      }
9545
      iprot.readStructEnd();
9546
      validate();
9547
    }
9548
 
3430 rajveer 9549
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 9550
      validate();
9551
 
9552
      oprot.writeStructBegin(STRUCT_DESC);
9553
      oprot.writeFieldStop();
9554
      oprot.writeStructEnd();
9555
    }
9556
 
9557
    @Override
9558
    public String toString() {
9559
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_args(");
9560
      boolean first = true;
9561
 
9562
      sb.append(")");
9563
      return sb.toString();
9564
    }
9565
 
3430 rajveer 9566
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 9567
      // check for required fields
9568
    }
9569
 
3430 rajveer 9570
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9571
      try {
9572
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9573
      } catch (org.apache.thrift.TException te) {
9574
        throw new java.io.IOException(te);
9575
      }
9576
    }
9577
 
9578
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9579
      try {
9580
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9581
      } catch (org.apache.thrift.TException te) {
9582
        throw new java.io.IOException(te);
9583
      }
9584
    }
9585
 
3339 mandeep.dh 9586
  }
9587
 
3430 rajveer 9588
  public static class getLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_result, getLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
9589
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_result");
3339 mandeep.dh 9590
 
3430 rajveer 9591
    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);
3339 mandeep.dh 9592
 
3430 rajveer 9593
    private long success; // required
3339 mandeep.dh 9594
 
9595
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9596
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9597
      SUCCESS((short)0, "success");
9598
 
9599
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9600
 
9601
      static {
9602
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9603
          byName.put(field.getFieldName(), field);
9604
        }
9605
      }
9606
 
9607
      /**
9608
       * Find the _Fields constant that matches fieldId, or null if its not found.
9609
       */
9610
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9611
        switch(fieldId) {
9612
          case 0: // SUCCESS
9613
            return SUCCESS;
9614
          default:
9615
            return null;
9616
        }
3339 mandeep.dh 9617
      }
9618
 
9619
      /**
9620
       * Find the _Fields constant that matches fieldId, throwing an exception
9621
       * if it is not found.
9622
       */
9623
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9624
        _Fields fields = findByThriftId(fieldId);
9625
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9626
        return fields;
9627
      }
9628
 
9629
      /**
9630
       * Find the _Fields constant that matches name, or null if its not found.
9631
       */
9632
      public static _Fields findByName(String name) {
9633
        return byName.get(name);
9634
      }
9635
 
9636
      private final short _thriftId;
9637
      private final String _fieldName;
9638
 
9639
      _Fields(short thriftId, String fieldName) {
9640
        _thriftId = thriftId;
9641
        _fieldName = fieldName;
9642
      }
9643
 
9644
      public short getThriftFieldId() {
9645
        return _thriftId;
9646
      }
9647
 
9648
      public String getFieldName() {
9649
        return _fieldName;
9650
      }
9651
    }
9652
 
9653
    // isset id assignments
9654
    private static final int __SUCCESS_ISSET_ID = 0;
9655
    private BitSet __isset_bit_vector = new BitSet(1);
9656
 
3430 rajveer 9657
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9658
    static {
3430 rajveer 9659
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9660
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9661
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9662
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9663
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_result.class, metaDataMap);
3339 mandeep.dh 9664
    }
9665
 
9666
    public getLastEmailProcessedTimestamp_result() {
9667
    }
9668
 
9669
    public getLastEmailProcessedTimestamp_result(
9670
      long success)
9671
    {
9672
      this();
9673
      this.success = success;
9674
      setSuccessIsSet(true);
9675
    }
9676
 
9677
    /**
9678
     * Performs a deep copy on <i>other</i>.
9679
     */
9680
    public getLastEmailProcessedTimestamp_result(getLastEmailProcessedTimestamp_result other) {
9681
      __isset_bit_vector.clear();
9682
      __isset_bit_vector.or(other.__isset_bit_vector);
9683
      this.success = other.success;
9684
    }
9685
 
9686
    public getLastEmailProcessedTimestamp_result deepCopy() {
9687
      return new getLastEmailProcessedTimestamp_result(this);
9688
    }
9689
 
3430 rajveer 9690
    @Override
9691
    public void clear() {
9692
      setSuccessIsSet(false);
9693
      this.success = 0;
3339 mandeep.dh 9694
    }
9695
 
9696
    public long getSuccess() {
9697
      return this.success;
9698
    }
9699
 
3430 rajveer 9700
    public void setSuccess(long success) {
3339 mandeep.dh 9701
      this.success = success;
9702
      setSuccessIsSet(true);
9703
    }
9704
 
9705
    public void unsetSuccess() {
9706
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9707
    }
9708
 
3430 rajveer 9709
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3339 mandeep.dh 9710
    public boolean isSetSuccess() {
9711
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9712
    }
9713
 
9714
    public void setSuccessIsSet(boolean value) {
9715
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9716
    }
9717
 
9718
    public void setFieldValue(_Fields field, Object value) {
9719
      switch (field) {
9720
      case SUCCESS:
9721
        if (value == null) {
9722
          unsetSuccess();
9723
        } else {
9724
          setSuccess((Long)value);
9725
        }
9726
        break;
9727
 
9728
      }
9729
    }
9730
 
9731
    public Object getFieldValue(_Fields field) {
9732
      switch (field) {
9733
      case SUCCESS:
3430 rajveer 9734
        return Long.valueOf(getSuccess());
3339 mandeep.dh 9735
 
9736
      }
9737
      throw new IllegalStateException();
9738
    }
9739
 
3430 rajveer 9740
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9741
    public boolean isSet(_Fields field) {
9742
      if (field == null) {
9743
        throw new IllegalArgumentException();
9744
      }
3339 mandeep.dh 9745
 
9746
      switch (field) {
9747
      case SUCCESS:
9748
        return isSetSuccess();
9749
      }
9750
      throw new IllegalStateException();
9751
    }
9752
 
9753
    @Override
9754
    public boolean equals(Object that) {
9755
      if (that == null)
9756
        return false;
9757
      if (that instanceof getLastEmailProcessedTimestamp_result)
9758
        return this.equals((getLastEmailProcessedTimestamp_result)that);
9759
      return false;
9760
    }
9761
 
9762
    public boolean equals(getLastEmailProcessedTimestamp_result that) {
9763
      if (that == null)
9764
        return false;
9765
 
9766
      boolean this_present_success = true;
9767
      boolean that_present_success = true;
9768
      if (this_present_success || that_present_success) {
9769
        if (!(this_present_success && that_present_success))
9770
          return false;
9771
        if (this.success != that.success)
9772
          return false;
9773
      }
9774
 
9775
      return true;
9776
    }
9777
 
9778
    @Override
9779
    public int hashCode() {
9780
      return 0;
9781
    }
9782
 
9783
    public int compareTo(getLastEmailProcessedTimestamp_result other) {
9784
      if (!getClass().equals(other.getClass())) {
9785
        return getClass().getName().compareTo(other.getClass().getName());
9786
      }
9787
 
9788
      int lastComparison = 0;
9789
      getLastEmailProcessedTimestamp_result typedOther = (getLastEmailProcessedTimestamp_result)other;
9790
 
3430 rajveer 9791
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3339 mandeep.dh 9792
      if (lastComparison != 0) {
9793
        return lastComparison;
9794
      }
3430 rajveer 9795
      if (isSetSuccess()) {
9796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9797
        if (lastComparison != 0) {
9798
          return lastComparison;
9799
        }
3339 mandeep.dh 9800
      }
9801
      return 0;
9802
    }
9803
 
3430 rajveer 9804
    public _Fields fieldForId(int fieldId) {
9805
      return _Fields.findByThriftId(fieldId);
9806
    }
9807
 
9808
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9809
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 9810
      iprot.readStructBegin();
9811
      while (true)
9812
      {
9813
        field = iprot.readFieldBegin();
3430 rajveer 9814
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 9815
          break;
9816
        }
3430 rajveer 9817
        switch (field.id) {
9818
          case 0: // SUCCESS
9819
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9820
              this.success = iprot.readI64();
9821
              setSuccessIsSet(true);
9822
            } else { 
9823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9824
            }
9825
            break;
9826
          default:
9827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 9828
        }
3430 rajveer 9829
        iprot.readFieldEnd();
3339 mandeep.dh 9830
      }
9831
      iprot.readStructEnd();
9832
      validate();
9833
    }
9834
 
3430 rajveer 9835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 9836
      oprot.writeStructBegin(STRUCT_DESC);
9837
 
9838
      if (this.isSetSuccess()) {
9839
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9840
        oprot.writeI64(this.success);
9841
        oprot.writeFieldEnd();
9842
      }
9843
      oprot.writeFieldStop();
9844
      oprot.writeStructEnd();
9845
    }
9846
 
9847
    @Override
9848
    public String toString() {
9849
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_result(");
9850
      boolean first = true;
9851
 
9852
      sb.append("success:");
9853
      sb.append(this.success);
9854
      first = false;
9855
      sb.append(")");
9856
      return sb.toString();
9857
    }
9858
 
3430 rajveer 9859
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 9860
      // check for required fields
9861
    }
9862
 
3430 rajveer 9863
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9864
      try {
9865
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9866
      } catch (org.apache.thrift.TException te) {
9867
        throw new java.io.IOException(te);
9868
      }
9869
    }
9870
 
9871
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9872
      try {
9873
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9874
      } catch (org.apache.thrift.TException te) {
9875
        throw new java.io.IOException(te);
9876
      }
9877
    }
9878
 
3339 mandeep.dh 9879
  }
9880
 
3430 rajveer 9881
  public static class updateLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_args, updateLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
9882
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_args");
3339 mandeep.dh 9883
 
3430 rajveer 9884
    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);
3339 mandeep.dh 9885
 
3430 rajveer 9886
    private long timestamp; // required
3339 mandeep.dh 9887
 
9888
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9889
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9890
      TIMESTAMP((short)1, "timestamp");
9891
 
9892
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9893
 
9894
      static {
9895
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9896
          byName.put(field.getFieldName(), field);
9897
        }
9898
      }
9899
 
9900
      /**
9901
       * Find the _Fields constant that matches fieldId, or null if its not found.
9902
       */
9903
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9904
        switch(fieldId) {
9905
          case 1: // TIMESTAMP
9906
            return TIMESTAMP;
9907
          default:
9908
            return null;
9909
        }
3339 mandeep.dh 9910
      }
9911
 
9912
      /**
9913
       * Find the _Fields constant that matches fieldId, throwing an exception
9914
       * if it is not found.
9915
       */
9916
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9917
        _Fields fields = findByThriftId(fieldId);
9918
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9919
        return fields;
9920
      }
9921
 
9922
      /**
9923
       * Find the _Fields constant that matches name, or null if its not found.
9924
       */
9925
      public static _Fields findByName(String name) {
9926
        return byName.get(name);
9927
      }
9928
 
9929
      private final short _thriftId;
9930
      private final String _fieldName;
9931
 
9932
      _Fields(short thriftId, String fieldName) {
9933
        _thriftId = thriftId;
9934
        _fieldName = fieldName;
9935
      }
9936
 
9937
      public short getThriftFieldId() {
9938
        return _thriftId;
9939
      }
9940
 
9941
      public String getFieldName() {
9942
        return _fieldName;
9943
      }
9944
    }
9945
 
9946
    // isset id assignments
9947
    private static final int __TIMESTAMP_ISSET_ID = 0;
9948
    private BitSet __isset_bit_vector = new BitSet(1);
9949
 
3430 rajveer 9950
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9951
    static {
3430 rajveer 9952
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9953
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9954
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9955
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9956
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_args.class, metaDataMap);
3339 mandeep.dh 9957
    }
9958
 
9959
    public updateLastEmailProcessedTimestamp_args() {
9960
    }
9961
 
9962
    public updateLastEmailProcessedTimestamp_args(
9963
      long timestamp)
9964
    {
9965
      this();
9966
      this.timestamp = timestamp;
9967
      setTimestampIsSet(true);
9968
    }
9969
 
9970
    /**
9971
     * Performs a deep copy on <i>other</i>.
9972
     */
9973
    public updateLastEmailProcessedTimestamp_args(updateLastEmailProcessedTimestamp_args other) {
9974
      __isset_bit_vector.clear();
9975
      __isset_bit_vector.or(other.__isset_bit_vector);
9976
      this.timestamp = other.timestamp;
9977
    }
9978
 
9979
    public updateLastEmailProcessedTimestamp_args deepCopy() {
9980
      return new updateLastEmailProcessedTimestamp_args(this);
9981
    }
9982
 
3430 rajveer 9983
    @Override
9984
    public void clear() {
9985
      setTimestampIsSet(false);
9986
      this.timestamp = 0;
3339 mandeep.dh 9987
    }
9988
 
9989
    public long getTimestamp() {
9990
      return this.timestamp;
9991
    }
9992
 
3430 rajveer 9993
    public void setTimestamp(long timestamp) {
3339 mandeep.dh 9994
      this.timestamp = timestamp;
9995
      setTimestampIsSet(true);
9996
    }
9997
 
9998
    public void unsetTimestamp() {
9999
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
10000
    }
10001
 
3430 rajveer 10002
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
3339 mandeep.dh 10003
    public boolean isSetTimestamp() {
10004
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
10005
    }
10006
 
10007
    public void setTimestampIsSet(boolean value) {
10008
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
10009
    }
10010
 
10011
    public void setFieldValue(_Fields field, Object value) {
10012
      switch (field) {
10013
      case TIMESTAMP:
10014
        if (value == null) {
10015
          unsetTimestamp();
10016
        } else {
10017
          setTimestamp((Long)value);
10018
        }
10019
        break;
10020
 
10021
      }
10022
    }
10023
 
10024
    public Object getFieldValue(_Fields field) {
10025
      switch (field) {
10026
      case TIMESTAMP:
3430 rajveer 10027
        return Long.valueOf(getTimestamp());
3339 mandeep.dh 10028
 
10029
      }
10030
      throw new IllegalStateException();
10031
    }
10032
 
3430 rajveer 10033
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10034
    public boolean isSet(_Fields field) {
10035
      if (field == null) {
10036
        throw new IllegalArgumentException();
10037
      }
3339 mandeep.dh 10038
 
10039
      switch (field) {
10040
      case TIMESTAMP:
10041
        return isSetTimestamp();
10042
      }
10043
      throw new IllegalStateException();
10044
    }
10045
 
10046
    @Override
10047
    public boolean equals(Object that) {
10048
      if (that == null)
10049
        return false;
10050
      if (that instanceof updateLastEmailProcessedTimestamp_args)
10051
        return this.equals((updateLastEmailProcessedTimestamp_args)that);
10052
      return false;
10053
    }
10054
 
10055
    public boolean equals(updateLastEmailProcessedTimestamp_args that) {
10056
      if (that == null)
10057
        return false;
10058
 
10059
      boolean this_present_timestamp = true;
10060
      boolean that_present_timestamp = true;
10061
      if (this_present_timestamp || that_present_timestamp) {
10062
        if (!(this_present_timestamp && that_present_timestamp))
10063
          return false;
10064
        if (this.timestamp != that.timestamp)
10065
          return false;
10066
      }
10067
 
10068
      return true;
10069
    }
10070
 
10071
    @Override
10072
    public int hashCode() {
10073
      return 0;
10074
    }
10075
 
10076
    public int compareTo(updateLastEmailProcessedTimestamp_args other) {
10077
      if (!getClass().equals(other.getClass())) {
10078
        return getClass().getName().compareTo(other.getClass().getName());
10079
      }
10080
 
10081
      int lastComparison = 0;
10082
      updateLastEmailProcessedTimestamp_args typedOther = (updateLastEmailProcessedTimestamp_args)other;
10083
 
3430 rajveer 10084
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
3339 mandeep.dh 10085
      if (lastComparison != 0) {
10086
        return lastComparison;
10087
      }
3430 rajveer 10088
      if (isSetTimestamp()) {
10089
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
10090
        if (lastComparison != 0) {
10091
          return lastComparison;
10092
        }
3339 mandeep.dh 10093
      }
10094
      return 0;
10095
    }
10096
 
3430 rajveer 10097
    public _Fields fieldForId(int fieldId) {
10098
      return _Fields.findByThriftId(fieldId);
10099
    }
10100
 
10101
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10102
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 10103
      iprot.readStructBegin();
10104
      while (true)
10105
      {
10106
        field = iprot.readFieldBegin();
3430 rajveer 10107
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 10108
          break;
10109
        }
3430 rajveer 10110
        switch (field.id) {
10111
          case 1: // TIMESTAMP
10112
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10113
              this.timestamp = iprot.readI64();
10114
              setTimestampIsSet(true);
10115
            } else { 
10116
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10117
            }
10118
            break;
10119
          default:
10120
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 10121
        }
3430 rajveer 10122
        iprot.readFieldEnd();
3339 mandeep.dh 10123
      }
10124
      iprot.readStructEnd();
10125
      validate();
10126
    }
10127
 
3430 rajveer 10128
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 10129
      validate();
10130
 
10131
      oprot.writeStructBegin(STRUCT_DESC);
10132
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
10133
      oprot.writeI64(this.timestamp);
10134
      oprot.writeFieldEnd();
10135
      oprot.writeFieldStop();
10136
      oprot.writeStructEnd();
10137
    }
10138
 
10139
    @Override
10140
    public String toString() {
10141
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_args(");
10142
      boolean first = true;
10143
 
10144
      sb.append("timestamp:");
10145
      sb.append(this.timestamp);
10146
      first = false;
10147
      sb.append(")");
10148
      return sb.toString();
10149
    }
10150
 
3430 rajveer 10151
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 10152
      // check for required fields
10153
    }
10154
 
3430 rajveer 10155
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10156
      try {
10157
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10158
      } catch (org.apache.thrift.TException te) {
10159
        throw new java.io.IOException(te);
10160
      }
10161
    }
10162
 
10163
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10164
      try {
10165
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10166
        __isset_bit_vector = new BitSet(1);
10167
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10168
      } catch (org.apache.thrift.TException te) {
10169
        throw new java.io.IOException(te);
10170
      }
10171
    }
10172
 
3339 mandeep.dh 10173
  }
10174
 
3430 rajveer 10175
  public static class updateLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_result, updateLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
10176
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_result");
3339 mandeep.dh 10177
 
10178
 
10179
 
10180
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10181
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 10182
;
10183
 
10184
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10185
 
10186
      static {
10187
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10188
          byName.put(field.getFieldName(), field);
10189
        }
10190
      }
10191
 
10192
      /**
10193
       * Find the _Fields constant that matches fieldId, or null if its not found.
10194
       */
10195
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10196
        switch(fieldId) {
10197
          default:
10198
            return null;
10199
        }
3339 mandeep.dh 10200
      }
10201
 
10202
      /**
10203
       * Find the _Fields constant that matches fieldId, throwing an exception
10204
       * if it is not found.
10205
       */
10206
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10207
        _Fields fields = findByThriftId(fieldId);
10208
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10209
        return fields;
10210
      }
10211
 
10212
      /**
10213
       * Find the _Fields constant that matches name, or null if its not found.
10214
       */
10215
      public static _Fields findByName(String name) {
10216
        return byName.get(name);
10217
      }
10218
 
10219
      private final short _thriftId;
10220
      private final String _fieldName;
10221
 
10222
      _Fields(short thriftId, String fieldName) {
10223
        _thriftId = thriftId;
10224
        _fieldName = fieldName;
10225
      }
10226
 
10227
      public short getThriftFieldId() {
10228
        return _thriftId;
10229
      }
10230
 
10231
      public String getFieldName() {
10232
        return _fieldName;
10233
      }
10234
    }
3430 rajveer 10235
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 10236
    static {
3430 rajveer 10237
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10238
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10239
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_result.class, metaDataMap);
3339 mandeep.dh 10240
    }
10241
 
10242
    public updateLastEmailProcessedTimestamp_result() {
10243
    }
10244
 
10245
    /**
10246
     * Performs a deep copy on <i>other</i>.
10247
     */
10248
    public updateLastEmailProcessedTimestamp_result(updateLastEmailProcessedTimestamp_result other) {
10249
    }
10250
 
10251
    public updateLastEmailProcessedTimestamp_result deepCopy() {
10252
      return new updateLastEmailProcessedTimestamp_result(this);
10253
    }
10254
 
3430 rajveer 10255
    @Override
10256
    public void clear() {
3339 mandeep.dh 10257
    }
10258
 
10259
    public void setFieldValue(_Fields field, Object value) {
10260
      switch (field) {
10261
      }
10262
    }
10263
 
10264
    public Object getFieldValue(_Fields field) {
10265
      switch (field) {
10266
      }
10267
      throw new IllegalStateException();
10268
    }
10269
 
3430 rajveer 10270
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10271
    public boolean isSet(_Fields field) {
10272
      if (field == null) {
10273
        throw new IllegalArgumentException();
10274
      }
3339 mandeep.dh 10275
 
10276
      switch (field) {
10277
      }
10278
      throw new IllegalStateException();
10279
    }
10280
 
10281
    @Override
10282
    public boolean equals(Object that) {
10283
      if (that == null)
10284
        return false;
10285
      if (that instanceof updateLastEmailProcessedTimestamp_result)
10286
        return this.equals((updateLastEmailProcessedTimestamp_result)that);
10287
      return false;
10288
    }
10289
 
10290
    public boolean equals(updateLastEmailProcessedTimestamp_result that) {
10291
      if (that == null)
10292
        return false;
10293
 
10294
      return true;
10295
    }
10296
 
10297
    @Override
10298
    public int hashCode() {
10299
      return 0;
10300
    }
10301
 
10302
    public int compareTo(updateLastEmailProcessedTimestamp_result other) {
10303
      if (!getClass().equals(other.getClass())) {
10304
        return getClass().getName().compareTo(other.getClass().getName());
10305
      }
10306
 
10307
      int lastComparison = 0;
10308
      updateLastEmailProcessedTimestamp_result typedOther = (updateLastEmailProcessedTimestamp_result)other;
10309
 
10310
      return 0;
10311
    }
10312
 
3430 rajveer 10313
    public _Fields fieldForId(int fieldId) {
10314
      return _Fields.findByThriftId(fieldId);
10315
    }
10316
 
10317
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10318
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 10319
      iprot.readStructBegin();
10320
      while (true)
10321
      {
10322
        field = iprot.readFieldBegin();
3430 rajveer 10323
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 10324
          break;
10325
        }
3430 rajveer 10326
        switch (field.id) {
10327
          default:
10328
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 10329
        }
3430 rajveer 10330
        iprot.readFieldEnd();
3339 mandeep.dh 10331
      }
10332
      iprot.readStructEnd();
10333
      validate();
10334
    }
10335
 
3430 rajveer 10336
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 10337
      oprot.writeStructBegin(STRUCT_DESC);
10338
 
10339
      oprot.writeFieldStop();
10340
      oprot.writeStructEnd();
10341
    }
10342
 
10343
    @Override
10344
    public String toString() {
10345
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_result(");
10346
      boolean first = true;
10347
 
10348
      sb.append(")");
10349
      return sb.toString();
10350
    }
10351
 
3430 rajveer 10352
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 10353
      // check for required fields
10354
    }
10355
 
3430 rajveer 10356
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10357
      try {
10358
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10359
      } catch (org.apache.thrift.TException te) {
10360
        throw new java.io.IOException(te);
10361
      }
10362
    }
10363
 
10364
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10365
      try {
10366
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10367
      } catch (org.apache.thrift.TException te) {
10368
        throw new java.io.IOException(te);
10369
      }
10370
    }
10371
 
3339 mandeep.dh 10372
  }
10373
 
4793 amar.kumar 10374
  public static class changeAgentStatus_args implements org.apache.thrift.TBase<changeAgentStatus_args, changeAgentStatus_args._Fields>, java.io.Serializable, Cloneable   {
10375
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_args");
10376
 
10377
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.BOOL, (short)1);
10378
    private static final org.apache.thrift.protocol.TField EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emailId", org.apache.thrift.protocol.TType.STRING, (short)2);
10379
 
10380
    private boolean status; // required
10381
    private String emailId; // required
10382
 
10383
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10384
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10385
      STATUS((short)1, "status"),
10386
      EMAIL_ID((short)2, "emailId");
10387
 
10388
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10389
 
10390
      static {
10391
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10392
          byName.put(field.getFieldName(), field);
10393
        }
10394
      }
10395
 
10396
      /**
10397
       * Find the _Fields constant that matches fieldId, or null if its not found.
10398
       */
10399
      public static _Fields findByThriftId(int fieldId) {
10400
        switch(fieldId) {
10401
          case 1: // STATUS
10402
            return STATUS;
10403
          case 2: // EMAIL_ID
10404
            return EMAIL_ID;
10405
          default:
10406
            return null;
10407
        }
10408
      }
10409
 
10410
      /**
10411
       * Find the _Fields constant that matches fieldId, throwing an exception
10412
       * if it is not found.
10413
       */
10414
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10415
        _Fields fields = findByThriftId(fieldId);
10416
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10417
        return fields;
10418
      }
10419
 
10420
      /**
10421
       * Find the _Fields constant that matches name, or null if its not found.
10422
       */
10423
      public static _Fields findByName(String name) {
10424
        return byName.get(name);
10425
      }
10426
 
10427
      private final short _thriftId;
10428
      private final String _fieldName;
10429
 
10430
      _Fields(short thriftId, String fieldName) {
10431
        _thriftId = thriftId;
10432
        _fieldName = fieldName;
10433
      }
10434
 
10435
      public short getThriftFieldId() {
10436
        return _thriftId;
10437
      }
10438
 
10439
      public String getFieldName() {
10440
        return _fieldName;
10441
      }
10442
    }
10443
 
10444
    // isset id assignments
10445
    private static final int __STATUS_ISSET_ID = 0;
10446
    private BitSet __isset_bit_vector = new BitSet(1);
10447
 
10448
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10449
    static {
10450
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10451
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10452
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10453
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10454
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10455
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10456
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_args.class, metaDataMap);
10457
    }
10458
 
10459
    public changeAgentStatus_args() {
10460
    }
10461
 
10462
    public changeAgentStatus_args(
10463
      boolean status,
10464
      String emailId)
10465
    {
10466
      this();
10467
      this.status = status;
10468
      setStatusIsSet(true);
10469
      this.emailId = emailId;
10470
    }
10471
 
10472
    /**
10473
     * Performs a deep copy on <i>other</i>.
10474
     */
10475
    public changeAgentStatus_args(changeAgentStatus_args other) {
10476
      __isset_bit_vector.clear();
10477
      __isset_bit_vector.or(other.__isset_bit_vector);
10478
      this.status = other.status;
10479
      if (other.isSetEmailId()) {
10480
        this.emailId = other.emailId;
10481
      }
10482
    }
10483
 
10484
    public changeAgentStatus_args deepCopy() {
10485
      return new changeAgentStatus_args(this);
10486
    }
10487
 
10488
    @Override
10489
    public void clear() {
10490
      setStatusIsSet(false);
10491
      this.status = false;
10492
      this.emailId = null;
10493
    }
10494
 
10495
    public boolean isStatus() {
10496
      return this.status;
10497
    }
10498
 
10499
    public void setStatus(boolean status) {
10500
      this.status = status;
10501
      setStatusIsSet(true);
10502
    }
10503
 
10504
    public void unsetStatus() {
10505
      __isset_bit_vector.clear(__STATUS_ISSET_ID);
10506
    }
10507
 
10508
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
10509
    public boolean isSetStatus() {
10510
      return __isset_bit_vector.get(__STATUS_ISSET_ID);
10511
    }
10512
 
10513
    public void setStatusIsSet(boolean value) {
10514
      __isset_bit_vector.set(__STATUS_ISSET_ID, value);
10515
    }
10516
 
10517
    public String getEmailId() {
10518
      return this.emailId;
10519
    }
10520
 
10521
    public void setEmailId(String emailId) {
10522
      this.emailId = emailId;
10523
    }
10524
 
10525
    public void unsetEmailId() {
10526
      this.emailId = null;
10527
    }
10528
 
10529
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
10530
    public boolean isSetEmailId() {
10531
      return this.emailId != null;
10532
    }
10533
 
10534
    public void setEmailIdIsSet(boolean value) {
10535
      if (!value) {
10536
        this.emailId = null;
10537
      }
10538
    }
10539
 
10540
    public void setFieldValue(_Fields field, Object value) {
10541
      switch (field) {
10542
      case STATUS:
10543
        if (value == null) {
10544
          unsetStatus();
10545
        } else {
10546
          setStatus((Boolean)value);
10547
        }
10548
        break;
10549
 
10550
      case EMAIL_ID:
10551
        if (value == null) {
10552
          unsetEmailId();
10553
        } else {
10554
          setEmailId((String)value);
10555
        }
10556
        break;
10557
 
10558
      }
10559
    }
10560
 
10561
    public Object getFieldValue(_Fields field) {
10562
      switch (field) {
10563
      case STATUS:
10564
        return Boolean.valueOf(isStatus());
10565
 
10566
      case EMAIL_ID:
10567
        return getEmailId();
10568
 
10569
      }
10570
      throw new IllegalStateException();
10571
    }
10572
 
10573
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10574
    public boolean isSet(_Fields field) {
10575
      if (field == null) {
10576
        throw new IllegalArgumentException();
10577
      }
10578
 
10579
      switch (field) {
10580
      case STATUS:
10581
        return isSetStatus();
10582
      case EMAIL_ID:
10583
        return isSetEmailId();
10584
      }
10585
      throw new IllegalStateException();
10586
    }
10587
 
10588
    @Override
10589
    public boolean equals(Object that) {
10590
      if (that == null)
10591
        return false;
10592
      if (that instanceof changeAgentStatus_args)
10593
        return this.equals((changeAgentStatus_args)that);
10594
      return false;
10595
    }
10596
 
10597
    public boolean equals(changeAgentStatus_args that) {
10598
      if (that == null)
10599
        return false;
10600
 
10601
      boolean this_present_status = true;
10602
      boolean that_present_status = true;
10603
      if (this_present_status || that_present_status) {
10604
        if (!(this_present_status && that_present_status))
10605
          return false;
10606
        if (this.status != that.status)
10607
          return false;
10608
      }
10609
 
10610
      boolean this_present_emailId = true && this.isSetEmailId();
10611
      boolean that_present_emailId = true && that.isSetEmailId();
10612
      if (this_present_emailId || that_present_emailId) {
10613
        if (!(this_present_emailId && that_present_emailId))
10614
          return false;
10615
        if (!this.emailId.equals(that.emailId))
10616
          return false;
10617
      }
10618
 
10619
      return true;
10620
    }
10621
 
10622
    @Override
10623
    public int hashCode() {
10624
      return 0;
10625
    }
10626
 
10627
    public int compareTo(changeAgentStatus_args other) {
10628
      if (!getClass().equals(other.getClass())) {
10629
        return getClass().getName().compareTo(other.getClass().getName());
10630
      }
10631
 
10632
      int lastComparison = 0;
10633
      changeAgentStatus_args typedOther = (changeAgentStatus_args)other;
10634
 
10635
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
10636
      if (lastComparison != 0) {
10637
        return lastComparison;
10638
      }
10639
      if (isSetStatus()) {
10640
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
10641
        if (lastComparison != 0) {
10642
          return lastComparison;
10643
        }
10644
      }
10645
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
10646
      if (lastComparison != 0) {
10647
        return lastComparison;
10648
      }
10649
      if (isSetEmailId()) {
10650
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
10651
        if (lastComparison != 0) {
10652
          return lastComparison;
10653
        }
10654
      }
10655
      return 0;
10656
    }
10657
 
10658
    public _Fields fieldForId(int fieldId) {
10659
      return _Fields.findByThriftId(fieldId);
10660
    }
10661
 
10662
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10663
      org.apache.thrift.protocol.TField field;
10664
      iprot.readStructBegin();
10665
      while (true)
10666
      {
10667
        field = iprot.readFieldBegin();
10668
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10669
          break;
10670
        }
10671
        switch (field.id) {
10672
          case 1: // STATUS
10673
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10674
              this.status = iprot.readBool();
10675
              setStatusIsSet(true);
10676
            } else { 
10677
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10678
            }
10679
            break;
10680
          case 2: // EMAIL_ID
10681
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10682
              this.emailId = iprot.readString();
10683
            } else { 
10684
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10685
            }
10686
            break;
10687
          default:
10688
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10689
        }
10690
        iprot.readFieldEnd();
10691
      }
10692
      iprot.readStructEnd();
10693
      validate();
10694
    }
10695
 
10696
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10697
      validate();
10698
 
10699
      oprot.writeStructBegin(STRUCT_DESC);
10700
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
10701
      oprot.writeBool(this.status);
10702
      oprot.writeFieldEnd();
10703
      if (this.emailId != null) {
10704
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
10705
        oprot.writeString(this.emailId);
10706
        oprot.writeFieldEnd();
10707
      }
10708
      oprot.writeFieldStop();
10709
      oprot.writeStructEnd();
10710
    }
10711
 
10712
    @Override
10713
    public String toString() {
10714
      StringBuilder sb = new StringBuilder("changeAgentStatus_args(");
10715
      boolean first = true;
10716
 
10717
      sb.append("status:");
10718
      sb.append(this.status);
10719
      first = false;
10720
      if (!first) sb.append(", ");
10721
      sb.append("emailId:");
10722
      if (this.emailId == null) {
10723
        sb.append("null");
10724
      } else {
10725
        sb.append(this.emailId);
10726
      }
10727
      first = false;
10728
      sb.append(")");
10729
      return sb.toString();
10730
    }
10731
 
10732
    public void validate() throws org.apache.thrift.TException {
10733
      // check for required fields
10734
    }
10735
 
10736
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10737
      try {
10738
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10739
      } catch (org.apache.thrift.TException te) {
10740
        throw new java.io.IOException(te);
10741
      }
10742
    }
10743
 
10744
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10745
      try {
10746
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10747
        __isset_bit_vector = new BitSet(1);
10748
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10749
      } catch (org.apache.thrift.TException te) {
10750
        throw new java.io.IOException(te);
10751
      }
10752
    }
10753
 
10754
  }
10755
 
10756
  public static class changeAgentStatus_result implements org.apache.thrift.TBase<changeAgentStatus_result, changeAgentStatus_result._Fields>, java.io.Serializable, Cloneable   {
10757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_result");
10758
 
10759
 
10760
 
10761
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10762
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10763
;
10764
 
10765
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10766
 
10767
      static {
10768
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10769
          byName.put(field.getFieldName(), field);
10770
        }
10771
      }
10772
 
10773
      /**
10774
       * Find the _Fields constant that matches fieldId, or null if its not found.
10775
       */
10776
      public static _Fields findByThriftId(int fieldId) {
10777
        switch(fieldId) {
10778
          default:
10779
            return null;
10780
        }
10781
      }
10782
 
10783
      /**
10784
       * Find the _Fields constant that matches fieldId, throwing an exception
10785
       * if it is not found.
10786
       */
10787
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10788
        _Fields fields = findByThriftId(fieldId);
10789
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10790
        return fields;
10791
      }
10792
 
10793
      /**
10794
       * Find the _Fields constant that matches name, or null if its not found.
10795
       */
10796
      public static _Fields findByName(String name) {
10797
        return byName.get(name);
10798
      }
10799
 
10800
      private final short _thriftId;
10801
      private final String _fieldName;
10802
 
10803
      _Fields(short thriftId, String fieldName) {
10804
        _thriftId = thriftId;
10805
        _fieldName = fieldName;
10806
      }
10807
 
10808
      public short getThriftFieldId() {
10809
        return _thriftId;
10810
      }
10811
 
10812
      public String getFieldName() {
10813
        return _fieldName;
10814
      }
10815
    }
10816
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10817
    static {
10818
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10819
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10820
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_result.class, metaDataMap);
10821
    }
10822
 
10823
    public changeAgentStatus_result() {
10824
    }
10825
 
10826
    /**
10827
     * Performs a deep copy on <i>other</i>.
10828
     */
10829
    public changeAgentStatus_result(changeAgentStatus_result other) {
10830
    }
10831
 
10832
    public changeAgentStatus_result deepCopy() {
10833
      return new changeAgentStatus_result(this);
10834
    }
10835
 
10836
    @Override
10837
    public void clear() {
10838
    }
10839
 
10840
    public void setFieldValue(_Fields field, Object value) {
10841
      switch (field) {
10842
      }
10843
    }
10844
 
10845
    public Object getFieldValue(_Fields field) {
10846
      switch (field) {
10847
      }
10848
      throw new IllegalStateException();
10849
    }
10850
 
10851
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10852
    public boolean isSet(_Fields field) {
10853
      if (field == null) {
10854
        throw new IllegalArgumentException();
10855
      }
10856
 
10857
      switch (field) {
10858
      }
10859
      throw new IllegalStateException();
10860
    }
10861
 
10862
    @Override
10863
    public boolean equals(Object that) {
10864
      if (that == null)
10865
        return false;
10866
      if (that instanceof changeAgentStatus_result)
10867
        return this.equals((changeAgentStatus_result)that);
10868
      return false;
10869
    }
10870
 
10871
    public boolean equals(changeAgentStatus_result that) {
10872
      if (that == null)
10873
        return false;
10874
 
10875
      return true;
10876
    }
10877
 
10878
    @Override
10879
    public int hashCode() {
10880
      return 0;
10881
    }
10882
 
10883
    public int compareTo(changeAgentStatus_result other) {
10884
      if (!getClass().equals(other.getClass())) {
10885
        return getClass().getName().compareTo(other.getClass().getName());
10886
      }
10887
 
10888
      int lastComparison = 0;
10889
      changeAgentStatus_result typedOther = (changeAgentStatus_result)other;
10890
 
10891
      return 0;
10892
    }
10893
 
10894
    public _Fields fieldForId(int fieldId) {
10895
      return _Fields.findByThriftId(fieldId);
10896
    }
10897
 
10898
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10899
      org.apache.thrift.protocol.TField field;
10900
      iprot.readStructBegin();
10901
      while (true)
10902
      {
10903
        field = iprot.readFieldBegin();
10904
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10905
          break;
10906
        }
10907
        switch (field.id) {
10908
          default:
10909
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10910
        }
10911
        iprot.readFieldEnd();
10912
      }
10913
      iprot.readStructEnd();
10914
      validate();
10915
    }
10916
 
10917
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10918
      oprot.writeStructBegin(STRUCT_DESC);
10919
 
10920
      oprot.writeFieldStop();
10921
      oprot.writeStructEnd();
10922
    }
10923
 
10924
    @Override
10925
    public String toString() {
10926
      StringBuilder sb = new StringBuilder("changeAgentStatus_result(");
10927
      boolean first = true;
10928
 
10929
      sb.append(")");
10930
      return sb.toString();
10931
    }
10932
 
10933
    public void validate() throws org.apache.thrift.TException {
10934
      // check for required fields
10935
    }
10936
 
10937
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10938
      try {
10939
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10940
      } catch (org.apache.thrift.TException te) {
10941
        throw new java.io.IOException(te);
10942
      }
10943
    }
10944
 
10945
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10946
      try {
10947
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10948
      } catch (org.apache.thrift.TException te) {
10949
        throw new java.io.IOException(te);
10950
      }
10951
    }
10952
 
10953
  }
10954
 
10955
  public static class insertAgent_args implements org.apache.thrift.TBase<insertAgent_args, insertAgent_args._Fields>, java.io.Serializable, Cloneable   {
10956
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_args");
10957
 
10958
    private static final org.apache.thrift.protocol.TField AGENT_FIELD_DESC = new org.apache.thrift.protocol.TField("agent", org.apache.thrift.protocol.TType.STRUCT, (short)1);
10959
    private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.LIST, (short)2);
10960
 
10961
    private Agent agent; // required
10962
    private List<String> role; // required
10963
 
10964
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10965
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10966
      AGENT((short)1, "agent"),
10967
      ROLE((short)2, "role");
10968
 
10969
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10970
 
10971
      static {
10972
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10973
          byName.put(field.getFieldName(), field);
10974
        }
10975
      }
10976
 
10977
      /**
10978
       * Find the _Fields constant that matches fieldId, or null if its not found.
10979
       */
10980
      public static _Fields findByThriftId(int fieldId) {
10981
        switch(fieldId) {
10982
          case 1: // AGENT
10983
            return AGENT;
10984
          case 2: // ROLE
10985
            return ROLE;
10986
          default:
10987
            return null;
10988
        }
10989
      }
10990
 
10991
      /**
10992
       * Find the _Fields constant that matches fieldId, throwing an exception
10993
       * if it is not found.
10994
       */
10995
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10996
        _Fields fields = findByThriftId(fieldId);
10997
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10998
        return fields;
10999
      }
11000
 
11001
      /**
11002
       * Find the _Fields constant that matches name, or null if its not found.
11003
       */
11004
      public static _Fields findByName(String name) {
11005
        return byName.get(name);
11006
      }
11007
 
11008
      private final short _thriftId;
11009
      private final String _fieldName;
11010
 
11011
      _Fields(short thriftId, String fieldName) {
11012
        _thriftId = thriftId;
11013
        _fieldName = fieldName;
11014
      }
11015
 
11016
      public short getThriftFieldId() {
11017
        return _thriftId;
11018
      }
11019
 
11020
      public String getFieldName() {
11021
        return _fieldName;
11022
      }
11023
    }
11024
 
11025
    // isset id assignments
11026
 
11027
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11028
    static {
11029
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11030
      tmpMap.put(_Fields.AGENT, new org.apache.thrift.meta_data.FieldMetaData("agent", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11031
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class)));
11032
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11033
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11034
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
11035
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11036
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_args.class, metaDataMap);
11037
    }
11038
 
11039
    public insertAgent_args() {
11040
    }
11041
 
11042
    public insertAgent_args(
11043
      Agent agent,
11044
      List<String> role)
11045
    {
11046
      this();
11047
      this.agent = agent;
11048
      this.role = role;
11049
    }
11050
 
11051
    /**
11052
     * Performs a deep copy on <i>other</i>.
11053
     */
11054
    public insertAgent_args(insertAgent_args other) {
11055
      if (other.isSetAgent()) {
11056
        this.agent = new Agent(other.agent);
11057
      }
11058
      if (other.isSetRole()) {
11059
        List<String> __this__role = new ArrayList<String>();
11060
        for (String other_element : other.role) {
11061
          __this__role.add(other_element);
11062
        }
11063
        this.role = __this__role;
11064
      }
11065
    }
11066
 
11067
    public insertAgent_args deepCopy() {
11068
      return new insertAgent_args(this);
11069
    }
11070
 
11071
    @Override
11072
    public void clear() {
11073
      this.agent = null;
11074
      this.role = null;
11075
    }
11076
 
11077
    public Agent getAgent() {
11078
      return this.agent;
11079
    }
11080
 
11081
    public void setAgent(Agent agent) {
11082
      this.agent = agent;
11083
    }
11084
 
11085
    public void unsetAgent() {
11086
      this.agent = null;
11087
    }
11088
 
11089
    /** Returns true if field agent is set (has been assigned a value) and false otherwise */
11090
    public boolean isSetAgent() {
11091
      return this.agent != null;
11092
    }
11093
 
11094
    public void setAgentIsSet(boolean value) {
11095
      if (!value) {
11096
        this.agent = null;
11097
      }
11098
    }
11099
 
11100
    public int getRoleSize() {
11101
      return (this.role == null) ? 0 : this.role.size();
11102
    }
11103
 
11104
    public java.util.Iterator<String> getRoleIterator() {
11105
      return (this.role == null) ? null : this.role.iterator();
11106
    }
11107
 
11108
    public void addToRole(String elem) {
11109
      if (this.role == null) {
11110
        this.role = new ArrayList<String>();
11111
      }
11112
      this.role.add(elem);
11113
    }
11114
 
11115
    public List<String> getRole() {
11116
      return this.role;
11117
    }
11118
 
11119
    public void setRole(List<String> role) {
11120
      this.role = role;
11121
    }
11122
 
11123
    public void unsetRole() {
11124
      this.role = null;
11125
    }
11126
 
11127
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
11128
    public boolean isSetRole() {
11129
      return this.role != null;
11130
    }
11131
 
11132
    public void setRoleIsSet(boolean value) {
11133
      if (!value) {
11134
        this.role = null;
11135
      }
11136
    }
11137
 
11138
    public void setFieldValue(_Fields field, Object value) {
11139
      switch (field) {
11140
      case AGENT:
11141
        if (value == null) {
11142
          unsetAgent();
11143
        } else {
11144
          setAgent((Agent)value);
11145
        }
11146
        break;
11147
 
11148
      case ROLE:
11149
        if (value == null) {
11150
          unsetRole();
11151
        } else {
11152
          setRole((List<String>)value);
11153
        }
11154
        break;
11155
 
11156
      }
11157
    }
11158
 
11159
    public Object getFieldValue(_Fields field) {
11160
      switch (field) {
11161
      case AGENT:
11162
        return getAgent();
11163
 
11164
      case ROLE:
11165
        return getRole();
11166
 
11167
      }
11168
      throw new IllegalStateException();
11169
    }
11170
 
11171
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11172
    public boolean isSet(_Fields field) {
11173
      if (field == null) {
11174
        throw new IllegalArgumentException();
11175
      }
11176
 
11177
      switch (field) {
11178
      case AGENT:
11179
        return isSetAgent();
11180
      case ROLE:
11181
        return isSetRole();
11182
      }
11183
      throw new IllegalStateException();
11184
    }
11185
 
11186
    @Override
11187
    public boolean equals(Object that) {
11188
      if (that == null)
11189
        return false;
11190
      if (that instanceof insertAgent_args)
11191
        return this.equals((insertAgent_args)that);
11192
      return false;
11193
    }
11194
 
11195
    public boolean equals(insertAgent_args that) {
11196
      if (that == null)
11197
        return false;
11198
 
11199
      boolean this_present_agent = true && this.isSetAgent();
11200
      boolean that_present_agent = true && that.isSetAgent();
11201
      if (this_present_agent || that_present_agent) {
11202
        if (!(this_present_agent && that_present_agent))
11203
          return false;
11204
        if (!this.agent.equals(that.agent))
11205
          return false;
11206
      }
11207
 
11208
      boolean this_present_role = true && this.isSetRole();
11209
      boolean that_present_role = true && that.isSetRole();
11210
      if (this_present_role || that_present_role) {
11211
        if (!(this_present_role && that_present_role))
11212
          return false;
11213
        if (!this.role.equals(that.role))
11214
          return false;
11215
      }
11216
 
11217
      return true;
11218
    }
11219
 
11220
    @Override
11221
    public int hashCode() {
11222
      return 0;
11223
    }
11224
 
11225
    public int compareTo(insertAgent_args other) {
11226
      if (!getClass().equals(other.getClass())) {
11227
        return getClass().getName().compareTo(other.getClass().getName());
11228
      }
11229
 
11230
      int lastComparison = 0;
11231
      insertAgent_args typedOther = (insertAgent_args)other;
11232
 
11233
      lastComparison = Boolean.valueOf(isSetAgent()).compareTo(typedOther.isSetAgent());
11234
      if (lastComparison != 0) {
11235
        return lastComparison;
11236
      }
11237
      if (isSetAgent()) {
11238
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agent, typedOther.agent);
11239
        if (lastComparison != 0) {
11240
          return lastComparison;
11241
        }
11242
      }
11243
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
11244
      if (lastComparison != 0) {
11245
        return lastComparison;
11246
      }
11247
      if (isSetRole()) {
11248
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
11249
        if (lastComparison != 0) {
11250
          return lastComparison;
11251
        }
11252
      }
11253
      return 0;
11254
    }
11255
 
11256
    public _Fields fieldForId(int fieldId) {
11257
      return _Fields.findByThriftId(fieldId);
11258
    }
11259
 
11260
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11261
      org.apache.thrift.protocol.TField field;
11262
      iprot.readStructBegin();
11263
      while (true)
11264
      {
11265
        field = iprot.readFieldBegin();
11266
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11267
          break;
11268
        }
11269
        switch (field.id) {
11270
          case 1: // AGENT
11271
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11272
              this.agent = new Agent();
11273
              this.agent.read(iprot);
11274
            } else { 
11275
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11276
            }
11277
            break;
11278
          case 2: // ROLE
11279
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11280
              {
5287 amar.kumar 11281
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
11282
                this.role = new ArrayList<String>(_list40.size);
11283
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
4793 amar.kumar 11284
                {
5287 amar.kumar 11285
                  String _elem42; // required
11286
                  _elem42 = iprot.readString();
11287
                  this.role.add(_elem42);
4793 amar.kumar 11288
                }
11289
                iprot.readListEnd();
11290
              }
11291
            } else { 
11292
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11293
            }
11294
            break;
11295
          default:
11296
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11297
        }
11298
        iprot.readFieldEnd();
11299
      }
11300
      iprot.readStructEnd();
11301
      validate();
11302
    }
11303
 
11304
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11305
      validate();
11306
 
11307
      oprot.writeStructBegin(STRUCT_DESC);
11308
      if (this.agent != null) {
11309
        oprot.writeFieldBegin(AGENT_FIELD_DESC);
11310
        this.agent.write(oprot);
11311
        oprot.writeFieldEnd();
11312
      }
11313
      if (this.role != null) {
11314
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11315
        {
11316
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
5287 amar.kumar 11317
          for (String _iter43 : this.role)
4793 amar.kumar 11318
          {
5287 amar.kumar 11319
            oprot.writeString(_iter43);
4793 amar.kumar 11320
          }
11321
          oprot.writeListEnd();
11322
        }
11323
        oprot.writeFieldEnd();
11324
      }
11325
      oprot.writeFieldStop();
11326
      oprot.writeStructEnd();
11327
    }
11328
 
11329
    @Override
11330
    public String toString() {
11331
      StringBuilder sb = new StringBuilder("insertAgent_args(");
11332
      boolean first = true;
11333
 
11334
      sb.append("agent:");
11335
      if (this.agent == null) {
11336
        sb.append("null");
11337
      } else {
11338
        sb.append(this.agent);
11339
      }
11340
      first = false;
11341
      if (!first) sb.append(", ");
11342
      sb.append("role:");
11343
      if (this.role == null) {
11344
        sb.append("null");
11345
      } else {
11346
        sb.append(this.role);
11347
      }
11348
      first = false;
11349
      sb.append(")");
11350
      return sb.toString();
11351
    }
11352
 
11353
    public void validate() throws org.apache.thrift.TException {
11354
      // check for required fields
11355
    }
11356
 
11357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11358
      try {
11359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11360
      } catch (org.apache.thrift.TException te) {
11361
        throw new java.io.IOException(te);
11362
      }
11363
    }
11364
 
11365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11366
      try {
11367
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11368
      } catch (org.apache.thrift.TException te) {
11369
        throw new java.io.IOException(te);
11370
      }
11371
    }
11372
 
11373
  }
11374
 
11375
  public static class insertAgent_result implements org.apache.thrift.TBase<insertAgent_result, insertAgent_result._Fields>, java.io.Serializable, Cloneable   {
11376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_result");
11377
 
11378
 
11379
 
11380
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11381
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11382
;
11383
 
11384
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11385
 
11386
      static {
11387
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11388
          byName.put(field.getFieldName(), field);
11389
        }
11390
      }
11391
 
11392
      /**
11393
       * Find the _Fields constant that matches fieldId, or null if its not found.
11394
       */
11395
      public static _Fields findByThriftId(int fieldId) {
11396
        switch(fieldId) {
11397
          default:
11398
            return null;
11399
        }
11400
      }
11401
 
11402
      /**
11403
       * Find the _Fields constant that matches fieldId, throwing an exception
11404
       * if it is not found.
11405
       */
11406
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11407
        _Fields fields = findByThriftId(fieldId);
11408
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11409
        return fields;
11410
      }
11411
 
11412
      /**
11413
       * Find the _Fields constant that matches name, or null if its not found.
11414
       */
11415
      public static _Fields findByName(String name) {
11416
        return byName.get(name);
11417
      }
11418
 
11419
      private final short _thriftId;
11420
      private final String _fieldName;
11421
 
11422
      _Fields(short thriftId, String fieldName) {
11423
        _thriftId = thriftId;
11424
        _fieldName = fieldName;
11425
      }
11426
 
11427
      public short getThriftFieldId() {
11428
        return _thriftId;
11429
      }
11430
 
11431
      public String getFieldName() {
11432
        return _fieldName;
11433
      }
11434
    }
11435
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11436
    static {
11437
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_result.class, metaDataMap);
11440
    }
11441
 
11442
    public insertAgent_result() {
11443
    }
11444
 
11445
    /**
11446
     * Performs a deep copy on <i>other</i>.
11447
     */
11448
    public insertAgent_result(insertAgent_result other) {
11449
    }
11450
 
11451
    public insertAgent_result deepCopy() {
11452
      return new insertAgent_result(this);
11453
    }
11454
 
11455
    @Override
11456
    public void clear() {
11457
    }
11458
 
11459
    public void setFieldValue(_Fields field, Object value) {
11460
      switch (field) {
11461
      }
11462
    }
11463
 
11464
    public Object getFieldValue(_Fields field) {
11465
      switch (field) {
11466
      }
11467
      throw new IllegalStateException();
11468
    }
11469
 
11470
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11471
    public boolean isSet(_Fields field) {
11472
      if (field == null) {
11473
        throw new IllegalArgumentException();
11474
      }
11475
 
11476
      switch (field) {
11477
      }
11478
      throw new IllegalStateException();
11479
    }
11480
 
11481
    @Override
11482
    public boolean equals(Object that) {
11483
      if (that == null)
11484
        return false;
11485
      if (that instanceof insertAgent_result)
11486
        return this.equals((insertAgent_result)that);
11487
      return false;
11488
    }
11489
 
11490
    public boolean equals(insertAgent_result that) {
11491
      if (that == null)
11492
        return false;
11493
 
11494
      return true;
11495
    }
11496
 
11497
    @Override
11498
    public int hashCode() {
11499
      return 0;
11500
    }
11501
 
11502
    public int compareTo(insertAgent_result other) {
11503
      if (!getClass().equals(other.getClass())) {
11504
        return getClass().getName().compareTo(other.getClass().getName());
11505
      }
11506
 
11507
      int lastComparison = 0;
11508
      insertAgent_result typedOther = (insertAgent_result)other;
11509
 
11510
      return 0;
11511
    }
11512
 
11513
    public _Fields fieldForId(int fieldId) {
11514
      return _Fields.findByThriftId(fieldId);
11515
    }
11516
 
11517
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11518
      org.apache.thrift.protocol.TField field;
11519
      iprot.readStructBegin();
11520
      while (true)
11521
      {
11522
        field = iprot.readFieldBegin();
11523
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11524
          break;
11525
        }
11526
        switch (field.id) {
11527
          default:
11528
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11529
        }
11530
        iprot.readFieldEnd();
11531
      }
11532
      iprot.readStructEnd();
11533
      validate();
11534
    }
11535
 
11536
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11537
      oprot.writeStructBegin(STRUCT_DESC);
11538
 
11539
      oprot.writeFieldStop();
11540
      oprot.writeStructEnd();
11541
    }
11542
 
11543
    @Override
11544
    public String toString() {
11545
      StringBuilder sb = new StringBuilder("insertAgent_result(");
11546
      boolean first = true;
11547
 
11548
      sb.append(")");
11549
      return sb.toString();
11550
    }
11551
 
11552
    public void validate() throws org.apache.thrift.TException {
11553
      // check for required fields
11554
    }
11555
 
11556
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11557
      try {
11558
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11559
      } catch (org.apache.thrift.TException te) {
11560
        throw new java.io.IOException(te);
11561
      }
11562
    }
11563
 
11564
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11565
      try {
11566
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11567
      } catch (org.apache.thrift.TException te) {
11568
        throw new java.io.IOException(te);
11569
      }
11570
    }
11571
 
11572
  }
11573
 
5169 amar.kumar 11574
  public static class changeAgentRole_args implements org.apache.thrift.TBase<changeAgentRole_args, changeAgentRole_args._Fields>, java.io.Serializable, Cloneable   {
11575
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_args");
11576
 
11577
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
11578
    private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.LIST, (short)2);
11579
 
11580
    private long id; // required
11581
    private List<String> role; // required
11582
 
11583
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11584
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11585
      ID((short)1, "id"),
11586
      ROLE((short)2, "role");
11587
 
11588
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11589
 
11590
      static {
11591
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11592
          byName.put(field.getFieldName(), field);
11593
        }
11594
      }
11595
 
11596
      /**
11597
       * Find the _Fields constant that matches fieldId, or null if its not found.
11598
       */
11599
      public static _Fields findByThriftId(int fieldId) {
11600
        switch(fieldId) {
11601
          case 1: // ID
11602
            return ID;
11603
          case 2: // ROLE
11604
            return ROLE;
11605
          default:
11606
            return null;
11607
        }
11608
      }
11609
 
11610
      /**
11611
       * Find the _Fields constant that matches fieldId, throwing an exception
11612
       * if it is not found.
11613
       */
11614
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11615
        _Fields fields = findByThriftId(fieldId);
11616
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11617
        return fields;
11618
      }
11619
 
11620
      /**
11621
       * Find the _Fields constant that matches name, or null if its not found.
11622
       */
11623
      public static _Fields findByName(String name) {
11624
        return byName.get(name);
11625
      }
11626
 
11627
      private final short _thriftId;
11628
      private final String _fieldName;
11629
 
11630
      _Fields(short thriftId, String fieldName) {
11631
        _thriftId = thriftId;
11632
        _fieldName = fieldName;
11633
      }
11634
 
11635
      public short getThriftFieldId() {
11636
        return _thriftId;
11637
      }
11638
 
11639
      public String getFieldName() {
11640
        return _fieldName;
11641
      }
11642
    }
11643
 
11644
    // isset id assignments
11645
    private static final int __ID_ISSET_ID = 0;
11646
    private BitSet __isset_bit_vector = new BitSet(1);
11647
 
11648
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11649
    static {
11650
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11651
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11652
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11653
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11654
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11655
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
11656
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11657
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_args.class, metaDataMap);
11658
    }
11659
 
11660
    public changeAgentRole_args() {
11661
    }
11662
 
11663
    public changeAgentRole_args(
11664
      long id,
11665
      List<String> role)
11666
    {
11667
      this();
11668
      this.id = id;
11669
      setIdIsSet(true);
11670
      this.role = role;
11671
    }
11672
 
11673
    /**
11674
     * Performs a deep copy on <i>other</i>.
11675
     */
11676
    public changeAgentRole_args(changeAgentRole_args other) {
11677
      __isset_bit_vector.clear();
11678
      __isset_bit_vector.or(other.__isset_bit_vector);
11679
      this.id = other.id;
11680
      if (other.isSetRole()) {
11681
        List<String> __this__role = new ArrayList<String>();
11682
        for (String other_element : other.role) {
11683
          __this__role.add(other_element);
11684
        }
11685
        this.role = __this__role;
11686
      }
11687
    }
11688
 
11689
    public changeAgentRole_args deepCopy() {
11690
      return new changeAgentRole_args(this);
11691
    }
11692
 
11693
    @Override
11694
    public void clear() {
11695
      setIdIsSet(false);
11696
      this.id = 0;
11697
      this.role = null;
11698
    }
11699
 
11700
    public long getId() {
11701
      return this.id;
11702
    }
11703
 
11704
    public void setId(long id) {
11705
      this.id = id;
11706
      setIdIsSet(true);
11707
    }
11708
 
11709
    public void unsetId() {
11710
      __isset_bit_vector.clear(__ID_ISSET_ID);
11711
    }
11712
 
11713
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
11714
    public boolean isSetId() {
11715
      return __isset_bit_vector.get(__ID_ISSET_ID);
11716
    }
11717
 
11718
    public void setIdIsSet(boolean value) {
11719
      __isset_bit_vector.set(__ID_ISSET_ID, value);
11720
    }
11721
 
11722
    public int getRoleSize() {
11723
      return (this.role == null) ? 0 : this.role.size();
11724
    }
11725
 
11726
    public java.util.Iterator<String> getRoleIterator() {
11727
      return (this.role == null) ? null : this.role.iterator();
11728
    }
11729
 
11730
    public void addToRole(String elem) {
11731
      if (this.role == null) {
11732
        this.role = new ArrayList<String>();
11733
      }
11734
      this.role.add(elem);
11735
    }
11736
 
11737
    public List<String> getRole() {
11738
      return this.role;
11739
    }
11740
 
11741
    public void setRole(List<String> role) {
11742
      this.role = role;
11743
    }
11744
 
11745
    public void unsetRole() {
11746
      this.role = null;
11747
    }
11748
 
11749
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
11750
    public boolean isSetRole() {
11751
      return this.role != null;
11752
    }
11753
 
11754
    public void setRoleIsSet(boolean value) {
11755
      if (!value) {
11756
        this.role = null;
11757
      }
11758
    }
11759
 
11760
    public void setFieldValue(_Fields field, Object value) {
11761
      switch (field) {
11762
      case ID:
11763
        if (value == null) {
11764
          unsetId();
11765
        } else {
11766
          setId((Long)value);
11767
        }
11768
        break;
11769
 
11770
      case ROLE:
11771
        if (value == null) {
11772
          unsetRole();
11773
        } else {
11774
          setRole((List<String>)value);
11775
        }
11776
        break;
11777
 
11778
      }
11779
    }
11780
 
11781
    public Object getFieldValue(_Fields field) {
11782
      switch (field) {
11783
      case ID:
11784
        return Long.valueOf(getId());
11785
 
11786
      case ROLE:
11787
        return getRole();
11788
 
11789
      }
11790
      throw new IllegalStateException();
11791
    }
11792
 
11793
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11794
    public boolean isSet(_Fields field) {
11795
      if (field == null) {
11796
        throw new IllegalArgumentException();
11797
      }
11798
 
11799
      switch (field) {
11800
      case ID:
11801
        return isSetId();
11802
      case ROLE:
11803
        return isSetRole();
11804
      }
11805
      throw new IllegalStateException();
11806
    }
11807
 
11808
    @Override
11809
    public boolean equals(Object that) {
11810
      if (that == null)
11811
        return false;
11812
      if (that instanceof changeAgentRole_args)
11813
        return this.equals((changeAgentRole_args)that);
11814
      return false;
11815
    }
11816
 
11817
    public boolean equals(changeAgentRole_args that) {
11818
      if (that == null)
11819
        return false;
11820
 
11821
      boolean this_present_id = true;
11822
      boolean that_present_id = true;
11823
      if (this_present_id || that_present_id) {
11824
        if (!(this_present_id && that_present_id))
11825
          return false;
11826
        if (this.id != that.id)
11827
          return false;
11828
      }
11829
 
11830
      boolean this_present_role = true && this.isSetRole();
11831
      boolean that_present_role = true && that.isSetRole();
11832
      if (this_present_role || that_present_role) {
11833
        if (!(this_present_role && that_present_role))
11834
          return false;
11835
        if (!this.role.equals(that.role))
11836
          return false;
11837
      }
11838
 
11839
      return true;
11840
    }
11841
 
11842
    @Override
11843
    public int hashCode() {
11844
      return 0;
11845
    }
11846
 
11847
    public int compareTo(changeAgentRole_args other) {
11848
      if (!getClass().equals(other.getClass())) {
11849
        return getClass().getName().compareTo(other.getClass().getName());
11850
      }
11851
 
11852
      int lastComparison = 0;
11853
      changeAgentRole_args typedOther = (changeAgentRole_args)other;
11854
 
11855
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
11856
      if (lastComparison != 0) {
11857
        return lastComparison;
11858
      }
11859
      if (isSetId()) {
11860
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
11861
        if (lastComparison != 0) {
11862
          return lastComparison;
11863
        }
11864
      }
11865
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
11866
      if (lastComparison != 0) {
11867
        return lastComparison;
11868
      }
11869
      if (isSetRole()) {
11870
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
11871
        if (lastComparison != 0) {
11872
          return lastComparison;
11873
        }
11874
      }
11875
      return 0;
11876
    }
11877
 
11878
    public _Fields fieldForId(int fieldId) {
11879
      return _Fields.findByThriftId(fieldId);
11880
    }
11881
 
11882
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11883
      org.apache.thrift.protocol.TField field;
11884
      iprot.readStructBegin();
11885
      while (true)
11886
      {
11887
        field = iprot.readFieldBegin();
11888
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11889
          break;
11890
        }
11891
        switch (field.id) {
11892
          case 1: // ID
11893
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11894
              this.id = iprot.readI64();
11895
              setIdIsSet(true);
11896
            } else { 
11897
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11898
            }
11899
            break;
11900
          case 2: // ROLE
11901
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11902
              {
5287 amar.kumar 11903
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
11904
                this.role = new ArrayList<String>(_list44.size);
11905
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
5169 amar.kumar 11906
                {
5287 amar.kumar 11907
                  String _elem46; // required
11908
                  _elem46 = iprot.readString();
11909
                  this.role.add(_elem46);
5169 amar.kumar 11910
                }
11911
                iprot.readListEnd();
11912
              }
11913
            } else { 
11914
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11915
            }
11916
            break;
11917
          default:
11918
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11919
        }
11920
        iprot.readFieldEnd();
11921
      }
11922
      iprot.readStructEnd();
11923
      validate();
11924
    }
11925
 
11926
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11927
      validate();
11928
 
11929
      oprot.writeStructBegin(STRUCT_DESC);
11930
      oprot.writeFieldBegin(ID_FIELD_DESC);
11931
      oprot.writeI64(this.id);
11932
      oprot.writeFieldEnd();
11933
      if (this.role != null) {
11934
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11935
        {
11936
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
5287 amar.kumar 11937
          for (String _iter47 : this.role)
5169 amar.kumar 11938
          {
5287 amar.kumar 11939
            oprot.writeString(_iter47);
5169 amar.kumar 11940
          }
11941
          oprot.writeListEnd();
11942
        }
11943
        oprot.writeFieldEnd();
11944
      }
11945
      oprot.writeFieldStop();
11946
      oprot.writeStructEnd();
11947
    }
11948
 
11949
    @Override
11950
    public String toString() {
11951
      StringBuilder sb = new StringBuilder("changeAgentRole_args(");
11952
      boolean first = true;
11953
 
11954
      sb.append("id:");
11955
      sb.append(this.id);
11956
      first = false;
11957
      if (!first) sb.append(", ");
11958
      sb.append("role:");
11959
      if (this.role == null) {
11960
        sb.append("null");
11961
      } else {
11962
        sb.append(this.role);
11963
      }
11964
      first = false;
11965
      sb.append(")");
11966
      return sb.toString();
11967
    }
11968
 
11969
    public void validate() throws org.apache.thrift.TException {
11970
      // check for required fields
11971
    }
11972
 
11973
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11974
      try {
11975
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11976
      } catch (org.apache.thrift.TException te) {
11977
        throw new java.io.IOException(te);
11978
      }
11979
    }
11980
 
11981
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11982
      try {
11983
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11984
        __isset_bit_vector = new BitSet(1);
11985
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11986
      } catch (org.apache.thrift.TException te) {
11987
        throw new java.io.IOException(te);
11988
      }
11989
    }
11990
 
11991
  }
11992
 
11993
  public static class changeAgentRole_result implements org.apache.thrift.TBase<changeAgentRole_result, changeAgentRole_result._Fields>, java.io.Serializable, Cloneable   {
11994
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_result");
11995
 
11996
 
11997
 
11998
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11999
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12000
;
12001
 
12002
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12003
 
12004
      static {
12005
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12006
          byName.put(field.getFieldName(), field);
12007
        }
12008
      }
12009
 
12010
      /**
12011
       * Find the _Fields constant that matches fieldId, or null if its not found.
12012
       */
12013
      public static _Fields findByThriftId(int fieldId) {
12014
        switch(fieldId) {
12015
          default:
12016
            return null;
12017
        }
12018
      }
12019
 
12020
      /**
12021
       * Find the _Fields constant that matches fieldId, throwing an exception
12022
       * if it is not found.
12023
       */
12024
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12025
        _Fields fields = findByThriftId(fieldId);
12026
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12027
        return fields;
12028
      }
12029
 
12030
      /**
12031
       * Find the _Fields constant that matches name, or null if its not found.
12032
       */
12033
      public static _Fields findByName(String name) {
12034
        return byName.get(name);
12035
      }
12036
 
12037
      private final short _thriftId;
12038
      private final String _fieldName;
12039
 
12040
      _Fields(short thriftId, String fieldName) {
12041
        _thriftId = thriftId;
12042
        _fieldName = fieldName;
12043
      }
12044
 
12045
      public short getThriftFieldId() {
12046
        return _thriftId;
12047
      }
12048
 
12049
      public String getFieldName() {
12050
        return _fieldName;
12051
      }
12052
    }
12053
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12054
    static {
12055
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12056
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12057
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_result.class, metaDataMap);
12058
    }
12059
 
12060
    public changeAgentRole_result() {
12061
    }
12062
 
12063
    /**
12064
     * Performs a deep copy on <i>other</i>.
12065
     */
12066
    public changeAgentRole_result(changeAgentRole_result other) {
12067
    }
12068
 
12069
    public changeAgentRole_result deepCopy() {
12070
      return new changeAgentRole_result(this);
12071
    }
12072
 
12073
    @Override
12074
    public void clear() {
12075
    }
12076
 
12077
    public void setFieldValue(_Fields field, Object value) {
12078
      switch (field) {
12079
      }
12080
    }
12081
 
12082
    public Object getFieldValue(_Fields field) {
12083
      switch (field) {
12084
      }
12085
      throw new IllegalStateException();
12086
    }
12087
 
12088
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12089
    public boolean isSet(_Fields field) {
12090
      if (field == null) {
12091
        throw new IllegalArgumentException();
12092
      }
12093
 
12094
      switch (field) {
12095
      }
12096
      throw new IllegalStateException();
12097
    }
12098
 
12099
    @Override
12100
    public boolean equals(Object that) {
12101
      if (that == null)
12102
        return false;
12103
      if (that instanceof changeAgentRole_result)
12104
        return this.equals((changeAgentRole_result)that);
12105
      return false;
12106
    }
12107
 
12108
    public boolean equals(changeAgentRole_result that) {
12109
      if (that == null)
12110
        return false;
12111
 
12112
      return true;
12113
    }
12114
 
12115
    @Override
12116
    public int hashCode() {
12117
      return 0;
12118
    }
12119
 
12120
    public int compareTo(changeAgentRole_result other) {
12121
      if (!getClass().equals(other.getClass())) {
12122
        return getClass().getName().compareTo(other.getClass().getName());
12123
      }
12124
 
12125
      int lastComparison = 0;
12126
      changeAgentRole_result typedOther = (changeAgentRole_result)other;
12127
 
12128
      return 0;
12129
    }
12130
 
12131
    public _Fields fieldForId(int fieldId) {
12132
      return _Fields.findByThriftId(fieldId);
12133
    }
12134
 
12135
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12136
      org.apache.thrift.protocol.TField field;
12137
      iprot.readStructBegin();
12138
      while (true)
12139
      {
12140
        field = iprot.readFieldBegin();
12141
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12142
          break;
12143
        }
12144
        switch (field.id) {
12145
          default:
12146
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12147
        }
12148
        iprot.readFieldEnd();
12149
      }
12150
      iprot.readStructEnd();
12151
      validate();
12152
    }
12153
 
12154
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12155
      oprot.writeStructBegin(STRUCT_DESC);
12156
 
12157
      oprot.writeFieldStop();
12158
      oprot.writeStructEnd();
12159
    }
12160
 
12161
    @Override
12162
    public String toString() {
12163
      StringBuilder sb = new StringBuilder("changeAgentRole_result(");
12164
      boolean first = true;
12165
 
12166
      sb.append(")");
12167
      return sb.toString();
12168
    }
12169
 
12170
    public void validate() throws org.apache.thrift.TException {
12171
      // check for required fields
12172
    }
12173
 
12174
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12175
      try {
12176
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12177
      } catch (org.apache.thrift.TException te) {
12178
        throw new java.io.IOException(te);
12179
      }
12180
    }
12181
 
12182
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12183
      try {
12184
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12185
      } catch (org.apache.thrift.TException te) {
12186
        throw new java.io.IOException(te);
12187
      }
12188
    }
12189
 
12190
  }
12191
 
12192
  public static class getOpenTicketCountForAgent_args implements org.apache.thrift.TBase<getOpenTicketCountForAgent_args, getOpenTicketCountForAgent_args._Fields>, java.io.Serializable, Cloneable   {
12193
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_args");
12194
 
12195
    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)1);
12196
 
12197
    private long agentId; // required
12198
 
12199
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12200
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12201
      AGENT_ID((short)1, "agentId");
12202
 
12203
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12204
 
12205
      static {
12206
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12207
          byName.put(field.getFieldName(), field);
12208
        }
12209
      }
12210
 
12211
      /**
12212
       * Find the _Fields constant that matches fieldId, or null if its not found.
12213
       */
12214
      public static _Fields findByThriftId(int fieldId) {
12215
        switch(fieldId) {
12216
          case 1: // AGENT_ID
12217
            return AGENT_ID;
12218
          default:
12219
            return null;
12220
        }
12221
      }
12222
 
12223
      /**
12224
       * Find the _Fields constant that matches fieldId, throwing an exception
12225
       * if it is not found.
12226
       */
12227
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12228
        _Fields fields = findByThriftId(fieldId);
12229
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12230
        return fields;
12231
      }
12232
 
12233
      /**
12234
       * Find the _Fields constant that matches name, or null if its not found.
12235
       */
12236
      public static _Fields findByName(String name) {
12237
        return byName.get(name);
12238
      }
12239
 
12240
      private final short _thriftId;
12241
      private final String _fieldName;
12242
 
12243
      _Fields(short thriftId, String fieldName) {
12244
        _thriftId = thriftId;
12245
        _fieldName = fieldName;
12246
      }
12247
 
12248
      public short getThriftFieldId() {
12249
        return _thriftId;
12250
      }
12251
 
12252
      public String getFieldName() {
12253
        return _fieldName;
12254
      }
12255
    }
12256
 
12257
    // isset id assignments
12258
    private static final int __AGENTID_ISSET_ID = 0;
12259
    private BitSet __isset_bit_vector = new BitSet(1);
12260
 
12261
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12262
    static {
12263
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12264
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12265
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12266
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12267
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_args.class, metaDataMap);
12268
    }
12269
 
12270
    public getOpenTicketCountForAgent_args() {
12271
    }
12272
 
12273
    public getOpenTicketCountForAgent_args(
12274
      long agentId)
12275
    {
12276
      this();
12277
      this.agentId = agentId;
12278
      setAgentIdIsSet(true);
12279
    }
12280
 
12281
    /**
12282
     * Performs a deep copy on <i>other</i>.
12283
     */
12284
    public getOpenTicketCountForAgent_args(getOpenTicketCountForAgent_args other) {
12285
      __isset_bit_vector.clear();
12286
      __isset_bit_vector.or(other.__isset_bit_vector);
12287
      this.agentId = other.agentId;
12288
    }
12289
 
12290
    public getOpenTicketCountForAgent_args deepCopy() {
12291
      return new getOpenTicketCountForAgent_args(this);
12292
    }
12293
 
12294
    @Override
12295
    public void clear() {
12296
      setAgentIdIsSet(false);
12297
      this.agentId = 0;
12298
    }
12299
 
12300
    public long getAgentId() {
12301
      return this.agentId;
12302
    }
12303
 
12304
    public void setAgentId(long agentId) {
12305
      this.agentId = agentId;
12306
      setAgentIdIsSet(true);
12307
    }
12308
 
12309
    public void unsetAgentId() {
12310
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
12311
    }
12312
 
12313
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
12314
    public boolean isSetAgentId() {
12315
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
12316
    }
12317
 
12318
    public void setAgentIdIsSet(boolean value) {
12319
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
12320
    }
12321
 
12322
    public void setFieldValue(_Fields field, Object value) {
12323
      switch (field) {
12324
      case AGENT_ID:
12325
        if (value == null) {
12326
          unsetAgentId();
12327
        } else {
12328
          setAgentId((Long)value);
12329
        }
12330
        break;
12331
 
12332
      }
12333
    }
12334
 
12335
    public Object getFieldValue(_Fields field) {
12336
      switch (field) {
12337
      case AGENT_ID:
12338
        return Long.valueOf(getAgentId());
12339
 
12340
      }
12341
      throw new IllegalStateException();
12342
    }
12343
 
12344
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12345
    public boolean isSet(_Fields field) {
12346
      if (field == null) {
12347
        throw new IllegalArgumentException();
12348
      }
12349
 
12350
      switch (field) {
12351
      case AGENT_ID:
12352
        return isSetAgentId();
12353
      }
12354
      throw new IllegalStateException();
12355
    }
12356
 
12357
    @Override
12358
    public boolean equals(Object that) {
12359
      if (that == null)
12360
        return false;
12361
      if (that instanceof getOpenTicketCountForAgent_args)
12362
        return this.equals((getOpenTicketCountForAgent_args)that);
12363
      return false;
12364
    }
12365
 
12366
    public boolean equals(getOpenTicketCountForAgent_args that) {
12367
      if (that == null)
12368
        return false;
12369
 
12370
      boolean this_present_agentId = true;
12371
      boolean that_present_agentId = true;
12372
      if (this_present_agentId || that_present_agentId) {
12373
        if (!(this_present_agentId && that_present_agentId))
12374
          return false;
12375
        if (this.agentId != that.agentId)
12376
          return false;
12377
      }
12378
 
12379
      return true;
12380
    }
12381
 
12382
    @Override
12383
    public int hashCode() {
12384
      return 0;
12385
    }
12386
 
12387
    public int compareTo(getOpenTicketCountForAgent_args other) {
12388
      if (!getClass().equals(other.getClass())) {
12389
        return getClass().getName().compareTo(other.getClass().getName());
12390
      }
12391
 
12392
      int lastComparison = 0;
12393
      getOpenTicketCountForAgent_args typedOther = (getOpenTicketCountForAgent_args)other;
12394
 
12395
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
12396
      if (lastComparison != 0) {
12397
        return lastComparison;
12398
      }
12399
      if (isSetAgentId()) {
12400
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
12401
        if (lastComparison != 0) {
12402
          return lastComparison;
12403
        }
12404
      }
12405
      return 0;
12406
    }
12407
 
12408
    public _Fields fieldForId(int fieldId) {
12409
      return _Fields.findByThriftId(fieldId);
12410
    }
12411
 
12412
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12413
      org.apache.thrift.protocol.TField field;
12414
      iprot.readStructBegin();
12415
      while (true)
12416
      {
12417
        field = iprot.readFieldBegin();
12418
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12419
          break;
12420
        }
12421
        switch (field.id) {
12422
          case 1: // AGENT_ID
12423
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12424
              this.agentId = iprot.readI64();
12425
              setAgentIdIsSet(true);
12426
            } else { 
12427
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12428
            }
12429
            break;
12430
          default:
12431
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12432
        }
12433
        iprot.readFieldEnd();
12434
      }
12435
      iprot.readStructEnd();
12436
      validate();
12437
    }
12438
 
12439
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12440
      validate();
12441
 
12442
      oprot.writeStructBegin(STRUCT_DESC);
12443
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
12444
      oprot.writeI64(this.agentId);
12445
      oprot.writeFieldEnd();
12446
      oprot.writeFieldStop();
12447
      oprot.writeStructEnd();
12448
    }
12449
 
12450
    @Override
12451
    public String toString() {
12452
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_args(");
12453
      boolean first = true;
12454
 
12455
      sb.append("agentId:");
12456
      sb.append(this.agentId);
12457
      first = false;
12458
      sb.append(")");
12459
      return sb.toString();
12460
    }
12461
 
12462
    public void validate() throws org.apache.thrift.TException {
12463
      // check for required fields
12464
    }
12465
 
12466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12467
      try {
12468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12469
      } catch (org.apache.thrift.TException te) {
12470
        throw new java.io.IOException(te);
12471
      }
12472
    }
12473
 
12474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12475
      try {
12476
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12477
        __isset_bit_vector = new BitSet(1);
12478
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12479
      } catch (org.apache.thrift.TException te) {
12480
        throw new java.io.IOException(te);
12481
      }
12482
    }
12483
 
12484
  }
12485
 
12486
  public static class getOpenTicketCountForAgent_result implements org.apache.thrift.TBase<getOpenTicketCountForAgent_result, getOpenTicketCountForAgent_result._Fields>, java.io.Serializable, Cloneable   {
12487
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_result");
12488
 
12489
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
12490
 
12491
    private int success; // required
12492
 
12493
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12494
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12495
      SUCCESS((short)0, "success");
12496
 
12497
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12498
 
12499
      static {
12500
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12501
          byName.put(field.getFieldName(), field);
12502
        }
12503
      }
12504
 
12505
      /**
12506
       * Find the _Fields constant that matches fieldId, or null if its not found.
12507
       */
12508
      public static _Fields findByThriftId(int fieldId) {
12509
        switch(fieldId) {
12510
          case 0: // SUCCESS
12511
            return SUCCESS;
12512
          default:
12513
            return null;
12514
        }
12515
      }
12516
 
12517
      /**
12518
       * Find the _Fields constant that matches fieldId, throwing an exception
12519
       * if it is not found.
12520
       */
12521
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12522
        _Fields fields = findByThriftId(fieldId);
12523
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12524
        return fields;
12525
      }
12526
 
12527
      /**
12528
       * Find the _Fields constant that matches name, or null if its not found.
12529
       */
12530
      public static _Fields findByName(String name) {
12531
        return byName.get(name);
12532
      }
12533
 
12534
      private final short _thriftId;
12535
      private final String _fieldName;
12536
 
12537
      _Fields(short thriftId, String fieldName) {
12538
        _thriftId = thriftId;
12539
        _fieldName = fieldName;
12540
      }
12541
 
12542
      public short getThriftFieldId() {
12543
        return _thriftId;
12544
      }
12545
 
12546
      public String getFieldName() {
12547
        return _fieldName;
12548
      }
12549
    }
12550
 
12551
    // isset id assignments
12552
    private static final int __SUCCESS_ISSET_ID = 0;
12553
    private BitSet __isset_bit_vector = new BitSet(1);
12554
 
12555
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12556
    static {
12557
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12558
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12559
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12560
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12561
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_result.class, metaDataMap);
12562
    }
12563
 
12564
    public getOpenTicketCountForAgent_result() {
12565
    }
12566
 
12567
    public getOpenTicketCountForAgent_result(
12568
      int success)
12569
    {
12570
      this();
12571
      this.success = success;
12572
      setSuccessIsSet(true);
12573
    }
12574
 
12575
    /**
12576
     * Performs a deep copy on <i>other</i>.
12577
     */
12578
    public getOpenTicketCountForAgent_result(getOpenTicketCountForAgent_result other) {
12579
      __isset_bit_vector.clear();
12580
      __isset_bit_vector.or(other.__isset_bit_vector);
12581
      this.success = other.success;
12582
    }
12583
 
12584
    public getOpenTicketCountForAgent_result deepCopy() {
12585
      return new getOpenTicketCountForAgent_result(this);
12586
    }
12587
 
12588
    @Override
12589
    public void clear() {
12590
      setSuccessIsSet(false);
12591
      this.success = 0;
12592
    }
12593
 
12594
    public int getSuccess() {
12595
      return this.success;
12596
    }
12597
 
12598
    public void setSuccess(int success) {
12599
      this.success = success;
12600
      setSuccessIsSet(true);
12601
    }
12602
 
12603
    public void unsetSuccess() {
12604
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12605
    }
12606
 
12607
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12608
    public boolean isSetSuccess() {
12609
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12610
    }
12611
 
12612
    public void setSuccessIsSet(boolean value) {
12613
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12614
    }
12615
 
12616
    public void setFieldValue(_Fields field, Object value) {
12617
      switch (field) {
12618
      case SUCCESS:
12619
        if (value == null) {
12620
          unsetSuccess();
12621
        } else {
12622
          setSuccess((Integer)value);
12623
        }
12624
        break;
12625
 
12626
      }
12627
    }
12628
 
12629
    public Object getFieldValue(_Fields field) {
12630
      switch (field) {
12631
      case SUCCESS:
12632
        return Integer.valueOf(getSuccess());
12633
 
12634
      }
12635
      throw new IllegalStateException();
12636
    }
12637
 
12638
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12639
    public boolean isSet(_Fields field) {
12640
      if (field == null) {
12641
        throw new IllegalArgumentException();
12642
      }
12643
 
12644
      switch (field) {
12645
      case SUCCESS:
12646
        return isSetSuccess();
12647
      }
12648
      throw new IllegalStateException();
12649
    }
12650
 
12651
    @Override
12652
    public boolean equals(Object that) {
12653
      if (that == null)
12654
        return false;
12655
      if (that instanceof getOpenTicketCountForAgent_result)
12656
        return this.equals((getOpenTicketCountForAgent_result)that);
12657
      return false;
12658
    }
12659
 
12660
    public boolean equals(getOpenTicketCountForAgent_result that) {
12661
      if (that == null)
12662
        return false;
12663
 
12664
      boolean this_present_success = true;
12665
      boolean that_present_success = true;
12666
      if (this_present_success || that_present_success) {
12667
        if (!(this_present_success && that_present_success))
12668
          return false;
12669
        if (this.success != that.success)
12670
          return false;
12671
      }
12672
 
12673
      return true;
12674
    }
12675
 
12676
    @Override
12677
    public int hashCode() {
12678
      return 0;
12679
    }
12680
 
12681
    public int compareTo(getOpenTicketCountForAgent_result other) {
12682
      if (!getClass().equals(other.getClass())) {
12683
        return getClass().getName().compareTo(other.getClass().getName());
12684
      }
12685
 
12686
      int lastComparison = 0;
12687
      getOpenTicketCountForAgent_result typedOther = (getOpenTicketCountForAgent_result)other;
12688
 
12689
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12690
      if (lastComparison != 0) {
12691
        return lastComparison;
12692
      }
12693
      if (isSetSuccess()) {
12694
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12695
        if (lastComparison != 0) {
12696
          return lastComparison;
12697
        }
12698
      }
12699
      return 0;
12700
    }
12701
 
12702
    public _Fields fieldForId(int fieldId) {
12703
      return _Fields.findByThriftId(fieldId);
12704
    }
12705
 
12706
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12707
      org.apache.thrift.protocol.TField field;
12708
      iprot.readStructBegin();
12709
      while (true)
12710
      {
12711
        field = iprot.readFieldBegin();
12712
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12713
          break;
12714
        }
12715
        switch (field.id) {
12716
          case 0: // SUCCESS
12717
            if (field.type == org.apache.thrift.protocol.TType.I32) {
12718
              this.success = iprot.readI32();
12719
              setSuccessIsSet(true);
12720
            } else { 
12721
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12722
            }
12723
            break;
12724
          default:
12725
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12726
        }
12727
        iprot.readFieldEnd();
12728
      }
12729
      iprot.readStructEnd();
12730
      validate();
12731
    }
12732
 
12733
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12734
      oprot.writeStructBegin(STRUCT_DESC);
12735
 
12736
      if (this.isSetSuccess()) {
12737
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12738
        oprot.writeI32(this.success);
12739
        oprot.writeFieldEnd();
12740
      }
12741
      oprot.writeFieldStop();
12742
      oprot.writeStructEnd();
12743
    }
12744
 
12745
    @Override
12746
    public String toString() {
12747
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_result(");
12748
      boolean first = true;
12749
 
12750
      sb.append("success:");
12751
      sb.append(this.success);
12752
      first = false;
12753
      sb.append(")");
12754
      return sb.toString();
12755
    }
12756
 
12757
    public void validate() throws org.apache.thrift.TException {
12758
      // check for required fields
12759
    }
12760
 
12761
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12762
      try {
12763
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12764
      } catch (org.apache.thrift.TException te) {
12765
        throw new java.io.IOException(te);
12766
      }
12767
    }
12768
 
12769
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12770
      try {
12771
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12772
      } catch (org.apache.thrift.TException te) {
12773
        throw new java.io.IOException(te);
12774
      }
12775
    }
12776
 
12777
  }
12778
 
5909 amar.kumar 12779
  public static class getOpenTicketsMap_args implements org.apache.thrift.TBase<getOpenTicketsMap_args, getOpenTicketsMap_args._Fields>, java.io.Serializable, Cloneable   {
12780
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketsMap_args");
12781
 
12782
 
12783
 
12784
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12785
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12786
;
12787
 
12788
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12789
 
12790
      static {
12791
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12792
          byName.put(field.getFieldName(), field);
12793
        }
12794
      }
12795
 
12796
      /**
12797
       * Find the _Fields constant that matches fieldId, or null if its not found.
12798
       */
12799
      public static _Fields findByThriftId(int fieldId) {
12800
        switch(fieldId) {
12801
          default:
12802
            return null;
12803
        }
12804
      }
12805
 
12806
      /**
12807
       * Find the _Fields constant that matches fieldId, throwing an exception
12808
       * if it is not found.
12809
       */
12810
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12811
        _Fields fields = findByThriftId(fieldId);
12812
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12813
        return fields;
12814
      }
12815
 
12816
      /**
12817
       * Find the _Fields constant that matches name, or null if its not found.
12818
       */
12819
      public static _Fields findByName(String name) {
12820
        return byName.get(name);
12821
      }
12822
 
12823
      private final short _thriftId;
12824
      private final String _fieldName;
12825
 
12826
      _Fields(short thriftId, String fieldName) {
12827
        _thriftId = thriftId;
12828
        _fieldName = fieldName;
12829
      }
12830
 
12831
      public short getThriftFieldId() {
12832
        return _thriftId;
12833
      }
12834
 
12835
      public String getFieldName() {
12836
        return _fieldName;
12837
      }
12838
    }
12839
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12840
    static {
12841
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12842
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12843
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketsMap_args.class, metaDataMap);
12844
    }
12845
 
12846
    public getOpenTicketsMap_args() {
12847
    }
12848
 
12849
    /**
12850
     * Performs a deep copy on <i>other</i>.
12851
     */
12852
    public getOpenTicketsMap_args(getOpenTicketsMap_args other) {
12853
    }
12854
 
12855
    public getOpenTicketsMap_args deepCopy() {
12856
      return new getOpenTicketsMap_args(this);
12857
    }
12858
 
12859
    @Override
12860
    public void clear() {
12861
    }
12862
 
12863
    public void setFieldValue(_Fields field, Object value) {
12864
      switch (field) {
12865
      }
12866
    }
12867
 
12868
    public Object getFieldValue(_Fields field) {
12869
      switch (field) {
12870
      }
12871
      throw new IllegalStateException();
12872
    }
12873
 
12874
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12875
    public boolean isSet(_Fields field) {
12876
      if (field == null) {
12877
        throw new IllegalArgumentException();
12878
      }
12879
 
12880
      switch (field) {
12881
      }
12882
      throw new IllegalStateException();
12883
    }
12884
 
12885
    @Override
12886
    public boolean equals(Object that) {
12887
      if (that == null)
12888
        return false;
12889
      if (that instanceof getOpenTicketsMap_args)
12890
        return this.equals((getOpenTicketsMap_args)that);
12891
      return false;
12892
    }
12893
 
12894
    public boolean equals(getOpenTicketsMap_args that) {
12895
      if (that == null)
12896
        return false;
12897
 
12898
      return true;
12899
    }
12900
 
12901
    @Override
12902
    public int hashCode() {
12903
      return 0;
12904
    }
12905
 
12906
    public int compareTo(getOpenTicketsMap_args other) {
12907
      if (!getClass().equals(other.getClass())) {
12908
        return getClass().getName().compareTo(other.getClass().getName());
12909
      }
12910
 
12911
      int lastComparison = 0;
12912
      getOpenTicketsMap_args typedOther = (getOpenTicketsMap_args)other;
12913
 
12914
      return 0;
12915
    }
12916
 
12917
    public _Fields fieldForId(int fieldId) {
12918
      return _Fields.findByThriftId(fieldId);
12919
    }
12920
 
12921
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12922
      org.apache.thrift.protocol.TField field;
12923
      iprot.readStructBegin();
12924
      while (true)
12925
      {
12926
        field = iprot.readFieldBegin();
12927
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12928
          break;
12929
        }
12930
        switch (field.id) {
12931
          default:
12932
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12933
        }
12934
        iprot.readFieldEnd();
12935
      }
12936
      iprot.readStructEnd();
12937
      validate();
12938
    }
12939
 
12940
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12941
      validate();
12942
 
12943
      oprot.writeStructBegin(STRUCT_DESC);
12944
      oprot.writeFieldStop();
12945
      oprot.writeStructEnd();
12946
    }
12947
 
12948
    @Override
12949
    public String toString() {
12950
      StringBuilder sb = new StringBuilder("getOpenTicketsMap_args(");
12951
      boolean first = true;
12952
 
12953
      sb.append(")");
12954
      return sb.toString();
12955
    }
12956
 
12957
    public void validate() throws org.apache.thrift.TException {
12958
      // check for required fields
12959
    }
12960
 
12961
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12962
      try {
12963
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12964
      } catch (org.apache.thrift.TException te) {
12965
        throw new java.io.IOException(te);
12966
      }
12967
    }
12968
 
12969
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12970
      try {
12971
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12972
      } catch (org.apache.thrift.TException te) {
12973
        throw new java.io.IOException(te);
12974
      }
12975
    }
12976
 
12977
  }
12978
 
12979
  public static class getOpenTicketsMap_result implements org.apache.thrift.TBase<getOpenTicketsMap_result, getOpenTicketsMap_result._Fields>, java.io.Serializable, Cloneable   {
12980
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketsMap_result");
12981
 
12982
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
12983
 
12984
    private Map<String,Long> success; // required
12985
 
12986
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12987
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12988
      SUCCESS((short)0, "success");
12989
 
12990
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12991
 
12992
      static {
12993
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12994
          byName.put(field.getFieldName(), field);
12995
        }
12996
      }
12997
 
12998
      /**
12999
       * Find the _Fields constant that matches fieldId, or null if its not found.
13000
       */
13001
      public static _Fields findByThriftId(int fieldId) {
13002
        switch(fieldId) {
13003
          case 0: // SUCCESS
13004
            return SUCCESS;
13005
          default:
13006
            return null;
13007
        }
13008
      }
13009
 
13010
      /**
13011
       * Find the _Fields constant that matches fieldId, throwing an exception
13012
       * if it is not found.
13013
       */
13014
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13015
        _Fields fields = findByThriftId(fieldId);
13016
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13017
        return fields;
13018
      }
13019
 
13020
      /**
13021
       * Find the _Fields constant that matches name, or null if its not found.
13022
       */
13023
      public static _Fields findByName(String name) {
13024
        return byName.get(name);
13025
      }
13026
 
13027
      private final short _thriftId;
13028
      private final String _fieldName;
13029
 
13030
      _Fields(short thriftId, String fieldName) {
13031
        _thriftId = thriftId;
13032
        _fieldName = fieldName;
13033
      }
13034
 
13035
      public short getThriftFieldId() {
13036
        return _thriftId;
13037
      }
13038
 
13039
      public String getFieldName() {
13040
        return _fieldName;
13041
      }
13042
    }
13043
 
13044
    // isset id assignments
13045
 
13046
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13047
    static {
13048
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13049
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13050
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
13051
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
13052
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
13053
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13054
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketsMap_result.class, metaDataMap);
13055
    }
13056
 
13057
    public getOpenTicketsMap_result() {
13058
    }
13059
 
13060
    public getOpenTicketsMap_result(
13061
      Map<String,Long> success)
13062
    {
13063
      this();
13064
      this.success = success;
13065
    }
13066
 
13067
    /**
13068
     * Performs a deep copy on <i>other</i>.
13069
     */
13070
    public getOpenTicketsMap_result(getOpenTicketsMap_result other) {
13071
      if (other.isSetSuccess()) {
13072
        Map<String,Long> __this__success = new HashMap<String,Long>();
13073
        for (Map.Entry<String, Long> other_element : other.success.entrySet()) {
13074
 
13075
          String other_element_key = other_element.getKey();
13076
          Long other_element_value = other_element.getValue();
13077
 
13078
          String __this__success_copy_key = other_element_key;
13079
 
13080
          Long __this__success_copy_value = other_element_value;
13081
 
13082
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
13083
        }
13084
        this.success = __this__success;
13085
      }
13086
    }
13087
 
13088
    public getOpenTicketsMap_result deepCopy() {
13089
      return new getOpenTicketsMap_result(this);
13090
    }
13091
 
13092
    @Override
13093
    public void clear() {
13094
      this.success = null;
13095
    }
13096
 
13097
    public int getSuccessSize() {
13098
      return (this.success == null) ? 0 : this.success.size();
13099
    }
13100
 
13101
    public void putToSuccess(String key, long val) {
13102
      if (this.success == null) {
13103
        this.success = new HashMap<String,Long>();
13104
      }
13105
      this.success.put(key, val);
13106
    }
13107
 
13108
    public Map<String,Long> getSuccess() {
13109
      return this.success;
13110
    }
13111
 
13112
    public void setSuccess(Map<String,Long> success) {
13113
      this.success = success;
13114
    }
13115
 
13116
    public void unsetSuccess() {
13117
      this.success = null;
13118
    }
13119
 
13120
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13121
    public boolean isSetSuccess() {
13122
      return this.success != null;
13123
    }
13124
 
13125
    public void setSuccessIsSet(boolean value) {
13126
      if (!value) {
13127
        this.success = null;
13128
      }
13129
    }
13130
 
13131
    public void setFieldValue(_Fields field, Object value) {
13132
      switch (field) {
13133
      case SUCCESS:
13134
        if (value == null) {
13135
          unsetSuccess();
13136
        } else {
13137
          setSuccess((Map<String,Long>)value);
13138
        }
13139
        break;
13140
 
13141
      }
13142
    }
13143
 
13144
    public Object getFieldValue(_Fields field) {
13145
      switch (field) {
13146
      case SUCCESS:
13147
        return getSuccess();
13148
 
13149
      }
13150
      throw new IllegalStateException();
13151
    }
13152
 
13153
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13154
    public boolean isSet(_Fields field) {
13155
      if (field == null) {
13156
        throw new IllegalArgumentException();
13157
      }
13158
 
13159
      switch (field) {
13160
      case SUCCESS:
13161
        return isSetSuccess();
13162
      }
13163
      throw new IllegalStateException();
13164
    }
13165
 
13166
    @Override
13167
    public boolean equals(Object that) {
13168
      if (that == null)
13169
        return false;
13170
      if (that instanceof getOpenTicketsMap_result)
13171
        return this.equals((getOpenTicketsMap_result)that);
13172
      return false;
13173
    }
13174
 
13175
    public boolean equals(getOpenTicketsMap_result that) {
13176
      if (that == null)
13177
        return false;
13178
 
13179
      boolean this_present_success = true && this.isSetSuccess();
13180
      boolean that_present_success = true && that.isSetSuccess();
13181
      if (this_present_success || that_present_success) {
13182
        if (!(this_present_success && that_present_success))
13183
          return false;
13184
        if (!this.success.equals(that.success))
13185
          return false;
13186
      }
13187
 
13188
      return true;
13189
    }
13190
 
13191
    @Override
13192
    public int hashCode() {
13193
      return 0;
13194
    }
13195
 
13196
    public int compareTo(getOpenTicketsMap_result other) {
13197
      if (!getClass().equals(other.getClass())) {
13198
        return getClass().getName().compareTo(other.getClass().getName());
13199
      }
13200
 
13201
      int lastComparison = 0;
13202
      getOpenTicketsMap_result typedOther = (getOpenTicketsMap_result)other;
13203
 
13204
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13205
      if (lastComparison != 0) {
13206
        return lastComparison;
13207
      }
13208
      if (isSetSuccess()) {
13209
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13210
        if (lastComparison != 0) {
13211
          return lastComparison;
13212
        }
13213
      }
13214
      return 0;
13215
    }
13216
 
13217
    public _Fields fieldForId(int fieldId) {
13218
      return _Fields.findByThriftId(fieldId);
13219
    }
13220
 
13221
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13222
      org.apache.thrift.protocol.TField field;
13223
      iprot.readStructBegin();
13224
      while (true)
13225
      {
13226
        field = iprot.readFieldBegin();
13227
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13228
          break;
13229
        }
13230
        switch (field.id) {
13231
          case 0: // SUCCESS
13232
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
13233
              {
13234
                org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin();
13235
                this.success = new HashMap<String,Long>(2*_map48.size);
13236
                for (int _i49 = 0; _i49 < _map48.size; ++_i49)
13237
                {
13238
                  String _key50; // required
13239
                  long _val51; // required
13240
                  _key50 = iprot.readString();
13241
                  _val51 = iprot.readI64();
13242
                  this.success.put(_key50, _val51);
13243
                }
13244
                iprot.readMapEnd();
13245
              }
13246
            } else { 
13247
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13248
            }
13249
            break;
13250
          default:
13251
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13252
        }
13253
        iprot.readFieldEnd();
13254
      }
13255
      iprot.readStructEnd();
13256
      validate();
13257
    }
13258
 
13259
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13260
      oprot.writeStructBegin(STRUCT_DESC);
13261
 
13262
      if (this.isSetSuccess()) {
13263
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13264
        {
13265
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.success.size()));
13266
          for (Map.Entry<String, Long> _iter52 : this.success.entrySet())
13267
          {
13268
            oprot.writeString(_iter52.getKey());
13269
            oprot.writeI64(_iter52.getValue());
13270
          }
13271
          oprot.writeMapEnd();
13272
        }
13273
        oprot.writeFieldEnd();
13274
      }
13275
      oprot.writeFieldStop();
13276
      oprot.writeStructEnd();
13277
    }
13278
 
13279
    @Override
13280
    public String toString() {
13281
      StringBuilder sb = new StringBuilder("getOpenTicketsMap_result(");
13282
      boolean first = true;
13283
 
13284
      sb.append("success:");
13285
      if (this.success == null) {
13286
        sb.append("null");
13287
      } else {
13288
        sb.append(this.success);
13289
      }
13290
      first = false;
13291
      sb.append(")");
13292
      return sb.toString();
13293
    }
13294
 
13295
    public void validate() throws org.apache.thrift.TException {
13296
      // check for required fields
13297
    }
13298
 
13299
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13300
      try {
13301
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13302
      } catch (org.apache.thrift.TException te) {
13303
        throw new java.io.IOException(te);
13304
      }
13305
    }
13306
 
13307
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13308
      try {
13309
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13310
      } catch (org.apache.thrift.TException te) {
13311
        throw new java.io.IOException(te);
13312
      }
13313
    }
13314
 
13315
  }
13316
 
3028 mandeep.dh 13317
}