Subversion Repositories SmartDukaan

Rev

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