Subversion Repositories SmartDukaan

Rev

Rev 5169 | Rev 5909 | 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
 
3028 mandeep.dh 65
  }
66
 
3430 rajveer 67
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
68
 
69
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
70
 
71
    public void getUnassignedTickets(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUnassignedTickets_call> resultHandler) throws org.apache.thrift.TException;
72
 
73
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTicket_call> resultHandler) throws org.apache.thrift.TException;
74
 
75
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertTicket_call> resultHandler) throws org.apache.thrift.TException;
76
 
4793 amar.kumar 77
    public void unassignAgentTickets(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.unassignAgentTickets_call> resultHandler) throws org.apache.thrift.TException;
78
 
3430 rajveer 79
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivities_call> resultHandler) throws org.apache.thrift.TException;
80
 
81
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertActivity_call> resultHandler) throws org.apache.thrift.TException;
82
 
83
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAsRead_call> resultHandler) throws org.apache.thrift.TException;
84
 
85
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
86
 
5287 amar.kumar 87
    public void getInactiveAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInactiveAgents_call> resultHandler) throws org.apache.thrift.TException;
88
 
3430 rajveer 89
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
90
 
91
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
92
 
93
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
94
 
95
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
96
 
97
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
98
 
4793 amar.kumar 99
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException;
100
 
101
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertAgent_call> resultHandler) throws org.apache.thrift.TException;
102
 
5169 amar.kumar 103
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentRole_call> resultHandler) throws org.apache.thrift.TException;
104
 
105
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException;
106
 
3430 rajveer 107
  }
108
 
3374 rajveer 109
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 110
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
111
      public Factory() {}
112
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
113
        return new Client(prot);
114
      }
115
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
116
        return new Client(iprot, oprot);
117
      }
118
    }
119
 
120
    public Client(org.apache.thrift.protocol.TProtocol prot)
3028 mandeep.dh 121
    {
3430 rajveer 122
      super(prot, prot);
3028 mandeep.dh 123
    }
124
 
3430 rajveer 125
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 126
      super(iprot, oprot);
3028 mandeep.dh 127
    }
128
 
3430 rajveer 129
    public List<Ticket> getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 130
    {
3390 mandeep.dh 131
      send_getTickets(searchFilter);
3028 mandeep.dh 132
      return recv_getTickets();
133
    }
134
 
3430 rajveer 135
    public void send_getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 136
    {
137
      getTickets_args args = new getTickets_args();
3430 rajveer 138
      args.setSearchFilter(searchFilter);
139
      sendBase("getTickets", args);
3028 mandeep.dh 140
    }
141
 
3430 rajveer 142
    public List<Ticket> recv_getTickets() throws org.apache.thrift.TException
3028 mandeep.dh 143
    {
144
      getTickets_result result = new getTickets_result();
3430 rajveer 145
      receiveBase(result, "getTickets");
3028 mandeep.dh 146
      if (result.isSetSuccess()) {
147
        return result.success;
148
      }
3430 rajveer 149
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
3028 mandeep.dh 150
    }
151
 
3430 rajveer 152
    public List<Ticket> getUnassignedTickets() throws org.apache.thrift.TException
3087 mandeep.dh 153
    {
3137 mandeep.dh 154
      send_getUnassignedTickets();
155
      return recv_getUnassignedTickets();
3087 mandeep.dh 156
    }
157
 
3430 rajveer 158
    public void send_getUnassignedTickets() throws org.apache.thrift.TException
3087 mandeep.dh 159
    {
3137 mandeep.dh 160
      getUnassignedTickets_args args = new getUnassignedTickets_args();
3430 rajveer 161
      sendBase("getUnassignedTickets", args);
3087 mandeep.dh 162
    }
163
 
3430 rajveer 164
    public List<Ticket> recv_getUnassignedTickets() throws org.apache.thrift.TException
3087 mandeep.dh 165
    {
3137 mandeep.dh 166
      getUnassignedTickets_result result = new getUnassignedTickets_result();
3430 rajveer 167
      receiveBase(result, "getUnassignedTickets");
3087 mandeep.dh 168
      if (result.isSetSuccess()) {
169
        return result.success;
170
      }
3430 rajveer 171
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
3087 mandeep.dh 172
    }
173
 
3430 rajveer 174
    public void updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 175
    {
3206 mandeep.dh 176
      send_updateTicket(ticket, activity);
3028 mandeep.dh 177
      recv_updateTicket();
178
    }
179
 
3430 rajveer 180
    public void send_updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 181
    {
182
      updateTicket_args args = new updateTicket_args();
3430 rajveer 183
      args.setTicket(ticket);
184
      args.setActivity(activity);
185
      sendBase("updateTicket", args);
3028 mandeep.dh 186
    }
187
 
3430 rajveer 188
    public void recv_updateTicket() throws org.apache.thrift.TException
3028 mandeep.dh 189
    {
190
      updateTicket_result result = new updateTicket_result();
3430 rajveer 191
      receiveBase(result, "updateTicket");
3028 mandeep.dh 192
      return;
193
    }
194
 
3430 rajveer 195
    public long insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 196
    {
3206 mandeep.dh 197
      send_insertTicket(ticket, activity);
3028 mandeep.dh 198
      return recv_insertTicket();
199
    }
200
 
3430 rajveer 201
    public void send_insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 202
    {
203
      insertTicket_args args = new insertTicket_args();
3430 rajveer 204
      args.setTicket(ticket);
205
      args.setActivity(activity);
206
      sendBase("insertTicket", args);
3028 mandeep.dh 207
    }
208
 
3430 rajveer 209
    public long recv_insertTicket() throws org.apache.thrift.TException
3028 mandeep.dh 210
    {
211
      insertTicket_result result = new insertTicket_result();
3430 rajveer 212
      receiveBase(result, "insertTicket");
3028 mandeep.dh 213
      if (result.isSetSuccess()) {
214
        return result.success;
215
      }
3430 rajveer 216
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
3028 mandeep.dh 217
    }
218
 
4793 amar.kumar 219
    public void unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException
220
    {
221
      send_unassignAgentTickets(assigneeId);
222
      recv_unassignAgentTickets();
223
    }
224
 
225
    public void send_unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException
226
    {
227
      unassignAgentTickets_args args = new unassignAgentTickets_args();
228
      args.setAssigneeId(assigneeId);
229
      sendBase("unassignAgentTickets", args);
230
    }
231
 
232
    public void recv_unassignAgentTickets() throws org.apache.thrift.TException
233
    {
234
      unassignAgentTickets_result result = new unassignAgentTickets_result();
235
      receiveBase(result, "unassignAgentTickets");
236
      return;
237
    }
238
 
3430 rajveer 239
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 240
    {
3390 mandeep.dh 241
      send_getActivities(searchFilter);
3028 mandeep.dh 242
      return recv_getActivities();
243
    }
244
 
3430 rajveer 245
    public void send_getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 246
    {
247
      getActivities_args args = new getActivities_args();
3430 rajveer 248
      args.setSearchFilter(searchFilter);
249
      sendBase("getActivities", args);
3028 mandeep.dh 250
    }
251
 
3430 rajveer 252
    public List<Activity> recv_getActivities() throws org.apache.thrift.TException
3028 mandeep.dh 253
    {
254
      getActivities_result result = new getActivities_result();
3430 rajveer 255
      receiveBase(result, "getActivities");
3028 mandeep.dh 256
      if (result.isSetSuccess()) {
257
        return result.success;
258
      }
3430 rajveer 259
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
3028 mandeep.dh 260
    }
261
 
3430 rajveer 262
    public long insertActivity(Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 263
    {
264
      send_insertActivity(activity);
3405 mandeep.dh 265
      return recv_insertActivity();
3028 mandeep.dh 266
    }
267
 
3430 rajveer 268
    public void send_insertActivity(Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 269
    {
270
      insertActivity_args args = new insertActivity_args();
3430 rajveer 271
      args.setActivity(activity);
272
      sendBase("insertActivity", args);
3028 mandeep.dh 273
    }
274
 
3430 rajveer 275
    public long recv_insertActivity() throws org.apache.thrift.TException
3028 mandeep.dh 276
    {
277
      insertActivity_result result = new insertActivity_result();
3430 rajveer 278
      receiveBase(result, "insertActivity");
3405 mandeep.dh 279
      if (result.isSetSuccess()) {
280
        return result.success;
281
      }
3430 rajveer 282
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertActivity failed: unknown result");
3028 mandeep.dh 283
    }
284
 
3430 rajveer 285
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException
3087 mandeep.dh 286
    {
3390 mandeep.dh 287
      send_markAsRead(activityId, agentId);
288
      recv_markAsRead();
3087 mandeep.dh 289
    }
290
 
3430 rajveer 291
    public void send_markAsRead(long activityId, long agentId) throws org.apache.thrift.TException
3087 mandeep.dh 292
    {
3390 mandeep.dh 293
      markAsRead_args args = new markAsRead_args();
3430 rajveer 294
      args.setActivityId(activityId);
295
      args.setAgentId(agentId);
296
      sendBase("markAsRead", args);
3028 mandeep.dh 297
    }
298
 
3430 rajveer 299
    public void recv_markAsRead() throws org.apache.thrift.TException
3028 mandeep.dh 300
    {
3390 mandeep.dh 301
      markAsRead_result result = new markAsRead_result();
3430 rajveer 302
      receiveBase(result, "markAsRead");
3390 mandeep.dh 303
      return;
3028 mandeep.dh 304
    }
305
 
3430 rajveer 306
    public List<Agent> getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 307
    {
3390 mandeep.dh 308
      send_getAgents(searchFilter);
309
      return recv_getAgents();
3028 mandeep.dh 310
    }
311
 
3430 rajveer 312
    public void send_getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 313
    {
3390 mandeep.dh 314
      getAgents_args args = new getAgents_args();
3430 rajveer 315
      args.setSearchFilter(searchFilter);
316
      sendBase("getAgents", args);
3028 mandeep.dh 317
    }
318
 
3430 rajveer 319
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
3028 mandeep.dh 320
    {
3390 mandeep.dh 321
      getAgents_result result = new getAgents_result();
3430 rajveer 322
      receiveBase(result, "getAgents");
3028 mandeep.dh 323
      if (result.isSetSuccess()) {
324
        return result.success;
325
      }
3430 rajveer 326
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
3028 mandeep.dh 327
    }
328
 
5287 amar.kumar 329
    public List<Agent> getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
330
    {
331
      send_getInactiveAgents(searchFilter);
332
      return recv_getInactiveAgents();
333
    }
334
 
335
    public void send_getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
336
    {
337
      getInactiveAgents_args args = new getInactiveAgents_args();
338
      args.setSearchFilter(searchFilter);
339
      sendBase("getInactiveAgents", args);
340
    }
341
 
342
    public List<Agent> recv_getInactiveAgents() throws org.apache.thrift.TException
343
    {
344
      getInactiveAgents_result result = new getInactiveAgents_result();
345
      receiveBase(result, "getInactiveAgents");
346
      if (result.isSetSuccess()) {
347
        return result.success;
348
      }
349
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInactiveAgents failed: unknown result");
350
    }
351
 
3430 rajveer 352
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
3087 mandeep.dh 353
    {
354
      send_updatePasswordForAgent(agentEmailId, password);
355
      recv_updatePasswordForAgent();
356
    }
357
 
3430 rajveer 358
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
3087 mandeep.dh 359
    {
360
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
3430 rajveer 361
      args.setAgentEmailId(agentEmailId);
362
      args.setPassword(password);
363
      sendBase("updatePasswordForAgent", args);
3087 mandeep.dh 364
    }
365
 
3430 rajveer 366
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
3087 mandeep.dh 367
    {
368
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
3430 rajveer 369
      receiveBase(result, "updatePasswordForAgent");
3087 mandeep.dh 370
      return;
371
    }
372
 
3430 rajveer 373
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
3087 mandeep.dh 374
    {
375
      send_getRoleNamesForAgent(agentEmailId);
376
      return recv_getRoleNamesForAgent();
377
    }
378
 
3430 rajveer 379
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
3087 mandeep.dh 380
    {
381
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
3430 rajveer 382
      args.setAgentEmailId(agentEmailId);
383
      sendBase("getRoleNamesForAgent", args);
3087 mandeep.dh 384
    }
385
 
3430 rajveer 386
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
3087 mandeep.dh 387
    {
388
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
3430 rajveer 389
      receiveBase(result, "getRoleNamesForAgent");
3087 mandeep.dh 390
      if (result.isSetSuccess()) {
391
        return result.success;
392
      }
3430 rajveer 393
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
3087 mandeep.dh 394
    }
395
 
3430 rajveer 396
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
3087 mandeep.dh 397
    {
398
      send_getPermissionsForRoleName(roleName);
399
      return recv_getPermissionsForRoleName();
400
    }
401
 
3430 rajveer 402
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
3087 mandeep.dh 403
    {
404
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
3430 rajveer 405
      args.setRoleName(roleName);
406
      sendBase("getPermissionsForRoleName", args);
3087 mandeep.dh 407
    }
408
 
3430 rajveer 409
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
3087 mandeep.dh 410
    {
411
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
3430 rajveer 412
      receiveBase(result, "getPermissionsForRoleName");
3087 mandeep.dh 413
      if (result.isSetSuccess()) {
414
        return result.success;
415
      }
3430 rajveer 416
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
3087 mandeep.dh 417
    }
418
 
3430 rajveer 419
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 420
    {
421
      send_getLastEmailProcessedTimestamp();
422
      return recv_getLastEmailProcessedTimestamp();
423
    }
424
 
3430 rajveer 425
    public void send_getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 426
    {
427
      getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
3430 rajveer 428
      sendBase("getLastEmailProcessedTimestamp", args);
3339 mandeep.dh 429
    }
430
 
3430 rajveer 431
    public long recv_getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 432
    {
433
      getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
3430 rajveer 434
      receiveBase(result, "getLastEmailProcessedTimestamp");
3339 mandeep.dh 435
      if (result.isSetSuccess()) {
436
        return result.success;
437
      }
3430 rajveer 438
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");
3339 mandeep.dh 439
    }
440
 
3430 rajveer 441
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException
3339 mandeep.dh 442
    {
443
      send_updateLastEmailProcessedTimestamp(timestamp);
444
      recv_updateLastEmailProcessedTimestamp();
445
    }
446
 
3430 rajveer 447
    public void send_updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException
3339 mandeep.dh 448
    {
449
      updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
3430 rajveer 450
      args.setTimestamp(timestamp);
451
      sendBase("updateLastEmailProcessedTimestamp", args);
3339 mandeep.dh 452
    }
453
 
3430 rajveer 454
    public void recv_updateLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 455
    {
456
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
3430 rajveer 457
      receiveBase(result, "updateLastEmailProcessedTimestamp");
3339 mandeep.dh 458
      return;
459
    }
460
 
4793 amar.kumar 461
    public void changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException
462
    {
463
      send_changeAgentStatus(status, emailId);
464
      recv_changeAgentStatus();
465
    }
466
 
467
    public void send_changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException
468
    {
469
      changeAgentStatus_args args = new changeAgentStatus_args();
470
      args.setStatus(status);
471
      args.setEmailId(emailId);
472
      sendBase("changeAgentStatus", args);
473
    }
474
 
475
    public void recv_changeAgentStatus() throws org.apache.thrift.TException
476
    {
477
      changeAgentStatus_result result = new changeAgentStatus_result();
478
      receiveBase(result, "changeAgentStatus");
479
      return;
480
    }
481
 
482
    public void insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException
483
    {
484
      send_insertAgent(agent, role);
485
      recv_insertAgent();
486
    }
487
 
488
    public void send_insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException
489
    {
490
      insertAgent_args args = new insertAgent_args();
491
      args.setAgent(agent);
492
      args.setRole(role);
493
      sendBase("insertAgent", args);
494
    }
495
 
496
    public void recv_insertAgent() throws org.apache.thrift.TException
497
    {
498
      insertAgent_result result = new insertAgent_result();
499
      receiveBase(result, "insertAgent");
500
      return;
501
    }
502
 
5169 amar.kumar 503
    public void changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException
504
    {
505
      send_changeAgentRole(id, role);
506
      recv_changeAgentRole();
507
    }
508
 
509
    public void send_changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException
510
    {
511
      changeAgentRole_args args = new changeAgentRole_args();
512
      args.setId(id);
513
      args.setRole(role);
514
      sendBase("changeAgentRole", args);
515
    }
516
 
517
    public void recv_changeAgentRole() throws org.apache.thrift.TException
518
    {
519
      changeAgentRole_result result = new changeAgentRole_result();
520
      receiveBase(result, "changeAgentRole");
521
      return;
522
    }
523
 
524
    public int getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException
525
    {
526
      send_getOpenTicketCountForAgent(agentId);
527
      return recv_getOpenTicketCountForAgent();
528
    }
529
 
530
    public void send_getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException
531
    {
532
      getOpenTicketCountForAgent_args args = new getOpenTicketCountForAgent_args();
533
      args.setAgentId(agentId);
534
      sendBase("getOpenTicketCountForAgent", args);
535
    }
536
 
537
    public int recv_getOpenTicketCountForAgent() throws org.apache.thrift.TException
538
    {
539
      getOpenTicketCountForAgent_result result = new getOpenTicketCountForAgent_result();
540
      receiveBase(result, "getOpenTicketCountForAgent");
541
      if (result.isSetSuccess()) {
542
        return result.success;
543
      }
544
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOpenTicketCountForAgent failed: unknown result");
545
    }
546
 
3028 mandeep.dh 547
  }
3430 rajveer 548
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
549
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
550
      private org.apache.thrift.async.TAsyncClientManager clientManager;
551
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
552
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
553
        this.clientManager = clientManager;
554
        this.protocolFactory = protocolFactory;
555
      }
556
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
557
        return new AsyncClient(protocolFactory, clientManager, transport);
558
      }
3028 mandeep.dh 559
    }
560
 
3430 rajveer 561
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
562
      super(protocolFactory, clientManager, transport);
563
    }
3028 mandeep.dh 564
 
3430 rajveer 565
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getTickets_call> resultHandler) throws org.apache.thrift.TException {
566
      checkReady();
567
      getTickets_call method_call = new getTickets_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
568
      this.___currentMethod = method_call;
569
      ___manager.call(method_call);
3028 mandeep.dh 570
    }
571
 
3430 rajveer 572
    public static class getTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
573
      private SearchFilter searchFilter;
574
      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 {
575
        super(client, protocolFactory, transport, resultHandler, false);
576
        this.searchFilter = searchFilter;
577
      }
578
 
579
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
580
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 581
        getTickets_args args = new getTickets_args();
3430 rajveer 582
        args.setSearchFilter(searchFilter);
583
        args.write(prot);
584
        prot.writeMessageEnd();
3028 mandeep.dh 585
      }
586
 
3430 rajveer 587
      public List<Ticket> getResult() throws org.apache.thrift.TException {
588
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
589
          throw new IllegalStateException("Method call not finished!");
590
        }
591
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
592
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
593
        return (new Client(prot)).recv_getTickets();
594
      }
3028 mandeep.dh 595
    }
596
 
3430 rajveer 597
    public void getUnassignedTickets(org.apache.thrift.async.AsyncMethodCallback<getUnassignedTickets_call> resultHandler) throws org.apache.thrift.TException {
598
      checkReady();
599
      getUnassignedTickets_call method_call = new getUnassignedTickets_call(resultHandler, this, ___protocolFactory, ___transport);
600
      this.___currentMethod = method_call;
601
      ___manager.call(method_call);
602
    }
603
 
604
    public static class getUnassignedTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
605
      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 {
606
        super(client, protocolFactory, transport, resultHandler, false);
607
      }
608
 
609
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
610
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUnassignedTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
3137 mandeep.dh 611
        getUnassignedTickets_args args = new getUnassignedTickets_args();
3430 rajveer 612
        args.write(prot);
613
        prot.writeMessageEnd();
3087 mandeep.dh 614
      }
615
 
3430 rajveer 616
      public List<Ticket> getResult() throws org.apache.thrift.TException {
617
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
618
          throw new IllegalStateException("Method call not finished!");
619
        }
620
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
621
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
622
        return (new Client(prot)).recv_getUnassignedTickets();
623
      }
3087 mandeep.dh 624
    }
625
 
3430 rajveer 626
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<updateTicket_call> resultHandler) throws org.apache.thrift.TException {
627
      checkReady();
628
      updateTicket_call method_call = new updateTicket_call(ticket, activity, resultHandler, this, ___protocolFactory, ___transport);
629
      this.___currentMethod = method_call;
630
      ___manager.call(method_call);
631
    }
632
 
633
    public static class updateTicket_call extends org.apache.thrift.async.TAsyncMethodCall {
634
      private Ticket ticket;
635
      private Activity activity;
636
      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 {
637
        super(client, protocolFactory, transport, resultHandler, false);
638
        this.ticket = ticket;
639
        this.activity = activity;
640
      }
641
 
642
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
643
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTicket", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 644
        updateTicket_args args = new updateTicket_args();
3430 rajveer 645
        args.setTicket(ticket);
646
        args.setActivity(activity);
647
        args.write(prot);
648
        prot.writeMessageEnd();
3028 mandeep.dh 649
      }
650
 
3430 rajveer 651
      public void getResult() throws org.apache.thrift.TException {
652
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
653
          throw new IllegalStateException("Method call not finished!");
654
        }
655
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
656
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
657
        (new Client(prot)).recv_updateTicket();
658
      }
3028 mandeep.dh 659
    }
660
 
3430 rajveer 661
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertTicket_call> resultHandler) throws org.apache.thrift.TException {
662
      checkReady();
663
      insertTicket_call method_call = new insertTicket_call(ticket, activity, resultHandler, this, ___protocolFactory, ___transport);
664
      this.___currentMethod = method_call;
665
      ___manager.call(method_call);
666
    }
667
 
668
    public static class insertTicket_call extends org.apache.thrift.async.TAsyncMethodCall {
669
      private Ticket ticket;
670
      private Activity activity;
671
      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 {
672
        super(client, protocolFactory, transport, resultHandler, false);
673
        this.ticket = ticket;
674
        this.activity = activity;
675
      }
676
 
677
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
678
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertTicket", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 679
        insertTicket_args args = new insertTicket_args();
3430 rajveer 680
        args.setTicket(ticket);
681
        args.setActivity(activity);
682
        args.write(prot);
683
        prot.writeMessageEnd();
3028 mandeep.dh 684
      }
685
 
3430 rajveer 686
      public long getResult() throws org.apache.thrift.TException {
687
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
688
          throw new IllegalStateException("Method call not finished!");
689
        }
690
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
691
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
692
        return (new Client(prot)).recv_insertTicket();
693
      }
3028 mandeep.dh 694
    }
695
 
4793 amar.kumar 696
    public void unassignAgentTickets(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<unassignAgentTickets_call> resultHandler) throws org.apache.thrift.TException {
697
      checkReady();
698
      unassignAgentTickets_call method_call = new unassignAgentTickets_call(assigneeId, resultHandler, this, ___protocolFactory, ___transport);
699
      this.___currentMethod = method_call;
700
      ___manager.call(method_call);
701
    }
702
 
703
    public static class unassignAgentTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
704
      private int assigneeId;
705
      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 {
706
        super(client, protocolFactory, transport, resultHandler, false);
707
        this.assigneeId = assigneeId;
708
      }
709
 
710
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
711
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unassignAgentTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
712
        unassignAgentTickets_args args = new unassignAgentTickets_args();
713
        args.setAssigneeId(assigneeId);
714
        args.write(prot);
715
        prot.writeMessageEnd();
716
      }
717
 
718
      public void getResult() throws org.apache.thrift.TException {
719
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
720
          throw new IllegalStateException("Method call not finished!");
721
        }
722
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
723
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
724
        (new Client(prot)).recv_unassignAgentTickets();
725
      }
726
    }
727
 
3430 rajveer 728
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getActivities_call> resultHandler) throws org.apache.thrift.TException {
729
      checkReady();
730
      getActivities_call method_call = new getActivities_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
731
      this.___currentMethod = method_call;
732
      ___manager.call(method_call);
733
    }
734
 
735
    public static class getActivities_call extends org.apache.thrift.async.TAsyncMethodCall {
736
      private SearchFilter searchFilter;
737
      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 {
738
        super(client, protocolFactory, transport, resultHandler, false);
739
        this.searchFilter = searchFilter;
740
      }
741
 
742
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
743
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getActivities", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 744
        getActivities_args args = new getActivities_args();
3430 rajveer 745
        args.setSearchFilter(searchFilter);
746
        args.write(prot);
747
        prot.writeMessageEnd();
3028 mandeep.dh 748
      }
749
 
3430 rajveer 750
      public List<Activity> getResult() throws org.apache.thrift.TException {
751
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
752
          throw new IllegalStateException("Method call not finished!");
753
        }
754
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
755
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
756
        return (new Client(prot)).recv_getActivities();
757
      }
3028 mandeep.dh 758
    }
759
 
3430 rajveer 760
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertActivity_call> resultHandler) throws org.apache.thrift.TException {
761
      checkReady();
762
      insertActivity_call method_call = new insertActivity_call(activity, resultHandler, this, ___protocolFactory, ___transport);
763
      this.___currentMethod = method_call;
764
      ___manager.call(method_call);
765
    }
766
 
767
    public static class insertActivity_call extends org.apache.thrift.async.TAsyncMethodCall {
768
      private Activity activity;
769
      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 {
770
        super(client, protocolFactory, transport, resultHandler, false);
771
        this.activity = activity;
772
      }
773
 
774
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
775
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertActivity", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 776
        insertActivity_args args = new insertActivity_args();
3430 rajveer 777
        args.setActivity(activity);
778
        args.write(prot);
779
        prot.writeMessageEnd();
3028 mandeep.dh 780
      }
781
 
3430 rajveer 782
      public long getResult() throws org.apache.thrift.TException {
783
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
784
          throw new IllegalStateException("Method call not finished!");
785
        }
786
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
787
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
788
        return (new Client(prot)).recv_insertActivity();
789
      }
3028 mandeep.dh 790
    }
791
 
3430 rajveer 792
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<markAsRead_call> resultHandler) throws org.apache.thrift.TException {
793
      checkReady();
794
      markAsRead_call method_call = new markAsRead_call(activityId, agentId, resultHandler, this, ___protocolFactory, ___transport);
795
      this.___currentMethod = method_call;
796
      ___manager.call(method_call);
797
    }
798
 
799
    public static class markAsRead_call extends org.apache.thrift.async.TAsyncMethodCall {
800
      private long activityId;
801
      private long agentId;
802
      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 {
803
        super(client, protocolFactory, transport, resultHandler, false);
804
        this.activityId = activityId;
805
        this.agentId = agentId;
806
      }
807
 
808
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
809
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markAsRead", org.apache.thrift.protocol.TMessageType.CALL, 0));
3390 mandeep.dh 810
        markAsRead_args args = new markAsRead_args();
3430 rajveer 811
        args.setActivityId(activityId);
812
        args.setAgentId(agentId);
813
        args.write(prot);
814
        prot.writeMessageEnd();
3087 mandeep.dh 815
      }
816
 
3430 rajveer 817
      public void getResult() throws org.apache.thrift.TException {
818
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
819
          throw new IllegalStateException("Method call not finished!");
820
        }
821
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
822
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
823
        (new Client(prot)).recv_markAsRead();
824
      }
3087 mandeep.dh 825
    }
826
 
3430 rajveer 827
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
828
      checkReady();
829
      getAgents_call method_call = new getAgents_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
830
      this.___currentMethod = method_call;
831
      ___manager.call(method_call);
832
    }
833
 
834
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
835
      private SearchFilter searchFilter;
836
      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 {
837
        super(client, protocolFactory, transport, resultHandler, false);
838
        this.searchFilter = searchFilter;
839
      }
840
 
841
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
842
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
3390 mandeep.dh 843
        getAgents_args args = new getAgents_args();
3430 rajveer 844
        args.setSearchFilter(searchFilter);
845
        args.write(prot);
846
        prot.writeMessageEnd();
3028 mandeep.dh 847
      }
848
 
3430 rajveer 849
      public List<Agent> getResult() throws org.apache.thrift.TException {
850
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
851
          throw new IllegalStateException("Method call not finished!");
852
        }
853
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
854
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
855
        return (new Client(prot)).recv_getAgents();
856
      }
3028 mandeep.dh 857
    }
858
 
5287 amar.kumar 859
    public void getInactiveAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getInactiveAgents_call> resultHandler) throws org.apache.thrift.TException {
860
      checkReady();
861
      getInactiveAgents_call method_call = new getInactiveAgents_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
862
      this.___currentMethod = method_call;
863
      ___manager.call(method_call);
864
    }
865
 
866
    public static class getInactiveAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
867
      private SearchFilter searchFilter;
868
      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 {
869
        super(client, protocolFactory, transport, resultHandler, false);
870
        this.searchFilter = searchFilter;
871
      }
872
 
873
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
874
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInactiveAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
875
        getInactiveAgents_args args = new getInactiveAgents_args();
876
        args.setSearchFilter(searchFilter);
877
        args.write(prot);
878
        prot.writeMessageEnd();
879
      }
880
 
881
      public List<Agent> getResult() throws org.apache.thrift.TException {
882
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
883
          throw new IllegalStateException("Method call not finished!");
884
        }
885
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
886
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
887
        return (new Client(prot)).recv_getInactiveAgents();
888
      }
889
    }
890
 
3430 rajveer 891
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
892
      checkReady();
893
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
894
      this.___currentMethod = method_call;
895
      ___manager.call(method_call);
896
    }
897
 
898
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
899
      private String agentEmailId;
900
      private String password;
901
      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 {
902
        super(client, protocolFactory, transport, resultHandler, false);
903
        this.agentEmailId = agentEmailId;
904
        this.password = password;
905
      }
906
 
907
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
908
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
3087 mandeep.dh 909
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
3430 rajveer 910
        args.setAgentEmailId(agentEmailId);
911
        args.setPassword(password);
912
        args.write(prot);
913
        prot.writeMessageEnd();
3087 mandeep.dh 914
      }
915
 
3430 rajveer 916
      public void getResult() throws org.apache.thrift.TException {
917
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
918
          throw new IllegalStateException("Method call not finished!");
919
        }
920
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
921
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
922
        (new Client(prot)).recv_updatePasswordForAgent();
923
      }
3087 mandeep.dh 924
    }
925
 
3430 rajveer 926
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
927
      checkReady();
928
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
929
      this.___currentMethod = method_call;
930
      ___manager.call(method_call);
931
    }
932
 
933
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
934
      private String agentEmailId;
935
      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 {
936
        super(client, protocolFactory, transport, resultHandler, false);
937
        this.agentEmailId = agentEmailId;
938
      }
939
 
940
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
941
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
3087 mandeep.dh 942
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
3430 rajveer 943
        args.setAgentEmailId(agentEmailId);
944
        args.write(prot);
945
        prot.writeMessageEnd();
3087 mandeep.dh 946
      }
947
 
3430 rajveer 948
      public List<String> getResult() throws org.apache.thrift.TException {
949
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
950
          throw new IllegalStateException("Method call not finished!");
951
        }
952
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
953
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
954
        return (new Client(prot)).recv_getRoleNamesForAgent();
955
      }
3087 mandeep.dh 956
    }
957
 
3430 rajveer 958
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
959
      checkReady();
960
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
961
      this.___currentMethod = method_call;
962
      ___manager.call(method_call);
963
    }
964
 
965
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
966
      private String roleName;
967
      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 {
968
        super(client, protocolFactory, transport, resultHandler, false);
969
        this.roleName = roleName;
970
      }
971
 
972
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
973
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3087 mandeep.dh 974
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
3430 rajveer 975
        args.setRoleName(roleName);
976
        args.write(prot);
977
        prot.writeMessageEnd();
3087 mandeep.dh 978
      }
979
 
3430 rajveer 980
      public List<String> getResult() throws org.apache.thrift.TException {
981
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
982
          throw new IllegalStateException("Method call not finished!");
983
        }
984
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
985
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
986
        return (new Client(prot)).recv_getPermissionsForRoleName();
987
      }
3087 mandeep.dh 988
    }
989
 
3430 rajveer 990
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException {
991
      checkReady();
992
      getLastEmailProcessedTimestamp_call method_call = new getLastEmailProcessedTimestamp_call(resultHandler, this, ___protocolFactory, ___transport);
993
      this.___currentMethod = method_call;
994
      ___manager.call(method_call);
995
    }
996
 
997
    public static class getLastEmailProcessedTimestamp_call extends org.apache.thrift.async.TAsyncMethodCall {
998
      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 {
999
        super(client, protocolFactory, transport, resultHandler, false);
1000
      }
1001
 
1002
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1003
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLastEmailProcessedTimestamp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3339 mandeep.dh 1004
        getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
3430 rajveer 1005
        args.write(prot);
1006
        prot.writeMessageEnd();
3339 mandeep.dh 1007
      }
1008
 
3430 rajveer 1009
      public long getResult() throws org.apache.thrift.TException {
1010
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1011
          throw new IllegalStateException("Method call not finished!");
1012
        }
1013
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1014
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1015
        return (new Client(prot)).recv_getLastEmailProcessedTimestamp();
1016
      }
3339 mandeep.dh 1017
    }
1018
 
3430 rajveer 1019
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException {
1020
      checkReady();
1021
      updateLastEmailProcessedTimestamp_call method_call = new updateLastEmailProcessedTimestamp_call(timestamp, resultHandler, this, ___protocolFactory, ___transport);
1022
      this.___currentMethod = method_call;
1023
      ___manager.call(method_call);
1024
    }
1025
 
1026
    public static class updateLastEmailProcessedTimestamp_call extends org.apache.thrift.async.TAsyncMethodCall {
1027
      private long timestamp;
1028
      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 {
1029
        super(client, protocolFactory, transport, resultHandler, false);
1030
        this.timestamp = timestamp;
1031
      }
1032
 
1033
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1034
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLastEmailProcessedTimestamp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3339 mandeep.dh 1035
        updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
3430 rajveer 1036
        args.setTimestamp(timestamp);
1037
        args.write(prot);
1038
        prot.writeMessageEnd();
3339 mandeep.dh 1039
      }
1040
 
3430 rajveer 1041
      public void getResult() throws org.apache.thrift.TException {
1042
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1043
          throw new IllegalStateException("Method call not finished!");
1044
        }
1045
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1046
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1047
        (new Client(prot)).recv_updateLastEmailProcessedTimestamp();
1048
      }
3339 mandeep.dh 1049
    }
1050
 
4793 amar.kumar 1051
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException {
1052
      checkReady();
1053
      changeAgentStatus_call method_call = new changeAgentStatus_call(status, emailId, resultHandler, this, ___protocolFactory, ___transport);
1054
      this.___currentMethod = method_call;
1055
      ___manager.call(method_call);
1056
    }
1057
 
1058
    public static class changeAgentStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
1059
      private boolean status;
1060
      private String emailId;
1061
      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 {
1062
        super(client, protocolFactory, transport, resultHandler, false);
1063
        this.status = status;
1064
        this.emailId = emailId;
1065
      }
1066
 
1067
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1068
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeAgentStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
1069
        changeAgentStatus_args args = new changeAgentStatus_args();
1070
        args.setStatus(status);
1071
        args.setEmailId(emailId);
1072
        args.write(prot);
1073
        prot.writeMessageEnd();
1074
      }
1075
 
1076
      public void getResult() throws org.apache.thrift.TException {
1077
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1078
          throw new IllegalStateException("Method call not finished!");
1079
        }
1080
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1081
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1082
        (new Client(prot)).recv_changeAgentStatus();
1083
      }
1084
    }
1085
 
1086
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<insertAgent_call> resultHandler) throws org.apache.thrift.TException {
1087
      checkReady();
1088
      insertAgent_call method_call = new insertAgent_call(agent, role, resultHandler, this, ___protocolFactory, ___transport);
1089
      this.___currentMethod = method_call;
1090
      ___manager.call(method_call);
1091
    }
1092
 
1093
    public static class insertAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1094
      private Agent agent;
1095
      private List<String> role;
1096
      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 {
1097
        super(client, protocolFactory, transport, resultHandler, false);
1098
        this.agent = agent;
1099
        this.role = role;
1100
      }
1101
 
1102
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1103
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1104
        insertAgent_args args = new insertAgent_args();
1105
        args.setAgent(agent);
1106
        args.setRole(role);
1107
        args.write(prot);
1108
        prot.writeMessageEnd();
1109
      }
1110
 
1111
      public void getResult() throws org.apache.thrift.TException {
1112
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1113
          throw new IllegalStateException("Method call not finished!");
1114
        }
1115
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1116
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1117
        (new Client(prot)).recv_insertAgent();
1118
      }
1119
    }
1120
 
5169 amar.kumar 1121
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<changeAgentRole_call> resultHandler) throws org.apache.thrift.TException {
1122
      checkReady();
1123
      changeAgentRole_call method_call = new changeAgentRole_call(id, role, resultHandler, this, ___protocolFactory, ___transport);
1124
      this.___currentMethod = method_call;
1125
      ___manager.call(method_call);
1126
    }
1127
 
1128
    public static class changeAgentRole_call extends org.apache.thrift.async.TAsyncMethodCall {
1129
      private long id;
1130
      private List<String> role;
1131
      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 {
1132
        super(client, protocolFactory, transport, resultHandler, false);
1133
        this.id = id;
1134
        this.role = role;
1135
      }
1136
 
1137
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1138
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeAgentRole", org.apache.thrift.protocol.TMessageType.CALL, 0));
1139
        changeAgentRole_args args = new changeAgentRole_args();
1140
        args.setId(id);
1141
        args.setRole(role);
1142
        args.write(prot);
1143
        prot.writeMessageEnd();
1144
      }
1145
 
1146
      public void getResult() throws org.apache.thrift.TException {
1147
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1148
          throw new IllegalStateException("Method call not finished!");
1149
        }
1150
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1151
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1152
        (new Client(prot)).recv_changeAgentRole();
1153
      }
1154
    }
1155
 
1156
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException {
1157
      checkReady();
1158
      getOpenTicketCountForAgent_call method_call = new getOpenTicketCountForAgent_call(agentId, resultHandler, this, ___protocolFactory, ___transport);
1159
      this.___currentMethod = method_call;
1160
      ___manager.call(method_call);
1161
    }
1162
 
1163
    public static class getOpenTicketCountForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1164
      private long agentId;
1165
      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 {
1166
        super(client, protocolFactory, transport, resultHandler, false);
1167
        this.agentId = agentId;
1168
      }
1169
 
1170
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1171
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOpenTicketCountForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1172
        getOpenTicketCountForAgent_args args = new getOpenTicketCountForAgent_args();
1173
        args.setAgentId(agentId);
1174
        args.write(prot);
1175
        prot.writeMessageEnd();
1176
      }
1177
 
1178
      public int getResult() throws org.apache.thrift.TException {
1179
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1180
          throw new IllegalStateException("Method call not finished!");
1181
        }
1182
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1183
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1184
        return (new Client(prot)).recv_getOpenTicketCountForAgent();
1185
      }
1186
    }
1187
 
3028 mandeep.dh 1188
  }
1189
 
3430 rajveer 1190
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1191
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1192
    public Processor(I iface) {
1193
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1194
    }
3028 mandeep.dh 1195
 
3430 rajveer 1196
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1197
      super(iface, getProcessMap(processMap));
1198
    }
3028 mandeep.dh 1199
 
3430 rajveer 1200
    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) {
1201
      processMap.put("getTickets", new getTickets());
1202
      processMap.put("getUnassignedTickets", new getUnassignedTickets());
1203
      processMap.put("updateTicket", new updateTicket());
1204
      processMap.put("insertTicket", new insertTicket());
4793 amar.kumar 1205
      processMap.put("unassignAgentTickets", new unassignAgentTickets());
3430 rajveer 1206
      processMap.put("getActivities", new getActivities());
1207
      processMap.put("insertActivity", new insertActivity());
1208
      processMap.put("markAsRead", new markAsRead());
1209
      processMap.put("getAgents", new getAgents());
5287 amar.kumar 1210
      processMap.put("getInactiveAgents", new getInactiveAgents());
3430 rajveer 1211
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1212
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1213
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1214
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
1215
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
4793 amar.kumar 1216
      processMap.put("changeAgentStatus", new changeAgentStatus());
1217
      processMap.put("insertAgent", new insertAgent());
5169 amar.kumar 1218
      processMap.put("changeAgentRole", new changeAgentRole());
1219
      processMap.put("getOpenTicketCountForAgent", new getOpenTicketCountForAgent());
3430 rajveer 1220
      return processMap;
1221
    }
3028 mandeep.dh 1222
 
3430 rajveer 1223
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
1224
      public getTickets() {
1225
        super("getTickets");
1226
      }
1227
 
1228
      protected getTickets_args getEmptyArgsInstance() {
1229
        return new getTickets_args();
1230
      }
1231
 
1232
      protected getTickets_result getResult(I iface, getTickets_args args) throws org.apache.thrift.TException {
1233
        getTickets_result result = new getTickets_result();
1234
        result.success = iface.getTickets(args.searchFilter);
1235
        return result;
1236
      }
1237
    }
1238
 
1239
    private static class getUnassignedTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUnassignedTickets_args> {
1240
      public getUnassignedTickets() {
1241
        super("getUnassignedTickets");
1242
      }
1243
 
1244
      protected getUnassignedTickets_args getEmptyArgsInstance() {
1245
        return new getUnassignedTickets_args();
1246
      }
1247
 
1248
      protected getUnassignedTickets_result getResult(I iface, getUnassignedTickets_args args) throws org.apache.thrift.TException {
1249
        getUnassignedTickets_result result = new getUnassignedTickets_result();
1250
        result.success = iface.getUnassignedTickets();
1251
        return result;
1252
      }
1253
    }
1254
 
1255
    private static class updateTicket<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTicket_args> {
1256
      public updateTicket() {
1257
        super("updateTicket");
1258
      }
1259
 
1260
      protected updateTicket_args getEmptyArgsInstance() {
1261
        return new updateTicket_args();
1262
      }
1263
 
1264
      protected updateTicket_result getResult(I iface, updateTicket_args args) throws org.apache.thrift.TException {
1265
        updateTicket_result result = new updateTicket_result();
1266
        iface.updateTicket(args.ticket, args.activity);
1267
        return result;
1268
      }
1269
    }
1270
 
1271
    private static class insertTicket<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertTicket_args> {
1272
      public insertTicket() {
1273
        super("insertTicket");
1274
      }
1275
 
1276
      protected insertTicket_args getEmptyArgsInstance() {
1277
        return new insertTicket_args();
1278
      }
1279
 
1280
      protected insertTicket_result getResult(I iface, insertTicket_args args) throws org.apache.thrift.TException {
1281
        insertTicket_result result = new insertTicket_result();
1282
        result.success = iface.insertTicket(args.ticket, args.activity);
1283
        result.setSuccessIsSet(true);
1284
        return result;
1285
      }
1286
    }
1287
 
4793 amar.kumar 1288
    private static class unassignAgentTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unassignAgentTickets_args> {
1289
      public unassignAgentTickets() {
1290
        super("unassignAgentTickets");
1291
      }
1292
 
1293
      protected unassignAgentTickets_args getEmptyArgsInstance() {
1294
        return new unassignAgentTickets_args();
1295
      }
1296
 
1297
      protected unassignAgentTickets_result getResult(I iface, unassignAgentTickets_args args) throws org.apache.thrift.TException {
1298
        unassignAgentTickets_result result = new unassignAgentTickets_result();
1299
        iface.unassignAgentTickets(args.assigneeId);
1300
        return result;
1301
      }
1302
    }
1303
 
3430 rajveer 1304
    private static class getActivities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivities_args> {
1305
      public getActivities() {
1306
        super("getActivities");
1307
      }
1308
 
1309
      protected getActivities_args getEmptyArgsInstance() {
1310
        return new getActivities_args();
1311
      }
1312
 
1313
      protected getActivities_result getResult(I iface, getActivities_args args) throws org.apache.thrift.TException {
1314
        getActivities_result result = new getActivities_result();
1315
        result.success = iface.getActivities(args.searchFilter);
1316
        return result;
1317
      }
1318
    }
1319
 
1320
    private static class insertActivity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertActivity_args> {
1321
      public insertActivity() {
1322
        super("insertActivity");
1323
      }
1324
 
1325
      protected insertActivity_args getEmptyArgsInstance() {
1326
        return new insertActivity_args();
1327
      }
1328
 
1329
      protected insertActivity_result getResult(I iface, insertActivity_args args) throws org.apache.thrift.TException {
1330
        insertActivity_result result = new insertActivity_result();
1331
        result.success = iface.insertActivity(args.activity);
1332
        result.setSuccessIsSet(true);
1333
        return result;
1334
      }
1335
    }
1336
 
1337
    private static class markAsRead<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markAsRead_args> {
1338
      public markAsRead() {
1339
        super("markAsRead");
1340
      }
1341
 
1342
      protected markAsRead_args getEmptyArgsInstance() {
1343
        return new markAsRead_args();
1344
      }
1345
 
1346
      protected markAsRead_result getResult(I iface, markAsRead_args args) throws org.apache.thrift.TException {
1347
        markAsRead_result result = new markAsRead_result();
1348
        iface.markAsRead(args.activityId, args.agentId);
1349
        return result;
1350
      }
1351
    }
1352
 
1353
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
1354
      public getAgents() {
1355
        super("getAgents");
1356
      }
1357
 
1358
      protected getAgents_args getEmptyArgsInstance() {
1359
        return new getAgents_args();
1360
      }
1361
 
1362
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
1363
        getAgents_result result = new getAgents_result();
1364
        result.success = iface.getAgents(args.searchFilter);
1365
        return result;
1366
      }
1367
    }
1368
 
5287 amar.kumar 1369
    private static class getInactiveAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInactiveAgents_args> {
1370
      public getInactiveAgents() {
1371
        super("getInactiveAgents");
1372
      }
1373
 
1374
      protected getInactiveAgents_args getEmptyArgsInstance() {
1375
        return new getInactiveAgents_args();
1376
      }
1377
 
1378
      protected getInactiveAgents_result getResult(I iface, getInactiveAgents_args args) throws org.apache.thrift.TException {
1379
        getInactiveAgents_result result = new getInactiveAgents_result();
1380
        result.success = iface.getInactiveAgents(args.searchFilter);
1381
        return result;
1382
      }
1383
    }
1384
 
3430 rajveer 1385
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
1386
      public updatePasswordForAgent() {
1387
        super("updatePasswordForAgent");
1388
      }
1389
 
1390
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
1391
        return new updatePasswordForAgent_args();
1392
      }
1393
 
1394
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
1395
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
1396
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
1397
        return result;
1398
      }
1399
    }
1400
 
1401
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
1402
      public getRoleNamesForAgent() {
1403
        super("getRoleNamesForAgent");
1404
      }
1405
 
1406
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
1407
        return new getRoleNamesForAgent_args();
1408
      }
1409
 
1410
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
1411
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
1412
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
1413
        return result;
1414
      }
1415
    }
1416
 
1417
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
1418
      public getPermissionsForRoleName() {
1419
        super("getPermissionsForRoleName");
1420
      }
1421
 
1422
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
1423
        return new getPermissionsForRoleName_args();
1424
      }
1425
 
1426
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
1427
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
1428
        result.success = iface.getPermissionsForRoleName(args.roleName);
1429
        return result;
1430
      }
1431
    }
1432
 
1433
    private static class getLastEmailProcessedTimestamp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLastEmailProcessedTimestamp_args> {
1434
      public getLastEmailProcessedTimestamp() {
1435
        super("getLastEmailProcessedTimestamp");
1436
      }
1437
 
1438
      protected getLastEmailProcessedTimestamp_args getEmptyArgsInstance() {
1439
        return new getLastEmailProcessedTimestamp_args();
1440
      }
1441
 
1442
      protected getLastEmailProcessedTimestamp_result getResult(I iface, getLastEmailProcessedTimestamp_args args) throws org.apache.thrift.TException {
1443
        getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
1444
        result.success = iface.getLastEmailProcessedTimestamp();
1445
        result.setSuccessIsSet(true);
1446
        return result;
1447
      }
1448
    }
1449
 
1450
    private static class updateLastEmailProcessedTimestamp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateLastEmailProcessedTimestamp_args> {
1451
      public updateLastEmailProcessedTimestamp() {
1452
        super("updateLastEmailProcessedTimestamp");
1453
      }
1454
 
1455
      protected updateLastEmailProcessedTimestamp_args getEmptyArgsInstance() {
1456
        return new updateLastEmailProcessedTimestamp_args();
1457
      }
1458
 
1459
      protected updateLastEmailProcessedTimestamp_result getResult(I iface, updateLastEmailProcessedTimestamp_args args) throws org.apache.thrift.TException {
1460
        updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
1461
        iface.updateLastEmailProcessedTimestamp(args.timestamp);
1462
        return result;
1463
      }
1464
    }
1465
 
4793 amar.kumar 1466
    private static class changeAgentStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAgentStatus_args> {
1467
      public changeAgentStatus() {
1468
        super("changeAgentStatus");
1469
      }
1470
 
1471
      protected changeAgentStatus_args getEmptyArgsInstance() {
1472
        return new changeAgentStatus_args();
1473
      }
1474
 
1475
      protected changeAgentStatus_result getResult(I iface, changeAgentStatus_args args) throws org.apache.thrift.TException {
1476
        changeAgentStatus_result result = new changeAgentStatus_result();
1477
        iface.changeAgentStatus(args.status, args.emailId);
1478
        return result;
1479
      }
1480
    }
1481
 
1482
    private static class insertAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertAgent_args> {
1483
      public insertAgent() {
1484
        super("insertAgent");
1485
      }
1486
 
1487
      protected insertAgent_args getEmptyArgsInstance() {
1488
        return new insertAgent_args();
1489
      }
1490
 
1491
      protected insertAgent_result getResult(I iface, insertAgent_args args) throws org.apache.thrift.TException {
1492
        insertAgent_result result = new insertAgent_result();
1493
        iface.insertAgent(args.agent, args.role);
1494
        return result;
1495
      }
1496
    }
1497
 
5169 amar.kumar 1498
    private static class changeAgentRole<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAgentRole_args> {
1499
      public changeAgentRole() {
1500
        super("changeAgentRole");
1501
      }
1502
 
1503
      protected changeAgentRole_args getEmptyArgsInstance() {
1504
        return new changeAgentRole_args();
1505
      }
1506
 
1507
      protected changeAgentRole_result getResult(I iface, changeAgentRole_args args) throws org.apache.thrift.TException {
1508
        changeAgentRole_result result = new changeAgentRole_result();
1509
        iface.changeAgentRole(args.id, args.role);
1510
        return result;
1511
      }
1512
    }
1513
 
1514
    private static class getOpenTicketCountForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOpenTicketCountForAgent_args> {
1515
      public getOpenTicketCountForAgent() {
1516
        super("getOpenTicketCountForAgent");
1517
      }
1518
 
1519
      protected getOpenTicketCountForAgent_args getEmptyArgsInstance() {
1520
        return new getOpenTicketCountForAgent_args();
1521
      }
1522
 
1523
      protected getOpenTicketCountForAgent_result getResult(I iface, getOpenTicketCountForAgent_args args) throws org.apache.thrift.TException {
1524
        getOpenTicketCountForAgent_result result = new getOpenTicketCountForAgent_result();
1525
        result.success = iface.getOpenTicketCountForAgent(args.agentId);
1526
        result.setSuccessIsSet(true);
1527
        return result;
1528
      }
1529
    }
1530
 
3430 rajveer 1531
  }
1532
 
1533
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1534
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1535
 
1536
    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);
1537
 
1538
    private SearchFilter searchFilter; // required
1539
 
3028 mandeep.dh 1540
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1541
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 1542
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 1543
 
1544
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1545
 
1546
      static {
1547
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1548
          byName.put(field.getFieldName(), field);
1549
        }
1550
      }
1551
 
1552
      /**
1553
       * Find the _Fields constant that matches fieldId, or null if its not found.
1554
       */
1555
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1556
        switch(fieldId) {
1557
          case 1: // SEARCH_FILTER
1558
            return SEARCH_FILTER;
1559
          default:
1560
            return null;
1561
        }
3028 mandeep.dh 1562
      }
1563
 
1564
      /**
1565
       * Find the _Fields constant that matches fieldId, throwing an exception
1566
       * if it is not found.
1567
       */
1568
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1569
        _Fields fields = findByThriftId(fieldId);
1570
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1571
        return fields;
1572
      }
1573
 
1574
      /**
1575
       * Find the _Fields constant that matches name, or null if its not found.
1576
       */
1577
      public static _Fields findByName(String name) {
1578
        return byName.get(name);
1579
      }
1580
 
1581
      private final short _thriftId;
1582
      private final String _fieldName;
1583
 
1584
      _Fields(short thriftId, String fieldName) {
1585
        _thriftId = thriftId;
1586
        _fieldName = fieldName;
1587
      }
1588
 
1589
      public short getThriftFieldId() {
1590
        return _thriftId;
1591
      }
1592
 
1593
      public String getFieldName() {
1594
        return _fieldName;
1595
      }
1596
    }
1597
 
1598
    // isset id assignments
1599
 
3430 rajveer 1600
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 1601
    static {
3430 rajveer 1602
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1603
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1604
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
1605
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1606
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);
3028 mandeep.dh 1607
    }
1608
 
1609
    public getTickets_args() {
1610
    }
1611
 
1612
    public getTickets_args(
3390 mandeep.dh 1613
      SearchFilter searchFilter)
3028 mandeep.dh 1614
    {
1615
      this();
3390 mandeep.dh 1616
      this.searchFilter = searchFilter;
3028 mandeep.dh 1617
    }
1618
 
1619
    /**
1620
     * Performs a deep copy on <i>other</i>.
1621
     */
1622
    public getTickets_args(getTickets_args other) {
3390 mandeep.dh 1623
      if (other.isSetSearchFilter()) {
1624
        this.searchFilter = new SearchFilter(other.searchFilter);
1625
      }
3028 mandeep.dh 1626
    }
1627
 
1628
    public getTickets_args deepCopy() {
1629
      return new getTickets_args(this);
1630
    }
1631
 
3430 rajveer 1632
    @Override
1633
    public void clear() {
1634
      this.searchFilter = null;
3028 mandeep.dh 1635
    }
1636
 
3390 mandeep.dh 1637
    public SearchFilter getSearchFilter() {
1638
      return this.searchFilter;
3028 mandeep.dh 1639
    }
1640
 
3430 rajveer 1641
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 1642
      this.searchFilter = searchFilter;
3028 mandeep.dh 1643
    }
1644
 
3390 mandeep.dh 1645
    public void unsetSearchFilter() {
1646
      this.searchFilter = null;
3028 mandeep.dh 1647
    }
1648
 
3430 rajveer 1649
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 1650
    public boolean isSetSearchFilter() {
1651
      return this.searchFilter != null;
3028 mandeep.dh 1652
    }
1653
 
3390 mandeep.dh 1654
    public void setSearchFilterIsSet(boolean value) {
1655
      if (!value) {
1656
        this.searchFilter = null;
1657
      }
3028 mandeep.dh 1658
    }
1659
 
1660
    public void setFieldValue(_Fields field, Object value) {
1661
      switch (field) {
3390 mandeep.dh 1662
      case SEARCH_FILTER:
3028 mandeep.dh 1663
        if (value == null) {
3390 mandeep.dh 1664
          unsetSearchFilter();
3028 mandeep.dh 1665
        } else {
3390 mandeep.dh 1666
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 1667
        }
1668
        break;
1669
 
1670
      }
1671
    }
1672
 
1673
    public Object getFieldValue(_Fields field) {
1674
      switch (field) {
3390 mandeep.dh 1675
      case SEARCH_FILTER:
1676
        return getSearchFilter();
3028 mandeep.dh 1677
 
1678
      }
1679
      throw new IllegalStateException();
1680
    }
1681
 
3430 rajveer 1682
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1683
    public boolean isSet(_Fields field) {
1684
      if (field == null) {
1685
        throw new IllegalArgumentException();
1686
      }
3028 mandeep.dh 1687
 
1688
      switch (field) {
3390 mandeep.dh 1689
      case SEARCH_FILTER:
1690
        return isSetSearchFilter();
3028 mandeep.dh 1691
      }
1692
      throw new IllegalStateException();
1693
    }
1694
 
1695
    @Override
1696
    public boolean equals(Object that) {
1697
      if (that == null)
1698
        return false;
1699
      if (that instanceof getTickets_args)
1700
        return this.equals((getTickets_args)that);
1701
      return false;
1702
    }
1703
 
1704
    public boolean equals(getTickets_args that) {
1705
      if (that == null)
1706
        return false;
1707
 
3390 mandeep.dh 1708
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
1709
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
1710
      if (this_present_searchFilter || that_present_searchFilter) {
1711
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 1712
          return false;
3390 mandeep.dh 1713
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 1714
          return false;
1715
      }
1716
 
1717
      return true;
1718
    }
1719
 
1720
    @Override
1721
    public int hashCode() {
1722
      return 0;
1723
    }
1724
 
1725
    public int compareTo(getTickets_args other) {
1726
      if (!getClass().equals(other.getClass())) {
1727
        return getClass().getName().compareTo(other.getClass().getName());
1728
      }
1729
 
1730
      int lastComparison = 0;
1731
      getTickets_args typedOther = (getTickets_args)other;
1732
 
3430 rajveer 1733
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 1734
      if (lastComparison != 0) {
1735
        return lastComparison;
1736
      }
3430 rajveer 1737
      if (isSetSearchFilter()) {
1738
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
1739
        if (lastComparison != 0) {
1740
          return lastComparison;
1741
        }
3028 mandeep.dh 1742
      }
1743
      return 0;
1744
    }
1745
 
3430 rajveer 1746
    public _Fields fieldForId(int fieldId) {
1747
      return _Fields.findByThriftId(fieldId);
1748
    }
1749
 
1750
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1751
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 1752
      iprot.readStructBegin();
1753
      while (true)
1754
      {
1755
        field = iprot.readFieldBegin();
3430 rajveer 1756
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 1757
          break;
1758
        }
3430 rajveer 1759
        switch (field.id) {
1760
          case 1: // SEARCH_FILTER
1761
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1762
              this.searchFilter = new SearchFilter();
1763
              this.searchFilter.read(iprot);
1764
            } else { 
1765
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1766
            }
1767
            break;
1768
          default:
1769
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 1770
        }
3430 rajveer 1771
        iprot.readFieldEnd();
3028 mandeep.dh 1772
      }
1773
      iprot.readStructEnd();
1774
      validate();
1775
    }
1776
 
3430 rajveer 1777
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 1778
      validate();
1779
 
1780
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 1781
      if (this.searchFilter != null) {
1782
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
1783
        this.searchFilter.write(oprot);
1784
        oprot.writeFieldEnd();
1785
      }
3028 mandeep.dh 1786
      oprot.writeFieldStop();
1787
      oprot.writeStructEnd();
1788
    }
1789
 
1790
    @Override
1791
    public String toString() {
1792
      StringBuilder sb = new StringBuilder("getTickets_args(");
1793
      boolean first = true;
1794
 
3390 mandeep.dh 1795
      sb.append("searchFilter:");
1796
      if (this.searchFilter == null) {
1797
        sb.append("null");
1798
      } else {
1799
        sb.append(this.searchFilter);
1800
      }
3028 mandeep.dh 1801
      first = false;
1802
      sb.append(")");
1803
      return sb.toString();
1804
    }
1805
 
3430 rajveer 1806
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 1807
      // check for required fields
1808
    }
1809
 
3430 rajveer 1810
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1811
      try {
1812
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1813
      } catch (org.apache.thrift.TException te) {
1814
        throw new java.io.IOException(te);
1815
      }
1816
    }
1817
 
1818
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1819
      try {
1820
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1821
      } catch (org.apache.thrift.TException te) {
1822
        throw new java.io.IOException(te);
1823
      }
1824
    }
1825
 
3028 mandeep.dh 1826
  }
1827
 
3430 rajveer 1828
  public static class getTickets_result implements org.apache.thrift.TBase<getTickets_result, getTickets_result._Fields>, java.io.Serializable, Cloneable   {
1829
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_result");
3028 mandeep.dh 1830
 
3430 rajveer 1831
    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 1832
 
3430 rajveer 1833
    private List<Ticket> success; // required
3028 mandeep.dh 1834
 
1835
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1836
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 1837
      SUCCESS((short)0, "success");
1838
 
1839
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1840
 
1841
      static {
1842
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1843
          byName.put(field.getFieldName(), field);
1844
        }
1845
      }
1846
 
1847
      /**
1848
       * Find the _Fields constant that matches fieldId, or null if its not found.
1849
       */
1850
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1851
        switch(fieldId) {
1852
          case 0: // SUCCESS
1853
            return SUCCESS;
1854
          default:
1855
            return null;
1856
        }
3028 mandeep.dh 1857
      }
1858
 
1859
      /**
1860
       * Find the _Fields constant that matches fieldId, throwing an exception
1861
       * if it is not found.
1862
       */
1863
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1864
        _Fields fields = findByThriftId(fieldId);
1865
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1866
        return fields;
1867
      }
1868
 
1869
      /**
1870
       * Find the _Fields constant that matches name, or null if its not found.
1871
       */
1872
      public static _Fields findByName(String name) {
1873
        return byName.get(name);
1874
      }
1875
 
1876
      private final short _thriftId;
1877
      private final String _fieldName;
1878
 
1879
      _Fields(short thriftId, String fieldName) {
1880
        _thriftId = thriftId;
1881
        _fieldName = fieldName;
1882
      }
1883
 
1884
      public short getThriftFieldId() {
1885
        return _thriftId;
1886
      }
1887
 
1888
      public String getFieldName() {
1889
        return _fieldName;
1890
      }
1891
    }
1892
 
1893
    // isset id assignments
1894
 
3430 rajveer 1895
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 1896
    static {
3430 rajveer 1897
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1898
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1899
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
1900
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class))));
1901
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1902
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTickets_result.class, metaDataMap);
3028 mandeep.dh 1903
    }
1904
 
1905
    public getTickets_result() {
1906
    }
1907
 
1908
    public getTickets_result(
1909
      List<Ticket> success)
1910
    {
1911
      this();
1912
      this.success = success;
1913
    }
1914
 
1915
    /**
1916
     * Performs a deep copy on <i>other</i>.
1917
     */
1918
    public getTickets_result(getTickets_result other) {
1919
      if (other.isSetSuccess()) {
1920
        List<Ticket> __this__success = new ArrayList<Ticket>();
1921
        for (Ticket other_element : other.success) {
1922
          __this__success.add(new Ticket(other_element));
1923
        }
1924
        this.success = __this__success;
1925
      }
1926
    }
1927
 
1928
    public getTickets_result deepCopy() {
1929
      return new getTickets_result(this);
1930
    }
1931
 
3430 rajveer 1932
    @Override
1933
    public void clear() {
1934
      this.success = null;
3028 mandeep.dh 1935
    }
1936
 
1937
    public int getSuccessSize() {
1938
      return (this.success == null) ? 0 : this.success.size();
1939
    }
1940
 
1941
    public java.util.Iterator<Ticket> getSuccessIterator() {
1942
      return (this.success == null) ? null : this.success.iterator();
1943
    }
1944
 
1945
    public void addToSuccess(Ticket elem) {
1946
      if (this.success == null) {
1947
        this.success = new ArrayList<Ticket>();
1948
      }
1949
      this.success.add(elem);
1950
    }
1951
 
1952
    public List<Ticket> getSuccess() {
1953
      return this.success;
1954
    }
1955
 
3430 rajveer 1956
    public void setSuccess(List<Ticket> success) {
3028 mandeep.dh 1957
      this.success = success;
1958
    }
1959
 
1960
    public void unsetSuccess() {
1961
      this.success = null;
1962
    }
1963
 
3430 rajveer 1964
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 1965
    public boolean isSetSuccess() {
1966
      return this.success != null;
1967
    }
1968
 
1969
    public void setSuccessIsSet(boolean value) {
1970
      if (!value) {
1971
        this.success = null;
1972
      }
1973
    }
1974
 
1975
    public void setFieldValue(_Fields field, Object value) {
1976
      switch (field) {
1977
      case SUCCESS:
1978
        if (value == null) {
1979
          unsetSuccess();
1980
        } else {
1981
          setSuccess((List<Ticket>)value);
1982
        }
1983
        break;
1984
 
1985
      }
1986
    }
1987
 
1988
    public Object getFieldValue(_Fields field) {
1989
      switch (field) {
1990
      case SUCCESS:
1991
        return getSuccess();
1992
 
1993
      }
1994
      throw new IllegalStateException();
1995
    }
1996
 
3430 rajveer 1997
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1998
    public boolean isSet(_Fields field) {
1999
      if (field == null) {
2000
        throw new IllegalArgumentException();
2001
      }
3028 mandeep.dh 2002
 
2003
      switch (field) {
2004
      case SUCCESS:
2005
        return isSetSuccess();
2006
      }
2007
      throw new IllegalStateException();
2008
    }
2009
 
2010
    @Override
2011
    public boolean equals(Object that) {
2012
      if (that == null)
2013
        return false;
2014
      if (that instanceof getTickets_result)
2015
        return this.equals((getTickets_result)that);
2016
      return false;
2017
    }
2018
 
2019
    public boolean equals(getTickets_result that) {
2020
      if (that == null)
2021
        return false;
2022
 
2023
      boolean this_present_success = true && this.isSetSuccess();
2024
      boolean that_present_success = true && that.isSetSuccess();
2025
      if (this_present_success || that_present_success) {
2026
        if (!(this_present_success && that_present_success))
2027
          return false;
2028
        if (!this.success.equals(that.success))
2029
          return false;
2030
      }
2031
 
2032
      return true;
2033
    }
2034
 
2035
    @Override
2036
    public int hashCode() {
2037
      return 0;
2038
    }
2039
 
2040
    public int compareTo(getTickets_result other) {
2041
      if (!getClass().equals(other.getClass())) {
2042
        return getClass().getName().compareTo(other.getClass().getName());
2043
      }
2044
 
2045
      int lastComparison = 0;
2046
      getTickets_result typedOther = (getTickets_result)other;
2047
 
3430 rajveer 2048
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 2049
      if (lastComparison != 0) {
2050
        return lastComparison;
2051
      }
3430 rajveer 2052
      if (isSetSuccess()) {
2053
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2054
        if (lastComparison != 0) {
2055
          return lastComparison;
2056
        }
3028 mandeep.dh 2057
      }
2058
      return 0;
2059
    }
2060
 
3430 rajveer 2061
    public _Fields fieldForId(int fieldId) {
2062
      return _Fields.findByThriftId(fieldId);
2063
    }
2064
 
2065
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2066
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 2067
      iprot.readStructBegin();
2068
      while (true)
2069
      {
2070
        field = iprot.readFieldBegin();
3430 rajveer 2071
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 2072
          break;
2073
        }
3430 rajveer 2074
        switch (field.id) {
2075
          case 0: // SUCCESS
2076
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2077
              {
3546 mandeep.dh 2078
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
2079
                this.success = new ArrayList<Ticket>(_list12.size);
2080
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
3028 mandeep.dh 2081
                {
3546 mandeep.dh 2082
                  Ticket _elem14; // required
2083
                  _elem14 = new Ticket();
2084
                  _elem14.read(iprot);
2085
                  this.success.add(_elem14);
3028 mandeep.dh 2086
                }
3430 rajveer 2087
                iprot.readListEnd();
3028 mandeep.dh 2088
              }
3430 rajveer 2089
            } else { 
2090
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2091
            }
2092
            break;
2093
          default:
2094
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 2095
        }
3430 rajveer 2096
        iprot.readFieldEnd();
3028 mandeep.dh 2097
      }
2098
      iprot.readStructEnd();
2099
      validate();
2100
    }
2101
 
3430 rajveer 2102
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 2103
      oprot.writeStructBegin(STRUCT_DESC);
2104
 
2105
      if (this.isSetSuccess()) {
2106
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2107
        {
3430 rajveer 2108
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 2109
          for (Ticket _iter15 : this.success)
3028 mandeep.dh 2110
          {
3546 mandeep.dh 2111
            _iter15.write(oprot);
3028 mandeep.dh 2112
          }
2113
          oprot.writeListEnd();
2114
        }
2115
        oprot.writeFieldEnd();
2116
      }
2117
      oprot.writeFieldStop();
2118
      oprot.writeStructEnd();
2119
    }
2120
 
2121
    @Override
2122
    public String toString() {
2123
      StringBuilder sb = new StringBuilder("getTickets_result(");
2124
      boolean first = true;
2125
 
2126
      sb.append("success:");
2127
      if (this.success == null) {
2128
        sb.append("null");
2129
      } else {
2130
        sb.append(this.success);
2131
      }
2132
      first = false;
2133
      sb.append(")");
2134
      return sb.toString();
2135
    }
2136
 
3430 rajveer 2137
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 2138
      // check for required fields
2139
    }
2140
 
3430 rajveer 2141
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2142
      try {
2143
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2144
      } catch (org.apache.thrift.TException te) {
2145
        throw new java.io.IOException(te);
2146
      }
2147
    }
2148
 
2149
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2150
      try {
2151
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2152
      } catch (org.apache.thrift.TException te) {
2153
        throw new java.io.IOException(te);
2154
      }
2155
    }
2156
 
3028 mandeep.dh 2157
  }
2158
 
3430 rajveer 2159
  public static class getUnassignedTickets_args implements org.apache.thrift.TBase<getUnassignedTickets_args, getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable   {
2160
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnassignedTickets_args");
3087 mandeep.dh 2161
 
2162
 
2163
 
2164
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2165
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 2166
;
2167
 
2168
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2169
 
2170
      static {
2171
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2172
          byName.put(field.getFieldName(), field);
2173
        }
2174
      }
2175
 
2176
      /**
2177
       * Find the _Fields constant that matches fieldId, or null if its not found.
2178
       */
2179
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2180
        switch(fieldId) {
2181
          default:
2182
            return null;
2183
        }
3087 mandeep.dh 2184
      }
2185
 
2186
      /**
2187
       * Find the _Fields constant that matches fieldId, throwing an exception
2188
       * if it is not found.
2189
       */
2190
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2191
        _Fields fields = findByThriftId(fieldId);
2192
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2193
        return fields;
2194
      }
2195
 
2196
      /**
2197
       * Find the _Fields constant that matches name, or null if its not found.
2198
       */
2199
      public static _Fields findByName(String name) {
2200
        return byName.get(name);
2201
      }
2202
 
2203
      private final short _thriftId;
2204
      private final String _fieldName;
2205
 
2206
      _Fields(short thriftId, String fieldName) {
2207
        _thriftId = thriftId;
2208
        _fieldName = fieldName;
2209
      }
2210
 
2211
      public short getThriftFieldId() {
2212
        return _thriftId;
2213
      }
2214
 
2215
      public String getFieldName() {
2216
        return _fieldName;
2217
      }
2218
    }
3430 rajveer 2219
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 2220
    static {
3430 rajveer 2221
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2222
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2223
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnassignedTickets_args.class, metaDataMap);
3087 mandeep.dh 2224
    }
2225
 
3137 mandeep.dh 2226
    public getUnassignedTickets_args() {
3087 mandeep.dh 2227
    }
2228
 
2229
    /**
2230
     * Performs a deep copy on <i>other</i>.
2231
     */
3137 mandeep.dh 2232
    public getUnassignedTickets_args(getUnassignedTickets_args other) {
3087 mandeep.dh 2233
    }
2234
 
3137 mandeep.dh 2235
    public getUnassignedTickets_args deepCopy() {
2236
      return new getUnassignedTickets_args(this);
3087 mandeep.dh 2237
    }
2238
 
3430 rajveer 2239
    @Override
2240
    public void clear() {
3087 mandeep.dh 2241
    }
2242
 
2243
    public void setFieldValue(_Fields field, Object value) {
2244
      switch (field) {
2245
      }
2246
    }
2247
 
2248
    public Object getFieldValue(_Fields field) {
2249
      switch (field) {
2250
      }
2251
      throw new IllegalStateException();
2252
    }
2253
 
3430 rajveer 2254
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2255
    public boolean isSet(_Fields field) {
2256
      if (field == null) {
2257
        throw new IllegalArgumentException();
2258
      }
3087 mandeep.dh 2259
 
2260
      switch (field) {
2261
      }
2262
      throw new IllegalStateException();
2263
    }
2264
 
2265
    @Override
2266
    public boolean equals(Object that) {
2267
      if (that == null)
2268
        return false;
3137 mandeep.dh 2269
      if (that instanceof getUnassignedTickets_args)
2270
        return this.equals((getUnassignedTickets_args)that);
3087 mandeep.dh 2271
      return false;
2272
    }
2273
 
3137 mandeep.dh 2274
    public boolean equals(getUnassignedTickets_args that) {
3087 mandeep.dh 2275
      if (that == null)
2276
        return false;
2277
 
2278
      return true;
2279
    }
2280
 
2281
    @Override
2282
    public int hashCode() {
2283
      return 0;
2284
    }
2285
 
3137 mandeep.dh 2286
    public int compareTo(getUnassignedTickets_args other) {
3087 mandeep.dh 2287
      if (!getClass().equals(other.getClass())) {
2288
        return getClass().getName().compareTo(other.getClass().getName());
2289
      }
2290
 
2291
      int lastComparison = 0;
3137 mandeep.dh 2292
      getUnassignedTickets_args typedOther = (getUnassignedTickets_args)other;
3087 mandeep.dh 2293
 
2294
      return 0;
2295
    }
2296
 
3430 rajveer 2297
    public _Fields fieldForId(int fieldId) {
2298
      return _Fields.findByThriftId(fieldId);
2299
    }
2300
 
2301
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2302
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 2303
      iprot.readStructBegin();
2304
      while (true)
2305
      {
2306
        field = iprot.readFieldBegin();
3430 rajveer 2307
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 2308
          break;
2309
        }
3430 rajveer 2310
        switch (field.id) {
2311
          default:
2312
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 2313
        }
3430 rajveer 2314
        iprot.readFieldEnd();
3087 mandeep.dh 2315
      }
2316
      iprot.readStructEnd();
2317
      validate();
2318
    }
2319
 
3430 rajveer 2320
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 2321
      validate();
2322
 
2323
      oprot.writeStructBegin(STRUCT_DESC);
2324
      oprot.writeFieldStop();
2325
      oprot.writeStructEnd();
2326
    }
2327
 
2328
    @Override
2329
    public String toString() {
3137 mandeep.dh 2330
      StringBuilder sb = new StringBuilder("getUnassignedTickets_args(");
3087 mandeep.dh 2331
      boolean first = true;
2332
 
2333
      sb.append(")");
2334
      return sb.toString();
2335
    }
2336
 
3430 rajveer 2337
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 2338
      // check for required fields
2339
    }
2340
 
3430 rajveer 2341
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2342
      try {
2343
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2344
      } catch (org.apache.thrift.TException te) {
2345
        throw new java.io.IOException(te);
2346
      }
2347
    }
2348
 
2349
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2350
      try {
2351
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2352
      } catch (org.apache.thrift.TException te) {
2353
        throw new java.io.IOException(te);
2354
      }
2355
    }
2356
 
3087 mandeep.dh 2357
  }
2358
 
3430 rajveer 2359
  public static class getUnassignedTickets_result implements org.apache.thrift.TBase<getUnassignedTickets_result, getUnassignedTickets_result._Fields>, java.io.Serializable, Cloneable   {
2360
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnassignedTickets_result");
3087 mandeep.dh 2361
 
3430 rajveer 2362
    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 2363
 
3430 rajveer 2364
    private List<Ticket> success; // required
3087 mandeep.dh 2365
 
2366
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2367
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 2368
      SUCCESS((short)0, "success");
2369
 
2370
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2371
 
2372
      static {
2373
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2374
          byName.put(field.getFieldName(), field);
2375
        }
2376
      }
2377
 
2378
      /**
2379
       * Find the _Fields constant that matches fieldId, or null if its not found.
2380
       */
2381
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2382
        switch(fieldId) {
2383
          case 0: // SUCCESS
2384
            return SUCCESS;
2385
          default:
2386
            return null;
2387
        }
3087 mandeep.dh 2388
      }
2389
 
2390
      /**
2391
       * Find the _Fields constant that matches fieldId, throwing an exception
2392
       * if it is not found.
2393
       */
2394
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2395
        _Fields fields = findByThriftId(fieldId);
2396
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2397
        return fields;
2398
      }
2399
 
2400
      /**
2401
       * Find the _Fields constant that matches name, or null if its not found.
2402
       */
2403
      public static _Fields findByName(String name) {
2404
        return byName.get(name);
2405
      }
2406
 
2407
      private final short _thriftId;
2408
      private final String _fieldName;
2409
 
2410
      _Fields(short thriftId, String fieldName) {
2411
        _thriftId = thriftId;
2412
        _fieldName = fieldName;
2413
      }
2414
 
2415
      public short getThriftFieldId() {
2416
        return _thriftId;
2417
      }
2418
 
2419
      public String getFieldName() {
2420
        return _fieldName;
2421
      }
2422
    }
2423
 
2424
    // isset id assignments
2425
 
3430 rajveer 2426
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 2427
    static {
3430 rajveer 2428
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2429
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2430
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2431
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class))));
2432
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2433
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnassignedTickets_result.class, metaDataMap);
3087 mandeep.dh 2434
    }
2435
 
3137 mandeep.dh 2436
    public getUnassignedTickets_result() {
3087 mandeep.dh 2437
    }
2438
 
3137 mandeep.dh 2439
    public getUnassignedTickets_result(
3087 mandeep.dh 2440
      List<Ticket> success)
2441
    {
2442
      this();
2443
      this.success = success;
2444
    }
2445
 
2446
    /**
2447
     * Performs a deep copy on <i>other</i>.
2448
     */
3137 mandeep.dh 2449
    public getUnassignedTickets_result(getUnassignedTickets_result other) {
3087 mandeep.dh 2450
      if (other.isSetSuccess()) {
2451
        List<Ticket> __this__success = new ArrayList<Ticket>();
2452
        for (Ticket other_element : other.success) {
2453
          __this__success.add(new Ticket(other_element));
2454
        }
2455
        this.success = __this__success;
2456
      }
2457
    }
2458
 
3137 mandeep.dh 2459
    public getUnassignedTickets_result deepCopy() {
2460
      return new getUnassignedTickets_result(this);
3087 mandeep.dh 2461
    }
2462
 
3430 rajveer 2463
    @Override
2464
    public void clear() {
2465
      this.success = null;
3087 mandeep.dh 2466
    }
2467
 
2468
    public int getSuccessSize() {
2469
      return (this.success == null) ? 0 : this.success.size();
2470
    }
2471
 
2472
    public java.util.Iterator<Ticket> getSuccessIterator() {
2473
      return (this.success == null) ? null : this.success.iterator();
2474
    }
2475
 
2476
    public void addToSuccess(Ticket elem) {
2477
      if (this.success == null) {
2478
        this.success = new ArrayList<Ticket>();
2479
      }
2480
      this.success.add(elem);
2481
    }
2482
 
2483
    public List<Ticket> getSuccess() {
2484
      return this.success;
2485
    }
2486
 
3430 rajveer 2487
    public void setSuccess(List<Ticket> success) {
3087 mandeep.dh 2488
      this.success = success;
2489
    }
2490
 
2491
    public void unsetSuccess() {
2492
      this.success = null;
2493
    }
2494
 
3430 rajveer 2495
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 2496
    public boolean isSetSuccess() {
2497
      return this.success != null;
2498
    }
2499
 
2500
    public void setSuccessIsSet(boolean value) {
2501
      if (!value) {
2502
        this.success = null;
2503
      }
2504
    }
2505
 
2506
    public void setFieldValue(_Fields field, Object value) {
2507
      switch (field) {
2508
      case SUCCESS:
2509
        if (value == null) {
2510
          unsetSuccess();
2511
        } else {
2512
          setSuccess((List<Ticket>)value);
2513
        }
2514
        break;
2515
 
2516
      }
2517
    }
2518
 
2519
    public Object getFieldValue(_Fields field) {
2520
      switch (field) {
2521
      case SUCCESS:
2522
        return getSuccess();
2523
 
2524
      }
2525
      throw new IllegalStateException();
2526
    }
2527
 
3430 rajveer 2528
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2529
    public boolean isSet(_Fields field) {
2530
      if (field == null) {
2531
        throw new IllegalArgumentException();
2532
      }
3087 mandeep.dh 2533
 
2534
      switch (field) {
2535
      case SUCCESS:
2536
        return isSetSuccess();
2537
      }
2538
      throw new IllegalStateException();
2539
    }
2540
 
2541
    @Override
2542
    public boolean equals(Object that) {
2543
      if (that == null)
2544
        return false;
3137 mandeep.dh 2545
      if (that instanceof getUnassignedTickets_result)
2546
        return this.equals((getUnassignedTickets_result)that);
3087 mandeep.dh 2547
      return false;
2548
    }
2549
 
3137 mandeep.dh 2550
    public boolean equals(getUnassignedTickets_result that) {
3087 mandeep.dh 2551
      if (that == null)
2552
        return false;
2553
 
2554
      boolean this_present_success = true && this.isSetSuccess();
2555
      boolean that_present_success = true && that.isSetSuccess();
2556
      if (this_present_success || that_present_success) {
2557
        if (!(this_present_success && that_present_success))
2558
          return false;
2559
        if (!this.success.equals(that.success))
2560
          return false;
2561
      }
2562
 
2563
      return true;
2564
    }
2565
 
2566
    @Override
2567
    public int hashCode() {
2568
      return 0;
2569
    }
2570
 
3137 mandeep.dh 2571
    public int compareTo(getUnassignedTickets_result other) {
3087 mandeep.dh 2572
      if (!getClass().equals(other.getClass())) {
2573
        return getClass().getName().compareTo(other.getClass().getName());
2574
      }
2575
 
2576
      int lastComparison = 0;
3137 mandeep.dh 2577
      getUnassignedTickets_result typedOther = (getUnassignedTickets_result)other;
3087 mandeep.dh 2578
 
3430 rajveer 2579
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 2580
      if (lastComparison != 0) {
2581
        return lastComparison;
2582
      }
3430 rajveer 2583
      if (isSetSuccess()) {
2584
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2585
        if (lastComparison != 0) {
2586
          return lastComparison;
2587
        }
3087 mandeep.dh 2588
      }
2589
      return 0;
2590
    }
2591
 
3430 rajveer 2592
    public _Fields fieldForId(int fieldId) {
2593
      return _Fields.findByThriftId(fieldId);
2594
    }
2595
 
2596
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2597
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 2598
      iprot.readStructBegin();
2599
      while (true)
2600
      {
2601
        field = iprot.readFieldBegin();
3430 rajveer 2602
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 2603
          break;
2604
        }
3430 rajveer 2605
        switch (field.id) {
2606
          case 0: // SUCCESS
2607
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2608
              {
3546 mandeep.dh 2609
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
2610
                this.success = new ArrayList<Ticket>(_list16.size);
2611
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
3087 mandeep.dh 2612
                {
3546 mandeep.dh 2613
                  Ticket _elem18; // required
2614
                  _elem18 = new Ticket();
2615
                  _elem18.read(iprot);
2616
                  this.success.add(_elem18);
3137 mandeep.dh 2617
                }
3430 rajveer 2618
                iprot.readListEnd();
3137 mandeep.dh 2619
              }
3430 rajveer 2620
            } else { 
2621
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2622
            }
2623
            break;
2624
          default:
2625
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3137 mandeep.dh 2626
        }
3430 rajveer 2627
        iprot.readFieldEnd();
3137 mandeep.dh 2628
      }
2629
      iprot.readStructEnd();
2630
      validate();
2631
    }
2632
 
3430 rajveer 2633
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3137 mandeep.dh 2634
      oprot.writeStructBegin(STRUCT_DESC);
2635
 
2636
      if (this.isSetSuccess()) {
2637
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2638
        {
3430 rajveer 2639
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 2640
          for (Ticket _iter19 : this.success)
3137 mandeep.dh 2641
          {
3546 mandeep.dh 2642
            _iter19.write(oprot);
3137 mandeep.dh 2643
          }
2644
          oprot.writeListEnd();
2645
        }
2646
        oprot.writeFieldEnd();
2647
      }
2648
      oprot.writeFieldStop();
2649
      oprot.writeStructEnd();
2650
    }
2651
 
2652
    @Override
2653
    public String toString() {
3390 mandeep.dh 2654
      StringBuilder sb = new StringBuilder("getUnassignedTickets_result(");
3137 mandeep.dh 2655
      boolean first = true;
2656
 
2657
      sb.append("success:");
2658
      if (this.success == null) {
2659
        sb.append("null");
2660
      } else {
2661
        sb.append(this.success);
2662
      }
2663
      first = false;
2664
      sb.append(")");
2665
      return sb.toString();
2666
    }
2667
 
3430 rajveer 2668
    public void validate() throws org.apache.thrift.TException {
3137 mandeep.dh 2669
      // check for required fields
2670
    }
2671
 
3430 rajveer 2672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2673
      try {
2674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2675
      } catch (org.apache.thrift.TException te) {
2676
        throw new java.io.IOException(te);
2677
      }
2678
    }
2679
 
2680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2681
      try {
2682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2683
      } catch (org.apache.thrift.TException te) {
2684
        throw new java.io.IOException(te);
2685
      }
2686
    }
2687
 
3137 mandeep.dh 2688
  }
2689
 
3430 rajveer 2690
  public static class updateTicket_args implements org.apache.thrift.TBase<updateTicket_args, updateTicket_args._Fields>, java.io.Serializable, Cloneable   {
2691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTicket_args");
3028 mandeep.dh 2692
 
3430 rajveer 2693
    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);
2694
    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 2695
 
3430 rajveer 2696
    private Ticket ticket; // required
2697
    private Activity activity; // required
3028 mandeep.dh 2698
 
2699
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2700
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 2701
      TICKET((short)1, "ticket"),
2702
      ACTIVITY((short)2, "activity");
3028 mandeep.dh 2703
 
2704
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2705
 
2706
      static {
2707
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2708
          byName.put(field.getFieldName(), field);
2709
        }
2710
      }
2711
 
2712
      /**
2713
       * Find the _Fields constant that matches fieldId, or null if its not found.
2714
       */
2715
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2716
        switch(fieldId) {
2717
          case 1: // TICKET
2718
            return TICKET;
2719
          case 2: // ACTIVITY
2720
            return ACTIVITY;
2721
          default:
2722
            return null;
2723
        }
3028 mandeep.dh 2724
      }
2725
 
2726
      /**
2727
       * Find the _Fields constant that matches fieldId, throwing an exception
2728
       * if it is not found.
2729
       */
2730
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2731
        _Fields fields = findByThriftId(fieldId);
2732
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2733
        return fields;
2734
      }
2735
 
2736
      /**
2737
       * Find the _Fields constant that matches name, or null if its not found.
2738
       */
2739
      public static _Fields findByName(String name) {
2740
        return byName.get(name);
2741
      }
2742
 
2743
      private final short _thriftId;
2744
      private final String _fieldName;
2745
 
2746
      _Fields(short thriftId, String fieldName) {
2747
        _thriftId = thriftId;
2748
        _fieldName = fieldName;
2749
      }
2750
 
2751
      public short getThriftFieldId() {
2752
        return _thriftId;
2753
      }
2754
 
2755
      public String getFieldName() {
2756
        return _fieldName;
2757
      }
2758
    }
2759
 
2760
    // isset id assignments
2761
 
3430 rajveer 2762
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 2763
    static {
3430 rajveer 2764
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2765
      tmpMap.put(_Fields.TICKET, new org.apache.thrift.meta_data.FieldMetaData("ticket", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2766
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class)));
2767
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2768
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
2769
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2770
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTicket_args.class, metaDataMap);
3028 mandeep.dh 2771
    }
2772
 
2773
    public updateTicket_args() {
2774
    }
2775
 
2776
    public updateTicket_args(
3206 mandeep.dh 2777
      Ticket ticket,
2778
      Activity activity)
3028 mandeep.dh 2779
    {
2780
      this();
2781
      this.ticket = ticket;
3206 mandeep.dh 2782
      this.activity = activity;
3028 mandeep.dh 2783
    }
2784
 
2785
    /**
2786
     * Performs a deep copy on <i>other</i>.
2787
     */
2788
    public updateTicket_args(updateTicket_args other) {
2789
      if (other.isSetTicket()) {
2790
        this.ticket = new Ticket(other.ticket);
2791
      }
3206 mandeep.dh 2792
      if (other.isSetActivity()) {
2793
        this.activity = new Activity(other.activity);
2794
      }
3028 mandeep.dh 2795
    }
2796
 
2797
    public updateTicket_args deepCopy() {
2798
      return new updateTicket_args(this);
2799
    }
2800
 
3430 rajveer 2801
    @Override
2802
    public void clear() {
2803
      this.ticket = null;
2804
      this.activity = null;
3028 mandeep.dh 2805
    }
2806
 
2807
    public Ticket getTicket() {
2808
      return this.ticket;
2809
    }
2810
 
3430 rajveer 2811
    public void setTicket(Ticket ticket) {
3028 mandeep.dh 2812
      this.ticket = ticket;
2813
    }
2814
 
2815
    public void unsetTicket() {
2816
      this.ticket = null;
2817
    }
2818
 
3430 rajveer 2819
    /** Returns true if field ticket is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 2820
    public boolean isSetTicket() {
2821
      return this.ticket != null;
2822
    }
2823
 
2824
    public void setTicketIsSet(boolean value) {
2825
      if (!value) {
2826
        this.ticket = null;
2827
      }
2828
    }
2829
 
3206 mandeep.dh 2830
    public Activity getActivity() {
2831
      return this.activity;
2832
    }
2833
 
3430 rajveer 2834
    public void setActivity(Activity activity) {
3206 mandeep.dh 2835
      this.activity = activity;
2836
    }
2837
 
2838
    public void unsetActivity() {
2839
      this.activity = null;
2840
    }
2841
 
3430 rajveer 2842
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 2843
    public boolean isSetActivity() {
2844
      return this.activity != null;
2845
    }
2846
 
2847
    public void setActivityIsSet(boolean value) {
2848
      if (!value) {
2849
        this.activity = null;
2850
      }
2851
    }
2852
 
3028 mandeep.dh 2853
    public void setFieldValue(_Fields field, Object value) {
2854
      switch (field) {
2855
      case TICKET:
2856
        if (value == null) {
2857
          unsetTicket();
2858
        } else {
2859
          setTicket((Ticket)value);
2860
        }
2861
        break;
2862
 
3206 mandeep.dh 2863
      case ACTIVITY:
2864
        if (value == null) {
2865
          unsetActivity();
2866
        } else {
2867
          setActivity((Activity)value);
2868
        }
2869
        break;
2870
 
3028 mandeep.dh 2871
      }
2872
    }
2873
 
2874
    public Object getFieldValue(_Fields field) {
2875
      switch (field) {
2876
      case TICKET:
2877
        return getTicket();
2878
 
3206 mandeep.dh 2879
      case ACTIVITY:
2880
        return getActivity();
2881
 
3028 mandeep.dh 2882
      }
2883
      throw new IllegalStateException();
2884
    }
2885
 
3430 rajveer 2886
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2887
    public boolean isSet(_Fields field) {
2888
      if (field == null) {
2889
        throw new IllegalArgumentException();
2890
      }
3028 mandeep.dh 2891
 
2892
      switch (field) {
2893
      case TICKET:
2894
        return isSetTicket();
3206 mandeep.dh 2895
      case ACTIVITY:
2896
        return isSetActivity();
3028 mandeep.dh 2897
      }
2898
      throw new IllegalStateException();
2899
    }
2900
 
2901
    @Override
2902
    public boolean equals(Object that) {
2903
      if (that == null)
2904
        return false;
2905
      if (that instanceof updateTicket_args)
2906
        return this.equals((updateTicket_args)that);
2907
      return false;
2908
    }
2909
 
2910
    public boolean equals(updateTicket_args that) {
2911
      if (that == null)
2912
        return false;
2913
 
2914
      boolean this_present_ticket = true && this.isSetTicket();
2915
      boolean that_present_ticket = true && that.isSetTicket();
2916
      if (this_present_ticket || that_present_ticket) {
2917
        if (!(this_present_ticket && that_present_ticket))
2918
          return false;
2919
        if (!this.ticket.equals(that.ticket))
2920
          return false;
2921
      }
2922
 
3206 mandeep.dh 2923
      boolean this_present_activity = true && this.isSetActivity();
2924
      boolean that_present_activity = true && that.isSetActivity();
2925
      if (this_present_activity || that_present_activity) {
2926
        if (!(this_present_activity && that_present_activity))
2927
          return false;
2928
        if (!this.activity.equals(that.activity))
2929
          return false;
2930
      }
2931
 
3028 mandeep.dh 2932
      return true;
2933
    }
2934
 
2935
    @Override
2936
    public int hashCode() {
2937
      return 0;
2938
    }
2939
 
2940
    public int compareTo(updateTicket_args other) {
2941
      if (!getClass().equals(other.getClass())) {
2942
        return getClass().getName().compareTo(other.getClass().getName());
2943
      }
2944
 
2945
      int lastComparison = 0;
2946
      updateTicket_args typedOther = (updateTicket_args)other;
2947
 
3430 rajveer 2948
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(typedOther.isSetTicket());
3028 mandeep.dh 2949
      if (lastComparison != 0) {
2950
        return lastComparison;
2951
      }
3430 rajveer 2952
      if (isSetTicket()) {
2953
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticket, typedOther.ticket);
2954
        if (lastComparison != 0) {
2955
          return lastComparison;
2956
        }
3028 mandeep.dh 2957
      }
3430 rajveer 2958
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3206 mandeep.dh 2959
      if (lastComparison != 0) {
2960
        return lastComparison;
2961
      }
3430 rajveer 2962
      if (isSetActivity()) {
2963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
2964
        if (lastComparison != 0) {
2965
          return lastComparison;
2966
        }
3206 mandeep.dh 2967
      }
3028 mandeep.dh 2968
      return 0;
2969
    }
2970
 
3430 rajveer 2971
    public _Fields fieldForId(int fieldId) {
2972
      return _Fields.findByThriftId(fieldId);
2973
    }
2974
 
2975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2976
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 2977
      iprot.readStructBegin();
2978
      while (true)
2979
      {
2980
        field = iprot.readFieldBegin();
3430 rajveer 2981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 2982
          break;
2983
        }
3430 rajveer 2984
        switch (field.id) {
2985
          case 1: // TICKET
2986
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2987
              this.ticket = new Ticket();
2988
              this.ticket.read(iprot);
2989
            } else { 
2990
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2991
            }
2992
            break;
2993
          case 2: // ACTIVITY
2994
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2995
              this.activity = new Activity();
2996
              this.activity.read(iprot);
2997
            } else { 
2998
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2999
            }
3000
            break;
3001
          default:
3002
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3003
        }
3430 rajveer 3004
        iprot.readFieldEnd();
3028 mandeep.dh 3005
      }
3006
      iprot.readStructEnd();
3007
      validate();
3008
    }
3009
 
3430 rajveer 3010
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3011
      validate();
3012
 
3013
      oprot.writeStructBegin(STRUCT_DESC);
3014
      if (this.ticket != null) {
3015
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
3016
        this.ticket.write(oprot);
3017
        oprot.writeFieldEnd();
3018
      }
3206 mandeep.dh 3019
      if (this.activity != null) {
3020
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
3021
        this.activity.write(oprot);
3022
        oprot.writeFieldEnd();
3023
      }
3028 mandeep.dh 3024
      oprot.writeFieldStop();
3025
      oprot.writeStructEnd();
3026
    }
3027
 
3028
    @Override
3029
    public String toString() {
3030
      StringBuilder sb = new StringBuilder("updateTicket_args(");
3031
      boolean first = true;
3032
 
3033
      sb.append("ticket:");
3034
      if (this.ticket == null) {
3035
        sb.append("null");
3036
      } else {
3037
        sb.append(this.ticket);
3038
      }
3039
      first = false;
3206 mandeep.dh 3040
      if (!first) sb.append(", ");
3041
      sb.append("activity:");
3042
      if (this.activity == null) {
3043
        sb.append("null");
3044
      } else {
3045
        sb.append(this.activity);
3046
      }
3047
      first = false;
3028 mandeep.dh 3048
      sb.append(")");
3049
      return sb.toString();
3050
    }
3051
 
3430 rajveer 3052
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3053
      // check for required fields
3054
    }
3055
 
3430 rajveer 3056
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3057
      try {
3058
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3059
      } catch (org.apache.thrift.TException te) {
3060
        throw new java.io.IOException(te);
3061
      }
3062
    }
3063
 
3064
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3065
      try {
3066
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3067
      } catch (org.apache.thrift.TException te) {
3068
        throw new java.io.IOException(te);
3069
      }
3070
    }
3071
 
3028 mandeep.dh 3072
  }
3073
 
3430 rajveer 3074
  public static class updateTicket_result implements org.apache.thrift.TBase<updateTicket_result, updateTicket_result._Fields>, java.io.Serializable, Cloneable   {
3075
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTicket_result");
3028 mandeep.dh 3076
 
3077
 
3078
 
3079
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3080
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 3081
;
3082
 
3083
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3084
 
3085
      static {
3086
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3087
          byName.put(field.getFieldName(), field);
3088
        }
3089
      }
3090
 
3091
      /**
3092
       * Find the _Fields constant that matches fieldId, or null if its not found.
3093
       */
3094
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3095
        switch(fieldId) {
3096
          default:
3097
            return null;
3098
        }
3028 mandeep.dh 3099
      }
3100
 
3101
      /**
3102
       * Find the _Fields constant that matches fieldId, throwing an exception
3103
       * if it is not found.
3104
       */
3105
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3106
        _Fields fields = findByThriftId(fieldId);
3107
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3108
        return fields;
3109
      }
3110
 
3111
      /**
3112
       * Find the _Fields constant that matches name, or null if its not found.
3113
       */
3114
      public static _Fields findByName(String name) {
3115
        return byName.get(name);
3116
      }
3117
 
3118
      private final short _thriftId;
3119
      private final String _fieldName;
3120
 
3121
      _Fields(short thriftId, String fieldName) {
3122
        _thriftId = thriftId;
3123
        _fieldName = fieldName;
3124
      }
3125
 
3126
      public short getThriftFieldId() {
3127
        return _thriftId;
3128
      }
3129
 
3130
      public String getFieldName() {
3131
        return _fieldName;
3132
      }
3133
    }
3430 rajveer 3134
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 3135
    static {
3430 rajveer 3136
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3137
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3138
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTicket_result.class, metaDataMap);
3028 mandeep.dh 3139
    }
3140
 
3141
    public updateTicket_result() {
3142
    }
3143
 
3144
    /**
3145
     * Performs a deep copy on <i>other</i>.
3146
     */
3147
    public updateTicket_result(updateTicket_result other) {
3148
    }
3149
 
3150
    public updateTicket_result deepCopy() {
3151
      return new updateTicket_result(this);
3152
    }
3153
 
3430 rajveer 3154
    @Override
3155
    public void clear() {
3028 mandeep.dh 3156
    }
3157
 
3158
    public void setFieldValue(_Fields field, Object value) {
3159
      switch (field) {
3160
      }
3161
    }
3162
 
3163
    public Object getFieldValue(_Fields field) {
3164
      switch (field) {
3165
      }
3166
      throw new IllegalStateException();
3167
    }
3168
 
3430 rajveer 3169
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3170
    public boolean isSet(_Fields field) {
3171
      if (field == null) {
3172
        throw new IllegalArgumentException();
3173
      }
3028 mandeep.dh 3174
 
3175
      switch (field) {
3176
      }
3177
      throw new IllegalStateException();
3178
    }
3179
 
3180
    @Override
3181
    public boolean equals(Object that) {
3182
      if (that == null)
3183
        return false;
3184
      if (that instanceof updateTicket_result)
3185
        return this.equals((updateTicket_result)that);
3186
      return false;
3187
    }
3188
 
3189
    public boolean equals(updateTicket_result that) {
3190
      if (that == null)
3191
        return false;
3192
 
3193
      return true;
3194
    }
3195
 
3196
    @Override
3197
    public int hashCode() {
3198
      return 0;
3199
    }
3200
 
3201
    public int compareTo(updateTicket_result other) {
3202
      if (!getClass().equals(other.getClass())) {
3203
        return getClass().getName().compareTo(other.getClass().getName());
3204
      }
3205
 
3206
      int lastComparison = 0;
3207
      updateTicket_result typedOther = (updateTicket_result)other;
3208
 
3209
      return 0;
3210
    }
3211
 
3430 rajveer 3212
    public _Fields fieldForId(int fieldId) {
3213
      return _Fields.findByThriftId(fieldId);
3214
    }
3215
 
3216
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3217
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3218
      iprot.readStructBegin();
3219
      while (true)
3220
      {
3221
        field = iprot.readFieldBegin();
3430 rajveer 3222
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3223
          break;
3224
        }
3430 rajveer 3225
        switch (field.id) {
3226
          default:
3227
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3228
        }
3430 rajveer 3229
        iprot.readFieldEnd();
3028 mandeep.dh 3230
      }
3231
      iprot.readStructEnd();
3232
      validate();
3233
    }
3234
 
3430 rajveer 3235
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3236
      oprot.writeStructBegin(STRUCT_DESC);
3237
 
3238
      oprot.writeFieldStop();
3239
      oprot.writeStructEnd();
3240
    }
3241
 
3242
    @Override
3243
    public String toString() {
3244
      StringBuilder sb = new StringBuilder("updateTicket_result(");
3245
      boolean first = true;
3246
 
3247
      sb.append(")");
3248
      return sb.toString();
3249
    }
3250
 
3430 rajveer 3251
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3252
      // check for required fields
3253
    }
3254
 
3430 rajveer 3255
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3256
      try {
3257
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3258
      } catch (org.apache.thrift.TException te) {
3259
        throw new java.io.IOException(te);
3260
      }
3261
    }
3262
 
3263
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3264
      try {
3265
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3266
      } catch (org.apache.thrift.TException te) {
3267
        throw new java.io.IOException(te);
3268
      }
3269
    }
3270
 
3028 mandeep.dh 3271
  }
3272
 
3430 rajveer 3273
  public static class insertTicket_args implements org.apache.thrift.TBase<insertTicket_args, insertTicket_args._Fields>, java.io.Serializable, Cloneable   {
3274
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertTicket_args");
3028 mandeep.dh 3275
 
3430 rajveer 3276
    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);
3277
    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 3278
 
3430 rajveer 3279
    private Ticket ticket; // required
3280
    private Activity activity; // required
3028 mandeep.dh 3281
 
3282
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3283
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 3284
      TICKET((short)1, "ticket"),
3285
      ACTIVITY((short)2, "activity");
3028 mandeep.dh 3286
 
3287
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3288
 
3289
      static {
3290
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3291
          byName.put(field.getFieldName(), field);
3292
        }
3293
      }
3294
 
3295
      /**
3296
       * Find the _Fields constant that matches fieldId, or null if its not found.
3297
       */
3298
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3299
        switch(fieldId) {
3300
          case 1: // TICKET
3301
            return TICKET;
3302
          case 2: // ACTIVITY
3303
            return ACTIVITY;
3304
          default:
3305
            return null;
3306
        }
3028 mandeep.dh 3307
      }
3308
 
3309
      /**
3310
       * Find the _Fields constant that matches fieldId, throwing an exception
3311
       * if it is not found.
3312
       */
3313
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3314
        _Fields fields = findByThriftId(fieldId);
3315
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3316
        return fields;
3317
      }
3318
 
3319
      /**
3320
       * Find the _Fields constant that matches name, or null if its not found.
3321
       */
3322
      public static _Fields findByName(String name) {
3323
        return byName.get(name);
3324
      }
3325
 
3326
      private final short _thriftId;
3327
      private final String _fieldName;
3328
 
3329
      _Fields(short thriftId, String fieldName) {
3330
        _thriftId = thriftId;
3331
        _fieldName = fieldName;
3332
      }
3333
 
3334
      public short getThriftFieldId() {
3335
        return _thriftId;
3336
      }
3337
 
3338
      public String getFieldName() {
3339
        return _fieldName;
3340
      }
3341
    }
3342
 
3343
    // isset id assignments
3344
 
3430 rajveer 3345
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 3346
    static {
3430 rajveer 3347
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3348
      tmpMap.put(_Fields.TICKET, new org.apache.thrift.meta_data.FieldMetaData("ticket", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3349
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class)));
3350
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3351
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
3352
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3353
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertTicket_args.class, metaDataMap);
3028 mandeep.dh 3354
    }
3355
 
3356
    public insertTicket_args() {
3357
    }
3358
 
3359
    public insertTicket_args(
3206 mandeep.dh 3360
      Ticket ticket,
3361
      Activity activity)
3028 mandeep.dh 3362
    {
3363
      this();
3364
      this.ticket = ticket;
3206 mandeep.dh 3365
      this.activity = activity;
3028 mandeep.dh 3366
    }
3367
 
3368
    /**
3369
     * Performs a deep copy on <i>other</i>.
3370
     */
3371
    public insertTicket_args(insertTicket_args other) {
3372
      if (other.isSetTicket()) {
3373
        this.ticket = new Ticket(other.ticket);
3374
      }
3206 mandeep.dh 3375
      if (other.isSetActivity()) {
3376
        this.activity = new Activity(other.activity);
3377
      }
3028 mandeep.dh 3378
    }
3379
 
3380
    public insertTicket_args deepCopy() {
3381
      return new insertTicket_args(this);
3382
    }
3383
 
3430 rajveer 3384
    @Override
3385
    public void clear() {
3386
      this.ticket = null;
3387
      this.activity = null;
3028 mandeep.dh 3388
    }
3389
 
3390
    public Ticket getTicket() {
3391
      return this.ticket;
3392
    }
3393
 
3430 rajveer 3394
    public void setTicket(Ticket ticket) {
3028 mandeep.dh 3395
      this.ticket = ticket;
3396
    }
3397
 
3398
    public void unsetTicket() {
3399
      this.ticket = null;
3400
    }
3401
 
3430 rajveer 3402
    /** Returns true if field ticket is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 3403
    public boolean isSetTicket() {
3404
      return this.ticket != null;
3405
    }
3406
 
3407
    public void setTicketIsSet(boolean value) {
3408
      if (!value) {
3409
        this.ticket = null;
3410
      }
3411
    }
3412
 
3206 mandeep.dh 3413
    public Activity getActivity() {
3414
      return this.activity;
3415
    }
3416
 
3430 rajveer 3417
    public void setActivity(Activity activity) {
3206 mandeep.dh 3418
      this.activity = activity;
3419
    }
3420
 
3421
    public void unsetActivity() {
3422
      this.activity = null;
3423
    }
3424
 
3430 rajveer 3425
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3426
    public boolean isSetActivity() {
3427
      return this.activity != null;
3428
    }
3429
 
3430
    public void setActivityIsSet(boolean value) {
3431
      if (!value) {
3432
        this.activity = null;
3433
      }
3434
    }
3435
 
3028 mandeep.dh 3436
    public void setFieldValue(_Fields field, Object value) {
3437
      switch (field) {
3438
      case TICKET:
3439
        if (value == null) {
3440
          unsetTicket();
3441
        } else {
3442
          setTicket((Ticket)value);
3443
        }
3444
        break;
3445
 
3206 mandeep.dh 3446
      case ACTIVITY:
3447
        if (value == null) {
3448
          unsetActivity();
3449
        } else {
3450
          setActivity((Activity)value);
3451
        }
3452
        break;
3453
 
3028 mandeep.dh 3454
      }
3455
    }
3456
 
3457
    public Object getFieldValue(_Fields field) {
3458
      switch (field) {
3459
      case TICKET:
3460
        return getTicket();
3461
 
3206 mandeep.dh 3462
      case ACTIVITY:
3463
        return getActivity();
3464
 
3028 mandeep.dh 3465
      }
3466
      throw new IllegalStateException();
3467
    }
3468
 
3430 rajveer 3469
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3470
    public boolean isSet(_Fields field) {
3471
      if (field == null) {
3472
        throw new IllegalArgumentException();
3473
      }
3028 mandeep.dh 3474
 
3475
      switch (field) {
3476
      case TICKET:
3477
        return isSetTicket();
3206 mandeep.dh 3478
      case ACTIVITY:
3479
        return isSetActivity();
3028 mandeep.dh 3480
      }
3481
      throw new IllegalStateException();
3482
    }
3483
 
3484
    @Override
3485
    public boolean equals(Object that) {
3486
      if (that == null)
3487
        return false;
3488
      if (that instanceof insertTicket_args)
3489
        return this.equals((insertTicket_args)that);
3490
      return false;
3491
    }
3492
 
3493
    public boolean equals(insertTicket_args that) {
3494
      if (that == null)
3495
        return false;
3496
 
3497
      boolean this_present_ticket = true && this.isSetTicket();
3498
      boolean that_present_ticket = true && that.isSetTicket();
3499
      if (this_present_ticket || that_present_ticket) {
3500
        if (!(this_present_ticket && that_present_ticket))
3501
          return false;
3502
        if (!this.ticket.equals(that.ticket))
3503
          return false;
3504
      }
3505
 
3206 mandeep.dh 3506
      boolean this_present_activity = true && this.isSetActivity();
3507
      boolean that_present_activity = true && that.isSetActivity();
3508
      if (this_present_activity || that_present_activity) {
3509
        if (!(this_present_activity && that_present_activity))
3510
          return false;
3511
        if (!this.activity.equals(that.activity))
3512
          return false;
3513
      }
3514
 
3028 mandeep.dh 3515
      return true;
3516
    }
3517
 
3518
    @Override
3519
    public int hashCode() {
3520
      return 0;
3521
    }
3522
 
3523
    public int compareTo(insertTicket_args other) {
3524
      if (!getClass().equals(other.getClass())) {
3525
        return getClass().getName().compareTo(other.getClass().getName());
3526
      }
3527
 
3528
      int lastComparison = 0;
3529
      insertTicket_args typedOther = (insertTicket_args)other;
3530
 
3430 rajveer 3531
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(typedOther.isSetTicket());
3028 mandeep.dh 3532
      if (lastComparison != 0) {
3533
        return lastComparison;
3534
      }
3430 rajveer 3535
      if (isSetTicket()) {
3536
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticket, typedOther.ticket);
3537
        if (lastComparison != 0) {
3538
          return lastComparison;
3539
        }
3028 mandeep.dh 3540
      }
3430 rajveer 3541
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3206 mandeep.dh 3542
      if (lastComparison != 0) {
3543
        return lastComparison;
3544
      }
3430 rajveer 3545
      if (isSetActivity()) {
3546
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
3547
        if (lastComparison != 0) {
3548
          return lastComparison;
3549
        }
3206 mandeep.dh 3550
      }
3028 mandeep.dh 3551
      return 0;
3552
    }
3553
 
3430 rajveer 3554
    public _Fields fieldForId(int fieldId) {
3555
      return _Fields.findByThriftId(fieldId);
3556
    }
3557
 
3558
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3559
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3560
      iprot.readStructBegin();
3561
      while (true)
3562
      {
3563
        field = iprot.readFieldBegin();
3430 rajveer 3564
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3565
          break;
3566
        }
3430 rajveer 3567
        switch (field.id) {
3568
          case 1: // TICKET
3569
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3570
              this.ticket = new Ticket();
3571
              this.ticket.read(iprot);
3572
            } else { 
3573
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3574
            }
3575
            break;
3576
          case 2: // ACTIVITY
3577
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3578
              this.activity = new Activity();
3579
              this.activity.read(iprot);
3580
            } else { 
3581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3582
            }
3583
            break;
3584
          default:
3585
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3586
        }
3430 rajveer 3587
        iprot.readFieldEnd();
3028 mandeep.dh 3588
      }
3589
      iprot.readStructEnd();
3590
      validate();
3591
    }
3592
 
3430 rajveer 3593
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3594
      validate();
3595
 
3596
      oprot.writeStructBegin(STRUCT_DESC);
3597
      if (this.ticket != null) {
3598
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
3599
        this.ticket.write(oprot);
3600
        oprot.writeFieldEnd();
3601
      }
3206 mandeep.dh 3602
      if (this.activity != null) {
3603
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
3604
        this.activity.write(oprot);
3605
        oprot.writeFieldEnd();
3606
      }
3028 mandeep.dh 3607
      oprot.writeFieldStop();
3608
      oprot.writeStructEnd();
3609
    }
3610
 
3611
    @Override
3612
    public String toString() {
3613
      StringBuilder sb = new StringBuilder("insertTicket_args(");
3614
      boolean first = true;
3615
 
3616
      sb.append("ticket:");
3617
      if (this.ticket == null) {
3618
        sb.append("null");
3619
      } else {
3620
        sb.append(this.ticket);
3621
      }
3622
      first = false;
3206 mandeep.dh 3623
      if (!first) sb.append(", ");
3624
      sb.append("activity:");
3625
      if (this.activity == null) {
3626
        sb.append("null");
3627
      } else {
3628
        sb.append(this.activity);
3629
      }
3630
      first = false;
3028 mandeep.dh 3631
      sb.append(")");
3632
      return sb.toString();
3633
    }
3634
 
3430 rajveer 3635
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3636
      // check for required fields
3637
    }
3638
 
3430 rajveer 3639
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3640
      try {
3641
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3642
      } catch (org.apache.thrift.TException te) {
3643
        throw new java.io.IOException(te);
3644
      }
3645
    }
3646
 
3647
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3648
      try {
3649
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3650
      } catch (org.apache.thrift.TException te) {
3651
        throw new java.io.IOException(te);
3652
      }
3653
    }
3654
 
3028 mandeep.dh 3655
  }
3656
 
3430 rajveer 3657
  public static class insertTicket_result implements org.apache.thrift.TBase<insertTicket_result, insertTicket_result._Fields>, java.io.Serializable, Cloneable   {
3658
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertTicket_result");
3028 mandeep.dh 3659
 
3430 rajveer 3660
    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 3661
 
3430 rajveer 3662
    private long success; // required
3028 mandeep.dh 3663
 
3664
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3665
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 3666
      SUCCESS((short)0, "success");
3667
 
3668
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3669
 
3670
      static {
3671
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3672
          byName.put(field.getFieldName(), field);
3673
        }
3674
      }
3675
 
3676
      /**
3677
       * Find the _Fields constant that matches fieldId, or null if its not found.
3678
       */
3679
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3680
        switch(fieldId) {
3681
          case 0: // SUCCESS
3682
            return SUCCESS;
3683
          default:
3684
            return null;
3685
        }
3028 mandeep.dh 3686
      }
3687
 
3688
      /**
3689
       * Find the _Fields constant that matches fieldId, throwing an exception
3690
       * if it is not found.
3691
       */
3692
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3693
        _Fields fields = findByThriftId(fieldId);
3694
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3695
        return fields;
3696
      }
3697
 
3698
      /**
3699
       * Find the _Fields constant that matches name, or null if its not found.
3700
       */
3701
      public static _Fields findByName(String name) {
3702
        return byName.get(name);
3703
      }
3704
 
3705
      private final short _thriftId;
3706
      private final String _fieldName;
3707
 
3708
      _Fields(short thriftId, String fieldName) {
3709
        _thriftId = thriftId;
3710
        _fieldName = fieldName;
3711
      }
3712
 
3713
      public short getThriftFieldId() {
3714
        return _thriftId;
3715
      }
3716
 
3717
      public String getFieldName() {
3718
        return _fieldName;
3719
      }
3720
    }
3721
 
3722
    // isset id assignments
3723
    private static final int __SUCCESS_ISSET_ID = 0;
3724
    private BitSet __isset_bit_vector = new BitSet(1);
3725
 
3430 rajveer 3726
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 3727
    static {
3430 rajveer 3728
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3729
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3731
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3732
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertTicket_result.class, metaDataMap);
3028 mandeep.dh 3733
    }
3734
 
3735
    public insertTicket_result() {
3736
    }
3737
 
3738
    public insertTicket_result(
3739
      long success)
3740
    {
3741
      this();
3742
      this.success = success;
3743
      setSuccessIsSet(true);
3744
    }
3745
 
3746
    /**
3747
     * Performs a deep copy on <i>other</i>.
3748
     */
3749
    public insertTicket_result(insertTicket_result other) {
3750
      __isset_bit_vector.clear();
3751
      __isset_bit_vector.or(other.__isset_bit_vector);
3752
      this.success = other.success;
3753
    }
3754
 
3755
    public insertTicket_result deepCopy() {
3756
      return new insertTicket_result(this);
3757
    }
3758
 
3430 rajveer 3759
    @Override
3760
    public void clear() {
3761
      setSuccessIsSet(false);
3762
      this.success = 0;
3028 mandeep.dh 3763
    }
3764
 
3765
    public long getSuccess() {
3766
      return this.success;
3767
    }
3768
 
3430 rajveer 3769
    public void setSuccess(long success) {
3028 mandeep.dh 3770
      this.success = success;
3771
      setSuccessIsSet(true);
3772
    }
3773
 
3774
    public void unsetSuccess() {
3775
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3776
    }
3777
 
3430 rajveer 3778
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 3779
    public boolean isSetSuccess() {
3780
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3781
    }
3782
 
3783
    public void setSuccessIsSet(boolean value) {
3784
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3785
    }
3786
 
3787
    public void setFieldValue(_Fields field, Object value) {
3788
      switch (field) {
3789
      case SUCCESS:
3790
        if (value == null) {
3791
          unsetSuccess();
3792
        } else {
3793
          setSuccess((Long)value);
3794
        }
3795
        break;
3796
 
3797
      }
3798
    }
3799
 
3800
    public Object getFieldValue(_Fields field) {
3801
      switch (field) {
3802
      case SUCCESS:
3430 rajveer 3803
        return Long.valueOf(getSuccess());
3028 mandeep.dh 3804
 
3805
      }
3806
      throw new IllegalStateException();
3807
    }
3808
 
3430 rajveer 3809
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3810
    public boolean isSet(_Fields field) {
3811
      if (field == null) {
3812
        throw new IllegalArgumentException();
3813
      }
3028 mandeep.dh 3814
 
3815
      switch (field) {
3816
      case SUCCESS:
3817
        return isSetSuccess();
3818
      }
3819
      throw new IllegalStateException();
3820
    }
3821
 
3822
    @Override
3823
    public boolean equals(Object that) {
3824
      if (that == null)
3825
        return false;
3826
      if (that instanceof insertTicket_result)
3827
        return this.equals((insertTicket_result)that);
3828
      return false;
3829
    }
3830
 
3831
    public boolean equals(insertTicket_result that) {
3832
      if (that == null)
3833
        return false;
3834
 
3835
      boolean this_present_success = true;
3836
      boolean that_present_success = true;
3837
      if (this_present_success || that_present_success) {
3838
        if (!(this_present_success && that_present_success))
3839
          return false;
3840
        if (this.success != that.success)
3841
          return false;
3842
      }
3843
 
3844
      return true;
3845
    }
3846
 
3847
    @Override
3848
    public int hashCode() {
3849
      return 0;
3850
    }
3851
 
3852
    public int compareTo(insertTicket_result other) {
3853
      if (!getClass().equals(other.getClass())) {
3854
        return getClass().getName().compareTo(other.getClass().getName());
3855
      }
3856
 
3857
      int lastComparison = 0;
3858
      insertTicket_result typedOther = (insertTicket_result)other;
3859
 
3430 rajveer 3860
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 3861
      if (lastComparison != 0) {
3862
        return lastComparison;
3863
      }
3430 rajveer 3864
      if (isSetSuccess()) {
3865
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3866
        if (lastComparison != 0) {
3867
          return lastComparison;
3868
        }
3028 mandeep.dh 3869
      }
3870
      return 0;
3871
    }
3872
 
3430 rajveer 3873
    public _Fields fieldForId(int fieldId) {
3874
      return _Fields.findByThriftId(fieldId);
3875
    }
3876
 
3877
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3878
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3879
      iprot.readStructBegin();
3880
      while (true)
3881
      {
3882
        field = iprot.readFieldBegin();
3430 rajveer 3883
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3884
          break;
3885
        }
3430 rajveer 3886
        switch (field.id) {
3887
          case 0: // SUCCESS
3888
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3889
              this.success = iprot.readI64();
3890
              setSuccessIsSet(true);
3891
            } else { 
3892
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3893
            }
3894
            break;
3895
          default:
3896
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3897
        }
3430 rajveer 3898
        iprot.readFieldEnd();
3028 mandeep.dh 3899
      }
3900
      iprot.readStructEnd();
3901
      validate();
3902
    }
3903
 
3430 rajveer 3904
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3905
      oprot.writeStructBegin(STRUCT_DESC);
3906
 
3907
      if (this.isSetSuccess()) {
3908
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3909
        oprot.writeI64(this.success);
3910
        oprot.writeFieldEnd();
3911
      }
3912
      oprot.writeFieldStop();
3913
      oprot.writeStructEnd();
3914
    }
3915
 
3916
    @Override
3917
    public String toString() {
3918
      StringBuilder sb = new StringBuilder("insertTicket_result(");
3919
      boolean first = true;
3920
 
3921
      sb.append("success:");
3922
      sb.append(this.success);
3923
      first = false;
3924
      sb.append(")");
3925
      return sb.toString();
3926
    }
3927
 
3430 rajveer 3928
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3929
      // check for required fields
3930
    }
3931
 
3430 rajveer 3932
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3933
      try {
3934
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3935
      } catch (org.apache.thrift.TException te) {
3936
        throw new java.io.IOException(te);
3937
      }
3938
    }
3939
 
3940
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3941
      try {
3942
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3943
      } catch (org.apache.thrift.TException te) {
3944
        throw new java.io.IOException(te);
3945
      }
3946
    }
3947
 
3028 mandeep.dh 3948
  }
3949
 
4793 amar.kumar 3950
  public static class unassignAgentTickets_args implements org.apache.thrift.TBase<unassignAgentTickets_args, unassignAgentTickets_args._Fields>, java.io.Serializable, Cloneable   {
3951
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unassignAgentTickets_args");
3952
 
3953
    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);
3954
 
3955
    private int assigneeId; // required
3956
 
3957
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3958
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3959
      ASSIGNEE_ID((short)1, "assigneeId");
3960
 
3961
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3962
 
3963
      static {
3964
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3965
          byName.put(field.getFieldName(), field);
3966
        }
3967
      }
3968
 
3969
      /**
3970
       * Find the _Fields constant that matches fieldId, or null if its not found.
3971
       */
3972
      public static _Fields findByThriftId(int fieldId) {
3973
        switch(fieldId) {
3974
          case 1: // ASSIGNEE_ID
3975
            return ASSIGNEE_ID;
3976
          default:
3977
            return null;
3978
        }
3979
      }
3980
 
3981
      /**
3982
       * Find the _Fields constant that matches fieldId, throwing an exception
3983
       * if it is not found.
3984
       */
3985
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3986
        _Fields fields = findByThriftId(fieldId);
3987
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3988
        return fields;
3989
      }
3990
 
3991
      /**
3992
       * Find the _Fields constant that matches name, or null if its not found.
3993
       */
3994
      public static _Fields findByName(String name) {
3995
        return byName.get(name);
3996
      }
3997
 
3998
      private final short _thriftId;
3999
      private final String _fieldName;
4000
 
4001
      _Fields(short thriftId, String fieldName) {
4002
        _thriftId = thriftId;
4003
        _fieldName = fieldName;
4004
      }
4005
 
4006
      public short getThriftFieldId() {
4007
        return _thriftId;
4008
      }
4009
 
4010
      public String getFieldName() {
4011
        return _fieldName;
4012
      }
4013
    }
4014
 
4015
    // isset id assignments
4016
    private static final int __ASSIGNEEID_ISSET_ID = 0;
4017
    private BitSet __isset_bit_vector = new BitSet(1);
4018
 
4019
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4020
    static {
4021
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4022
      tmpMap.put(_Fields.ASSIGNEE_ID, new org.apache.thrift.meta_data.FieldMetaData("assigneeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4023
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4024
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4025
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unassignAgentTickets_args.class, metaDataMap);
4026
    }
4027
 
4028
    public unassignAgentTickets_args() {
4029
    }
4030
 
4031
    public unassignAgentTickets_args(
4032
      int assigneeId)
4033
    {
4034
      this();
4035
      this.assigneeId = assigneeId;
4036
      setAssigneeIdIsSet(true);
4037
    }
4038
 
4039
    /**
4040
     * Performs a deep copy on <i>other</i>.
4041
     */
4042
    public unassignAgentTickets_args(unassignAgentTickets_args other) {
4043
      __isset_bit_vector.clear();
4044
      __isset_bit_vector.or(other.__isset_bit_vector);
4045
      this.assigneeId = other.assigneeId;
4046
    }
4047
 
4048
    public unassignAgentTickets_args deepCopy() {
4049
      return new unassignAgentTickets_args(this);
4050
    }
4051
 
4052
    @Override
4053
    public void clear() {
4054
      setAssigneeIdIsSet(false);
4055
      this.assigneeId = 0;
4056
    }
4057
 
4058
    public int getAssigneeId() {
4059
      return this.assigneeId;
4060
    }
4061
 
4062
    public void setAssigneeId(int assigneeId) {
4063
      this.assigneeId = assigneeId;
4064
      setAssigneeIdIsSet(true);
4065
    }
4066
 
4067
    public void unsetAssigneeId() {
4068
      __isset_bit_vector.clear(__ASSIGNEEID_ISSET_ID);
4069
    }
4070
 
4071
    /** Returns true if field assigneeId is set (has been assigned a value) and false otherwise */
4072
    public boolean isSetAssigneeId() {
4073
      return __isset_bit_vector.get(__ASSIGNEEID_ISSET_ID);
4074
    }
4075
 
4076
    public void setAssigneeIdIsSet(boolean value) {
4077
      __isset_bit_vector.set(__ASSIGNEEID_ISSET_ID, value);
4078
    }
4079
 
4080
    public void setFieldValue(_Fields field, Object value) {
4081
      switch (field) {
4082
      case ASSIGNEE_ID:
4083
        if (value == null) {
4084
          unsetAssigneeId();
4085
        } else {
4086
          setAssigneeId((Integer)value);
4087
        }
4088
        break;
4089
 
4090
      }
4091
    }
4092
 
4093
    public Object getFieldValue(_Fields field) {
4094
      switch (field) {
4095
      case ASSIGNEE_ID:
4096
        return Integer.valueOf(getAssigneeId());
4097
 
4098
      }
4099
      throw new IllegalStateException();
4100
    }
4101
 
4102
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4103
    public boolean isSet(_Fields field) {
4104
      if (field == null) {
4105
        throw new IllegalArgumentException();
4106
      }
4107
 
4108
      switch (field) {
4109
      case ASSIGNEE_ID:
4110
        return isSetAssigneeId();
4111
      }
4112
      throw new IllegalStateException();
4113
    }
4114
 
4115
    @Override
4116
    public boolean equals(Object that) {
4117
      if (that == null)
4118
        return false;
4119
      if (that instanceof unassignAgentTickets_args)
4120
        return this.equals((unassignAgentTickets_args)that);
4121
      return false;
4122
    }
4123
 
4124
    public boolean equals(unassignAgentTickets_args that) {
4125
      if (that == null)
4126
        return false;
4127
 
4128
      boolean this_present_assigneeId = true;
4129
      boolean that_present_assigneeId = true;
4130
      if (this_present_assigneeId || that_present_assigneeId) {
4131
        if (!(this_present_assigneeId && that_present_assigneeId))
4132
          return false;
4133
        if (this.assigneeId != that.assigneeId)
4134
          return false;
4135
      }
4136
 
4137
      return true;
4138
    }
4139
 
4140
    @Override
4141
    public int hashCode() {
4142
      return 0;
4143
    }
4144
 
4145
    public int compareTo(unassignAgentTickets_args other) {
4146
      if (!getClass().equals(other.getClass())) {
4147
        return getClass().getName().compareTo(other.getClass().getName());
4148
      }
4149
 
4150
      int lastComparison = 0;
4151
      unassignAgentTickets_args typedOther = (unassignAgentTickets_args)other;
4152
 
4153
      lastComparison = Boolean.valueOf(isSetAssigneeId()).compareTo(typedOther.isSetAssigneeId());
4154
      if (lastComparison != 0) {
4155
        return lastComparison;
4156
      }
4157
      if (isSetAssigneeId()) {
4158
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.assigneeId, typedOther.assigneeId);
4159
        if (lastComparison != 0) {
4160
          return lastComparison;
4161
        }
4162
      }
4163
      return 0;
4164
    }
4165
 
4166
    public _Fields fieldForId(int fieldId) {
4167
      return _Fields.findByThriftId(fieldId);
4168
    }
4169
 
4170
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4171
      org.apache.thrift.protocol.TField field;
4172
      iprot.readStructBegin();
4173
      while (true)
4174
      {
4175
        field = iprot.readFieldBegin();
4176
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4177
          break;
4178
        }
4179
        switch (field.id) {
4180
          case 1: // ASSIGNEE_ID
4181
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4182
              this.assigneeId = iprot.readI32();
4183
              setAssigneeIdIsSet(true);
4184
            } else { 
4185
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4186
            }
4187
            break;
4188
          default:
4189
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4190
        }
4191
        iprot.readFieldEnd();
4192
      }
4193
      iprot.readStructEnd();
4194
      validate();
4195
    }
4196
 
4197
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4198
      validate();
4199
 
4200
      oprot.writeStructBegin(STRUCT_DESC);
4201
      oprot.writeFieldBegin(ASSIGNEE_ID_FIELD_DESC);
4202
      oprot.writeI32(this.assigneeId);
4203
      oprot.writeFieldEnd();
4204
      oprot.writeFieldStop();
4205
      oprot.writeStructEnd();
4206
    }
4207
 
4208
    @Override
4209
    public String toString() {
4210
      StringBuilder sb = new StringBuilder("unassignAgentTickets_args(");
4211
      boolean first = true;
4212
 
4213
      sb.append("assigneeId:");
4214
      sb.append(this.assigneeId);
4215
      first = false;
4216
      sb.append(")");
4217
      return sb.toString();
4218
    }
4219
 
4220
    public void validate() throws org.apache.thrift.TException {
4221
      // check for required fields
4222
    }
4223
 
4224
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4225
      try {
4226
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4227
      } catch (org.apache.thrift.TException te) {
4228
        throw new java.io.IOException(te);
4229
      }
4230
    }
4231
 
4232
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4233
      try {
4234
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4235
        __isset_bit_vector = new BitSet(1);
4236
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4237
      } catch (org.apache.thrift.TException te) {
4238
        throw new java.io.IOException(te);
4239
      }
4240
    }
4241
 
4242
  }
4243
 
4244
  public static class unassignAgentTickets_result implements org.apache.thrift.TBase<unassignAgentTickets_result, unassignAgentTickets_result._Fields>, java.io.Serializable, Cloneable   {
4245
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unassignAgentTickets_result");
4246
 
4247
 
4248
 
4249
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4250
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4251
;
4252
 
4253
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4254
 
4255
      static {
4256
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4257
          byName.put(field.getFieldName(), field);
4258
        }
4259
      }
4260
 
4261
      /**
4262
       * Find the _Fields constant that matches fieldId, or null if its not found.
4263
       */
4264
      public static _Fields findByThriftId(int fieldId) {
4265
        switch(fieldId) {
4266
          default:
4267
            return null;
4268
        }
4269
      }
4270
 
4271
      /**
4272
       * Find the _Fields constant that matches fieldId, throwing an exception
4273
       * if it is not found.
4274
       */
4275
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4276
        _Fields fields = findByThriftId(fieldId);
4277
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4278
        return fields;
4279
      }
4280
 
4281
      /**
4282
       * Find the _Fields constant that matches name, or null if its not found.
4283
       */
4284
      public static _Fields findByName(String name) {
4285
        return byName.get(name);
4286
      }
4287
 
4288
      private final short _thriftId;
4289
      private final String _fieldName;
4290
 
4291
      _Fields(short thriftId, String fieldName) {
4292
        _thriftId = thriftId;
4293
        _fieldName = fieldName;
4294
      }
4295
 
4296
      public short getThriftFieldId() {
4297
        return _thriftId;
4298
      }
4299
 
4300
      public String getFieldName() {
4301
        return _fieldName;
4302
      }
4303
    }
4304
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4305
    static {
4306
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4307
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4308
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unassignAgentTickets_result.class, metaDataMap);
4309
    }
4310
 
4311
    public unassignAgentTickets_result() {
4312
    }
4313
 
4314
    /**
4315
     * Performs a deep copy on <i>other</i>.
4316
     */
4317
    public unassignAgentTickets_result(unassignAgentTickets_result other) {
4318
    }
4319
 
4320
    public unassignAgentTickets_result deepCopy() {
4321
      return new unassignAgentTickets_result(this);
4322
    }
4323
 
4324
    @Override
4325
    public void clear() {
4326
    }
4327
 
4328
    public void setFieldValue(_Fields field, Object value) {
4329
      switch (field) {
4330
      }
4331
    }
4332
 
4333
    public Object getFieldValue(_Fields field) {
4334
      switch (field) {
4335
      }
4336
      throw new IllegalStateException();
4337
    }
4338
 
4339
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4340
    public boolean isSet(_Fields field) {
4341
      if (field == null) {
4342
        throw new IllegalArgumentException();
4343
      }
4344
 
4345
      switch (field) {
4346
      }
4347
      throw new IllegalStateException();
4348
    }
4349
 
4350
    @Override
4351
    public boolean equals(Object that) {
4352
      if (that == null)
4353
        return false;
4354
      if (that instanceof unassignAgentTickets_result)
4355
        return this.equals((unassignAgentTickets_result)that);
4356
      return false;
4357
    }
4358
 
4359
    public boolean equals(unassignAgentTickets_result that) {
4360
      if (that == null)
4361
        return false;
4362
 
4363
      return true;
4364
    }
4365
 
4366
    @Override
4367
    public int hashCode() {
4368
      return 0;
4369
    }
4370
 
4371
    public int compareTo(unassignAgentTickets_result other) {
4372
      if (!getClass().equals(other.getClass())) {
4373
        return getClass().getName().compareTo(other.getClass().getName());
4374
      }
4375
 
4376
      int lastComparison = 0;
4377
      unassignAgentTickets_result typedOther = (unassignAgentTickets_result)other;
4378
 
4379
      return 0;
4380
    }
4381
 
4382
    public _Fields fieldForId(int fieldId) {
4383
      return _Fields.findByThriftId(fieldId);
4384
    }
4385
 
4386
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4387
      org.apache.thrift.protocol.TField field;
4388
      iprot.readStructBegin();
4389
      while (true)
4390
      {
4391
        field = iprot.readFieldBegin();
4392
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4393
          break;
4394
        }
4395
        switch (field.id) {
4396
          default:
4397
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4398
        }
4399
        iprot.readFieldEnd();
4400
      }
4401
      iprot.readStructEnd();
4402
      validate();
4403
    }
4404
 
4405
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4406
      oprot.writeStructBegin(STRUCT_DESC);
4407
 
4408
      oprot.writeFieldStop();
4409
      oprot.writeStructEnd();
4410
    }
4411
 
4412
    @Override
4413
    public String toString() {
4414
      StringBuilder sb = new StringBuilder("unassignAgentTickets_result(");
4415
      boolean first = true;
4416
 
4417
      sb.append(")");
4418
      return sb.toString();
4419
    }
4420
 
4421
    public void validate() throws org.apache.thrift.TException {
4422
      // check for required fields
4423
    }
4424
 
4425
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4426
      try {
4427
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4428
      } catch (org.apache.thrift.TException te) {
4429
        throw new java.io.IOException(te);
4430
      }
4431
    }
4432
 
4433
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4434
      try {
4435
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4436
      } catch (org.apache.thrift.TException te) {
4437
        throw new java.io.IOException(te);
4438
      }
4439
    }
4440
 
4441
  }
4442
 
3430 rajveer 4443
  public static class getActivities_args implements org.apache.thrift.TBase<getActivities_args, getActivities_args._Fields>, java.io.Serializable, Cloneable   {
4444
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivities_args");
3028 mandeep.dh 4445
 
3430 rajveer 4446
    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 4447
 
3430 rajveer 4448
    private SearchFilter searchFilter; // required
3028 mandeep.dh 4449
 
4450
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4451
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 4452
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 4453
 
4454
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4455
 
4456
      static {
4457
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4458
          byName.put(field.getFieldName(), field);
4459
        }
4460
      }
4461
 
4462
      /**
4463
       * Find the _Fields constant that matches fieldId, or null if its not found.
4464
       */
4465
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4466
        switch(fieldId) {
4467
          case 1: // SEARCH_FILTER
4468
            return SEARCH_FILTER;
4469
          default:
4470
            return null;
4471
        }
3028 mandeep.dh 4472
      }
4473
 
4474
      /**
4475
       * Find the _Fields constant that matches fieldId, throwing an exception
4476
       * if it is not found.
4477
       */
4478
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4479
        _Fields fields = findByThriftId(fieldId);
4480
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4481
        return fields;
4482
      }
4483
 
4484
      /**
4485
       * Find the _Fields constant that matches name, or null if its not found.
4486
       */
4487
      public static _Fields findByName(String name) {
4488
        return byName.get(name);
4489
      }
4490
 
4491
      private final short _thriftId;
4492
      private final String _fieldName;
4493
 
4494
      _Fields(short thriftId, String fieldName) {
4495
        _thriftId = thriftId;
4496
        _fieldName = fieldName;
4497
      }
4498
 
4499
      public short getThriftFieldId() {
4500
        return _thriftId;
4501
      }
4502
 
4503
      public String getFieldName() {
4504
        return _fieldName;
4505
      }
4506
    }
4507
 
4508
    // isset id assignments
4509
 
3430 rajveer 4510
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 4511
    static {
3430 rajveer 4512
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4513
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4514
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
4515
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4516
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);
3028 mandeep.dh 4517
    }
4518
 
4519
    public getActivities_args() {
4520
    }
4521
 
4522
    public getActivities_args(
3390 mandeep.dh 4523
      SearchFilter searchFilter)
3028 mandeep.dh 4524
    {
4525
      this();
3390 mandeep.dh 4526
      this.searchFilter = searchFilter;
3028 mandeep.dh 4527
    }
4528
 
4529
    /**
4530
     * Performs a deep copy on <i>other</i>.
4531
     */
4532
    public getActivities_args(getActivities_args other) {
3390 mandeep.dh 4533
      if (other.isSetSearchFilter()) {
4534
        this.searchFilter = new SearchFilter(other.searchFilter);
4535
      }
3028 mandeep.dh 4536
    }
4537
 
4538
    public getActivities_args deepCopy() {
4539
      return new getActivities_args(this);
4540
    }
4541
 
3430 rajveer 4542
    @Override
4543
    public void clear() {
4544
      this.searchFilter = null;
3028 mandeep.dh 4545
    }
4546
 
3390 mandeep.dh 4547
    public SearchFilter getSearchFilter() {
4548
      return this.searchFilter;
3028 mandeep.dh 4549
    }
4550
 
3430 rajveer 4551
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 4552
      this.searchFilter = searchFilter;
3028 mandeep.dh 4553
    }
4554
 
3390 mandeep.dh 4555
    public void unsetSearchFilter() {
4556
      this.searchFilter = null;
3028 mandeep.dh 4557
    }
4558
 
3430 rajveer 4559
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 4560
    public boolean isSetSearchFilter() {
4561
      return this.searchFilter != null;
3028 mandeep.dh 4562
    }
4563
 
3390 mandeep.dh 4564
    public void setSearchFilterIsSet(boolean value) {
4565
      if (!value) {
4566
        this.searchFilter = null;
4567
      }
3028 mandeep.dh 4568
    }
4569
 
4570
    public void setFieldValue(_Fields field, Object value) {
4571
      switch (field) {
3390 mandeep.dh 4572
      case SEARCH_FILTER:
3028 mandeep.dh 4573
        if (value == null) {
3390 mandeep.dh 4574
          unsetSearchFilter();
3028 mandeep.dh 4575
        } else {
3390 mandeep.dh 4576
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 4577
        }
4578
        break;
4579
 
4580
      }
4581
    }
4582
 
4583
    public Object getFieldValue(_Fields field) {
4584
      switch (field) {
3390 mandeep.dh 4585
      case SEARCH_FILTER:
4586
        return getSearchFilter();
3028 mandeep.dh 4587
 
4588
      }
4589
      throw new IllegalStateException();
4590
    }
4591
 
3430 rajveer 4592
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4593
    public boolean isSet(_Fields field) {
4594
      if (field == null) {
4595
        throw new IllegalArgumentException();
4596
      }
3028 mandeep.dh 4597
 
4598
      switch (field) {
3390 mandeep.dh 4599
      case SEARCH_FILTER:
4600
        return isSetSearchFilter();
3028 mandeep.dh 4601
      }
4602
      throw new IllegalStateException();
4603
    }
4604
 
4605
    @Override
4606
    public boolean equals(Object that) {
4607
      if (that == null)
4608
        return false;
4609
      if (that instanceof getActivities_args)
4610
        return this.equals((getActivities_args)that);
4611
      return false;
4612
    }
4613
 
4614
    public boolean equals(getActivities_args that) {
4615
      if (that == null)
4616
        return false;
4617
 
3390 mandeep.dh 4618
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
4619
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
4620
      if (this_present_searchFilter || that_present_searchFilter) {
4621
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 4622
          return false;
3390 mandeep.dh 4623
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 4624
          return false;
4625
      }
4626
 
4627
      return true;
4628
    }
4629
 
4630
    @Override
4631
    public int hashCode() {
4632
      return 0;
4633
    }
4634
 
4635
    public int compareTo(getActivities_args other) {
4636
      if (!getClass().equals(other.getClass())) {
4637
        return getClass().getName().compareTo(other.getClass().getName());
4638
      }
4639
 
4640
      int lastComparison = 0;
4641
      getActivities_args typedOther = (getActivities_args)other;
4642
 
3430 rajveer 4643
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 4644
      if (lastComparison != 0) {
4645
        return lastComparison;
4646
      }
3430 rajveer 4647
      if (isSetSearchFilter()) {
4648
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
4649
        if (lastComparison != 0) {
4650
          return lastComparison;
4651
        }
3028 mandeep.dh 4652
      }
4653
      return 0;
4654
    }
4655
 
3430 rajveer 4656
    public _Fields fieldForId(int fieldId) {
4657
      return _Fields.findByThriftId(fieldId);
4658
    }
4659
 
4660
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4661
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 4662
      iprot.readStructBegin();
4663
      while (true)
4664
      {
4665
        field = iprot.readFieldBegin();
3430 rajveer 4666
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 4667
          break;
4668
        }
3430 rajveer 4669
        switch (field.id) {
4670
          case 1: // SEARCH_FILTER
4671
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4672
              this.searchFilter = new SearchFilter();
4673
              this.searchFilter.read(iprot);
4674
            } else { 
4675
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4676
            }
4677
            break;
4678
          default:
4679
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 4680
        }
3430 rajveer 4681
        iprot.readFieldEnd();
3028 mandeep.dh 4682
      }
4683
      iprot.readStructEnd();
4684
      validate();
4685
    }
4686
 
3430 rajveer 4687
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 4688
      validate();
4689
 
4690
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 4691
      if (this.searchFilter != null) {
4692
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
4693
        this.searchFilter.write(oprot);
4694
        oprot.writeFieldEnd();
4695
      }
3028 mandeep.dh 4696
      oprot.writeFieldStop();
4697
      oprot.writeStructEnd();
4698
    }
4699
 
4700
    @Override
4701
    public String toString() {
4702
      StringBuilder sb = new StringBuilder("getActivities_args(");
4703
      boolean first = true;
4704
 
3390 mandeep.dh 4705
      sb.append("searchFilter:");
4706
      if (this.searchFilter == null) {
4707
        sb.append("null");
4708
      } else {
4709
        sb.append(this.searchFilter);
4710
      }
3028 mandeep.dh 4711
      first = false;
4712
      sb.append(")");
4713
      return sb.toString();
4714
    }
4715
 
3430 rajveer 4716
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 4717
      // check for required fields
4718
    }
4719
 
3430 rajveer 4720
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4721
      try {
4722
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4723
      } catch (org.apache.thrift.TException te) {
4724
        throw new java.io.IOException(te);
4725
      }
4726
    }
4727
 
4728
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4729
      try {
4730
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4731
      } catch (org.apache.thrift.TException te) {
4732
        throw new java.io.IOException(te);
4733
      }
4734
    }
4735
 
3028 mandeep.dh 4736
  }
4737
 
3430 rajveer 4738
  public static class getActivities_result implements org.apache.thrift.TBase<getActivities_result, getActivities_result._Fields>, java.io.Serializable, Cloneable   {
4739
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivities_result");
3028 mandeep.dh 4740
 
3430 rajveer 4741
    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 4742
 
3430 rajveer 4743
    private List<Activity> success; // required
3028 mandeep.dh 4744
 
4745
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4746
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 4747
      SUCCESS((short)0, "success");
4748
 
4749
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4750
 
4751
      static {
4752
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4753
          byName.put(field.getFieldName(), field);
4754
        }
4755
      }
4756
 
4757
      /**
4758
       * Find the _Fields constant that matches fieldId, or null if its not found.
4759
       */
4760
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4761
        switch(fieldId) {
4762
          case 0: // SUCCESS
4763
            return SUCCESS;
4764
          default:
4765
            return null;
4766
        }
3028 mandeep.dh 4767
      }
4768
 
4769
      /**
4770
       * Find the _Fields constant that matches fieldId, throwing an exception
4771
       * if it is not found.
4772
       */
4773
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4774
        _Fields fields = findByThriftId(fieldId);
4775
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4776
        return fields;
4777
      }
4778
 
4779
      /**
4780
       * Find the _Fields constant that matches name, or null if its not found.
4781
       */
4782
      public static _Fields findByName(String name) {
4783
        return byName.get(name);
4784
      }
4785
 
4786
      private final short _thriftId;
4787
      private final String _fieldName;
4788
 
4789
      _Fields(short thriftId, String fieldName) {
4790
        _thriftId = thriftId;
4791
        _fieldName = fieldName;
4792
      }
4793
 
4794
      public short getThriftFieldId() {
4795
        return _thriftId;
4796
      }
4797
 
4798
      public String getFieldName() {
4799
        return _fieldName;
4800
      }
4801
    }
4802
 
4803
    // isset id assignments
4804
 
3430 rajveer 4805
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 4806
    static {
3430 rajveer 4807
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4808
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4809
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4810
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class))));
4811
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4812
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivities_result.class, metaDataMap);
3028 mandeep.dh 4813
    }
4814
 
4815
    public getActivities_result() {
4816
    }
4817
 
4818
    public getActivities_result(
4819
      List<Activity> success)
4820
    {
4821
      this();
4822
      this.success = success;
4823
    }
4824
 
4825
    /**
4826
     * Performs a deep copy on <i>other</i>.
4827
     */
4828
    public getActivities_result(getActivities_result other) {
4829
      if (other.isSetSuccess()) {
4830
        List<Activity> __this__success = new ArrayList<Activity>();
4831
        for (Activity other_element : other.success) {
4832
          __this__success.add(new Activity(other_element));
4833
        }
4834
        this.success = __this__success;
4835
      }
4836
    }
4837
 
4838
    public getActivities_result deepCopy() {
4839
      return new getActivities_result(this);
4840
    }
4841
 
3430 rajveer 4842
    @Override
4843
    public void clear() {
4844
      this.success = null;
3028 mandeep.dh 4845
    }
4846
 
4847
    public int getSuccessSize() {
4848
      return (this.success == null) ? 0 : this.success.size();
4849
    }
4850
 
4851
    public java.util.Iterator<Activity> getSuccessIterator() {
4852
      return (this.success == null) ? null : this.success.iterator();
4853
    }
4854
 
4855
    public void addToSuccess(Activity elem) {
4856
      if (this.success == null) {
4857
        this.success = new ArrayList<Activity>();
4858
      }
4859
      this.success.add(elem);
4860
    }
4861
 
4862
    public List<Activity> getSuccess() {
4863
      return this.success;
4864
    }
4865
 
3430 rajveer 4866
    public void setSuccess(List<Activity> success) {
3028 mandeep.dh 4867
      this.success = success;
4868
    }
4869
 
4870
    public void unsetSuccess() {
4871
      this.success = null;
4872
    }
4873
 
3430 rajveer 4874
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 4875
    public boolean isSetSuccess() {
4876
      return this.success != null;
4877
    }
4878
 
4879
    public void setSuccessIsSet(boolean value) {
4880
      if (!value) {
4881
        this.success = null;
4882
      }
4883
    }
4884
 
4885
    public void setFieldValue(_Fields field, Object value) {
4886
      switch (field) {
4887
      case SUCCESS:
4888
        if (value == null) {
4889
          unsetSuccess();
4890
        } else {
4891
          setSuccess((List<Activity>)value);
4892
        }
4893
        break;
4894
 
4895
      }
4896
    }
4897
 
4898
    public Object getFieldValue(_Fields field) {
4899
      switch (field) {
4900
      case SUCCESS:
4901
        return getSuccess();
4902
 
4903
      }
4904
      throw new IllegalStateException();
4905
    }
4906
 
3430 rajveer 4907
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4908
    public boolean isSet(_Fields field) {
4909
      if (field == null) {
4910
        throw new IllegalArgumentException();
4911
      }
3028 mandeep.dh 4912
 
4913
      switch (field) {
4914
      case SUCCESS:
4915
        return isSetSuccess();
4916
      }
4917
      throw new IllegalStateException();
4918
    }
4919
 
4920
    @Override
4921
    public boolean equals(Object that) {
4922
      if (that == null)
4923
        return false;
4924
      if (that instanceof getActivities_result)
4925
        return this.equals((getActivities_result)that);
4926
      return false;
4927
    }
4928
 
4929
    public boolean equals(getActivities_result that) {
4930
      if (that == null)
4931
        return false;
4932
 
4933
      boolean this_present_success = true && this.isSetSuccess();
4934
      boolean that_present_success = true && that.isSetSuccess();
4935
      if (this_present_success || that_present_success) {
4936
        if (!(this_present_success && that_present_success))
4937
          return false;
4938
        if (!this.success.equals(that.success))
4939
          return false;
4940
      }
4941
 
4942
      return true;
4943
    }
4944
 
4945
    @Override
4946
    public int hashCode() {
4947
      return 0;
4948
    }
4949
 
4950
    public int compareTo(getActivities_result other) {
4951
      if (!getClass().equals(other.getClass())) {
4952
        return getClass().getName().compareTo(other.getClass().getName());
4953
      }
4954
 
4955
      int lastComparison = 0;
4956
      getActivities_result typedOther = (getActivities_result)other;
4957
 
3430 rajveer 4958
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 4959
      if (lastComparison != 0) {
4960
        return lastComparison;
4961
      }
3430 rajveer 4962
      if (isSetSuccess()) {
4963
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4964
        if (lastComparison != 0) {
4965
          return lastComparison;
4966
        }
3028 mandeep.dh 4967
      }
4968
      return 0;
4969
    }
4970
 
3430 rajveer 4971
    public _Fields fieldForId(int fieldId) {
4972
      return _Fields.findByThriftId(fieldId);
4973
    }
4974
 
4975
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4976
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 4977
      iprot.readStructBegin();
4978
      while (true)
4979
      {
4980
        field = iprot.readFieldBegin();
3430 rajveer 4981
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 4982
          break;
4983
        }
3430 rajveer 4984
        switch (field.id) {
4985
          case 0: // SUCCESS
4986
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4987
              {
3546 mandeep.dh 4988
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
4989
                this.success = new ArrayList<Activity>(_list20.size);
4990
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
3028 mandeep.dh 4991
                {
3546 mandeep.dh 4992
                  Activity _elem22; // required
4993
                  _elem22 = new Activity();
4994
                  _elem22.read(iprot);
4995
                  this.success.add(_elem22);
3028 mandeep.dh 4996
                }
3430 rajveer 4997
                iprot.readListEnd();
3028 mandeep.dh 4998
              }
3430 rajveer 4999
            } else { 
5000
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5001
            }
5002
            break;
5003
          default:
5004
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5005
        }
3430 rajveer 5006
        iprot.readFieldEnd();
3028 mandeep.dh 5007
      }
5008
      iprot.readStructEnd();
5009
      validate();
5010
    }
5011
 
3430 rajveer 5012
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5013
      oprot.writeStructBegin(STRUCT_DESC);
5014
 
5015
      if (this.isSetSuccess()) {
5016
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5017
        {
3430 rajveer 5018
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 5019
          for (Activity _iter23 : this.success)
3028 mandeep.dh 5020
          {
3546 mandeep.dh 5021
            _iter23.write(oprot);
3028 mandeep.dh 5022
          }
5023
          oprot.writeListEnd();
5024
        }
5025
        oprot.writeFieldEnd();
5026
      }
5027
      oprot.writeFieldStop();
5028
      oprot.writeStructEnd();
5029
    }
5030
 
5031
    @Override
5032
    public String toString() {
5033
      StringBuilder sb = new StringBuilder("getActivities_result(");
5034
      boolean first = true;
5035
 
5036
      sb.append("success:");
5037
      if (this.success == null) {
5038
        sb.append("null");
5039
      } else {
5040
        sb.append(this.success);
5041
      }
5042
      first = false;
5043
      sb.append(")");
5044
      return sb.toString();
5045
    }
5046
 
3430 rajveer 5047
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 5048
      // check for required fields
5049
    }
5050
 
3430 rajveer 5051
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5052
      try {
5053
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5054
      } catch (org.apache.thrift.TException te) {
5055
        throw new java.io.IOException(te);
5056
      }
5057
    }
5058
 
5059
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5060
      try {
5061
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5062
      } catch (org.apache.thrift.TException te) {
5063
        throw new java.io.IOException(te);
5064
      }
5065
    }
5066
 
3028 mandeep.dh 5067
  }
5068
 
3430 rajveer 5069
  public static class insertActivity_args implements org.apache.thrift.TBase<insertActivity_args, insertActivity_args._Fields>, java.io.Serializable, Cloneable   {
5070
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertActivity_args");
3028 mandeep.dh 5071
 
3430 rajveer 5072
    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 5073
 
3430 rajveer 5074
    private Activity activity; // required
3028 mandeep.dh 5075
 
5076
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5077
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 5078
      ACTIVITY((short)1, "activity");
5079
 
5080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5081
 
5082
      static {
5083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5084
          byName.put(field.getFieldName(), field);
5085
        }
5086
      }
5087
 
5088
      /**
5089
       * Find the _Fields constant that matches fieldId, or null if its not found.
5090
       */
5091
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5092
        switch(fieldId) {
5093
          case 1: // ACTIVITY
5094
            return ACTIVITY;
5095
          default:
5096
            return null;
5097
        }
3028 mandeep.dh 5098
      }
5099
 
5100
      /**
5101
       * Find the _Fields constant that matches fieldId, throwing an exception
5102
       * if it is not found.
5103
       */
5104
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5105
        _Fields fields = findByThriftId(fieldId);
5106
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5107
        return fields;
5108
      }
5109
 
5110
      /**
5111
       * Find the _Fields constant that matches name, or null if its not found.
5112
       */
5113
      public static _Fields findByName(String name) {
5114
        return byName.get(name);
5115
      }
5116
 
5117
      private final short _thriftId;
5118
      private final String _fieldName;
5119
 
5120
      _Fields(short thriftId, String fieldName) {
5121
        _thriftId = thriftId;
5122
        _fieldName = fieldName;
5123
      }
5124
 
5125
      public short getThriftFieldId() {
5126
        return _thriftId;
5127
      }
5128
 
5129
      public String getFieldName() {
5130
        return _fieldName;
5131
      }
5132
    }
5133
 
5134
    // isset id assignments
5135
 
3430 rajveer 5136
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 5137
    static {
3430 rajveer 5138
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5139
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5140
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
5141
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5142
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertActivity_args.class, metaDataMap);
3028 mandeep.dh 5143
    }
5144
 
5145
    public insertActivity_args() {
5146
    }
5147
 
5148
    public insertActivity_args(
5149
      Activity activity)
5150
    {
5151
      this();
5152
      this.activity = activity;
5153
    }
5154
 
5155
    /**
5156
     * Performs a deep copy on <i>other</i>.
5157
     */
5158
    public insertActivity_args(insertActivity_args other) {
5159
      if (other.isSetActivity()) {
5160
        this.activity = new Activity(other.activity);
5161
      }
5162
    }
5163
 
5164
    public insertActivity_args deepCopy() {
5165
      return new insertActivity_args(this);
5166
    }
5167
 
3430 rajveer 5168
    @Override
5169
    public void clear() {
5170
      this.activity = null;
3028 mandeep.dh 5171
    }
5172
 
5173
    public Activity getActivity() {
5174
      return this.activity;
5175
    }
5176
 
3430 rajveer 5177
    public void setActivity(Activity activity) {
3028 mandeep.dh 5178
      this.activity = activity;
5179
    }
5180
 
5181
    public void unsetActivity() {
5182
      this.activity = null;
5183
    }
5184
 
3430 rajveer 5185
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 5186
    public boolean isSetActivity() {
5187
      return this.activity != null;
5188
    }
5189
 
5190
    public void setActivityIsSet(boolean value) {
5191
      if (!value) {
5192
        this.activity = null;
5193
      }
5194
    }
5195
 
5196
    public void setFieldValue(_Fields field, Object value) {
5197
      switch (field) {
5198
      case ACTIVITY:
5199
        if (value == null) {
5200
          unsetActivity();
5201
        } else {
5202
          setActivity((Activity)value);
5203
        }
5204
        break;
5205
 
5206
      }
5207
    }
5208
 
5209
    public Object getFieldValue(_Fields field) {
5210
      switch (field) {
5211
      case ACTIVITY:
5212
        return getActivity();
5213
 
5214
      }
5215
      throw new IllegalStateException();
5216
    }
5217
 
3430 rajveer 5218
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5219
    public boolean isSet(_Fields field) {
5220
      if (field == null) {
5221
        throw new IllegalArgumentException();
5222
      }
3028 mandeep.dh 5223
 
5224
      switch (field) {
5225
      case ACTIVITY:
5226
        return isSetActivity();
5227
      }
5228
      throw new IllegalStateException();
5229
    }
5230
 
5231
    @Override
5232
    public boolean equals(Object that) {
5233
      if (that == null)
5234
        return false;
5235
      if (that instanceof insertActivity_args)
5236
        return this.equals((insertActivity_args)that);
5237
      return false;
5238
    }
5239
 
5240
    public boolean equals(insertActivity_args that) {
5241
      if (that == null)
5242
        return false;
5243
 
5244
      boolean this_present_activity = true && this.isSetActivity();
5245
      boolean that_present_activity = true && that.isSetActivity();
5246
      if (this_present_activity || that_present_activity) {
5247
        if (!(this_present_activity && that_present_activity))
5248
          return false;
5249
        if (!this.activity.equals(that.activity))
5250
          return false;
5251
      }
5252
 
5253
      return true;
5254
    }
5255
 
5256
    @Override
5257
    public int hashCode() {
5258
      return 0;
5259
    }
5260
 
5261
    public int compareTo(insertActivity_args other) {
5262
      if (!getClass().equals(other.getClass())) {
5263
        return getClass().getName().compareTo(other.getClass().getName());
5264
      }
5265
 
5266
      int lastComparison = 0;
5267
      insertActivity_args typedOther = (insertActivity_args)other;
5268
 
3430 rajveer 5269
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3028 mandeep.dh 5270
      if (lastComparison != 0) {
5271
        return lastComparison;
5272
      }
3430 rajveer 5273
      if (isSetActivity()) {
5274
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
5275
        if (lastComparison != 0) {
5276
          return lastComparison;
5277
        }
3028 mandeep.dh 5278
      }
5279
      return 0;
5280
    }
5281
 
3430 rajveer 5282
    public _Fields fieldForId(int fieldId) {
5283
      return _Fields.findByThriftId(fieldId);
5284
    }
5285
 
5286
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5287
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 5288
      iprot.readStructBegin();
5289
      while (true)
5290
      {
5291
        field = iprot.readFieldBegin();
3430 rajveer 5292
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 5293
          break;
5294
        }
3430 rajveer 5295
        switch (field.id) {
5296
          case 1: // ACTIVITY
5297
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5298
              this.activity = new Activity();
5299
              this.activity.read(iprot);
5300
            } else { 
5301
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5302
            }
5303
            break;
5304
          default:
5305
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5306
        }
3430 rajveer 5307
        iprot.readFieldEnd();
3028 mandeep.dh 5308
      }
5309
      iprot.readStructEnd();
5310
      validate();
5311
    }
5312
 
3430 rajveer 5313
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5314
      validate();
5315
 
5316
      oprot.writeStructBegin(STRUCT_DESC);
5317
      if (this.activity != null) {
5318
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
5319
        this.activity.write(oprot);
5320
        oprot.writeFieldEnd();
5321
      }
5322
      oprot.writeFieldStop();
5323
      oprot.writeStructEnd();
5324
    }
5325
 
5326
    @Override
5327
    public String toString() {
5328
      StringBuilder sb = new StringBuilder("insertActivity_args(");
5329
      boolean first = true;
5330
 
5331
      sb.append("activity:");
5332
      if (this.activity == null) {
5333
        sb.append("null");
5334
      } else {
5335
        sb.append(this.activity);
5336
      }
5337
      first = false;
5338
      sb.append(")");
5339
      return sb.toString();
5340
    }
5341
 
3430 rajveer 5342
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 5343
      // check for required fields
5344
    }
5345
 
3430 rajveer 5346
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5347
      try {
5348
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5349
      } catch (org.apache.thrift.TException te) {
5350
        throw new java.io.IOException(te);
5351
      }
5352
    }
5353
 
5354
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5355
      try {
5356
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5357
      } catch (org.apache.thrift.TException te) {
5358
        throw new java.io.IOException(te);
5359
      }
5360
    }
5361
 
3028 mandeep.dh 5362
  }
5363
 
3430 rajveer 5364
  public static class insertActivity_result implements org.apache.thrift.TBase<insertActivity_result, insertActivity_result._Fields>, java.io.Serializable, Cloneable   {
5365
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertActivity_result");
3028 mandeep.dh 5366
 
3430 rajveer 5367
    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 5368
 
3430 rajveer 5369
    private long success; // required
3028 mandeep.dh 5370
 
5371
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5372
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3405 mandeep.dh 5373
      SUCCESS((short)0, "success");
3028 mandeep.dh 5374
 
5375
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5376
 
5377
      static {
5378
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5379
          byName.put(field.getFieldName(), field);
5380
        }
5381
      }
5382
 
5383
      /**
5384
       * Find the _Fields constant that matches fieldId, or null if its not found.
5385
       */
5386
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5387
        switch(fieldId) {
5388
          case 0: // SUCCESS
5389
            return SUCCESS;
5390
          default:
5391
            return null;
5392
        }
3028 mandeep.dh 5393
      }
5394
 
5395
      /**
5396
       * Find the _Fields constant that matches fieldId, throwing an exception
5397
       * if it is not found.
5398
       */
5399
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5400
        _Fields fields = findByThriftId(fieldId);
5401
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5402
        return fields;
5403
      }
5404
 
5405
      /**
5406
       * Find the _Fields constant that matches name, or null if its not found.
5407
       */
5408
      public static _Fields findByName(String name) {
5409
        return byName.get(name);
5410
      }
5411
 
5412
      private final short _thriftId;
5413
      private final String _fieldName;
5414
 
5415
      _Fields(short thriftId, String fieldName) {
5416
        _thriftId = thriftId;
5417
        _fieldName = fieldName;
5418
      }
5419
 
5420
      public short getThriftFieldId() {
5421
        return _thriftId;
5422
      }
5423
 
5424
      public String getFieldName() {
5425
        return _fieldName;
5426
      }
5427
    }
3405 mandeep.dh 5428
 
5429
    // isset id assignments
5430
    private static final int __SUCCESS_ISSET_ID = 0;
5431
    private BitSet __isset_bit_vector = new BitSet(1);
5432
 
3430 rajveer 5433
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 5434
    static {
3430 rajveer 5435
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5436
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5437
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertActivity_result.class, metaDataMap);
3028 mandeep.dh 5440
    }
5441
 
5442
    public insertActivity_result() {
5443
    }
5444
 
3405 mandeep.dh 5445
    public insertActivity_result(
5446
      long success)
5447
    {
5448
      this();
5449
      this.success = success;
5450
      setSuccessIsSet(true);
5451
    }
5452
 
3028 mandeep.dh 5453
    /**
5454
     * Performs a deep copy on <i>other</i>.
5455
     */
5456
    public insertActivity_result(insertActivity_result other) {
3405 mandeep.dh 5457
      __isset_bit_vector.clear();
5458
      __isset_bit_vector.or(other.__isset_bit_vector);
5459
      this.success = other.success;
3028 mandeep.dh 5460
    }
5461
 
5462
    public insertActivity_result deepCopy() {
5463
      return new insertActivity_result(this);
5464
    }
5465
 
3430 rajveer 5466
    @Override
5467
    public void clear() {
5468
      setSuccessIsSet(false);
5469
      this.success = 0;
3028 mandeep.dh 5470
    }
5471
 
3405 mandeep.dh 5472
    public long getSuccess() {
5473
      return this.success;
5474
    }
5475
 
3430 rajveer 5476
    public void setSuccess(long success) {
3405 mandeep.dh 5477
      this.success = success;
5478
      setSuccessIsSet(true);
5479
    }
5480
 
5481
    public void unsetSuccess() {
5482
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5483
    }
5484
 
3430 rajveer 5485
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3405 mandeep.dh 5486
    public boolean isSetSuccess() {
5487
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5488
    }
5489
 
5490
    public void setSuccessIsSet(boolean value) {
5491
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5492
    }
5493
 
3028 mandeep.dh 5494
    public void setFieldValue(_Fields field, Object value) {
5495
      switch (field) {
3405 mandeep.dh 5496
      case SUCCESS:
5497
        if (value == null) {
5498
          unsetSuccess();
5499
        } else {
5500
          setSuccess((Long)value);
5501
        }
5502
        break;
5503
 
3028 mandeep.dh 5504
      }
5505
    }
5506
 
5507
    public Object getFieldValue(_Fields field) {
5508
      switch (field) {
3405 mandeep.dh 5509
      case SUCCESS:
3430 rajveer 5510
        return Long.valueOf(getSuccess());
3405 mandeep.dh 5511
 
3028 mandeep.dh 5512
      }
5513
      throw new IllegalStateException();
5514
    }
5515
 
3430 rajveer 5516
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5517
    public boolean isSet(_Fields field) {
5518
      if (field == null) {
5519
        throw new IllegalArgumentException();
5520
      }
3028 mandeep.dh 5521
 
5522
      switch (field) {
3405 mandeep.dh 5523
      case SUCCESS:
5524
        return isSetSuccess();
3028 mandeep.dh 5525
      }
5526
      throw new IllegalStateException();
5527
    }
5528
 
5529
    @Override
5530
    public boolean equals(Object that) {
5531
      if (that == null)
5532
        return false;
5533
      if (that instanceof insertActivity_result)
5534
        return this.equals((insertActivity_result)that);
5535
      return false;
5536
    }
5537
 
5538
    public boolean equals(insertActivity_result that) {
5539
      if (that == null)
5540
        return false;
5541
 
3405 mandeep.dh 5542
      boolean this_present_success = true;
5543
      boolean that_present_success = true;
5544
      if (this_present_success || that_present_success) {
5545
        if (!(this_present_success && that_present_success))
5546
          return false;
5547
        if (this.success != that.success)
5548
          return false;
5549
      }
5550
 
3028 mandeep.dh 5551
      return true;
5552
    }
5553
 
5554
    @Override
5555
    public int hashCode() {
5556
      return 0;
5557
    }
5558
 
5559
    public int compareTo(insertActivity_result other) {
5560
      if (!getClass().equals(other.getClass())) {
5561
        return getClass().getName().compareTo(other.getClass().getName());
5562
      }
5563
 
5564
      int lastComparison = 0;
5565
      insertActivity_result typedOther = (insertActivity_result)other;
5566
 
3430 rajveer 5567
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3405 mandeep.dh 5568
      if (lastComparison != 0) {
5569
        return lastComparison;
5570
      }
3430 rajveer 5571
      if (isSetSuccess()) {
5572
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5573
        if (lastComparison != 0) {
5574
          return lastComparison;
5575
        }
3405 mandeep.dh 5576
      }
3028 mandeep.dh 5577
      return 0;
5578
    }
5579
 
3430 rajveer 5580
    public _Fields fieldForId(int fieldId) {
5581
      return _Fields.findByThriftId(fieldId);
5582
    }
5583
 
5584
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5585
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 5586
      iprot.readStructBegin();
5587
      while (true)
5588
      {
5589
        field = iprot.readFieldBegin();
3430 rajveer 5590
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 5591
          break;
5592
        }
3430 rajveer 5593
        switch (field.id) {
5594
          case 0: // SUCCESS
5595
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5596
              this.success = iprot.readI64();
5597
              setSuccessIsSet(true);
5598
            } else { 
5599
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5600
            }
5601
            break;
5602
          default:
5603
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5604
        }
3430 rajveer 5605
        iprot.readFieldEnd();
3028 mandeep.dh 5606
      }
5607
      iprot.readStructEnd();
5608
      validate();
5609
    }
5610
 
3430 rajveer 5611
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5612
      oprot.writeStructBegin(STRUCT_DESC);
5613
 
3405 mandeep.dh 5614
      if (this.isSetSuccess()) {
5615
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5616
        oprot.writeI64(this.success);
5617
        oprot.writeFieldEnd();
5618
      }
3028 mandeep.dh 5619
      oprot.writeFieldStop();
5620
      oprot.writeStructEnd();
5621
    }
5622
 
5623
    @Override
5624
    public String toString() {
5625
      StringBuilder sb = new StringBuilder("insertActivity_result(");
5626
      boolean first = true;
5627
 
3405 mandeep.dh 5628
      sb.append("success:");
5629
      sb.append(this.success);
5630
      first = false;
3028 mandeep.dh 5631
      sb.append(")");
5632
      return sb.toString();
5633
    }
5634
 
3430 rajveer 5635
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 5636
      // check for required fields
5637
    }
5638
 
3430 rajveer 5639
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5640
      try {
5641
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5642
      } catch (org.apache.thrift.TException te) {
5643
        throw new java.io.IOException(te);
5644
      }
5645
    }
5646
 
5647
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5648
      try {
5649
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5650
      } catch (org.apache.thrift.TException te) {
5651
        throw new java.io.IOException(te);
5652
      }
5653
    }
5654
 
3028 mandeep.dh 5655
  }
5656
 
3430 rajveer 5657
  public static class markAsRead_args implements org.apache.thrift.TBase<markAsRead_args, markAsRead_args._Fields>, java.io.Serializable, Cloneable   {
5658
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_args");
3087 mandeep.dh 5659
 
3430 rajveer 5660
    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);
5661
    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 5662
 
3430 rajveer 5663
    private long activityId; // required
5664
    private long agentId; // required
3087 mandeep.dh 5665
 
5666
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5667
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 5668
      ACTIVITY_ID((short)1, "activityId"),
5669
      AGENT_ID((short)2, "agentId");
3087 mandeep.dh 5670
 
5671
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5672
 
5673
      static {
5674
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5675
          byName.put(field.getFieldName(), field);
5676
        }
5677
      }
5678
 
5679
      /**
5680
       * Find the _Fields constant that matches fieldId, or null if its not found.
5681
       */
5682
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5683
        switch(fieldId) {
5684
          case 1: // ACTIVITY_ID
5685
            return ACTIVITY_ID;
5686
          case 2: // AGENT_ID
5687
            return AGENT_ID;
5688
          default:
5689
            return null;
5690
        }
3087 mandeep.dh 5691
      }
5692
 
5693
      /**
5694
       * Find the _Fields constant that matches fieldId, throwing an exception
5695
       * if it is not found.
5696
       */
5697
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5698
        _Fields fields = findByThriftId(fieldId);
5699
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5700
        return fields;
5701
      }
5702
 
5703
      /**
5704
       * Find the _Fields constant that matches name, or null if its not found.
5705
       */
5706
      public static _Fields findByName(String name) {
5707
        return byName.get(name);
5708
      }
5709
 
5710
      private final short _thriftId;
5711
      private final String _fieldName;
5712
 
5713
      _Fields(short thriftId, String fieldName) {
5714
        _thriftId = thriftId;
5715
        _fieldName = fieldName;
5716
      }
5717
 
5718
      public short getThriftFieldId() {
5719
        return _thriftId;
5720
      }
5721
 
5722
      public String getFieldName() {
5723
        return _fieldName;
5724
      }
5725
    }
5726
 
5727
    // isset id assignments
3390 mandeep.dh 5728
    private static final int __ACTIVITYID_ISSET_ID = 0;
5729
    private static final int __AGENTID_ISSET_ID = 1;
5730
    private BitSet __isset_bit_vector = new BitSet(2);
3087 mandeep.dh 5731
 
3430 rajveer 5732
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 5733
    static {
3430 rajveer 5734
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5735
      tmpMap.put(_Fields.ACTIVITY_ID, new org.apache.thrift.meta_data.FieldMetaData("activityId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5736
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5737
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5738
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5739
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5740
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_args.class, metaDataMap);
3087 mandeep.dh 5741
    }
5742
 
3390 mandeep.dh 5743
    public markAsRead_args() {
3087 mandeep.dh 5744
    }
5745
 
3390 mandeep.dh 5746
    public markAsRead_args(
5747
      long activityId,
5748
      long agentId)
3087 mandeep.dh 5749
    {
5750
      this();
3390 mandeep.dh 5751
      this.activityId = activityId;
5752
      setActivityIdIsSet(true);
5753
      this.agentId = agentId;
5754
      setAgentIdIsSet(true);
3087 mandeep.dh 5755
    }
5756
 
5757
    /**
5758
     * Performs a deep copy on <i>other</i>.
5759
     */
3390 mandeep.dh 5760
    public markAsRead_args(markAsRead_args other) {
5761
      __isset_bit_vector.clear();
5762
      __isset_bit_vector.or(other.__isset_bit_vector);
5763
      this.activityId = other.activityId;
5764
      this.agentId = other.agentId;
3087 mandeep.dh 5765
    }
5766
 
3390 mandeep.dh 5767
    public markAsRead_args deepCopy() {
5768
      return new markAsRead_args(this);
3087 mandeep.dh 5769
    }
5770
 
3430 rajveer 5771
    @Override
5772
    public void clear() {
5773
      setActivityIdIsSet(false);
5774
      this.activityId = 0;
5775
      setAgentIdIsSet(false);
5776
      this.agentId = 0;
3087 mandeep.dh 5777
    }
5778
 
3390 mandeep.dh 5779
    public long getActivityId() {
5780
      return this.activityId;
3087 mandeep.dh 5781
    }
5782
 
3430 rajveer 5783
    public void setActivityId(long activityId) {
3390 mandeep.dh 5784
      this.activityId = activityId;
5785
      setActivityIdIsSet(true);
3087 mandeep.dh 5786
    }
5787
 
3390 mandeep.dh 5788
    public void unsetActivityId() {
5789
      __isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);
3087 mandeep.dh 5790
    }
5791
 
3430 rajveer 5792
    /** Returns true if field activityId is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 5793
    public boolean isSetActivityId() {
5794
      return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);
3087 mandeep.dh 5795
    }
5796
 
3390 mandeep.dh 5797
    public void setActivityIdIsSet(boolean value) {
5798
      __isset_bit_vector.set(__ACTIVITYID_ISSET_ID, value);
3087 mandeep.dh 5799
    }
5800
 
3028 mandeep.dh 5801
    public long getAgentId() {
5802
      return this.agentId;
5803
    }
5804
 
3430 rajveer 5805
    public void setAgentId(long agentId) {
3028 mandeep.dh 5806
      this.agentId = agentId;
5807
      setAgentIdIsSet(true);
5808
    }
5809
 
5810
    public void unsetAgentId() {
5811
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
5812
    }
5813
 
3430 rajveer 5814
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 5815
    public boolean isSetAgentId() {
5816
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
5817
    }
5818
 
5819
    public void setAgentIdIsSet(boolean value) {
5820
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
5821
    }
5822
 
5823
    public void setFieldValue(_Fields field, Object value) {
5824
      switch (field) {
3390 mandeep.dh 5825
      case ACTIVITY_ID:
5826
        if (value == null) {
5827
          unsetActivityId();
5828
        } else {
5829
          setActivityId((Long)value);
5830
        }
5831
        break;
5832
 
3028 mandeep.dh 5833
      case AGENT_ID:
5834
        if (value == null) {
5835
          unsetAgentId();
5836
        } else {
5837
          setAgentId((Long)value);
5838
        }
5839
        break;
5840
 
5841
      }
5842
    }
5843
 
5844
    public Object getFieldValue(_Fields field) {
5845
      switch (field) {
3390 mandeep.dh 5846
      case ACTIVITY_ID:
3430 rajveer 5847
        return Long.valueOf(getActivityId());
3390 mandeep.dh 5848
 
3028 mandeep.dh 5849
      case AGENT_ID:
3430 rajveer 5850
        return Long.valueOf(getAgentId());
3028 mandeep.dh 5851
 
5852
      }
5853
      throw new IllegalStateException();
5854
    }
5855
 
3430 rajveer 5856
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5857
    public boolean isSet(_Fields field) {
5858
      if (field == null) {
5859
        throw new IllegalArgumentException();
5860
      }
3028 mandeep.dh 5861
 
5862
      switch (field) {
3390 mandeep.dh 5863
      case ACTIVITY_ID:
5864
        return isSetActivityId();
3028 mandeep.dh 5865
      case AGENT_ID:
5866
        return isSetAgentId();
5867
      }
5868
      throw new IllegalStateException();
5869
    }
5870
 
5871
    @Override
5872
    public boolean equals(Object that) {
5873
      if (that == null)
5874
        return false;
3390 mandeep.dh 5875
      if (that instanceof markAsRead_args)
5876
        return this.equals((markAsRead_args)that);
3028 mandeep.dh 5877
      return false;
5878
    }
5879
 
3390 mandeep.dh 5880
    public boolean equals(markAsRead_args that) {
3028 mandeep.dh 5881
      if (that == null)
5882
        return false;
5883
 
3390 mandeep.dh 5884
      boolean this_present_activityId = true;
5885
      boolean that_present_activityId = true;
5886
      if (this_present_activityId || that_present_activityId) {
5887
        if (!(this_present_activityId && that_present_activityId))
5888
          return false;
5889
        if (this.activityId != that.activityId)
5890
          return false;
5891
      }
5892
 
3028 mandeep.dh 5893
      boolean this_present_agentId = true;
5894
      boolean that_present_agentId = true;
5895
      if (this_present_agentId || that_present_agentId) {
5896
        if (!(this_present_agentId && that_present_agentId))
5897
          return false;
5898
        if (this.agentId != that.agentId)
5899
          return false;
5900
      }
5901
 
5902
      return true;
5903
    }
5904
 
5905
    @Override
5906
    public int hashCode() {
5907
      return 0;
5908
    }
5909
 
3390 mandeep.dh 5910
    public int compareTo(markAsRead_args other) {
3028 mandeep.dh 5911
      if (!getClass().equals(other.getClass())) {
5912
        return getClass().getName().compareTo(other.getClass().getName());
5913
      }
5914
 
5915
      int lastComparison = 0;
3390 mandeep.dh 5916
      markAsRead_args typedOther = (markAsRead_args)other;
3028 mandeep.dh 5917
 
3430 rajveer 5918
      lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(typedOther.isSetActivityId());
3390 mandeep.dh 5919
      if (lastComparison != 0) {
5920
        return lastComparison;
5921
      }
3430 rajveer 5922
      if (isSetActivityId()) {
5923
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activityId, typedOther.activityId);
5924
        if (lastComparison != 0) {
5925
          return lastComparison;
5926
        }
3390 mandeep.dh 5927
      }
3430 rajveer 5928
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
3028 mandeep.dh 5929
      if (lastComparison != 0) {
5930
        return lastComparison;
5931
      }
3430 rajveer 5932
      if (isSetAgentId()) {
5933
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
5934
        if (lastComparison != 0) {
5935
          return lastComparison;
5936
        }
3028 mandeep.dh 5937
      }
5938
      return 0;
5939
    }
5940
 
3430 rajveer 5941
    public _Fields fieldForId(int fieldId) {
5942
      return _Fields.findByThriftId(fieldId);
5943
    }
5944
 
5945
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5946
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 5947
      iprot.readStructBegin();
5948
      while (true)
5949
      {
5950
        field = iprot.readFieldBegin();
3430 rajveer 5951
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 5952
          break;
5953
        }
3430 rajveer 5954
        switch (field.id) {
5955
          case 1: // ACTIVITY_ID
5956
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5957
              this.activityId = iprot.readI64();
5958
              setActivityIdIsSet(true);
5959
            } else { 
5960
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5961
            }
5962
            break;
5963
          case 2: // AGENT_ID
5964
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5965
              this.agentId = iprot.readI64();
5966
              setAgentIdIsSet(true);
5967
            } else { 
5968
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5969
            }
5970
            break;
5971
          default:
5972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5973
        }
3430 rajveer 5974
        iprot.readFieldEnd();
3028 mandeep.dh 5975
      }
5976
      iprot.readStructEnd();
5977
      validate();
5978
    }
5979
 
3430 rajveer 5980
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5981
      validate();
5982
 
5983
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 5984
      oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);
5985
      oprot.writeI64(this.activityId);
5986
      oprot.writeFieldEnd();
3028 mandeep.dh 5987
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
5988
      oprot.writeI64(this.agentId);
5989
      oprot.writeFieldEnd();
5990
      oprot.writeFieldStop();
5991
      oprot.writeStructEnd();
5992
    }
5993
 
5994
    @Override
5995
    public String toString() {
3390 mandeep.dh 5996
      StringBuilder sb = new StringBuilder("markAsRead_args(");
3028 mandeep.dh 5997
      boolean first = true;
5998
 
3390 mandeep.dh 5999
      sb.append("activityId:");
6000
      sb.append(this.activityId);
6001
      first = false;
6002
      if (!first) sb.append(", ");
3028 mandeep.dh 6003
      sb.append("agentId:");
6004
      sb.append(this.agentId);
6005
      first = false;
6006
      sb.append(")");
6007
      return sb.toString();
6008
    }
6009
 
3430 rajveer 6010
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6011
      // check for required fields
6012
    }
6013
 
3430 rajveer 6014
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6015
      try {
6016
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6017
      } catch (org.apache.thrift.TException te) {
6018
        throw new java.io.IOException(te);
6019
      }
6020
    }
6021
 
6022
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6023
      try {
6024
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6025
        __isset_bit_vector = new BitSet(1);
6026
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6027
      } catch (org.apache.thrift.TException te) {
6028
        throw new java.io.IOException(te);
6029
      }
6030
    }
6031
 
3028 mandeep.dh 6032
  }
6033
 
3430 rajveer 6034
  public static class markAsRead_result implements org.apache.thrift.TBase<markAsRead_result, markAsRead_result._Fields>, java.io.Serializable, Cloneable   {
6035
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_result");
3028 mandeep.dh 6036
 
6037
 
6038
 
6039
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6040
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 6041
;
3028 mandeep.dh 6042
 
6043
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6044
 
6045
      static {
6046
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6047
          byName.put(field.getFieldName(), field);
6048
        }
6049
      }
6050
 
6051
      /**
6052
       * Find the _Fields constant that matches fieldId, or null if its not found.
6053
       */
6054
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6055
        switch(fieldId) {
6056
          default:
6057
            return null;
6058
        }
3028 mandeep.dh 6059
      }
6060
 
6061
      /**
6062
       * Find the _Fields constant that matches fieldId, throwing an exception
6063
       * if it is not found.
6064
       */
6065
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6066
        _Fields fields = findByThriftId(fieldId);
6067
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6068
        return fields;
6069
      }
6070
 
6071
      /**
6072
       * Find the _Fields constant that matches name, or null if its not found.
6073
       */
6074
      public static _Fields findByName(String name) {
6075
        return byName.get(name);
6076
      }
6077
 
6078
      private final short _thriftId;
6079
      private final String _fieldName;
6080
 
6081
      _Fields(short thriftId, String fieldName) {
6082
        _thriftId = thriftId;
6083
        _fieldName = fieldName;
6084
      }
6085
 
6086
      public short getThriftFieldId() {
6087
        return _thriftId;
6088
      }
6089
 
6090
      public String getFieldName() {
6091
        return _fieldName;
6092
      }
6093
    }
3430 rajveer 6094
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6095
    static {
3430 rajveer 6096
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6097
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6098
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_result.class, metaDataMap);
3028 mandeep.dh 6099
    }
6100
 
3390 mandeep.dh 6101
    public markAsRead_result() {
3028 mandeep.dh 6102
    }
6103
 
6104
    /**
6105
     * Performs a deep copy on <i>other</i>.
6106
     */
3390 mandeep.dh 6107
    public markAsRead_result(markAsRead_result other) {
3028 mandeep.dh 6108
    }
6109
 
3390 mandeep.dh 6110
    public markAsRead_result deepCopy() {
6111
      return new markAsRead_result(this);
3028 mandeep.dh 6112
    }
6113
 
3430 rajveer 6114
    @Override
6115
    public void clear() {
3028 mandeep.dh 6116
    }
6117
 
6118
    public void setFieldValue(_Fields field, Object value) {
6119
      switch (field) {
6120
      }
6121
    }
6122
 
6123
    public Object getFieldValue(_Fields field) {
6124
      switch (field) {
6125
      }
6126
      throw new IllegalStateException();
6127
    }
6128
 
3430 rajveer 6129
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6130
    public boolean isSet(_Fields field) {
6131
      if (field == null) {
6132
        throw new IllegalArgumentException();
6133
      }
3028 mandeep.dh 6134
 
6135
      switch (field) {
6136
      }
6137
      throw new IllegalStateException();
6138
    }
6139
 
6140
    @Override
6141
    public boolean equals(Object that) {
6142
      if (that == null)
6143
        return false;
3390 mandeep.dh 6144
      if (that instanceof markAsRead_result)
6145
        return this.equals((markAsRead_result)that);
3028 mandeep.dh 6146
      return false;
6147
    }
6148
 
3390 mandeep.dh 6149
    public boolean equals(markAsRead_result that) {
3028 mandeep.dh 6150
      if (that == null)
6151
        return false;
6152
 
6153
      return true;
6154
    }
6155
 
6156
    @Override
6157
    public int hashCode() {
6158
      return 0;
6159
    }
6160
 
3390 mandeep.dh 6161
    public int compareTo(markAsRead_result other) {
3028 mandeep.dh 6162
      if (!getClass().equals(other.getClass())) {
6163
        return getClass().getName().compareTo(other.getClass().getName());
6164
      }
6165
 
6166
      int lastComparison = 0;
3390 mandeep.dh 6167
      markAsRead_result typedOther = (markAsRead_result)other;
3028 mandeep.dh 6168
 
6169
      return 0;
6170
    }
6171
 
3430 rajveer 6172
    public _Fields fieldForId(int fieldId) {
6173
      return _Fields.findByThriftId(fieldId);
6174
    }
6175
 
6176
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6177
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6178
      iprot.readStructBegin();
6179
      while (true)
6180
      {
6181
        field = iprot.readFieldBegin();
3430 rajveer 6182
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6183
          break;
6184
        }
3430 rajveer 6185
        switch (field.id) {
6186
          default:
6187
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6188
        }
3430 rajveer 6189
        iprot.readFieldEnd();
3028 mandeep.dh 6190
      }
6191
      iprot.readStructEnd();
6192
      validate();
6193
    }
6194
 
3430 rajveer 6195
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6196
      oprot.writeStructBegin(STRUCT_DESC);
6197
 
6198
      oprot.writeFieldStop();
6199
      oprot.writeStructEnd();
6200
    }
6201
 
6202
    @Override
6203
    public String toString() {
3390 mandeep.dh 6204
      StringBuilder sb = new StringBuilder("markAsRead_result(");
3028 mandeep.dh 6205
      boolean first = true;
6206
 
6207
      sb.append(")");
6208
      return sb.toString();
6209
    }
6210
 
3430 rajveer 6211
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6212
      // check for required fields
6213
    }
6214
 
3430 rajveer 6215
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6216
      try {
6217
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6218
      } catch (org.apache.thrift.TException te) {
6219
        throw new java.io.IOException(te);
6220
      }
6221
    }
6222
 
6223
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6224
      try {
6225
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6226
      } catch (org.apache.thrift.TException te) {
6227
        throw new java.io.IOException(te);
6228
      }
6229
    }
6230
 
3028 mandeep.dh 6231
  }
6232
 
3430 rajveer 6233
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
6234
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
3028 mandeep.dh 6235
 
3430 rajveer 6236
    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 6237
 
3430 rajveer 6238
    private SearchFilter searchFilter; // required
3028 mandeep.dh 6239
 
6240
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6241
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 6242
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 6243
 
6244
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6245
 
6246
      static {
6247
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6248
          byName.put(field.getFieldName(), field);
6249
        }
6250
      }
6251
 
6252
      /**
6253
       * Find the _Fields constant that matches fieldId, or null if its not found.
6254
       */
6255
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6256
        switch(fieldId) {
6257
          case 1: // SEARCH_FILTER
6258
            return SEARCH_FILTER;
6259
          default:
6260
            return null;
6261
        }
3028 mandeep.dh 6262
      }
6263
 
6264
      /**
6265
       * Find the _Fields constant that matches fieldId, throwing an exception
6266
       * if it is not found.
6267
       */
6268
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6269
        _Fields fields = findByThriftId(fieldId);
6270
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6271
        return fields;
6272
      }
6273
 
6274
      /**
6275
       * Find the _Fields constant that matches name, or null if its not found.
6276
       */
6277
      public static _Fields findByName(String name) {
6278
        return byName.get(name);
6279
      }
6280
 
6281
      private final short _thriftId;
6282
      private final String _fieldName;
6283
 
6284
      _Fields(short thriftId, String fieldName) {
6285
        _thriftId = thriftId;
6286
        _fieldName = fieldName;
6287
      }
6288
 
6289
      public short getThriftFieldId() {
6290
        return _thriftId;
6291
      }
6292
 
6293
      public String getFieldName() {
6294
        return _fieldName;
6295
      }
6296
    }
6297
 
6298
    // isset id assignments
6299
 
3430 rajveer 6300
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6301
    static {
3430 rajveer 6302
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6303
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6304
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
6305
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6306
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
3028 mandeep.dh 6307
    }
6308
 
3390 mandeep.dh 6309
    public getAgents_args() {
3028 mandeep.dh 6310
    }
6311
 
3390 mandeep.dh 6312
    public getAgents_args(
6313
      SearchFilter searchFilter)
3028 mandeep.dh 6314
    {
6315
      this();
3390 mandeep.dh 6316
      this.searchFilter = searchFilter;
3028 mandeep.dh 6317
    }
6318
 
6319
    /**
6320
     * Performs a deep copy on <i>other</i>.
6321
     */
3390 mandeep.dh 6322
    public getAgents_args(getAgents_args other) {
6323
      if (other.isSetSearchFilter()) {
6324
        this.searchFilter = new SearchFilter(other.searchFilter);
3028 mandeep.dh 6325
      }
6326
    }
6327
 
3390 mandeep.dh 6328
    public getAgents_args deepCopy() {
6329
      return new getAgents_args(this);
3028 mandeep.dh 6330
    }
6331
 
3430 rajveer 6332
    @Override
6333
    public void clear() {
6334
      this.searchFilter = null;
3028 mandeep.dh 6335
    }
6336
 
3390 mandeep.dh 6337
    public SearchFilter getSearchFilter() {
6338
      return this.searchFilter;
3028 mandeep.dh 6339
    }
6340
 
3430 rajveer 6341
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 6342
      this.searchFilter = searchFilter;
3028 mandeep.dh 6343
    }
6344
 
3390 mandeep.dh 6345
    public void unsetSearchFilter() {
6346
      this.searchFilter = null;
3028 mandeep.dh 6347
    }
6348
 
3430 rajveer 6349
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 6350
    public boolean isSetSearchFilter() {
6351
      return this.searchFilter != null;
3028 mandeep.dh 6352
    }
6353
 
3390 mandeep.dh 6354
    public void setSearchFilterIsSet(boolean value) {
3028 mandeep.dh 6355
      if (!value) {
3390 mandeep.dh 6356
        this.searchFilter = null;
3028 mandeep.dh 6357
      }
6358
    }
6359
 
6360
    public void setFieldValue(_Fields field, Object value) {
6361
      switch (field) {
3390 mandeep.dh 6362
      case SEARCH_FILTER:
3028 mandeep.dh 6363
        if (value == null) {
3390 mandeep.dh 6364
          unsetSearchFilter();
3028 mandeep.dh 6365
        } else {
3390 mandeep.dh 6366
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 6367
        }
6368
        break;
6369
 
6370
      }
6371
    }
6372
 
6373
    public Object getFieldValue(_Fields field) {
6374
      switch (field) {
3390 mandeep.dh 6375
      case SEARCH_FILTER:
6376
        return getSearchFilter();
3028 mandeep.dh 6377
 
6378
      }
6379
      throw new IllegalStateException();
6380
    }
6381
 
3430 rajveer 6382
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6383
    public boolean isSet(_Fields field) {
6384
      if (field == null) {
6385
        throw new IllegalArgumentException();
6386
      }
3028 mandeep.dh 6387
 
6388
      switch (field) {
3390 mandeep.dh 6389
      case SEARCH_FILTER:
6390
        return isSetSearchFilter();
3028 mandeep.dh 6391
      }
6392
      throw new IllegalStateException();
6393
    }
6394
 
6395
    @Override
6396
    public boolean equals(Object that) {
6397
      if (that == null)
6398
        return false;
3390 mandeep.dh 6399
      if (that instanceof getAgents_args)
6400
        return this.equals((getAgents_args)that);
3028 mandeep.dh 6401
      return false;
6402
    }
6403
 
3390 mandeep.dh 6404
    public boolean equals(getAgents_args that) {
3028 mandeep.dh 6405
      if (that == null)
6406
        return false;
6407
 
3390 mandeep.dh 6408
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
6409
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
6410
      if (this_present_searchFilter || that_present_searchFilter) {
6411
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 6412
          return false;
3390 mandeep.dh 6413
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 6414
          return false;
6415
      }
6416
 
6417
      return true;
6418
    }
6419
 
6420
    @Override
6421
    public int hashCode() {
6422
      return 0;
6423
    }
6424
 
3390 mandeep.dh 6425
    public int compareTo(getAgents_args other) {
3028 mandeep.dh 6426
      if (!getClass().equals(other.getClass())) {
6427
        return getClass().getName().compareTo(other.getClass().getName());
6428
      }
6429
 
6430
      int lastComparison = 0;
3390 mandeep.dh 6431
      getAgents_args typedOther = (getAgents_args)other;
3028 mandeep.dh 6432
 
3430 rajveer 6433
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 6434
      if (lastComparison != 0) {
6435
        return lastComparison;
6436
      }
3430 rajveer 6437
      if (isSetSearchFilter()) {
6438
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
6439
        if (lastComparison != 0) {
6440
          return lastComparison;
6441
        }
3028 mandeep.dh 6442
      }
6443
      return 0;
6444
    }
6445
 
3430 rajveer 6446
    public _Fields fieldForId(int fieldId) {
6447
      return _Fields.findByThriftId(fieldId);
6448
    }
6449
 
6450
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6451
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6452
      iprot.readStructBegin();
6453
      while (true)
6454
      {
6455
        field = iprot.readFieldBegin();
3430 rajveer 6456
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6457
          break;
6458
        }
3430 rajveer 6459
        switch (field.id) {
6460
          case 1: // SEARCH_FILTER
6461
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6462
              this.searchFilter = new SearchFilter();
6463
              this.searchFilter.read(iprot);
6464
            } else { 
6465
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6466
            }
6467
            break;
6468
          default:
6469
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6470
        }
3430 rajveer 6471
        iprot.readFieldEnd();
3028 mandeep.dh 6472
      }
6473
      iprot.readStructEnd();
6474
      validate();
6475
    }
6476
 
3430 rajveer 6477
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6478
      validate();
6479
 
6480
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 6481
      if (this.searchFilter != null) {
6482
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
6483
        this.searchFilter.write(oprot);
3028 mandeep.dh 6484
        oprot.writeFieldEnd();
6485
      }
6486
      oprot.writeFieldStop();
6487
      oprot.writeStructEnd();
6488
    }
6489
 
6490
    @Override
6491
    public String toString() {
3390 mandeep.dh 6492
      StringBuilder sb = new StringBuilder("getAgents_args(");
3028 mandeep.dh 6493
      boolean first = true;
6494
 
3390 mandeep.dh 6495
      sb.append("searchFilter:");
6496
      if (this.searchFilter == null) {
3028 mandeep.dh 6497
        sb.append("null");
6498
      } else {
3390 mandeep.dh 6499
        sb.append(this.searchFilter);
3028 mandeep.dh 6500
      }
6501
      first = false;
6502
      sb.append(")");
6503
      return sb.toString();
6504
    }
6505
 
3430 rajveer 6506
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6507
      // check for required fields
6508
    }
6509
 
3430 rajveer 6510
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6511
      try {
6512
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6513
      } catch (org.apache.thrift.TException te) {
6514
        throw new java.io.IOException(te);
6515
      }
6516
    }
6517
 
6518
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6519
      try {
6520
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6521
      } catch (org.apache.thrift.TException te) {
6522
        throw new java.io.IOException(te);
6523
      }
6524
    }
6525
 
3028 mandeep.dh 6526
  }
6527
 
3430 rajveer 6528
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
6529
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
3028 mandeep.dh 6530
 
3430 rajveer 6531
    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 6532
 
3430 rajveer 6533
    private List<Agent> success; // required
3028 mandeep.dh 6534
 
6535
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6536
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 6537
      SUCCESS((short)0, "success");
6538
 
6539
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6540
 
6541
      static {
6542
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6543
          byName.put(field.getFieldName(), field);
6544
        }
6545
      }
6546
 
6547
      /**
6548
       * Find the _Fields constant that matches fieldId, or null if its not found.
6549
       */
6550
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6551
        switch(fieldId) {
6552
          case 0: // SUCCESS
6553
            return SUCCESS;
6554
          default:
6555
            return null;
6556
        }
3028 mandeep.dh 6557
      }
6558
 
6559
      /**
6560
       * Find the _Fields constant that matches fieldId, throwing an exception
6561
       * if it is not found.
6562
       */
6563
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6564
        _Fields fields = findByThriftId(fieldId);
6565
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6566
        return fields;
6567
      }
6568
 
6569
      /**
6570
       * Find the _Fields constant that matches name, or null if its not found.
6571
       */
6572
      public static _Fields findByName(String name) {
6573
        return byName.get(name);
6574
      }
6575
 
6576
      private final short _thriftId;
6577
      private final String _fieldName;
6578
 
6579
      _Fields(short thriftId, String fieldName) {
6580
        _thriftId = thriftId;
6581
        _fieldName = fieldName;
6582
      }
6583
 
6584
      public short getThriftFieldId() {
6585
        return _thriftId;
6586
      }
6587
 
6588
      public String getFieldName() {
6589
        return _fieldName;
6590
      }
6591
    }
6592
 
6593
    // isset id assignments
6594
 
3430 rajveer 6595
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6596
    static {
3430 rajveer 6597
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6598
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6599
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6600
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
6601
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6602
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
3028 mandeep.dh 6603
    }
6604
 
3390 mandeep.dh 6605
    public getAgents_result() {
3028 mandeep.dh 6606
    }
6607
 
3390 mandeep.dh 6608
    public getAgents_result(
6609
      List<Agent> success)
3028 mandeep.dh 6610
    {
6611
      this();
6612
      this.success = success;
6613
    }
6614
 
6615
    /**
6616
     * Performs a deep copy on <i>other</i>.
6617
     */
3390 mandeep.dh 6618
    public getAgents_result(getAgents_result other) {
3028 mandeep.dh 6619
      if (other.isSetSuccess()) {
3390 mandeep.dh 6620
        List<Agent> __this__success = new ArrayList<Agent>();
6621
        for (Agent other_element : other.success) {
6622
          __this__success.add(new Agent(other_element));
6623
        }
6624
        this.success = __this__success;
3028 mandeep.dh 6625
      }
6626
    }
6627
 
3390 mandeep.dh 6628
    public getAgents_result deepCopy() {
6629
      return new getAgents_result(this);
3028 mandeep.dh 6630
    }
6631
 
3430 rajveer 6632
    @Override
6633
    public void clear() {
6634
      this.success = null;
3028 mandeep.dh 6635
    }
6636
 
3390 mandeep.dh 6637
    public int getSuccessSize() {
6638
      return (this.success == null) ? 0 : this.success.size();
6639
    }
6640
 
6641
    public java.util.Iterator<Agent> getSuccessIterator() {
6642
      return (this.success == null) ? null : this.success.iterator();
6643
    }
6644
 
6645
    public void addToSuccess(Agent elem) {
6646
      if (this.success == null) {
6647
        this.success = new ArrayList<Agent>();
6648
      }
6649
      this.success.add(elem);
6650
    }
6651
 
6652
    public List<Agent> getSuccess() {
3028 mandeep.dh 6653
      return this.success;
6654
    }
6655
 
3430 rajveer 6656
    public void setSuccess(List<Agent> success) {
3028 mandeep.dh 6657
      this.success = success;
6658
    }
6659
 
6660
    public void unsetSuccess() {
6661
      this.success = null;
6662
    }
6663
 
3430 rajveer 6664
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 6665
    public boolean isSetSuccess() {
6666
      return this.success != null;
6667
    }
6668
 
6669
    public void setSuccessIsSet(boolean value) {
6670
      if (!value) {
6671
        this.success = null;
6672
      }
6673
    }
6674
 
6675
    public void setFieldValue(_Fields field, Object value) {
6676
      switch (field) {
6677
      case SUCCESS:
6678
        if (value == null) {
6679
          unsetSuccess();
6680
        } else {
3390 mandeep.dh 6681
          setSuccess((List<Agent>)value);
3028 mandeep.dh 6682
        }
6683
        break;
6684
 
6685
      }
6686
    }
6687
 
6688
    public Object getFieldValue(_Fields field) {
6689
      switch (field) {
6690
      case SUCCESS:
6691
        return getSuccess();
6692
 
6693
      }
6694
      throw new IllegalStateException();
6695
    }
6696
 
3430 rajveer 6697
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6698
    public boolean isSet(_Fields field) {
6699
      if (field == null) {
6700
        throw new IllegalArgumentException();
6701
      }
3028 mandeep.dh 6702
 
6703
      switch (field) {
6704
      case SUCCESS:
6705
        return isSetSuccess();
6706
      }
6707
      throw new IllegalStateException();
6708
    }
6709
 
6710
    @Override
6711
    public boolean equals(Object that) {
6712
      if (that == null)
6713
        return false;
3390 mandeep.dh 6714
      if (that instanceof getAgents_result)
6715
        return this.equals((getAgents_result)that);
3028 mandeep.dh 6716
      return false;
6717
    }
6718
 
3390 mandeep.dh 6719
    public boolean equals(getAgents_result that) {
3028 mandeep.dh 6720
      if (that == null)
6721
        return false;
6722
 
6723
      boolean this_present_success = true && this.isSetSuccess();
6724
      boolean that_present_success = true && that.isSetSuccess();
6725
      if (this_present_success || that_present_success) {
6726
        if (!(this_present_success && that_present_success))
6727
          return false;
6728
        if (!this.success.equals(that.success))
6729
          return false;
6730
      }
6731
 
6732
      return true;
6733
    }
6734
 
6735
    @Override
6736
    public int hashCode() {
6737
      return 0;
6738
    }
6739
 
3390 mandeep.dh 6740
    public int compareTo(getAgents_result other) {
3028 mandeep.dh 6741
      if (!getClass().equals(other.getClass())) {
6742
        return getClass().getName().compareTo(other.getClass().getName());
6743
      }
6744
 
6745
      int lastComparison = 0;
3390 mandeep.dh 6746
      getAgents_result typedOther = (getAgents_result)other;
3028 mandeep.dh 6747
 
3430 rajveer 6748
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 6749
      if (lastComparison != 0) {
6750
        return lastComparison;
6751
      }
3430 rajveer 6752
      if (isSetSuccess()) {
6753
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6754
        if (lastComparison != 0) {
6755
          return lastComparison;
6756
        }
3028 mandeep.dh 6757
      }
6758
      return 0;
6759
    }
6760
 
3430 rajveer 6761
    public _Fields fieldForId(int fieldId) {
6762
      return _Fields.findByThriftId(fieldId);
6763
    }
6764
 
6765
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6766
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6767
      iprot.readStructBegin();
6768
      while (true)
6769
      {
6770
        field = iprot.readFieldBegin();
3430 rajveer 6771
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6772
          break;
6773
        }
3430 rajveer 6774
        switch (field.id) {
6775
          case 0: // SUCCESS
6776
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6777
              {
3546 mandeep.dh 6778
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
6779
                this.success = new ArrayList<Agent>(_list24.size);
6780
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
3390 mandeep.dh 6781
                {
3546 mandeep.dh 6782
                  Agent _elem26; // required
6783
                  _elem26 = new Agent();
6784
                  _elem26.read(iprot);
6785
                  this.success.add(_elem26);
3390 mandeep.dh 6786
                }
3430 rajveer 6787
                iprot.readListEnd();
3028 mandeep.dh 6788
              }
3430 rajveer 6789
            } else { 
6790
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6791
            }
6792
            break;
6793
          default:
6794
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6795
        }
3430 rajveer 6796
        iprot.readFieldEnd();
3028 mandeep.dh 6797
      }
6798
      iprot.readStructEnd();
6799
      validate();
6800
    }
6801
 
3430 rajveer 6802
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6803
      oprot.writeStructBegin(STRUCT_DESC);
6804
 
6805
      if (this.isSetSuccess()) {
6806
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3390 mandeep.dh 6807
        {
3430 rajveer 6808
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 6809
          for (Agent _iter27 : this.success)
3390 mandeep.dh 6810
          {
3546 mandeep.dh 6811
            _iter27.write(oprot);
3390 mandeep.dh 6812
          }
6813
          oprot.writeListEnd();
6814
        }
3028 mandeep.dh 6815
        oprot.writeFieldEnd();
6816
      }
6817
      oprot.writeFieldStop();
6818
      oprot.writeStructEnd();
6819
    }
6820
 
6821
    @Override
6822
    public String toString() {
3390 mandeep.dh 6823
      StringBuilder sb = new StringBuilder("getAgents_result(");
3028 mandeep.dh 6824
      boolean first = true;
6825
 
6826
      sb.append("success:");
6827
      if (this.success == null) {
6828
        sb.append("null");
6829
      } else {
6830
        sb.append(this.success);
6831
      }
6832
      first = false;
6833
      sb.append(")");
6834
      return sb.toString();
6835
    }
6836
 
3430 rajveer 6837
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6838
      // check for required fields
6839
    }
6840
 
3430 rajveer 6841
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6842
      try {
6843
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6844
      } catch (org.apache.thrift.TException te) {
6845
        throw new java.io.IOException(te);
6846
      }
6847
    }
6848
 
6849
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6850
      try {
6851
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6852
      } catch (org.apache.thrift.TException te) {
6853
        throw new java.io.IOException(te);
6854
      }
6855
    }
6856
 
3028 mandeep.dh 6857
  }
6858
 
5287 amar.kumar 6859
  public static class getInactiveAgents_args implements org.apache.thrift.TBase<getInactiveAgents_args, getInactiveAgents_args._Fields>, java.io.Serializable, Cloneable   {
6860
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_args");
6861
 
6862
    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);
6863
 
6864
    private SearchFilter searchFilter; // required
6865
 
6866
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6867
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6868
      SEARCH_FILTER((short)1, "searchFilter");
6869
 
6870
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6871
 
6872
      static {
6873
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6874
          byName.put(field.getFieldName(), field);
6875
        }
6876
      }
6877
 
6878
      /**
6879
       * Find the _Fields constant that matches fieldId, or null if its not found.
6880
       */
6881
      public static _Fields findByThriftId(int fieldId) {
6882
        switch(fieldId) {
6883
          case 1: // SEARCH_FILTER
6884
            return SEARCH_FILTER;
6885
          default:
6886
            return null;
6887
        }
6888
      }
6889
 
6890
      /**
6891
       * Find the _Fields constant that matches fieldId, throwing an exception
6892
       * if it is not found.
6893
       */
6894
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6895
        _Fields fields = findByThriftId(fieldId);
6896
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6897
        return fields;
6898
      }
6899
 
6900
      /**
6901
       * Find the _Fields constant that matches name, or null if its not found.
6902
       */
6903
      public static _Fields findByName(String name) {
6904
        return byName.get(name);
6905
      }
6906
 
6907
      private final short _thriftId;
6908
      private final String _fieldName;
6909
 
6910
      _Fields(short thriftId, String fieldName) {
6911
        _thriftId = thriftId;
6912
        _fieldName = fieldName;
6913
      }
6914
 
6915
      public short getThriftFieldId() {
6916
        return _thriftId;
6917
      }
6918
 
6919
      public String getFieldName() {
6920
        return _fieldName;
6921
      }
6922
    }
6923
 
6924
    // isset id assignments
6925
 
6926
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6927
    static {
6928
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6929
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6930
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
6931
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6932
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_args.class, metaDataMap);
6933
    }
6934
 
6935
    public getInactiveAgents_args() {
6936
    }
6937
 
6938
    public getInactiveAgents_args(
6939
      SearchFilter searchFilter)
6940
    {
6941
      this();
6942
      this.searchFilter = searchFilter;
6943
    }
6944
 
6945
    /**
6946
     * Performs a deep copy on <i>other</i>.
6947
     */
6948
    public getInactiveAgents_args(getInactiveAgents_args other) {
6949
      if (other.isSetSearchFilter()) {
6950
        this.searchFilter = new SearchFilter(other.searchFilter);
6951
      }
6952
    }
6953
 
6954
    public getInactiveAgents_args deepCopy() {
6955
      return new getInactiveAgents_args(this);
6956
    }
6957
 
6958
    @Override
6959
    public void clear() {
6960
      this.searchFilter = null;
6961
    }
6962
 
6963
    public SearchFilter getSearchFilter() {
6964
      return this.searchFilter;
6965
    }
6966
 
6967
    public void setSearchFilter(SearchFilter searchFilter) {
6968
      this.searchFilter = searchFilter;
6969
    }
6970
 
6971
    public void unsetSearchFilter() {
6972
      this.searchFilter = null;
6973
    }
6974
 
6975
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
6976
    public boolean isSetSearchFilter() {
6977
      return this.searchFilter != null;
6978
    }
6979
 
6980
    public void setSearchFilterIsSet(boolean value) {
6981
      if (!value) {
6982
        this.searchFilter = null;
6983
      }
6984
    }
6985
 
6986
    public void setFieldValue(_Fields field, Object value) {
6987
      switch (field) {
6988
      case SEARCH_FILTER:
6989
        if (value == null) {
6990
          unsetSearchFilter();
6991
        } else {
6992
          setSearchFilter((SearchFilter)value);
6993
        }
6994
        break;
6995
 
6996
      }
6997
    }
6998
 
6999
    public Object getFieldValue(_Fields field) {
7000
      switch (field) {
7001
      case SEARCH_FILTER:
7002
        return getSearchFilter();
7003
 
7004
      }
7005
      throw new IllegalStateException();
7006
    }
7007
 
7008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7009
    public boolean isSet(_Fields field) {
7010
      if (field == null) {
7011
        throw new IllegalArgumentException();
7012
      }
7013
 
7014
      switch (field) {
7015
      case SEARCH_FILTER:
7016
        return isSetSearchFilter();
7017
      }
7018
      throw new IllegalStateException();
7019
    }
7020
 
7021
    @Override
7022
    public boolean equals(Object that) {
7023
      if (that == null)
7024
        return false;
7025
      if (that instanceof getInactiveAgents_args)
7026
        return this.equals((getInactiveAgents_args)that);
7027
      return false;
7028
    }
7029
 
7030
    public boolean equals(getInactiveAgents_args that) {
7031
      if (that == null)
7032
        return false;
7033
 
7034
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
7035
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
7036
      if (this_present_searchFilter || that_present_searchFilter) {
7037
        if (!(this_present_searchFilter && that_present_searchFilter))
7038
          return false;
7039
        if (!this.searchFilter.equals(that.searchFilter))
7040
          return false;
7041
      }
7042
 
7043
      return true;
7044
    }
7045
 
7046
    @Override
7047
    public int hashCode() {
7048
      return 0;
7049
    }
7050
 
7051
    public int compareTo(getInactiveAgents_args other) {
7052
      if (!getClass().equals(other.getClass())) {
7053
        return getClass().getName().compareTo(other.getClass().getName());
7054
      }
7055
 
7056
      int lastComparison = 0;
7057
      getInactiveAgents_args typedOther = (getInactiveAgents_args)other;
7058
 
7059
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
7060
      if (lastComparison != 0) {
7061
        return lastComparison;
7062
      }
7063
      if (isSetSearchFilter()) {
7064
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
7065
        if (lastComparison != 0) {
7066
          return lastComparison;
7067
        }
7068
      }
7069
      return 0;
7070
    }
7071
 
7072
    public _Fields fieldForId(int fieldId) {
7073
      return _Fields.findByThriftId(fieldId);
7074
    }
7075
 
7076
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7077
      org.apache.thrift.protocol.TField field;
7078
      iprot.readStructBegin();
7079
      while (true)
7080
      {
7081
        field = iprot.readFieldBegin();
7082
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7083
          break;
7084
        }
7085
        switch (field.id) {
7086
          case 1: // SEARCH_FILTER
7087
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7088
              this.searchFilter = new SearchFilter();
7089
              this.searchFilter.read(iprot);
7090
            } else { 
7091
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7092
            }
7093
            break;
7094
          default:
7095
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7096
        }
7097
        iprot.readFieldEnd();
7098
      }
7099
      iprot.readStructEnd();
7100
      validate();
7101
    }
7102
 
7103
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7104
      validate();
7105
 
7106
      oprot.writeStructBegin(STRUCT_DESC);
7107
      if (this.searchFilter != null) {
7108
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
7109
        this.searchFilter.write(oprot);
7110
        oprot.writeFieldEnd();
7111
      }
7112
      oprot.writeFieldStop();
7113
      oprot.writeStructEnd();
7114
    }
7115
 
7116
    @Override
7117
    public String toString() {
7118
      StringBuilder sb = new StringBuilder("getInactiveAgents_args(");
7119
      boolean first = true;
7120
 
7121
      sb.append("searchFilter:");
7122
      if (this.searchFilter == null) {
7123
        sb.append("null");
7124
      } else {
7125
        sb.append(this.searchFilter);
7126
      }
7127
      first = false;
7128
      sb.append(")");
7129
      return sb.toString();
7130
    }
7131
 
7132
    public void validate() throws org.apache.thrift.TException {
7133
      // check for required fields
7134
    }
7135
 
7136
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7137
      try {
7138
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7139
      } catch (org.apache.thrift.TException te) {
7140
        throw new java.io.IOException(te);
7141
      }
7142
    }
7143
 
7144
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7145
      try {
7146
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7147
      } catch (org.apache.thrift.TException te) {
7148
        throw new java.io.IOException(te);
7149
      }
7150
    }
7151
 
7152
  }
7153
 
7154
  public static class getInactiveAgents_result implements org.apache.thrift.TBase<getInactiveAgents_result, getInactiveAgents_result._Fields>, java.io.Serializable, Cloneable   {
7155
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_result");
7156
 
7157
    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);
7158
 
7159
    private List<Agent> success; // required
7160
 
7161
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7162
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7163
      SUCCESS((short)0, "success");
7164
 
7165
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7166
 
7167
      static {
7168
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7169
          byName.put(field.getFieldName(), field);
7170
        }
7171
      }
7172
 
7173
      /**
7174
       * Find the _Fields constant that matches fieldId, or null if its not found.
7175
       */
7176
      public static _Fields findByThriftId(int fieldId) {
7177
        switch(fieldId) {
7178
          case 0: // SUCCESS
7179
            return SUCCESS;
7180
          default:
7181
            return null;
7182
        }
7183
      }
7184
 
7185
      /**
7186
       * Find the _Fields constant that matches fieldId, throwing an exception
7187
       * if it is not found.
7188
       */
7189
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7190
        _Fields fields = findByThriftId(fieldId);
7191
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7192
        return fields;
7193
      }
7194
 
7195
      /**
7196
       * Find the _Fields constant that matches name, or null if its not found.
7197
       */
7198
      public static _Fields findByName(String name) {
7199
        return byName.get(name);
7200
      }
7201
 
7202
      private final short _thriftId;
7203
      private final String _fieldName;
7204
 
7205
      _Fields(short thriftId, String fieldName) {
7206
        _thriftId = thriftId;
7207
        _fieldName = fieldName;
7208
      }
7209
 
7210
      public short getThriftFieldId() {
7211
        return _thriftId;
7212
      }
7213
 
7214
      public String getFieldName() {
7215
        return _fieldName;
7216
      }
7217
    }
7218
 
7219
    // isset id assignments
7220
 
7221
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7222
    static {
7223
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7224
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7225
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7226
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
7227
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7228
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_result.class, metaDataMap);
7229
    }
7230
 
7231
    public getInactiveAgents_result() {
7232
    }
7233
 
7234
    public getInactiveAgents_result(
7235
      List<Agent> success)
7236
    {
7237
      this();
7238
      this.success = success;
7239
    }
7240
 
7241
    /**
7242
     * Performs a deep copy on <i>other</i>.
7243
     */
7244
    public getInactiveAgents_result(getInactiveAgents_result other) {
7245
      if (other.isSetSuccess()) {
7246
        List<Agent> __this__success = new ArrayList<Agent>();
7247
        for (Agent other_element : other.success) {
7248
          __this__success.add(new Agent(other_element));
7249
        }
7250
        this.success = __this__success;
7251
      }
7252
    }
7253
 
7254
    public getInactiveAgents_result deepCopy() {
7255
      return new getInactiveAgents_result(this);
7256
    }
7257
 
7258
    @Override
7259
    public void clear() {
7260
      this.success = null;
7261
    }
7262
 
7263
    public int getSuccessSize() {
7264
      return (this.success == null) ? 0 : this.success.size();
7265
    }
7266
 
7267
    public java.util.Iterator<Agent> getSuccessIterator() {
7268
      return (this.success == null) ? null : this.success.iterator();
7269
    }
7270
 
7271
    public void addToSuccess(Agent elem) {
7272
      if (this.success == null) {
7273
        this.success = new ArrayList<Agent>();
7274
      }
7275
      this.success.add(elem);
7276
    }
7277
 
7278
    public List<Agent> getSuccess() {
7279
      return this.success;
7280
    }
7281
 
7282
    public void setSuccess(List<Agent> success) {
7283
      this.success = success;
7284
    }
7285
 
7286
    public void unsetSuccess() {
7287
      this.success = null;
7288
    }
7289
 
7290
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7291
    public boolean isSetSuccess() {
7292
      return this.success != null;
7293
    }
7294
 
7295
    public void setSuccessIsSet(boolean value) {
7296
      if (!value) {
7297
        this.success = null;
7298
      }
7299
    }
7300
 
7301
    public void setFieldValue(_Fields field, Object value) {
7302
      switch (field) {
7303
      case SUCCESS:
7304
        if (value == null) {
7305
          unsetSuccess();
7306
        } else {
7307
          setSuccess((List<Agent>)value);
7308
        }
7309
        break;
7310
 
7311
      }
7312
    }
7313
 
7314
    public Object getFieldValue(_Fields field) {
7315
      switch (field) {
7316
      case SUCCESS:
7317
        return getSuccess();
7318
 
7319
      }
7320
      throw new IllegalStateException();
7321
    }
7322
 
7323
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7324
    public boolean isSet(_Fields field) {
7325
      if (field == null) {
7326
        throw new IllegalArgumentException();
7327
      }
7328
 
7329
      switch (field) {
7330
      case SUCCESS:
7331
        return isSetSuccess();
7332
      }
7333
      throw new IllegalStateException();
7334
    }
7335
 
7336
    @Override
7337
    public boolean equals(Object that) {
7338
      if (that == null)
7339
        return false;
7340
      if (that instanceof getInactiveAgents_result)
7341
        return this.equals((getInactiveAgents_result)that);
7342
      return false;
7343
    }
7344
 
7345
    public boolean equals(getInactiveAgents_result that) {
7346
      if (that == null)
7347
        return false;
7348
 
7349
      boolean this_present_success = true && this.isSetSuccess();
7350
      boolean that_present_success = true && that.isSetSuccess();
7351
      if (this_present_success || that_present_success) {
7352
        if (!(this_present_success && that_present_success))
7353
          return false;
7354
        if (!this.success.equals(that.success))
7355
          return false;
7356
      }
7357
 
7358
      return true;
7359
    }
7360
 
7361
    @Override
7362
    public int hashCode() {
7363
      return 0;
7364
    }
7365
 
7366
    public int compareTo(getInactiveAgents_result other) {
7367
      if (!getClass().equals(other.getClass())) {
7368
        return getClass().getName().compareTo(other.getClass().getName());
7369
      }
7370
 
7371
      int lastComparison = 0;
7372
      getInactiveAgents_result typedOther = (getInactiveAgents_result)other;
7373
 
7374
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7375
      if (lastComparison != 0) {
7376
        return lastComparison;
7377
      }
7378
      if (isSetSuccess()) {
7379
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7380
        if (lastComparison != 0) {
7381
          return lastComparison;
7382
        }
7383
      }
7384
      return 0;
7385
    }
7386
 
7387
    public _Fields fieldForId(int fieldId) {
7388
      return _Fields.findByThriftId(fieldId);
7389
    }
7390
 
7391
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7392
      org.apache.thrift.protocol.TField field;
7393
      iprot.readStructBegin();
7394
      while (true)
7395
      {
7396
        field = iprot.readFieldBegin();
7397
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7398
          break;
7399
        }
7400
        switch (field.id) {
7401
          case 0: // SUCCESS
7402
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7403
              {
7404
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
7405
                this.success = new ArrayList<Agent>(_list28.size);
7406
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7407
                {
7408
                  Agent _elem30; // required
7409
                  _elem30 = new Agent();
7410
                  _elem30.read(iprot);
7411
                  this.success.add(_elem30);
7412
                }
7413
                iprot.readListEnd();
7414
              }
7415
            } else { 
7416
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7417
            }
7418
            break;
7419
          default:
7420
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7421
        }
7422
        iprot.readFieldEnd();
7423
      }
7424
      iprot.readStructEnd();
7425
      validate();
7426
    }
7427
 
7428
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7429
      oprot.writeStructBegin(STRUCT_DESC);
7430
 
7431
      if (this.isSetSuccess()) {
7432
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7433
        {
7434
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7435
          for (Agent _iter31 : this.success)
7436
          {
7437
            _iter31.write(oprot);
7438
          }
7439
          oprot.writeListEnd();
7440
        }
7441
        oprot.writeFieldEnd();
7442
      }
7443
      oprot.writeFieldStop();
7444
      oprot.writeStructEnd();
7445
    }
7446
 
7447
    @Override
7448
    public String toString() {
7449
      StringBuilder sb = new StringBuilder("getInactiveAgents_result(");
7450
      boolean first = true;
7451
 
7452
      sb.append("success:");
7453
      if (this.success == null) {
7454
        sb.append("null");
7455
      } else {
7456
        sb.append(this.success);
7457
      }
7458
      first = false;
7459
      sb.append(")");
7460
      return sb.toString();
7461
    }
7462
 
7463
    public void validate() throws org.apache.thrift.TException {
7464
      // check for required fields
7465
    }
7466
 
7467
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7468
      try {
7469
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7470
      } catch (org.apache.thrift.TException te) {
7471
        throw new java.io.IOException(te);
7472
      }
7473
    }
7474
 
7475
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7476
      try {
7477
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7478
      } catch (org.apache.thrift.TException te) {
7479
        throw new java.io.IOException(te);
7480
      }
7481
    }
7482
 
7483
  }
7484
 
3430 rajveer 7485
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
7486
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
3087 mandeep.dh 7487
 
3430 rajveer 7488
    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);
7489
    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 7490
 
3430 rajveer 7491
    private String agentEmailId; // required
7492
    private String password; // required
3087 mandeep.dh 7493
 
7494
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7495
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 7496
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
7497
      PASSWORD((short)2, "password");
7498
 
7499
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7500
 
7501
      static {
7502
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7503
          byName.put(field.getFieldName(), field);
7504
        }
7505
      }
7506
 
7507
      /**
7508
       * Find the _Fields constant that matches fieldId, or null if its not found.
7509
       */
7510
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7511
        switch(fieldId) {
7512
          case 1: // AGENT_EMAIL_ID
7513
            return AGENT_EMAIL_ID;
7514
          case 2: // PASSWORD
7515
            return PASSWORD;
7516
          default:
7517
            return null;
7518
        }
3087 mandeep.dh 7519
      }
7520
 
7521
      /**
7522
       * Find the _Fields constant that matches fieldId, throwing an exception
7523
       * if it is not found.
7524
       */
7525
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7526
        _Fields fields = findByThriftId(fieldId);
7527
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7528
        return fields;
7529
      }
7530
 
7531
      /**
7532
       * Find the _Fields constant that matches name, or null if its not found.
7533
       */
7534
      public static _Fields findByName(String name) {
7535
        return byName.get(name);
7536
      }
7537
 
7538
      private final short _thriftId;
7539
      private final String _fieldName;
7540
 
7541
      _Fields(short thriftId, String fieldName) {
7542
        _thriftId = thriftId;
7543
        _fieldName = fieldName;
7544
      }
7545
 
7546
      public short getThriftFieldId() {
7547
        return _thriftId;
7548
      }
7549
 
7550
      public String getFieldName() {
7551
        return _fieldName;
7552
      }
7553
    }
7554
 
7555
    // isset id assignments
7556
 
3430 rajveer 7557
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 7558
    static {
3430 rajveer 7559
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7560
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7561
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7562
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7563
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7564
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7565
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
3087 mandeep.dh 7566
    }
7567
 
7568
    public updatePasswordForAgent_args() {
7569
    }
7570
 
7571
    public updatePasswordForAgent_args(
7572
      String agentEmailId,
7573
      String password)
7574
    {
7575
      this();
7576
      this.agentEmailId = agentEmailId;
7577
      this.password = password;
7578
    }
7579
 
7580
    /**
7581
     * Performs a deep copy on <i>other</i>.
7582
     */
7583
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
7584
      if (other.isSetAgentEmailId()) {
7585
        this.agentEmailId = other.agentEmailId;
7586
      }
7587
      if (other.isSetPassword()) {
7588
        this.password = other.password;
7589
      }
7590
    }
7591
 
7592
    public updatePasswordForAgent_args deepCopy() {
7593
      return new updatePasswordForAgent_args(this);
7594
    }
7595
 
3430 rajveer 7596
    @Override
7597
    public void clear() {
7598
      this.agentEmailId = null;
7599
      this.password = null;
3087 mandeep.dh 7600
    }
7601
 
7602
    public String getAgentEmailId() {
7603
      return this.agentEmailId;
7604
    }
7605
 
3430 rajveer 7606
    public void setAgentEmailId(String agentEmailId) {
3087 mandeep.dh 7607
      this.agentEmailId = agentEmailId;
7608
    }
7609
 
7610
    public void unsetAgentEmailId() {
7611
      this.agentEmailId = null;
7612
    }
7613
 
3430 rajveer 7614
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 7615
    public boolean isSetAgentEmailId() {
7616
      return this.agentEmailId != null;
7617
    }
7618
 
7619
    public void setAgentEmailIdIsSet(boolean value) {
7620
      if (!value) {
7621
        this.agentEmailId = null;
7622
      }
7623
    }
7624
 
7625
    public String getPassword() {
7626
      return this.password;
7627
    }
7628
 
3430 rajveer 7629
    public void setPassword(String password) {
3087 mandeep.dh 7630
      this.password = password;
7631
    }
7632
 
7633
    public void unsetPassword() {
7634
      this.password = null;
7635
    }
7636
 
3430 rajveer 7637
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 7638
    public boolean isSetPassword() {
7639
      return this.password != null;
7640
    }
7641
 
7642
    public void setPasswordIsSet(boolean value) {
7643
      if (!value) {
7644
        this.password = null;
7645
      }
7646
    }
7647
 
7648
    public void setFieldValue(_Fields field, Object value) {
7649
      switch (field) {
7650
      case AGENT_EMAIL_ID:
7651
        if (value == null) {
7652
          unsetAgentEmailId();
7653
        } else {
7654
          setAgentEmailId((String)value);
7655
        }
7656
        break;
7657
 
7658
      case PASSWORD:
7659
        if (value == null) {
7660
          unsetPassword();
7661
        } else {
7662
          setPassword((String)value);
7663
        }
7664
        break;
7665
 
7666
      }
7667
    }
7668
 
7669
    public Object getFieldValue(_Fields field) {
7670
      switch (field) {
7671
      case AGENT_EMAIL_ID:
7672
        return getAgentEmailId();
7673
 
7674
      case PASSWORD:
7675
        return getPassword();
7676
 
7677
      }
7678
      throw new IllegalStateException();
7679
    }
7680
 
3430 rajveer 7681
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7682
    public boolean isSet(_Fields field) {
7683
      if (field == null) {
7684
        throw new IllegalArgumentException();
7685
      }
3087 mandeep.dh 7686
 
7687
      switch (field) {
7688
      case AGENT_EMAIL_ID:
7689
        return isSetAgentEmailId();
7690
      case PASSWORD:
7691
        return isSetPassword();
7692
      }
7693
      throw new IllegalStateException();
7694
    }
7695
 
7696
    @Override
7697
    public boolean equals(Object that) {
7698
      if (that == null)
7699
        return false;
7700
      if (that instanceof updatePasswordForAgent_args)
7701
        return this.equals((updatePasswordForAgent_args)that);
7702
      return false;
7703
    }
7704
 
7705
    public boolean equals(updatePasswordForAgent_args that) {
7706
      if (that == null)
7707
        return false;
7708
 
7709
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
7710
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
7711
      if (this_present_agentEmailId || that_present_agentEmailId) {
7712
        if (!(this_present_agentEmailId && that_present_agentEmailId))
7713
          return false;
7714
        if (!this.agentEmailId.equals(that.agentEmailId))
7715
          return false;
7716
      }
7717
 
7718
      boolean this_present_password = true && this.isSetPassword();
7719
      boolean that_present_password = true && that.isSetPassword();
7720
      if (this_present_password || that_present_password) {
7721
        if (!(this_present_password && that_present_password))
7722
          return false;
7723
        if (!this.password.equals(that.password))
7724
          return false;
7725
      }
7726
 
7727
      return true;
7728
    }
7729
 
7730
    @Override
7731
    public int hashCode() {
7732
      return 0;
7733
    }
7734
 
7735
    public int compareTo(updatePasswordForAgent_args other) {
7736
      if (!getClass().equals(other.getClass())) {
7737
        return getClass().getName().compareTo(other.getClass().getName());
7738
      }
7739
 
7740
      int lastComparison = 0;
7741
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
7742
 
3430 rajveer 7743
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
3087 mandeep.dh 7744
      if (lastComparison != 0) {
7745
        return lastComparison;
7746
      }
3430 rajveer 7747
      if (isSetAgentEmailId()) {
7748
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
7749
        if (lastComparison != 0) {
7750
          return lastComparison;
7751
        }
3087 mandeep.dh 7752
      }
3430 rajveer 7753
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
3087 mandeep.dh 7754
      if (lastComparison != 0) {
7755
        return lastComparison;
7756
      }
3430 rajveer 7757
      if (isSetPassword()) {
7758
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
7759
        if (lastComparison != 0) {
7760
          return lastComparison;
7761
        }
3087 mandeep.dh 7762
      }
7763
      return 0;
7764
    }
7765
 
3430 rajveer 7766
    public _Fields fieldForId(int fieldId) {
7767
      return _Fields.findByThriftId(fieldId);
7768
    }
7769
 
7770
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7771
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 7772
      iprot.readStructBegin();
7773
      while (true)
7774
      {
7775
        field = iprot.readFieldBegin();
3430 rajveer 7776
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 7777
          break;
7778
        }
3430 rajveer 7779
        switch (field.id) {
7780
          case 1: // AGENT_EMAIL_ID
7781
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7782
              this.agentEmailId = iprot.readString();
7783
            } else { 
7784
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7785
            }
7786
            break;
7787
          case 2: // PASSWORD
7788
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7789
              this.password = iprot.readString();
7790
            } else { 
7791
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7792
            }
7793
            break;
7794
          default:
7795
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 7796
        }
3430 rajveer 7797
        iprot.readFieldEnd();
3087 mandeep.dh 7798
      }
7799
      iprot.readStructEnd();
7800
      validate();
7801
    }
7802
 
3430 rajveer 7803
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 7804
      validate();
7805
 
7806
      oprot.writeStructBegin(STRUCT_DESC);
7807
      if (this.agentEmailId != null) {
7808
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
7809
        oprot.writeString(this.agentEmailId);
7810
        oprot.writeFieldEnd();
7811
      }
7812
      if (this.password != null) {
7813
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
7814
        oprot.writeString(this.password);
7815
        oprot.writeFieldEnd();
7816
      }
7817
      oprot.writeFieldStop();
7818
      oprot.writeStructEnd();
7819
    }
7820
 
7821
    @Override
7822
    public String toString() {
7823
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
7824
      boolean first = true;
7825
 
7826
      sb.append("agentEmailId:");
7827
      if (this.agentEmailId == null) {
7828
        sb.append("null");
7829
      } else {
7830
        sb.append(this.agentEmailId);
7831
      }
7832
      first = false;
7833
      if (!first) sb.append(", ");
7834
      sb.append("password:");
7835
      if (this.password == null) {
7836
        sb.append("null");
7837
      } else {
7838
        sb.append(this.password);
7839
      }
7840
      first = false;
7841
      sb.append(")");
7842
      return sb.toString();
7843
    }
7844
 
3430 rajveer 7845
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 7846
      // check for required fields
7847
    }
7848
 
3430 rajveer 7849
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7850
      try {
7851
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7852
      } catch (org.apache.thrift.TException te) {
7853
        throw new java.io.IOException(te);
7854
      }
7855
    }
7856
 
7857
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7858
      try {
7859
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7860
      } catch (org.apache.thrift.TException te) {
7861
        throw new java.io.IOException(te);
7862
      }
7863
    }
7864
 
3087 mandeep.dh 7865
  }
7866
 
3430 rajveer 7867
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
7868
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
3087 mandeep.dh 7869
 
7870
 
7871
 
7872
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7873
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 7874
;
7875
 
7876
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7877
 
7878
      static {
7879
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7880
          byName.put(field.getFieldName(), field);
7881
        }
7882
      }
7883
 
7884
      /**
7885
       * Find the _Fields constant that matches fieldId, or null if its not found.
7886
       */
7887
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7888
        switch(fieldId) {
7889
          default:
7890
            return null;
7891
        }
3087 mandeep.dh 7892
      }
7893
 
7894
      /**
7895
       * Find the _Fields constant that matches fieldId, throwing an exception
7896
       * if it is not found.
7897
       */
7898
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7899
        _Fields fields = findByThriftId(fieldId);
7900
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7901
        return fields;
7902
      }
7903
 
7904
      /**
7905
       * Find the _Fields constant that matches name, or null if its not found.
7906
       */
7907
      public static _Fields findByName(String name) {
7908
        return byName.get(name);
7909
      }
7910
 
7911
      private final short _thriftId;
7912
      private final String _fieldName;
7913
 
7914
      _Fields(short thriftId, String fieldName) {
7915
        _thriftId = thriftId;
7916
        _fieldName = fieldName;
7917
      }
7918
 
7919
      public short getThriftFieldId() {
7920
        return _thriftId;
7921
      }
7922
 
7923
      public String getFieldName() {
7924
        return _fieldName;
7925
      }
7926
    }
3430 rajveer 7927
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 7928
    static {
3430 rajveer 7929
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7930
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7931
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
3087 mandeep.dh 7932
    }
7933
 
7934
    public updatePasswordForAgent_result() {
7935
    }
7936
 
7937
    /**
7938
     * Performs a deep copy on <i>other</i>.
7939
     */
7940
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
7941
    }
7942
 
7943
    public updatePasswordForAgent_result deepCopy() {
7944
      return new updatePasswordForAgent_result(this);
7945
    }
7946
 
3430 rajveer 7947
    @Override
7948
    public void clear() {
3087 mandeep.dh 7949
    }
7950
 
7951
    public void setFieldValue(_Fields field, Object value) {
7952
      switch (field) {
7953
      }
7954
    }
7955
 
7956
    public Object getFieldValue(_Fields field) {
7957
      switch (field) {
7958
      }
7959
      throw new IllegalStateException();
7960
    }
7961
 
3430 rajveer 7962
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7963
    public boolean isSet(_Fields field) {
7964
      if (field == null) {
7965
        throw new IllegalArgumentException();
7966
      }
3087 mandeep.dh 7967
 
7968
      switch (field) {
7969
      }
7970
      throw new IllegalStateException();
7971
    }
7972
 
7973
    @Override
7974
    public boolean equals(Object that) {
7975
      if (that == null)
7976
        return false;
7977
      if (that instanceof updatePasswordForAgent_result)
7978
        return this.equals((updatePasswordForAgent_result)that);
7979
      return false;
7980
    }
7981
 
7982
    public boolean equals(updatePasswordForAgent_result that) {
7983
      if (that == null)
7984
        return false;
7985
 
7986
      return true;
7987
    }
7988
 
7989
    @Override
7990
    public int hashCode() {
7991
      return 0;
7992
    }
7993
 
7994
    public int compareTo(updatePasswordForAgent_result other) {
7995
      if (!getClass().equals(other.getClass())) {
7996
        return getClass().getName().compareTo(other.getClass().getName());
7997
      }
7998
 
7999
      int lastComparison = 0;
8000
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
8001
 
8002
      return 0;
8003
    }
8004
 
3430 rajveer 8005
    public _Fields fieldForId(int fieldId) {
8006
      return _Fields.findByThriftId(fieldId);
8007
    }
8008
 
8009
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8010
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8011
      iprot.readStructBegin();
8012
      while (true)
8013
      {
8014
        field = iprot.readFieldBegin();
3430 rajveer 8015
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8016
          break;
8017
        }
3430 rajveer 8018
        switch (field.id) {
8019
          default:
8020
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8021
        }
3430 rajveer 8022
        iprot.readFieldEnd();
3087 mandeep.dh 8023
      }
8024
      iprot.readStructEnd();
8025
      validate();
8026
    }
8027
 
3430 rajveer 8028
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8029
      oprot.writeStructBegin(STRUCT_DESC);
8030
 
8031
      oprot.writeFieldStop();
8032
      oprot.writeStructEnd();
8033
    }
8034
 
8035
    @Override
8036
    public String toString() {
8037
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
8038
      boolean first = true;
8039
 
8040
      sb.append(")");
8041
      return sb.toString();
8042
    }
8043
 
3430 rajveer 8044
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8045
      // check for required fields
8046
    }
8047
 
3430 rajveer 8048
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8049
      try {
8050
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8051
      } catch (org.apache.thrift.TException te) {
8052
        throw new java.io.IOException(te);
8053
      }
8054
    }
8055
 
8056
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8057
      try {
8058
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8059
      } catch (org.apache.thrift.TException te) {
8060
        throw new java.io.IOException(te);
8061
      }
8062
    }
8063
 
3087 mandeep.dh 8064
  }
8065
 
3430 rajveer 8066
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
8067
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
3087 mandeep.dh 8068
 
3430 rajveer 8069
    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 8070
 
3430 rajveer 8071
    private String agentEmailId; // required
3087 mandeep.dh 8072
 
8073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8074
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8075
      AGENT_EMAIL_ID((short)1, "agentEmailId");
8076
 
8077
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8078
 
8079
      static {
8080
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8081
          byName.put(field.getFieldName(), field);
8082
        }
8083
      }
8084
 
8085
      /**
8086
       * Find the _Fields constant that matches fieldId, or null if its not found.
8087
       */
8088
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8089
        switch(fieldId) {
8090
          case 1: // AGENT_EMAIL_ID
8091
            return AGENT_EMAIL_ID;
8092
          default:
8093
            return null;
8094
        }
3087 mandeep.dh 8095
      }
8096
 
8097
      /**
8098
       * Find the _Fields constant that matches fieldId, throwing an exception
8099
       * if it is not found.
8100
       */
8101
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8102
        _Fields fields = findByThriftId(fieldId);
8103
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8104
        return fields;
8105
      }
8106
 
8107
      /**
8108
       * Find the _Fields constant that matches name, or null if its not found.
8109
       */
8110
      public static _Fields findByName(String name) {
8111
        return byName.get(name);
8112
      }
8113
 
8114
      private final short _thriftId;
8115
      private final String _fieldName;
8116
 
8117
      _Fields(short thriftId, String fieldName) {
8118
        _thriftId = thriftId;
8119
        _fieldName = fieldName;
8120
      }
8121
 
8122
      public short getThriftFieldId() {
8123
        return _thriftId;
8124
      }
8125
 
8126
      public String getFieldName() {
8127
        return _fieldName;
8128
      }
8129
    }
8130
 
8131
    // isset id assignments
8132
 
3430 rajveer 8133
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8134
    static {
3430 rajveer 8135
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8136
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8137
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8138
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8139
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
3087 mandeep.dh 8140
    }
8141
 
8142
    public getRoleNamesForAgent_args() {
8143
    }
8144
 
8145
    public getRoleNamesForAgent_args(
8146
      String agentEmailId)
8147
    {
8148
      this();
8149
      this.agentEmailId = agentEmailId;
8150
    }
8151
 
8152
    /**
8153
     * Performs a deep copy on <i>other</i>.
8154
     */
8155
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
8156
      if (other.isSetAgentEmailId()) {
8157
        this.agentEmailId = other.agentEmailId;
8158
      }
8159
    }
8160
 
8161
    public getRoleNamesForAgent_args deepCopy() {
8162
      return new getRoleNamesForAgent_args(this);
8163
    }
8164
 
3430 rajveer 8165
    @Override
8166
    public void clear() {
8167
      this.agentEmailId = null;
3087 mandeep.dh 8168
    }
8169
 
8170
    public String getAgentEmailId() {
8171
      return this.agentEmailId;
8172
    }
8173
 
3430 rajveer 8174
    public void setAgentEmailId(String agentEmailId) {
3087 mandeep.dh 8175
      this.agentEmailId = agentEmailId;
8176
    }
8177
 
8178
    public void unsetAgentEmailId() {
8179
      this.agentEmailId = null;
8180
    }
8181
 
3430 rajveer 8182
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8183
    public boolean isSetAgentEmailId() {
8184
      return this.agentEmailId != null;
8185
    }
8186
 
8187
    public void setAgentEmailIdIsSet(boolean value) {
8188
      if (!value) {
8189
        this.agentEmailId = null;
8190
      }
8191
    }
8192
 
8193
    public void setFieldValue(_Fields field, Object value) {
8194
      switch (field) {
8195
      case AGENT_EMAIL_ID:
8196
        if (value == null) {
8197
          unsetAgentEmailId();
8198
        } else {
8199
          setAgentEmailId((String)value);
8200
        }
8201
        break;
8202
 
8203
      }
8204
    }
8205
 
8206
    public Object getFieldValue(_Fields field) {
8207
      switch (field) {
8208
      case AGENT_EMAIL_ID:
8209
        return getAgentEmailId();
8210
 
8211
      }
8212
      throw new IllegalStateException();
8213
    }
8214
 
3430 rajveer 8215
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8216
    public boolean isSet(_Fields field) {
8217
      if (field == null) {
8218
        throw new IllegalArgumentException();
8219
      }
3087 mandeep.dh 8220
 
8221
      switch (field) {
8222
      case AGENT_EMAIL_ID:
8223
        return isSetAgentEmailId();
8224
      }
8225
      throw new IllegalStateException();
8226
    }
8227
 
8228
    @Override
8229
    public boolean equals(Object that) {
8230
      if (that == null)
8231
        return false;
8232
      if (that instanceof getRoleNamesForAgent_args)
8233
        return this.equals((getRoleNamesForAgent_args)that);
8234
      return false;
8235
    }
8236
 
8237
    public boolean equals(getRoleNamesForAgent_args that) {
8238
      if (that == null)
8239
        return false;
8240
 
8241
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
8242
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
8243
      if (this_present_agentEmailId || that_present_agentEmailId) {
8244
        if (!(this_present_agentEmailId && that_present_agentEmailId))
8245
          return false;
8246
        if (!this.agentEmailId.equals(that.agentEmailId))
8247
          return false;
8248
      }
8249
 
8250
      return true;
8251
    }
8252
 
8253
    @Override
8254
    public int hashCode() {
8255
      return 0;
8256
    }
8257
 
8258
    public int compareTo(getRoleNamesForAgent_args other) {
8259
      if (!getClass().equals(other.getClass())) {
8260
        return getClass().getName().compareTo(other.getClass().getName());
8261
      }
8262
 
8263
      int lastComparison = 0;
8264
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
8265
 
3430 rajveer 8266
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
3087 mandeep.dh 8267
      if (lastComparison != 0) {
8268
        return lastComparison;
8269
      }
3430 rajveer 8270
      if (isSetAgentEmailId()) {
8271
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
8272
        if (lastComparison != 0) {
8273
          return lastComparison;
8274
        }
3087 mandeep.dh 8275
      }
8276
      return 0;
8277
    }
8278
 
3430 rajveer 8279
    public _Fields fieldForId(int fieldId) {
8280
      return _Fields.findByThriftId(fieldId);
8281
    }
8282
 
8283
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8284
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8285
      iprot.readStructBegin();
8286
      while (true)
8287
      {
8288
        field = iprot.readFieldBegin();
3430 rajveer 8289
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8290
          break;
8291
        }
3430 rajveer 8292
        switch (field.id) {
8293
          case 1: // AGENT_EMAIL_ID
8294
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8295
              this.agentEmailId = iprot.readString();
8296
            } else { 
8297
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8298
            }
8299
            break;
8300
          default:
8301
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8302
        }
3430 rajveer 8303
        iprot.readFieldEnd();
3087 mandeep.dh 8304
      }
8305
      iprot.readStructEnd();
8306
      validate();
8307
    }
8308
 
3430 rajveer 8309
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8310
      validate();
8311
 
8312
      oprot.writeStructBegin(STRUCT_DESC);
8313
      if (this.agentEmailId != null) {
8314
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
8315
        oprot.writeString(this.agentEmailId);
8316
        oprot.writeFieldEnd();
8317
      }
8318
      oprot.writeFieldStop();
8319
      oprot.writeStructEnd();
8320
    }
8321
 
8322
    @Override
8323
    public String toString() {
8324
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
8325
      boolean first = true;
8326
 
8327
      sb.append("agentEmailId:");
8328
      if (this.agentEmailId == null) {
8329
        sb.append("null");
8330
      } else {
8331
        sb.append(this.agentEmailId);
8332
      }
8333
      first = false;
8334
      sb.append(")");
8335
      return sb.toString();
8336
    }
8337
 
3430 rajveer 8338
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8339
      // check for required fields
8340
    }
8341
 
3430 rajveer 8342
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8343
      try {
8344
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8345
      } catch (org.apache.thrift.TException te) {
8346
        throw new java.io.IOException(te);
8347
      }
8348
    }
8349
 
8350
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8351
      try {
8352
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8353
      } catch (org.apache.thrift.TException te) {
8354
        throw new java.io.IOException(te);
8355
      }
8356
    }
8357
 
3087 mandeep.dh 8358
  }
8359
 
3430 rajveer 8360
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
8361
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
3087 mandeep.dh 8362
 
3430 rajveer 8363
    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 8364
 
3430 rajveer 8365
    private List<String> success; // required
3087 mandeep.dh 8366
 
8367
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8368
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8369
      SUCCESS((short)0, "success");
8370
 
8371
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8372
 
8373
      static {
8374
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8375
          byName.put(field.getFieldName(), field);
8376
        }
8377
      }
8378
 
8379
      /**
8380
       * Find the _Fields constant that matches fieldId, or null if its not found.
8381
       */
8382
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8383
        switch(fieldId) {
8384
          case 0: // SUCCESS
8385
            return SUCCESS;
8386
          default:
8387
            return null;
8388
        }
3087 mandeep.dh 8389
      }
8390
 
8391
      /**
8392
       * Find the _Fields constant that matches fieldId, throwing an exception
8393
       * if it is not found.
8394
       */
8395
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8396
        _Fields fields = findByThriftId(fieldId);
8397
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8398
        return fields;
8399
      }
8400
 
8401
      /**
8402
       * Find the _Fields constant that matches name, or null if its not found.
8403
       */
8404
      public static _Fields findByName(String name) {
8405
        return byName.get(name);
8406
      }
8407
 
8408
      private final short _thriftId;
8409
      private final String _fieldName;
8410
 
8411
      _Fields(short thriftId, String fieldName) {
8412
        _thriftId = thriftId;
8413
        _fieldName = fieldName;
8414
      }
8415
 
8416
      public short getThriftFieldId() {
8417
        return _thriftId;
8418
      }
8419
 
8420
      public String getFieldName() {
8421
        return _fieldName;
8422
      }
8423
    }
8424
 
8425
    // isset id assignments
8426
 
3430 rajveer 8427
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8428
    static {
3430 rajveer 8429
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8430
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8431
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8432
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8433
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8434
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
3087 mandeep.dh 8435
    }
8436
 
8437
    public getRoleNamesForAgent_result() {
8438
    }
8439
 
8440
    public getRoleNamesForAgent_result(
8441
      List<String> success)
8442
    {
8443
      this();
8444
      this.success = success;
8445
    }
8446
 
8447
    /**
8448
     * Performs a deep copy on <i>other</i>.
8449
     */
8450
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
8451
      if (other.isSetSuccess()) {
8452
        List<String> __this__success = new ArrayList<String>();
8453
        for (String other_element : other.success) {
8454
          __this__success.add(other_element);
8455
        }
8456
        this.success = __this__success;
8457
      }
8458
    }
8459
 
8460
    public getRoleNamesForAgent_result deepCopy() {
8461
      return new getRoleNamesForAgent_result(this);
8462
    }
8463
 
3430 rajveer 8464
    @Override
8465
    public void clear() {
8466
      this.success = null;
3087 mandeep.dh 8467
    }
8468
 
8469
    public int getSuccessSize() {
8470
      return (this.success == null) ? 0 : this.success.size();
8471
    }
8472
 
8473
    public java.util.Iterator<String> getSuccessIterator() {
8474
      return (this.success == null) ? null : this.success.iterator();
8475
    }
8476
 
8477
    public void addToSuccess(String elem) {
8478
      if (this.success == null) {
8479
        this.success = new ArrayList<String>();
8480
      }
8481
      this.success.add(elem);
8482
    }
8483
 
8484
    public List<String> getSuccess() {
8485
      return this.success;
8486
    }
8487
 
3430 rajveer 8488
    public void setSuccess(List<String> success) {
3087 mandeep.dh 8489
      this.success = success;
8490
    }
8491
 
8492
    public void unsetSuccess() {
8493
      this.success = null;
8494
    }
8495
 
3430 rajveer 8496
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8497
    public boolean isSetSuccess() {
8498
      return this.success != null;
8499
    }
8500
 
8501
    public void setSuccessIsSet(boolean value) {
8502
      if (!value) {
8503
        this.success = null;
8504
      }
8505
    }
8506
 
8507
    public void setFieldValue(_Fields field, Object value) {
8508
      switch (field) {
8509
      case SUCCESS:
8510
        if (value == null) {
8511
          unsetSuccess();
8512
        } else {
8513
          setSuccess((List<String>)value);
8514
        }
8515
        break;
8516
 
8517
      }
8518
    }
8519
 
8520
    public Object getFieldValue(_Fields field) {
8521
      switch (field) {
8522
      case SUCCESS:
8523
        return getSuccess();
8524
 
8525
      }
8526
      throw new IllegalStateException();
8527
    }
8528
 
3430 rajveer 8529
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8530
    public boolean isSet(_Fields field) {
8531
      if (field == null) {
8532
        throw new IllegalArgumentException();
8533
      }
3087 mandeep.dh 8534
 
8535
      switch (field) {
8536
      case SUCCESS:
8537
        return isSetSuccess();
8538
      }
8539
      throw new IllegalStateException();
8540
    }
8541
 
8542
    @Override
8543
    public boolean equals(Object that) {
8544
      if (that == null)
8545
        return false;
8546
      if (that instanceof getRoleNamesForAgent_result)
8547
        return this.equals((getRoleNamesForAgent_result)that);
8548
      return false;
8549
    }
8550
 
8551
    public boolean equals(getRoleNamesForAgent_result that) {
8552
      if (that == null)
8553
        return false;
8554
 
8555
      boolean this_present_success = true && this.isSetSuccess();
8556
      boolean that_present_success = true && that.isSetSuccess();
8557
      if (this_present_success || that_present_success) {
8558
        if (!(this_present_success && that_present_success))
8559
          return false;
8560
        if (!this.success.equals(that.success))
8561
          return false;
8562
      }
8563
 
8564
      return true;
8565
    }
8566
 
8567
    @Override
8568
    public int hashCode() {
8569
      return 0;
8570
    }
8571
 
8572
    public int compareTo(getRoleNamesForAgent_result other) {
8573
      if (!getClass().equals(other.getClass())) {
8574
        return getClass().getName().compareTo(other.getClass().getName());
8575
      }
8576
 
8577
      int lastComparison = 0;
8578
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
8579
 
3430 rajveer 8580
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 8581
      if (lastComparison != 0) {
8582
        return lastComparison;
8583
      }
3430 rajveer 8584
      if (isSetSuccess()) {
8585
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8586
        if (lastComparison != 0) {
8587
          return lastComparison;
8588
        }
3087 mandeep.dh 8589
      }
8590
      return 0;
8591
    }
8592
 
3430 rajveer 8593
    public _Fields fieldForId(int fieldId) {
8594
      return _Fields.findByThriftId(fieldId);
8595
    }
8596
 
8597
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8598
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8599
      iprot.readStructBegin();
8600
      while (true)
8601
      {
8602
        field = iprot.readFieldBegin();
3430 rajveer 8603
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8604
          break;
8605
        }
3430 rajveer 8606
        switch (field.id) {
8607
          case 0: // SUCCESS
8608
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8609
              {
5287 amar.kumar 8610
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
8611
                this.success = new ArrayList<String>(_list32.size);
8612
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
3087 mandeep.dh 8613
                {
5287 amar.kumar 8614
                  String _elem34; // required
8615
                  _elem34 = iprot.readString();
8616
                  this.success.add(_elem34);
3087 mandeep.dh 8617
                }
3430 rajveer 8618
                iprot.readListEnd();
3087 mandeep.dh 8619
              }
3430 rajveer 8620
            } else { 
8621
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8622
            }
8623
            break;
8624
          default:
8625
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8626
        }
3430 rajveer 8627
        iprot.readFieldEnd();
3087 mandeep.dh 8628
      }
8629
      iprot.readStructEnd();
8630
      validate();
8631
    }
8632
 
3430 rajveer 8633
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8634
      oprot.writeStructBegin(STRUCT_DESC);
8635
 
8636
      if (this.isSetSuccess()) {
8637
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8638
        {
3430 rajveer 8639
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5287 amar.kumar 8640
          for (String _iter35 : this.success)
3087 mandeep.dh 8641
          {
5287 amar.kumar 8642
            oprot.writeString(_iter35);
3087 mandeep.dh 8643
          }
8644
          oprot.writeListEnd();
8645
        }
8646
        oprot.writeFieldEnd();
8647
      }
8648
      oprot.writeFieldStop();
8649
      oprot.writeStructEnd();
8650
    }
8651
 
8652
    @Override
8653
    public String toString() {
8654
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
8655
      boolean first = true;
8656
 
8657
      sb.append("success:");
8658
      if (this.success == null) {
8659
        sb.append("null");
8660
      } else {
8661
        sb.append(this.success);
8662
      }
8663
      first = false;
8664
      sb.append(")");
8665
      return sb.toString();
8666
    }
8667
 
3430 rajveer 8668
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8669
      // check for required fields
8670
    }
8671
 
3430 rajveer 8672
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8673
      try {
8674
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8675
      } catch (org.apache.thrift.TException te) {
8676
        throw new java.io.IOException(te);
8677
      }
8678
    }
8679
 
8680
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8681
      try {
8682
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8683
      } catch (org.apache.thrift.TException te) {
8684
        throw new java.io.IOException(te);
8685
      }
8686
    }
8687
 
3087 mandeep.dh 8688
  }
8689
 
3430 rajveer 8690
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
8691
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
3087 mandeep.dh 8692
 
3430 rajveer 8693
    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 8694
 
3430 rajveer 8695
    private String roleName; // required
3087 mandeep.dh 8696
 
8697
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8698
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8699
      ROLE_NAME((short)1, "roleName");
8700
 
8701
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8702
 
8703
      static {
8704
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8705
          byName.put(field.getFieldName(), field);
8706
        }
8707
      }
8708
 
8709
      /**
8710
       * Find the _Fields constant that matches fieldId, or null if its not found.
8711
       */
8712
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8713
        switch(fieldId) {
8714
          case 1: // ROLE_NAME
8715
            return ROLE_NAME;
8716
          default:
8717
            return null;
8718
        }
3087 mandeep.dh 8719
      }
8720
 
8721
      /**
8722
       * Find the _Fields constant that matches fieldId, throwing an exception
8723
       * if it is not found.
8724
       */
8725
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8726
        _Fields fields = findByThriftId(fieldId);
8727
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8728
        return fields;
8729
      }
8730
 
8731
      /**
8732
       * Find the _Fields constant that matches name, or null if its not found.
8733
       */
8734
      public static _Fields findByName(String name) {
8735
        return byName.get(name);
8736
      }
8737
 
8738
      private final short _thriftId;
8739
      private final String _fieldName;
8740
 
8741
      _Fields(short thriftId, String fieldName) {
8742
        _thriftId = thriftId;
8743
        _fieldName = fieldName;
8744
      }
8745
 
8746
      public short getThriftFieldId() {
8747
        return _thriftId;
8748
      }
8749
 
8750
      public String getFieldName() {
8751
        return _fieldName;
8752
      }
8753
    }
8754
 
8755
    // isset id assignments
8756
 
3430 rajveer 8757
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8758
    static {
3430 rajveer 8759
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8760
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8761
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8762
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8763
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
3087 mandeep.dh 8764
    }
8765
 
8766
    public getPermissionsForRoleName_args() {
8767
    }
8768
 
8769
    public getPermissionsForRoleName_args(
8770
      String roleName)
8771
    {
8772
      this();
8773
      this.roleName = roleName;
8774
    }
8775
 
8776
    /**
8777
     * Performs a deep copy on <i>other</i>.
8778
     */
8779
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
8780
      if (other.isSetRoleName()) {
8781
        this.roleName = other.roleName;
8782
      }
8783
    }
8784
 
8785
    public getPermissionsForRoleName_args deepCopy() {
8786
      return new getPermissionsForRoleName_args(this);
8787
    }
8788
 
3430 rajveer 8789
    @Override
8790
    public void clear() {
8791
      this.roleName = null;
3087 mandeep.dh 8792
    }
8793
 
8794
    public String getRoleName() {
8795
      return this.roleName;
8796
    }
8797
 
3430 rajveer 8798
    public void setRoleName(String roleName) {
3087 mandeep.dh 8799
      this.roleName = roleName;
8800
    }
8801
 
8802
    public void unsetRoleName() {
8803
      this.roleName = null;
8804
    }
8805
 
3430 rajveer 8806
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8807
    public boolean isSetRoleName() {
8808
      return this.roleName != null;
8809
    }
8810
 
8811
    public void setRoleNameIsSet(boolean value) {
8812
      if (!value) {
8813
        this.roleName = null;
8814
      }
8815
    }
8816
 
8817
    public void setFieldValue(_Fields field, Object value) {
8818
      switch (field) {
8819
      case ROLE_NAME:
8820
        if (value == null) {
8821
          unsetRoleName();
8822
        } else {
8823
          setRoleName((String)value);
8824
        }
8825
        break;
8826
 
8827
      }
8828
    }
8829
 
8830
    public Object getFieldValue(_Fields field) {
8831
      switch (field) {
8832
      case ROLE_NAME:
8833
        return getRoleName();
8834
 
8835
      }
8836
      throw new IllegalStateException();
8837
    }
8838
 
3430 rajveer 8839
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8840
    public boolean isSet(_Fields field) {
8841
      if (field == null) {
8842
        throw new IllegalArgumentException();
8843
      }
3087 mandeep.dh 8844
 
8845
      switch (field) {
8846
      case ROLE_NAME:
8847
        return isSetRoleName();
8848
      }
8849
      throw new IllegalStateException();
8850
    }
8851
 
8852
    @Override
8853
    public boolean equals(Object that) {
8854
      if (that == null)
8855
        return false;
8856
      if (that instanceof getPermissionsForRoleName_args)
8857
        return this.equals((getPermissionsForRoleName_args)that);
8858
      return false;
8859
    }
8860
 
8861
    public boolean equals(getPermissionsForRoleName_args that) {
8862
      if (that == null)
8863
        return false;
8864
 
8865
      boolean this_present_roleName = true && this.isSetRoleName();
8866
      boolean that_present_roleName = true && that.isSetRoleName();
8867
      if (this_present_roleName || that_present_roleName) {
8868
        if (!(this_present_roleName && that_present_roleName))
8869
          return false;
8870
        if (!this.roleName.equals(that.roleName))
8871
          return false;
8872
      }
8873
 
8874
      return true;
8875
    }
8876
 
8877
    @Override
8878
    public int hashCode() {
8879
      return 0;
8880
    }
8881
 
8882
    public int compareTo(getPermissionsForRoleName_args other) {
8883
      if (!getClass().equals(other.getClass())) {
8884
        return getClass().getName().compareTo(other.getClass().getName());
8885
      }
8886
 
8887
      int lastComparison = 0;
8888
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
8889
 
3430 rajveer 8890
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
3087 mandeep.dh 8891
      if (lastComparison != 0) {
8892
        return lastComparison;
8893
      }
3430 rajveer 8894
      if (isSetRoleName()) {
8895
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
8896
        if (lastComparison != 0) {
8897
          return lastComparison;
8898
        }
3087 mandeep.dh 8899
      }
8900
      return 0;
8901
    }
8902
 
3430 rajveer 8903
    public _Fields fieldForId(int fieldId) {
8904
      return _Fields.findByThriftId(fieldId);
8905
    }
8906
 
8907
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8908
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8909
      iprot.readStructBegin();
8910
      while (true)
8911
      {
8912
        field = iprot.readFieldBegin();
3430 rajveer 8913
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8914
          break;
8915
        }
3430 rajveer 8916
        switch (field.id) {
8917
          case 1: // ROLE_NAME
8918
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8919
              this.roleName = iprot.readString();
8920
            } else { 
8921
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8922
            }
8923
            break;
8924
          default:
8925
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8926
        }
3430 rajveer 8927
        iprot.readFieldEnd();
3087 mandeep.dh 8928
      }
8929
      iprot.readStructEnd();
8930
      validate();
8931
    }
8932
 
3430 rajveer 8933
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8934
      validate();
8935
 
8936
      oprot.writeStructBegin(STRUCT_DESC);
8937
      if (this.roleName != null) {
8938
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
8939
        oprot.writeString(this.roleName);
8940
        oprot.writeFieldEnd();
8941
      }
8942
      oprot.writeFieldStop();
8943
      oprot.writeStructEnd();
8944
    }
8945
 
8946
    @Override
8947
    public String toString() {
8948
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
8949
      boolean first = true;
8950
 
8951
      sb.append("roleName:");
8952
      if (this.roleName == null) {
8953
        sb.append("null");
8954
      } else {
8955
        sb.append(this.roleName);
8956
      }
8957
      first = false;
8958
      sb.append(")");
8959
      return sb.toString();
8960
    }
8961
 
3430 rajveer 8962
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8963
      // check for required fields
8964
    }
8965
 
3430 rajveer 8966
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8967
      try {
8968
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8969
      } catch (org.apache.thrift.TException te) {
8970
        throw new java.io.IOException(te);
8971
      }
8972
    }
8973
 
8974
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8975
      try {
8976
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8977
      } catch (org.apache.thrift.TException te) {
8978
        throw new java.io.IOException(te);
8979
      }
8980
    }
8981
 
3087 mandeep.dh 8982
  }
8983
 
3430 rajveer 8984
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
8985
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
3087 mandeep.dh 8986
 
3430 rajveer 8987
    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 8988
 
3430 rajveer 8989
    private List<String> success; // required
3087 mandeep.dh 8990
 
8991
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8992
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8993
      SUCCESS((short)0, "success");
8994
 
8995
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8996
 
8997
      static {
8998
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8999
          byName.put(field.getFieldName(), field);
9000
        }
9001
      }
9002
 
9003
      /**
9004
       * Find the _Fields constant that matches fieldId, or null if its not found.
9005
       */
9006
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9007
        switch(fieldId) {
9008
          case 0: // SUCCESS
9009
            return SUCCESS;
9010
          default:
9011
            return null;
9012
        }
3087 mandeep.dh 9013
      }
9014
 
9015
      /**
9016
       * Find the _Fields constant that matches fieldId, throwing an exception
9017
       * if it is not found.
9018
       */
9019
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9020
        _Fields fields = findByThriftId(fieldId);
9021
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9022
        return fields;
9023
      }
9024
 
9025
      /**
9026
       * Find the _Fields constant that matches name, or null if its not found.
9027
       */
9028
      public static _Fields findByName(String name) {
9029
        return byName.get(name);
9030
      }
9031
 
9032
      private final short _thriftId;
9033
      private final String _fieldName;
9034
 
9035
      _Fields(short thriftId, String fieldName) {
9036
        _thriftId = thriftId;
9037
        _fieldName = fieldName;
9038
      }
9039
 
9040
      public short getThriftFieldId() {
9041
        return _thriftId;
9042
      }
9043
 
9044
      public String getFieldName() {
9045
        return _fieldName;
9046
      }
9047
    }
9048
 
9049
    // isset id assignments
9050
 
3430 rajveer 9051
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 9052
    static {
3430 rajveer 9053
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9054
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9055
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9056
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9057
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9058
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
3087 mandeep.dh 9059
    }
9060
 
9061
    public getPermissionsForRoleName_result() {
9062
    }
9063
 
9064
    public getPermissionsForRoleName_result(
9065
      List<String> success)
9066
    {
9067
      this();
9068
      this.success = success;
9069
    }
9070
 
9071
    /**
9072
     * Performs a deep copy on <i>other</i>.
9073
     */
9074
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
9075
      if (other.isSetSuccess()) {
9076
        List<String> __this__success = new ArrayList<String>();
9077
        for (String other_element : other.success) {
9078
          __this__success.add(other_element);
9079
        }
9080
        this.success = __this__success;
9081
      }
9082
    }
9083
 
9084
    public getPermissionsForRoleName_result deepCopy() {
9085
      return new getPermissionsForRoleName_result(this);
9086
    }
9087
 
3430 rajveer 9088
    @Override
9089
    public void clear() {
9090
      this.success = null;
3087 mandeep.dh 9091
    }
9092
 
9093
    public int getSuccessSize() {
9094
      return (this.success == null) ? 0 : this.success.size();
9095
    }
9096
 
9097
    public java.util.Iterator<String> getSuccessIterator() {
9098
      return (this.success == null) ? null : this.success.iterator();
9099
    }
9100
 
9101
    public void addToSuccess(String elem) {
9102
      if (this.success == null) {
9103
        this.success = new ArrayList<String>();
9104
      }
9105
      this.success.add(elem);
9106
    }
9107
 
9108
    public List<String> getSuccess() {
9109
      return this.success;
9110
    }
9111
 
3430 rajveer 9112
    public void setSuccess(List<String> success) {
3087 mandeep.dh 9113
      this.success = success;
9114
    }
9115
 
9116
    public void unsetSuccess() {
9117
      this.success = null;
9118
    }
9119
 
3430 rajveer 9120
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 9121
    public boolean isSetSuccess() {
9122
      return this.success != null;
9123
    }
9124
 
9125
    public void setSuccessIsSet(boolean value) {
9126
      if (!value) {
9127
        this.success = null;
9128
      }
9129
    }
9130
 
9131
    public void setFieldValue(_Fields field, Object value) {
9132
      switch (field) {
9133
      case SUCCESS:
9134
        if (value == null) {
9135
          unsetSuccess();
9136
        } else {
9137
          setSuccess((List<String>)value);
9138
        }
9139
        break;
9140
 
9141
      }
9142
    }
9143
 
9144
    public Object getFieldValue(_Fields field) {
9145
      switch (field) {
9146
      case SUCCESS:
9147
        return getSuccess();
9148
 
9149
      }
9150
      throw new IllegalStateException();
9151
    }
9152
 
3430 rajveer 9153
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9154
    public boolean isSet(_Fields field) {
9155
      if (field == null) {
9156
        throw new IllegalArgumentException();
9157
      }
3087 mandeep.dh 9158
 
9159
      switch (field) {
9160
      case SUCCESS:
9161
        return isSetSuccess();
9162
      }
9163
      throw new IllegalStateException();
9164
    }
9165
 
9166
    @Override
9167
    public boolean equals(Object that) {
9168
      if (that == null)
9169
        return false;
9170
      if (that instanceof getPermissionsForRoleName_result)
9171
        return this.equals((getPermissionsForRoleName_result)that);
9172
      return false;
9173
    }
9174
 
9175
    public boolean equals(getPermissionsForRoleName_result that) {
9176
      if (that == null)
9177
        return false;
9178
 
9179
      boolean this_present_success = true && this.isSetSuccess();
9180
      boolean that_present_success = true && that.isSetSuccess();
9181
      if (this_present_success || that_present_success) {
9182
        if (!(this_present_success && that_present_success))
9183
          return false;
9184
        if (!this.success.equals(that.success))
9185
          return false;
9186
      }
9187
 
9188
      return true;
9189
    }
9190
 
9191
    @Override
9192
    public int hashCode() {
9193
      return 0;
9194
    }
9195
 
9196
    public int compareTo(getPermissionsForRoleName_result other) {
9197
      if (!getClass().equals(other.getClass())) {
9198
        return getClass().getName().compareTo(other.getClass().getName());
9199
      }
9200
 
9201
      int lastComparison = 0;
9202
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
9203
 
3430 rajveer 9204
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 9205
      if (lastComparison != 0) {
9206
        return lastComparison;
9207
      }
3430 rajveer 9208
      if (isSetSuccess()) {
9209
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9210
        if (lastComparison != 0) {
9211
          return lastComparison;
9212
        }
3087 mandeep.dh 9213
      }
9214
      return 0;
9215
    }
9216
 
3430 rajveer 9217
    public _Fields fieldForId(int fieldId) {
9218
      return _Fields.findByThriftId(fieldId);
9219
    }
9220
 
9221
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9222
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 9223
      iprot.readStructBegin();
9224
      while (true)
9225
      {
9226
        field = iprot.readFieldBegin();
3430 rajveer 9227
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 9228
          break;
9229
        }
3430 rajveer 9230
        switch (field.id) {
9231
          case 0: // SUCCESS
9232
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9233
              {
5287 amar.kumar 9234
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
9235
                this.success = new ArrayList<String>(_list36.size);
9236
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
3087 mandeep.dh 9237
                {
5287 amar.kumar 9238
                  String _elem38; // required
9239
                  _elem38 = iprot.readString();
9240
                  this.success.add(_elem38);
3087 mandeep.dh 9241
                }
3430 rajveer 9242
                iprot.readListEnd();
3087 mandeep.dh 9243
              }
3430 rajveer 9244
            } else { 
9245
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9246
            }
9247
            break;
9248
          default:
9249
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 9250
        }
3430 rajveer 9251
        iprot.readFieldEnd();
3087 mandeep.dh 9252
      }
9253
      iprot.readStructEnd();
9254
      validate();
9255
    }
9256
 
3430 rajveer 9257
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 9258
      oprot.writeStructBegin(STRUCT_DESC);
9259
 
9260
      if (this.isSetSuccess()) {
9261
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9262
        {
3430 rajveer 9263
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5287 amar.kumar 9264
          for (String _iter39 : this.success)
3087 mandeep.dh 9265
          {
5287 amar.kumar 9266
            oprot.writeString(_iter39);
3087 mandeep.dh 9267
          }
9268
          oprot.writeListEnd();
9269
        }
9270
        oprot.writeFieldEnd();
9271
      }
9272
      oprot.writeFieldStop();
9273
      oprot.writeStructEnd();
9274
    }
9275
 
9276
    @Override
9277
    public String toString() {
9278
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
9279
      boolean first = true;
9280
 
9281
      sb.append("success:");
9282
      if (this.success == null) {
9283
        sb.append("null");
9284
      } else {
9285
        sb.append(this.success);
9286
      }
9287
      first = false;
9288
      sb.append(")");
9289
      return sb.toString();
9290
    }
9291
 
3430 rajveer 9292
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 9293
      // check for required fields
9294
    }
9295
 
3430 rajveer 9296
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9297
      try {
9298
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9299
      } catch (org.apache.thrift.TException te) {
9300
        throw new java.io.IOException(te);
9301
      }
9302
    }
9303
 
9304
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9305
      try {
9306
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9307
      } catch (org.apache.thrift.TException te) {
9308
        throw new java.io.IOException(te);
9309
      }
9310
    }
9311
 
3087 mandeep.dh 9312
  }
9313
 
3430 rajveer 9314
  public static class getLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_args, getLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
9315
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_args");
3339 mandeep.dh 9316
 
9317
 
9318
 
9319
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9320
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9321
;
9322
 
9323
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9324
 
9325
      static {
9326
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9327
          byName.put(field.getFieldName(), field);
9328
        }
9329
      }
9330
 
9331
      /**
9332
       * Find the _Fields constant that matches fieldId, or null if its not found.
9333
       */
9334
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9335
        switch(fieldId) {
9336
          default:
9337
            return null;
9338
        }
3339 mandeep.dh 9339
      }
9340
 
9341
      /**
9342
       * Find the _Fields constant that matches fieldId, throwing an exception
9343
       * if it is not found.
9344
       */
9345
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9346
        _Fields fields = findByThriftId(fieldId);
9347
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9348
        return fields;
9349
      }
9350
 
9351
      /**
9352
       * Find the _Fields constant that matches name, or null if its not found.
9353
       */
9354
      public static _Fields findByName(String name) {
9355
        return byName.get(name);
9356
      }
9357
 
9358
      private final short _thriftId;
9359
      private final String _fieldName;
9360
 
9361
      _Fields(short thriftId, String fieldName) {
9362
        _thriftId = thriftId;
9363
        _fieldName = fieldName;
9364
      }
9365
 
9366
      public short getThriftFieldId() {
9367
        return _thriftId;
9368
      }
9369
 
9370
      public String getFieldName() {
9371
        return _fieldName;
9372
      }
9373
    }
3430 rajveer 9374
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9375
    static {
3430 rajveer 9376
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9377
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9378
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_args.class, metaDataMap);
3339 mandeep.dh 9379
    }
9380
 
9381
    public getLastEmailProcessedTimestamp_args() {
9382
    }
9383
 
9384
    /**
9385
     * Performs a deep copy on <i>other</i>.
9386
     */
9387
    public getLastEmailProcessedTimestamp_args(getLastEmailProcessedTimestamp_args other) {
9388
    }
9389
 
9390
    public getLastEmailProcessedTimestamp_args deepCopy() {
9391
      return new getLastEmailProcessedTimestamp_args(this);
9392
    }
9393
 
3430 rajveer 9394
    @Override
9395
    public void clear() {
3339 mandeep.dh 9396
    }
9397
 
9398
    public void setFieldValue(_Fields field, Object value) {
9399
      switch (field) {
9400
      }
9401
    }
9402
 
9403
    public Object getFieldValue(_Fields field) {
9404
      switch (field) {
9405
      }
9406
      throw new IllegalStateException();
9407
    }
9408
 
3430 rajveer 9409
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9410
    public boolean isSet(_Fields field) {
9411
      if (field == null) {
9412
        throw new IllegalArgumentException();
9413
      }
3339 mandeep.dh 9414
 
9415
      switch (field) {
9416
      }
9417
      throw new IllegalStateException();
9418
    }
9419
 
9420
    @Override
9421
    public boolean equals(Object that) {
9422
      if (that == null)
9423
        return false;
9424
      if (that instanceof getLastEmailProcessedTimestamp_args)
9425
        return this.equals((getLastEmailProcessedTimestamp_args)that);
9426
      return false;
9427
    }
9428
 
9429
    public boolean equals(getLastEmailProcessedTimestamp_args that) {
9430
      if (that == null)
9431
        return false;
9432
 
9433
      return true;
9434
    }
9435
 
9436
    @Override
9437
    public int hashCode() {
9438
      return 0;
9439
    }
9440
 
9441
    public int compareTo(getLastEmailProcessedTimestamp_args other) {
9442
      if (!getClass().equals(other.getClass())) {
9443
        return getClass().getName().compareTo(other.getClass().getName());
9444
      }
9445
 
9446
      int lastComparison = 0;
9447
      getLastEmailProcessedTimestamp_args typedOther = (getLastEmailProcessedTimestamp_args)other;
9448
 
9449
      return 0;
9450
    }
9451
 
3430 rajveer 9452
    public _Fields fieldForId(int fieldId) {
9453
      return _Fields.findByThriftId(fieldId);
9454
    }
9455
 
9456
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9457
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 9458
      iprot.readStructBegin();
9459
      while (true)
9460
      {
9461
        field = iprot.readFieldBegin();
3430 rajveer 9462
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 9463
          break;
9464
        }
3430 rajveer 9465
        switch (field.id) {
9466
          default:
9467
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 9468
        }
3430 rajveer 9469
        iprot.readFieldEnd();
3339 mandeep.dh 9470
      }
9471
      iprot.readStructEnd();
9472
      validate();
9473
    }
9474
 
3430 rajveer 9475
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 9476
      validate();
9477
 
9478
      oprot.writeStructBegin(STRUCT_DESC);
9479
      oprot.writeFieldStop();
9480
      oprot.writeStructEnd();
9481
    }
9482
 
9483
    @Override
9484
    public String toString() {
9485
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_args(");
9486
      boolean first = true;
9487
 
9488
      sb.append(")");
9489
      return sb.toString();
9490
    }
9491
 
3430 rajveer 9492
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 9493
      // check for required fields
9494
    }
9495
 
3430 rajveer 9496
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9497
      try {
9498
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9499
      } catch (org.apache.thrift.TException te) {
9500
        throw new java.io.IOException(te);
9501
      }
9502
    }
9503
 
9504
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9505
      try {
9506
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9507
      } catch (org.apache.thrift.TException te) {
9508
        throw new java.io.IOException(te);
9509
      }
9510
    }
9511
 
3339 mandeep.dh 9512
  }
9513
 
3430 rajveer 9514
  public static class getLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_result, getLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
9515
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_result");
3339 mandeep.dh 9516
 
3430 rajveer 9517
    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 9518
 
3430 rajveer 9519
    private long success; // required
3339 mandeep.dh 9520
 
9521
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9522
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9523
      SUCCESS((short)0, "success");
9524
 
9525
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9526
 
9527
      static {
9528
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9529
          byName.put(field.getFieldName(), field);
9530
        }
9531
      }
9532
 
9533
      /**
9534
       * Find the _Fields constant that matches fieldId, or null if its not found.
9535
       */
9536
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9537
        switch(fieldId) {
9538
          case 0: // SUCCESS
9539
            return SUCCESS;
9540
          default:
9541
            return null;
9542
        }
3339 mandeep.dh 9543
      }
9544
 
9545
      /**
9546
       * Find the _Fields constant that matches fieldId, throwing an exception
9547
       * if it is not found.
9548
       */
9549
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9550
        _Fields fields = findByThriftId(fieldId);
9551
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9552
        return fields;
9553
      }
9554
 
9555
      /**
9556
       * Find the _Fields constant that matches name, or null if its not found.
9557
       */
9558
      public static _Fields findByName(String name) {
9559
        return byName.get(name);
9560
      }
9561
 
9562
      private final short _thriftId;
9563
      private final String _fieldName;
9564
 
9565
      _Fields(short thriftId, String fieldName) {
9566
        _thriftId = thriftId;
9567
        _fieldName = fieldName;
9568
      }
9569
 
9570
      public short getThriftFieldId() {
9571
        return _thriftId;
9572
      }
9573
 
9574
      public String getFieldName() {
9575
        return _fieldName;
9576
      }
9577
    }
9578
 
9579
    // isset id assignments
9580
    private static final int __SUCCESS_ISSET_ID = 0;
9581
    private BitSet __isset_bit_vector = new BitSet(1);
9582
 
3430 rajveer 9583
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9584
    static {
3430 rajveer 9585
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9586
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9587
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9588
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9589
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_result.class, metaDataMap);
3339 mandeep.dh 9590
    }
9591
 
9592
    public getLastEmailProcessedTimestamp_result() {
9593
    }
9594
 
9595
    public getLastEmailProcessedTimestamp_result(
9596
      long success)
9597
    {
9598
      this();
9599
      this.success = success;
9600
      setSuccessIsSet(true);
9601
    }
9602
 
9603
    /**
9604
     * Performs a deep copy on <i>other</i>.
9605
     */
9606
    public getLastEmailProcessedTimestamp_result(getLastEmailProcessedTimestamp_result other) {
9607
      __isset_bit_vector.clear();
9608
      __isset_bit_vector.or(other.__isset_bit_vector);
9609
      this.success = other.success;
9610
    }
9611
 
9612
    public getLastEmailProcessedTimestamp_result deepCopy() {
9613
      return new getLastEmailProcessedTimestamp_result(this);
9614
    }
9615
 
3430 rajveer 9616
    @Override
9617
    public void clear() {
9618
      setSuccessIsSet(false);
9619
      this.success = 0;
3339 mandeep.dh 9620
    }
9621
 
9622
    public long getSuccess() {
9623
      return this.success;
9624
    }
9625
 
3430 rajveer 9626
    public void setSuccess(long success) {
3339 mandeep.dh 9627
      this.success = success;
9628
      setSuccessIsSet(true);
9629
    }
9630
 
9631
    public void unsetSuccess() {
9632
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9633
    }
9634
 
3430 rajveer 9635
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3339 mandeep.dh 9636
    public boolean isSetSuccess() {
9637
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9638
    }
9639
 
9640
    public void setSuccessIsSet(boolean value) {
9641
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9642
    }
9643
 
9644
    public void setFieldValue(_Fields field, Object value) {
9645
      switch (field) {
9646
      case SUCCESS:
9647
        if (value == null) {
9648
          unsetSuccess();
9649
        } else {
9650
          setSuccess((Long)value);
9651
        }
9652
        break;
9653
 
9654
      }
9655
    }
9656
 
9657
    public Object getFieldValue(_Fields field) {
9658
      switch (field) {
9659
      case SUCCESS:
3430 rajveer 9660
        return Long.valueOf(getSuccess());
3339 mandeep.dh 9661
 
9662
      }
9663
      throw new IllegalStateException();
9664
    }
9665
 
3430 rajveer 9666
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9667
    public boolean isSet(_Fields field) {
9668
      if (field == null) {
9669
        throw new IllegalArgumentException();
9670
      }
3339 mandeep.dh 9671
 
9672
      switch (field) {
9673
      case SUCCESS:
9674
        return isSetSuccess();
9675
      }
9676
      throw new IllegalStateException();
9677
    }
9678
 
9679
    @Override
9680
    public boolean equals(Object that) {
9681
      if (that == null)
9682
        return false;
9683
      if (that instanceof getLastEmailProcessedTimestamp_result)
9684
        return this.equals((getLastEmailProcessedTimestamp_result)that);
9685
      return false;
9686
    }
9687
 
9688
    public boolean equals(getLastEmailProcessedTimestamp_result that) {
9689
      if (that == null)
9690
        return false;
9691
 
9692
      boolean this_present_success = true;
9693
      boolean that_present_success = true;
9694
      if (this_present_success || that_present_success) {
9695
        if (!(this_present_success && that_present_success))
9696
          return false;
9697
        if (this.success != that.success)
9698
          return false;
9699
      }
9700
 
9701
      return true;
9702
    }
9703
 
9704
    @Override
9705
    public int hashCode() {
9706
      return 0;
9707
    }
9708
 
9709
    public int compareTo(getLastEmailProcessedTimestamp_result other) {
9710
      if (!getClass().equals(other.getClass())) {
9711
        return getClass().getName().compareTo(other.getClass().getName());
9712
      }
9713
 
9714
      int lastComparison = 0;
9715
      getLastEmailProcessedTimestamp_result typedOther = (getLastEmailProcessedTimestamp_result)other;
9716
 
3430 rajveer 9717
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3339 mandeep.dh 9718
      if (lastComparison != 0) {
9719
        return lastComparison;
9720
      }
3430 rajveer 9721
      if (isSetSuccess()) {
9722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9723
        if (lastComparison != 0) {
9724
          return lastComparison;
9725
        }
3339 mandeep.dh 9726
      }
9727
      return 0;
9728
    }
9729
 
3430 rajveer 9730
    public _Fields fieldForId(int fieldId) {
9731
      return _Fields.findByThriftId(fieldId);
9732
    }
9733
 
9734
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9735
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 9736
      iprot.readStructBegin();
9737
      while (true)
9738
      {
9739
        field = iprot.readFieldBegin();
3430 rajveer 9740
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 9741
          break;
9742
        }
3430 rajveer 9743
        switch (field.id) {
9744
          case 0: // SUCCESS
9745
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9746
              this.success = iprot.readI64();
9747
              setSuccessIsSet(true);
9748
            } else { 
9749
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9750
            }
9751
            break;
9752
          default:
9753
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 9754
        }
3430 rajveer 9755
        iprot.readFieldEnd();
3339 mandeep.dh 9756
      }
9757
      iprot.readStructEnd();
9758
      validate();
9759
    }
9760
 
3430 rajveer 9761
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 9762
      oprot.writeStructBegin(STRUCT_DESC);
9763
 
9764
      if (this.isSetSuccess()) {
9765
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9766
        oprot.writeI64(this.success);
9767
        oprot.writeFieldEnd();
9768
      }
9769
      oprot.writeFieldStop();
9770
      oprot.writeStructEnd();
9771
    }
9772
 
9773
    @Override
9774
    public String toString() {
9775
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_result(");
9776
      boolean first = true;
9777
 
9778
      sb.append("success:");
9779
      sb.append(this.success);
9780
      first = false;
9781
      sb.append(")");
9782
      return sb.toString();
9783
    }
9784
 
3430 rajveer 9785
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 9786
      // check for required fields
9787
    }
9788
 
3430 rajveer 9789
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9790
      try {
9791
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9792
      } catch (org.apache.thrift.TException te) {
9793
        throw new java.io.IOException(te);
9794
      }
9795
    }
9796
 
9797
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9798
      try {
9799
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9800
      } catch (org.apache.thrift.TException te) {
9801
        throw new java.io.IOException(te);
9802
      }
9803
    }
9804
 
3339 mandeep.dh 9805
  }
9806
 
3430 rajveer 9807
  public static class updateLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_args, updateLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
9808
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_args");
3339 mandeep.dh 9809
 
3430 rajveer 9810
    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 9811
 
3430 rajveer 9812
    private long timestamp; // required
3339 mandeep.dh 9813
 
9814
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9815
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9816
      TIMESTAMP((short)1, "timestamp");
9817
 
9818
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9819
 
9820
      static {
9821
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9822
          byName.put(field.getFieldName(), field);
9823
        }
9824
      }
9825
 
9826
      /**
9827
       * Find the _Fields constant that matches fieldId, or null if its not found.
9828
       */
9829
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9830
        switch(fieldId) {
9831
          case 1: // TIMESTAMP
9832
            return TIMESTAMP;
9833
          default:
9834
            return null;
9835
        }
3339 mandeep.dh 9836
      }
9837
 
9838
      /**
9839
       * Find the _Fields constant that matches fieldId, throwing an exception
9840
       * if it is not found.
9841
       */
9842
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9843
        _Fields fields = findByThriftId(fieldId);
9844
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9845
        return fields;
9846
      }
9847
 
9848
      /**
9849
       * Find the _Fields constant that matches name, or null if its not found.
9850
       */
9851
      public static _Fields findByName(String name) {
9852
        return byName.get(name);
9853
      }
9854
 
9855
      private final short _thriftId;
9856
      private final String _fieldName;
9857
 
9858
      _Fields(short thriftId, String fieldName) {
9859
        _thriftId = thriftId;
9860
        _fieldName = fieldName;
9861
      }
9862
 
9863
      public short getThriftFieldId() {
9864
        return _thriftId;
9865
      }
9866
 
9867
      public String getFieldName() {
9868
        return _fieldName;
9869
      }
9870
    }
9871
 
9872
    // isset id assignments
9873
    private static final int __TIMESTAMP_ISSET_ID = 0;
9874
    private BitSet __isset_bit_vector = new BitSet(1);
9875
 
3430 rajveer 9876
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9877
    static {
3430 rajveer 9878
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9879
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9880
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9881
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9882
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_args.class, metaDataMap);
3339 mandeep.dh 9883
    }
9884
 
9885
    public updateLastEmailProcessedTimestamp_args() {
9886
    }
9887
 
9888
    public updateLastEmailProcessedTimestamp_args(
9889
      long timestamp)
9890
    {
9891
      this();
9892
      this.timestamp = timestamp;
9893
      setTimestampIsSet(true);
9894
    }
9895
 
9896
    /**
9897
     * Performs a deep copy on <i>other</i>.
9898
     */
9899
    public updateLastEmailProcessedTimestamp_args(updateLastEmailProcessedTimestamp_args other) {
9900
      __isset_bit_vector.clear();
9901
      __isset_bit_vector.or(other.__isset_bit_vector);
9902
      this.timestamp = other.timestamp;
9903
    }
9904
 
9905
    public updateLastEmailProcessedTimestamp_args deepCopy() {
9906
      return new updateLastEmailProcessedTimestamp_args(this);
9907
    }
9908
 
3430 rajveer 9909
    @Override
9910
    public void clear() {
9911
      setTimestampIsSet(false);
9912
      this.timestamp = 0;
3339 mandeep.dh 9913
    }
9914
 
9915
    public long getTimestamp() {
9916
      return this.timestamp;
9917
    }
9918
 
3430 rajveer 9919
    public void setTimestamp(long timestamp) {
3339 mandeep.dh 9920
      this.timestamp = timestamp;
9921
      setTimestampIsSet(true);
9922
    }
9923
 
9924
    public void unsetTimestamp() {
9925
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
9926
    }
9927
 
3430 rajveer 9928
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
3339 mandeep.dh 9929
    public boolean isSetTimestamp() {
9930
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
9931
    }
9932
 
9933
    public void setTimestampIsSet(boolean value) {
9934
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
9935
    }
9936
 
9937
    public void setFieldValue(_Fields field, Object value) {
9938
      switch (field) {
9939
      case TIMESTAMP:
9940
        if (value == null) {
9941
          unsetTimestamp();
9942
        } else {
9943
          setTimestamp((Long)value);
9944
        }
9945
        break;
9946
 
9947
      }
9948
    }
9949
 
9950
    public Object getFieldValue(_Fields field) {
9951
      switch (field) {
9952
      case TIMESTAMP:
3430 rajveer 9953
        return Long.valueOf(getTimestamp());
3339 mandeep.dh 9954
 
9955
      }
9956
      throw new IllegalStateException();
9957
    }
9958
 
3430 rajveer 9959
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9960
    public boolean isSet(_Fields field) {
9961
      if (field == null) {
9962
        throw new IllegalArgumentException();
9963
      }
3339 mandeep.dh 9964
 
9965
      switch (field) {
9966
      case TIMESTAMP:
9967
        return isSetTimestamp();
9968
      }
9969
      throw new IllegalStateException();
9970
    }
9971
 
9972
    @Override
9973
    public boolean equals(Object that) {
9974
      if (that == null)
9975
        return false;
9976
      if (that instanceof updateLastEmailProcessedTimestamp_args)
9977
        return this.equals((updateLastEmailProcessedTimestamp_args)that);
9978
      return false;
9979
    }
9980
 
9981
    public boolean equals(updateLastEmailProcessedTimestamp_args that) {
9982
      if (that == null)
9983
        return false;
9984
 
9985
      boolean this_present_timestamp = true;
9986
      boolean that_present_timestamp = true;
9987
      if (this_present_timestamp || that_present_timestamp) {
9988
        if (!(this_present_timestamp && that_present_timestamp))
9989
          return false;
9990
        if (this.timestamp != that.timestamp)
9991
          return false;
9992
      }
9993
 
9994
      return true;
9995
    }
9996
 
9997
    @Override
9998
    public int hashCode() {
9999
      return 0;
10000
    }
10001
 
10002
    public int compareTo(updateLastEmailProcessedTimestamp_args other) {
10003
      if (!getClass().equals(other.getClass())) {
10004
        return getClass().getName().compareTo(other.getClass().getName());
10005
      }
10006
 
10007
      int lastComparison = 0;
10008
      updateLastEmailProcessedTimestamp_args typedOther = (updateLastEmailProcessedTimestamp_args)other;
10009
 
3430 rajveer 10010
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
3339 mandeep.dh 10011
      if (lastComparison != 0) {
10012
        return lastComparison;
10013
      }
3430 rajveer 10014
      if (isSetTimestamp()) {
10015
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
10016
        if (lastComparison != 0) {
10017
          return lastComparison;
10018
        }
3339 mandeep.dh 10019
      }
10020
      return 0;
10021
    }
10022
 
3430 rajveer 10023
    public _Fields fieldForId(int fieldId) {
10024
      return _Fields.findByThriftId(fieldId);
10025
    }
10026
 
10027
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10028
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 10029
      iprot.readStructBegin();
10030
      while (true)
10031
      {
10032
        field = iprot.readFieldBegin();
3430 rajveer 10033
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 10034
          break;
10035
        }
3430 rajveer 10036
        switch (field.id) {
10037
          case 1: // TIMESTAMP
10038
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10039
              this.timestamp = iprot.readI64();
10040
              setTimestampIsSet(true);
10041
            } else { 
10042
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10043
            }
10044
            break;
10045
          default:
10046
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 10047
        }
3430 rajveer 10048
        iprot.readFieldEnd();
3339 mandeep.dh 10049
      }
10050
      iprot.readStructEnd();
10051
      validate();
10052
    }
10053
 
3430 rajveer 10054
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 10055
      validate();
10056
 
10057
      oprot.writeStructBegin(STRUCT_DESC);
10058
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
10059
      oprot.writeI64(this.timestamp);
10060
      oprot.writeFieldEnd();
10061
      oprot.writeFieldStop();
10062
      oprot.writeStructEnd();
10063
    }
10064
 
10065
    @Override
10066
    public String toString() {
10067
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_args(");
10068
      boolean first = true;
10069
 
10070
      sb.append("timestamp:");
10071
      sb.append(this.timestamp);
10072
      first = false;
10073
      sb.append(")");
10074
      return sb.toString();
10075
    }
10076
 
3430 rajveer 10077
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 10078
      // check for required fields
10079
    }
10080
 
3430 rajveer 10081
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10082
      try {
10083
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10084
      } catch (org.apache.thrift.TException te) {
10085
        throw new java.io.IOException(te);
10086
      }
10087
    }
10088
 
10089
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10090
      try {
10091
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10092
        __isset_bit_vector = new BitSet(1);
10093
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10094
      } catch (org.apache.thrift.TException te) {
10095
        throw new java.io.IOException(te);
10096
      }
10097
    }
10098
 
3339 mandeep.dh 10099
  }
10100
 
3430 rajveer 10101
  public static class updateLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_result, updateLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
10102
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_result");
3339 mandeep.dh 10103
 
10104
 
10105
 
10106
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10107
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 10108
;
10109
 
10110
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10111
 
10112
      static {
10113
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10114
          byName.put(field.getFieldName(), field);
10115
        }
10116
      }
10117
 
10118
      /**
10119
       * Find the _Fields constant that matches fieldId, or null if its not found.
10120
       */
10121
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10122
        switch(fieldId) {
10123
          default:
10124
            return null;
10125
        }
3339 mandeep.dh 10126
      }
10127
 
10128
      /**
10129
       * Find the _Fields constant that matches fieldId, throwing an exception
10130
       * if it is not found.
10131
       */
10132
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10133
        _Fields fields = findByThriftId(fieldId);
10134
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10135
        return fields;
10136
      }
10137
 
10138
      /**
10139
       * Find the _Fields constant that matches name, or null if its not found.
10140
       */
10141
      public static _Fields findByName(String name) {
10142
        return byName.get(name);
10143
      }
10144
 
10145
      private final short _thriftId;
10146
      private final String _fieldName;
10147
 
10148
      _Fields(short thriftId, String fieldName) {
10149
        _thriftId = thriftId;
10150
        _fieldName = fieldName;
10151
      }
10152
 
10153
      public short getThriftFieldId() {
10154
        return _thriftId;
10155
      }
10156
 
10157
      public String getFieldName() {
10158
        return _fieldName;
10159
      }
10160
    }
3430 rajveer 10161
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 10162
    static {
3430 rajveer 10163
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10164
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10165
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_result.class, metaDataMap);
3339 mandeep.dh 10166
    }
10167
 
10168
    public updateLastEmailProcessedTimestamp_result() {
10169
    }
10170
 
10171
    /**
10172
     * Performs a deep copy on <i>other</i>.
10173
     */
10174
    public updateLastEmailProcessedTimestamp_result(updateLastEmailProcessedTimestamp_result other) {
10175
    }
10176
 
10177
    public updateLastEmailProcessedTimestamp_result deepCopy() {
10178
      return new updateLastEmailProcessedTimestamp_result(this);
10179
    }
10180
 
3430 rajveer 10181
    @Override
10182
    public void clear() {
3339 mandeep.dh 10183
    }
10184
 
10185
    public void setFieldValue(_Fields field, Object value) {
10186
      switch (field) {
10187
      }
10188
    }
10189
 
10190
    public Object getFieldValue(_Fields field) {
10191
      switch (field) {
10192
      }
10193
      throw new IllegalStateException();
10194
    }
10195
 
3430 rajveer 10196
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10197
    public boolean isSet(_Fields field) {
10198
      if (field == null) {
10199
        throw new IllegalArgumentException();
10200
      }
3339 mandeep.dh 10201
 
10202
      switch (field) {
10203
      }
10204
      throw new IllegalStateException();
10205
    }
10206
 
10207
    @Override
10208
    public boolean equals(Object that) {
10209
      if (that == null)
10210
        return false;
10211
      if (that instanceof updateLastEmailProcessedTimestamp_result)
10212
        return this.equals((updateLastEmailProcessedTimestamp_result)that);
10213
      return false;
10214
    }
10215
 
10216
    public boolean equals(updateLastEmailProcessedTimestamp_result that) {
10217
      if (that == null)
10218
        return false;
10219
 
10220
      return true;
10221
    }
10222
 
10223
    @Override
10224
    public int hashCode() {
10225
      return 0;
10226
    }
10227
 
10228
    public int compareTo(updateLastEmailProcessedTimestamp_result other) {
10229
      if (!getClass().equals(other.getClass())) {
10230
        return getClass().getName().compareTo(other.getClass().getName());
10231
      }
10232
 
10233
      int lastComparison = 0;
10234
      updateLastEmailProcessedTimestamp_result typedOther = (updateLastEmailProcessedTimestamp_result)other;
10235
 
10236
      return 0;
10237
    }
10238
 
3430 rajveer 10239
    public _Fields fieldForId(int fieldId) {
10240
      return _Fields.findByThriftId(fieldId);
10241
    }
10242
 
10243
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10244
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 10245
      iprot.readStructBegin();
10246
      while (true)
10247
      {
10248
        field = iprot.readFieldBegin();
3430 rajveer 10249
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 10250
          break;
10251
        }
3430 rajveer 10252
        switch (field.id) {
10253
          default:
10254
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 10255
        }
3430 rajveer 10256
        iprot.readFieldEnd();
3339 mandeep.dh 10257
      }
10258
      iprot.readStructEnd();
10259
      validate();
10260
    }
10261
 
3430 rajveer 10262
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 10263
      oprot.writeStructBegin(STRUCT_DESC);
10264
 
10265
      oprot.writeFieldStop();
10266
      oprot.writeStructEnd();
10267
    }
10268
 
10269
    @Override
10270
    public String toString() {
10271
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_result(");
10272
      boolean first = true;
10273
 
10274
      sb.append(")");
10275
      return sb.toString();
10276
    }
10277
 
3430 rajveer 10278
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 10279
      // check for required fields
10280
    }
10281
 
3430 rajveer 10282
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10283
      try {
10284
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10285
      } catch (org.apache.thrift.TException te) {
10286
        throw new java.io.IOException(te);
10287
      }
10288
    }
10289
 
10290
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10291
      try {
10292
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10293
      } catch (org.apache.thrift.TException te) {
10294
        throw new java.io.IOException(te);
10295
      }
10296
    }
10297
 
3339 mandeep.dh 10298
  }
10299
 
4793 amar.kumar 10300
  public static class changeAgentStatus_args implements org.apache.thrift.TBase<changeAgentStatus_args, changeAgentStatus_args._Fields>, java.io.Serializable, Cloneable   {
10301
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_args");
10302
 
10303
    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);
10304
    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);
10305
 
10306
    private boolean status; // required
10307
    private String emailId; // required
10308
 
10309
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10310
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10311
      STATUS((short)1, "status"),
10312
      EMAIL_ID((short)2, "emailId");
10313
 
10314
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10315
 
10316
      static {
10317
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10318
          byName.put(field.getFieldName(), field);
10319
        }
10320
      }
10321
 
10322
      /**
10323
       * Find the _Fields constant that matches fieldId, or null if its not found.
10324
       */
10325
      public static _Fields findByThriftId(int fieldId) {
10326
        switch(fieldId) {
10327
          case 1: // STATUS
10328
            return STATUS;
10329
          case 2: // EMAIL_ID
10330
            return EMAIL_ID;
10331
          default:
10332
            return null;
10333
        }
10334
      }
10335
 
10336
      /**
10337
       * Find the _Fields constant that matches fieldId, throwing an exception
10338
       * if it is not found.
10339
       */
10340
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10341
        _Fields fields = findByThriftId(fieldId);
10342
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10343
        return fields;
10344
      }
10345
 
10346
      /**
10347
       * Find the _Fields constant that matches name, or null if its not found.
10348
       */
10349
      public static _Fields findByName(String name) {
10350
        return byName.get(name);
10351
      }
10352
 
10353
      private final short _thriftId;
10354
      private final String _fieldName;
10355
 
10356
      _Fields(short thriftId, String fieldName) {
10357
        _thriftId = thriftId;
10358
        _fieldName = fieldName;
10359
      }
10360
 
10361
      public short getThriftFieldId() {
10362
        return _thriftId;
10363
      }
10364
 
10365
      public String getFieldName() {
10366
        return _fieldName;
10367
      }
10368
    }
10369
 
10370
    // isset id assignments
10371
    private static final int __STATUS_ISSET_ID = 0;
10372
    private BitSet __isset_bit_vector = new BitSet(1);
10373
 
10374
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10375
    static {
10376
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10377
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10378
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10379
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10380
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10381
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10382
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_args.class, metaDataMap);
10383
    }
10384
 
10385
    public changeAgentStatus_args() {
10386
    }
10387
 
10388
    public changeAgentStatus_args(
10389
      boolean status,
10390
      String emailId)
10391
    {
10392
      this();
10393
      this.status = status;
10394
      setStatusIsSet(true);
10395
      this.emailId = emailId;
10396
    }
10397
 
10398
    /**
10399
     * Performs a deep copy on <i>other</i>.
10400
     */
10401
    public changeAgentStatus_args(changeAgentStatus_args other) {
10402
      __isset_bit_vector.clear();
10403
      __isset_bit_vector.or(other.__isset_bit_vector);
10404
      this.status = other.status;
10405
      if (other.isSetEmailId()) {
10406
        this.emailId = other.emailId;
10407
      }
10408
    }
10409
 
10410
    public changeAgentStatus_args deepCopy() {
10411
      return new changeAgentStatus_args(this);
10412
    }
10413
 
10414
    @Override
10415
    public void clear() {
10416
      setStatusIsSet(false);
10417
      this.status = false;
10418
      this.emailId = null;
10419
    }
10420
 
10421
    public boolean isStatus() {
10422
      return this.status;
10423
    }
10424
 
10425
    public void setStatus(boolean status) {
10426
      this.status = status;
10427
      setStatusIsSet(true);
10428
    }
10429
 
10430
    public void unsetStatus() {
10431
      __isset_bit_vector.clear(__STATUS_ISSET_ID);
10432
    }
10433
 
10434
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
10435
    public boolean isSetStatus() {
10436
      return __isset_bit_vector.get(__STATUS_ISSET_ID);
10437
    }
10438
 
10439
    public void setStatusIsSet(boolean value) {
10440
      __isset_bit_vector.set(__STATUS_ISSET_ID, value);
10441
    }
10442
 
10443
    public String getEmailId() {
10444
      return this.emailId;
10445
    }
10446
 
10447
    public void setEmailId(String emailId) {
10448
      this.emailId = emailId;
10449
    }
10450
 
10451
    public void unsetEmailId() {
10452
      this.emailId = null;
10453
    }
10454
 
10455
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
10456
    public boolean isSetEmailId() {
10457
      return this.emailId != null;
10458
    }
10459
 
10460
    public void setEmailIdIsSet(boolean value) {
10461
      if (!value) {
10462
        this.emailId = null;
10463
      }
10464
    }
10465
 
10466
    public void setFieldValue(_Fields field, Object value) {
10467
      switch (field) {
10468
      case STATUS:
10469
        if (value == null) {
10470
          unsetStatus();
10471
        } else {
10472
          setStatus((Boolean)value);
10473
        }
10474
        break;
10475
 
10476
      case EMAIL_ID:
10477
        if (value == null) {
10478
          unsetEmailId();
10479
        } else {
10480
          setEmailId((String)value);
10481
        }
10482
        break;
10483
 
10484
      }
10485
    }
10486
 
10487
    public Object getFieldValue(_Fields field) {
10488
      switch (field) {
10489
      case STATUS:
10490
        return Boolean.valueOf(isStatus());
10491
 
10492
      case EMAIL_ID:
10493
        return getEmailId();
10494
 
10495
      }
10496
      throw new IllegalStateException();
10497
    }
10498
 
10499
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10500
    public boolean isSet(_Fields field) {
10501
      if (field == null) {
10502
        throw new IllegalArgumentException();
10503
      }
10504
 
10505
      switch (field) {
10506
      case STATUS:
10507
        return isSetStatus();
10508
      case EMAIL_ID:
10509
        return isSetEmailId();
10510
      }
10511
      throw new IllegalStateException();
10512
    }
10513
 
10514
    @Override
10515
    public boolean equals(Object that) {
10516
      if (that == null)
10517
        return false;
10518
      if (that instanceof changeAgentStatus_args)
10519
        return this.equals((changeAgentStatus_args)that);
10520
      return false;
10521
    }
10522
 
10523
    public boolean equals(changeAgentStatus_args that) {
10524
      if (that == null)
10525
        return false;
10526
 
10527
      boolean this_present_status = true;
10528
      boolean that_present_status = true;
10529
      if (this_present_status || that_present_status) {
10530
        if (!(this_present_status && that_present_status))
10531
          return false;
10532
        if (this.status != that.status)
10533
          return false;
10534
      }
10535
 
10536
      boolean this_present_emailId = true && this.isSetEmailId();
10537
      boolean that_present_emailId = true && that.isSetEmailId();
10538
      if (this_present_emailId || that_present_emailId) {
10539
        if (!(this_present_emailId && that_present_emailId))
10540
          return false;
10541
        if (!this.emailId.equals(that.emailId))
10542
          return false;
10543
      }
10544
 
10545
      return true;
10546
    }
10547
 
10548
    @Override
10549
    public int hashCode() {
10550
      return 0;
10551
    }
10552
 
10553
    public int compareTo(changeAgentStatus_args other) {
10554
      if (!getClass().equals(other.getClass())) {
10555
        return getClass().getName().compareTo(other.getClass().getName());
10556
      }
10557
 
10558
      int lastComparison = 0;
10559
      changeAgentStatus_args typedOther = (changeAgentStatus_args)other;
10560
 
10561
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
10562
      if (lastComparison != 0) {
10563
        return lastComparison;
10564
      }
10565
      if (isSetStatus()) {
10566
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
10567
        if (lastComparison != 0) {
10568
          return lastComparison;
10569
        }
10570
      }
10571
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
10572
      if (lastComparison != 0) {
10573
        return lastComparison;
10574
      }
10575
      if (isSetEmailId()) {
10576
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
10577
        if (lastComparison != 0) {
10578
          return lastComparison;
10579
        }
10580
      }
10581
      return 0;
10582
    }
10583
 
10584
    public _Fields fieldForId(int fieldId) {
10585
      return _Fields.findByThriftId(fieldId);
10586
    }
10587
 
10588
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10589
      org.apache.thrift.protocol.TField field;
10590
      iprot.readStructBegin();
10591
      while (true)
10592
      {
10593
        field = iprot.readFieldBegin();
10594
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10595
          break;
10596
        }
10597
        switch (field.id) {
10598
          case 1: // STATUS
10599
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10600
              this.status = iprot.readBool();
10601
              setStatusIsSet(true);
10602
            } else { 
10603
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10604
            }
10605
            break;
10606
          case 2: // EMAIL_ID
10607
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10608
              this.emailId = iprot.readString();
10609
            } else { 
10610
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10611
            }
10612
            break;
10613
          default:
10614
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10615
        }
10616
        iprot.readFieldEnd();
10617
      }
10618
      iprot.readStructEnd();
10619
      validate();
10620
    }
10621
 
10622
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10623
      validate();
10624
 
10625
      oprot.writeStructBegin(STRUCT_DESC);
10626
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
10627
      oprot.writeBool(this.status);
10628
      oprot.writeFieldEnd();
10629
      if (this.emailId != null) {
10630
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
10631
        oprot.writeString(this.emailId);
10632
        oprot.writeFieldEnd();
10633
      }
10634
      oprot.writeFieldStop();
10635
      oprot.writeStructEnd();
10636
    }
10637
 
10638
    @Override
10639
    public String toString() {
10640
      StringBuilder sb = new StringBuilder("changeAgentStatus_args(");
10641
      boolean first = true;
10642
 
10643
      sb.append("status:");
10644
      sb.append(this.status);
10645
      first = false;
10646
      if (!first) sb.append(", ");
10647
      sb.append("emailId:");
10648
      if (this.emailId == null) {
10649
        sb.append("null");
10650
      } else {
10651
        sb.append(this.emailId);
10652
      }
10653
      first = false;
10654
      sb.append(")");
10655
      return sb.toString();
10656
    }
10657
 
10658
    public void validate() throws org.apache.thrift.TException {
10659
      // check for required fields
10660
    }
10661
 
10662
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10663
      try {
10664
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10665
      } catch (org.apache.thrift.TException te) {
10666
        throw new java.io.IOException(te);
10667
      }
10668
    }
10669
 
10670
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10671
      try {
10672
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10673
        __isset_bit_vector = new BitSet(1);
10674
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10675
      } catch (org.apache.thrift.TException te) {
10676
        throw new java.io.IOException(te);
10677
      }
10678
    }
10679
 
10680
  }
10681
 
10682
  public static class changeAgentStatus_result implements org.apache.thrift.TBase<changeAgentStatus_result, changeAgentStatus_result._Fields>, java.io.Serializable, Cloneable   {
10683
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_result");
10684
 
10685
 
10686
 
10687
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10688
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10689
;
10690
 
10691
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10692
 
10693
      static {
10694
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10695
          byName.put(field.getFieldName(), field);
10696
        }
10697
      }
10698
 
10699
      /**
10700
       * Find the _Fields constant that matches fieldId, or null if its not found.
10701
       */
10702
      public static _Fields findByThriftId(int fieldId) {
10703
        switch(fieldId) {
10704
          default:
10705
            return null;
10706
        }
10707
      }
10708
 
10709
      /**
10710
       * Find the _Fields constant that matches fieldId, throwing an exception
10711
       * if it is not found.
10712
       */
10713
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10714
        _Fields fields = findByThriftId(fieldId);
10715
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10716
        return fields;
10717
      }
10718
 
10719
      /**
10720
       * Find the _Fields constant that matches name, or null if its not found.
10721
       */
10722
      public static _Fields findByName(String name) {
10723
        return byName.get(name);
10724
      }
10725
 
10726
      private final short _thriftId;
10727
      private final String _fieldName;
10728
 
10729
      _Fields(short thriftId, String fieldName) {
10730
        _thriftId = thriftId;
10731
        _fieldName = fieldName;
10732
      }
10733
 
10734
      public short getThriftFieldId() {
10735
        return _thriftId;
10736
      }
10737
 
10738
      public String getFieldName() {
10739
        return _fieldName;
10740
      }
10741
    }
10742
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10743
    static {
10744
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10745
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10746
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_result.class, metaDataMap);
10747
    }
10748
 
10749
    public changeAgentStatus_result() {
10750
    }
10751
 
10752
    /**
10753
     * Performs a deep copy on <i>other</i>.
10754
     */
10755
    public changeAgentStatus_result(changeAgentStatus_result other) {
10756
    }
10757
 
10758
    public changeAgentStatus_result deepCopy() {
10759
      return new changeAgentStatus_result(this);
10760
    }
10761
 
10762
    @Override
10763
    public void clear() {
10764
    }
10765
 
10766
    public void setFieldValue(_Fields field, Object value) {
10767
      switch (field) {
10768
      }
10769
    }
10770
 
10771
    public Object getFieldValue(_Fields field) {
10772
      switch (field) {
10773
      }
10774
      throw new IllegalStateException();
10775
    }
10776
 
10777
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10778
    public boolean isSet(_Fields field) {
10779
      if (field == null) {
10780
        throw new IllegalArgumentException();
10781
      }
10782
 
10783
      switch (field) {
10784
      }
10785
      throw new IllegalStateException();
10786
    }
10787
 
10788
    @Override
10789
    public boolean equals(Object that) {
10790
      if (that == null)
10791
        return false;
10792
      if (that instanceof changeAgentStatus_result)
10793
        return this.equals((changeAgentStatus_result)that);
10794
      return false;
10795
    }
10796
 
10797
    public boolean equals(changeAgentStatus_result that) {
10798
      if (that == null)
10799
        return false;
10800
 
10801
      return true;
10802
    }
10803
 
10804
    @Override
10805
    public int hashCode() {
10806
      return 0;
10807
    }
10808
 
10809
    public int compareTo(changeAgentStatus_result other) {
10810
      if (!getClass().equals(other.getClass())) {
10811
        return getClass().getName().compareTo(other.getClass().getName());
10812
      }
10813
 
10814
      int lastComparison = 0;
10815
      changeAgentStatus_result typedOther = (changeAgentStatus_result)other;
10816
 
10817
      return 0;
10818
    }
10819
 
10820
    public _Fields fieldForId(int fieldId) {
10821
      return _Fields.findByThriftId(fieldId);
10822
    }
10823
 
10824
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10825
      org.apache.thrift.protocol.TField field;
10826
      iprot.readStructBegin();
10827
      while (true)
10828
      {
10829
        field = iprot.readFieldBegin();
10830
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10831
          break;
10832
        }
10833
        switch (field.id) {
10834
          default:
10835
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10836
        }
10837
        iprot.readFieldEnd();
10838
      }
10839
      iprot.readStructEnd();
10840
      validate();
10841
    }
10842
 
10843
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10844
      oprot.writeStructBegin(STRUCT_DESC);
10845
 
10846
      oprot.writeFieldStop();
10847
      oprot.writeStructEnd();
10848
    }
10849
 
10850
    @Override
10851
    public String toString() {
10852
      StringBuilder sb = new StringBuilder("changeAgentStatus_result(");
10853
      boolean first = true;
10854
 
10855
      sb.append(")");
10856
      return sb.toString();
10857
    }
10858
 
10859
    public void validate() throws org.apache.thrift.TException {
10860
      // check for required fields
10861
    }
10862
 
10863
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10864
      try {
10865
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10866
      } catch (org.apache.thrift.TException te) {
10867
        throw new java.io.IOException(te);
10868
      }
10869
    }
10870
 
10871
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10872
      try {
10873
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10874
      } catch (org.apache.thrift.TException te) {
10875
        throw new java.io.IOException(te);
10876
      }
10877
    }
10878
 
10879
  }
10880
 
10881
  public static class insertAgent_args implements org.apache.thrift.TBase<insertAgent_args, insertAgent_args._Fields>, java.io.Serializable, Cloneable   {
10882
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_args");
10883
 
10884
    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);
10885
    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);
10886
 
10887
    private Agent agent; // required
10888
    private List<String> role; // required
10889
 
10890
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10891
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10892
      AGENT((short)1, "agent"),
10893
      ROLE((short)2, "role");
10894
 
10895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10896
 
10897
      static {
10898
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10899
          byName.put(field.getFieldName(), field);
10900
        }
10901
      }
10902
 
10903
      /**
10904
       * Find the _Fields constant that matches fieldId, or null if its not found.
10905
       */
10906
      public static _Fields findByThriftId(int fieldId) {
10907
        switch(fieldId) {
10908
          case 1: // AGENT
10909
            return AGENT;
10910
          case 2: // ROLE
10911
            return ROLE;
10912
          default:
10913
            return null;
10914
        }
10915
      }
10916
 
10917
      /**
10918
       * Find the _Fields constant that matches fieldId, throwing an exception
10919
       * if it is not found.
10920
       */
10921
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10922
        _Fields fields = findByThriftId(fieldId);
10923
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10924
        return fields;
10925
      }
10926
 
10927
      /**
10928
       * Find the _Fields constant that matches name, or null if its not found.
10929
       */
10930
      public static _Fields findByName(String name) {
10931
        return byName.get(name);
10932
      }
10933
 
10934
      private final short _thriftId;
10935
      private final String _fieldName;
10936
 
10937
      _Fields(short thriftId, String fieldName) {
10938
        _thriftId = thriftId;
10939
        _fieldName = fieldName;
10940
      }
10941
 
10942
      public short getThriftFieldId() {
10943
        return _thriftId;
10944
      }
10945
 
10946
      public String getFieldName() {
10947
        return _fieldName;
10948
      }
10949
    }
10950
 
10951
    // isset id assignments
10952
 
10953
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10954
    static {
10955
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10956
      tmpMap.put(_Fields.AGENT, new org.apache.thrift.meta_data.FieldMetaData("agent", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10957
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class)));
10958
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10959
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
10960
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
10961
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10962
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_args.class, metaDataMap);
10963
    }
10964
 
10965
    public insertAgent_args() {
10966
    }
10967
 
10968
    public insertAgent_args(
10969
      Agent agent,
10970
      List<String> role)
10971
    {
10972
      this();
10973
      this.agent = agent;
10974
      this.role = role;
10975
    }
10976
 
10977
    /**
10978
     * Performs a deep copy on <i>other</i>.
10979
     */
10980
    public insertAgent_args(insertAgent_args other) {
10981
      if (other.isSetAgent()) {
10982
        this.agent = new Agent(other.agent);
10983
      }
10984
      if (other.isSetRole()) {
10985
        List<String> __this__role = new ArrayList<String>();
10986
        for (String other_element : other.role) {
10987
          __this__role.add(other_element);
10988
        }
10989
        this.role = __this__role;
10990
      }
10991
    }
10992
 
10993
    public insertAgent_args deepCopy() {
10994
      return new insertAgent_args(this);
10995
    }
10996
 
10997
    @Override
10998
    public void clear() {
10999
      this.agent = null;
11000
      this.role = null;
11001
    }
11002
 
11003
    public Agent getAgent() {
11004
      return this.agent;
11005
    }
11006
 
11007
    public void setAgent(Agent agent) {
11008
      this.agent = agent;
11009
    }
11010
 
11011
    public void unsetAgent() {
11012
      this.agent = null;
11013
    }
11014
 
11015
    /** Returns true if field agent is set (has been assigned a value) and false otherwise */
11016
    public boolean isSetAgent() {
11017
      return this.agent != null;
11018
    }
11019
 
11020
    public void setAgentIsSet(boolean value) {
11021
      if (!value) {
11022
        this.agent = null;
11023
      }
11024
    }
11025
 
11026
    public int getRoleSize() {
11027
      return (this.role == null) ? 0 : this.role.size();
11028
    }
11029
 
11030
    public java.util.Iterator<String> getRoleIterator() {
11031
      return (this.role == null) ? null : this.role.iterator();
11032
    }
11033
 
11034
    public void addToRole(String elem) {
11035
      if (this.role == null) {
11036
        this.role = new ArrayList<String>();
11037
      }
11038
      this.role.add(elem);
11039
    }
11040
 
11041
    public List<String> getRole() {
11042
      return this.role;
11043
    }
11044
 
11045
    public void setRole(List<String> role) {
11046
      this.role = role;
11047
    }
11048
 
11049
    public void unsetRole() {
11050
      this.role = null;
11051
    }
11052
 
11053
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
11054
    public boolean isSetRole() {
11055
      return this.role != null;
11056
    }
11057
 
11058
    public void setRoleIsSet(boolean value) {
11059
      if (!value) {
11060
        this.role = null;
11061
      }
11062
    }
11063
 
11064
    public void setFieldValue(_Fields field, Object value) {
11065
      switch (field) {
11066
      case AGENT:
11067
        if (value == null) {
11068
          unsetAgent();
11069
        } else {
11070
          setAgent((Agent)value);
11071
        }
11072
        break;
11073
 
11074
      case ROLE:
11075
        if (value == null) {
11076
          unsetRole();
11077
        } else {
11078
          setRole((List<String>)value);
11079
        }
11080
        break;
11081
 
11082
      }
11083
    }
11084
 
11085
    public Object getFieldValue(_Fields field) {
11086
      switch (field) {
11087
      case AGENT:
11088
        return getAgent();
11089
 
11090
      case ROLE:
11091
        return getRole();
11092
 
11093
      }
11094
      throw new IllegalStateException();
11095
    }
11096
 
11097
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11098
    public boolean isSet(_Fields field) {
11099
      if (field == null) {
11100
        throw new IllegalArgumentException();
11101
      }
11102
 
11103
      switch (field) {
11104
      case AGENT:
11105
        return isSetAgent();
11106
      case ROLE:
11107
        return isSetRole();
11108
      }
11109
      throw new IllegalStateException();
11110
    }
11111
 
11112
    @Override
11113
    public boolean equals(Object that) {
11114
      if (that == null)
11115
        return false;
11116
      if (that instanceof insertAgent_args)
11117
        return this.equals((insertAgent_args)that);
11118
      return false;
11119
    }
11120
 
11121
    public boolean equals(insertAgent_args that) {
11122
      if (that == null)
11123
        return false;
11124
 
11125
      boolean this_present_agent = true && this.isSetAgent();
11126
      boolean that_present_agent = true && that.isSetAgent();
11127
      if (this_present_agent || that_present_agent) {
11128
        if (!(this_present_agent && that_present_agent))
11129
          return false;
11130
        if (!this.agent.equals(that.agent))
11131
          return false;
11132
      }
11133
 
11134
      boolean this_present_role = true && this.isSetRole();
11135
      boolean that_present_role = true && that.isSetRole();
11136
      if (this_present_role || that_present_role) {
11137
        if (!(this_present_role && that_present_role))
11138
          return false;
11139
        if (!this.role.equals(that.role))
11140
          return false;
11141
      }
11142
 
11143
      return true;
11144
    }
11145
 
11146
    @Override
11147
    public int hashCode() {
11148
      return 0;
11149
    }
11150
 
11151
    public int compareTo(insertAgent_args other) {
11152
      if (!getClass().equals(other.getClass())) {
11153
        return getClass().getName().compareTo(other.getClass().getName());
11154
      }
11155
 
11156
      int lastComparison = 0;
11157
      insertAgent_args typedOther = (insertAgent_args)other;
11158
 
11159
      lastComparison = Boolean.valueOf(isSetAgent()).compareTo(typedOther.isSetAgent());
11160
      if (lastComparison != 0) {
11161
        return lastComparison;
11162
      }
11163
      if (isSetAgent()) {
11164
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agent, typedOther.agent);
11165
        if (lastComparison != 0) {
11166
          return lastComparison;
11167
        }
11168
      }
11169
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
11170
      if (lastComparison != 0) {
11171
        return lastComparison;
11172
      }
11173
      if (isSetRole()) {
11174
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
11175
        if (lastComparison != 0) {
11176
          return lastComparison;
11177
        }
11178
      }
11179
      return 0;
11180
    }
11181
 
11182
    public _Fields fieldForId(int fieldId) {
11183
      return _Fields.findByThriftId(fieldId);
11184
    }
11185
 
11186
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11187
      org.apache.thrift.protocol.TField field;
11188
      iprot.readStructBegin();
11189
      while (true)
11190
      {
11191
        field = iprot.readFieldBegin();
11192
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11193
          break;
11194
        }
11195
        switch (field.id) {
11196
          case 1: // AGENT
11197
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11198
              this.agent = new Agent();
11199
              this.agent.read(iprot);
11200
            } else { 
11201
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11202
            }
11203
            break;
11204
          case 2: // ROLE
11205
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11206
              {
5287 amar.kumar 11207
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
11208
                this.role = new ArrayList<String>(_list40.size);
11209
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
4793 amar.kumar 11210
                {
5287 amar.kumar 11211
                  String _elem42; // required
11212
                  _elem42 = iprot.readString();
11213
                  this.role.add(_elem42);
4793 amar.kumar 11214
                }
11215
                iprot.readListEnd();
11216
              }
11217
            } else { 
11218
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11219
            }
11220
            break;
11221
          default:
11222
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11223
        }
11224
        iprot.readFieldEnd();
11225
      }
11226
      iprot.readStructEnd();
11227
      validate();
11228
    }
11229
 
11230
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11231
      validate();
11232
 
11233
      oprot.writeStructBegin(STRUCT_DESC);
11234
      if (this.agent != null) {
11235
        oprot.writeFieldBegin(AGENT_FIELD_DESC);
11236
        this.agent.write(oprot);
11237
        oprot.writeFieldEnd();
11238
      }
11239
      if (this.role != null) {
11240
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11241
        {
11242
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
5287 amar.kumar 11243
          for (String _iter43 : this.role)
4793 amar.kumar 11244
          {
5287 amar.kumar 11245
            oprot.writeString(_iter43);
4793 amar.kumar 11246
          }
11247
          oprot.writeListEnd();
11248
        }
11249
        oprot.writeFieldEnd();
11250
      }
11251
      oprot.writeFieldStop();
11252
      oprot.writeStructEnd();
11253
    }
11254
 
11255
    @Override
11256
    public String toString() {
11257
      StringBuilder sb = new StringBuilder("insertAgent_args(");
11258
      boolean first = true;
11259
 
11260
      sb.append("agent:");
11261
      if (this.agent == null) {
11262
        sb.append("null");
11263
      } else {
11264
        sb.append(this.agent);
11265
      }
11266
      first = false;
11267
      if (!first) sb.append(", ");
11268
      sb.append("role:");
11269
      if (this.role == null) {
11270
        sb.append("null");
11271
      } else {
11272
        sb.append(this.role);
11273
      }
11274
      first = false;
11275
      sb.append(")");
11276
      return sb.toString();
11277
    }
11278
 
11279
    public void validate() throws org.apache.thrift.TException {
11280
      // check for required fields
11281
    }
11282
 
11283
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11284
      try {
11285
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11286
      } catch (org.apache.thrift.TException te) {
11287
        throw new java.io.IOException(te);
11288
      }
11289
    }
11290
 
11291
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11292
      try {
11293
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11294
      } catch (org.apache.thrift.TException te) {
11295
        throw new java.io.IOException(te);
11296
      }
11297
    }
11298
 
11299
  }
11300
 
11301
  public static class insertAgent_result implements org.apache.thrift.TBase<insertAgent_result, insertAgent_result._Fields>, java.io.Serializable, Cloneable   {
11302
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_result");
11303
 
11304
 
11305
 
11306
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11307
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11308
;
11309
 
11310
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11311
 
11312
      static {
11313
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11314
          byName.put(field.getFieldName(), field);
11315
        }
11316
      }
11317
 
11318
      /**
11319
       * Find the _Fields constant that matches fieldId, or null if its not found.
11320
       */
11321
      public static _Fields findByThriftId(int fieldId) {
11322
        switch(fieldId) {
11323
          default:
11324
            return null;
11325
        }
11326
      }
11327
 
11328
      /**
11329
       * Find the _Fields constant that matches fieldId, throwing an exception
11330
       * if it is not found.
11331
       */
11332
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11333
        _Fields fields = findByThriftId(fieldId);
11334
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11335
        return fields;
11336
      }
11337
 
11338
      /**
11339
       * Find the _Fields constant that matches name, or null if its not found.
11340
       */
11341
      public static _Fields findByName(String name) {
11342
        return byName.get(name);
11343
      }
11344
 
11345
      private final short _thriftId;
11346
      private final String _fieldName;
11347
 
11348
      _Fields(short thriftId, String fieldName) {
11349
        _thriftId = thriftId;
11350
        _fieldName = fieldName;
11351
      }
11352
 
11353
      public short getThriftFieldId() {
11354
        return _thriftId;
11355
      }
11356
 
11357
      public String getFieldName() {
11358
        return _fieldName;
11359
      }
11360
    }
11361
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11362
    static {
11363
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11364
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11365
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_result.class, metaDataMap);
11366
    }
11367
 
11368
    public insertAgent_result() {
11369
    }
11370
 
11371
    /**
11372
     * Performs a deep copy on <i>other</i>.
11373
     */
11374
    public insertAgent_result(insertAgent_result other) {
11375
    }
11376
 
11377
    public insertAgent_result deepCopy() {
11378
      return new insertAgent_result(this);
11379
    }
11380
 
11381
    @Override
11382
    public void clear() {
11383
    }
11384
 
11385
    public void setFieldValue(_Fields field, Object value) {
11386
      switch (field) {
11387
      }
11388
    }
11389
 
11390
    public Object getFieldValue(_Fields field) {
11391
      switch (field) {
11392
      }
11393
      throw new IllegalStateException();
11394
    }
11395
 
11396
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11397
    public boolean isSet(_Fields field) {
11398
      if (field == null) {
11399
        throw new IllegalArgumentException();
11400
      }
11401
 
11402
      switch (field) {
11403
      }
11404
      throw new IllegalStateException();
11405
    }
11406
 
11407
    @Override
11408
    public boolean equals(Object that) {
11409
      if (that == null)
11410
        return false;
11411
      if (that instanceof insertAgent_result)
11412
        return this.equals((insertAgent_result)that);
11413
      return false;
11414
    }
11415
 
11416
    public boolean equals(insertAgent_result that) {
11417
      if (that == null)
11418
        return false;
11419
 
11420
      return true;
11421
    }
11422
 
11423
    @Override
11424
    public int hashCode() {
11425
      return 0;
11426
    }
11427
 
11428
    public int compareTo(insertAgent_result other) {
11429
      if (!getClass().equals(other.getClass())) {
11430
        return getClass().getName().compareTo(other.getClass().getName());
11431
      }
11432
 
11433
      int lastComparison = 0;
11434
      insertAgent_result typedOther = (insertAgent_result)other;
11435
 
11436
      return 0;
11437
    }
11438
 
11439
    public _Fields fieldForId(int fieldId) {
11440
      return _Fields.findByThriftId(fieldId);
11441
    }
11442
 
11443
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11444
      org.apache.thrift.protocol.TField field;
11445
      iprot.readStructBegin();
11446
      while (true)
11447
      {
11448
        field = iprot.readFieldBegin();
11449
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11450
          break;
11451
        }
11452
        switch (field.id) {
11453
          default:
11454
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11455
        }
11456
        iprot.readFieldEnd();
11457
      }
11458
      iprot.readStructEnd();
11459
      validate();
11460
    }
11461
 
11462
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11463
      oprot.writeStructBegin(STRUCT_DESC);
11464
 
11465
      oprot.writeFieldStop();
11466
      oprot.writeStructEnd();
11467
    }
11468
 
11469
    @Override
11470
    public String toString() {
11471
      StringBuilder sb = new StringBuilder("insertAgent_result(");
11472
      boolean first = true;
11473
 
11474
      sb.append(")");
11475
      return sb.toString();
11476
    }
11477
 
11478
    public void validate() throws org.apache.thrift.TException {
11479
      // check for required fields
11480
    }
11481
 
11482
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11483
      try {
11484
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11485
      } catch (org.apache.thrift.TException te) {
11486
        throw new java.io.IOException(te);
11487
      }
11488
    }
11489
 
11490
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11491
      try {
11492
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11493
      } catch (org.apache.thrift.TException te) {
11494
        throw new java.io.IOException(te);
11495
      }
11496
    }
11497
 
11498
  }
11499
 
5169 amar.kumar 11500
  public static class changeAgentRole_args implements org.apache.thrift.TBase<changeAgentRole_args, changeAgentRole_args._Fields>, java.io.Serializable, Cloneable   {
11501
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_args");
11502
 
11503
    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);
11504
    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);
11505
 
11506
    private long id; // required
11507
    private List<String> role; // required
11508
 
11509
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11510
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11511
      ID((short)1, "id"),
11512
      ROLE((short)2, "role");
11513
 
11514
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11515
 
11516
      static {
11517
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11518
          byName.put(field.getFieldName(), field);
11519
        }
11520
      }
11521
 
11522
      /**
11523
       * Find the _Fields constant that matches fieldId, or null if its not found.
11524
       */
11525
      public static _Fields findByThriftId(int fieldId) {
11526
        switch(fieldId) {
11527
          case 1: // ID
11528
            return ID;
11529
          case 2: // ROLE
11530
            return ROLE;
11531
          default:
11532
            return null;
11533
        }
11534
      }
11535
 
11536
      /**
11537
       * Find the _Fields constant that matches fieldId, throwing an exception
11538
       * if it is not found.
11539
       */
11540
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11541
        _Fields fields = findByThriftId(fieldId);
11542
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11543
        return fields;
11544
      }
11545
 
11546
      /**
11547
       * Find the _Fields constant that matches name, or null if its not found.
11548
       */
11549
      public static _Fields findByName(String name) {
11550
        return byName.get(name);
11551
      }
11552
 
11553
      private final short _thriftId;
11554
      private final String _fieldName;
11555
 
11556
      _Fields(short thriftId, String fieldName) {
11557
        _thriftId = thriftId;
11558
        _fieldName = fieldName;
11559
      }
11560
 
11561
      public short getThriftFieldId() {
11562
        return _thriftId;
11563
      }
11564
 
11565
      public String getFieldName() {
11566
        return _fieldName;
11567
      }
11568
    }
11569
 
11570
    // isset id assignments
11571
    private static final int __ID_ISSET_ID = 0;
11572
    private BitSet __isset_bit_vector = new BitSet(1);
11573
 
11574
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11575
    static {
11576
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11577
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11578
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11579
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11580
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11581
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
11582
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11583
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_args.class, metaDataMap);
11584
    }
11585
 
11586
    public changeAgentRole_args() {
11587
    }
11588
 
11589
    public changeAgentRole_args(
11590
      long id,
11591
      List<String> role)
11592
    {
11593
      this();
11594
      this.id = id;
11595
      setIdIsSet(true);
11596
      this.role = role;
11597
    }
11598
 
11599
    /**
11600
     * Performs a deep copy on <i>other</i>.
11601
     */
11602
    public changeAgentRole_args(changeAgentRole_args other) {
11603
      __isset_bit_vector.clear();
11604
      __isset_bit_vector.or(other.__isset_bit_vector);
11605
      this.id = other.id;
11606
      if (other.isSetRole()) {
11607
        List<String> __this__role = new ArrayList<String>();
11608
        for (String other_element : other.role) {
11609
          __this__role.add(other_element);
11610
        }
11611
        this.role = __this__role;
11612
      }
11613
    }
11614
 
11615
    public changeAgentRole_args deepCopy() {
11616
      return new changeAgentRole_args(this);
11617
    }
11618
 
11619
    @Override
11620
    public void clear() {
11621
      setIdIsSet(false);
11622
      this.id = 0;
11623
      this.role = null;
11624
    }
11625
 
11626
    public long getId() {
11627
      return this.id;
11628
    }
11629
 
11630
    public void setId(long id) {
11631
      this.id = id;
11632
      setIdIsSet(true);
11633
    }
11634
 
11635
    public void unsetId() {
11636
      __isset_bit_vector.clear(__ID_ISSET_ID);
11637
    }
11638
 
11639
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
11640
    public boolean isSetId() {
11641
      return __isset_bit_vector.get(__ID_ISSET_ID);
11642
    }
11643
 
11644
    public void setIdIsSet(boolean value) {
11645
      __isset_bit_vector.set(__ID_ISSET_ID, value);
11646
    }
11647
 
11648
    public int getRoleSize() {
11649
      return (this.role == null) ? 0 : this.role.size();
11650
    }
11651
 
11652
    public java.util.Iterator<String> getRoleIterator() {
11653
      return (this.role == null) ? null : this.role.iterator();
11654
    }
11655
 
11656
    public void addToRole(String elem) {
11657
      if (this.role == null) {
11658
        this.role = new ArrayList<String>();
11659
      }
11660
      this.role.add(elem);
11661
    }
11662
 
11663
    public List<String> getRole() {
11664
      return this.role;
11665
    }
11666
 
11667
    public void setRole(List<String> role) {
11668
      this.role = role;
11669
    }
11670
 
11671
    public void unsetRole() {
11672
      this.role = null;
11673
    }
11674
 
11675
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
11676
    public boolean isSetRole() {
11677
      return this.role != null;
11678
    }
11679
 
11680
    public void setRoleIsSet(boolean value) {
11681
      if (!value) {
11682
        this.role = null;
11683
      }
11684
    }
11685
 
11686
    public void setFieldValue(_Fields field, Object value) {
11687
      switch (field) {
11688
      case ID:
11689
        if (value == null) {
11690
          unsetId();
11691
        } else {
11692
          setId((Long)value);
11693
        }
11694
        break;
11695
 
11696
      case ROLE:
11697
        if (value == null) {
11698
          unsetRole();
11699
        } else {
11700
          setRole((List<String>)value);
11701
        }
11702
        break;
11703
 
11704
      }
11705
    }
11706
 
11707
    public Object getFieldValue(_Fields field) {
11708
      switch (field) {
11709
      case ID:
11710
        return Long.valueOf(getId());
11711
 
11712
      case ROLE:
11713
        return getRole();
11714
 
11715
      }
11716
      throw new IllegalStateException();
11717
    }
11718
 
11719
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11720
    public boolean isSet(_Fields field) {
11721
      if (field == null) {
11722
        throw new IllegalArgumentException();
11723
      }
11724
 
11725
      switch (field) {
11726
      case ID:
11727
        return isSetId();
11728
      case ROLE:
11729
        return isSetRole();
11730
      }
11731
      throw new IllegalStateException();
11732
    }
11733
 
11734
    @Override
11735
    public boolean equals(Object that) {
11736
      if (that == null)
11737
        return false;
11738
      if (that instanceof changeAgentRole_args)
11739
        return this.equals((changeAgentRole_args)that);
11740
      return false;
11741
    }
11742
 
11743
    public boolean equals(changeAgentRole_args that) {
11744
      if (that == null)
11745
        return false;
11746
 
11747
      boolean this_present_id = true;
11748
      boolean that_present_id = true;
11749
      if (this_present_id || that_present_id) {
11750
        if (!(this_present_id && that_present_id))
11751
          return false;
11752
        if (this.id != that.id)
11753
          return false;
11754
      }
11755
 
11756
      boolean this_present_role = true && this.isSetRole();
11757
      boolean that_present_role = true && that.isSetRole();
11758
      if (this_present_role || that_present_role) {
11759
        if (!(this_present_role && that_present_role))
11760
          return false;
11761
        if (!this.role.equals(that.role))
11762
          return false;
11763
      }
11764
 
11765
      return true;
11766
    }
11767
 
11768
    @Override
11769
    public int hashCode() {
11770
      return 0;
11771
    }
11772
 
11773
    public int compareTo(changeAgentRole_args other) {
11774
      if (!getClass().equals(other.getClass())) {
11775
        return getClass().getName().compareTo(other.getClass().getName());
11776
      }
11777
 
11778
      int lastComparison = 0;
11779
      changeAgentRole_args typedOther = (changeAgentRole_args)other;
11780
 
11781
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
11782
      if (lastComparison != 0) {
11783
        return lastComparison;
11784
      }
11785
      if (isSetId()) {
11786
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
11787
        if (lastComparison != 0) {
11788
          return lastComparison;
11789
        }
11790
      }
11791
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
11792
      if (lastComparison != 0) {
11793
        return lastComparison;
11794
      }
11795
      if (isSetRole()) {
11796
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
11797
        if (lastComparison != 0) {
11798
          return lastComparison;
11799
        }
11800
      }
11801
      return 0;
11802
    }
11803
 
11804
    public _Fields fieldForId(int fieldId) {
11805
      return _Fields.findByThriftId(fieldId);
11806
    }
11807
 
11808
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11809
      org.apache.thrift.protocol.TField field;
11810
      iprot.readStructBegin();
11811
      while (true)
11812
      {
11813
        field = iprot.readFieldBegin();
11814
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11815
          break;
11816
        }
11817
        switch (field.id) {
11818
          case 1: // ID
11819
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11820
              this.id = iprot.readI64();
11821
              setIdIsSet(true);
11822
            } else { 
11823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11824
            }
11825
            break;
11826
          case 2: // ROLE
11827
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11828
              {
5287 amar.kumar 11829
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
11830
                this.role = new ArrayList<String>(_list44.size);
11831
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
5169 amar.kumar 11832
                {
5287 amar.kumar 11833
                  String _elem46; // required
11834
                  _elem46 = iprot.readString();
11835
                  this.role.add(_elem46);
5169 amar.kumar 11836
                }
11837
                iprot.readListEnd();
11838
              }
11839
            } else { 
11840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11841
            }
11842
            break;
11843
          default:
11844
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11845
        }
11846
        iprot.readFieldEnd();
11847
      }
11848
      iprot.readStructEnd();
11849
      validate();
11850
    }
11851
 
11852
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11853
      validate();
11854
 
11855
      oprot.writeStructBegin(STRUCT_DESC);
11856
      oprot.writeFieldBegin(ID_FIELD_DESC);
11857
      oprot.writeI64(this.id);
11858
      oprot.writeFieldEnd();
11859
      if (this.role != null) {
11860
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11861
        {
11862
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
5287 amar.kumar 11863
          for (String _iter47 : this.role)
5169 amar.kumar 11864
          {
5287 amar.kumar 11865
            oprot.writeString(_iter47);
5169 amar.kumar 11866
          }
11867
          oprot.writeListEnd();
11868
        }
11869
        oprot.writeFieldEnd();
11870
      }
11871
      oprot.writeFieldStop();
11872
      oprot.writeStructEnd();
11873
    }
11874
 
11875
    @Override
11876
    public String toString() {
11877
      StringBuilder sb = new StringBuilder("changeAgentRole_args(");
11878
      boolean first = true;
11879
 
11880
      sb.append("id:");
11881
      sb.append(this.id);
11882
      first = false;
11883
      if (!first) sb.append(", ");
11884
      sb.append("role:");
11885
      if (this.role == null) {
11886
        sb.append("null");
11887
      } else {
11888
        sb.append(this.role);
11889
      }
11890
      first = false;
11891
      sb.append(")");
11892
      return sb.toString();
11893
    }
11894
 
11895
    public void validate() throws org.apache.thrift.TException {
11896
      // check for required fields
11897
    }
11898
 
11899
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11900
      try {
11901
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11902
      } catch (org.apache.thrift.TException te) {
11903
        throw new java.io.IOException(te);
11904
      }
11905
    }
11906
 
11907
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11908
      try {
11909
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
11910
        __isset_bit_vector = new BitSet(1);
11911
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11912
      } catch (org.apache.thrift.TException te) {
11913
        throw new java.io.IOException(te);
11914
      }
11915
    }
11916
 
11917
  }
11918
 
11919
  public static class changeAgentRole_result implements org.apache.thrift.TBase<changeAgentRole_result, changeAgentRole_result._Fields>, java.io.Serializable, Cloneable   {
11920
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_result");
11921
 
11922
 
11923
 
11924
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11925
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11926
;
11927
 
11928
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11929
 
11930
      static {
11931
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11932
          byName.put(field.getFieldName(), field);
11933
        }
11934
      }
11935
 
11936
      /**
11937
       * Find the _Fields constant that matches fieldId, or null if its not found.
11938
       */
11939
      public static _Fields findByThriftId(int fieldId) {
11940
        switch(fieldId) {
11941
          default:
11942
            return null;
11943
        }
11944
      }
11945
 
11946
      /**
11947
       * Find the _Fields constant that matches fieldId, throwing an exception
11948
       * if it is not found.
11949
       */
11950
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11951
        _Fields fields = findByThriftId(fieldId);
11952
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11953
        return fields;
11954
      }
11955
 
11956
      /**
11957
       * Find the _Fields constant that matches name, or null if its not found.
11958
       */
11959
      public static _Fields findByName(String name) {
11960
        return byName.get(name);
11961
      }
11962
 
11963
      private final short _thriftId;
11964
      private final String _fieldName;
11965
 
11966
      _Fields(short thriftId, String fieldName) {
11967
        _thriftId = thriftId;
11968
        _fieldName = fieldName;
11969
      }
11970
 
11971
      public short getThriftFieldId() {
11972
        return _thriftId;
11973
      }
11974
 
11975
      public String getFieldName() {
11976
        return _fieldName;
11977
      }
11978
    }
11979
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11980
    static {
11981
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11982
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11983
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_result.class, metaDataMap);
11984
    }
11985
 
11986
    public changeAgentRole_result() {
11987
    }
11988
 
11989
    /**
11990
     * Performs a deep copy on <i>other</i>.
11991
     */
11992
    public changeAgentRole_result(changeAgentRole_result other) {
11993
    }
11994
 
11995
    public changeAgentRole_result deepCopy() {
11996
      return new changeAgentRole_result(this);
11997
    }
11998
 
11999
    @Override
12000
    public void clear() {
12001
    }
12002
 
12003
    public void setFieldValue(_Fields field, Object value) {
12004
      switch (field) {
12005
      }
12006
    }
12007
 
12008
    public Object getFieldValue(_Fields field) {
12009
      switch (field) {
12010
      }
12011
      throw new IllegalStateException();
12012
    }
12013
 
12014
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12015
    public boolean isSet(_Fields field) {
12016
      if (field == null) {
12017
        throw new IllegalArgumentException();
12018
      }
12019
 
12020
      switch (field) {
12021
      }
12022
      throw new IllegalStateException();
12023
    }
12024
 
12025
    @Override
12026
    public boolean equals(Object that) {
12027
      if (that == null)
12028
        return false;
12029
      if (that instanceof changeAgentRole_result)
12030
        return this.equals((changeAgentRole_result)that);
12031
      return false;
12032
    }
12033
 
12034
    public boolean equals(changeAgentRole_result that) {
12035
      if (that == null)
12036
        return false;
12037
 
12038
      return true;
12039
    }
12040
 
12041
    @Override
12042
    public int hashCode() {
12043
      return 0;
12044
    }
12045
 
12046
    public int compareTo(changeAgentRole_result other) {
12047
      if (!getClass().equals(other.getClass())) {
12048
        return getClass().getName().compareTo(other.getClass().getName());
12049
      }
12050
 
12051
      int lastComparison = 0;
12052
      changeAgentRole_result typedOther = (changeAgentRole_result)other;
12053
 
12054
      return 0;
12055
    }
12056
 
12057
    public _Fields fieldForId(int fieldId) {
12058
      return _Fields.findByThriftId(fieldId);
12059
    }
12060
 
12061
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12062
      org.apache.thrift.protocol.TField field;
12063
      iprot.readStructBegin();
12064
      while (true)
12065
      {
12066
        field = iprot.readFieldBegin();
12067
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12068
          break;
12069
        }
12070
        switch (field.id) {
12071
          default:
12072
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12073
        }
12074
        iprot.readFieldEnd();
12075
      }
12076
      iprot.readStructEnd();
12077
      validate();
12078
    }
12079
 
12080
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12081
      oprot.writeStructBegin(STRUCT_DESC);
12082
 
12083
      oprot.writeFieldStop();
12084
      oprot.writeStructEnd();
12085
    }
12086
 
12087
    @Override
12088
    public String toString() {
12089
      StringBuilder sb = new StringBuilder("changeAgentRole_result(");
12090
      boolean first = true;
12091
 
12092
      sb.append(")");
12093
      return sb.toString();
12094
    }
12095
 
12096
    public void validate() throws org.apache.thrift.TException {
12097
      // check for required fields
12098
    }
12099
 
12100
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12101
      try {
12102
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12103
      } catch (org.apache.thrift.TException te) {
12104
        throw new java.io.IOException(te);
12105
      }
12106
    }
12107
 
12108
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12109
      try {
12110
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12111
      } catch (org.apache.thrift.TException te) {
12112
        throw new java.io.IOException(te);
12113
      }
12114
    }
12115
 
12116
  }
12117
 
12118
  public static class getOpenTicketCountForAgent_args implements org.apache.thrift.TBase<getOpenTicketCountForAgent_args, getOpenTicketCountForAgent_args._Fields>, java.io.Serializable, Cloneable   {
12119
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_args");
12120
 
12121
    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);
12122
 
12123
    private long agentId; // required
12124
 
12125
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12126
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12127
      AGENT_ID((short)1, "agentId");
12128
 
12129
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12130
 
12131
      static {
12132
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12133
          byName.put(field.getFieldName(), field);
12134
        }
12135
      }
12136
 
12137
      /**
12138
       * Find the _Fields constant that matches fieldId, or null if its not found.
12139
       */
12140
      public static _Fields findByThriftId(int fieldId) {
12141
        switch(fieldId) {
12142
          case 1: // AGENT_ID
12143
            return AGENT_ID;
12144
          default:
12145
            return null;
12146
        }
12147
      }
12148
 
12149
      /**
12150
       * Find the _Fields constant that matches fieldId, throwing an exception
12151
       * if it is not found.
12152
       */
12153
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12154
        _Fields fields = findByThriftId(fieldId);
12155
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12156
        return fields;
12157
      }
12158
 
12159
      /**
12160
       * Find the _Fields constant that matches name, or null if its not found.
12161
       */
12162
      public static _Fields findByName(String name) {
12163
        return byName.get(name);
12164
      }
12165
 
12166
      private final short _thriftId;
12167
      private final String _fieldName;
12168
 
12169
      _Fields(short thriftId, String fieldName) {
12170
        _thriftId = thriftId;
12171
        _fieldName = fieldName;
12172
      }
12173
 
12174
      public short getThriftFieldId() {
12175
        return _thriftId;
12176
      }
12177
 
12178
      public String getFieldName() {
12179
        return _fieldName;
12180
      }
12181
    }
12182
 
12183
    // isset id assignments
12184
    private static final int __AGENTID_ISSET_ID = 0;
12185
    private BitSet __isset_bit_vector = new BitSet(1);
12186
 
12187
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12188
    static {
12189
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12190
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12191
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12192
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12193
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_args.class, metaDataMap);
12194
    }
12195
 
12196
    public getOpenTicketCountForAgent_args() {
12197
    }
12198
 
12199
    public getOpenTicketCountForAgent_args(
12200
      long agentId)
12201
    {
12202
      this();
12203
      this.agentId = agentId;
12204
      setAgentIdIsSet(true);
12205
    }
12206
 
12207
    /**
12208
     * Performs a deep copy on <i>other</i>.
12209
     */
12210
    public getOpenTicketCountForAgent_args(getOpenTicketCountForAgent_args other) {
12211
      __isset_bit_vector.clear();
12212
      __isset_bit_vector.or(other.__isset_bit_vector);
12213
      this.agentId = other.agentId;
12214
    }
12215
 
12216
    public getOpenTicketCountForAgent_args deepCopy() {
12217
      return new getOpenTicketCountForAgent_args(this);
12218
    }
12219
 
12220
    @Override
12221
    public void clear() {
12222
      setAgentIdIsSet(false);
12223
      this.agentId = 0;
12224
    }
12225
 
12226
    public long getAgentId() {
12227
      return this.agentId;
12228
    }
12229
 
12230
    public void setAgentId(long agentId) {
12231
      this.agentId = agentId;
12232
      setAgentIdIsSet(true);
12233
    }
12234
 
12235
    public void unsetAgentId() {
12236
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
12237
    }
12238
 
12239
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
12240
    public boolean isSetAgentId() {
12241
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
12242
    }
12243
 
12244
    public void setAgentIdIsSet(boolean value) {
12245
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
12246
    }
12247
 
12248
    public void setFieldValue(_Fields field, Object value) {
12249
      switch (field) {
12250
      case AGENT_ID:
12251
        if (value == null) {
12252
          unsetAgentId();
12253
        } else {
12254
          setAgentId((Long)value);
12255
        }
12256
        break;
12257
 
12258
      }
12259
    }
12260
 
12261
    public Object getFieldValue(_Fields field) {
12262
      switch (field) {
12263
      case AGENT_ID:
12264
        return Long.valueOf(getAgentId());
12265
 
12266
      }
12267
      throw new IllegalStateException();
12268
    }
12269
 
12270
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12271
    public boolean isSet(_Fields field) {
12272
      if (field == null) {
12273
        throw new IllegalArgumentException();
12274
      }
12275
 
12276
      switch (field) {
12277
      case AGENT_ID:
12278
        return isSetAgentId();
12279
      }
12280
      throw new IllegalStateException();
12281
    }
12282
 
12283
    @Override
12284
    public boolean equals(Object that) {
12285
      if (that == null)
12286
        return false;
12287
      if (that instanceof getOpenTicketCountForAgent_args)
12288
        return this.equals((getOpenTicketCountForAgent_args)that);
12289
      return false;
12290
    }
12291
 
12292
    public boolean equals(getOpenTicketCountForAgent_args that) {
12293
      if (that == null)
12294
        return false;
12295
 
12296
      boolean this_present_agentId = true;
12297
      boolean that_present_agentId = true;
12298
      if (this_present_agentId || that_present_agentId) {
12299
        if (!(this_present_agentId && that_present_agentId))
12300
          return false;
12301
        if (this.agentId != that.agentId)
12302
          return false;
12303
      }
12304
 
12305
      return true;
12306
    }
12307
 
12308
    @Override
12309
    public int hashCode() {
12310
      return 0;
12311
    }
12312
 
12313
    public int compareTo(getOpenTicketCountForAgent_args other) {
12314
      if (!getClass().equals(other.getClass())) {
12315
        return getClass().getName().compareTo(other.getClass().getName());
12316
      }
12317
 
12318
      int lastComparison = 0;
12319
      getOpenTicketCountForAgent_args typedOther = (getOpenTicketCountForAgent_args)other;
12320
 
12321
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
12322
      if (lastComparison != 0) {
12323
        return lastComparison;
12324
      }
12325
      if (isSetAgentId()) {
12326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
12327
        if (lastComparison != 0) {
12328
          return lastComparison;
12329
        }
12330
      }
12331
      return 0;
12332
    }
12333
 
12334
    public _Fields fieldForId(int fieldId) {
12335
      return _Fields.findByThriftId(fieldId);
12336
    }
12337
 
12338
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12339
      org.apache.thrift.protocol.TField field;
12340
      iprot.readStructBegin();
12341
      while (true)
12342
      {
12343
        field = iprot.readFieldBegin();
12344
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12345
          break;
12346
        }
12347
        switch (field.id) {
12348
          case 1: // AGENT_ID
12349
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12350
              this.agentId = iprot.readI64();
12351
              setAgentIdIsSet(true);
12352
            } else { 
12353
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12354
            }
12355
            break;
12356
          default:
12357
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12358
        }
12359
        iprot.readFieldEnd();
12360
      }
12361
      iprot.readStructEnd();
12362
      validate();
12363
    }
12364
 
12365
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12366
      validate();
12367
 
12368
      oprot.writeStructBegin(STRUCT_DESC);
12369
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
12370
      oprot.writeI64(this.agentId);
12371
      oprot.writeFieldEnd();
12372
      oprot.writeFieldStop();
12373
      oprot.writeStructEnd();
12374
    }
12375
 
12376
    @Override
12377
    public String toString() {
12378
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_args(");
12379
      boolean first = true;
12380
 
12381
      sb.append("agentId:");
12382
      sb.append(this.agentId);
12383
      first = false;
12384
      sb.append(")");
12385
      return sb.toString();
12386
    }
12387
 
12388
    public void validate() throws org.apache.thrift.TException {
12389
      // check for required fields
12390
    }
12391
 
12392
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12393
      try {
12394
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12395
      } catch (org.apache.thrift.TException te) {
12396
        throw new java.io.IOException(te);
12397
      }
12398
    }
12399
 
12400
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12401
      try {
12402
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12403
        __isset_bit_vector = new BitSet(1);
12404
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12405
      } catch (org.apache.thrift.TException te) {
12406
        throw new java.io.IOException(te);
12407
      }
12408
    }
12409
 
12410
  }
12411
 
12412
  public static class getOpenTicketCountForAgent_result implements org.apache.thrift.TBase<getOpenTicketCountForAgent_result, getOpenTicketCountForAgent_result._Fields>, java.io.Serializable, Cloneable   {
12413
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_result");
12414
 
12415
    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);
12416
 
12417
    private int success; // required
12418
 
12419
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12420
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12421
      SUCCESS((short)0, "success");
12422
 
12423
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12424
 
12425
      static {
12426
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12427
          byName.put(field.getFieldName(), field);
12428
        }
12429
      }
12430
 
12431
      /**
12432
       * Find the _Fields constant that matches fieldId, or null if its not found.
12433
       */
12434
      public static _Fields findByThriftId(int fieldId) {
12435
        switch(fieldId) {
12436
          case 0: // SUCCESS
12437
            return SUCCESS;
12438
          default:
12439
            return null;
12440
        }
12441
      }
12442
 
12443
      /**
12444
       * Find the _Fields constant that matches fieldId, throwing an exception
12445
       * if it is not found.
12446
       */
12447
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12448
        _Fields fields = findByThriftId(fieldId);
12449
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12450
        return fields;
12451
      }
12452
 
12453
      /**
12454
       * Find the _Fields constant that matches name, or null if its not found.
12455
       */
12456
      public static _Fields findByName(String name) {
12457
        return byName.get(name);
12458
      }
12459
 
12460
      private final short _thriftId;
12461
      private final String _fieldName;
12462
 
12463
      _Fields(short thriftId, String fieldName) {
12464
        _thriftId = thriftId;
12465
        _fieldName = fieldName;
12466
      }
12467
 
12468
      public short getThriftFieldId() {
12469
        return _thriftId;
12470
      }
12471
 
12472
      public String getFieldName() {
12473
        return _fieldName;
12474
      }
12475
    }
12476
 
12477
    // isset id assignments
12478
    private static final int __SUCCESS_ISSET_ID = 0;
12479
    private BitSet __isset_bit_vector = new BitSet(1);
12480
 
12481
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12482
    static {
12483
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12484
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12485
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12486
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12487
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_result.class, metaDataMap);
12488
    }
12489
 
12490
    public getOpenTicketCountForAgent_result() {
12491
    }
12492
 
12493
    public getOpenTicketCountForAgent_result(
12494
      int success)
12495
    {
12496
      this();
12497
      this.success = success;
12498
      setSuccessIsSet(true);
12499
    }
12500
 
12501
    /**
12502
     * Performs a deep copy on <i>other</i>.
12503
     */
12504
    public getOpenTicketCountForAgent_result(getOpenTicketCountForAgent_result other) {
12505
      __isset_bit_vector.clear();
12506
      __isset_bit_vector.or(other.__isset_bit_vector);
12507
      this.success = other.success;
12508
    }
12509
 
12510
    public getOpenTicketCountForAgent_result deepCopy() {
12511
      return new getOpenTicketCountForAgent_result(this);
12512
    }
12513
 
12514
    @Override
12515
    public void clear() {
12516
      setSuccessIsSet(false);
12517
      this.success = 0;
12518
    }
12519
 
12520
    public int getSuccess() {
12521
      return this.success;
12522
    }
12523
 
12524
    public void setSuccess(int success) {
12525
      this.success = success;
12526
      setSuccessIsSet(true);
12527
    }
12528
 
12529
    public void unsetSuccess() {
12530
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12531
    }
12532
 
12533
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12534
    public boolean isSetSuccess() {
12535
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12536
    }
12537
 
12538
    public void setSuccessIsSet(boolean value) {
12539
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12540
    }
12541
 
12542
    public void setFieldValue(_Fields field, Object value) {
12543
      switch (field) {
12544
      case SUCCESS:
12545
        if (value == null) {
12546
          unsetSuccess();
12547
        } else {
12548
          setSuccess((Integer)value);
12549
        }
12550
        break;
12551
 
12552
      }
12553
    }
12554
 
12555
    public Object getFieldValue(_Fields field) {
12556
      switch (field) {
12557
      case SUCCESS:
12558
        return Integer.valueOf(getSuccess());
12559
 
12560
      }
12561
      throw new IllegalStateException();
12562
    }
12563
 
12564
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12565
    public boolean isSet(_Fields field) {
12566
      if (field == null) {
12567
        throw new IllegalArgumentException();
12568
      }
12569
 
12570
      switch (field) {
12571
      case SUCCESS:
12572
        return isSetSuccess();
12573
      }
12574
      throw new IllegalStateException();
12575
    }
12576
 
12577
    @Override
12578
    public boolean equals(Object that) {
12579
      if (that == null)
12580
        return false;
12581
      if (that instanceof getOpenTicketCountForAgent_result)
12582
        return this.equals((getOpenTicketCountForAgent_result)that);
12583
      return false;
12584
    }
12585
 
12586
    public boolean equals(getOpenTicketCountForAgent_result that) {
12587
      if (that == null)
12588
        return false;
12589
 
12590
      boolean this_present_success = true;
12591
      boolean that_present_success = true;
12592
      if (this_present_success || that_present_success) {
12593
        if (!(this_present_success && that_present_success))
12594
          return false;
12595
        if (this.success != that.success)
12596
          return false;
12597
      }
12598
 
12599
      return true;
12600
    }
12601
 
12602
    @Override
12603
    public int hashCode() {
12604
      return 0;
12605
    }
12606
 
12607
    public int compareTo(getOpenTicketCountForAgent_result other) {
12608
      if (!getClass().equals(other.getClass())) {
12609
        return getClass().getName().compareTo(other.getClass().getName());
12610
      }
12611
 
12612
      int lastComparison = 0;
12613
      getOpenTicketCountForAgent_result typedOther = (getOpenTicketCountForAgent_result)other;
12614
 
12615
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12616
      if (lastComparison != 0) {
12617
        return lastComparison;
12618
      }
12619
      if (isSetSuccess()) {
12620
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12621
        if (lastComparison != 0) {
12622
          return lastComparison;
12623
        }
12624
      }
12625
      return 0;
12626
    }
12627
 
12628
    public _Fields fieldForId(int fieldId) {
12629
      return _Fields.findByThriftId(fieldId);
12630
    }
12631
 
12632
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12633
      org.apache.thrift.protocol.TField field;
12634
      iprot.readStructBegin();
12635
      while (true)
12636
      {
12637
        field = iprot.readFieldBegin();
12638
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12639
          break;
12640
        }
12641
        switch (field.id) {
12642
          case 0: // SUCCESS
12643
            if (field.type == org.apache.thrift.protocol.TType.I32) {
12644
              this.success = iprot.readI32();
12645
              setSuccessIsSet(true);
12646
            } else { 
12647
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12648
            }
12649
            break;
12650
          default:
12651
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12652
        }
12653
        iprot.readFieldEnd();
12654
      }
12655
      iprot.readStructEnd();
12656
      validate();
12657
    }
12658
 
12659
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12660
      oprot.writeStructBegin(STRUCT_DESC);
12661
 
12662
      if (this.isSetSuccess()) {
12663
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12664
        oprot.writeI32(this.success);
12665
        oprot.writeFieldEnd();
12666
      }
12667
      oprot.writeFieldStop();
12668
      oprot.writeStructEnd();
12669
    }
12670
 
12671
    @Override
12672
    public String toString() {
12673
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_result(");
12674
      boolean first = true;
12675
 
12676
      sb.append("success:");
12677
      sb.append(this.success);
12678
      first = false;
12679
      sb.append(")");
12680
      return sb.toString();
12681
    }
12682
 
12683
    public void validate() throws org.apache.thrift.TException {
12684
      // check for required fields
12685
    }
12686
 
12687
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12688
      try {
12689
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12690
      } catch (org.apache.thrift.TException te) {
12691
        throw new java.io.IOException(te);
12692
      }
12693
    }
12694
 
12695
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12696
      try {
12697
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12698
      } catch (org.apache.thrift.TException te) {
12699
        throw new java.io.IOException(te);
12700
      }
12701
    }
12702
 
12703
  }
12704
 
3028 mandeep.dh 12705
}