Subversion Repositories SmartDukaan

Rev

Rev 5287 | Rev 7410 | 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 {
5721
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5722
      } catch (org.apache.thrift.TException te) {
5723
        throw new java.io.IOException(te);
5724
      }
5725
    }
5726
 
3028 mandeep.dh 5727
  }
5728
 
3430 rajveer 5729
  public static class markAsRead_args implements org.apache.thrift.TBase<markAsRead_args, markAsRead_args._Fields>, java.io.Serializable, Cloneable   {
5730
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_args");
3087 mandeep.dh 5731
 
3430 rajveer 5732
    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);
5733
    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 5734
 
3430 rajveer 5735
    private long activityId; // required
5736
    private long agentId; // required
3087 mandeep.dh 5737
 
5738
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5739
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 5740
      ACTIVITY_ID((short)1, "activityId"),
5741
      AGENT_ID((short)2, "agentId");
3087 mandeep.dh 5742
 
5743
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5744
 
5745
      static {
5746
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5747
          byName.put(field.getFieldName(), field);
5748
        }
5749
      }
5750
 
5751
      /**
5752
       * Find the _Fields constant that matches fieldId, or null if its not found.
5753
       */
5754
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5755
        switch(fieldId) {
5756
          case 1: // ACTIVITY_ID
5757
            return ACTIVITY_ID;
5758
          case 2: // AGENT_ID
5759
            return AGENT_ID;
5760
          default:
5761
            return null;
5762
        }
3087 mandeep.dh 5763
      }
5764
 
5765
      /**
5766
       * Find the _Fields constant that matches fieldId, throwing an exception
5767
       * if it is not found.
5768
       */
5769
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5770
        _Fields fields = findByThriftId(fieldId);
5771
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5772
        return fields;
5773
      }
5774
 
5775
      /**
5776
       * Find the _Fields constant that matches name, or null if its not found.
5777
       */
5778
      public static _Fields findByName(String name) {
5779
        return byName.get(name);
5780
      }
5781
 
5782
      private final short _thriftId;
5783
      private final String _fieldName;
5784
 
5785
      _Fields(short thriftId, String fieldName) {
5786
        _thriftId = thriftId;
5787
        _fieldName = fieldName;
5788
      }
5789
 
5790
      public short getThriftFieldId() {
5791
        return _thriftId;
5792
      }
5793
 
5794
      public String getFieldName() {
5795
        return _fieldName;
5796
      }
5797
    }
5798
 
5799
    // isset id assignments
3390 mandeep.dh 5800
    private static final int __ACTIVITYID_ISSET_ID = 0;
5801
    private static final int __AGENTID_ISSET_ID = 1;
5802
    private BitSet __isset_bit_vector = new BitSet(2);
3087 mandeep.dh 5803
 
3430 rajveer 5804
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 5805
    static {
3430 rajveer 5806
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5807
      tmpMap.put(_Fields.ACTIVITY_ID, new org.apache.thrift.meta_data.FieldMetaData("activityId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5808
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5809
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5810
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5811
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5812
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_args.class, metaDataMap);
3087 mandeep.dh 5813
    }
5814
 
3390 mandeep.dh 5815
    public markAsRead_args() {
3087 mandeep.dh 5816
    }
5817
 
3390 mandeep.dh 5818
    public markAsRead_args(
5819
      long activityId,
5820
      long agentId)
3087 mandeep.dh 5821
    {
5822
      this();
3390 mandeep.dh 5823
      this.activityId = activityId;
5824
      setActivityIdIsSet(true);
5825
      this.agentId = agentId;
5826
      setAgentIdIsSet(true);
3087 mandeep.dh 5827
    }
5828
 
5829
    /**
5830
     * Performs a deep copy on <i>other</i>.
5831
     */
3390 mandeep.dh 5832
    public markAsRead_args(markAsRead_args other) {
5833
      __isset_bit_vector.clear();
5834
      __isset_bit_vector.or(other.__isset_bit_vector);
5835
      this.activityId = other.activityId;
5836
      this.agentId = other.agentId;
3087 mandeep.dh 5837
    }
5838
 
3390 mandeep.dh 5839
    public markAsRead_args deepCopy() {
5840
      return new markAsRead_args(this);
3087 mandeep.dh 5841
    }
5842
 
3430 rajveer 5843
    @Override
5844
    public void clear() {
5845
      setActivityIdIsSet(false);
5846
      this.activityId = 0;
5847
      setAgentIdIsSet(false);
5848
      this.agentId = 0;
3087 mandeep.dh 5849
    }
5850
 
3390 mandeep.dh 5851
    public long getActivityId() {
5852
      return this.activityId;
3087 mandeep.dh 5853
    }
5854
 
3430 rajveer 5855
    public void setActivityId(long activityId) {
3390 mandeep.dh 5856
      this.activityId = activityId;
5857
      setActivityIdIsSet(true);
3087 mandeep.dh 5858
    }
5859
 
3390 mandeep.dh 5860
    public void unsetActivityId() {
5861
      __isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);
3087 mandeep.dh 5862
    }
5863
 
3430 rajveer 5864
    /** Returns true if field activityId is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 5865
    public boolean isSetActivityId() {
5866
      return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);
3087 mandeep.dh 5867
    }
5868
 
3390 mandeep.dh 5869
    public void setActivityIdIsSet(boolean value) {
5870
      __isset_bit_vector.set(__ACTIVITYID_ISSET_ID, value);
3087 mandeep.dh 5871
    }
5872
 
3028 mandeep.dh 5873
    public long getAgentId() {
5874
      return this.agentId;
5875
    }
5876
 
3430 rajveer 5877
    public void setAgentId(long agentId) {
3028 mandeep.dh 5878
      this.agentId = agentId;
5879
      setAgentIdIsSet(true);
5880
    }
5881
 
5882
    public void unsetAgentId() {
5883
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
5884
    }
5885
 
3430 rajveer 5886
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 5887
    public boolean isSetAgentId() {
5888
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
5889
    }
5890
 
5891
    public void setAgentIdIsSet(boolean value) {
5892
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
5893
    }
5894
 
5895
    public void setFieldValue(_Fields field, Object value) {
5896
      switch (field) {
3390 mandeep.dh 5897
      case ACTIVITY_ID:
5898
        if (value == null) {
5899
          unsetActivityId();
5900
        } else {
5901
          setActivityId((Long)value);
5902
        }
5903
        break;
5904
 
3028 mandeep.dh 5905
      case AGENT_ID:
5906
        if (value == null) {
5907
          unsetAgentId();
5908
        } else {
5909
          setAgentId((Long)value);
5910
        }
5911
        break;
5912
 
5913
      }
5914
    }
5915
 
5916
    public Object getFieldValue(_Fields field) {
5917
      switch (field) {
3390 mandeep.dh 5918
      case ACTIVITY_ID:
3430 rajveer 5919
        return Long.valueOf(getActivityId());
3390 mandeep.dh 5920
 
3028 mandeep.dh 5921
      case AGENT_ID:
3430 rajveer 5922
        return Long.valueOf(getAgentId());
3028 mandeep.dh 5923
 
5924
      }
5925
      throw new IllegalStateException();
5926
    }
5927
 
3430 rajveer 5928
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5929
    public boolean isSet(_Fields field) {
5930
      if (field == null) {
5931
        throw new IllegalArgumentException();
5932
      }
3028 mandeep.dh 5933
 
5934
      switch (field) {
3390 mandeep.dh 5935
      case ACTIVITY_ID:
5936
        return isSetActivityId();
3028 mandeep.dh 5937
      case AGENT_ID:
5938
        return isSetAgentId();
5939
      }
5940
      throw new IllegalStateException();
5941
    }
5942
 
5943
    @Override
5944
    public boolean equals(Object that) {
5945
      if (that == null)
5946
        return false;
3390 mandeep.dh 5947
      if (that instanceof markAsRead_args)
5948
        return this.equals((markAsRead_args)that);
3028 mandeep.dh 5949
      return false;
5950
    }
5951
 
3390 mandeep.dh 5952
    public boolean equals(markAsRead_args that) {
3028 mandeep.dh 5953
      if (that == null)
5954
        return false;
5955
 
3390 mandeep.dh 5956
      boolean this_present_activityId = true;
5957
      boolean that_present_activityId = true;
5958
      if (this_present_activityId || that_present_activityId) {
5959
        if (!(this_present_activityId && that_present_activityId))
5960
          return false;
5961
        if (this.activityId != that.activityId)
5962
          return false;
5963
      }
5964
 
3028 mandeep.dh 5965
      boolean this_present_agentId = true;
5966
      boolean that_present_agentId = true;
5967
      if (this_present_agentId || that_present_agentId) {
5968
        if (!(this_present_agentId && that_present_agentId))
5969
          return false;
5970
        if (this.agentId != that.agentId)
5971
          return false;
5972
      }
5973
 
5974
      return true;
5975
    }
5976
 
5977
    @Override
5978
    public int hashCode() {
5979
      return 0;
5980
    }
5981
 
3390 mandeep.dh 5982
    public int compareTo(markAsRead_args other) {
3028 mandeep.dh 5983
      if (!getClass().equals(other.getClass())) {
5984
        return getClass().getName().compareTo(other.getClass().getName());
5985
      }
5986
 
5987
      int lastComparison = 0;
3390 mandeep.dh 5988
      markAsRead_args typedOther = (markAsRead_args)other;
3028 mandeep.dh 5989
 
3430 rajveer 5990
      lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(typedOther.isSetActivityId());
3390 mandeep.dh 5991
      if (lastComparison != 0) {
5992
        return lastComparison;
5993
      }
3430 rajveer 5994
      if (isSetActivityId()) {
5995
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activityId, typedOther.activityId);
5996
        if (lastComparison != 0) {
5997
          return lastComparison;
5998
        }
3390 mandeep.dh 5999
      }
3430 rajveer 6000
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
3028 mandeep.dh 6001
      if (lastComparison != 0) {
6002
        return lastComparison;
6003
      }
3430 rajveer 6004
      if (isSetAgentId()) {
6005
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
6006
        if (lastComparison != 0) {
6007
          return lastComparison;
6008
        }
3028 mandeep.dh 6009
      }
6010
      return 0;
6011
    }
6012
 
3430 rajveer 6013
    public _Fields fieldForId(int fieldId) {
6014
      return _Fields.findByThriftId(fieldId);
6015
    }
6016
 
6017
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6018
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6019
      iprot.readStructBegin();
6020
      while (true)
6021
      {
6022
        field = iprot.readFieldBegin();
3430 rajveer 6023
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6024
          break;
6025
        }
3430 rajveer 6026
        switch (field.id) {
6027
          case 1: // ACTIVITY_ID
6028
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6029
              this.activityId = iprot.readI64();
6030
              setActivityIdIsSet(true);
6031
            } else { 
6032
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6033
            }
6034
            break;
6035
          case 2: // AGENT_ID
6036
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6037
              this.agentId = iprot.readI64();
6038
              setAgentIdIsSet(true);
6039
            } else { 
6040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6041
            }
6042
            break;
6043
          default:
6044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6045
        }
3430 rajveer 6046
        iprot.readFieldEnd();
3028 mandeep.dh 6047
      }
6048
      iprot.readStructEnd();
6049
      validate();
6050
    }
6051
 
3430 rajveer 6052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6053
      validate();
6054
 
6055
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 6056
      oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);
6057
      oprot.writeI64(this.activityId);
6058
      oprot.writeFieldEnd();
3028 mandeep.dh 6059
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
6060
      oprot.writeI64(this.agentId);
6061
      oprot.writeFieldEnd();
6062
      oprot.writeFieldStop();
6063
      oprot.writeStructEnd();
6064
    }
6065
 
6066
    @Override
6067
    public String toString() {
3390 mandeep.dh 6068
      StringBuilder sb = new StringBuilder("markAsRead_args(");
3028 mandeep.dh 6069
      boolean first = true;
6070
 
3390 mandeep.dh 6071
      sb.append("activityId:");
6072
      sb.append(this.activityId);
6073
      first = false;
6074
      if (!first) sb.append(", ");
3028 mandeep.dh 6075
      sb.append("agentId:");
6076
      sb.append(this.agentId);
6077
      first = false;
6078
      sb.append(")");
6079
      return sb.toString();
6080
    }
6081
 
3430 rajveer 6082
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6083
      // check for required fields
6084
    }
6085
 
3430 rajveer 6086
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6087
      try {
6088
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6089
      } catch (org.apache.thrift.TException te) {
6090
        throw new java.io.IOException(te);
6091
      }
6092
    }
6093
 
6094
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6095
      try {
6096
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6097
        __isset_bit_vector = new BitSet(1);
6098
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6099
      } catch (org.apache.thrift.TException te) {
6100
        throw new java.io.IOException(te);
6101
      }
6102
    }
6103
 
3028 mandeep.dh 6104
  }
6105
 
3430 rajveer 6106
  public static class markAsRead_result implements org.apache.thrift.TBase<markAsRead_result, markAsRead_result._Fields>, java.io.Serializable, Cloneable   {
6107
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_result");
3028 mandeep.dh 6108
 
6109
 
6110
 
6111
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6112
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 6113
;
3028 mandeep.dh 6114
 
6115
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6116
 
6117
      static {
6118
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6119
          byName.put(field.getFieldName(), field);
6120
        }
6121
      }
6122
 
6123
      /**
6124
       * Find the _Fields constant that matches fieldId, or null if its not found.
6125
       */
6126
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6127
        switch(fieldId) {
6128
          default:
6129
            return null;
6130
        }
3028 mandeep.dh 6131
      }
6132
 
6133
      /**
6134
       * Find the _Fields constant that matches fieldId, throwing an exception
6135
       * if it is not found.
6136
       */
6137
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6138
        _Fields fields = findByThriftId(fieldId);
6139
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6140
        return fields;
6141
      }
6142
 
6143
      /**
6144
       * Find the _Fields constant that matches name, or null if its not found.
6145
       */
6146
      public static _Fields findByName(String name) {
6147
        return byName.get(name);
6148
      }
6149
 
6150
      private final short _thriftId;
6151
      private final String _fieldName;
6152
 
6153
      _Fields(short thriftId, String fieldName) {
6154
        _thriftId = thriftId;
6155
        _fieldName = fieldName;
6156
      }
6157
 
6158
      public short getThriftFieldId() {
6159
        return _thriftId;
6160
      }
6161
 
6162
      public String getFieldName() {
6163
        return _fieldName;
6164
      }
6165
    }
3430 rajveer 6166
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6167
    static {
3430 rajveer 6168
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6169
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6170
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_result.class, metaDataMap);
3028 mandeep.dh 6171
    }
6172
 
3390 mandeep.dh 6173
    public markAsRead_result() {
3028 mandeep.dh 6174
    }
6175
 
6176
    /**
6177
     * Performs a deep copy on <i>other</i>.
6178
     */
3390 mandeep.dh 6179
    public markAsRead_result(markAsRead_result other) {
3028 mandeep.dh 6180
    }
6181
 
3390 mandeep.dh 6182
    public markAsRead_result deepCopy() {
6183
      return new markAsRead_result(this);
3028 mandeep.dh 6184
    }
6185
 
3430 rajveer 6186
    @Override
6187
    public void clear() {
3028 mandeep.dh 6188
    }
6189
 
6190
    public void setFieldValue(_Fields field, Object value) {
6191
      switch (field) {
6192
      }
6193
    }
6194
 
6195
    public Object getFieldValue(_Fields field) {
6196
      switch (field) {
6197
      }
6198
      throw new IllegalStateException();
6199
    }
6200
 
3430 rajveer 6201
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6202
    public boolean isSet(_Fields field) {
6203
      if (field == null) {
6204
        throw new IllegalArgumentException();
6205
      }
3028 mandeep.dh 6206
 
6207
      switch (field) {
6208
      }
6209
      throw new IllegalStateException();
6210
    }
6211
 
6212
    @Override
6213
    public boolean equals(Object that) {
6214
      if (that == null)
6215
        return false;
3390 mandeep.dh 6216
      if (that instanceof markAsRead_result)
6217
        return this.equals((markAsRead_result)that);
3028 mandeep.dh 6218
      return false;
6219
    }
6220
 
3390 mandeep.dh 6221
    public boolean equals(markAsRead_result that) {
3028 mandeep.dh 6222
      if (that == null)
6223
        return false;
6224
 
6225
      return true;
6226
    }
6227
 
6228
    @Override
6229
    public int hashCode() {
6230
      return 0;
6231
    }
6232
 
3390 mandeep.dh 6233
    public int compareTo(markAsRead_result other) {
3028 mandeep.dh 6234
      if (!getClass().equals(other.getClass())) {
6235
        return getClass().getName().compareTo(other.getClass().getName());
6236
      }
6237
 
6238
      int lastComparison = 0;
3390 mandeep.dh 6239
      markAsRead_result typedOther = (markAsRead_result)other;
3028 mandeep.dh 6240
 
6241
      return 0;
6242
    }
6243
 
3430 rajveer 6244
    public _Fields fieldForId(int fieldId) {
6245
      return _Fields.findByThriftId(fieldId);
6246
    }
6247
 
6248
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6249
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6250
      iprot.readStructBegin();
6251
      while (true)
6252
      {
6253
        field = iprot.readFieldBegin();
3430 rajveer 6254
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6255
          break;
6256
        }
3430 rajveer 6257
        switch (field.id) {
6258
          default:
6259
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6260
        }
3430 rajveer 6261
        iprot.readFieldEnd();
3028 mandeep.dh 6262
      }
6263
      iprot.readStructEnd();
6264
      validate();
6265
    }
6266
 
3430 rajveer 6267
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6268
      oprot.writeStructBegin(STRUCT_DESC);
6269
 
6270
      oprot.writeFieldStop();
6271
      oprot.writeStructEnd();
6272
    }
6273
 
6274
    @Override
6275
    public String toString() {
3390 mandeep.dh 6276
      StringBuilder sb = new StringBuilder("markAsRead_result(");
3028 mandeep.dh 6277
      boolean first = true;
6278
 
6279
      sb.append(")");
6280
      return sb.toString();
6281
    }
6282
 
3430 rajveer 6283
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6284
      // check for required fields
6285
    }
6286
 
3430 rajveer 6287
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6288
      try {
6289
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6290
      } catch (org.apache.thrift.TException te) {
6291
        throw new java.io.IOException(te);
6292
      }
6293
    }
6294
 
6295
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6296
      try {
6297
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6298
      } catch (org.apache.thrift.TException te) {
6299
        throw new java.io.IOException(te);
6300
      }
6301
    }
6302
 
3028 mandeep.dh 6303
  }
6304
 
3430 rajveer 6305
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
6306
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
3028 mandeep.dh 6307
 
3430 rajveer 6308
    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 6309
 
3430 rajveer 6310
    private SearchFilter searchFilter; // required
3028 mandeep.dh 6311
 
6312
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6313
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 6314
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 6315
 
6316
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6317
 
6318
      static {
6319
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6320
          byName.put(field.getFieldName(), field);
6321
        }
6322
      }
6323
 
6324
      /**
6325
       * Find the _Fields constant that matches fieldId, or null if its not found.
6326
       */
6327
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6328
        switch(fieldId) {
6329
          case 1: // SEARCH_FILTER
6330
            return SEARCH_FILTER;
6331
          default:
6332
            return null;
6333
        }
3028 mandeep.dh 6334
      }
6335
 
6336
      /**
6337
       * Find the _Fields constant that matches fieldId, throwing an exception
6338
       * if it is not found.
6339
       */
6340
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6341
        _Fields fields = findByThriftId(fieldId);
6342
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6343
        return fields;
6344
      }
6345
 
6346
      /**
6347
       * Find the _Fields constant that matches name, or null if its not found.
6348
       */
6349
      public static _Fields findByName(String name) {
6350
        return byName.get(name);
6351
      }
6352
 
6353
      private final short _thriftId;
6354
      private final String _fieldName;
6355
 
6356
      _Fields(short thriftId, String fieldName) {
6357
        _thriftId = thriftId;
6358
        _fieldName = fieldName;
6359
      }
6360
 
6361
      public short getThriftFieldId() {
6362
        return _thriftId;
6363
      }
6364
 
6365
      public String getFieldName() {
6366
        return _fieldName;
6367
      }
6368
    }
6369
 
6370
    // isset id assignments
6371
 
3430 rajveer 6372
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6373
    static {
3430 rajveer 6374
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6375
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6376
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
6377
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6378
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
3028 mandeep.dh 6379
    }
6380
 
3390 mandeep.dh 6381
    public getAgents_args() {
3028 mandeep.dh 6382
    }
6383
 
3390 mandeep.dh 6384
    public getAgents_args(
6385
      SearchFilter searchFilter)
3028 mandeep.dh 6386
    {
6387
      this();
3390 mandeep.dh 6388
      this.searchFilter = searchFilter;
3028 mandeep.dh 6389
    }
6390
 
6391
    /**
6392
     * Performs a deep copy on <i>other</i>.
6393
     */
3390 mandeep.dh 6394
    public getAgents_args(getAgents_args other) {
6395
      if (other.isSetSearchFilter()) {
6396
        this.searchFilter = new SearchFilter(other.searchFilter);
3028 mandeep.dh 6397
      }
6398
    }
6399
 
3390 mandeep.dh 6400
    public getAgents_args deepCopy() {
6401
      return new getAgents_args(this);
3028 mandeep.dh 6402
    }
6403
 
3430 rajveer 6404
    @Override
6405
    public void clear() {
6406
      this.searchFilter = null;
3028 mandeep.dh 6407
    }
6408
 
3390 mandeep.dh 6409
    public SearchFilter getSearchFilter() {
6410
      return this.searchFilter;
3028 mandeep.dh 6411
    }
6412
 
3430 rajveer 6413
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 6414
      this.searchFilter = searchFilter;
3028 mandeep.dh 6415
    }
6416
 
3390 mandeep.dh 6417
    public void unsetSearchFilter() {
6418
      this.searchFilter = null;
3028 mandeep.dh 6419
    }
6420
 
3430 rajveer 6421
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 6422
    public boolean isSetSearchFilter() {
6423
      return this.searchFilter != null;
3028 mandeep.dh 6424
    }
6425
 
3390 mandeep.dh 6426
    public void setSearchFilterIsSet(boolean value) {
3028 mandeep.dh 6427
      if (!value) {
3390 mandeep.dh 6428
        this.searchFilter = null;
3028 mandeep.dh 6429
      }
6430
    }
6431
 
6432
    public void setFieldValue(_Fields field, Object value) {
6433
      switch (field) {
3390 mandeep.dh 6434
      case SEARCH_FILTER:
3028 mandeep.dh 6435
        if (value == null) {
3390 mandeep.dh 6436
          unsetSearchFilter();
3028 mandeep.dh 6437
        } else {
3390 mandeep.dh 6438
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 6439
        }
6440
        break;
6441
 
6442
      }
6443
    }
6444
 
6445
    public Object getFieldValue(_Fields field) {
6446
      switch (field) {
3390 mandeep.dh 6447
      case SEARCH_FILTER:
6448
        return getSearchFilter();
3028 mandeep.dh 6449
 
6450
      }
6451
      throw new IllegalStateException();
6452
    }
6453
 
3430 rajveer 6454
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6455
    public boolean isSet(_Fields field) {
6456
      if (field == null) {
6457
        throw new IllegalArgumentException();
6458
      }
3028 mandeep.dh 6459
 
6460
      switch (field) {
3390 mandeep.dh 6461
      case SEARCH_FILTER:
6462
        return isSetSearchFilter();
3028 mandeep.dh 6463
      }
6464
      throw new IllegalStateException();
6465
    }
6466
 
6467
    @Override
6468
    public boolean equals(Object that) {
6469
      if (that == null)
6470
        return false;
3390 mandeep.dh 6471
      if (that instanceof getAgents_args)
6472
        return this.equals((getAgents_args)that);
3028 mandeep.dh 6473
      return false;
6474
    }
6475
 
3390 mandeep.dh 6476
    public boolean equals(getAgents_args that) {
3028 mandeep.dh 6477
      if (that == null)
6478
        return false;
6479
 
3390 mandeep.dh 6480
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
6481
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
6482
      if (this_present_searchFilter || that_present_searchFilter) {
6483
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 6484
          return false;
3390 mandeep.dh 6485
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 6486
          return false;
6487
      }
6488
 
6489
      return true;
6490
    }
6491
 
6492
    @Override
6493
    public int hashCode() {
6494
      return 0;
6495
    }
6496
 
3390 mandeep.dh 6497
    public int compareTo(getAgents_args other) {
3028 mandeep.dh 6498
      if (!getClass().equals(other.getClass())) {
6499
        return getClass().getName().compareTo(other.getClass().getName());
6500
      }
6501
 
6502
      int lastComparison = 0;
3390 mandeep.dh 6503
      getAgents_args typedOther = (getAgents_args)other;
3028 mandeep.dh 6504
 
3430 rajveer 6505
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 6506
      if (lastComparison != 0) {
6507
        return lastComparison;
6508
      }
3430 rajveer 6509
      if (isSetSearchFilter()) {
6510
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
6511
        if (lastComparison != 0) {
6512
          return lastComparison;
6513
        }
3028 mandeep.dh 6514
      }
6515
      return 0;
6516
    }
6517
 
3430 rajveer 6518
    public _Fields fieldForId(int fieldId) {
6519
      return _Fields.findByThriftId(fieldId);
6520
    }
6521
 
6522
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6523
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6524
      iprot.readStructBegin();
6525
      while (true)
6526
      {
6527
        field = iprot.readFieldBegin();
3430 rajveer 6528
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6529
          break;
6530
        }
3430 rajveer 6531
        switch (field.id) {
6532
          case 1: // SEARCH_FILTER
6533
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6534
              this.searchFilter = new SearchFilter();
6535
              this.searchFilter.read(iprot);
6536
            } else { 
6537
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6538
            }
6539
            break;
6540
          default:
6541
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6542
        }
3430 rajveer 6543
        iprot.readFieldEnd();
3028 mandeep.dh 6544
      }
6545
      iprot.readStructEnd();
6546
      validate();
6547
    }
6548
 
3430 rajveer 6549
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6550
      validate();
6551
 
6552
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 6553
      if (this.searchFilter != null) {
6554
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
6555
        this.searchFilter.write(oprot);
3028 mandeep.dh 6556
        oprot.writeFieldEnd();
6557
      }
6558
      oprot.writeFieldStop();
6559
      oprot.writeStructEnd();
6560
    }
6561
 
6562
    @Override
6563
    public String toString() {
3390 mandeep.dh 6564
      StringBuilder sb = new StringBuilder("getAgents_args(");
3028 mandeep.dh 6565
      boolean first = true;
6566
 
3390 mandeep.dh 6567
      sb.append("searchFilter:");
6568
      if (this.searchFilter == null) {
3028 mandeep.dh 6569
        sb.append("null");
6570
      } else {
3390 mandeep.dh 6571
        sb.append(this.searchFilter);
3028 mandeep.dh 6572
      }
6573
      first = false;
6574
      sb.append(")");
6575
      return sb.toString();
6576
    }
6577
 
3430 rajveer 6578
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6579
      // check for required fields
6580
    }
6581
 
3430 rajveer 6582
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6583
      try {
6584
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6585
      } catch (org.apache.thrift.TException te) {
6586
        throw new java.io.IOException(te);
6587
      }
6588
    }
6589
 
6590
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6591
      try {
6592
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6593
      } catch (org.apache.thrift.TException te) {
6594
        throw new java.io.IOException(te);
6595
      }
6596
    }
6597
 
3028 mandeep.dh 6598
  }
6599
 
3430 rajveer 6600
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
6601
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
3028 mandeep.dh 6602
 
3430 rajveer 6603
    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 6604
 
3430 rajveer 6605
    private List<Agent> success; // required
3028 mandeep.dh 6606
 
6607
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6608
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 6609
      SUCCESS((short)0, "success");
6610
 
6611
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6612
 
6613
      static {
6614
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6615
          byName.put(field.getFieldName(), field);
6616
        }
6617
      }
6618
 
6619
      /**
6620
       * Find the _Fields constant that matches fieldId, or null if its not found.
6621
       */
6622
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6623
        switch(fieldId) {
6624
          case 0: // SUCCESS
6625
            return SUCCESS;
6626
          default:
6627
            return null;
6628
        }
3028 mandeep.dh 6629
      }
6630
 
6631
      /**
6632
       * Find the _Fields constant that matches fieldId, throwing an exception
6633
       * if it is not found.
6634
       */
6635
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6636
        _Fields fields = findByThriftId(fieldId);
6637
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6638
        return fields;
6639
      }
6640
 
6641
      /**
6642
       * Find the _Fields constant that matches name, or null if its not found.
6643
       */
6644
      public static _Fields findByName(String name) {
6645
        return byName.get(name);
6646
      }
6647
 
6648
      private final short _thriftId;
6649
      private final String _fieldName;
6650
 
6651
      _Fields(short thriftId, String fieldName) {
6652
        _thriftId = thriftId;
6653
        _fieldName = fieldName;
6654
      }
6655
 
6656
      public short getThriftFieldId() {
6657
        return _thriftId;
6658
      }
6659
 
6660
      public String getFieldName() {
6661
        return _fieldName;
6662
      }
6663
    }
6664
 
6665
    // isset id assignments
6666
 
3430 rajveer 6667
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6668
    static {
3430 rajveer 6669
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6670
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6671
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6672
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
6673
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6674
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
3028 mandeep.dh 6675
    }
6676
 
3390 mandeep.dh 6677
    public getAgents_result() {
3028 mandeep.dh 6678
    }
6679
 
3390 mandeep.dh 6680
    public getAgents_result(
6681
      List<Agent> success)
3028 mandeep.dh 6682
    {
6683
      this();
6684
      this.success = success;
6685
    }
6686
 
6687
    /**
6688
     * Performs a deep copy on <i>other</i>.
6689
     */
3390 mandeep.dh 6690
    public getAgents_result(getAgents_result other) {
3028 mandeep.dh 6691
      if (other.isSetSuccess()) {
3390 mandeep.dh 6692
        List<Agent> __this__success = new ArrayList<Agent>();
6693
        for (Agent other_element : other.success) {
6694
          __this__success.add(new Agent(other_element));
6695
        }
6696
        this.success = __this__success;
3028 mandeep.dh 6697
      }
6698
    }
6699
 
3390 mandeep.dh 6700
    public getAgents_result deepCopy() {
6701
      return new getAgents_result(this);
3028 mandeep.dh 6702
    }
6703
 
3430 rajveer 6704
    @Override
6705
    public void clear() {
6706
      this.success = null;
3028 mandeep.dh 6707
    }
6708
 
3390 mandeep.dh 6709
    public int getSuccessSize() {
6710
      return (this.success == null) ? 0 : this.success.size();
6711
    }
6712
 
6713
    public java.util.Iterator<Agent> getSuccessIterator() {
6714
      return (this.success == null) ? null : this.success.iterator();
6715
    }
6716
 
6717
    public void addToSuccess(Agent elem) {
6718
      if (this.success == null) {
6719
        this.success = new ArrayList<Agent>();
6720
      }
6721
      this.success.add(elem);
6722
    }
6723
 
6724
    public List<Agent> getSuccess() {
3028 mandeep.dh 6725
      return this.success;
6726
    }
6727
 
3430 rajveer 6728
    public void setSuccess(List<Agent> success) {
3028 mandeep.dh 6729
      this.success = success;
6730
    }
6731
 
6732
    public void unsetSuccess() {
6733
      this.success = null;
6734
    }
6735
 
3430 rajveer 6736
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 6737
    public boolean isSetSuccess() {
6738
      return this.success != null;
6739
    }
6740
 
6741
    public void setSuccessIsSet(boolean value) {
6742
      if (!value) {
6743
        this.success = null;
6744
      }
6745
    }
6746
 
6747
    public void setFieldValue(_Fields field, Object value) {
6748
      switch (field) {
6749
      case SUCCESS:
6750
        if (value == null) {
6751
          unsetSuccess();
6752
        } else {
3390 mandeep.dh 6753
          setSuccess((List<Agent>)value);
3028 mandeep.dh 6754
        }
6755
        break;
6756
 
6757
      }
6758
    }
6759
 
6760
    public Object getFieldValue(_Fields field) {
6761
      switch (field) {
6762
      case SUCCESS:
6763
        return getSuccess();
6764
 
6765
      }
6766
      throw new IllegalStateException();
6767
    }
6768
 
3430 rajveer 6769
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6770
    public boolean isSet(_Fields field) {
6771
      if (field == null) {
6772
        throw new IllegalArgumentException();
6773
      }
3028 mandeep.dh 6774
 
6775
      switch (field) {
6776
      case SUCCESS:
6777
        return isSetSuccess();
6778
      }
6779
      throw new IllegalStateException();
6780
    }
6781
 
6782
    @Override
6783
    public boolean equals(Object that) {
6784
      if (that == null)
6785
        return false;
3390 mandeep.dh 6786
      if (that instanceof getAgents_result)
6787
        return this.equals((getAgents_result)that);
3028 mandeep.dh 6788
      return false;
6789
    }
6790
 
3390 mandeep.dh 6791
    public boolean equals(getAgents_result that) {
3028 mandeep.dh 6792
      if (that == null)
6793
        return false;
6794
 
6795
      boolean this_present_success = true && this.isSetSuccess();
6796
      boolean that_present_success = true && that.isSetSuccess();
6797
      if (this_present_success || that_present_success) {
6798
        if (!(this_present_success && that_present_success))
6799
          return false;
6800
        if (!this.success.equals(that.success))
6801
          return false;
6802
      }
6803
 
6804
      return true;
6805
    }
6806
 
6807
    @Override
6808
    public int hashCode() {
6809
      return 0;
6810
    }
6811
 
3390 mandeep.dh 6812
    public int compareTo(getAgents_result other) {
3028 mandeep.dh 6813
      if (!getClass().equals(other.getClass())) {
6814
        return getClass().getName().compareTo(other.getClass().getName());
6815
      }
6816
 
6817
      int lastComparison = 0;
3390 mandeep.dh 6818
      getAgents_result typedOther = (getAgents_result)other;
3028 mandeep.dh 6819
 
3430 rajveer 6820
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 6821
      if (lastComparison != 0) {
6822
        return lastComparison;
6823
      }
3430 rajveer 6824
      if (isSetSuccess()) {
6825
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6826
        if (lastComparison != 0) {
6827
          return lastComparison;
6828
        }
3028 mandeep.dh 6829
      }
6830
      return 0;
6831
    }
6832
 
3430 rajveer 6833
    public _Fields fieldForId(int fieldId) {
6834
      return _Fields.findByThriftId(fieldId);
6835
    }
6836
 
6837
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6838
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6839
      iprot.readStructBegin();
6840
      while (true)
6841
      {
6842
        field = iprot.readFieldBegin();
3430 rajveer 6843
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6844
          break;
6845
        }
3430 rajveer 6846
        switch (field.id) {
6847
          case 0: // SUCCESS
6848
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6849
              {
3546 mandeep.dh 6850
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
6851
                this.success = new ArrayList<Agent>(_list24.size);
6852
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
3390 mandeep.dh 6853
                {
3546 mandeep.dh 6854
                  Agent _elem26; // required
6855
                  _elem26 = new Agent();
6856
                  _elem26.read(iprot);
6857
                  this.success.add(_elem26);
3390 mandeep.dh 6858
                }
3430 rajveer 6859
                iprot.readListEnd();
3028 mandeep.dh 6860
              }
3430 rajveer 6861
            } else { 
6862
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6863
            }
6864
            break;
6865
          default:
6866
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6867
        }
3430 rajveer 6868
        iprot.readFieldEnd();
3028 mandeep.dh 6869
      }
6870
      iprot.readStructEnd();
6871
      validate();
6872
    }
6873
 
3430 rajveer 6874
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6875
      oprot.writeStructBegin(STRUCT_DESC);
6876
 
6877
      if (this.isSetSuccess()) {
6878
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3390 mandeep.dh 6879
        {
3430 rajveer 6880
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 6881
          for (Agent _iter27 : this.success)
3390 mandeep.dh 6882
          {
3546 mandeep.dh 6883
            _iter27.write(oprot);
3390 mandeep.dh 6884
          }
6885
          oprot.writeListEnd();
6886
        }
3028 mandeep.dh 6887
        oprot.writeFieldEnd();
6888
      }
6889
      oprot.writeFieldStop();
6890
      oprot.writeStructEnd();
6891
    }
6892
 
6893
    @Override
6894
    public String toString() {
3390 mandeep.dh 6895
      StringBuilder sb = new StringBuilder("getAgents_result(");
3028 mandeep.dh 6896
      boolean first = true;
6897
 
6898
      sb.append("success:");
6899
      if (this.success == null) {
6900
        sb.append("null");
6901
      } else {
6902
        sb.append(this.success);
6903
      }
6904
      first = false;
6905
      sb.append(")");
6906
      return sb.toString();
6907
    }
6908
 
3430 rajveer 6909
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6910
      // check for required fields
6911
    }
6912
 
3430 rajveer 6913
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6914
      try {
6915
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6916
      } catch (org.apache.thrift.TException te) {
6917
        throw new java.io.IOException(te);
6918
      }
6919
    }
6920
 
6921
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6922
      try {
6923
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6924
      } catch (org.apache.thrift.TException te) {
6925
        throw new java.io.IOException(te);
6926
      }
6927
    }
6928
 
3028 mandeep.dh 6929
  }
6930
 
5287 amar.kumar 6931
  public static class getInactiveAgents_args implements org.apache.thrift.TBase<getInactiveAgents_args, getInactiveAgents_args._Fields>, java.io.Serializable, Cloneable   {
6932
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_args");
6933
 
6934
    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);
6935
 
6936
    private SearchFilter searchFilter; // required
6937
 
6938
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6939
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6940
      SEARCH_FILTER((short)1, "searchFilter");
6941
 
6942
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6943
 
6944
      static {
6945
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6946
          byName.put(field.getFieldName(), field);
6947
        }
6948
      }
6949
 
6950
      /**
6951
       * Find the _Fields constant that matches fieldId, or null if its not found.
6952
       */
6953
      public static _Fields findByThriftId(int fieldId) {
6954
        switch(fieldId) {
6955
          case 1: // SEARCH_FILTER
6956
            return SEARCH_FILTER;
6957
          default:
6958
            return null;
6959
        }
6960
      }
6961
 
6962
      /**
6963
       * Find the _Fields constant that matches fieldId, throwing an exception
6964
       * if it is not found.
6965
       */
6966
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6967
        _Fields fields = findByThriftId(fieldId);
6968
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6969
        return fields;
6970
      }
6971
 
6972
      /**
6973
       * Find the _Fields constant that matches name, or null if its not found.
6974
       */
6975
      public static _Fields findByName(String name) {
6976
        return byName.get(name);
6977
      }
6978
 
6979
      private final short _thriftId;
6980
      private final String _fieldName;
6981
 
6982
      _Fields(short thriftId, String fieldName) {
6983
        _thriftId = thriftId;
6984
        _fieldName = fieldName;
6985
      }
6986
 
6987
      public short getThriftFieldId() {
6988
        return _thriftId;
6989
      }
6990
 
6991
      public String getFieldName() {
6992
        return _fieldName;
6993
      }
6994
    }
6995
 
6996
    // isset id assignments
6997
 
6998
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6999
    static {
7000
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7001
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7002
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
7003
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7004
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_args.class, metaDataMap);
7005
    }
7006
 
7007
    public getInactiveAgents_args() {
7008
    }
7009
 
7010
    public getInactiveAgents_args(
7011
      SearchFilter searchFilter)
7012
    {
7013
      this();
7014
      this.searchFilter = searchFilter;
7015
    }
7016
 
7017
    /**
7018
     * Performs a deep copy on <i>other</i>.
7019
     */
7020
    public getInactiveAgents_args(getInactiveAgents_args other) {
7021
      if (other.isSetSearchFilter()) {
7022
        this.searchFilter = new SearchFilter(other.searchFilter);
7023
      }
7024
    }
7025
 
7026
    public getInactiveAgents_args deepCopy() {
7027
      return new getInactiveAgents_args(this);
7028
    }
7029
 
7030
    @Override
7031
    public void clear() {
7032
      this.searchFilter = null;
7033
    }
7034
 
7035
    public SearchFilter getSearchFilter() {
7036
      return this.searchFilter;
7037
    }
7038
 
7039
    public void setSearchFilter(SearchFilter searchFilter) {
7040
      this.searchFilter = searchFilter;
7041
    }
7042
 
7043
    public void unsetSearchFilter() {
7044
      this.searchFilter = null;
7045
    }
7046
 
7047
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
7048
    public boolean isSetSearchFilter() {
7049
      return this.searchFilter != null;
7050
    }
7051
 
7052
    public void setSearchFilterIsSet(boolean value) {
7053
      if (!value) {
7054
        this.searchFilter = null;
7055
      }
7056
    }
7057
 
7058
    public void setFieldValue(_Fields field, Object value) {
7059
      switch (field) {
7060
      case SEARCH_FILTER:
7061
        if (value == null) {
7062
          unsetSearchFilter();
7063
        } else {
7064
          setSearchFilter((SearchFilter)value);
7065
        }
7066
        break;
7067
 
7068
      }
7069
    }
7070
 
7071
    public Object getFieldValue(_Fields field) {
7072
      switch (field) {
7073
      case SEARCH_FILTER:
7074
        return getSearchFilter();
7075
 
7076
      }
7077
      throw new IllegalStateException();
7078
    }
7079
 
7080
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7081
    public boolean isSet(_Fields field) {
7082
      if (field == null) {
7083
        throw new IllegalArgumentException();
7084
      }
7085
 
7086
      switch (field) {
7087
      case SEARCH_FILTER:
7088
        return isSetSearchFilter();
7089
      }
7090
      throw new IllegalStateException();
7091
    }
7092
 
7093
    @Override
7094
    public boolean equals(Object that) {
7095
      if (that == null)
7096
        return false;
7097
      if (that instanceof getInactiveAgents_args)
7098
        return this.equals((getInactiveAgents_args)that);
7099
      return false;
7100
    }
7101
 
7102
    public boolean equals(getInactiveAgents_args that) {
7103
      if (that == null)
7104
        return false;
7105
 
7106
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
7107
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
7108
      if (this_present_searchFilter || that_present_searchFilter) {
7109
        if (!(this_present_searchFilter && that_present_searchFilter))
7110
          return false;
7111
        if (!this.searchFilter.equals(that.searchFilter))
7112
          return false;
7113
      }
7114
 
7115
      return true;
7116
    }
7117
 
7118
    @Override
7119
    public int hashCode() {
7120
      return 0;
7121
    }
7122
 
7123
    public int compareTo(getInactiveAgents_args other) {
7124
      if (!getClass().equals(other.getClass())) {
7125
        return getClass().getName().compareTo(other.getClass().getName());
7126
      }
7127
 
7128
      int lastComparison = 0;
7129
      getInactiveAgents_args typedOther = (getInactiveAgents_args)other;
7130
 
7131
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
7132
      if (lastComparison != 0) {
7133
        return lastComparison;
7134
      }
7135
      if (isSetSearchFilter()) {
7136
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
7137
        if (lastComparison != 0) {
7138
          return lastComparison;
7139
        }
7140
      }
7141
      return 0;
7142
    }
7143
 
7144
    public _Fields fieldForId(int fieldId) {
7145
      return _Fields.findByThriftId(fieldId);
7146
    }
7147
 
7148
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7149
      org.apache.thrift.protocol.TField field;
7150
      iprot.readStructBegin();
7151
      while (true)
7152
      {
7153
        field = iprot.readFieldBegin();
7154
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7155
          break;
7156
        }
7157
        switch (field.id) {
7158
          case 1: // SEARCH_FILTER
7159
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7160
              this.searchFilter = new SearchFilter();
7161
              this.searchFilter.read(iprot);
7162
            } else { 
7163
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7164
            }
7165
            break;
7166
          default:
7167
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7168
        }
7169
        iprot.readFieldEnd();
7170
      }
7171
      iprot.readStructEnd();
7172
      validate();
7173
    }
7174
 
7175
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7176
      validate();
7177
 
7178
      oprot.writeStructBegin(STRUCT_DESC);
7179
      if (this.searchFilter != null) {
7180
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
7181
        this.searchFilter.write(oprot);
7182
        oprot.writeFieldEnd();
7183
      }
7184
      oprot.writeFieldStop();
7185
      oprot.writeStructEnd();
7186
    }
7187
 
7188
    @Override
7189
    public String toString() {
7190
      StringBuilder sb = new StringBuilder("getInactiveAgents_args(");
7191
      boolean first = true;
7192
 
7193
      sb.append("searchFilter:");
7194
      if (this.searchFilter == null) {
7195
        sb.append("null");
7196
      } else {
7197
        sb.append(this.searchFilter);
7198
      }
7199
      first = false;
7200
      sb.append(")");
7201
      return sb.toString();
7202
    }
7203
 
7204
    public void validate() throws org.apache.thrift.TException {
7205
      // check for required fields
7206
    }
7207
 
7208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7209
      try {
7210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7211
      } catch (org.apache.thrift.TException te) {
7212
        throw new java.io.IOException(te);
7213
      }
7214
    }
7215
 
7216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7217
      try {
7218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7219
      } catch (org.apache.thrift.TException te) {
7220
        throw new java.io.IOException(te);
7221
      }
7222
    }
7223
 
7224
  }
7225
 
7226
  public static class getInactiveAgents_result implements org.apache.thrift.TBase<getInactiveAgents_result, getInactiveAgents_result._Fields>, java.io.Serializable, Cloneable   {
7227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_result");
7228
 
7229
    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);
7230
 
7231
    private List<Agent> success; // required
7232
 
7233
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7234
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7235
      SUCCESS((short)0, "success");
7236
 
7237
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7238
 
7239
      static {
7240
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7241
          byName.put(field.getFieldName(), field);
7242
        }
7243
      }
7244
 
7245
      /**
7246
       * Find the _Fields constant that matches fieldId, or null if its not found.
7247
       */
7248
      public static _Fields findByThriftId(int fieldId) {
7249
        switch(fieldId) {
7250
          case 0: // SUCCESS
7251
            return SUCCESS;
7252
          default:
7253
            return null;
7254
        }
7255
      }
7256
 
7257
      /**
7258
       * Find the _Fields constant that matches fieldId, throwing an exception
7259
       * if it is not found.
7260
       */
7261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7262
        _Fields fields = findByThriftId(fieldId);
7263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7264
        return fields;
7265
      }
7266
 
7267
      /**
7268
       * Find the _Fields constant that matches name, or null if its not found.
7269
       */
7270
      public static _Fields findByName(String name) {
7271
        return byName.get(name);
7272
      }
7273
 
7274
      private final short _thriftId;
7275
      private final String _fieldName;
7276
 
7277
      _Fields(short thriftId, String fieldName) {
7278
        _thriftId = thriftId;
7279
        _fieldName = fieldName;
7280
      }
7281
 
7282
      public short getThriftFieldId() {
7283
        return _thriftId;
7284
      }
7285
 
7286
      public String getFieldName() {
7287
        return _fieldName;
7288
      }
7289
    }
7290
 
7291
    // isset id assignments
7292
 
7293
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7294
    static {
7295
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7296
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7297
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7298
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
7299
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7300
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_result.class, metaDataMap);
7301
    }
7302
 
7303
    public getInactiveAgents_result() {
7304
    }
7305
 
7306
    public getInactiveAgents_result(
7307
      List<Agent> success)
7308
    {
7309
      this();
7310
      this.success = success;
7311
    }
7312
 
7313
    /**
7314
     * Performs a deep copy on <i>other</i>.
7315
     */
7316
    public getInactiveAgents_result(getInactiveAgents_result other) {
7317
      if (other.isSetSuccess()) {
7318
        List<Agent> __this__success = new ArrayList<Agent>();
7319
        for (Agent other_element : other.success) {
7320
          __this__success.add(new Agent(other_element));
7321
        }
7322
        this.success = __this__success;
7323
      }
7324
    }
7325
 
7326
    public getInactiveAgents_result deepCopy() {
7327
      return new getInactiveAgents_result(this);
7328
    }
7329
 
7330
    @Override
7331
    public void clear() {
7332
      this.success = null;
7333
    }
7334
 
7335
    public int getSuccessSize() {
7336
      return (this.success == null) ? 0 : this.success.size();
7337
    }
7338
 
7339
    public java.util.Iterator<Agent> getSuccessIterator() {
7340
      return (this.success == null) ? null : this.success.iterator();
7341
    }
7342
 
7343
    public void addToSuccess(Agent elem) {
7344
      if (this.success == null) {
7345
        this.success = new ArrayList<Agent>();
7346
      }
7347
      this.success.add(elem);
7348
    }
7349
 
7350
    public List<Agent> getSuccess() {
7351
      return this.success;
7352
    }
7353
 
7354
    public void setSuccess(List<Agent> success) {
7355
      this.success = success;
7356
    }
7357
 
7358
    public void unsetSuccess() {
7359
      this.success = null;
7360
    }
7361
 
7362
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7363
    public boolean isSetSuccess() {
7364
      return this.success != null;
7365
    }
7366
 
7367
    public void setSuccessIsSet(boolean value) {
7368
      if (!value) {
7369
        this.success = null;
7370
      }
7371
    }
7372
 
7373
    public void setFieldValue(_Fields field, Object value) {
7374
      switch (field) {
7375
      case SUCCESS:
7376
        if (value == null) {
7377
          unsetSuccess();
7378
        } else {
7379
          setSuccess((List<Agent>)value);
7380
        }
7381
        break;
7382
 
7383
      }
7384
    }
7385
 
7386
    public Object getFieldValue(_Fields field) {
7387
      switch (field) {
7388
      case SUCCESS:
7389
        return getSuccess();
7390
 
7391
      }
7392
      throw new IllegalStateException();
7393
    }
7394
 
7395
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7396
    public boolean isSet(_Fields field) {
7397
      if (field == null) {
7398
        throw new IllegalArgumentException();
7399
      }
7400
 
7401
      switch (field) {
7402
      case SUCCESS:
7403
        return isSetSuccess();
7404
      }
7405
      throw new IllegalStateException();
7406
    }
7407
 
7408
    @Override
7409
    public boolean equals(Object that) {
7410
      if (that == null)
7411
        return false;
7412
      if (that instanceof getInactiveAgents_result)
7413
        return this.equals((getInactiveAgents_result)that);
7414
      return false;
7415
    }
7416
 
7417
    public boolean equals(getInactiveAgents_result that) {
7418
      if (that == null)
7419
        return false;
7420
 
7421
      boolean this_present_success = true && this.isSetSuccess();
7422
      boolean that_present_success = true && that.isSetSuccess();
7423
      if (this_present_success || that_present_success) {
7424
        if (!(this_present_success && that_present_success))
7425
          return false;
7426
        if (!this.success.equals(that.success))
7427
          return false;
7428
      }
7429
 
7430
      return true;
7431
    }
7432
 
7433
    @Override
7434
    public int hashCode() {
7435
      return 0;
7436
    }
7437
 
7438
    public int compareTo(getInactiveAgents_result other) {
7439
      if (!getClass().equals(other.getClass())) {
7440
        return getClass().getName().compareTo(other.getClass().getName());
7441
      }
7442
 
7443
      int lastComparison = 0;
7444
      getInactiveAgents_result typedOther = (getInactiveAgents_result)other;
7445
 
7446
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7447
      if (lastComparison != 0) {
7448
        return lastComparison;
7449
      }
7450
      if (isSetSuccess()) {
7451
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7452
        if (lastComparison != 0) {
7453
          return lastComparison;
7454
        }
7455
      }
7456
      return 0;
7457
    }
7458
 
7459
    public _Fields fieldForId(int fieldId) {
7460
      return _Fields.findByThriftId(fieldId);
7461
    }
7462
 
7463
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7464
      org.apache.thrift.protocol.TField field;
7465
      iprot.readStructBegin();
7466
      while (true)
7467
      {
7468
        field = iprot.readFieldBegin();
7469
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7470
          break;
7471
        }
7472
        switch (field.id) {
7473
          case 0: // SUCCESS
7474
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7475
              {
7476
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
7477
                this.success = new ArrayList<Agent>(_list28.size);
7478
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7479
                {
7480
                  Agent _elem30; // required
7481
                  _elem30 = new Agent();
7482
                  _elem30.read(iprot);
7483
                  this.success.add(_elem30);
7484
                }
7485
                iprot.readListEnd();
7486
              }
7487
            } else { 
7488
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7489
            }
7490
            break;
7491
          default:
7492
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7493
        }
7494
        iprot.readFieldEnd();
7495
      }
7496
      iprot.readStructEnd();
7497
      validate();
7498
    }
7499
 
7500
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7501
      oprot.writeStructBegin(STRUCT_DESC);
7502
 
7503
      if (this.isSetSuccess()) {
7504
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7505
        {
7506
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7507
          for (Agent _iter31 : this.success)
7508
          {
7509
            _iter31.write(oprot);
7510
          }
7511
          oprot.writeListEnd();
7512
        }
7513
        oprot.writeFieldEnd();
7514
      }
7515
      oprot.writeFieldStop();
7516
      oprot.writeStructEnd();
7517
    }
7518
 
7519
    @Override
7520
    public String toString() {
7521
      StringBuilder sb = new StringBuilder("getInactiveAgents_result(");
7522
      boolean first = true;
7523
 
7524
      sb.append("success:");
7525
      if (this.success == null) {
7526
        sb.append("null");
7527
      } else {
7528
        sb.append(this.success);
7529
      }
7530
      first = false;
7531
      sb.append(")");
7532
      return sb.toString();
7533
    }
7534
 
7535
    public void validate() throws org.apache.thrift.TException {
7536
      // check for required fields
7537
    }
7538
 
7539
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7540
      try {
7541
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7542
      } catch (org.apache.thrift.TException te) {
7543
        throw new java.io.IOException(te);
7544
      }
7545
    }
7546
 
7547
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7548
      try {
7549
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7550
      } catch (org.apache.thrift.TException te) {
7551
        throw new java.io.IOException(te);
7552
      }
7553
    }
7554
 
7555
  }
7556
 
3430 rajveer 7557
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
7558
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
3087 mandeep.dh 7559
 
3430 rajveer 7560
    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);
7561
    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 7562
 
3430 rajveer 7563
    private String agentEmailId; // required
7564
    private String password; // required
3087 mandeep.dh 7565
 
7566
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7567
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 7568
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
7569
      PASSWORD((short)2, "password");
7570
 
7571
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7572
 
7573
      static {
7574
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7575
          byName.put(field.getFieldName(), field);
7576
        }
7577
      }
7578
 
7579
      /**
7580
       * Find the _Fields constant that matches fieldId, or null if its not found.
7581
       */
7582
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7583
        switch(fieldId) {
7584
          case 1: // AGENT_EMAIL_ID
7585
            return AGENT_EMAIL_ID;
7586
          case 2: // PASSWORD
7587
            return PASSWORD;
7588
          default:
7589
            return null;
7590
        }
3087 mandeep.dh 7591
      }
7592
 
7593
      /**
7594
       * Find the _Fields constant that matches fieldId, throwing an exception
7595
       * if it is not found.
7596
       */
7597
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7598
        _Fields fields = findByThriftId(fieldId);
7599
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7600
        return fields;
7601
      }
7602
 
7603
      /**
7604
       * Find the _Fields constant that matches name, or null if its not found.
7605
       */
7606
      public static _Fields findByName(String name) {
7607
        return byName.get(name);
7608
      }
7609
 
7610
      private final short _thriftId;
7611
      private final String _fieldName;
7612
 
7613
      _Fields(short thriftId, String fieldName) {
7614
        _thriftId = thriftId;
7615
        _fieldName = fieldName;
7616
      }
7617
 
7618
      public short getThriftFieldId() {
7619
        return _thriftId;
7620
      }
7621
 
7622
      public String getFieldName() {
7623
        return _fieldName;
7624
      }
7625
    }
7626
 
7627
    // isset id assignments
7628
 
3430 rajveer 7629
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 7630
    static {
3430 rajveer 7631
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7632
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7633
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7634
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7635
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7636
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7637
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
3087 mandeep.dh 7638
    }
7639
 
7640
    public updatePasswordForAgent_args() {
7641
    }
7642
 
7643
    public updatePasswordForAgent_args(
7644
      String agentEmailId,
7645
      String password)
7646
    {
7647
      this();
7648
      this.agentEmailId = agentEmailId;
7649
      this.password = password;
7650
    }
7651
 
7652
    /**
7653
     * Performs a deep copy on <i>other</i>.
7654
     */
7655
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
7656
      if (other.isSetAgentEmailId()) {
7657
        this.agentEmailId = other.agentEmailId;
7658
      }
7659
      if (other.isSetPassword()) {
7660
        this.password = other.password;
7661
      }
7662
    }
7663
 
7664
    public updatePasswordForAgent_args deepCopy() {
7665
      return new updatePasswordForAgent_args(this);
7666
    }
7667
 
3430 rajveer 7668
    @Override
7669
    public void clear() {
7670
      this.agentEmailId = null;
7671
      this.password = null;
3087 mandeep.dh 7672
    }
7673
 
7674
    public String getAgentEmailId() {
7675
      return this.agentEmailId;
7676
    }
7677
 
3430 rajveer 7678
    public void setAgentEmailId(String agentEmailId) {
3087 mandeep.dh 7679
      this.agentEmailId = agentEmailId;
7680
    }
7681
 
7682
    public void unsetAgentEmailId() {
7683
      this.agentEmailId = null;
7684
    }
7685
 
3430 rajveer 7686
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 7687
    public boolean isSetAgentEmailId() {
7688
      return this.agentEmailId != null;
7689
    }
7690
 
7691
    public void setAgentEmailIdIsSet(boolean value) {
7692
      if (!value) {
7693
        this.agentEmailId = null;
7694
      }
7695
    }
7696
 
7697
    public String getPassword() {
7698
      return this.password;
7699
    }
7700
 
3430 rajveer 7701
    public void setPassword(String password) {
3087 mandeep.dh 7702
      this.password = password;
7703
    }
7704
 
7705
    public void unsetPassword() {
7706
      this.password = null;
7707
    }
7708
 
3430 rajveer 7709
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 7710
    public boolean isSetPassword() {
7711
      return this.password != null;
7712
    }
7713
 
7714
    public void setPasswordIsSet(boolean value) {
7715
      if (!value) {
7716
        this.password = null;
7717
      }
7718
    }
7719
 
7720
    public void setFieldValue(_Fields field, Object value) {
7721
      switch (field) {
7722
      case AGENT_EMAIL_ID:
7723
        if (value == null) {
7724
          unsetAgentEmailId();
7725
        } else {
7726
          setAgentEmailId((String)value);
7727
        }
7728
        break;
7729
 
7730
      case PASSWORD:
7731
        if (value == null) {
7732
          unsetPassword();
7733
        } else {
7734
          setPassword((String)value);
7735
        }
7736
        break;
7737
 
7738
      }
7739
    }
7740
 
7741
    public Object getFieldValue(_Fields field) {
7742
      switch (field) {
7743
      case AGENT_EMAIL_ID:
7744
        return getAgentEmailId();
7745
 
7746
      case PASSWORD:
7747
        return getPassword();
7748
 
7749
      }
7750
      throw new IllegalStateException();
7751
    }
7752
 
3430 rajveer 7753
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7754
    public boolean isSet(_Fields field) {
7755
      if (field == null) {
7756
        throw new IllegalArgumentException();
7757
      }
3087 mandeep.dh 7758
 
7759
      switch (field) {
7760
      case AGENT_EMAIL_ID:
7761
        return isSetAgentEmailId();
7762
      case PASSWORD:
7763
        return isSetPassword();
7764
      }
7765
      throw new IllegalStateException();
7766
    }
7767
 
7768
    @Override
7769
    public boolean equals(Object that) {
7770
      if (that == null)
7771
        return false;
7772
      if (that instanceof updatePasswordForAgent_args)
7773
        return this.equals((updatePasswordForAgent_args)that);
7774
      return false;
7775
    }
7776
 
7777
    public boolean equals(updatePasswordForAgent_args that) {
7778
      if (that == null)
7779
        return false;
7780
 
7781
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
7782
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
7783
      if (this_present_agentEmailId || that_present_agentEmailId) {
7784
        if (!(this_present_agentEmailId && that_present_agentEmailId))
7785
          return false;
7786
        if (!this.agentEmailId.equals(that.agentEmailId))
7787
          return false;
7788
      }
7789
 
7790
      boolean this_present_password = true && this.isSetPassword();
7791
      boolean that_present_password = true && that.isSetPassword();
7792
      if (this_present_password || that_present_password) {
7793
        if (!(this_present_password && that_present_password))
7794
          return false;
7795
        if (!this.password.equals(that.password))
7796
          return false;
7797
      }
7798
 
7799
      return true;
7800
    }
7801
 
7802
    @Override
7803
    public int hashCode() {
7804
      return 0;
7805
    }
7806
 
7807
    public int compareTo(updatePasswordForAgent_args other) {
7808
      if (!getClass().equals(other.getClass())) {
7809
        return getClass().getName().compareTo(other.getClass().getName());
7810
      }
7811
 
7812
      int lastComparison = 0;
7813
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
7814
 
3430 rajveer 7815
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
3087 mandeep.dh 7816
      if (lastComparison != 0) {
7817
        return lastComparison;
7818
      }
3430 rajveer 7819
      if (isSetAgentEmailId()) {
7820
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
7821
        if (lastComparison != 0) {
7822
          return lastComparison;
7823
        }
3087 mandeep.dh 7824
      }
3430 rajveer 7825
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
3087 mandeep.dh 7826
      if (lastComparison != 0) {
7827
        return lastComparison;
7828
      }
3430 rajveer 7829
      if (isSetPassword()) {
7830
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
7831
        if (lastComparison != 0) {
7832
          return lastComparison;
7833
        }
3087 mandeep.dh 7834
      }
7835
      return 0;
7836
    }
7837
 
3430 rajveer 7838
    public _Fields fieldForId(int fieldId) {
7839
      return _Fields.findByThriftId(fieldId);
7840
    }
7841
 
7842
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7843
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 7844
      iprot.readStructBegin();
7845
      while (true)
7846
      {
7847
        field = iprot.readFieldBegin();
3430 rajveer 7848
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 7849
          break;
7850
        }
3430 rajveer 7851
        switch (field.id) {
7852
          case 1: // AGENT_EMAIL_ID
7853
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7854
              this.agentEmailId = iprot.readString();
7855
            } else { 
7856
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7857
            }
7858
            break;
7859
          case 2: // PASSWORD
7860
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7861
              this.password = iprot.readString();
7862
            } else { 
7863
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7864
            }
7865
            break;
7866
          default:
7867
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 7868
        }
3430 rajveer 7869
        iprot.readFieldEnd();
3087 mandeep.dh 7870
      }
7871
      iprot.readStructEnd();
7872
      validate();
7873
    }
7874
 
3430 rajveer 7875
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 7876
      validate();
7877
 
7878
      oprot.writeStructBegin(STRUCT_DESC);
7879
      if (this.agentEmailId != null) {
7880
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
7881
        oprot.writeString(this.agentEmailId);
7882
        oprot.writeFieldEnd();
7883
      }
7884
      if (this.password != null) {
7885
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
7886
        oprot.writeString(this.password);
7887
        oprot.writeFieldEnd();
7888
      }
7889
      oprot.writeFieldStop();
7890
      oprot.writeStructEnd();
7891
    }
7892
 
7893
    @Override
7894
    public String toString() {
7895
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
7896
      boolean first = true;
7897
 
7898
      sb.append("agentEmailId:");
7899
      if (this.agentEmailId == null) {
7900
        sb.append("null");
7901
      } else {
7902
        sb.append(this.agentEmailId);
7903
      }
7904
      first = false;
7905
      if (!first) sb.append(", ");
7906
      sb.append("password:");
7907
      if (this.password == null) {
7908
        sb.append("null");
7909
      } else {
7910
        sb.append(this.password);
7911
      }
7912
      first = false;
7913
      sb.append(")");
7914
      return sb.toString();
7915
    }
7916
 
3430 rajveer 7917
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 7918
      // check for required fields
7919
    }
7920
 
3430 rajveer 7921
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7922
      try {
7923
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7924
      } catch (org.apache.thrift.TException te) {
7925
        throw new java.io.IOException(te);
7926
      }
7927
    }
7928
 
7929
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7930
      try {
7931
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7932
      } catch (org.apache.thrift.TException te) {
7933
        throw new java.io.IOException(te);
7934
      }
7935
    }
7936
 
3087 mandeep.dh 7937
  }
7938
 
3430 rajveer 7939
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
7940
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
3087 mandeep.dh 7941
 
7942
 
7943
 
7944
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7945
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 7946
;
7947
 
7948
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7949
 
7950
      static {
7951
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7952
          byName.put(field.getFieldName(), field);
7953
        }
7954
      }
7955
 
7956
      /**
7957
       * Find the _Fields constant that matches fieldId, or null if its not found.
7958
       */
7959
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7960
        switch(fieldId) {
7961
          default:
7962
            return null;
7963
        }
3087 mandeep.dh 7964
      }
7965
 
7966
      /**
7967
       * Find the _Fields constant that matches fieldId, throwing an exception
7968
       * if it is not found.
7969
       */
7970
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7971
        _Fields fields = findByThriftId(fieldId);
7972
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7973
        return fields;
7974
      }
7975
 
7976
      /**
7977
       * Find the _Fields constant that matches name, or null if its not found.
7978
       */
7979
      public static _Fields findByName(String name) {
7980
        return byName.get(name);
7981
      }
7982
 
7983
      private final short _thriftId;
7984
      private final String _fieldName;
7985
 
7986
      _Fields(short thriftId, String fieldName) {
7987
        _thriftId = thriftId;
7988
        _fieldName = fieldName;
7989
      }
7990
 
7991
      public short getThriftFieldId() {
7992
        return _thriftId;
7993
      }
7994
 
7995
      public String getFieldName() {
7996
        return _fieldName;
7997
      }
7998
    }
3430 rajveer 7999
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8000
    static {
3430 rajveer 8001
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8002
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8003
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
3087 mandeep.dh 8004
    }
8005
 
8006
    public updatePasswordForAgent_result() {
8007
    }
8008
 
8009
    /**
8010
     * Performs a deep copy on <i>other</i>.
8011
     */
8012
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
8013
    }
8014
 
8015
    public updatePasswordForAgent_result deepCopy() {
8016
      return new updatePasswordForAgent_result(this);
8017
    }
8018
 
3430 rajveer 8019
    @Override
8020
    public void clear() {
3087 mandeep.dh 8021
    }
8022
 
8023
    public void setFieldValue(_Fields field, Object value) {
8024
      switch (field) {
8025
      }
8026
    }
8027
 
8028
    public Object getFieldValue(_Fields field) {
8029
      switch (field) {
8030
      }
8031
      throw new IllegalStateException();
8032
    }
8033
 
3430 rajveer 8034
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8035
    public boolean isSet(_Fields field) {
8036
      if (field == null) {
8037
        throw new IllegalArgumentException();
8038
      }
3087 mandeep.dh 8039
 
8040
      switch (field) {
8041
      }
8042
      throw new IllegalStateException();
8043
    }
8044
 
8045
    @Override
8046
    public boolean equals(Object that) {
8047
      if (that == null)
8048
        return false;
8049
      if (that instanceof updatePasswordForAgent_result)
8050
        return this.equals((updatePasswordForAgent_result)that);
8051
      return false;
8052
    }
8053
 
8054
    public boolean equals(updatePasswordForAgent_result that) {
8055
      if (that == null)
8056
        return false;
8057
 
8058
      return true;
8059
    }
8060
 
8061
    @Override
8062
    public int hashCode() {
8063
      return 0;
8064
    }
8065
 
8066
    public int compareTo(updatePasswordForAgent_result other) {
8067
      if (!getClass().equals(other.getClass())) {
8068
        return getClass().getName().compareTo(other.getClass().getName());
8069
      }
8070
 
8071
      int lastComparison = 0;
8072
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
8073
 
8074
      return 0;
8075
    }
8076
 
3430 rajveer 8077
    public _Fields fieldForId(int fieldId) {
8078
      return _Fields.findByThriftId(fieldId);
8079
    }
8080
 
8081
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8082
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8083
      iprot.readStructBegin();
8084
      while (true)
8085
      {
8086
        field = iprot.readFieldBegin();
3430 rajveer 8087
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8088
          break;
8089
        }
3430 rajveer 8090
        switch (field.id) {
8091
          default:
8092
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8093
        }
3430 rajveer 8094
        iprot.readFieldEnd();
3087 mandeep.dh 8095
      }
8096
      iprot.readStructEnd();
8097
      validate();
8098
    }
8099
 
3430 rajveer 8100
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8101
      oprot.writeStructBegin(STRUCT_DESC);
8102
 
8103
      oprot.writeFieldStop();
8104
      oprot.writeStructEnd();
8105
    }
8106
 
8107
    @Override
8108
    public String toString() {
8109
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
8110
      boolean first = true;
8111
 
8112
      sb.append(")");
8113
      return sb.toString();
8114
    }
8115
 
3430 rajveer 8116
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8117
      // check for required fields
8118
    }
8119
 
3430 rajveer 8120
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8121
      try {
8122
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8123
      } catch (org.apache.thrift.TException te) {
8124
        throw new java.io.IOException(te);
8125
      }
8126
    }
8127
 
8128
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8129
      try {
8130
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8131
      } catch (org.apache.thrift.TException te) {
8132
        throw new java.io.IOException(te);
8133
      }
8134
    }
8135
 
3087 mandeep.dh 8136
  }
8137
 
3430 rajveer 8138
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
8139
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
3087 mandeep.dh 8140
 
3430 rajveer 8141
    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 8142
 
3430 rajveer 8143
    private String agentEmailId; // required
3087 mandeep.dh 8144
 
8145
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8146
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8147
      AGENT_EMAIL_ID((short)1, "agentEmailId");
8148
 
8149
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8150
 
8151
      static {
8152
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8153
          byName.put(field.getFieldName(), field);
8154
        }
8155
      }
8156
 
8157
      /**
8158
       * Find the _Fields constant that matches fieldId, or null if its not found.
8159
       */
8160
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8161
        switch(fieldId) {
8162
          case 1: // AGENT_EMAIL_ID
8163
            return AGENT_EMAIL_ID;
8164
          default:
8165
            return null;
8166
        }
3087 mandeep.dh 8167
      }
8168
 
8169
      /**
8170
       * Find the _Fields constant that matches fieldId, throwing an exception
8171
       * if it is not found.
8172
       */
8173
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8174
        _Fields fields = findByThriftId(fieldId);
8175
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8176
        return fields;
8177
      }
8178
 
8179
      /**
8180
       * Find the _Fields constant that matches name, or null if its not found.
8181
       */
8182
      public static _Fields findByName(String name) {
8183
        return byName.get(name);
8184
      }
8185
 
8186
      private final short _thriftId;
8187
      private final String _fieldName;
8188
 
8189
      _Fields(short thriftId, String fieldName) {
8190
        _thriftId = thriftId;
8191
        _fieldName = fieldName;
8192
      }
8193
 
8194
      public short getThriftFieldId() {
8195
        return _thriftId;
8196
      }
8197
 
8198
      public String getFieldName() {
8199
        return _fieldName;
8200
      }
8201
    }
8202
 
8203
    // isset id assignments
8204
 
3430 rajveer 8205
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8206
    static {
3430 rajveer 8207
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8208
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8209
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8210
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8211
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
3087 mandeep.dh 8212
    }
8213
 
8214
    public getRoleNamesForAgent_args() {
8215
    }
8216
 
8217
    public getRoleNamesForAgent_args(
8218
      String agentEmailId)
8219
    {
8220
      this();
8221
      this.agentEmailId = agentEmailId;
8222
    }
8223
 
8224
    /**
8225
     * Performs a deep copy on <i>other</i>.
8226
     */
8227
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
8228
      if (other.isSetAgentEmailId()) {
8229
        this.agentEmailId = other.agentEmailId;
8230
      }
8231
    }
8232
 
8233
    public getRoleNamesForAgent_args deepCopy() {
8234
      return new getRoleNamesForAgent_args(this);
8235
    }
8236
 
3430 rajveer 8237
    @Override
8238
    public void clear() {
8239
      this.agentEmailId = null;
3087 mandeep.dh 8240
    }
8241
 
8242
    public String getAgentEmailId() {
8243
      return this.agentEmailId;
8244
    }
8245
 
3430 rajveer 8246
    public void setAgentEmailId(String agentEmailId) {
3087 mandeep.dh 8247
      this.agentEmailId = agentEmailId;
8248
    }
8249
 
8250
    public void unsetAgentEmailId() {
8251
      this.agentEmailId = null;
8252
    }
8253
 
3430 rajveer 8254
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8255
    public boolean isSetAgentEmailId() {
8256
      return this.agentEmailId != null;
8257
    }
8258
 
8259
    public void setAgentEmailIdIsSet(boolean value) {
8260
      if (!value) {
8261
        this.agentEmailId = null;
8262
      }
8263
    }
8264
 
8265
    public void setFieldValue(_Fields field, Object value) {
8266
      switch (field) {
8267
      case AGENT_EMAIL_ID:
8268
        if (value == null) {
8269
          unsetAgentEmailId();
8270
        } else {
8271
          setAgentEmailId((String)value);
8272
        }
8273
        break;
8274
 
8275
      }
8276
    }
8277
 
8278
    public Object getFieldValue(_Fields field) {
8279
      switch (field) {
8280
      case AGENT_EMAIL_ID:
8281
        return getAgentEmailId();
8282
 
8283
      }
8284
      throw new IllegalStateException();
8285
    }
8286
 
3430 rajveer 8287
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8288
    public boolean isSet(_Fields field) {
8289
      if (field == null) {
8290
        throw new IllegalArgumentException();
8291
      }
3087 mandeep.dh 8292
 
8293
      switch (field) {
8294
      case AGENT_EMAIL_ID:
8295
        return isSetAgentEmailId();
8296
      }
8297
      throw new IllegalStateException();
8298
    }
8299
 
8300
    @Override
8301
    public boolean equals(Object that) {
8302
      if (that == null)
8303
        return false;
8304
      if (that instanceof getRoleNamesForAgent_args)
8305
        return this.equals((getRoleNamesForAgent_args)that);
8306
      return false;
8307
    }
8308
 
8309
    public boolean equals(getRoleNamesForAgent_args that) {
8310
      if (that == null)
8311
        return false;
8312
 
8313
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
8314
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
8315
      if (this_present_agentEmailId || that_present_agentEmailId) {
8316
        if (!(this_present_agentEmailId && that_present_agentEmailId))
8317
          return false;
8318
        if (!this.agentEmailId.equals(that.agentEmailId))
8319
          return false;
8320
      }
8321
 
8322
      return true;
8323
    }
8324
 
8325
    @Override
8326
    public int hashCode() {
8327
      return 0;
8328
    }
8329
 
8330
    public int compareTo(getRoleNamesForAgent_args other) {
8331
      if (!getClass().equals(other.getClass())) {
8332
        return getClass().getName().compareTo(other.getClass().getName());
8333
      }
8334
 
8335
      int lastComparison = 0;
8336
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
8337
 
3430 rajveer 8338
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
3087 mandeep.dh 8339
      if (lastComparison != 0) {
8340
        return lastComparison;
8341
      }
3430 rajveer 8342
      if (isSetAgentEmailId()) {
8343
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
8344
        if (lastComparison != 0) {
8345
          return lastComparison;
8346
        }
3087 mandeep.dh 8347
      }
8348
      return 0;
8349
    }
8350
 
3430 rajveer 8351
    public _Fields fieldForId(int fieldId) {
8352
      return _Fields.findByThriftId(fieldId);
8353
    }
8354
 
8355
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8356
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8357
      iprot.readStructBegin();
8358
      while (true)
8359
      {
8360
        field = iprot.readFieldBegin();
3430 rajveer 8361
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8362
          break;
8363
        }
3430 rajveer 8364
        switch (field.id) {
8365
          case 1: // AGENT_EMAIL_ID
8366
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8367
              this.agentEmailId = iprot.readString();
8368
            } else { 
8369
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8370
            }
8371
            break;
8372
          default:
8373
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8374
        }
3430 rajveer 8375
        iprot.readFieldEnd();
3087 mandeep.dh 8376
      }
8377
      iprot.readStructEnd();
8378
      validate();
8379
    }
8380
 
3430 rajveer 8381
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8382
      validate();
8383
 
8384
      oprot.writeStructBegin(STRUCT_DESC);
8385
      if (this.agentEmailId != null) {
8386
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
8387
        oprot.writeString(this.agentEmailId);
8388
        oprot.writeFieldEnd();
8389
      }
8390
      oprot.writeFieldStop();
8391
      oprot.writeStructEnd();
8392
    }
8393
 
8394
    @Override
8395
    public String toString() {
8396
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
8397
      boolean first = true;
8398
 
8399
      sb.append("agentEmailId:");
8400
      if (this.agentEmailId == null) {
8401
        sb.append("null");
8402
      } else {
8403
        sb.append(this.agentEmailId);
8404
      }
8405
      first = false;
8406
      sb.append(")");
8407
      return sb.toString();
8408
    }
8409
 
3430 rajveer 8410
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8411
      // check for required fields
8412
    }
8413
 
3430 rajveer 8414
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8415
      try {
8416
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8417
      } catch (org.apache.thrift.TException te) {
8418
        throw new java.io.IOException(te);
8419
      }
8420
    }
8421
 
8422
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8423
      try {
8424
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8425
      } catch (org.apache.thrift.TException te) {
8426
        throw new java.io.IOException(te);
8427
      }
8428
    }
8429
 
3087 mandeep.dh 8430
  }
8431
 
3430 rajveer 8432
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
8433
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
3087 mandeep.dh 8434
 
3430 rajveer 8435
    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 8436
 
3430 rajveer 8437
    private List<String> success; // required
3087 mandeep.dh 8438
 
8439
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8440
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8441
      SUCCESS((short)0, "success");
8442
 
8443
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8444
 
8445
      static {
8446
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8447
          byName.put(field.getFieldName(), field);
8448
        }
8449
      }
8450
 
8451
      /**
8452
       * Find the _Fields constant that matches fieldId, or null if its not found.
8453
       */
8454
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8455
        switch(fieldId) {
8456
          case 0: // SUCCESS
8457
            return SUCCESS;
8458
          default:
8459
            return null;
8460
        }
3087 mandeep.dh 8461
      }
8462
 
8463
      /**
8464
       * Find the _Fields constant that matches fieldId, throwing an exception
8465
       * if it is not found.
8466
       */
8467
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8468
        _Fields fields = findByThriftId(fieldId);
8469
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8470
        return fields;
8471
      }
8472
 
8473
      /**
8474
       * Find the _Fields constant that matches name, or null if its not found.
8475
       */
8476
      public static _Fields findByName(String name) {
8477
        return byName.get(name);
8478
      }
8479
 
8480
      private final short _thriftId;
8481
      private final String _fieldName;
8482
 
8483
      _Fields(short thriftId, String fieldName) {
8484
        _thriftId = thriftId;
8485
        _fieldName = fieldName;
8486
      }
8487
 
8488
      public short getThriftFieldId() {
8489
        return _thriftId;
8490
      }
8491
 
8492
      public String getFieldName() {
8493
        return _fieldName;
8494
      }
8495
    }
8496
 
8497
    // isset id assignments
8498
 
3430 rajveer 8499
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8500
    static {
3430 rajveer 8501
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8502
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8503
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8504
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8505
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8506
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
3087 mandeep.dh 8507
    }
8508
 
8509
    public getRoleNamesForAgent_result() {
8510
    }
8511
 
8512
    public getRoleNamesForAgent_result(
8513
      List<String> success)
8514
    {
8515
      this();
8516
      this.success = success;
8517
    }
8518
 
8519
    /**
8520
     * Performs a deep copy on <i>other</i>.
8521
     */
8522
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
8523
      if (other.isSetSuccess()) {
8524
        List<String> __this__success = new ArrayList<String>();
8525
        for (String other_element : other.success) {
8526
          __this__success.add(other_element);
8527
        }
8528
        this.success = __this__success;
8529
      }
8530
    }
8531
 
8532
    public getRoleNamesForAgent_result deepCopy() {
8533
      return new getRoleNamesForAgent_result(this);
8534
    }
8535
 
3430 rajveer 8536
    @Override
8537
    public void clear() {
8538
      this.success = null;
3087 mandeep.dh 8539
    }
8540
 
8541
    public int getSuccessSize() {
8542
      return (this.success == null) ? 0 : this.success.size();
8543
    }
8544
 
8545
    public java.util.Iterator<String> getSuccessIterator() {
8546
      return (this.success == null) ? null : this.success.iterator();
8547
    }
8548
 
8549
    public void addToSuccess(String elem) {
8550
      if (this.success == null) {
8551
        this.success = new ArrayList<String>();
8552
      }
8553
      this.success.add(elem);
8554
    }
8555
 
8556
    public List<String> getSuccess() {
8557
      return this.success;
8558
    }
8559
 
3430 rajveer 8560
    public void setSuccess(List<String> success) {
3087 mandeep.dh 8561
      this.success = success;
8562
    }
8563
 
8564
    public void unsetSuccess() {
8565
      this.success = null;
8566
    }
8567
 
3430 rajveer 8568
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8569
    public boolean isSetSuccess() {
8570
      return this.success != null;
8571
    }
8572
 
8573
    public void setSuccessIsSet(boolean value) {
8574
      if (!value) {
8575
        this.success = null;
8576
      }
8577
    }
8578
 
8579
    public void setFieldValue(_Fields field, Object value) {
8580
      switch (field) {
8581
      case SUCCESS:
8582
        if (value == null) {
8583
          unsetSuccess();
8584
        } else {
8585
          setSuccess((List<String>)value);
8586
        }
8587
        break;
8588
 
8589
      }
8590
    }
8591
 
8592
    public Object getFieldValue(_Fields field) {
8593
      switch (field) {
8594
      case SUCCESS:
8595
        return getSuccess();
8596
 
8597
      }
8598
      throw new IllegalStateException();
8599
    }
8600
 
3430 rajveer 8601
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8602
    public boolean isSet(_Fields field) {
8603
      if (field == null) {
8604
        throw new IllegalArgumentException();
8605
      }
3087 mandeep.dh 8606
 
8607
      switch (field) {
8608
      case SUCCESS:
8609
        return isSetSuccess();
8610
      }
8611
      throw new IllegalStateException();
8612
    }
8613
 
8614
    @Override
8615
    public boolean equals(Object that) {
8616
      if (that == null)
8617
        return false;
8618
      if (that instanceof getRoleNamesForAgent_result)
8619
        return this.equals((getRoleNamesForAgent_result)that);
8620
      return false;
8621
    }
8622
 
8623
    public boolean equals(getRoleNamesForAgent_result that) {
8624
      if (that == null)
8625
        return false;
8626
 
8627
      boolean this_present_success = true && this.isSetSuccess();
8628
      boolean that_present_success = true && that.isSetSuccess();
8629
      if (this_present_success || that_present_success) {
8630
        if (!(this_present_success && that_present_success))
8631
          return false;
8632
        if (!this.success.equals(that.success))
8633
          return false;
8634
      }
8635
 
8636
      return true;
8637
    }
8638
 
8639
    @Override
8640
    public int hashCode() {
8641
      return 0;
8642
    }
8643
 
8644
    public int compareTo(getRoleNamesForAgent_result other) {
8645
      if (!getClass().equals(other.getClass())) {
8646
        return getClass().getName().compareTo(other.getClass().getName());
8647
      }
8648
 
8649
      int lastComparison = 0;
8650
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
8651
 
3430 rajveer 8652
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 8653
      if (lastComparison != 0) {
8654
        return lastComparison;
8655
      }
3430 rajveer 8656
      if (isSetSuccess()) {
8657
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8658
        if (lastComparison != 0) {
8659
          return lastComparison;
8660
        }
3087 mandeep.dh 8661
      }
8662
      return 0;
8663
    }
8664
 
3430 rajveer 8665
    public _Fields fieldForId(int fieldId) {
8666
      return _Fields.findByThriftId(fieldId);
8667
    }
8668
 
8669
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8670
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8671
      iprot.readStructBegin();
8672
      while (true)
8673
      {
8674
        field = iprot.readFieldBegin();
3430 rajveer 8675
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8676
          break;
8677
        }
3430 rajveer 8678
        switch (field.id) {
8679
          case 0: // SUCCESS
8680
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8681
              {
5287 amar.kumar 8682
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
8683
                this.success = new ArrayList<String>(_list32.size);
8684
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
3087 mandeep.dh 8685
                {
5287 amar.kumar 8686
                  String _elem34; // required
8687
                  _elem34 = iprot.readString();
8688
                  this.success.add(_elem34);
3087 mandeep.dh 8689
                }
3430 rajveer 8690
                iprot.readListEnd();
3087 mandeep.dh 8691
              }
3430 rajveer 8692
            } else { 
8693
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8694
            }
8695
            break;
8696
          default:
8697
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8698
        }
3430 rajveer 8699
        iprot.readFieldEnd();
3087 mandeep.dh 8700
      }
8701
      iprot.readStructEnd();
8702
      validate();
8703
    }
8704
 
3430 rajveer 8705
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8706
      oprot.writeStructBegin(STRUCT_DESC);
8707
 
8708
      if (this.isSetSuccess()) {
8709
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8710
        {
3430 rajveer 8711
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5287 amar.kumar 8712
          for (String _iter35 : this.success)
3087 mandeep.dh 8713
          {
5287 amar.kumar 8714
            oprot.writeString(_iter35);
3087 mandeep.dh 8715
          }
8716
          oprot.writeListEnd();
8717
        }
8718
        oprot.writeFieldEnd();
8719
      }
8720
      oprot.writeFieldStop();
8721
      oprot.writeStructEnd();
8722
    }
8723
 
8724
    @Override
8725
    public String toString() {
8726
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
8727
      boolean first = true;
8728
 
8729
      sb.append("success:");
8730
      if (this.success == null) {
8731
        sb.append("null");
8732
      } else {
8733
        sb.append(this.success);
8734
      }
8735
      first = false;
8736
      sb.append(")");
8737
      return sb.toString();
8738
    }
8739
 
3430 rajveer 8740
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8741
      // check for required fields
8742
    }
8743
 
3430 rajveer 8744
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8745
      try {
8746
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8747
      } catch (org.apache.thrift.TException te) {
8748
        throw new java.io.IOException(te);
8749
      }
8750
    }
8751
 
8752
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8753
      try {
8754
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8755
      } catch (org.apache.thrift.TException te) {
8756
        throw new java.io.IOException(te);
8757
      }
8758
    }
8759
 
3087 mandeep.dh 8760
  }
8761
 
3430 rajveer 8762
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
8763
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
3087 mandeep.dh 8764
 
3430 rajveer 8765
    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 8766
 
3430 rajveer 8767
    private String roleName; // required
3087 mandeep.dh 8768
 
8769
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8770
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8771
      ROLE_NAME((short)1, "roleName");
8772
 
8773
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8774
 
8775
      static {
8776
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8777
          byName.put(field.getFieldName(), field);
8778
        }
8779
      }
8780
 
8781
      /**
8782
       * Find the _Fields constant that matches fieldId, or null if its not found.
8783
       */
8784
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8785
        switch(fieldId) {
8786
          case 1: // ROLE_NAME
8787
            return ROLE_NAME;
8788
          default:
8789
            return null;
8790
        }
3087 mandeep.dh 8791
      }
8792
 
8793
      /**
8794
       * Find the _Fields constant that matches fieldId, throwing an exception
8795
       * if it is not found.
8796
       */
8797
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8798
        _Fields fields = findByThriftId(fieldId);
8799
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8800
        return fields;
8801
      }
8802
 
8803
      /**
8804
       * Find the _Fields constant that matches name, or null if its not found.
8805
       */
8806
      public static _Fields findByName(String name) {
8807
        return byName.get(name);
8808
      }
8809
 
8810
      private final short _thriftId;
8811
      private final String _fieldName;
8812
 
8813
      _Fields(short thriftId, String fieldName) {
8814
        _thriftId = thriftId;
8815
        _fieldName = fieldName;
8816
      }
8817
 
8818
      public short getThriftFieldId() {
8819
        return _thriftId;
8820
      }
8821
 
8822
      public String getFieldName() {
8823
        return _fieldName;
8824
      }
8825
    }
8826
 
8827
    // isset id assignments
8828
 
3430 rajveer 8829
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8830
    static {
3430 rajveer 8831
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8832
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8833
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8834
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8835
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
3087 mandeep.dh 8836
    }
8837
 
8838
    public getPermissionsForRoleName_args() {
8839
    }
8840
 
8841
    public getPermissionsForRoleName_args(
8842
      String roleName)
8843
    {
8844
      this();
8845
      this.roleName = roleName;
8846
    }
8847
 
8848
    /**
8849
     * Performs a deep copy on <i>other</i>.
8850
     */
8851
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
8852
      if (other.isSetRoleName()) {
8853
        this.roleName = other.roleName;
8854
      }
8855
    }
8856
 
8857
    public getPermissionsForRoleName_args deepCopy() {
8858
      return new getPermissionsForRoleName_args(this);
8859
    }
8860
 
3430 rajveer 8861
    @Override
8862
    public void clear() {
8863
      this.roleName = null;
3087 mandeep.dh 8864
    }
8865
 
8866
    public String getRoleName() {
8867
      return this.roleName;
8868
    }
8869
 
3430 rajveer 8870
    public void setRoleName(String roleName) {
3087 mandeep.dh 8871
      this.roleName = roleName;
8872
    }
8873
 
8874
    public void unsetRoleName() {
8875
      this.roleName = null;
8876
    }
8877
 
3430 rajveer 8878
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8879
    public boolean isSetRoleName() {
8880
      return this.roleName != null;
8881
    }
8882
 
8883
    public void setRoleNameIsSet(boolean value) {
8884
      if (!value) {
8885
        this.roleName = null;
8886
      }
8887
    }
8888
 
8889
    public void setFieldValue(_Fields field, Object value) {
8890
      switch (field) {
8891
      case ROLE_NAME:
8892
        if (value == null) {
8893
          unsetRoleName();
8894
        } else {
8895
          setRoleName((String)value);
8896
        }
8897
        break;
8898
 
8899
      }
8900
    }
8901
 
8902
    public Object getFieldValue(_Fields field) {
8903
      switch (field) {
8904
      case ROLE_NAME:
8905
        return getRoleName();
8906
 
8907
      }
8908
      throw new IllegalStateException();
8909
    }
8910
 
3430 rajveer 8911
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8912
    public boolean isSet(_Fields field) {
8913
      if (field == null) {
8914
        throw new IllegalArgumentException();
8915
      }
3087 mandeep.dh 8916
 
8917
      switch (field) {
8918
      case ROLE_NAME:
8919
        return isSetRoleName();
8920
      }
8921
      throw new IllegalStateException();
8922
    }
8923
 
8924
    @Override
8925
    public boolean equals(Object that) {
8926
      if (that == null)
8927
        return false;
8928
      if (that instanceof getPermissionsForRoleName_args)
8929
        return this.equals((getPermissionsForRoleName_args)that);
8930
      return false;
8931
    }
8932
 
8933
    public boolean equals(getPermissionsForRoleName_args that) {
8934
      if (that == null)
8935
        return false;
8936
 
8937
      boolean this_present_roleName = true && this.isSetRoleName();
8938
      boolean that_present_roleName = true && that.isSetRoleName();
8939
      if (this_present_roleName || that_present_roleName) {
8940
        if (!(this_present_roleName && that_present_roleName))
8941
          return false;
8942
        if (!this.roleName.equals(that.roleName))
8943
          return false;
8944
      }
8945
 
8946
      return true;
8947
    }
8948
 
8949
    @Override
8950
    public int hashCode() {
8951
      return 0;
8952
    }
8953
 
8954
    public int compareTo(getPermissionsForRoleName_args other) {
8955
      if (!getClass().equals(other.getClass())) {
8956
        return getClass().getName().compareTo(other.getClass().getName());
8957
      }
8958
 
8959
      int lastComparison = 0;
8960
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
8961
 
3430 rajveer 8962
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
3087 mandeep.dh 8963
      if (lastComparison != 0) {
8964
        return lastComparison;
8965
      }
3430 rajveer 8966
      if (isSetRoleName()) {
8967
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
8968
        if (lastComparison != 0) {
8969
          return lastComparison;
8970
        }
3087 mandeep.dh 8971
      }
8972
      return 0;
8973
    }
8974
 
3430 rajveer 8975
    public _Fields fieldForId(int fieldId) {
8976
      return _Fields.findByThriftId(fieldId);
8977
    }
8978
 
8979
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8980
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8981
      iprot.readStructBegin();
8982
      while (true)
8983
      {
8984
        field = iprot.readFieldBegin();
3430 rajveer 8985
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8986
          break;
8987
        }
3430 rajveer 8988
        switch (field.id) {
8989
          case 1: // ROLE_NAME
8990
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8991
              this.roleName = iprot.readString();
8992
            } else { 
8993
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8994
            }
8995
            break;
8996
          default:
8997
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8998
        }
3430 rajveer 8999
        iprot.readFieldEnd();
3087 mandeep.dh 9000
      }
9001
      iprot.readStructEnd();
9002
      validate();
9003
    }
9004
 
3430 rajveer 9005
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 9006
      validate();
9007
 
9008
      oprot.writeStructBegin(STRUCT_DESC);
9009
      if (this.roleName != null) {
9010
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
9011
        oprot.writeString(this.roleName);
9012
        oprot.writeFieldEnd();
9013
      }
9014
      oprot.writeFieldStop();
9015
      oprot.writeStructEnd();
9016
    }
9017
 
9018
    @Override
9019
    public String toString() {
9020
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
9021
      boolean first = true;
9022
 
9023
      sb.append("roleName:");
9024
      if (this.roleName == null) {
9025
        sb.append("null");
9026
      } else {
9027
        sb.append(this.roleName);
9028
      }
9029
      first = false;
9030
      sb.append(")");
9031
      return sb.toString();
9032
    }
9033
 
3430 rajveer 9034
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 9035
      // check for required fields
9036
    }
9037
 
3430 rajveer 9038
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9039
      try {
9040
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9041
      } catch (org.apache.thrift.TException te) {
9042
        throw new java.io.IOException(te);
9043
      }
9044
    }
9045
 
9046
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9047
      try {
9048
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9049
      } catch (org.apache.thrift.TException te) {
9050
        throw new java.io.IOException(te);
9051
      }
9052
    }
9053
 
3087 mandeep.dh 9054
  }
9055
 
3430 rajveer 9056
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
9057
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
3087 mandeep.dh 9058
 
3430 rajveer 9059
    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 9060
 
3430 rajveer 9061
    private List<String> success; // required
3087 mandeep.dh 9062
 
9063
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9064
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 9065
      SUCCESS((short)0, "success");
9066
 
9067
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9068
 
9069
      static {
9070
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9071
          byName.put(field.getFieldName(), field);
9072
        }
9073
      }
9074
 
9075
      /**
9076
       * Find the _Fields constant that matches fieldId, or null if its not found.
9077
       */
9078
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9079
        switch(fieldId) {
9080
          case 0: // SUCCESS
9081
            return SUCCESS;
9082
          default:
9083
            return null;
9084
        }
3087 mandeep.dh 9085
      }
9086
 
9087
      /**
9088
       * Find the _Fields constant that matches fieldId, throwing an exception
9089
       * if it is not found.
9090
       */
9091
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9092
        _Fields fields = findByThriftId(fieldId);
9093
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9094
        return fields;
9095
      }
9096
 
9097
      /**
9098
       * Find the _Fields constant that matches name, or null if its not found.
9099
       */
9100
      public static _Fields findByName(String name) {
9101
        return byName.get(name);
9102
      }
9103
 
9104
      private final short _thriftId;
9105
      private final String _fieldName;
9106
 
9107
      _Fields(short thriftId, String fieldName) {
9108
        _thriftId = thriftId;
9109
        _fieldName = fieldName;
9110
      }
9111
 
9112
      public short getThriftFieldId() {
9113
        return _thriftId;
9114
      }
9115
 
9116
      public String getFieldName() {
9117
        return _fieldName;
9118
      }
9119
    }
9120
 
9121
    // isset id assignments
9122
 
3430 rajveer 9123
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 9124
    static {
3430 rajveer 9125
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9126
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9127
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9128
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9129
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9130
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
3087 mandeep.dh 9131
    }
9132
 
9133
    public getPermissionsForRoleName_result() {
9134
    }
9135
 
9136
    public getPermissionsForRoleName_result(
9137
      List<String> success)
9138
    {
9139
      this();
9140
      this.success = success;
9141
    }
9142
 
9143
    /**
9144
     * Performs a deep copy on <i>other</i>.
9145
     */
9146
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
9147
      if (other.isSetSuccess()) {
9148
        List<String> __this__success = new ArrayList<String>();
9149
        for (String other_element : other.success) {
9150
          __this__success.add(other_element);
9151
        }
9152
        this.success = __this__success;
9153
      }
9154
    }
9155
 
9156
    public getPermissionsForRoleName_result deepCopy() {
9157
      return new getPermissionsForRoleName_result(this);
9158
    }
9159
 
3430 rajveer 9160
    @Override
9161
    public void clear() {
9162
      this.success = null;
3087 mandeep.dh 9163
    }
9164
 
9165
    public int getSuccessSize() {
9166
      return (this.success == null) ? 0 : this.success.size();
9167
    }
9168
 
9169
    public java.util.Iterator<String> getSuccessIterator() {
9170
      return (this.success == null) ? null : this.success.iterator();
9171
    }
9172
 
9173
    public void addToSuccess(String elem) {
9174
      if (this.success == null) {
9175
        this.success = new ArrayList<String>();
9176
      }
9177
      this.success.add(elem);
9178
    }
9179
 
9180
    public List<String> getSuccess() {
9181
      return this.success;
9182
    }
9183
 
3430 rajveer 9184
    public void setSuccess(List<String> success) {
3087 mandeep.dh 9185
      this.success = success;
9186
    }
9187
 
9188
    public void unsetSuccess() {
9189
      this.success = null;
9190
    }
9191
 
3430 rajveer 9192
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 9193
    public boolean isSetSuccess() {
9194
      return this.success != null;
9195
    }
9196
 
9197
    public void setSuccessIsSet(boolean value) {
9198
      if (!value) {
9199
        this.success = null;
9200
      }
9201
    }
9202
 
9203
    public void setFieldValue(_Fields field, Object value) {
9204
      switch (field) {
9205
      case SUCCESS:
9206
        if (value == null) {
9207
          unsetSuccess();
9208
        } else {
9209
          setSuccess((List<String>)value);
9210
        }
9211
        break;
9212
 
9213
      }
9214
    }
9215
 
9216
    public Object getFieldValue(_Fields field) {
9217
      switch (field) {
9218
      case SUCCESS:
9219
        return getSuccess();
9220
 
9221
      }
9222
      throw new IllegalStateException();
9223
    }
9224
 
3430 rajveer 9225
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9226
    public boolean isSet(_Fields field) {
9227
      if (field == null) {
9228
        throw new IllegalArgumentException();
9229
      }
3087 mandeep.dh 9230
 
9231
      switch (field) {
9232
      case SUCCESS:
9233
        return isSetSuccess();
9234
      }
9235
      throw new IllegalStateException();
9236
    }
9237
 
9238
    @Override
9239
    public boolean equals(Object that) {
9240
      if (that == null)
9241
        return false;
9242
      if (that instanceof getPermissionsForRoleName_result)
9243
        return this.equals((getPermissionsForRoleName_result)that);
9244
      return false;
9245
    }
9246
 
9247
    public boolean equals(getPermissionsForRoleName_result that) {
9248
      if (that == null)
9249
        return false;
9250
 
9251
      boolean this_present_success = true && this.isSetSuccess();
9252
      boolean that_present_success = true && that.isSetSuccess();
9253
      if (this_present_success || that_present_success) {
9254
        if (!(this_present_success && that_present_success))
9255
          return false;
9256
        if (!this.success.equals(that.success))
9257
          return false;
9258
      }
9259
 
9260
      return true;
9261
    }
9262
 
9263
    @Override
9264
    public int hashCode() {
9265
      return 0;
9266
    }
9267
 
9268
    public int compareTo(getPermissionsForRoleName_result other) {
9269
      if (!getClass().equals(other.getClass())) {
9270
        return getClass().getName().compareTo(other.getClass().getName());
9271
      }
9272
 
9273
      int lastComparison = 0;
9274
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
9275
 
3430 rajveer 9276
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 9277
      if (lastComparison != 0) {
9278
        return lastComparison;
9279
      }
3430 rajveer 9280
      if (isSetSuccess()) {
9281
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9282
        if (lastComparison != 0) {
9283
          return lastComparison;
9284
        }
3087 mandeep.dh 9285
      }
9286
      return 0;
9287
    }
9288
 
3430 rajveer 9289
    public _Fields fieldForId(int fieldId) {
9290
      return _Fields.findByThriftId(fieldId);
9291
    }
9292
 
9293
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9294
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 9295
      iprot.readStructBegin();
9296
      while (true)
9297
      {
9298
        field = iprot.readFieldBegin();
3430 rajveer 9299
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 9300
          break;
9301
        }
3430 rajveer 9302
        switch (field.id) {
9303
          case 0: // SUCCESS
9304
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9305
              {
5287 amar.kumar 9306
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
9307
                this.success = new ArrayList<String>(_list36.size);
9308
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
3087 mandeep.dh 9309
                {
5287 amar.kumar 9310
                  String _elem38; // required
9311
                  _elem38 = iprot.readString();
9312
                  this.success.add(_elem38);
3087 mandeep.dh 9313
                }
3430 rajveer 9314
                iprot.readListEnd();
3087 mandeep.dh 9315
              }
3430 rajveer 9316
            } else { 
9317
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9318
            }
9319
            break;
9320
          default:
9321
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 9322
        }
3430 rajveer 9323
        iprot.readFieldEnd();
3087 mandeep.dh 9324
      }
9325
      iprot.readStructEnd();
9326
      validate();
9327
    }
9328
 
3430 rajveer 9329
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 9330
      oprot.writeStructBegin(STRUCT_DESC);
9331
 
9332
      if (this.isSetSuccess()) {
9333
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9334
        {
3430 rajveer 9335
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5287 amar.kumar 9336
          for (String _iter39 : this.success)
3087 mandeep.dh 9337
          {
5287 amar.kumar 9338
            oprot.writeString(_iter39);
3087 mandeep.dh 9339
          }
9340
          oprot.writeListEnd();
9341
        }
9342
        oprot.writeFieldEnd();
9343
      }
9344
      oprot.writeFieldStop();
9345
      oprot.writeStructEnd();
9346
    }
9347
 
9348
    @Override
9349
    public String toString() {
9350
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
9351
      boolean first = true;
9352
 
9353
      sb.append("success:");
9354
      if (this.success == null) {
9355
        sb.append("null");
9356
      } else {
9357
        sb.append(this.success);
9358
      }
9359
      first = false;
9360
      sb.append(")");
9361
      return sb.toString();
9362
    }
9363
 
3430 rajveer 9364
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 9365
      // check for required fields
9366
    }
9367
 
3430 rajveer 9368
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9369
      try {
9370
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9371
      } catch (org.apache.thrift.TException te) {
9372
        throw new java.io.IOException(te);
9373
      }
9374
    }
9375
 
9376
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9377
      try {
9378
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9379
      } catch (org.apache.thrift.TException te) {
9380
        throw new java.io.IOException(te);
9381
      }
9382
    }
9383
 
3087 mandeep.dh 9384
  }
9385
 
3430 rajveer 9386
  public static class getLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_args, getLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
9387
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_args");
3339 mandeep.dh 9388
 
9389
 
9390
 
9391
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9392
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9393
;
9394
 
9395
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9396
 
9397
      static {
9398
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9399
          byName.put(field.getFieldName(), field);
9400
        }
9401
      }
9402
 
9403
      /**
9404
       * Find the _Fields constant that matches fieldId, or null if its not found.
9405
       */
9406
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9407
        switch(fieldId) {
9408
          default:
9409
            return null;
9410
        }
3339 mandeep.dh 9411
      }
9412
 
9413
      /**
9414
       * Find the _Fields constant that matches fieldId, throwing an exception
9415
       * if it is not found.
9416
       */
9417
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9418
        _Fields fields = findByThriftId(fieldId);
9419
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9420
        return fields;
9421
      }
9422
 
9423
      /**
9424
       * Find the _Fields constant that matches name, or null if its not found.
9425
       */
9426
      public static _Fields findByName(String name) {
9427
        return byName.get(name);
9428
      }
9429
 
9430
      private final short _thriftId;
9431
      private final String _fieldName;
9432
 
9433
      _Fields(short thriftId, String fieldName) {
9434
        _thriftId = thriftId;
9435
        _fieldName = fieldName;
9436
      }
9437
 
9438
      public short getThriftFieldId() {
9439
        return _thriftId;
9440
      }
9441
 
9442
      public String getFieldName() {
9443
        return _fieldName;
9444
      }
9445
    }
3430 rajveer 9446
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9447
    static {
3430 rajveer 9448
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9449
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9450
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_args.class, metaDataMap);
3339 mandeep.dh 9451
    }
9452
 
9453
    public getLastEmailProcessedTimestamp_args() {
9454
    }
9455
 
9456
    /**
9457
     * Performs a deep copy on <i>other</i>.
9458
     */
9459
    public getLastEmailProcessedTimestamp_args(getLastEmailProcessedTimestamp_args other) {
9460
    }
9461
 
9462
    public getLastEmailProcessedTimestamp_args deepCopy() {
9463
      return new getLastEmailProcessedTimestamp_args(this);
9464
    }
9465
 
3430 rajveer 9466
    @Override
9467
    public void clear() {
3339 mandeep.dh 9468
    }
9469
 
9470
    public void setFieldValue(_Fields field, Object value) {
9471
      switch (field) {
9472
      }
9473
    }
9474
 
9475
    public Object getFieldValue(_Fields field) {
9476
      switch (field) {
9477
      }
9478
      throw new IllegalStateException();
9479
    }
9480
 
3430 rajveer 9481
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9482
    public boolean isSet(_Fields field) {
9483
      if (field == null) {
9484
        throw new IllegalArgumentException();
9485
      }
3339 mandeep.dh 9486
 
9487
      switch (field) {
9488
      }
9489
      throw new IllegalStateException();
9490
    }
9491
 
9492
    @Override
9493
    public boolean equals(Object that) {
9494
      if (that == null)
9495
        return false;
9496
      if (that instanceof getLastEmailProcessedTimestamp_args)
9497
        return this.equals((getLastEmailProcessedTimestamp_args)that);
9498
      return false;
9499
    }
9500
 
9501
    public boolean equals(getLastEmailProcessedTimestamp_args that) {
9502
      if (that == null)
9503
        return false;
9504
 
9505
      return true;
9506
    }
9507
 
9508
    @Override
9509
    public int hashCode() {
9510
      return 0;
9511
    }
9512
 
9513
    public int compareTo(getLastEmailProcessedTimestamp_args other) {
9514
      if (!getClass().equals(other.getClass())) {
9515
        return getClass().getName().compareTo(other.getClass().getName());
9516
      }
9517
 
9518
      int lastComparison = 0;
9519
      getLastEmailProcessedTimestamp_args typedOther = (getLastEmailProcessedTimestamp_args)other;
9520
 
9521
      return 0;
9522
    }
9523
 
3430 rajveer 9524
    public _Fields fieldForId(int fieldId) {
9525
      return _Fields.findByThriftId(fieldId);
9526
    }
9527
 
9528
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9529
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 9530
      iprot.readStructBegin();
9531
      while (true)
9532
      {
9533
        field = iprot.readFieldBegin();
3430 rajveer 9534
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 9535
          break;
9536
        }
3430 rajveer 9537
        switch (field.id) {
9538
          default:
9539
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 9540
        }
3430 rajveer 9541
        iprot.readFieldEnd();
3339 mandeep.dh 9542
      }
9543
      iprot.readStructEnd();
9544
      validate();
9545
    }
9546
 
3430 rajveer 9547
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 9548
      validate();
9549
 
9550
      oprot.writeStructBegin(STRUCT_DESC);
9551
      oprot.writeFieldStop();
9552
      oprot.writeStructEnd();
9553
    }
9554
 
9555
    @Override
9556
    public String toString() {
9557
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_args(");
9558
      boolean first = true;
9559
 
9560
      sb.append(")");
9561
      return sb.toString();
9562
    }
9563
 
3430 rajveer 9564
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 9565
      // check for required fields
9566
    }
9567
 
3430 rajveer 9568
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9569
      try {
9570
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9571
      } catch (org.apache.thrift.TException te) {
9572
        throw new java.io.IOException(te);
9573
      }
9574
    }
9575
 
9576
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9577
      try {
9578
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9579
      } catch (org.apache.thrift.TException te) {
9580
        throw new java.io.IOException(te);
9581
      }
9582
    }
9583
 
3339 mandeep.dh 9584
  }
9585
 
3430 rajveer 9586
  public static class getLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_result, getLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
9587
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_result");
3339 mandeep.dh 9588
 
3430 rajveer 9589
    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 9590
 
3430 rajveer 9591
    private long success; // required
3339 mandeep.dh 9592
 
9593
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9594
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9595
      SUCCESS((short)0, "success");
9596
 
9597
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9598
 
9599
      static {
9600
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9601
          byName.put(field.getFieldName(), field);
9602
        }
9603
      }
9604
 
9605
      /**
9606
       * Find the _Fields constant that matches fieldId, or null if its not found.
9607
       */
9608
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9609
        switch(fieldId) {
9610
          case 0: // SUCCESS
9611
            return SUCCESS;
9612
          default:
9613
            return null;
9614
        }
3339 mandeep.dh 9615
      }
9616
 
9617
      /**
9618
       * Find the _Fields constant that matches fieldId, throwing an exception
9619
       * if it is not found.
9620
       */
9621
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9622
        _Fields fields = findByThriftId(fieldId);
9623
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9624
        return fields;
9625
      }
9626
 
9627
      /**
9628
       * Find the _Fields constant that matches name, or null if its not found.
9629
       */
9630
      public static _Fields findByName(String name) {
9631
        return byName.get(name);
9632
      }
9633
 
9634
      private final short _thriftId;
9635
      private final String _fieldName;
9636
 
9637
      _Fields(short thriftId, String fieldName) {
9638
        _thriftId = thriftId;
9639
        _fieldName = fieldName;
9640
      }
9641
 
9642
      public short getThriftFieldId() {
9643
        return _thriftId;
9644
      }
9645
 
9646
      public String getFieldName() {
9647
        return _fieldName;
9648
      }
9649
    }
9650
 
9651
    // isset id assignments
9652
    private static final int __SUCCESS_ISSET_ID = 0;
9653
    private BitSet __isset_bit_vector = new BitSet(1);
9654
 
3430 rajveer 9655
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9656
    static {
3430 rajveer 9657
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9658
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9659
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9660
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9661
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_result.class, metaDataMap);
3339 mandeep.dh 9662
    }
9663
 
9664
    public getLastEmailProcessedTimestamp_result() {
9665
    }
9666
 
9667
    public getLastEmailProcessedTimestamp_result(
9668
      long success)
9669
    {
9670
      this();
9671
      this.success = success;
9672
      setSuccessIsSet(true);
9673
    }
9674
 
9675
    /**
9676
     * Performs a deep copy on <i>other</i>.
9677
     */
9678
    public getLastEmailProcessedTimestamp_result(getLastEmailProcessedTimestamp_result other) {
9679
      __isset_bit_vector.clear();
9680
      __isset_bit_vector.or(other.__isset_bit_vector);
9681
      this.success = other.success;
9682
    }
9683
 
9684
    public getLastEmailProcessedTimestamp_result deepCopy() {
9685
      return new getLastEmailProcessedTimestamp_result(this);
9686
    }
9687
 
3430 rajveer 9688
    @Override
9689
    public void clear() {
9690
      setSuccessIsSet(false);
9691
      this.success = 0;
3339 mandeep.dh 9692
    }
9693
 
9694
    public long getSuccess() {
9695
      return this.success;
9696
    }
9697
 
3430 rajveer 9698
    public void setSuccess(long success) {
3339 mandeep.dh 9699
      this.success = success;
9700
      setSuccessIsSet(true);
9701
    }
9702
 
9703
    public void unsetSuccess() {
9704
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9705
    }
9706
 
3430 rajveer 9707
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3339 mandeep.dh 9708
    public boolean isSetSuccess() {
9709
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9710
    }
9711
 
9712
    public void setSuccessIsSet(boolean value) {
9713
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9714
    }
9715
 
9716
    public void setFieldValue(_Fields field, Object value) {
9717
      switch (field) {
9718
      case SUCCESS:
9719
        if (value == null) {
9720
          unsetSuccess();
9721
        } else {
9722
          setSuccess((Long)value);
9723
        }
9724
        break;
9725
 
9726
      }
9727
    }
9728
 
9729
    public Object getFieldValue(_Fields field) {
9730
      switch (field) {
9731
      case SUCCESS:
3430 rajveer 9732
        return Long.valueOf(getSuccess());
3339 mandeep.dh 9733
 
9734
      }
9735
      throw new IllegalStateException();
9736
    }
9737
 
3430 rajveer 9738
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9739
    public boolean isSet(_Fields field) {
9740
      if (field == null) {
9741
        throw new IllegalArgumentException();
9742
      }
3339 mandeep.dh 9743
 
9744
      switch (field) {
9745
      case SUCCESS:
9746
        return isSetSuccess();
9747
      }
9748
      throw new IllegalStateException();
9749
    }
9750
 
9751
    @Override
9752
    public boolean equals(Object that) {
9753
      if (that == null)
9754
        return false;
9755
      if (that instanceof getLastEmailProcessedTimestamp_result)
9756
        return this.equals((getLastEmailProcessedTimestamp_result)that);
9757
      return false;
9758
    }
9759
 
9760
    public boolean equals(getLastEmailProcessedTimestamp_result that) {
9761
      if (that == null)
9762
        return false;
9763
 
9764
      boolean this_present_success = true;
9765
      boolean that_present_success = true;
9766
      if (this_present_success || that_present_success) {
9767
        if (!(this_present_success && that_present_success))
9768
          return false;
9769
        if (this.success != that.success)
9770
          return false;
9771
      }
9772
 
9773
      return true;
9774
    }
9775
 
9776
    @Override
9777
    public int hashCode() {
9778
      return 0;
9779
    }
9780
 
9781
    public int compareTo(getLastEmailProcessedTimestamp_result other) {
9782
      if (!getClass().equals(other.getClass())) {
9783
        return getClass().getName().compareTo(other.getClass().getName());
9784
      }
9785
 
9786
      int lastComparison = 0;
9787
      getLastEmailProcessedTimestamp_result typedOther = (getLastEmailProcessedTimestamp_result)other;
9788
 
3430 rajveer 9789
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3339 mandeep.dh 9790
      if (lastComparison != 0) {
9791
        return lastComparison;
9792
      }
3430 rajveer 9793
      if (isSetSuccess()) {
9794
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9795
        if (lastComparison != 0) {
9796
          return lastComparison;
9797
        }
3339 mandeep.dh 9798
      }
9799
      return 0;
9800
    }
9801
 
3430 rajveer 9802
    public _Fields fieldForId(int fieldId) {
9803
      return _Fields.findByThriftId(fieldId);
9804
    }
9805
 
9806
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9807
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 9808
      iprot.readStructBegin();
9809
      while (true)
9810
      {
9811
        field = iprot.readFieldBegin();
3430 rajveer 9812
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 9813
          break;
9814
        }
3430 rajveer 9815
        switch (field.id) {
9816
          case 0: // SUCCESS
9817
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9818
              this.success = iprot.readI64();
9819
              setSuccessIsSet(true);
9820
            } else { 
9821
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9822
            }
9823
            break;
9824
          default:
9825
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 9826
        }
3430 rajveer 9827
        iprot.readFieldEnd();
3339 mandeep.dh 9828
      }
9829
      iprot.readStructEnd();
9830
      validate();
9831
    }
9832
 
3430 rajveer 9833
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 9834
      oprot.writeStructBegin(STRUCT_DESC);
9835
 
9836
      if (this.isSetSuccess()) {
9837
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9838
        oprot.writeI64(this.success);
9839
        oprot.writeFieldEnd();
9840
      }
9841
      oprot.writeFieldStop();
9842
      oprot.writeStructEnd();
9843
    }
9844
 
9845
    @Override
9846
    public String toString() {
9847
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_result(");
9848
      boolean first = true;
9849
 
9850
      sb.append("success:");
9851
      sb.append(this.success);
9852
      first = false;
9853
      sb.append(")");
9854
      return sb.toString();
9855
    }
9856
 
3430 rajveer 9857
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 9858
      // check for required fields
9859
    }
9860
 
3430 rajveer 9861
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9862
      try {
9863
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9864
      } catch (org.apache.thrift.TException te) {
9865
        throw new java.io.IOException(te);
9866
      }
9867
    }
9868
 
9869
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9870
      try {
9871
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9872
      } catch (org.apache.thrift.TException te) {
9873
        throw new java.io.IOException(te);
9874
      }
9875
    }
9876
 
3339 mandeep.dh 9877
  }
9878
 
3430 rajveer 9879
  public static class updateLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_args, updateLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
9880
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_args");
3339 mandeep.dh 9881
 
3430 rajveer 9882
    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 9883
 
3430 rajveer 9884
    private long timestamp; // required
3339 mandeep.dh 9885
 
9886
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9887
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9888
      TIMESTAMP((short)1, "timestamp");
9889
 
9890
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9891
 
9892
      static {
9893
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9894
          byName.put(field.getFieldName(), field);
9895
        }
9896
      }
9897
 
9898
      /**
9899
       * Find the _Fields constant that matches fieldId, or null if its not found.
9900
       */
9901
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9902
        switch(fieldId) {
9903
          case 1: // TIMESTAMP
9904
            return TIMESTAMP;
9905
          default:
9906
            return null;
9907
        }
3339 mandeep.dh 9908
      }
9909
 
9910
      /**
9911
       * Find the _Fields constant that matches fieldId, throwing an exception
9912
       * if it is not found.
9913
       */
9914
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9915
        _Fields fields = findByThriftId(fieldId);
9916
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9917
        return fields;
9918
      }
9919
 
9920
      /**
9921
       * Find the _Fields constant that matches name, or null if its not found.
9922
       */
9923
      public static _Fields findByName(String name) {
9924
        return byName.get(name);
9925
      }
9926
 
9927
      private final short _thriftId;
9928
      private final String _fieldName;
9929
 
9930
      _Fields(short thriftId, String fieldName) {
9931
        _thriftId = thriftId;
9932
        _fieldName = fieldName;
9933
      }
9934
 
9935
      public short getThriftFieldId() {
9936
        return _thriftId;
9937
      }
9938
 
9939
      public String getFieldName() {
9940
        return _fieldName;
9941
      }
9942
    }
9943
 
9944
    // isset id assignments
9945
    private static final int __TIMESTAMP_ISSET_ID = 0;
9946
    private BitSet __isset_bit_vector = new BitSet(1);
9947
 
3430 rajveer 9948
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9949
    static {
3430 rajveer 9950
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9951
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9952
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9953
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9954
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_args.class, metaDataMap);
3339 mandeep.dh 9955
    }
9956
 
9957
    public updateLastEmailProcessedTimestamp_args() {
9958
    }
9959
 
9960
    public updateLastEmailProcessedTimestamp_args(
9961
      long timestamp)
9962
    {
9963
      this();
9964
      this.timestamp = timestamp;
9965
      setTimestampIsSet(true);
9966
    }
9967
 
9968
    /**
9969
     * Performs a deep copy on <i>other</i>.
9970
     */
9971
    public updateLastEmailProcessedTimestamp_args(updateLastEmailProcessedTimestamp_args other) {
9972
      __isset_bit_vector.clear();
9973
      __isset_bit_vector.or(other.__isset_bit_vector);
9974
      this.timestamp = other.timestamp;
9975
    }
9976
 
9977
    public updateLastEmailProcessedTimestamp_args deepCopy() {
9978
      return new updateLastEmailProcessedTimestamp_args(this);
9979
    }
9980
 
3430 rajveer 9981
    @Override
9982
    public void clear() {
9983
      setTimestampIsSet(false);
9984
      this.timestamp = 0;
3339 mandeep.dh 9985
    }
9986
 
9987
    public long getTimestamp() {
9988
      return this.timestamp;
9989
    }
9990
 
3430 rajveer 9991
    public void setTimestamp(long timestamp) {
3339 mandeep.dh 9992
      this.timestamp = timestamp;
9993
      setTimestampIsSet(true);
9994
    }
9995
 
9996
    public void unsetTimestamp() {
9997
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
9998
    }
9999
 
3430 rajveer 10000
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
3339 mandeep.dh 10001
    public boolean isSetTimestamp() {
10002
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
10003
    }
10004
 
10005
    public void setTimestampIsSet(boolean value) {
10006
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
10007
    }
10008
 
10009
    public void setFieldValue(_Fields field, Object value) {
10010
      switch (field) {
10011
      case TIMESTAMP:
10012
        if (value == null) {
10013
          unsetTimestamp();
10014
        } else {
10015
          setTimestamp((Long)value);
10016
        }
10017
        break;
10018
 
10019
      }
10020
    }
10021
 
10022
    public Object getFieldValue(_Fields field) {
10023
      switch (field) {
10024
      case TIMESTAMP:
3430 rajveer 10025
        return Long.valueOf(getTimestamp());
3339 mandeep.dh 10026
 
10027
      }
10028
      throw new IllegalStateException();
10029
    }
10030
 
3430 rajveer 10031
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10032
    public boolean isSet(_Fields field) {
10033
      if (field == null) {
10034
        throw new IllegalArgumentException();
10035
      }
3339 mandeep.dh 10036
 
10037
      switch (field) {
10038
      case TIMESTAMP:
10039
        return isSetTimestamp();
10040
      }
10041
      throw new IllegalStateException();
10042
    }
10043
 
10044
    @Override
10045
    public boolean equals(Object that) {
10046
      if (that == null)
10047
        return false;
10048
      if (that instanceof updateLastEmailProcessedTimestamp_args)
10049
        return this.equals((updateLastEmailProcessedTimestamp_args)that);
10050
      return false;
10051
    }
10052
 
10053
    public boolean equals(updateLastEmailProcessedTimestamp_args that) {
10054
      if (that == null)
10055
        return false;
10056
 
10057
      boolean this_present_timestamp = true;
10058
      boolean that_present_timestamp = true;
10059
      if (this_present_timestamp || that_present_timestamp) {
10060
        if (!(this_present_timestamp && that_present_timestamp))
10061
          return false;
10062
        if (this.timestamp != that.timestamp)
10063
          return false;
10064
      }
10065
 
10066
      return true;
10067
    }
10068
 
10069
    @Override
10070
    public int hashCode() {
10071
      return 0;
10072
    }
10073
 
10074
    public int compareTo(updateLastEmailProcessedTimestamp_args other) {
10075
      if (!getClass().equals(other.getClass())) {
10076
        return getClass().getName().compareTo(other.getClass().getName());
10077
      }
10078
 
10079
      int lastComparison = 0;
10080
      updateLastEmailProcessedTimestamp_args typedOther = (updateLastEmailProcessedTimestamp_args)other;
10081
 
3430 rajveer 10082
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
3339 mandeep.dh 10083
      if (lastComparison != 0) {
10084
        return lastComparison;
10085
      }
3430 rajveer 10086
      if (isSetTimestamp()) {
10087
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
10088
        if (lastComparison != 0) {
10089
          return lastComparison;
10090
        }
3339 mandeep.dh 10091
      }
10092
      return 0;
10093
    }
10094
 
3430 rajveer 10095
    public _Fields fieldForId(int fieldId) {
10096
      return _Fields.findByThriftId(fieldId);
10097
    }
10098
 
10099
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10100
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 10101
      iprot.readStructBegin();
10102
      while (true)
10103
      {
10104
        field = iprot.readFieldBegin();
3430 rajveer 10105
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 10106
          break;
10107
        }
3430 rajveer 10108
        switch (field.id) {
10109
          case 1: // TIMESTAMP
10110
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10111
              this.timestamp = iprot.readI64();
10112
              setTimestampIsSet(true);
10113
            } else { 
10114
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10115
            }
10116
            break;
10117
          default:
10118
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 10119
        }
3430 rajveer 10120
        iprot.readFieldEnd();
3339 mandeep.dh 10121
      }
10122
      iprot.readStructEnd();
10123
      validate();
10124
    }
10125
 
3430 rajveer 10126
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 10127
      validate();
10128
 
10129
      oprot.writeStructBegin(STRUCT_DESC);
10130
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
10131
      oprot.writeI64(this.timestamp);
10132
      oprot.writeFieldEnd();
10133
      oprot.writeFieldStop();
10134
      oprot.writeStructEnd();
10135
    }
10136
 
10137
    @Override
10138
    public String toString() {
10139
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_args(");
10140
      boolean first = true;
10141
 
10142
      sb.append("timestamp:");
10143
      sb.append(this.timestamp);
10144
      first = false;
10145
      sb.append(")");
10146
      return sb.toString();
10147
    }
10148
 
3430 rajveer 10149
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 10150
      // check for required fields
10151
    }
10152
 
3430 rajveer 10153
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10154
      try {
10155
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10156
      } catch (org.apache.thrift.TException te) {
10157
        throw new java.io.IOException(te);
10158
      }
10159
    }
10160
 
10161
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10162
      try {
10163
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10164
        __isset_bit_vector = new BitSet(1);
10165
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10166
      } catch (org.apache.thrift.TException te) {
10167
        throw new java.io.IOException(te);
10168
      }
10169
    }
10170
 
3339 mandeep.dh 10171
  }
10172
 
3430 rajveer 10173
  public static class updateLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_result, updateLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
10174
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_result");
3339 mandeep.dh 10175
 
10176
 
10177
 
10178
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10179
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 10180
;
10181
 
10182
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10183
 
10184
      static {
10185
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10186
          byName.put(field.getFieldName(), field);
10187
        }
10188
      }
10189
 
10190
      /**
10191
       * Find the _Fields constant that matches fieldId, or null if its not found.
10192
       */
10193
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10194
        switch(fieldId) {
10195
          default:
10196
            return null;
10197
        }
3339 mandeep.dh 10198
      }
10199
 
10200
      /**
10201
       * Find the _Fields constant that matches fieldId, throwing an exception
10202
       * if it is not found.
10203
       */
10204
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10205
        _Fields fields = findByThriftId(fieldId);
10206
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10207
        return fields;
10208
      }
10209
 
10210
      /**
10211
       * Find the _Fields constant that matches name, or null if its not found.
10212
       */
10213
      public static _Fields findByName(String name) {
10214
        return byName.get(name);
10215
      }
10216
 
10217
      private final short _thriftId;
10218
      private final String _fieldName;
10219
 
10220
      _Fields(short thriftId, String fieldName) {
10221
        _thriftId = thriftId;
10222
        _fieldName = fieldName;
10223
      }
10224
 
10225
      public short getThriftFieldId() {
10226
        return _thriftId;
10227
      }
10228
 
10229
      public String getFieldName() {
10230
        return _fieldName;
10231
      }
10232
    }
3430 rajveer 10233
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 10234
    static {
3430 rajveer 10235
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10236
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10237
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_result.class, metaDataMap);
3339 mandeep.dh 10238
    }
10239
 
10240
    public updateLastEmailProcessedTimestamp_result() {
10241
    }
10242
 
10243
    /**
10244
     * Performs a deep copy on <i>other</i>.
10245
     */
10246
    public updateLastEmailProcessedTimestamp_result(updateLastEmailProcessedTimestamp_result other) {
10247
    }
10248
 
10249
    public updateLastEmailProcessedTimestamp_result deepCopy() {
10250
      return new updateLastEmailProcessedTimestamp_result(this);
10251
    }
10252
 
3430 rajveer 10253
    @Override
10254
    public void clear() {
3339 mandeep.dh 10255
    }
10256
 
10257
    public void setFieldValue(_Fields field, Object value) {
10258
      switch (field) {
10259
      }
10260
    }
10261
 
10262
    public Object getFieldValue(_Fields field) {
10263
      switch (field) {
10264
      }
10265
      throw new IllegalStateException();
10266
    }
10267
 
3430 rajveer 10268
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10269
    public boolean isSet(_Fields field) {
10270
      if (field == null) {
10271
        throw new IllegalArgumentException();
10272
      }
3339 mandeep.dh 10273
 
10274
      switch (field) {
10275
      }
10276
      throw new IllegalStateException();
10277
    }
10278
 
10279
    @Override
10280
    public boolean equals(Object that) {
10281
      if (that == null)
10282
        return false;
10283
      if (that instanceof updateLastEmailProcessedTimestamp_result)
10284
        return this.equals((updateLastEmailProcessedTimestamp_result)that);
10285
      return false;
10286
    }
10287
 
10288
    public boolean equals(updateLastEmailProcessedTimestamp_result that) {
10289
      if (that == null)
10290
        return false;
10291
 
10292
      return true;
10293
    }
10294
 
10295
    @Override
10296
    public int hashCode() {
10297
      return 0;
10298
    }
10299
 
10300
    public int compareTo(updateLastEmailProcessedTimestamp_result other) {
10301
      if (!getClass().equals(other.getClass())) {
10302
        return getClass().getName().compareTo(other.getClass().getName());
10303
      }
10304
 
10305
      int lastComparison = 0;
10306
      updateLastEmailProcessedTimestamp_result typedOther = (updateLastEmailProcessedTimestamp_result)other;
10307
 
10308
      return 0;
10309
    }
10310
 
3430 rajveer 10311
    public _Fields fieldForId(int fieldId) {
10312
      return _Fields.findByThriftId(fieldId);
10313
    }
10314
 
10315
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10316
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 10317
      iprot.readStructBegin();
10318
      while (true)
10319
      {
10320
        field = iprot.readFieldBegin();
3430 rajveer 10321
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 10322
          break;
10323
        }
3430 rajveer 10324
        switch (field.id) {
10325
          default:
10326
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 10327
        }
3430 rajveer 10328
        iprot.readFieldEnd();
3339 mandeep.dh 10329
      }
10330
      iprot.readStructEnd();
10331
      validate();
10332
    }
10333
 
3430 rajveer 10334
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 10335
      oprot.writeStructBegin(STRUCT_DESC);
10336
 
10337
      oprot.writeFieldStop();
10338
      oprot.writeStructEnd();
10339
    }
10340
 
10341
    @Override
10342
    public String toString() {
10343
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_result(");
10344
      boolean first = true;
10345
 
10346
      sb.append(")");
10347
      return sb.toString();
10348
    }
10349
 
3430 rajveer 10350
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 10351
      // check for required fields
10352
    }
10353
 
3430 rajveer 10354
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10355
      try {
10356
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10357
      } catch (org.apache.thrift.TException te) {
10358
        throw new java.io.IOException(te);
10359
      }
10360
    }
10361
 
10362
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10363
      try {
10364
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10365
      } catch (org.apache.thrift.TException te) {
10366
        throw new java.io.IOException(te);
10367
      }
10368
    }
10369
 
3339 mandeep.dh 10370
  }
10371
 
4793 amar.kumar 10372
  public static class changeAgentStatus_args implements org.apache.thrift.TBase<changeAgentStatus_args, changeAgentStatus_args._Fields>, java.io.Serializable, Cloneable   {
10373
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_args");
10374
 
10375
    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);
10376
    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);
10377
 
10378
    private boolean status; // required
10379
    private String emailId; // required
10380
 
10381
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10382
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10383
      STATUS((short)1, "status"),
10384
      EMAIL_ID((short)2, "emailId");
10385
 
10386
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10387
 
10388
      static {
10389
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10390
          byName.put(field.getFieldName(), field);
10391
        }
10392
      }
10393
 
10394
      /**
10395
       * Find the _Fields constant that matches fieldId, or null if its not found.
10396
       */
10397
      public static _Fields findByThriftId(int fieldId) {
10398
        switch(fieldId) {
10399
          case 1: // STATUS
10400
            return STATUS;
10401
          case 2: // EMAIL_ID
10402
            return EMAIL_ID;
10403
          default:
10404
            return null;
10405
        }
10406
      }
10407
 
10408
      /**
10409
       * Find the _Fields constant that matches fieldId, throwing an exception
10410
       * if it is not found.
10411
       */
10412
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10413
        _Fields fields = findByThriftId(fieldId);
10414
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10415
        return fields;
10416
      }
10417
 
10418
      /**
10419
       * Find the _Fields constant that matches name, or null if its not found.
10420
       */
10421
      public static _Fields findByName(String name) {
10422
        return byName.get(name);
10423
      }
10424
 
10425
      private final short _thriftId;
10426
      private final String _fieldName;
10427
 
10428
      _Fields(short thriftId, String fieldName) {
10429
        _thriftId = thriftId;
10430
        _fieldName = fieldName;
10431
      }
10432
 
10433
      public short getThriftFieldId() {
10434
        return _thriftId;
10435
      }
10436
 
10437
      public String getFieldName() {
10438
        return _fieldName;
10439
      }
10440
    }
10441
 
10442
    // isset id assignments
10443
    private static final int __STATUS_ISSET_ID = 0;
10444
    private BitSet __isset_bit_vector = new BitSet(1);
10445
 
10446
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10447
    static {
10448
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10449
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10450
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10451
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10452
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10453
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10454
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_args.class, metaDataMap);
10455
    }
10456
 
10457
    public changeAgentStatus_args() {
10458
    }
10459
 
10460
    public changeAgentStatus_args(
10461
      boolean status,
10462
      String emailId)
10463
    {
10464
      this();
10465
      this.status = status;
10466
      setStatusIsSet(true);
10467
      this.emailId = emailId;
10468
    }
10469
 
10470
    /**
10471
     * Performs a deep copy on <i>other</i>.
10472
     */
10473
    public changeAgentStatus_args(changeAgentStatus_args other) {
10474
      __isset_bit_vector.clear();
10475
      __isset_bit_vector.or(other.__isset_bit_vector);
10476
      this.status = other.status;
10477
      if (other.isSetEmailId()) {
10478
        this.emailId = other.emailId;
10479
      }
10480
    }
10481
 
10482
    public changeAgentStatus_args deepCopy() {
10483
      return new changeAgentStatus_args(this);
10484
    }
10485
 
10486
    @Override
10487
    public void clear() {
10488
      setStatusIsSet(false);
10489
      this.status = false;
10490
      this.emailId = null;
10491
    }
10492
 
10493
    public boolean isStatus() {
10494
      return this.status;
10495
    }
10496
 
10497
    public void setStatus(boolean status) {
10498
      this.status = status;
10499
      setStatusIsSet(true);
10500
    }
10501
 
10502
    public void unsetStatus() {
10503
      __isset_bit_vector.clear(__STATUS_ISSET_ID);
10504
    }
10505
 
10506
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
10507
    public boolean isSetStatus() {
10508
      return __isset_bit_vector.get(__STATUS_ISSET_ID);
10509
    }
10510
 
10511
    public void setStatusIsSet(boolean value) {
10512
      __isset_bit_vector.set(__STATUS_ISSET_ID, value);
10513
    }
10514
 
10515
    public String getEmailId() {
10516
      return this.emailId;
10517
    }
10518
 
10519
    public void setEmailId(String emailId) {
10520
      this.emailId = emailId;
10521
    }
10522
 
10523
    public void unsetEmailId() {
10524
      this.emailId = null;
10525
    }
10526
 
10527
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
10528
    public boolean isSetEmailId() {
10529
      return this.emailId != null;
10530
    }
10531
 
10532
    public void setEmailIdIsSet(boolean value) {
10533
      if (!value) {
10534
        this.emailId = null;
10535
      }
10536
    }
10537
 
10538
    public void setFieldValue(_Fields field, Object value) {
10539
      switch (field) {
10540
      case STATUS:
10541
        if (value == null) {
10542
          unsetStatus();
10543
        } else {
10544
          setStatus((Boolean)value);
10545
        }
10546
        break;
10547
 
10548
      case EMAIL_ID:
10549
        if (value == null) {
10550
          unsetEmailId();
10551
        } else {
10552
          setEmailId((String)value);
10553
        }
10554
        break;
10555
 
10556
      }
10557
    }
10558
 
10559
    public Object getFieldValue(_Fields field) {
10560
      switch (field) {
10561
      case STATUS:
10562
        return Boolean.valueOf(isStatus());
10563
 
10564
      case EMAIL_ID:
10565
        return getEmailId();
10566
 
10567
      }
10568
      throw new IllegalStateException();
10569
    }
10570
 
10571
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10572
    public boolean isSet(_Fields field) {
10573
      if (field == null) {
10574
        throw new IllegalArgumentException();
10575
      }
10576
 
10577
      switch (field) {
10578
      case STATUS:
10579
        return isSetStatus();
10580
      case EMAIL_ID:
10581
        return isSetEmailId();
10582
      }
10583
      throw new IllegalStateException();
10584
    }
10585
 
10586
    @Override
10587
    public boolean equals(Object that) {
10588
      if (that == null)
10589
        return false;
10590
      if (that instanceof changeAgentStatus_args)
10591
        return this.equals((changeAgentStatus_args)that);
10592
      return false;
10593
    }
10594
 
10595
    public boolean equals(changeAgentStatus_args that) {
10596
      if (that == null)
10597
        return false;
10598
 
10599
      boolean this_present_status = true;
10600
      boolean that_present_status = true;
10601
      if (this_present_status || that_present_status) {
10602
        if (!(this_present_status && that_present_status))
10603
          return false;
10604
        if (this.status != that.status)
10605
          return false;
10606
      }
10607
 
10608
      boolean this_present_emailId = true && this.isSetEmailId();
10609
      boolean that_present_emailId = true && that.isSetEmailId();
10610
      if (this_present_emailId || that_present_emailId) {
10611
        if (!(this_present_emailId && that_present_emailId))
10612
          return false;
10613
        if (!this.emailId.equals(that.emailId))
10614
          return false;
10615
      }
10616
 
10617
      return true;
10618
    }
10619
 
10620
    @Override
10621
    public int hashCode() {
10622
      return 0;
10623
    }
10624
 
10625
    public int compareTo(changeAgentStatus_args other) {
10626
      if (!getClass().equals(other.getClass())) {
10627
        return getClass().getName().compareTo(other.getClass().getName());
10628
      }
10629
 
10630
      int lastComparison = 0;
10631
      changeAgentStatus_args typedOther = (changeAgentStatus_args)other;
10632
 
10633
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
10634
      if (lastComparison != 0) {
10635
        return lastComparison;
10636
      }
10637
      if (isSetStatus()) {
10638
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
10639
        if (lastComparison != 0) {
10640
          return lastComparison;
10641
        }
10642
      }
10643
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
10644
      if (lastComparison != 0) {
10645
        return lastComparison;
10646
      }
10647
      if (isSetEmailId()) {
10648
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
10649
        if (lastComparison != 0) {
10650
          return lastComparison;
10651
        }
10652
      }
10653
      return 0;
10654
    }
10655
 
10656
    public _Fields fieldForId(int fieldId) {
10657
      return _Fields.findByThriftId(fieldId);
10658
    }
10659
 
10660
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10661
      org.apache.thrift.protocol.TField field;
10662
      iprot.readStructBegin();
10663
      while (true)
10664
      {
10665
        field = iprot.readFieldBegin();
10666
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10667
          break;
10668
        }
10669
        switch (field.id) {
10670
          case 1: // STATUS
10671
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10672
              this.status = iprot.readBool();
10673
              setStatusIsSet(true);
10674
            } else { 
10675
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10676
            }
10677
            break;
10678
          case 2: // EMAIL_ID
10679
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10680
              this.emailId = iprot.readString();
10681
            } else { 
10682
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10683
            }
10684
            break;
10685
          default:
10686
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10687
        }
10688
        iprot.readFieldEnd();
10689
      }
10690
      iprot.readStructEnd();
10691
      validate();
10692
    }
10693
 
10694
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10695
      validate();
10696
 
10697
      oprot.writeStructBegin(STRUCT_DESC);
10698
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
10699
      oprot.writeBool(this.status);
10700
      oprot.writeFieldEnd();
10701
      if (this.emailId != null) {
10702
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
10703
        oprot.writeString(this.emailId);
10704
        oprot.writeFieldEnd();
10705
      }
10706
      oprot.writeFieldStop();
10707
      oprot.writeStructEnd();
10708
    }
10709
 
10710
    @Override
10711
    public String toString() {
10712
      StringBuilder sb = new StringBuilder("changeAgentStatus_args(");
10713
      boolean first = true;
10714
 
10715
      sb.append("status:");
10716
      sb.append(this.status);
10717
      first = false;
10718
      if (!first) sb.append(", ");
10719
      sb.append("emailId:");
10720
      if (this.emailId == null) {
10721
        sb.append("null");
10722
      } else {
10723
        sb.append(this.emailId);
10724
      }
10725
      first = false;
10726
      sb.append(")");
10727
      return sb.toString();
10728
    }
10729
 
10730
    public void validate() throws org.apache.thrift.TException {
10731
      // check for required fields
10732
    }
10733
 
10734
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10735
      try {
10736
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10737
      } catch (org.apache.thrift.TException te) {
10738
        throw new java.io.IOException(te);
10739
      }
10740
    }
10741
 
10742
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10743
      try {
10744
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10745
        __isset_bit_vector = new BitSet(1);
10746
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10747
      } catch (org.apache.thrift.TException te) {
10748
        throw new java.io.IOException(te);
10749
      }
10750
    }
10751
 
10752
  }
10753
 
10754
  public static class changeAgentStatus_result implements org.apache.thrift.TBase<changeAgentStatus_result, changeAgentStatus_result._Fields>, java.io.Serializable, Cloneable   {
10755
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_result");
10756
 
10757
 
10758
 
10759
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10760
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10761
;
10762
 
10763
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10764
 
10765
      static {
10766
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10767
          byName.put(field.getFieldName(), field);
10768
        }
10769
      }
10770
 
10771
      /**
10772
       * Find the _Fields constant that matches fieldId, or null if its not found.
10773
       */
10774
      public static _Fields findByThriftId(int fieldId) {
10775
        switch(fieldId) {
10776
          default:
10777
            return null;
10778
        }
10779
      }
10780
 
10781
      /**
10782
       * Find the _Fields constant that matches fieldId, throwing an exception
10783
       * if it is not found.
10784
       */
10785
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10786
        _Fields fields = findByThriftId(fieldId);
10787
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10788
        return fields;
10789
      }
10790
 
10791
      /**
10792
       * Find the _Fields constant that matches name, or null if its not found.
10793
       */
10794
      public static _Fields findByName(String name) {
10795
        return byName.get(name);
10796
      }
10797
 
10798
      private final short _thriftId;
10799
      private final String _fieldName;
10800
 
10801
      _Fields(short thriftId, String fieldName) {
10802
        _thriftId = thriftId;
10803
        _fieldName = fieldName;
10804
      }
10805
 
10806
      public short getThriftFieldId() {
10807
        return _thriftId;
10808
      }
10809
 
10810
      public String getFieldName() {
10811
        return _fieldName;
10812
      }
10813
    }
10814
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10815
    static {
10816
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10817
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10818
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_result.class, metaDataMap);
10819
    }
10820
 
10821
    public changeAgentStatus_result() {
10822
    }
10823
 
10824
    /**
10825
     * Performs a deep copy on <i>other</i>.
10826
     */
10827
    public changeAgentStatus_result(changeAgentStatus_result other) {
10828
    }
10829
 
10830
    public changeAgentStatus_result deepCopy() {
10831
      return new changeAgentStatus_result(this);
10832
    }
10833
 
10834
    @Override
10835
    public void clear() {
10836
    }
10837
 
10838
    public void setFieldValue(_Fields field, Object value) {
10839
      switch (field) {
10840
      }
10841
    }
10842
 
10843
    public Object getFieldValue(_Fields field) {
10844
      switch (field) {
10845
      }
10846
      throw new IllegalStateException();
10847
    }
10848
 
10849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10850
    public boolean isSet(_Fields field) {
10851
      if (field == null) {
10852
        throw new IllegalArgumentException();
10853
      }
10854
 
10855
      switch (field) {
10856
      }
10857
      throw new IllegalStateException();
10858
    }
10859
 
10860
    @Override
10861
    public boolean equals(Object that) {
10862
      if (that == null)
10863
        return false;
10864
      if (that instanceof changeAgentStatus_result)
10865
        return this.equals((changeAgentStatus_result)that);
10866
      return false;
10867
    }
10868
 
10869
    public boolean equals(changeAgentStatus_result that) {
10870
      if (that == null)
10871
        return false;
10872
 
10873
      return true;
10874
    }
10875
 
10876
    @Override
10877
    public int hashCode() {
10878
      return 0;
10879
    }
10880
 
10881
    public int compareTo(changeAgentStatus_result other) {
10882
      if (!getClass().equals(other.getClass())) {
10883
        return getClass().getName().compareTo(other.getClass().getName());
10884
      }
10885
 
10886
      int lastComparison = 0;
10887
      changeAgentStatus_result typedOther = (changeAgentStatus_result)other;
10888
 
10889
      return 0;
10890
    }
10891
 
10892
    public _Fields fieldForId(int fieldId) {
10893
      return _Fields.findByThriftId(fieldId);
10894
    }
10895
 
10896
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10897
      org.apache.thrift.protocol.TField field;
10898
      iprot.readStructBegin();
10899
      while (true)
10900
      {
10901
        field = iprot.readFieldBegin();
10902
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10903
          break;
10904
        }
10905
        switch (field.id) {
10906
          default:
10907
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10908
        }
10909
        iprot.readFieldEnd();
10910
      }
10911
      iprot.readStructEnd();
10912
      validate();
10913
    }
10914
 
10915
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10916
      oprot.writeStructBegin(STRUCT_DESC);
10917
 
10918
      oprot.writeFieldStop();
10919
      oprot.writeStructEnd();
10920
    }
10921
 
10922
    @Override
10923
    public String toString() {
10924
      StringBuilder sb = new StringBuilder("changeAgentStatus_result(");
10925
      boolean first = true;
10926
 
10927
      sb.append(")");
10928
      return sb.toString();
10929
    }
10930
 
10931
    public void validate() throws org.apache.thrift.TException {
10932
      // check for required fields
10933
    }
10934
 
10935
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10936
      try {
10937
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10938
      } catch (org.apache.thrift.TException te) {
10939
        throw new java.io.IOException(te);
10940
      }
10941
    }
10942
 
10943
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10944
      try {
10945
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10946
      } catch (org.apache.thrift.TException te) {
10947
        throw new java.io.IOException(te);
10948
      }
10949
    }
10950
 
10951
  }
10952
 
10953
  public static class insertAgent_args implements org.apache.thrift.TBase<insertAgent_args, insertAgent_args._Fields>, java.io.Serializable, Cloneable   {
10954
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_args");
10955
 
10956
    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);
10957
    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);
10958
 
10959
    private Agent agent; // required
10960
    private List<String> role; // required
10961
 
10962
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10963
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10964
      AGENT((short)1, "agent"),
10965
      ROLE((short)2, "role");
10966
 
10967
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10968
 
10969
      static {
10970
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10971
          byName.put(field.getFieldName(), field);
10972
        }
10973
      }
10974
 
10975
      /**
10976
       * Find the _Fields constant that matches fieldId, or null if its not found.
10977
       */
10978
      public static _Fields findByThriftId(int fieldId) {
10979
        switch(fieldId) {
10980
          case 1: // AGENT
10981
            return AGENT;
10982
          case 2: // ROLE
10983
            return ROLE;
10984
          default:
10985
            return null;
10986
        }
10987
      }
10988
 
10989
      /**
10990
       * Find the _Fields constant that matches fieldId, throwing an exception
10991
       * if it is not found.
10992
       */
10993
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10994
        _Fields fields = findByThriftId(fieldId);
10995
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10996
        return fields;
10997
      }
10998
 
10999
      /**
11000
       * Find the _Fields constant that matches name, or null if its not found.
11001
       */
11002
      public static _Fields findByName(String name) {
11003
        return byName.get(name);
11004
      }
11005
 
11006
      private final short _thriftId;
11007
      private final String _fieldName;
11008
 
11009
      _Fields(short thriftId, String fieldName) {
11010
        _thriftId = thriftId;
11011
        _fieldName = fieldName;
11012
      }
11013
 
11014
      public short getThriftFieldId() {
11015
        return _thriftId;
11016
      }
11017
 
11018
      public String getFieldName() {
11019
        return _fieldName;
11020
      }
11021
    }
11022
 
11023
    // isset id assignments
11024
 
11025
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11026
    static {
11027
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11028
      tmpMap.put(_Fields.AGENT, new org.apache.thrift.meta_data.FieldMetaData("agent", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11029
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class)));
11030
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11031
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11032
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
11033
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11034
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_args.class, metaDataMap);
11035
    }
11036
 
11037
    public insertAgent_args() {
11038
    }
11039
 
11040
    public insertAgent_args(
11041
      Agent agent,
11042
      List<String> role)
11043
    {
11044
      this();
11045
      this.agent = agent;
11046
      this.role = role;
11047
    }
11048
 
11049
    /**
11050
     * Performs a deep copy on <i>other</i>.
11051
     */
11052
    public insertAgent_args(insertAgent_args other) {
11053
      if (other.isSetAgent()) {
11054
        this.agent = new Agent(other.agent);
11055
      }
11056
      if (other.isSetRole()) {
11057
        List<String> __this__role = new ArrayList<String>();
11058
        for (String other_element : other.role) {
11059
          __this__role.add(other_element);
11060
        }
11061
        this.role = __this__role;
11062
      }
11063
    }
11064
 
11065
    public insertAgent_args deepCopy() {
11066
      return new insertAgent_args(this);
11067
    }
11068
 
11069
    @Override
11070
    public void clear() {
11071
      this.agent = null;
11072
      this.role = null;
11073
    }
11074
 
11075
    public Agent getAgent() {
11076
      return this.agent;
11077
    }
11078
 
11079
    public void setAgent(Agent agent) {
11080
      this.agent = agent;
11081
    }
11082
 
11083
    public void unsetAgent() {
11084
      this.agent = null;
11085
    }
11086
 
11087
    /** Returns true if field agent is set (has been assigned a value) and false otherwise */
11088
    public boolean isSetAgent() {
11089
      return this.agent != null;
11090
    }
11091
 
11092
    public void setAgentIsSet(boolean value) {
11093
      if (!value) {
11094
        this.agent = null;
11095
      }
11096
    }
11097
 
11098
    public int getRoleSize() {
11099
      return (this.role == null) ? 0 : this.role.size();
11100
    }
11101
 
11102
    public java.util.Iterator<String> getRoleIterator() {
11103
      return (this.role == null) ? null : this.role.iterator();
11104
    }
11105
 
11106
    public void addToRole(String elem) {
11107
      if (this.role == null) {
11108
        this.role = new ArrayList<String>();
11109
      }
11110
      this.role.add(elem);
11111
    }
11112
 
11113
    public List<String> getRole() {
11114
      return this.role;
11115
    }
11116
 
11117
    public void setRole(List<String> role) {
11118
      this.role = role;
11119
    }
11120
 
11121
    public void unsetRole() {
11122
      this.role = null;
11123
    }
11124
 
11125
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
11126
    public boolean isSetRole() {
11127
      return this.role != null;
11128
    }
11129
 
11130
    public void setRoleIsSet(boolean value) {
11131
      if (!value) {
11132
        this.role = null;
11133
      }
11134
    }
11135
 
11136
    public void setFieldValue(_Fields field, Object value) {
11137
      switch (field) {
11138
      case AGENT:
11139
        if (value == null) {
11140
          unsetAgent();
11141
        } else {
11142
          setAgent((Agent)value);
11143
        }
11144
        break;
11145
 
11146
      case ROLE:
11147
        if (value == null) {
11148
          unsetRole();
11149
        } else {
11150
          setRole((List<String>)value);
11151
        }
11152
        break;
11153
 
11154
      }
11155
    }
11156
 
11157
    public Object getFieldValue(_Fields field) {
11158
      switch (field) {
11159
      case AGENT:
11160
        return getAgent();
11161
 
11162
      case ROLE:
11163
        return getRole();
11164
 
11165
      }
11166
      throw new IllegalStateException();
11167
    }
11168
 
11169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11170
    public boolean isSet(_Fields field) {
11171
      if (field == null) {
11172
        throw new IllegalArgumentException();
11173
      }
11174
 
11175
      switch (field) {
11176
      case AGENT:
11177
        return isSetAgent();
11178
      case ROLE:
11179
        return isSetRole();
11180
      }
11181
      throw new IllegalStateException();
11182
    }
11183
 
11184
    @Override
11185
    public boolean equals(Object that) {
11186
      if (that == null)
11187
        return false;
11188
      if (that instanceof insertAgent_args)
11189
        return this.equals((insertAgent_args)that);
11190
      return false;
11191
    }
11192
 
11193
    public boolean equals(insertAgent_args that) {
11194
      if (that == null)
11195
        return false;
11196
 
11197
      boolean this_present_agent = true && this.isSetAgent();
11198
      boolean that_present_agent = true && that.isSetAgent();
11199
      if (this_present_agent || that_present_agent) {
11200
        if (!(this_present_agent && that_present_agent))
11201
          return false;
11202
        if (!this.agent.equals(that.agent))
11203
          return false;
11204
      }
11205
 
11206
      boolean this_present_role = true && this.isSetRole();
11207
      boolean that_present_role = true && that.isSetRole();
11208
      if (this_present_role || that_present_role) {
11209
        if (!(this_present_role && that_present_role))
11210
          return false;
11211
        if (!this.role.equals(that.role))
11212
          return false;
11213
      }
11214
 
11215
      return true;
11216
    }
11217
 
11218
    @Override
11219
    public int hashCode() {
11220
      return 0;
11221
    }
11222
 
11223
    public int compareTo(insertAgent_args other) {
11224
      if (!getClass().equals(other.getClass())) {
11225
        return getClass().getName().compareTo(other.getClass().getName());
11226
      }
11227
 
11228
      int lastComparison = 0;
11229
      insertAgent_args typedOther = (insertAgent_args)other;
11230
 
11231
      lastComparison = Boolean.valueOf(isSetAgent()).compareTo(typedOther.isSetAgent());
11232
      if (lastComparison != 0) {
11233
        return lastComparison;
11234
      }
11235
      if (isSetAgent()) {
11236
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agent, typedOther.agent);
11237
        if (lastComparison != 0) {
11238
          return lastComparison;
11239
        }
11240
      }
11241
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
11242
      if (lastComparison != 0) {
11243
        return lastComparison;
11244
      }
11245
      if (isSetRole()) {
11246
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
11247
        if (lastComparison != 0) {
11248
          return lastComparison;
11249
        }
11250
      }
11251
      return 0;
11252
    }
11253
 
11254
    public _Fields fieldForId(int fieldId) {
11255
      return _Fields.findByThriftId(fieldId);
11256
    }
11257
 
11258
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11259
      org.apache.thrift.protocol.TField field;
11260
      iprot.readStructBegin();
11261
      while (true)
11262
      {
11263
        field = iprot.readFieldBegin();
11264
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11265
          break;
11266
        }
11267
        switch (field.id) {
11268
          case 1: // AGENT
11269
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11270
              this.agent = new Agent();
11271
              this.agent.read(iprot);
11272
            } else { 
11273
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11274
            }
11275
            break;
11276
          case 2: // ROLE
11277
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11278
              {
5287 amar.kumar 11279
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
11280
                this.role = new ArrayList<String>(_list40.size);
11281
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
4793 amar.kumar 11282
                {
5287 amar.kumar 11283
                  String _elem42; // required
11284
                  _elem42 = iprot.readString();
11285
                  this.role.add(_elem42);
4793 amar.kumar 11286
                }
11287
                iprot.readListEnd();
11288
              }
11289
            } else { 
11290
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11291
            }
11292
            break;
11293
          default:
11294
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11295
        }
11296
        iprot.readFieldEnd();
11297
      }
11298
      iprot.readStructEnd();
11299
      validate();
11300
    }
11301
 
11302
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11303
      validate();
11304
 
11305
      oprot.writeStructBegin(STRUCT_DESC);
11306
      if (this.agent != null) {
11307
        oprot.writeFieldBegin(AGENT_FIELD_DESC);
11308
        this.agent.write(oprot);
11309
        oprot.writeFieldEnd();
11310
      }
11311
      if (this.role != null) {
11312
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11313
        {
11314
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
5287 amar.kumar 11315
          for (String _iter43 : this.role)
4793 amar.kumar 11316
          {
5287 amar.kumar 11317
            oprot.writeString(_iter43);
4793 amar.kumar 11318
          }
11319
          oprot.writeListEnd();
11320
        }
11321
        oprot.writeFieldEnd();
11322
      }
11323
      oprot.writeFieldStop();
11324
      oprot.writeStructEnd();
11325
    }
11326
 
11327
    @Override
11328
    public String toString() {
11329
      StringBuilder sb = new StringBuilder("insertAgent_args(");
11330
      boolean first = true;
11331
 
11332
      sb.append("agent:");
11333
      if (this.agent == null) {
11334
        sb.append("null");
11335
      } else {
11336
        sb.append(this.agent);
11337
      }
11338
      first = false;
11339
      if (!first) sb.append(", ");
11340
      sb.append("role:");
11341
      if (this.role == null) {
11342
        sb.append("null");
11343
      } else {
11344
        sb.append(this.role);
11345
      }
11346
      first = false;
11347
      sb.append(")");
11348
      return sb.toString();
11349
    }
11350
 
11351
    public void validate() throws org.apache.thrift.TException {
11352
      // check for required fields
11353
    }
11354
 
11355
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11356
      try {
11357
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11358
      } catch (org.apache.thrift.TException te) {
11359
        throw new java.io.IOException(te);
11360
      }
11361
    }
11362
 
11363
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11364
      try {
11365
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11366
      } catch (org.apache.thrift.TException te) {
11367
        throw new java.io.IOException(te);
11368
      }
11369
    }
11370
 
11371
  }
11372
 
11373
  public static class insertAgent_result implements org.apache.thrift.TBase<insertAgent_result, insertAgent_result._Fields>, java.io.Serializable, Cloneable   {
11374
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_result");
11375
 
11376
 
11377
 
11378
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11379
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11380
;
11381
 
11382
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11383
 
11384
      static {
11385
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11386
          byName.put(field.getFieldName(), field);
11387
        }
11388
      }
11389
 
11390
      /**
11391
       * Find the _Fields constant that matches fieldId, or null if its not found.
11392
       */
11393
      public static _Fields findByThriftId(int fieldId) {
11394
        switch(fieldId) {
11395
          default:
11396
            return null;
11397
        }
11398
      }
11399
 
11400
      /**
11401
       * Find the _Fields constant that matches fieldId, throwing an exception
11402
       * if it is not found.
11403
       */
11404
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11405
        _Fields fields = findByThriftId(fieldId);
11406
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11407
        return fields;
11408
      }
11409
 
11410
      /**
11411
       * Find the _Fields constant that matches name, or null if its not found.
11412
       */
11413
      public static _Fields findByName(String name) {
11414
        return byName.get(name);
11415
      }
11416
 
11417
      private final short _thriftId;
11418
      private final String _fieldName;
11419
 
11420
      _Fields(short thriftId, String fieldName) {
11421
        _thriftId = thriftId;
11422
        _fieldName = fieldName;
11423
      }
11424
 
11425
      public short getThriftFieldId() {
11426
        return _thriftId;
11427
      }
11428
 
11429
      public String getFieldName() {
11430
        return _fieldName;
11431
      }
11432
    }
11433
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11434
    static {
11435
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11436
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11437
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_result.class, metaDataMap);
11438
    }
11439
 
11440
    public insertAgent_result() {
11441
    }
11442
 
11443
    /**
11444
     * Performs a deep copy on <i>other</i>.
11445
     */
11446
    public insertAgent_result(insertAgent_result other) {
11447
    }
11448
 
11449
    public insertAgent_result deepCopy() {
11450
      return new insertAgent_result(this);
11451
    }
11452
 
11453
    @Override
11454
    public void clear() {
11455
    }
11456
 
11457
    public void setFieldValue(_Fields field, Object value) {
11458
      switch (field) {
11459
      }
11460
    }
11461
 
11462
    public Object getFieldValue(_Fields field) {
11463
      switch (field) {
11464
      }
11465
      throw new IllegalStateException();
11466
    }
11467
 
11468
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11469
    public boolean isSet(_Fields field) {
11470
      if (field == null) {
11471
        throw new IllegalArgumentException();
11472
      }
11473
 
11474
      switch (field) {
11475
      }
11476
      throw new IllegalStateException();
11477
    }
11478
 
11479
    @Override
11480
    public boolean equals(Object that) {
11481
      if (that == null)
11482
        return false;
11483
      if (that instanceof insertAgent_result)
11484
        return this.equals((insertAgent_result)that);
11485
      return false;
11486
    }
11487
 
11488
    public boolean equals(insertAgent_result that) {
11489
      if (that == null)
11490
        return false;
11491
 
11492
      return true;
11493
    }
11494
 
11495
    @Override
11496
    public int hashCode() {
11497
      return 0;
11498
    }
11499
 
11500
    public int compareTo(insertAgent_result other) {
11501
      if (!getClass().equals(other.getClass())) {
11502
        return getClass().getName().compareTo(other.getClass().getName());
11503
      }
11504
 
11505
      int lastComparison = 0;
11506
      insertAgent_result typedOther = (insertAgent_result)other;
11507
 
11508
      return 0;
11509
    }
11510
 
11511
    public _Fields fieldForId(int fieldId) {
11512
      return _Fields.findByThriftId(fieldId);
11513
    }
11514
 
11515
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11516
      org.apache.thrift.protocol.TField field;
11517
      iprot.readStructBegin();
11518
      while (true)
11519
      {
11520
        field = iprot.readFieldBegin();
11521
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11522
          break;
11523
        }
11524
        switch (field.id) {
11525
          default:
11526
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11527
        }
11528
        iprot.readFieldEnd();
11529
      }
11530
      iprot.readStructEnd();
11531
      validate();
11532
    }
11533
 
11534
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11535
      oprot.writeStructBegin(STRUCT_DESC);
11536
 
11537
      oprot.writeFieldStop();
11538
      oprot.writeStructEnd();
11539
    }
11540
 
11541
    @Override
11542
    public String toString() {
11543
      StringBuilder sb = new StringBuilder("insertAgent_result(");
11544
      boolean first = true;
11545
 
11546
      sb.append(")");
11547
      return sb.toString();
11548
    }
11549
 
11550
    public void validate() throws org.apache.thrift.TException {
11551
      // check for required fields
11552
    }
11553
 
11554
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11555
      try {
11556
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11557
      } catch (org.apache.thrift.TException te) {
11558
        throw new java.io.IOException(te);
11559
      }
11560
    }
11561
 
11562
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11563
      try {
11564
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11565
      } catch (org.apache.thrift.TException te) {
11566
        throw new java.io.IOException(te);
11567
      }
11568
    }
11569
 
11570
  }
11571
 
5169 amar.kumar 11572
  public static class changeAgentRole_args implements org.apache.thrift.TBase<changeAgentRole_args, changeAgentRole_args._Fields>, java.io.Serializable, Cloneable   {
11573
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_args");
11574
 
11575
    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);
11576
    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);
11577
 
11578
    private long id; // required
11579
    private List<String> role; // required
11580
 
11581
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11582
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11583
      ID((short)1, "id"),
11584
      ROLE((short)2, "role");
11585
 
11586
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11587
 
11588
      static {
11589
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11590
          byName.put(field.getFieldName(), field);
11591
        }
11592
      }
11593
 
11594
      /**
11595
       * Find the _Fields constant that matches fieldId, or null if its not found.
11596
       */
11597
      public static _Fields findByThriftId(int fieldId) {
11598
        switch(fieldId) {
11599
          case 1: // ID
11600
            return ID;
11601
          case 2: // ROLE
11602
            return ROLE;
11603
          default:
11604
            return null;
11605
        }
11606
      }
11607
 
11608
      /**
11609
       * Find the _Fields constant that matches fieldId, throwing an exception
11610
       * if it is not found.
11611
       */
11612
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11613
        _Fields fields = findByThriftId(fieldId);
11614
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11615
        return fields;
11616
      }
11617
 
11618
      /**
11619
       * Find the _Fields constant that matches name, or null if its not found.
11620
       */
11621
      public static _Fields findByName(String name) {
11622
        return byName.get(name);
11623
      }
11624
 
11625
      private final short _thriftId;
11626
      private final String _fieldName;
11627
 
11628
      _Fields(short thriftId, String fieldName) {
11629
        _thriftId = thriftId;
11630
        _fieldName = fieldName;
11631
      }
11632
 
11633
      public short getThriftFieldId() {
11634
        return _thriftId;
11635
      }
11636
 
11637
      public String getFieldName() {
11638
        return _fieldName;
11639
      }
11640
    }
11641
 
11642
    // isset id assignments
11643
    private static final int __ID_ISSET_ID = 0;
11644
    private BitSet __isset_bit_vector = new BitSet(1);
11645
 
11646
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11647
    static {
11648
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11649
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11650
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11651
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11652
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11653
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
11654
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11655
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_args.class, metaDataMap);
11656
    }
11657
 
11658
    public changeAgentRole_args() {
11659
    }
11660
 
11661
    public changeAgentRole_args(
11662
      long id,
11663
      List<String> role)
11664
    {
11665
      this();
11666
      this.id = id;
11667
      setIdIsSet(true);
11668
      this.role = role;
11669
    }
11670
 
11671
    /**
11672
     * Performs a deep copy on <i>other</i>.
11673
     */
11674
    public changeAgentRole_args(changeAgentRole_args other) {
11675
      __isset_bit_vector.clear();
11676
      __isset_bit_vector.or(other.__isset_bit_vector);
11677
      this.id = other.id;
11678
      if (other.isSetRole()) {
11679
        List<String> __this__role = new ArrayList<String>();
11680
        for (String other_element : other.role) {
11681
          __this__role.add(other_element);
11682
        }
11683
        this.role = __this__role;
11684
      }
11685
    }
11686
 
11687
    public changeAgentRole_args deepCopy() {
11688
      return new changeAgentRole_args(this);
11689
    }
11690
 
11691
    @Override
11692
    public void clear() {
11693
      setIdIsSet(false);
11694
      this.id = 0;
11695
      this.role = null;
11696
    }
11697
 
11698
    public long getId() {
11699
      return this.id;
11700
    }
11701
 
11702
    public void setId(long id) {
11703
      this.id = id;
11704
      setIdIsSet(true);
11705
    }
11706
 
11707
    public void unsetId() {
11708
      __isset_bit_vector.clear(__ID_ISSET_ID);
11709
    }
11710
 
11711
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
11712
    public boolean isSetId() {
11713
      return __isset_bit_vector.get(__ID_ISSET_ID);
11714
    }
11715
 
11716
    public void setIdIsSet(boolean value) {
11717
      __isset_bit_vector.set(__ID_ISSET_ID, value);
11718
    }
11719
 
11720
    public int getRoleSize() {
11721
      return (this.role == null) ? 0 : this.role.size();
11722
    }
11723
 
11724
    public java.util.Iterator<String> getRoleIterator() {
11725
      return (this.role == null) ? null : this.role.iterator();
11726
    }
11727
 
11728
    public void addToRole(String elem) {
11729
      if (this.role == null) {
11730
        this.role = new ArrayList<String>();
11731
      }
11732
      this.role.add(elem);
11733
    }
11734
 
11735
    public List<String> getRole() {
11736
      return this.role;
11737
    }
11738
 
11739
    public void setRole(List<String> role) {
11740
      this.role = role;
11741
    }
11742
 
11743
    public void unsetRole() {
11744
      this.role = null;
11745
    }
11746
 
11747
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
11748
    public boolean isSetRole() {
11749
      return this.role != null;
11750
    }
11751
 
11752
    public void setRoleIsSet(boolean value) {
11753
      if (!value) {
11754
        this.role = null;
11755
      }
11756
    }
11757
 
11758
    public void setFieldValue(_Fields field, Object value) {
11759
      switch (field) {
11760
      case ID:
11761
        if (value == null) {
11762
          unsetId();
11763
        } else {
11764
          setId((Long)value);
11765
        }
11766
        break;
11767
 
11768
      case ROLE:
11769
        if (value == null) {
11770
          unsetRole();
11771
        } else {
11772
          setRole((List<String>)value);
11773
        }
11774
        break;
11775
 
11776
      }
11777
    }
11778
 
11779
    public Object getFieldValue(_Fields field) {
11780
      switch (field) {
11781
      case ID:
11782
        return Long.valueOf(getId());
11783
 
11784
      case ROLE:
11785
        return getRole();
11786
 
11787
      }
11788
      throw new IllegalStateException();
11789
    }
11790
 
11791
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11792
    public boolean isSet(_Fields field) {
11793
      if (field == null) {
11794
        throw new IllegalArgumentException();
11795
      }
11796
 
11797
      switch (field) {
11798
      case ID:
11799
        return isSetId();
11800
      case ROLE:
11801
        return isSetRole();
11802
      }
11803
      throw new IllegalStateException();
11804
    }
11805
 
11806
    @Override
11807
    public boolean equals(Object that) {
11808
      if (that == null)
11809
        return false;
11810
      if (that instanceof changeAgentRole_args)
11811
        return this.equals((changeAgentRole_args)that);
11812
      return false;
11813
    }
11814
 
11815
    public boolean equals(changeAgentRole_args that) {
11816
      if (that == null)
11817
        return false;
11818
 
11819
      boolean this_present_id = true;
11820
      boolean that_present_id = true;
11821
      if (this_present_id || that_present_id) {
11822
        if (!(this_present_id && that_present_id))
11823
          return false;
11824
        if (this.id != that.id)
11825
          return false;
11826
      }
11827
 
11828
      boolean this_present_role = true && this.isSetRole();
11829
      boolean that_present_role = true && that.isSetRole();
11830
      if (this_present_role || that_present_role) {
11831
        if (!(this_present_role && that_present_role))
11832
          return false;
11833
        if (!this.role.equals(that.role))
11834
          return false;
11835
      }
11836
 
11837
      return true;
11838
    }
11839
 
11840
    @Override
11841
    public int hashCode() {
11842
      return 0;
11843
    }
11844
 
11845
    public int compareTo(changeAgentRole_args other) {
11846
      if (!getClass().equals(other.getClass())) {
11847
        return getClass().getName().compareTo(other.getClass().getName());
11848
      }
11849
 
11850
      int lastComparison = 0;
11851
      changeAgentRole_args typedOther = (changeAgentRole_args)other;
11852
 
11853
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
11854
      if (lastComparison != 0) {
11855
        return lastComparison;
11856
      }
11857
      if (isSetId()) {
11858
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
11859
        if (lastComparison != 0) {
11860
          return lastComparison;
11861
        }
11862
      }
11863
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
11864
      if (lastComparison != 0) {
11865
        return lastComparison;
11866
      }
11867
      if (isSetRole()) {
11868
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
11869
        if (lastComparison != 0) {
11870
          return lastComparison;
11871
        }
11872
      }
11873
      return 0;
11874
    }
11875
 
11876
    public _Fields fieldForId(int fieldId) {
11877
      return _Fields.findByThriftId(fieldId);
11878
    }
11879
 
11880
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11881
      org.apache.thrift.protocol.TField field;
11882
      iprot.readStructBegin();
11883
      while (true)
11884
      {
11885
        field = iprot.readFieldBegin();
11886
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11887
          break;
11888
        }
11889
        switch (field.id) {
11890
          case 1: // ID
11891
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11892
              this.id = iprot.readI64();
11893
              setIdIsSet(true);
11894
            } else { 
11895
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11896
            }
11897
            break;
11898
          case 2: // ROLE
11899
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11900
              {
5287 amar.kumar 11901
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
11902
                this.role = new ArrayList<String>(_list44.size);
11903
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
5169 amar.kumar 11904
                {
5287 amar.kumar 11905
                  String _elem46; // required
11906
                  _elem46 = iprot.readString();
11907
                  this.role.add(_elem46);
5169 amar.kumar 11908
                }
11909
                iprot.readListEnd();
11910
              }
11911
            } else { 
11912
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11913
            }
11914
            break;
11915
          default:
11916
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11917
        }
11918
        iprot.readFieldEnd();
11919
      }
11920
      iprot.readStructEnd();
11921
      validate();
11922
    }
11923
 
11924
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11925
      validate();
11926
 
11927
      oprot.writeStructBegin(STRUCT_DESC);
11928
      oprot.writeFieldBegin(ID_FIELD_DESC);
11929
      oprot.writeI64(this.id);
11930
      oprot.writeFieldEnd();
11931
      if (this.role != null) {
11932
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11933
        {
11934
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
5287 amar.kumar 11935
          for (String _iter47 : this.role)
5169 amar.kumar 11936
          {
5287 amar.kumar 11937
            oprot.writeString(_iter47);
5169 amar.kumar 11938
          }
11939
          oprot.writeListEnd();
11940
        }
11941
        oprot.writeFieldEnd();
11942
      }
11943
      oprot.writeFieldStop();
11944
      oprot.writeStructEnd();
11945
    }
11946
 
11947
    @Override
11948
    public String toString() {
11949
      StringBuilder sb = new StringBuilder("changeAgentRole_args(");
11950
      boolean first = true;
11951
 
11952
      sb.append("id:");
11953
      sb.append(this.id);
11954
      first = false;
11955
      if (!first) sb.append(", ");
11956
      sb.append("role:");
11957
      if (this.role == null) {
11958
        sb.append("null");
11959
      } else {
11960
        sb.append(this.role);
11961
      }
11962
      first = false;
11963
      sb.append(")");
11964
      return sb.toString();
11965
    }
11966
 
11967
    public void validate() throws org.apache.thrift.TException {
11968
      // check for required fields
11969
    }
11970
 
11971
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11972
      try {
11973
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11974
      } catch (org.apache.thrift.TException te) {
11975
        throw new java.io.IOException(te);
11976
      }
11977
    }
11978
 
11979
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11980
      try {
11981
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11982
        __isset_bit_vector = new BitSet(1);
11983
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11984
      } catch (org.apache.thrift.TException te) {
11985
        throw new java.io.IOException(te);
11986
      }
11987
    }
11988
 
11989
  }
11990
 
11991
  public static class changeAgentRole_result implements org.apache.thrift.TBase<changeAgentRole_result, changeAgentRole_result._Fields>, java.io.Serializable, Cloneable   {
11992
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_result");
11993
 
11994
 
11995
 
11996
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11997
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11998
;
11999
 
12000
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12001
 
12002
      static {
12003
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12004
          byName.put(field.getFieldName(), field);
12005
        }
12006
      }
12007
 
12008
      /**
12009
       * Find the _Fields constant that matches fieldId, or null if its not found.
12010
       */
12011
      public static _Fields findByThriftId(int fieldId) {
12012
        switch(fieldId) {
12013
          default:
12014
            return null;
12015
        }
12016
      }
12017
 
12018
      /**
12019
       * Find the _Fields constant that matches fieldId, throwing an exception
12020
       * if it is not found.
12021
       */
12022
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12023
        _Fields fields = findByThriftId(fieldId);
12024
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12025
        return fields;
12026
      }
12027
 
12028
      /**
12029
       * Find the _Fields constant that matches name, or null if its not found.
12030
       */
12031
      public static _Fields findByName(String name) {
12032
        return byName.get(name);
12033
      }
12034
 
12035
      private final short _thriftId;
12036
      private final String _fieldName;
12037
 
12038
      _Fields(short thriftId, String fieldName) {
12039
        _thriftId = thriftId;
12040
        _fieldName = fieldName;
12041
      }
12042
 
12043
      public short getThriftFieldId() {
12044
        return _thriftId;
12045
      }
12046
 
12047
      public String getFieldName() {
12048
        return _fieldName;
12049
      }
12050
    }
12051
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12052
    static {
12053
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12054
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12055
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_result.class, metaDataMap);
12056
    }
12057
 
12058
    public changeAgentRole_result() {
12059
    }
12060
 
12061
    /**
12062
     * Performs a deep copy on <i>other</i>.
12063
     */
12064
    public changeAgentRole_result(changeAgentRole_result other) {
12065
    }
12066
 
12067
    public changeAgentRole_result deepCopy() {
12068
      return new changeAgentRole_result(this);
12069
    }
12070
 
12071
    @Override
12072
    public void clear() {
12073
    }
12074
 
12075
    public void setFieldValue(_Fields field, Object value) {
12076
      switch (field) {
12077
      }
12078
    }
12079
 
12080
    public Object getFieldValue(_Fields field) {
12081
      switch (field) {
12082
      }
12083
      throw new IllegalStateException();
12084
    }
12085
 
12086
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12087
    public boolean isSet(_Fields field) {
12088
      if (field == null) {
12089
        throw new IllegalArgumentException();
12090
      }
12091
 
12092
      switch (field) {
12093
      }
12094
      throw new IllegalStateException();
12095
    }
12096
 
12097
    @Override
12098
    public boolean equals(Object that) {
12099
      if (that == null)
12100
        return false;
12101
      if (that instanceof changeAgentRole_result)
12102
        return this.equals((changeAgentRole_result)that);
12103
      return false;
12104
    }
12105
 
12106
    public boolean equals(changeAgentRole_result that) {
12107
      if (that == null)
12108
        return false;
12109
 
12110
      return true;
12111
    }
12112
 
12113
    @Override
12114
    public int hashCode() {
12115
      return 0;
12116
    }
12117
 
12118
    public int compareTo(changeAgentRole_result other) {
12119
      if (!getClass().equals(other.getClass())) {
12120
        return getClass().getName().compareTo(other.getClass().getName());
12121
      }
12122
 
12123
      int lastComparison = 0;
12124
      changeAgentRole_result typedOther = (changeAgentRole_result)other;
12125
 
12126
      return 0;
12127
    }
12128
 
12129
    public _Fields fieldForId(int fieldId) {
12130
      return _Fields.findByThriftId(fieldId);
12131
    }
12132
 
12133
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12134
      org.apache.thrift.protocol.TField field;
12135
      iprot.readStructBegin();
12136
      while (true)
12137
      {
12138
        field = iprot.readFieldBegin();
12139
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12140
          break;
12141
        }
12142
        switch (field.id) {
12143
          default:
12144
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12145
        }
12146
        iprot.readFieldEnd();
12147
      }
12148
      iprot.readStructEnd();
12149
      validate();
12150
    }
12151
 
12152
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12153
      oprot.writeStructBegin(STRUCT_DESC);
12154
 
12155
      oprot.writeFieldStop();
12156
      oprot.writeStructEnd();
12157
    }
12158
 
12159
    @Override
12160
    public String toString() {
12161
      StringBuilder sb = new StringBuilder("changeAgentRole_result(");
12162
      boolean first = true;
12163
 
12164
      sb.append(")");
12165
      return sb.toString();
12166
    }
12167
 
12168
    public void validate() throws org.apache.thrift.TException {
12169
      // check for required fields
12170
    }
12171
 
12172
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12173
      try {
12174
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12175
      } catch (org.apache.thrift.TException te) {
12176
        throw new java.io.IOException(te);
12177
      }
12178
    }
12179
 
12180
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12181
      try {
12182
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12183
      } catch (org.apache.thrift.TException te) {
12184
        throw new java.io.IOException(te);
12185
      }
12186
    }
12187
 
12188
  }
12189
 
12190
  public static class getOpenTicketCountForAgent_args implements org.apache.thrift.TBase<getOpenTicketCountForAgent_args, getOpenTicketCountForAgent_args._Fields>, java.io.Serializable, Cloneable   {
12191
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_args");
12192
 
12193
    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);
12194
 
12195
    private long agentId; // required
12196
 
12197
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12198
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12199
      AGENT_ID((short)1, "agentId");
12200
 
12201
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12202
 
12203
      static {
12204
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12205
          byName.put(field.getFieldName(), field);
12206
        }
12207
      }
12208
 
12209
      /**
12210
       * Find the _Fields constant that matches fieldId, or null if its not found.
12211
       */
12212
      public static _Fields findByThriftId(int fieldId) {
12213
        switch(fieldId) {
12214
          case 1: // AGENT_ID
12215
            return AGENT_ID;
12216
          default:
12217
            return null;
12218
        }
12219
      }
12220
 
12221
      /**
12222
       * Find the _Fields constant that matches fieldId, throwing an exception
12223
       * if it is not found.
12224
       */
12225
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12226
        _Fields fields = findByThriftId(fieldId);
12227
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12228
        return fields;
12229
      }
12230
 
12231
      /**
12232
       * Find the _Fields constant that matches name, or null if its not found.
12233
       */
12234
      public static _Fields findByName(String name) {
12235
        return byName.get(name);
12236
      }
12237
 
12238
      private final short _thriftId;
12239
      private final String _fieldName;
12240
 
12241
      _Fields(short thriftId, String fieldName) {
12242
        _thriftId = thriftId;
12243
        _fieldName = fieldName;
12244
      }
12245
 
12246
      public short getThriftFieldId() {
12247
        return _thriftId;
12248
      }
12249
 
12250
      public String getFieldName() {
12251
        return _fieldName;
12252
      }
12253
    }
12254
 
12255
    // isset id assignments
12256
    private static final int __AGENTID_ISSET_ID = 0;
12257
    private BitSet __isset_bit_vector = new BitSet(1);
12258
 
12259
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12260
    static {
12261
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12262
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12263
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12264
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12265
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_args.class, metaDataMap);
12266
    }
12267
 
12268
    public getOpenTicketCountForAgent_args() {
12269
    }
12270
 
12271
    public getOpenTicketCountForAgent_args(
12272
      long agentId)
12273
    {
12274
      this();
12275
      this.agentId = agentId;
12276
      setAgentIdIsSet(true);
12277
    }
12278
 
12279
    /**
12280
     * Performs a deep copy on <i>other</i>.
12281
     */
12282
    public getOpenTicketCountForAgent_args(getOpenTicketCountForAgent_args other) {
12283
      __isset_bit_vector.clear();
12284
      __isset_bit_vector.or(other.__isset_bit_vector);
12285
      this.agentId = other.agentId;
12286
    }
12287
 
12288
    public getOpenTicketCountForAgent_args deepCopy() {
12289
      return new getOpenTicketCountForAgent_args(this);
12290
    }
12291
 
12292
    @Override
12293
    public void clear() {
12294
      setAgentIdIsSet(false);
12295
      this.agentId = 0;
12296
    }
12297
 
12298
    public long getAgentId() {
12299
      return this.agentId;
12300
    }
12301
 
12302
    public void setAgentId(long agentId) {
12303
      this.agentId = agentId;
12304
      setAgentIdIsSet(true);
12305
    }
12306
 
12307
    public void unsetAgentId() {
12308
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
12309
    }
12310
 
12311
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
12312
    public boolean isSetAgentId() {
12313
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
12314
    }
12315
 
12316
    public void setAgentIdIsSet(boolean value) {
12317
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
12318
    }
12319
 
12320
    public void setFieldValue(_Fields field, Object value) {
12321
      switch (field) {
12322
      case AGENT_ID:
12323
        if (value == null) {
12324
          unsetAgentId();
12325
        } else {
12326
          setAgentId((Long)value);
12327
        }
12328
        break;
12329
 
12330
      }
12331
    }
12332
 
12333
    public Object getFieldValue(_Fields field) {
12334
      switch (field) {
12335
      case AGENT_ID:
12336
        return Long.valueOf(getAgentId());
12337
 
12338
      }
12339
      throw new IllegalStateException();
12340
    }
12341
 
12342
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12343
    public boolean isSet(_Fields field) {
12344
      if (field == null) {
12345
        throw new IllegalArgumentException();
12346
      }
12347
 
12348
      switch (field) {
12349
      case AGENT_ID:
12350
        return isSetAgentId();
12351
      }
12352
      throw new IllegalStateException();
12353
    }
12354
 
12355
    @Override
12356
    public boolean equals(Object that) {
12357
      if (that == null)
12358
        return false;
12359
      if (that instanceof getOpenTicketCountForAgent_args)
12360
        return this.equals((getOpenTicketCountForAgent_args)that);
12361
      return false;
12362
    }
12363
 
12364
    public boolean equals(getOpenTicketCountForAgent_args that) {
12365
      if (that == null)
12366
        return false;
12367
 
12368
      boolean this_present_agentId = true;
12369
      boolean that_present_agentId = true;
12370
      if (this_present_agentId || that_present_agentId) {
12371
        if (!(this_present_agentId && that_present_agentId))
12372
          return false;
12373
        if (this.agentId != that.agentId)
12374
          return false;
12375
      }
12376
 
12377
      return true;
12378
    }
12379
 
12380
    @Override
12381
    public int hashCode() {
12382
      return 0;
12383
    }
12384
 
12385
    public int compareTo(getOpenTicketCountForAgent_args other) {
12386
      if (!getClass().equals(other.getClass())) {
12387
        return getClass().getName().compareTo(other.getClass().getName());
12388
      }
12389
 
12390
      int lastComparison = 0;
12391
      getOpenTicketCountForAgent_args typedOther = (getOpenTicketCountForAgent_args)other;
12392
 
12393
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
12394
      if (lastComparison != 0) {
12395
        return lastComparison;
12396
      }
12397
      if (isSetAgentId()) {
12398
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
12399
        if (lastComparison != 0) {
12400
          return lastComparison;
12401
        }
12402
      }
12403
      return 0;
12404
    }
12405
 
12406
    public _Fields fieldForId(int fieldId) {
12407
      return _Fields.findByThriftId(fieldId);
12408
    }
12409
 
12410
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12411
      org.apache.thrift.protocol.TField field;
12412
      iprot.readStructBegin();
12413
      while (true)
12414
      {
12415
        field = iprot.readFieldBegin();
12416
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12417
          break;
12418
        }
12419
        switch (field.id) {
12420
          case 1: // AGENT_ID
12421
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12422
              this.agentId = iprot.readI64();
12423
              setAgentIdIsSet(true);
12424
            } else { 
12425
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12426
            }
12427
            break;
12428
          default:
12429
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12430
        }
12431
        iprot.readFieldEnd();
12432
      }
12433
      iprot.readStructEnd();
12434
      validate();
12435
    }
12436
 
12437
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12438
      validate();
12439
 
12440
      oprot.writeStructBegin(STRUCT_DESC);
12441
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
12442
      oprot.writeI64(this.agentId);
12443
      oprot.writeFieldEnd();
12444
      oprot.writeFieldStop();
12445
      oprot.writeStructEnd();
12446
    }
12447
 
12448
    @Override
12449
    public String toString() {
12450
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_args(");
12451
      boolean first = true;
12452
 
12453
      sb.append("agentId:");
12454
      sb.append(this.agentId);
12455
      first = false;
12456
      sb.append(")");
12457
      return sb.toString();
12458
    }
12459
 
12460
    public void validate() throws org.apache.thrift.TException {
12461
      // check for required fields
12462
    }
12463
 
12464
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12465
      try {
12466
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12467
      } catch (org.apache.thrift.TException te) {
12468
        throw new java.io.IOException(te);
12469
      }
12470
    }
12471
 
12472
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12473
      try {
12474
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12475
        __isset_bit_vector = new BitSet(1);
12476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12477
      } catch (org.apache.thrift.TException te) {
12478
        throw new java.io.IOException(te);
12479
      }
12480
    }
12481
 
12482
  }
12483
 
12484
  public static class getOpenTicketCountForAgent_result implements org.apache.thrift.TBase<getOpenTicketCountForAgent_result, getOpenTicketCountForAgent_result._Fields>, java.io.Serializable, Cloneable   {
12485
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_result");
12486
 
12487
    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);
12488
 
12489
    private int success; // required
12490
 
12491
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12492
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12493
      SUCCESS((short)0, "success");
12494
 
12495
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12496
 
12497
      static {
12498
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12499
          byName.put(field.getFieldName(), field);
12500
        }
12501
      }
12502
 
12503
      /**
12504
       * Find the _Fields constant that matches fieldId, or null if its not found.
12505
       */
12506
      public static _Fields findByThriftId(int fieldId) {
12507
        switch(fieldId) {
12508
          case 0: // SUCCESS
12509
            return SUCCESS;
12510
          default:
12511
            return null;
12512
        }
12513
      }
12514
 
12515
      /**
12516
       * Find the _Fields constant that matches fieldId, throwing an exception
12517
       * if it is not found.
12518
       */
12519
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12520
        _Fields fields = findByThriftId(fieldId);
12521
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12522
        return fields;
12523
      }
12524
 
12525
      /**
12526
       * Find the _Fields constant that matches name, or null if its not found.
12527
       */
12528
      public static _Fields findByName(String name) {
12529
        return byName.get(name);
12530
      }
12531
 
12532
      private final short _thriftId;
12533
      private final String _fieldName;
12534
 
12535
      _Fields(short thriftId, String fieldName) {
12536
        _thriftId = thriftId;
12537
        _fieldName = fieldName;
12538
      }
12539
 
12540
      public short getThriftFieldId() {
12541
        return _thriftId;
12542
      }
12543
 
12544
      public String getFieldName() {
12545
        return _fieldName;
12546
      }
12547
    }
12548
 
12549
    // isset id assignments
12550
    private static final int __SUCCESS_ISSET_ID = 0;
12551
    private BitSet __isset_bit_vector = new BitSet(1);
12552
 
12553
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12554
    static {
12555
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12556
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12557
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12558
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12559
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_result.class, metaDataMap);
12560
    }
12561
 
12562
    public getOpenTicketCountForAgent_result() {
12563
    }
12564
 
12565
    public getOpenTicketCountForAgent_result(
12566
      int success)
12567
    {
12568
      this();
12569
      this.success = success;
12570
      setSuccessIsSet(true);
12571
    }
12572
 
12573
    /**
12574
     * Performs a deep copy on <i>other</i>.
12575
     */
12576
    public getOpenTicketCountForAgent_result(getOpenTicketCountForAgent_result other) {
12577
      __isset_bit_vector.clear();
12578
      __isset_bit_vector.or(other.__isset_bit_vector);
12579
      this.success = other.success;
12580
    }
12581
 
12582
    public getOpenTicketCountForAgent_result deepCopy() {
12583
      return new getOpenTicketCountForAgent_result(this);
12584
    }
12585
 
12586
    @Override
12587
    public void clear() {
12588
      setSuccessIsSet(false);
12589
      this.success = 0;
12590
    }
12591
 
12592
    public int getSuccess() {
12593
      return this.success;
12594
    }
12595
 
12596
    public void setSuccess(int success) {
12597
      this.success = success;
12598
      setSuccessIsSet(true);
12599
    }
12600
 
12601
    public void unsetSuccess() {
12602
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12603
    }
12604
 
12605
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12606
    public boolean isSetSuccess() {
12607
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12608
    }
12609
 
12610
    public void setSuccessIsSet(boolean value) {
12611
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12612
    }
12613
 
12614
    public void setFieldValue(_Fields field, Object value) {
12615
      switch (field) {
12616
      case SUCCESS:
12617
        if (value == null) {
12618
          unsetSuccess();
12619
        } else {
12620
          setSuccess((Integer)value);
12621
        }
12622
        break;
12623
 
12624
      }
12625
    }
12626
 
12627
    public Object getFieldValue(_Fields field) {
12628
      switch (field) {
12629
      case SUCCESS:
12630
        return Integer.valueOf(getSuccess());
12631
 
12632
      }
12633
      throw new IllegalStateException();
12634
    }
12635
 
12636
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12637
    public boolean isSet(_Fields field) {
12638
      if (field == null) {
12639
        throw new IllegalArgumentException();
12640
      }
12641
 
12642
      switch (field) {
12643
      case SUCCESS:
12644
        return isSetSuccess();
12645
      }
12646
      throw new IllegalStateException();
12647
    }
12648
 
12649
    @Override
12650
    public boolean equals(Object that) {
12651
      if (that == null)
12652
        return false;
12653
      if (that instanceof getOpenTicketCountForAgent_result)
12654
        return this.equals((getOpenTicketCountForAgent_result)that);
12655
      return false;
12656
    }
12657
 
12658
    public boolean equals(getOpenTicketCountForAgent_result that) {
12659
      if (that == null)
12660
        return false;
12661
 
12662
      boolean this_present_success = true;
12663
      boolean that_present_success = true;
12664
      if (this_present_success || that_present_success) {
12665
        if (!(this_present_success && that_present_success))
12666
          return false;
12667
        if (this.success != that.success)
12668
          return false;
12669
      }
12670
 
12671
      return true;
12672
    }
12673
 
12674
    @Override
12675
    public int hashCode() {
12676
      return 0;
12677
    }
12678
 
12679
    public int compareTo(getOpenTicketCountForAgent_result other) {
12680
      if (!getClass().equals(other.getClass())) {
12681
        return getClass().getName().compareTo(other.getClass().getName());
12682
      }
12683
 
12684
      int lastComparison = 0;
12685
      getOpenTicketCountForAgent_result typedOther = (getOpenTicketCountForAgent_result)other;
12686
 
12687
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12688
      if (lastComparison != 0) {
12689
        return lastComparison;
12690
      }
12691
      if (isSetSuccess()) {
12692
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12693
        if (lastComparison != 0) {
12694
          return lastComparison;
12695
        }
12696
      }
12697
      return 0;
12698
    }
12699
 
12700
    public _Fields fieldForId(int fieldId) {
12701
      return _Fields.findByThriftId(fieldId);
12702
    }
12703
 
12704
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12705
      org.apache.thrift.protocol.TField field;
12706
      iprot.readStructBegin();
12707
      while (true)
12708
      {
12709
        field = iprot.readFieldBegin();
12710
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12711
          break;
12712
        }
12713
        switch (field.id) {
12714
          case 0: // SUCCESS
12715
            if (field.type == org.apache.thrift.protocol.TType.I32) {
12716
              this.success = iprot.readI32();
12717
              setSuccessIsSet(true);
12718
            } else { 
12719
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12720
            }
12721
            break;
12722
          default:
12723
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12724
        }
12725
        iprot.readFieldEnd();
12726
      }
12727
      iprot.readStructEnd();
12728
      validate();
12729
    }
12730
 
12731
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12732
      oprot.writeStructBegin(STRUCT_DESC);
12733
 
12734
      if (this.isSetSuccess()) {
12735
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12736
        oprot.writeI32(this.success);
12737
        oprot.writeFieldEnd();
12738
      }
12739
      oprot.writeFieldStop();
12740
      oprot.writeStructEnd();
12741
    }
12742
 
12743
    @Override
12744
    public String toString() {
12745
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_result(");
12746
      boolean first = true;
12747
 
12748
      sb.append("success:");
12749
      sb.append(this.success);
12750
      first = false;
12751
      sb.append(")");
12752
      return sb.toString();
12753
    }
12754
 
12755
    public void validate() throws org.apache.thrift.TException {
12756
      // check for required fields
12757
    }
12758
 
12759
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12760
      try {
12761
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12762
      } catch (org.apache.thrift.TException te) {
12763
        throw new java.io.IOException(te);
12764
      }
12765
    }
12766
 
12767
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12768
      try {
12769
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12770
      } catch (org.apache.thrift.TException te) {
12771
        throw new java.io.IOException(te);
12772
      }
12773
    }
12774
 
12775
  }
12776
 
5909 amar.kumar 12777
  public static class getOpenTicketsMap_args implements org.apache.thrift.TBase<getOpenTicketsMap_args, getOpenTicketsMap_args._Fields>, java.io.Serializable, Cloneable   {
12778
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketsMap_args");
12779
 
12780
 
12781
 
12782
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12783
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12784
;
12785
 
12786
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12787
 
12788
      static {
12789
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12790
          byName.put(field.getFieldName(), field);
12791
        }
12792
      }
12793
 
12794
      /**
12795
       * Find the _Fields constant that matches fieldId, or null if its not found.
12796
       */
12797
      public static _Fields findByThriftId(int fieldId) {
12798
        switch(fieldId) {
12799
          default:
12800
            return null;
12801
        }
12802
      }
12803
 
12804
      /**
12805
       * Find the _Fields constant that matches fieldId, throwing an exception
12806
       * if it is not found.
12807
       */
12808
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12809
        _Fields fields = findByThriftId(fieldId);
12810
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12811
        return fields;
12812
      }
12813
 
12814
      /**
12815
       * Find the _Fields constant that matches name, or null if its not found.
12816
       */
12817
      public static _Fields findByName(String name) {
12818
        return byName.get(name);
12819
      }
12820
 
12821
      private final short _thriftId;
12822
      private final String _fieldName;
12823
 
12824
      _Fields(short thriftId, String fieldName) {
12825
        _thriftId = thriftId;
12826
        _fieldName = fieldName;
12827
      }
12828
 
12829
      public short getThriftFieldId() {
12830
        return _thriftId;
12831
      }
12832
 
12833
      public String getFieldName() {
12834
        return _fieldName;
12835
      }
12836
    }
12837
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12838
    static {
12839
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12840
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12841
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketsMap_args.class, metaDataMap);
12842
    }
12843
 
12844
    public getOpenTicketsMap_args() {
12845
    }
12846
 
12847
    /**
12848
     * Performs a deep copy on <i>other</i>.
12849
     */
12850
    public getOpenTicketsMap_args(getOpenTicketsMap_args other) {
12851
    }
12852
 
12853
    public getOpenTicketsMap_args deepCopy() {
12854
      return new getOpenTicketsMap_args(this);
12855
    }
12856
 
12857
    @Override
12858
    public void clear() {
12859
    }
12860
 
12861
    public void setFieldValue(_Fields field, Object value) {
12862
      switch (field) {
12863
      }
12864
    }
12865
 
12866
    public Object getFieldValue(_Fields field) {
12867
      switch (field) {
12868
      }
12869
      throw new IllegalStateException();
12870
    }
12871
 
12872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12873
    public boolean isSet(_Fields field) {
12874
      if (field == null) {
12875
        throw new IllegalArgumentException();
12876
      }
12877
 
12878
      switch (field) {
12879
      }
12880
      throw new IllegalStateException();
12881
    }
12882
 
12883
    @Override
12884
    public boolean equals(Object that) {
12885
      if (that == null)
12886
        return false;
12887
      if (that instanceof getOpenTicketsMap_args)
12888
        return this.equals((getOpenTicketsMap_args)that);
12889
      return false;
12890
    }
12891
 
12892
    public boolean equals(getOpenTicketsMap_args that) {
12893
      if (that == null)
12894
        return false;
12895
 
12896
      return true;
12897
    }
12898
 
12899
    @Override
12900
    public int hashCode() {
12901
      return 0;
12902
    }
12903
 
12904
    public int compareTo(getOpenTicketsMap_args other) {
12905
      if (!getClass().equals(other.getClass())) {
12906
        return getClass().getName().compareTo(other.getClass().getName());
12907
      }
12908
 
12909
      int lastComparison = 0;
12910
      getOpenTicketsMap_args typedOther = (getOpenTicketsMap_args)other;
12911
 
12912
      return 0;
12913
    }
12914
 
12915
    public _Fields fieldForId(int fieldId) {
12916
      return _Fields.findByThriftId(fieldId);
12917
    }
12918
 
12919
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12920
      org.apache.thrift.protocol.TField field;
12921
      iprot.readStructBegin();
12922
      while (true)
12923
      {
12924
        field = iprot.readFieldBegin();
12925
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12926
          break;
12927
        }
12928
        switch (field.id) {
12929
          default:
12930
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12931
        }
12932
        iprot.readFieldEnd();
12933
      }
12934
      iprot.readStructEnd();
12935
      validate();
12936
    }
12937
 
12938
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12939
      validate();
12940
 
12941
      oprot.writeStructBegin(STRUCT_DESC);
12942
      oprot.writeFieldStop();
12943
      oprot.writeStructEnd();
12944
    }
12945
 
12946
    @Override
12947
    public String toString() {
12948
      StringBuilder sb = new StringBuilder("getOpenTicketsMap_args(");
12949
      boolean first = true;
12950
 
12951
      sb.append(")");
12952
      return sb.toString();
12953
    }
12954
 
12955
    public void validate() throws org.apache.thrift.TException {
12956
      // check for required fields
12957
    }
12958
 
12959
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12960
      try {
12961
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12962
      } catch (org.apache.thrift.TException te) {
12963
        throw new java.io.IOException(te);
12964
      }
12965
    }
12966
 
12967
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12968
      try {
12969
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12970
      } catch (org.apache.thrift.TException te) {
12971
        throw new java.io.IOException(te);
12972
      }
12973
    }
12974
 
12975
  }
12976
 
12977
  public static class getOpenTicketsMap_result implements org.apache.thrift.TBase<getOpenTicketsMap_result, getOpenTicketsMap_result._Fields>, java.io.Serializable, Cloneable   {
12978
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketsMap_result");
12979
 
12980
    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);
12981
 
12982
    private Map<String,Long> success; // required
12983
 
12984
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12985
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12986
      SUCCESS((short)0, "success");
12987
 
12988
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12989
 
12990
      static {
12991
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12992
          byName.put(field.getFieldName(), field);
12993
        }
12994
      }
12995
 
12996
      /**
12997
       * Find the _Fields constant that matches fieldId, or null if its not found.
12998
       */
12999
      public static _Fields findByThriftId(int fieldId) {
13000
        switch(fieldId) {
13001
          case 0: // SUCCESS
13002
            return SUCCESS;
13003
          default:
13004
            return null;
13005
        }
13006
      }
13007
 
13008
      /**
13009
       * Find the _Fields constant that matches fieldId, throwing an exception
13010
       * if it is not found.
13011
       */
13012
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13013
        _Fields fields = findByThriftId(fieldId);
13014
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13015
        return fields;
13016
      }
13017
 
13018
      /**
13019
       * Find the _Fields constant that matches name, or null if its not found.
13020
       */
13021
      public static _Fields findByName(String name) {
13022
        return byName.get(name);
13023
      }
13024
 
13025
      private final short _thriftId;
13026
      private final String _fieldName;
13027
 
13028
      _Fields(short thriftId, String fieldName) {
13029
        _thriftId = thriftId;
13030
        _fieldName = fieldName;
13031
      }
13032
 
13033
      public short getThriftFieldId() {
13034
        return _thriftId;
13035
      }
13036
 
13037
      public String getFieldName() {
13038
        return _fieldName;
13039
      }
13040
    }
13041
 
13042
    // isset id assignments
13043
 
13044
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13045
    static {
13046
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13047
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13048
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
13049
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
13050
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
13051
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13052
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketsMap_result.class, metaDataMap);
13053
    }
13054
 
13055
    public getOpenTicketsMap_result() {
13056
    }
13057
 
13058
    public getOpenTicketsMap_result(
13059
      Map<String,Long> success)
13060
    {
13061
      this();
13062
      this.success = success;
13063
    }
13064
 
13065
    /**
13066
     * Performs a deep copy on <i>other</i>.
13067
     */
13068
    public getOpenTicketsMap_result(getOpenTicketsMap_result other) {
13069
      if (other.isSetSuccess()) {
13070
        Map<String,Long> __this__success = new HashMap<String,Long>();
13071
        for (Map.Entry<String, Long> other_element : other.success.entrySet()) {
13072
 
13073
          String other_element_key = other_element.getKey();
13074
          Long other_element_value = other_element.getValue();
13075
 
13076
          String __this__success_copy_key = other_element_key;
13077
 
13078
          Long __this__success_copy_value = other_element_value;
13079
 
13080
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
13081
        }
13082
        this.success = __this__success;
13083
      }
13084
    }
13085
 
13086
    public getOpenTicketsMap_result deepCopy() {
13087
      return new getOpenTicketsMap_result(this);
13088
    }
13089
 
13090
    @Override
13091
    public void clear() {
13092
      this.success = null;
13093
    }
13094
 
13095
    public int getSuccessSize() {
13096
      return (this.success == null) ? 0 : this.success.size();
13097
    }
13098
 
13099
    public void putToSuccess(String key, long val) {
13100
      if (this.success == null) {
13101
        this.success = new HashMap<String,Long>();
13102
      }
13103
      this.success.put(key, val);
13104
    }
13105
 
13106
    public Map<String,Long> getSuccess() {
13107
      return this.success;
13108
    }
13109
 
13110
    public void setSuccess(Map<String,Long> success) {
13111
      this.success = success;
13112
    }
13113
 
13114
    public void unsetSuccess() {
13115
      this.success = null;
13116
    }
13117
 
13118
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13119
    public boolean isSetSuccess() {
13120
      return this.success != null;
13121
    }
13122
 
13123
    public void setSuccessIsSet(boolean value) {
13124
      if (!value) {
13125
        this.success = null;
13126
      }
13127
    }
13128
 
13129
    public void setFieldValue(_Fields field, Object value) {
13130
      switch (field) {
13131
      case SUCCESS:
13132
        if (value == null) {
13133
          unsetSuccess();
13134
        } else {
13135
          setSuccess((Map<String,Long>)value);
13136
        }
13137
        break;
13138
 
13139
      }
13140
    }
13141
 
13142
    public Object getFieldValue(_Fields field) {
13143
      switch (field) {
13144
      case SUCCESS:
13145
        return getSuccess();
13146
 
13147
      }
13148
      throw new IllegalStateException();
13149
    }
13150
 
13151
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13152
    public boolean isSet(_Fields field) {
13153
      if (field == null) {
13154
        throw new IllegalArgumentException();
13155
      }
13156
 
13157
      switch (field) {
13158
      case SUCCESS:
13159
        return isSetSuccess();
13160
      }
13161
      throw new IllegalStateException();
13162
    }
13163
 
13164
    @Override
13165
    public boolean equals(Object that) {
13166
      if (that == null)
13167
        return false;
13168
      if (that instanceof getOpenTicketsMap_result)
13169
        return this.equals((getOpenTicketsMap_result)that);
13170
      return false;
13171
    }
13172
 
13173
    public boolean equals(getOpenTicketsMap_result that) {
13174
      if (that == null)
13175
        return false;
13176
 
13177
      boolean this_present_success = true && this.isSetSuccess();
13178
      boolean that_present_success = true && that.isSetSuccess();
13179
      if (this_present_success || that_present_success) {
13180
        if (!(this_present_success && that_present_success))
13181
          return false;
13182
        if (!this.success.equals(that.success))
13183
          return false;
13184
      }
13185
 
13186
      return true;
13187
    }
13188
 
13189
    @Override
13190
    public int hashCode() {
13191
      return 0;
13192
    }
13193
 
13194
    public int compareTo(getOpenTicketsMap_result other) {
13195
      if (!getClass().equals(other.getClass())) {
13196
        return getClass().getName().compareTo(other.getClass().getName());
13197
      }
13198
 
13199
      int lastComparison = 0;
13200
      getOpenTicketsMap_result typedOther = (getOpenTicketsMap_result)other;
13201
 
13202
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13203
      if (lastComparison != 0) {
13204
        return lastComparison;
13205
      }
13206
      if (isSetSuccess()) {
13207
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13208
        if (lastComparison != 0) {
13209
          return lastComparison;
13210
        }
13211
      }
13212
      return 0;
13213
    }
13214
 
13215
    public _Fields fieldForId(int fieldId) {
13216
      return _Fields.findByThriftId(fieldId);
13217
    }
13218
 
13219
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13220
      org.apache.thrift.protocol.TField field;
13221
      iprot.readStructBegin();
13222
      while (true)
13223
      {
13224
        field = iprot.readFieldBegin();
13225
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13226
          break;
13227
        }
13228
        switch (field.id) {
13229
          case 0: // SUCCESS
13230
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
13231
              {
13232
                org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin();
13233
                this.success = new HashMap<String,Long>(2*_map48.size);
13234
                for (int _i49 = 0; _i49 < _map48.size; ++_i49)
13235
                {
13236
                  String _key50; // required
13237
                  long _val51; // required
13238
                  _key50 = iprot.readString();
13239
                  _val51 = iprot.readI64();
13240
                  this.success.put(_key50, _val51);
13241
                }
13242
                iprot.readMapEnd();
13243
              }
13244
            } else { 
13245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13246
            }
13247
            break;
13248
          default:
13249
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13250
        }
13251
        iprot.readFieldEnd();
13252
      }
13253
      iprot.readStructEnd();
13254
      validate();
13255
    }
13256
 
13257
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13258
      oprot.writeStructBegin(STRUCT_DESC);
13259
 
13260
      if (this.isSetSuccess()) {
13261
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13262
        {
13263
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.success.size()));
13264
          for (Map.Entry<String, Long> _iter52 : this.success.entrySet())
13265
          {
13266
            oprot.writeString(_iter52.getKey());
13267
            oprot.writeI64(_iter52.getValue());
13268
          }
13269
          oprot.writeMapEnd();
13270
        }
13271
        oprot.writeFieldEnd();
13272
      }
13273
      oprot.writeFieldStop();
13274
      oprot.writeStructEnd();
13275
    }
13276
 
13277
    @Override
13278
    public String toString() {
13279
      StringBuilder sb = new StringBuilder("getOpenTicketsMap_result(");
13280
      boolean first = true;
13281
 
13282
      sb.append("success:");
13283
      if (this.success == null) {
13284
        sb.append("null");
13285
      } else {
13286
        sb.append(this.success);
13287
      }
13288
      first = false;
13289
      sb.append(")");
13290
      return sb.toString();
13291
    }
13292
 
13293
    public void validate() throws org.apache.thrift.TException {
13294
      // check for required fields
13295
    }
13296
 
13297
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13298
      try {
13299
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13300
      } catch (org.apache.thrift.TException te) {
13301
        throw new java.io.IOException(te);
13302
      }
13303
    }
13304
 
13305
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13306
      try {
13307
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13308
      } catch (org.apache.thrift.TException te) {
13309
        throw new java.io.IOException(te);
13310
      }
13311
    }
13312
 
13313
  }
13314
 
3028 mandeep.dh 13315
}