Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
3028 mandeep.dh 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
3028 mandeep.dh 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.crm;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
3028 mandeep.dh 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class CRMService {
24
 
3374 rajveer 25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
3028 mandeep.dh 26
 
3430 rajveer 27
    public List<Ticket> getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException;
3028 mandeep.dh 28
 
3430 rajveer 29
    public List<Ticket> getUnassignedTickets() throws org.apache.thrift.TException;
3087 mandeep.dh 30
 
3430 rajveer 31
    public void updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
3028 mandeep.dh 32
 
3430 rajveer 33
    public long insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
3028 mandeep.dh 34
 
4793 amar.kumar 35
    public void unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException;
36
 
3430 rajveer 37
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException;
3028 mandeep.dh 38
 
3430 rajveer 39
    public long insertActivity(Activity activity) throws org.apache.thrift.TException;
3028 mandeep.dh 40
 
3430 rajveer 41
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException;
3087 mandeep.dh 42
 
3430 rajveer 43
    public List<Agent> getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException;
3028 mandeep.dh 44
 
5287 amar.kumar 45
    public List<Agent> getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException;
46
 
3430 rajveer 47
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException;
3087 mandeep.dh 48
 
3430 rajveer 49
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException;
3087 mandeep.dh 50
 
3430 rajveer 51
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException;
3087 mandeep.dh 52
 
3430 rajveer 53
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException;
3339 mandeep.dh 54
 
3430 rajveer 55
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException;
3339 mandeep.dh 56
 
4793 amar.kumar 57
    public void changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException;
58
 
59
    public void insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException;
60
 
5169 amar.kumar 61
    public void changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException;
62
 
63
    public int getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException;
64
 
5909 amar.kumar 65
    public Map<String,Long> getOpenTicketsMap() throws org.apache.thrift.TException;
66
 
8370 manish.sha 67
    public Map<String,String> getFedexReconciliationDataMap(List<Long> order_ids, String method_key) throws org.apache.thrift.TException;
68
 
3028 mandeep.dh 69
  }
70
 
3430 rajveer 71
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
72
 
73
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
74
 
75
    public void getUnassignedTickets(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUnassignedTickets_call> resultHandler) throws org.apache.thrift.TException;
76
 
77
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTicket_call> resultHandler) throws org.apache.thrift.TException;
78
 
79
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertTicket_call> resultHandler) throws org.apache.thrift.TException;
80
 
4793 amar.kumar 81
    public void unassignAgentTickets(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.unassignAgentTickets_call> resultHandler) throws org.apache.thrift.TException;
82
 
3430 rajveer 83
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivities_call> resultHandler) throws org.apache.thrift.TException;
84
 
85
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertActivity_call> resultHandler) throws org.apache.thrift.TException;
86
 
87
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAsRead_call> resultHandler) throws org.apache.thrift.TException;
88
 
89
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAgents_call> resultHandler) throws org.apache.thrift.TException;
90
 
5287 amar.kumar 91
    public void getInactiveAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getInactiveAgents_call> resultHandler) throws org.apache.thrift.TException;
92
 
3430 rajveer 93
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException;
94
 
95
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException;
96
 
97
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException;
98
 
99
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
100
 
101
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
102
 
4793 amar.kumar 103
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException;
104
 
105
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertAgent_call> resultHandler) throws org.apache.thrift.TException;
106
 
5169 amar.kumar 107
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentRole_call> resultHandler) throws org.apache.thrift.TException;
108
 
109
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException;
110
 
5909 amar.kumar 111
    public void getOpenTicketsMap(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getOpenTicketsMap_call> resultHandler) throws org.apache.thrift.TException;
112
 
8370 manish.sha 113
    public void getFedexReconciliationDataMap(List<Long> order_ids, String method_key, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFedexReconciliationDataMap_call> resultHandler) throws org.apache.thrift.TException;
114
 
3430 rajveer 115
  }
116
 
3374 rajveer 117
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
3430 rajveer 118
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
119
      public Factory() {}
120
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
121
        return new Client(prot);
122
      }
123
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
124
        return new Client(iprot, oprot);
125
      }
126
    }
127
 
128
    public Client(org.apache.thrift.protocol.TProtocol prot)
3028 mandeep.dh 129
    {
3430 rajveer 130
      super(prot, prot);
3028 mandeep.dh 131
    }
132
 
3430 rajveer 133
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
3374 rajveer 134
      super(iprot, oprot);
3028 mandeep.dh 135
    }
136
 
3430 rajveer 137
    public List<Ticket> getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 138
    {
3390 mandeep.dh 139
      send_getTickets(searchFilter);
3028 mandeep.dh 140
      return recv_getTickets();
141
    }
142
 
3430 rajveer 143
    public void send_getTickets(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 144
    {
145
      getTickets_args args = new getTickets_args();
3430 rajveer 146
      args.setSearchFilter(searchFilter);
147
      sendBase("getTickets", args);
3028 mandeep.dh 148
    }
149
 
3430 rajveer 150
    public List<Ticket> recv_getTickets() throws org.apache.thrift.TException
3028 mandeep.dh 151
    {
152
      getTickets_result result = new getTickets_result();
3430 rajveer 153
      receiveBase(result, "getTickets");
3028 mandeep.dh 154
      if (result.isSetSuccess()) {
155
        return result.success;
156
      }
3430 rajveer 157
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
3028 mandeep.dh 158
    }
159
 
3430 rajveer 160
    public List<Ticket> getUnassignedTickets() throws org.apache.thrift.TException
3087 mandeep.dh 161
    {
3137 mandeep.dh 162
      send_getUnassignedTickets();
163
      return recv_getUnassignedTickets();
3087 mandeep.dh 164
    }
165
 
3430 rajveer 166
    public void send_getUnassignedTickets() throws org.apache.thrift.TException
3087 mandeep.dh 167
    {
3137 mandeep.dh 168
      getUnassignedTickets_args args = new getUnassignedTickets_args();
3430 rajveer 169
      sendBase("getUnassignedTickets", args);
3087 mandeep.dh 170
    }
171
 
3430 rajveer 172
    public List<Ticket> recv_getUnassignedTickets() throws org.apache.thrift.TException
3087 mandeep.dh 173
    {
3137 mandeep.dh 174
      getUnassignedTickets_result result = new getUnassignedTickets_result();
3430 rajveer 175
      receiveBase(result, "getUnassignedTickets");
3087 mandeep.dh 176
      if (result.isSetSuccess()) {
177
        return result.success;
178
      }
3430 rajveer 179
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUnassignedTickets failed: unknown result");
3087 mandeep.dh 180
    }
181
 
3430 rajveer 182
    public void updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 183
    {
3206 mandeep.dh 184
      send_updateTicket(ticket, activity);
3028 mandeep.dh 185
      recv_updateTicket();
186
    }
187
 
3430 rajveer 188
    public void send_updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 189
    {
190
      updateTicket_args args = new updateTicket_args();
3430 rajveer 191
      args.setTicket(ticket);
192
      args.setActivity(activity);
193
      sendBase("updateTicket", args);
3028 mandeep.dh 194
    }
195
 
3430 rajveer 196
    public void recv_updateTicket() throws org.apache.thrift.TException
3028 mandeep.dh 197
    {
198
      updateTicket_result result = new updateTicket_result();
3430 rajveer 199
      receiveBase(result, "updateTicket");
3028 mandeep.dh 200
      return;
201
    }
202
 
3430 rajveer 203
    public long insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 204
    {
3206 mandeep.dh 205
      send_insertTicket(ticket, activity);
3028 mandeep.dh 206
      return recv_insertTicket();
207
    }
208
 
3430 rajveer 209
    public void send_insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 210
    {
211
      insertTicket_args args = new insertTicket_args();
3430 rajveer 212
      args.setTicket(ticket);
213
      args.setActivity(activity);
214
      sendBase("insertTicket", args);
3028 mandeep.dh 215
    }
216
 
3430 rajveer 217
    public long recv_insertTicket() throws org.apache.thrift.TException
3028 mandeep.dh 218
    {
219
      insertTicket_result result = new insertTicket_result();
3430 rajveer 220
      receiveBase(result, "insertTicket");
3028 mandeep.dh 221
      if (result.isSetSuccess()) {
222
        return result.success;
223
      }
3430 rajveer 224
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
3028 mandeep.dh 225
    }
226
 
4793 amar.kumar 227
    public void unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException
228
    {
229
      send_unassignAgentTickets(assigneeId);
230
      recv_unassignAgentTickets();
231
    }
232
 
233
    public void send_unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException
234
    {
235
      unassignAgentTickets_args args = new unassignAgentTickets_args();
236
      args.setAssigneeId(assigneeId);
237
      sendBase("unassignAgentTickets", args);
238
    }
239
 
240
    public void recv_unassignAgentTickets() throws org.apache.thrift.TException
241
    {
242
      unassignAgentTickets_result result = new unassignAgentTickets_result();
243
      receiveBase(result, "unassignAgentTickets");
244
      return;
245
    }
246
 
3430 rajveer 247
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 248
    {
3390 mandeep.dh 249
      send_getActivities(searchFilter);
3028 mandeep.dh 250
      return recv_getActivities();
251
    }
252
 
3430 rajveer 253
    public void send_getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 254
    {
255
      getActivities_args args = new getActivities_args();
3430 rajveer 256
      args.setSearchFilter(searchFilter);
257
      sendBase("getActivities", args);
3028 mandeep.dh 258
    }
259
 
3430 rajveer 260
    public List<Activity> recv_getActivities() throws org.apache.thrift.TException
3028 mandeep.dh 261
    {
262
      getActivities_result result = new getActivities_result();
3430 rajveer 263
      receiveBase(result, "getActivities");
3028 mandeep.dh 264
      if (result.isSetSuccess()) {
265
        return result.success;
266
      }
3430 rajveer 267
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getActivities failed: unknown result");
3028 mandeep.dh 268
    }
269
 
3430 rajveer 270
    public long insertActivity(Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 271
    {
272
      send_insertActivity(activity);
3405 mandeep.dh 273
      return recv_insertActivity();
3028 mandeep.dh 274
    }
275
 
3430 rajveer 276
    public void send_insertActivity(Activity activity) throws org.apache.thrift.TException
3028 mandeep.dh 277
    {
278
      insertActivity_args args = new insertActivity_args();
3430 rajveer 279
      args.setActivity(activity);
280
      sendBase("insertActivity", args);
3028 mandeep.dh 281
    }
282
 
3430 rajveer 283
    public long recv_insertActivity() throws org.apache.thrift.TException
3028 mandeep.dh 284
    {
285
      insertActivity_result result = new insertActivity_result();
3430 rajveer 286
      receiveBase(result, "insertActivity");
3405 mandeep.dh 287
      if (result.isSetSuccess()) {
288
        return result.success;
289
      }
3430 rajveer 290
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertActivity failed: unknown result");
3028 mandeep.dh 291
    }
292
 
3430 rajveer 293
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException
3087 mandeep.dh 294
    {
3390 mandeep.dh 295
      send_markAsRead(activityId, agentId);
296
      recv_markAsRead();
3087 mandeep.dh 297
    }
298
 
3430 rajveer 299
    public void send_markAsRead(long activityId, long agentId) throws org.apache.thrift.TException
3087 mandeep.dh 300
    {
3390 mandeep.dh 301
      markAsRead_args args = new markAsRead_args();
3430 rajveer 302
      args.setActivityId(activityId);
303
      args.setAgentId(agentId);
304
      sendBase("markAsRead", args);
3028 mandeep.dh 305
    }
306
 
3430 rajveer 307
    public void recv_markAsRead() throws org.apache.thrift.TException
3028 mandeep.dh 308
    {
3390 mandeep.dh 309
      markAsRead_result result = new markAsRead_result();
3430 rajveer 310
      receiveBase(result, "markAsRead");
3390 mandeep.dh 311
      return;
3028 mandeep.dh 312
    }
313
 
3430 rajveer 314
    public List<Agent> getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 315
    {
3390 mandeep.dh 316
      send_getAgents(searchFilter);
317
      return recv_getAgents();
3028 mandeep.dh 318
    }
319
 
3430 rajveer 320
    public void send_getAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
3028 mandeep.dh 321
    {
3390 mandeep.dh 322
      getAgents_args args = new getAgents_args();
3430 rajveer 323
      args.setSearchFilter(searchFilter);
324
      sendBase("getAgents", args);
3028 mandeep.dh 325
    }
326
 
3430 rajveer 327
    public List<Agent> recv_getAgents() throws org.apache.thrift.TException
3028 mandeep.dh 328
    {
3390 mandeep.dh 329
      getAgents_result result = new getAgents_result();
3430 rajveer 330
      receiveBase(result, "getAgents");
3028 mandeep.dh 331
      if (result.isSetSuccess()) {
332
        return result.success;
333
      }
3430 rajveer 334
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAgents failed: unknown result");
3028 mandeep.dh 335
    }
336
 
5287 amar.kumar 337
    public List<Agent> getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
338
    {
339
      send_getInactiveAgents(searchFilter);
340
      return recv_getInactiveAgents();
341
    }
342
 
343
    public void send_getInactiveAgents(SearchFilter searchFilter) throws org.apache.thrift.TException
344
    {
345
      getInactiveAgents_args args = new getInactiveAgents_args();
346
      args.setSearchFilter(searchFilter);
347
      sendBase("getInactiveAgents", args);
348
    }
349
 
350
    public List<Agent> recv_getInactiveAgents() throws org.apache.thrift.TException
351
    {
352
      getInactiveAgents_result result = new getInactiveAgents_result();
353
      receiveBase(result, "getInactiveAgents");
354
      if (result.isSetSuccess()) {
355
        return result.success;
356
      }
357
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getInactiveAgents failed: unknown result");
358
    }
359
 
3430 rajveer 360
    public void updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
3087 mandeep.dh 361
    {
362
      send_updatePasswordForAgent(agentEmailId, password);
363
      recv_updatePasswordForAgent();
364
    }
365
 
3430 rajveer 366
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws org.apache.thrift.TException
3087 mandeep.dh 367
    {
368
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
3430 rajveer 369
      args.setAgentEmailId(agentEmailId);
370
      args.setPassword(password);
371
      sendBase("updatePasswordForAgent", args);
3087 mandeep.dh 372
    }
373
 
3430 rajveer 374
    public void recv_updatePasswordForAgent() throws org.apache.thrift.TException
3087 mandeep.dh 375
    {
376
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
3430 rajveer 377
      receiveBase(result, "updatePasswordForAgent");
3087 mandeep.dh 378
      return;
379
    }
380
 
3430 rajveer 381
    public List<String> getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
3087 mandeep.dh 382
    {
383
      send_getRoleNamesForAgent(agentEmailId);
384
      return recv_getRoleNamesForAgent();
385
    }
386
 
3430 rajveer 387
    public void send_getRoleNamesForAgent(String agentEmailId) throws org.apache.thrift.TException
3087 mandeep.dh 388
    {
389
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
3430 rajveer 390
      args.setAgentEmailId(agentEmailId);
391
      sendBase("getRoleNamesForAgent", args);
3087 mandeep.dh 392
    }
393
 
3430 rajveer 394
    public List<String> recv_getRoleNamesForAgent() throws org.apache.thrift.TException
3087 mandeep.dh 395
    {
396
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
3430 rajveer 397
      receiveBase(result, "getRoleNamesForAgent");
3087 mandeep.dh 398
      if (result.isSetSuccess()) {
399
        return result.success;
400
      }
3430 rajveer 401
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
3087 mandeep.dh 402
    }
403
 
3430 rajveer 404
    public List<String> getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
3087 mandeep.dh 405
    {
406
      send_getPermissionsForRoleName(roleName);
407
      return recv_getPermissionsForRoleName();
408
    }
409
 
3430 rajveer 410
    public void send_getPermissionsForRoleName(String roleName) throws org.apache.thrift.TException
3087 mandeep.dh 411
    {
412
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
3430 rajveer 413
      args.setRoleName(roleName);
414
      sendBase("getPermissionsForRoleName", args);
3087 mandeep.dh 415
    }
416
 
3430 rajveer 417
    public List<String> recv_getPermissionsForRoleName() throws org.apache.thrift.TException
3087 mandeep.dh 418
    {
419
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
3430 rajveer 420
      receiveBase(result, "getPermissionsForRoleName");
3087 mandeep.dh 421
      if (result.isSetSuccess()) {
422
        return result.success;
423
      }
3430 rajveer 424
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
3087 mandeep.dh 425
    }
426
 
3430 rajveer 427
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 428
    {
429
      send_getLastEmailProcessedTimestamp();
430
      return recv_getLastEmailProcessedTimestamp();
431
    }
432
 
3430 rajveer 433
    public void send_getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 434
    {
435
      getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
3430 rajveer 436
      sendBase("getLastEmailProcessedTimestamp", args);
3339 mandeep.dh 437
    }
438
 
3430 rajveer 439
    public long recv_getLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 440
    {
441
      getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
3430 rajveer 442
      receiveBase(result, "getLastEmailProcessedTimestamp");
3339 mandeep.dh 443
      if (result.isSetSuccess()) {
444
        return result.success;
445
      }
3430 rajveer 446
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLastEmailProcessedTimestamp failed: unknown result");
3339 mandeep.dh 447
    }
448
 
3430 rajveer 449
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException
3339 mandeep.dh 450
    {
451
      send_updateLastEmailProcessedTimestamp(timestamp);
452
      recv_updateLastEmailProcessedTimestamp();
453
    }
454
 
3430 rajveer 455
    public void send_updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException
3339 mandeep.dh 456
    {
457
      updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
3430 rajveer 458
      args.setTimestamp(timestamp);
459
      sendBase("updateLastEmailProcessedTimestamp", args);
3339 mandeep.dh 460
    }
461
 
3430 rajveer 462
    public void recv_updateLastEmailProcessedTimestamp() throws org.apache.thrift.TException
3339 mandeep.dh 463
    {
464
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
3430 rajveer 465
      receiveBase(result, "updateLastEmailProcessedTimestamp");
3339 mandeep.dh 466
      return;
467
    }
468
 
4793 amar.kumar 469
    public void changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException
470
    {
471
      send_changeAgentStatus(status, emailId);
472
      recv_changeAgentStatus();
473
    }
474
 
475
    public void send_changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException
476
    {
477
      changeAgentStatus_args args = new changeAgentStatus_args();
478
      args.setStatus(status);
479
      args.setEmailId(emailId);
480
      sendBase("changeAgentStatus", args);
481
    }
482
 
483
    public void recv_changeAgentStatus() throws org.apache.thrift.TException
484
    {
485
      changeAgentStatus_result result = new changeAgentStatus_result();
486
      receiveBase(result, "changeAgentStatus");
487
      return;
488
    }
489
 
490
    public void insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException
491
    {
492
      send_insertAgent(agent, role);
493
      recv_insertAgent();
494
    }
495
 
496
    public void send_insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException
497
    {
498
      insertAgent_args args = new insertAgent_args();
499
      args.setAgent(agent);
500
      args.setRole(role);
501
      sendBase("insertAgent", args);
502
    }
503
 
504
    public void recv_insertAgent() throws org.apache.thrift.TException
505
    {
506
      insertAgent_result result = new insertAgent_result();
507
      receiveBase(result, "insertAgent");
508
      return;
509
    }
510
 
5169 amar.kumar 511
    public void changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException
512
    {
513
      send_changeAgentRole(id, role);
514
      recv_changeAgentRole();
515
    }
516
 
517
    public void send_changeAgentRole(long id, List<String> role) throws org.apache.thrift.TException
518
    {
519
      changeAgentRole_args args = new changeAgentRole_args();
520
      args.setId(id);
521
      args.setRole(role);
522
      sendBase("changeAgentRole", args);
523
    }
524
 
525
    public void recv_changeAgentRole() throws org.apache.thrift.TException
526
    {
527
      changeAgentRole_result result = new changeAgentRole_result();
528
      receiveBase(result, "changeAgentRole");
529
      return;
530
    }
531
 
532
    public int getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException
533
    {
534
      send_getOpenTicketCountForAgent(agentId);
535
      return recv_getOpenTicketCountForAgent();
536
    }
537
 
538
    public void send_getOpenTicketCountForAgent(long agentId) throws org.apache.thrift.TException
539
    {
540
      getOpenTicketCountForAgent_args args = new getOpenTicketCountForAgent_args();
541
      args.setAgentId(agentId);
542
      sendBase("getOpenTicketCountForAgent", args);
543
    }
544
 
545
    public int recv_getOpenTicketCountForAgent() throws org.apache.thrift.TException
546
    {
547
      getOpenTicketCountForAgent_result result = new getOpenTicketCountForAgent_result();
548
      receiveBase(result, "getOpenTicketCountForAgent");
549
      if (result.isSetSuccess()) {
550
        return result.success;
551
      }
552
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOpenTicketCountForAgent failed: unknown result");
553
    }
554
 
5909 amar.kumar 555
    public Map<String,Long> getOpenTicketsMap() throws org.apache.thrift.TException
556
    {
557
      send_getOpenTicketsMap();
558
      return recv_getOpenTicketsMap();
559
    }
560
 
561
    public void send_getOpenTicketsMap() throws org.apache.thrift.TException
562
    {
563
      getOpenTicketsMap_args args = new getOpenTicketsMap_args();
564
      sendBase("getOpenTicketsMap", args);
565
    }
566
 
567
    public Map<String,Long> recv_getOpenTicketsMap() throws org.apache.thrift.TException
568
    {
569
      getOpenTicketsMap_result result = new getOpenTicketsMap_result();
570
      receiveBase(result, "getOpenTicketsMap");
571
      if (result.isSetSuccess()) {
572
        return result.success;
573
      }
574
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getOpenTicketsMap failed: unknown result");
575
    }
576
 
8370 manish.sha 577
    public Map<String,String> getFedexReconciliationDataMap(List<Long> order_ids, String method_key) throws org.apache.thrift.TException
578
    {
579
      send_getFedexReconciliationDataMap(order_ids, method_key);
580
      return recv_getFedexReconciliationDataMap();
581
    }
582
 
583
    public void send_getFedexReconciliationDataMap(List<Long> order_ids, String method_key) throws org.apache.thrift.TException
584
    {
585
      getFedexReconciliationDataMap_args args = new getFedexReconciliationDataMap_args();
586
      args.setOrder_ids(order_ids);
587
      args.setMethod_key(method_key);
588
      sendBase("getFedexReconciliationDataMap", args);
589
    }
590
 
591
    public Map<String,String> recv_getFedexReconciliationDataMap() throws org.apache.thrift.TException
592
    {
593
      getFedexReconciliationDataMap_result result = new getFedexReconciliationDataMap_result();
594
      receiveBase(result, "getFedexReconciliationDataMap");
595
      if (result.isSetSuccess()) {
596
        return result.success;
597
      }
598
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFedexReconciliationDataMap failed: unknown result");
599
    }
600
 
3028 mandeep.dh 601
  }
3430 rajveer 602
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
603
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
604
      private org.apache.thrift.async.TAsyncClientManager clientManager;
605
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
606
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
607
        this.clientManager = clientManager;
608
        this.protocolFactory = protocolFactory;
609
      }
610
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
611
        return new AsyncClient(protocolFactory, clientManager, transport);
612
      }
3028 mandeep.dh 613
    }
614
 
3430 rajveer 615
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
616
      super(protocolFactory, clientManager, transport);
617
    }
3028 mandeep.dh 618
 
3430 rajveer 619
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getTickets_call> resultHandler) throws org.apache.thrift.TException {
620
      checkReady();
621
      getTickets_call method_call = new getTickets_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
622
      this.___currentMethod = method_call;
623
      ___manager.call(method_call);
3028 mandeep.dh 624
    }
625
 
3430 rajveer 626
    public static class getTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
627
      private SearchFilter searchFilter;
628
      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 {
629
        super(client, protocolFactory, transport, resultHandler, false);
630
        this.searchFilter = searchFilter;
631
      }
632
 
633
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
634
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 635
        getTickets_args args = new getTickets_args();
3430 rajveer 636
        args.setSearchFilter(searchFilter);
637
        args.write(prot);
638
        prot.writeMessageEnd();
3028 mandeep.dh 639
      }
640
 
3430 rajveer 641
      public List<Ticket> getResult() throws org.apache.thrift.TException {
642
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
643
          throw new IllegalStateException("Method call not finished!");
644
        }
645
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
646
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
647
        return (new Client(prot)).recv_getTickets();
648
      }
3028 mandeep.dh 649
    }
650
 
3430 rajveer 651
    public void getUnassignedTickets(org.apache.thrift.async.AsyncMethodCallback<getUnassignedTickets_call> resultHandler) throws org.apache.thrift.TException {
652
      checkReady();
653
      getUnassignedTickets_call method_call = new getUnassignedTickets_call(resultHandler, this, ___protocolFactory, ___transport);
654
      this.___currentMethod = method_call;
655
      ___manager.call(method_call);
656
    }
657
 
658
    public static class getUnassignedTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
659
      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 {
660
        super(client, protocolFactory, transport, resultHandler, false);
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("getUnassignedTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
3137 mandeep.dh 665
        getUnassignedTickets_args args = new getUnassignedTickets_args();
3430 rajveer 666
        args.write(prot);
667
        prot.writeMessageEnd();
3087 mandeep.dh 668
      }
669
 
3430 rajveer 670
      public List<Ticket> getResult() throws org.apache.thrift.TException {
671
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
672
          throw new IllegalStateException("Method call not finished!");
673
        }
674
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
675
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
676
        return (new Client(prot)).recv_getUnassignedTickets();
677
      }
3087 mandeep.dh 678
    }
679
 
3430 rajveer 680
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<updateTicket_call> resultHandler) throws org.apache.thrift.TException {
681
      checkReady();
682
      updateTicket_call method_call = new updateTicket_call(ticket, activity, resultHandler, this, ___protocolFactory, ___transport);
683
      this.___currentMethod = method_call;
684
      ___manager.call(method_call);
685
    }
686
 
687
    public static class updateTicket_call extends org.apache.thrift.async.TAsyncMethodCall {
688
      private Ticket ticket;
689
      private Activity activity;
690
      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 {
691
        super(client, protocolFactory, transport, resultHandler, false);
692
        this.ticket = ticket;
693
        this.activity = activity;
694
      }
695
 
696
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
697
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateTicket", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 698
        updateTicket_args args = new updateTicket_args();
3430 rajveer 699
        args.setTicket(ticket);
700
        args.setActivity(activity);
701
        args.write(prot);
702
        prot.writeMessageEnd();
3028 mandeep.dh 703
      }
704
 
3430 rajveer 705
      public void getResult() throws org.apache.thrift.TException {
706
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
707
          throw new IllegalStateException("Method call not finished!");
708
        }
709
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
710
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
711
        (new Client(prot)).recv_updateTicket();
712
      }
3028 mandeep.dh 713
    }
714
 
3430 rajveer 715
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertTicket_call> resultHandler) throws org.apache.thrift.TException {
716
      checkReady();
717
      insertTicket_call method_call = new insertTicket_call(ticket, activity, resultHandler, this, ___protocolFactory, ___transport);
718
      this.___currentMethod = method_call;
719
      ___manager.call(method_call);
720
    }
721
 
722
    public static class insertTicket_call extends org.apache.thrift.async.TAsyncMethodCall {
723
      private Ticket ticket;
724
      private Activity activity;
725
      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 {
726
        super(client, protocolFactory, transport, resultHandler, false);
727
        this.ticket = ticket;
728
        this.activity = activity;
729
      }
730
 
731
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
732
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertTicket", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 733
        insertTicket_args args = new insertTicket_args();
3430 rajveer 734
        args.setTicket(ticket);
735
        args.setActivity(activity);
736
        args.write(prot);
737
        prot.writeMessageEnd();
3028 mandeep.dh 738
      }
739
 
3430 rajveer 740
      public long getResult() throws org.apache.thrift.TException {
741
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
742
          throw new IllegalStateException("Method call not finished!");
743
        }
744
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
745
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
746
        return (new Client(prot)).recv_insertTicket();
747
      }
3028 mandeep.dh 748
    }
749
 
4793 amar.kumar 750
    public void unassignAgentTickets(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<unassignAgentTickets_call> resultHandler) throws org.apache.thrift.TException {
751
      checkReady();
752
      unassignAgentTickets_call method_call = new unassignAgentTickets_call(assigneeId, resultHandler, this, ___protocolFactory, ___transport);
753
      this.___currentMethod = method_call;
754
      ___manager.call(method_call);
755
    }
756
 
757
    public static class unassignAgentTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
758
      private int assigneeId;
759
      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 {
760
        super(client, protocolFactory, transport, resultHandler, false);
761
        this.assigneeId = assigneeId;
762
      }
763
 
764
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
765
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unassignAgentTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
766
        unassignAgentTickets_args args = new unassignAgentTickets_args();
767
        args.setAssigneeId(assigneeId);
768
        args.write(prot);
769
        prot.writeMessageEnd();
770
      }
771
 
772
      public void getResult() throws org.apache.thrift.TException {
773
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
774
          throw new IllegalStateException("Method call not finished!");
775
        }
776
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
777
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
778
        (new Client(prot)).recv_unassignAgentTickets();
779
      }
780
    }
781
 
3430 rajveer 782
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getActivities_call> resultHandler) throws org.apache.thrift.TException {
783
      checkReady();
784
      getActivities_call method_call = new getActivities_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
785
      this.___currentMethod = method_call;
786
      ___manager.call(method_call);
787
    }
788
 
789
    public static class getActivities_call extends org.apache.thrift.async.TAsyncMethodCall {
790
      private SearchFilter searchFilter;
791
      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 {
792
        super(client, protocolFactory, transport, resultHandler, false);
793
        this.searchFilter = searchFilter;
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("getActivities", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 798
        getActivities_args args = new getActivities_args();
3430 rajveer 799
        args.setSearchFilter(searchFilter);
800
        args.write(prot);
801
        prot.writeMessageEnd();
3028 mandeep.dh 802
      }
803
 
3430 rajveer 804
      public List<Activity> getResult() throws org.apache.thrift.TException {
805
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
806
          throw new IllegalStateException("Method call not finished!");
807
        }
808
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
809
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
810
        return (new Client(prot)).recv_getActivities();
811
      }
3028 mandeep.dh 812
    }
813
 
3430 rajveer 814
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<insertActivity_call> resultHandler) throws org.apache.thrift.TException {
815
      checkReady();
816
      insertActivity_call method_call = new insertActivity_call(activity, resultHandler, this, ___protocolFactory, ___transport);
817
      this.___currentMethod = method_call;
818
      ___manager.call(method_call);
819
    }
820
 
821
    public static class insertActivity_call extends org.apache.thrift.async.TAsyncMethodCall {
822
      private Activity activity;
823
      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 {
824
        super(client, protocolFactory, transport, resultHandler, false);
825
        this.activity = activity;
826
      }
827
 
828
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
829
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertActivity", org.apache.thrift.protocol.TMessageType.CALL, 0));
3028 mandeep.dh 830
        insertActivity_args args = new insertActivity_args();
3430 rajveer 831
        args.setActivity(activity);
832
        args.write(prot);
833
        prot.writeMessageEnd();
3028 mandeep.dh 834
      }
835
 
3430 rajveer 836
      public long getResult() throws org.apache.thrift.TException {
837
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
838
          throw new IllegalStateException("Method call not finished!");
839
        }
840
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
841
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
842
        return (new Client(prot)).recv_insertActivity();
843
      }
3028 mandeep.dh 844
    }
845
 
3430 rajveer 846
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<markAsRead_call> resultHandler) throws org.apache.thrift.TException {
847
      checkReady();
848
      markAsRead_call method_call = new markAsRead_call(activityId, agentId, resultHandler, this, ___protocolFactory, ___transport);
849
      this.___currentMethod = method_call;
850
      ___manager.call(method_call);
851
    }
852
 
853
    public static class markAsRead_call extends org.apache.thrift.async.TAsyncMethodCall {
854
      private long activityId;
855
      private long agentId;
856
      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 {
857
        super(client, protocolFactory, transport, resultHandler, false);
858
        this.activityId = activityId;
859
        this.agentId = agentId;
860
      }
861
 
862
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
863
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("markAsRead", org.apache.thrift.protocol.TMessageType.CALL, 0));
3390 mandeep.dh 864
        markAsRead_args args = new markAsRead_args();
3430 rajveer 865
        args.setActivityId(activityId);
866
        args.setAgentId(agentId);
867
        args.write(prot);
868
        prot.writeMessageEnd();
3087 mandeep.dh 869
      }
870
 
3430 rajveer 871
      public void getResult() throws org.apache.thrift.TException {
872
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
873
          throw new IllegalStateException("Method call not finished!");
874
        }
875
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
876
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
877
        (new Client(prot)).recv_markAsRead();
878
      }
3087 mandeep.dh 879
    }
880
 
3430 rajveer 881
    public void getAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getAgents_call> resultHandler) throws org.apache.thrift.TException {
882
      checkReady();
883
      getAgents_call method_call = new getAgents_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
884
      this.___currentMethod = method_call;
885
      ___manager.call(method_call);
886
    }
887
 
888
    public static class getAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
889
      private SearchFilter searchFilter;
890
      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 {
891
        super(client, protocolFactory, transport, resultHandler, false);
892
        this.searchFilter = searchFilter;
893
      }
894
 
895
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
896
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
3390 mandeep.dh 897
        getAgents_args args = new getAgents_args();
3430 rajveer 898
        args.setSearchFilter(searchFilter);
899
        args.write(prot);
900
        prot.writeMessageEnd();
3028 mandeep.dh 901
      }
902
 
3430 rajveer 903
      public List<Agent> getResult() throws org.apache.thrift.TException {
904
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
905
          throw new IllegalStateException("Method call not finished!");
906
        }
907
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
908
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
909
        return (new Client(prot)).recv_getAgents();
910
      }
3028 mandeep.dh 911
    }
912
 
5287 amar.kumar 913
    public void getInactiveAgents(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getInactiveAgents_call> resultHandler) throws org.apache.thrift.TException {
914
      checkReady();
915
      getInactiveAgents_call method_call = new getInactiveAgents_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
916
      this.___currentMethod = method_call;
917
      ___manager.call(method_call);
918
    }
919
 
920
    public static class getInactiveAgents_call extends org.apache.thrift.async.TAsyncMethodCall {
921
      private SearchFilter searchFilter;
922
      public getInactiveAgents_call(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getInactiveAgents_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
923
        super(client, protocolFactory, transport, resultHandler, false);
924
        this.searchFilter = searchFilter;
925
      }
926
 
927
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
928
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getInactiveAgents", org.apache.thrift.protocol.TMessageType.CALL, 0));
929
        getInactiveAgents_args args = new getInactiveAgents_args();
930
        args.setSearchFilter(searchFilter);
931
        args.write(prot);
932
        prot.writeMessageEnd();
933
      }
934
 
935
      public List<Agent> getResult() throws org.apache.thrift.TException {
936
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
937
          throw new IllegalStateException("Method call not finished!");
938
        }
939
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
940
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
941
        return (new Client(prot)).recv_getInactiveAgents();
942
      }
943
    }
944
 
3430 rajveer 945
    public void updatePasswordForAgent(String agentEmailId, String password, org.apache.thrift.async.AsyncMethodCallback<updatePasswordForAgent_call> resultHandler) throws org.apache.thrift.TException {
946
      checkReady();
947
      updatePasswordForAgent_call method_call = new updatePasswordForAgent_call(agentEmailId, password, resultHandler, this, ___protocolFactory, ___transport);
948
      this.___currentMethod = method_call;
949
      ___manager.call(method_call);
950
    }
951
 
952
    public static class updatePasswordForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
953
      private String agentEmailId;
954
      private String password;
955
      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 {
956
        super(client, protocolFactory, transport, resultHandler, false);
957
        this.agentEmailId = agentEmailId;
958
        this.password = password;
959
      }
960
 
961
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
962
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updatePasswordForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
3087 mandeep.dh 963
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
3430 rajveer 964
        args.setAgentEmailId(agentEmailId);
965
        args.setPassword(password);
966
        args.write(prot);
967
        prot.writeMessageEnd();
3087 mandeep.dh 968
      }
969
 
3430 rajveer 970
      public void getResult() throws org.apache.thrift.TException {
971
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
972
          throw new IllegalStateException("Method call not finished!");
973
        }
974
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
975
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
976
        (new Client(prot)).recv_updatePasswordForAgent();
977
      }
3087 mandeep.dh 978
    }
979
 
3430 rajveer 980
    public void getRoleNamesForAgent(String agentEmailId, org.apache.thrift.async.AsyncMethodCallback<getRoleNamesForAgent_call> resultHandler) throws org.apache.thrift.TException {
981
      checkReady();
982
      getRoleNamesForAgent_call method_call = new getRoleNamesForAgent_call(agentEmailId, resultHandler, this, ___protocolFactory, ___transport);
983
      this.___currentMethod = method_call;
984
      ___manager.call(method_call);
985
    }
986
 
987
    public static class getRoleNamesForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
988
      private String agentEmailId;
989
      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 {
990
        super(client, protocolFactory, transport, resultHandler, false);
991
        this.agentEmailId = agentEmailId;
992
      }
993
 
994
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
995
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getRoleNamesForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
3087 mandeep.dh 996
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
3430 rajveer 997
        args.setAgentEmailId(agentEmailId);
998
        args.write(prot);
999
        prot.writeMessageEnd();
3087 mandeep.dh 1000
      }
1001
 
3430 rajveer 1002
      public List<String> getResult() throws org.apache.thrift.TException {
1003
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1004
          throw new IllegalStateException("Method call not finished!");
1005
        }
1006
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1007
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1008
        return (new Client(prot)).recv_getRoleNamesForAgent();
1009
      }
3087 mandeep.dh 1010
    }
1011
 
3430 rajveer 1012
    public void getPermissionsForRoleName(String roleName, org.apache.thrift.async.AsyncMethodCallback<getPermissionsForRoleName_call> resultHandler) throws org.apache.thrift.TException {
1013
      checkReady();
1014
      getPermissionsForRoleName_call method_call = new getPermissionsForRoleName_call(roleName, resultHandler, this, ___protocolFactory, ___transport);
1015
      this.___currentMethod = method_call;
1016
      ___manager.call(method_call);
1017
    }
1018
 
1019
    public static class getPermissionsForRoleName_call extends org.apache.thrift.async.TAsyncMethodCall {
1020
      private String roleName;
1021
      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 {
1022
        super(client, protocolFactory, transport, resultHandler, false);
1023
        this.roleName = roleName;
1024
      }
1025
 
1026
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1027
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPermissionsForRoleName", org.apache.thrift.protocol.TMessageType.CALL, 0));
3087 mandeep.dh 1028
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
3430 rajveer 1029
        args.setRoleName(roleName);
1030
        args.write(prot);
1031
        prot.writeMessageEnd();
3087 mandeep.dh 1032
      }
1033
 
3430 rajveer 1034
      public List<String> getResult() throws org.apache.thrift.TException {
1035
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1036
          throw new IllegalStateException("Method call not finished!");
1037
        }
1038
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1039
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1040
        return (new Client(prot)).recv_getPermissionsForRoleName();
1041
      }
3087 mandeep.dh 1042
    }
1043
 
3430 rajveer 1044
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException {
1045
      checkReady();
1046
      getLastEmailProcessedTimestamp_call method_call = new getLastEmailProcessedTimestamp_call(resultHandler, this, ___protocolFactory, ___transport);
1047
      this.___currentMethod = method_call;
1048
      ___manager.call(method_call);
1049
    }
1050
 
1051
    public static class getLastEmailProcessedTimestamp_call extends org.apache.thrift.async.TAsyncMethodCall {
1052
      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 {
1053
        super(client, protocolFactory, transport, resultHandler, false);
1054
      }
1055
 
1056
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1057
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLastEmailProcessedTimestamp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3339 mandeep.dh 1058
        getLastEmailProcessedTimestamp_args args = new getLastEmailProcessedTimestamp_args();
3430 rajveer 1059
        args.write(prot);
1060
        prot.writeMessageEnd();
3339 mandeep.dh 1061
      }
1062
 
3430 rajveer 1063
      public long getResult() throws org.apache.thrift.TException {
1064
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1065
          throw new IllegalStateException("Method call not finished!");
1066
        }
1067
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1068
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1069
        return (new Client(prot)).recv_getLastEmailProcessedTimestamp();
1070
      }
3339 mandeep.dh 1071
    }
1072
 
3430 rajveer 1073
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException {
1074
      checkReady();
1075
      updateLastEmailProcessedTimestamp_call method_call = new updateLastEmailProcessedTimestamp_call(timestamp, resultHandler, this, ___protocolFactory, ___transport);
1076
      this.___currentMethod = method_call;
1077
      ___manager.call(method_call);
1078
    }
1079
 
1080
    public static class updateLastEmailProcessedTimestamp_call extends org.apache.thrift.async.TAsyncMethodCall {
1081
      private long timestamp;
1082
      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 {
1083
        super(client, protocolFactory, transport, resultHandler, false);
1084
        this.timestamp = timestamp;
1085
      }
1086
 
1087
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1088
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLastEmailProcessedTimestamp", org.apache.thrift.protocol.TMessageType.CALL, 0));
3339 mandeep.dh 1089
        updateLastEmailProcessedTimestamp_args args = new updateLastEmailProcessedTimestamp_args();
3430 rajveer 1090
        args.setTimestamp(timestamp);
1091
        args.write(prot);
1092
        prot.writeMessageEnd();
3339 mandeep.dh 1093
      }
1094
 
3430 rajveer 1095
      public void getResult() throws org.apache.thrift.TException {
1096
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1097
          throw new IllegalStateException("Method call not finished!");
1098
        }
1099
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1100
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1101
        (new Client(prot)).recv_updateLastEmailProcessedTimestamp();
1102
      }
3339 mandeep.dh 1103
    }
1104
 
4793 amar.kumar 1105
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException {
1106
      checkReady();
1107
      changeAgentStatus_call method_call = new changeAgentStatus_call(status, emailId, resultHandler, this, ___protocolFactory, ___transport);
1108
      this.___currentMethod = method_call;
1109
      ___manager.call(method_call);
1110
    }
1111
 
1112
    public static class changeAgentStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
1113
      private boolean status;
1114
      private String emailId;
1115
      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 {
1116
        super(client, protocolFactory, transport, resultHandler, false);
1117
        this.status = status;
1118
        this.emailId = emailId;
1119
      }
1120
 
1121
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1122
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeAgentStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
1123
        changeAgentStatus_args args = new changeAgentStatus_args();
1124
        args.setStatus(status);
1125
        args.setEmailId(emailId);
1126
        args.write(prot);
1127
        prot.writeMessageEnd();
1128
      }
1129
 
1130
      public void getResult() throws org.apache.thrift.TException {
1131
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1132
          throw new IllegalStateException("Method call not finished!");
1133
        }
1134
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1135
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1136
        (new Client(prot)).recv_changeAgentStatus();
1137
      }
1138
    }
1139
 
1140
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<insertAgent_call> resultHandler) throws org.apache.thrift.TException {
1141
      checkReady();
1142
      insertAgent_call method_call = new insertAgent_call(agent, role, resultHandler, this, ___protocolFactory, ___transport);
1143
      this.___currentMethod = method_call;
1144
      ___manager.call(method_call);
1145
    }
1146
 
1147
    public static class insertAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1148
      private Agent agent;
1149
      private List<String> role;
1150
      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 {
1151
        super(client, protocolFactory, transport, resultHandler, false);
1152
        this.agent = agent;
1153
        this.role = role;
1154
      }
1155
 
1156
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1157
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1158
        insertAgent_args args = new insertAgent_args();
1159
        args.setAgent(agent);
1160
        args.setRole(role);
1161
        args.write(prot);
1162
        prot.writeMessageEnd();
1163
      }
1164
 
1165
      public void getResult() throws org.apache.thrift.TException {
1166
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1167
          throw new IllegalStateException("Method call not finished!");
1168
        }
1169
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1170
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1171
        (new Client(prot)).recv_insertAgent();
1172
      }
1173
    }
1174
 
5169 amar.kumar 1175
    public void changeAgentRole(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<changeAgentRole_call> resultHandler) throws org.apache.thrift.TException {
1176
      checkReady();
1177
      changeAgentRole_call method_call = new changeAgentRole_call(id, role, resultHandler, this, ___protocolFactory, ___transport);
1178
      this.___currentMethod = method_call;
1179
      ___manager.call(method_call);
1180
    }
1181
 
1182
    public static class changeAgentRole_call extends org.apache.thrift.async.TAsyncMethodCall {
1183
      private long id;
1184
      private List<String> role;
1185
      public changeAgentRole_call(long id, List<String> role, org.apache.thrift.async.AsyncMethodCallback<changeAgentRole_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1186
        super(client, protocolFactory, transport, resultHandler, false);
1187
        this.id = id;
1188
        this.role = role;
1189
      }
1190
 
1191
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1192
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeAgentRole", org.apache.thrift.protocol.TMessageType.CALL, 0));
1193
        changeAgentRole_args args = new changeAgentRole_args();
1194
        args.setId(id);
1195
        args.setRole(role);
1196
        args.write(prot);
1197
        prot.writeMessageEnd();
1198
      }
1199
 
1200
      public void getResult() throws org.apache.thrift.TException {
1201
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1202
          throw new IllegalStateException("Method call not finished!");
1203
        }
1204
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1205
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1206
        (new Client(prot)).recv_changeAgentRole();
1207
      }
1208
    }
1209
 
1210
    public void getOpenTicketCountForAgent(long agentId, org.apache.thrift.async.AsyncMethodCallback<getOpenTicketCountForAgent_call> resultHandler) throws org.apache.thrift.TException {
1211
      checkReady();
1212
      getOpenTicketCountForAgent_call method_call = new getOpenTicketCountForAgent_call(agentId, resultHandler, this, ___protocolFactory, ___transport);
1213
      this.___currentMethod = method_call;
1214
      ___manager.call(method_call);
1215
    }
1216
 
1217
    public static class getOpenTicketCountForAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
1218
      private long agentId;
1219
      public getOpenTicketCountForAgent_call(long agentId, org.apache.thrift.async.AsyncMethodCallback<getOpenTicketCountForAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1220
        super(client, protocolFactory, transport, resultHandler, false);
1221
        this.agentId = agentId;
1222
      }
1223
 
1224
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1225
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOpenTicketCountForAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
1226
        getOpenTicketCountForAgent_args args = new getOpenTicketCountForAgent_args();
1227
        args.setAgentId(agentId);
1228
        args.write(prot);
1229
        prot.writeMessageEnd();
1230
      }
1231
 
1232
      public int getResult() throws org.apache.thrift.TException {
1233
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1234
          throw new IllegalStateException("Method call not finished!");
1235
        }
1236
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1237
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1238
        return (new Client(prot)).recv_getOpenTicketCountForAgent();
1239
      }
1240
    }
1241
 
5909 amar.kumar 1242
    public void getOpenTicketsMap(org.apache.thrift.async.AsyncMethodCallback<getOpenTicketsMap_call> resultHandler) throws org.apache.thrift.TException {
1243
      checkReady();
1244
      getOpenTicketsMap_call method_call = new getOpenTicketsMap_call(resultHandler, this, ___protocolFactory, ___transport);
1245
      this.___currentMethod = method_call;
1246
      ___manager.call(method_call);
1247
    }
1248
 
1249
    public static class getOpenTicketsMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1250
      public getOpenTicketsMap_call(org.apache.thrift.async.AsyncMethodCallback<getOpenTicketsMap_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
1251
        super(client, protocolFactory, transport, resultHandler, false);
1252
      }
1253
 
1254
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1255
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getOpenTicketsMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1256
        getOpenTicketsMap_args args = new getOpenTicketsMap_args();
1257
        args.write(prot);
1258
        prot.writeMessageEnd();
1259
      }
1260
 
1261
      public Map<String,Long> getResult() throws org.apache.thrift.TException {
1262
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1263
          throw new IllegalStateException("Method call not finished!");
1264
        }
1265
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1266
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1267
        return (new Client(prot)).recv_getOpenTicketsMap();
1268
      }
1269
    }
1270
 
8370 manish.sha 1271
    public void getFedexReconciliationDataMap(List<Long> order_ids, String method_key, org.apache.thrift.async.AsyncMethodCallback<getFedexReconciliationDataMap_call> resultHandler) throws org.apache.thrift.TException {
1272
      checkReady();
1273
      getFedexReconciliationDataMap_call method_call = new getFedexReconciliationDataMap_call(order_ids, method_key, resultHandler, this, ___protocolFactory, ___transport);
1274
      this.___currentMethod = method_call;
1275
      ___manager.call(method_call);
1276
    }
1277
 
1278
    public static class getFedexReconciliationDataMap_call extends org.apache.thrift.async.TAsyncMethodCall {
1279
      private List<Long> order_ids;
1280
      private String method_key;
1281
      public getFedexReconciliationDataMap_call(List<Long> order_ids, String method_key, org.apache.thrift.async.AsyncMethodCallback<getFedexReconciliationDataMap_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 {
1282
        super(client, protocolFactory, transport, resultHandler, false);
1283
        this.order_ids = order_ids;
1284
        this.method_key = method_key;
1285
      }
1286
 
1287
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
1288
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFedexReconciliationDataMap", org.apache.thrift.protocol.TMessageType.CALL, 0));
1289
        getFedexReconciliationDataMap_args args = new getFedexReconciliationDataMap_args();
1290
        args.setOrder_ids(order_ids);
1291
        args.setMethod_key(method_key);
1292
        args.write(prot);
1293
        prot.writeMessageEnd();
1294
      }
1295
 
1296
      public Map<String,String> getResult() throws org.apache.thrift.TException {
1297
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
1298
          throw new IllegalStateException("Method call not finished!");
1299
        }
1300
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
1301
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1302
        return (new Client(prot)).recv_getFedexReconciliationDataMap();
1303
      }
1304
    }
1305
 
3028 mandeep.dh 1306
  }
1307
 
3430 rajveer 1308
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1309
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1310
    public Processor(I iface) {
1311
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
1312
    }
3028 mandeep.dh 1313
 
3430 rajveer 1314
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
1315
      super(iface, getProcessMap(processMap));
1316
    }
3028 mandeep.dh 1317
 
3430 rajveer 1318
    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) {
1319
      processMap.put("getTickets", new getTickets());
1320
      processMap.put("getUnassignedTickets", new getUnassignedTickets());
1321
      processMap.put("updateTicket", new updateTicket());
1322
      processMap.put("insertTicket", new insertTicket());
4793 amar.kumar 1323
      processMap.put("unassignAgentTickets", new unassignAgentTickets());
3430 rajveer 1324
      processMap.put("getActivities", new getActivities());
1325
      processMap.put("insertActivity", new insertActivity());
1326
      processMap.put("markAsRead", new markAsRead());
1327
      processMap.put("getAgents", new getAgents());
5287 amar.kumar 1328
      processMap.put("getInactiveAgents", new getInactiveAgents());
3430 rajveer 1329
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1330
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1331
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1332
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
1333
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
4793 amar.kumar 1334
      processMap.put("changeAgentStatus", new changeAgentStatus());
1335
      processMap.put("insertAgent", new insertAgent());
5169 amar.kumar 1336
      processMap.put("changeAgentRole", new changeAgentRole());
1337
      processMap.put("getOpenTicketCountForAgent", new getOpenTicketCountForAgent());
5909 amar.kumar 1338
      processMap.put("getOpenTicketsMap", new getOpenTicketsMap());
8370 manish.sha 1339
      processMap.put("getFedexReconciliationDataMap", new getFedexReconciliationDataMap());
3430 rajveer 1340
      return processMap;
1341
    }
3028 mandeep.dh 1342
 
3430 rajveer 1343
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
1344
      public getTickets() {
1345
        super("getTickets");
1346
      }
1347
 
1348
      protected getTickets_args getEmptyArgsInstance() {
1349
        return new getTickets_args();
1350
      }
1351
 
1352
      protected getTickets_result getResult(I iface, getTickets_args args) throws org.apache.thrift.TException {
1353
        getTickets_result result = new getTickets_result();
1354
        result.success = iface.getTickets(args.searchFilter);
1355
        return result;
1356
      }
1357
    }
1358
 
1359
    private static class getUnassignedTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUnassignedTickets_args> {
1360
      public getUnassignedTickets() {
1361
        super("getUnassignedTickets");
1362
      }
1363
 
1364
      protected getUnassignedTickets_args getEmptyArgsInstance() {
1365
        return new getUnassignedTickets_args();
1366
      }
1367
 
1368
      protected getUnassignedTickets_result getResult(I iface, getUnassignedTickets_args args) throws org.apache.thrift.TException {
1369
        getUnassignedTickets_result result = new getUnassignedTickets_result();
1370
        result.success = iface.getUnassignedTickets();
1371
        return result;
1372
      }
1373
    }
1374
 
1375
    private static class updateTicket<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateTicket_args> {
1376
      public updateTicket() {
1377
        super("updateTicket");
1378
      }
1379
 
1380
      protected updateTicket_args getEmptyArgsInstance() {
1381
        return new updateTicket_args();
1382
      }
1383
 
1384
      protected updateTicket_result getResult(I iface, updateTicket_args args) throws org.apache.thrift.TException {
1385
        updateTicket_result result = new updateTicket_result();
1386
        iface.updateTicket(args.ticket, args.activity);
1387
        return result;
1388
      }
1389
    }
1390
 
1391
    private static class insertTicket<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertTicket_args> {
1392
      public insertTicket() {
1393
        super("insertTicket");
1394
      }
1395
 
1396
      protected insertTicket_args getEmptyArgsInstance() {
1397
        return new insertTicket_args();
1398
      }
1399
 
1400
      protected insertTicket_result getResult(I iface, insertTicket_args args) throws org.apache.thrift.TException {
1401
        insertTicket_result result = new insertTicket_result();
1402
        result.success = iface.insertTicket(args.ticket, args.activity);
1403
        result.setSuccessIsSet(true);
1404
        return result;
1405
      }
1406
    }
1407
 
4793 amar.kumar 1408
    private static class unassignAgentTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unassignAgentTickets_args> {
1409
      public unassignAgentTickets() {
1410
        super("unassignAgentTickets");
1411
      }
1412
 
1413
      protected unassignAgentTickets_args getEmptyArgsInstance() {
1414
        return new unassignAgentTickets_args();
1415
      }
1416
 
1417
      protected unassignAgentTickets_result getResult(I iface, unassignAgentTickets_args args) throws org.apache.thrift.TException {
1418
        unassignAgentTickets_result result = new unassignAgentTickets_result();
1419
        iface.unassignAgentTickets(args.assigneeId);
1420
        return result;
1421
      }
1422
    }
1423
 
3430 rajveer 1424
    private static class getActivities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivities_args> {
1425
      public getActivities() {
1426
        super("getActivities");
1427
      }
1428
 
1429
      protected getActivities_args getEmptyArgsInstance() {
1430
        return new getActivities_args();
1431
      }
1432
 
1433
      protected getActivities_result getResult(I iface, getActivities_args args) throws org.apache.thrift.TException {
1434
        getActivities_result result = new getActivities_result();
1435
        result.success = iface.getActivities(args.searchFilter);
1436
        return result;
1437
      }
1438
    }
1439
 
1440
    private static class insertActivity<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertActivity_args> {
1441
      public insertActivity() {
1442
        super("insertActivity");
1443
      }
1444
 
1445
      protected insertActivity_args getEmptyArgsInstance() {
1446
        return new insertActivity_args();
1447
      }
1448
 
1449
      protected insertActivity_result getResult(I iface, insertActivity_args args) throws org.apache.thrift.TException {
1450
        insertActivity_result result = new insertActivity_result();
1451
        result.success = iface.insertActivity(args.activity);
1452
        result.setSuccessIsSet(true);
1453
        return result;
1454
      }
1455
    }
1456
 
1457
    private static class markAsRead<I extends Iface> extends org.apache.thrift.ProcessFunction<I, markAsRead_args> {
1458
      public markAsRead() {
1459
        super("markAsRead");
1460
      }
1461
 
1462
      protected markAsRead_args getEmptyArgsInstance() {
1463
        return new markAsRead_args();
1464
      }
1465
 
1466
      protected markAsRead_result getResult(I iface, markAsRead_args args) throws org.apache.thrift.TException {
1467
        markAsRead_result result = new markAsRead_result();
1468
        iface.markAsRead(args.activityId, args.agentId);
1469
        return result;
1470
      }
1471
    }
1472
 
1473
    private static class getAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAgents_args> {
1474
      public getAgents() {
1475
        super("getAgents");
1476
      }
1477
 
1478
      protected getAgents_args getEmptyArgsInstance() {
1479
        return new getAgents_args();
1480
      }
1481
 
1482
      protected getAgents_result getResult(I iface, getAgents_args args) throws org.apache.thrift.TException {
1483
        getAgents_result result = new getAgents_result();
1484
        result.success = iface.getAgents(args.searchFilter);
1485
        return result;
1486
      }
1487
    }
1488
 
5287 amar.kumar 1489
    private static class getInactiveAgents<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getInactiveAgents_args> {
1490
      public getInactiveAgents() {
1491
        super("getInactiveAgents");
1492
      }
1493
 
1494
      protected getInactiveAgents_args getEmptyArgsInstance() {
1495
        return new getInactiveAgents_args();
1496
      }
1497
 
1498
      protected getInactiveAgents_result getResult(I iface, getInactiveAgents_args args) throws org.apache.thrift.TException {
1499
        getInactiveAgents_result result = new getInactiveAgents_result();
1500
        result.success = iface.getInactiveAgents(args.searchFilter);
1501
        return result;
1502
      }
1503
    }
1504
 
3430 rajveer 1505
    private static class updatePasswordForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updatePasswordForAgent_args> {
1506
      public updatePasswordForAgent() {
1507
        super("updatePasswordForAgent");
1508
      }
1509
 
1510
      protected updatePasswordForAgent_args getEmptyArgsInstance() {
1511
        return new updatePasswordForAgent_args();
1512
      }
1513
 
1514
      protected updatePasswordForAgent_result getResult(I iface, updatePasswordForAgent_args args) throws org.apache.thrift.TException {
1515
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
1516
        iface.updatePasswordForAgent(args.agentEmailId, args.password);
1517
        return result;
1518
      }
1519
    }
1520
 
1521
    private static class getRoleNamesForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getRoleNamesForAgent_args> {
1522
      public getRoleNamesForAgent() {
1523
        super("getRoleNamesForAgent");
1524
      }
1525
 
1526
      protected getRoleNamesForAgent_args getEmptyArgsInstance() {
1527
        return new getRoleNamesForAgent_args();
1528
      }
1529
 
1530
      protected getRoleNamesForAgent_result getResult(I iface, getRoleNamesForAgent_args args) throws org.apache.thrift.TException {
1531
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
1532
        result.success = iface.getRoleNamesForAgent(args.agentEmailId);
1533
        return result;
1534
      }
1535
    }
1536
 
1537
    private static class getPermissionsForRoleName<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPermissionsForRoleName_args> {
1538
      public getPermissionsForRoleName() {
1539
        super("getPermissionsForRoleName");
1540
      }
1541
 
1542
      protected getPermissionsForRoleName_args getEmptyArgsInstance() {
1543
        return new getPermissionsForRoleName_args();
1544
      }
1545
 
1546
      protected getPermissionsForRoleName_result getResult(I iface, getPermissionsForRoleName_args args) throws org.apache.thrift.TException {
1547
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
1548
        result.success = iface.getPermissionsForRoleName(args.roleName);
1549
        return result;
1550
      }
1551
    }
1552
 
1553
    private static class getLastEmailProcessedTimestamp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLastEmailProcessedTimestamp_args> {
1554
      public getLastEmailProcessedTimestamp() {
1555
        super("getLastEmailProcessedTimestamp");
1556
      }
1557
 
1558
      protected getLastEmailProcessedTimestamp_args getEmptyArgsInstance() {
1559
        return new getLastEmailProcessedTimestamp_args();
1560
      }
1561
 
1562
      protected getLastEmailProcessedTimestamp_result getResult(I iface, getLastEmailProcessedTimestamp_args args) throws org.apache.thrift.TException {
1563
        getLastEmailProcessedTimestamp_result result = new getLastEmailProcessedTimestamp_result();
1564
        result.success = iface.getLastEmailProcessedTimestamp();
1565
        result.setSuccessIsSet(true);
1566
        return result;
1567
      }
1568
    }
1569
 
1570
    private static class updateLastEmailProcessedTimestamp<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateLastEmailProcessedTimestamp_args> {
1571
      public updateLastEmailProcessedTimestamp() {
1572
        super("updateLastEmailProcessedTimestamp");
1573
      }
1574
 
1575
      protected updateLastEmailProcessedTimestamp_args getEmptyArgsInstance() {
1576
        return new updateLastEmailProcessedTimestamp_args();
1577
      }
1578
 
1579
      protected updateLastEmailProcessedTimestamp_result getResult(I iface, updateLastEmailProcessedTimestamp_args args) throws org.apache.thrift.TException {
1580
        updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
1581
        iface.updateLastEmailProcessedTimestamp(args.timestamp);
1582
        return result;
1583
      }
1584
    }
1585
 
4793 amar.kumar 1586
    private static class changeAgentStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAgentStatus_args> {
1587
      public changeAgentStatus() {
1588
        super("changeAgentStatus");
1589
      }
1590
 
1591
      protected changeAgentStatus_args getEmptyArgsInstance() {
1592
        return new changeAgentStatus_args();
1593
      }
1594
 
1595
      protected changeAgentStatus_result getResult(I iface, changeAgentStatus_args args) throws org.apache.thrift.TException {
1596
        changeAgentStatus_result result = new changeAgentStatus_result();
1597
        iface.changeAgentStatus(args.status, args.emailId);
1598
        return result;
1599
      }
1600
    }
1601
 
1602
    private static class insertAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertAgent_args> {
1603
      public insertAgent() {
1604
        super("insertAgent");
1605
      }
1606
 
1607
      protected insertAgent_args getEmptyArgsInstance() {
1608
        return new insertAgent_args();
1609
      }
1610
 
1611
      protected insertAgent_result getResult(I iface, insertAgent_args args) throws org.apache.thrift.TException {
1612
        insertAgent_result result = new insertAgent_result();
1613
        iface.insertAgent(args.agent, args.role);
1614
        return result;
1615
      }
1616
    }
1617
 
5169 amar.kumar 1618
    private static class changeAgentRole<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAgentRole_args> {
1619
      public changeAgentRole() {
1620
        super("changeAgentRole");
1621
      }
1622
 
1623
      protected changeAgentRole_args getEmptyArgsInstance() {
1624
        return new changeAgentRole_args();
1625
      }
1626
 
1627
      protected changeAgentRole_result getResult(I iface, changeAgentRole_args args) throws org.apache.thrift.TException {
1628
        changeAgentRole_result result = new changeAgentRole_result();
1629
        iface.changeAgentRole(args.id, args.role);
1630
        return result;
1631
      }
1632
    }
1633
 
1634
    private static class getOpenTicketCountForAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOpenTicketCountForAgent_args> {
1635
      public getOpenTicketCountForAgent() {
1636
        super("getOpenTicketCountForAgent");
1637
      }
1638
 
1639
      protected getOpenTicketCountForAgent_args getEmptyArgsInstance() {
1640
        return new getOpenTicketCountForAgent_args();
1641
      }
1642
 
1643
      protected getOpenTicketCountForAgent_result getResult(I iface, getOpenTicketCountForAgent_args args) throws org.apache.thrift.TException {
1644
        getOpenTicketCountForAgent_result result = new getOpenTicketCountForAgent_result();
1645
        result.success = iface.getOpenTicketCountForAgent(args.agentId);
1646
        result.setSuccessIsSet(true);
1647
        return result;
1648
      }
1649
    }
1650
 
5909 amar.kumar 1651
    private static class getOpenTicketsMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getOpenTicketsMap_args> {
1652
      public getOpenTicketsMap() {
1653
        super("getOpenTicketsMap");
1654
      }
1655
 
1656
      protected getOpenTicketsMap_args getEmptyArgsInstance() {
1657
        return new getOpenTicketsMap_args();
1658
      }
1659
 
1660
      protected getOpenTicketsMap_result getResult(I iface, getOpenTicketsMap_args args) throws org.apache.thrift.TException {
1661
        getOpenTicketsMap_result result = new getOpenTicketsMap_result();
1662
        result.success = iface.getOpenTicketsMap();
1663
        return result;
1664
      }
1665
    }
1666
 
8370 manish.sha 1667
    private static class getFedexReconciliationDataMap<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFedexReconciliationDataMap_args> {
1668
      public getFedexReconciliationDataMap() {
1669
        super("getFedexReconciliationDataMap");
1670
      }
1671
 
1672
      protected getFedexReconciliationDataMap_args getEmptyArgsInstance() {
1673
        return new getFedexReconciliationDataMap_args();
1674
      }
1675
 
1676
      protected getFedexReconciliationDataMap_result getResult(I iface, getFedexReconciliationDataMap_args args) throws org.apache.thrift.TException {
1677
        getFedexReconciliationDataMap_result result = new getFedexReconciliationDataMap_result();
1678
        result.success = iface.getFedexReconciliationDataMap(args.order_ids, args.method_key);
1679
        return result;
1680
      }
1681
    }
1682
 
3430 rajveer 1683
  }
1684
 
1685
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1686
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1687
 
1688
    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);
1689
 
1690
    private SearchFilter searchFilter; // required
1691
 
3028 mandeep.dh 1692
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1693
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 1694
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 1695
 
1696
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1697
 
1698
      static {
1699
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1700
          byName.put(field.getFieldName(), field);
1701
        }
1702
      }
1703
 
1704
      /**
1705
       * Find the _Fields constant that matches fieldId, or null if its not found.
1706
       */
1707
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1708
        switch(fieldId) {
1709
          case 1: // SEARCH_FILTER
1710
            return SEARCH_FILTER;
1711
          default:
1712
            return null;
1713
        }
3028 mandeep.dh 1714
      }
1715
 
1716
      /**
1717
       * Find the _Fields constant that matches fieldId, throwing an exception
1718
       * if it is not found.
1719
       */
1720
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1721
        _Fields fields = findByThriftId(fieldId);
1722
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1723
        return fields;
1724
      }
1725
 
1726
      /**
1727
       * Find the _Fields constant that matches name, or null if its not found.
1728
       */
1729
      public static _Fields findByName(String name) {
1730
        return byName.get(name);
1731
      }
1732
 
1733
      private final short _thriftId;
1734
      private final String _fieldName;
1735
 
1736
      _Fields(short thriftId, String fieldName) {
1737
        _thriftId = thriftId;
1738
        _fieldName = fieldName;
1739
      }
1740
 
1741
      public short getThriftFieldId() {
1742
        return _thriftId;
1743
      }
1744
 
1745
      public String getFieldName() {
1746
        return _fieldName;
1747
      }
1748
    }
1749
 
1750
    // isset id assignments
1751
 
3430 rajveer 1752
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 1753
    static {
3430 rajveer 1754
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1755
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1756
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
1757
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1758
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTickets_args.class, metaDataMap);
3028 mandeep.dh 1759
    }
1760
 
1761
    public getTickets_args() {
1762
    }
1763
 
1764
    public getTickets_args(
3390 mandeep.dh 1765
      SearchFilter searchFilter)
3028 mandeep.dh 1766
    {
1767
      this();
3390 mandeep.dh 1768
      this.searchFilter = searchFilter;
3028 mandeep.dh 1769
    }
1770
 
1771
    /**
1772
     * Performs a deep copy on <i>other</i>.
1773
     */
1774
    public getTickets_args(getTickets_args other) {
3390 mandeep.dh 1775
      if (other.isSetSearchFilter()) {
1776
        this.searchFilter = new SearchFilter(other.searchFilter);
1777
      }
3028 mandeep.dh 1778
    }
1779
 
1780
    public getTickets_args deepCopy() {
1781
      return new getTickets_args(this);
1782
    }
1783
 
3430 rajveer 1784
    @Override
1785
    public void clear() {
1786
      this.searchFilter = null;
3028 mandeep.dh 1787
    }
1788
 
3390 mandeep.dh 1789
    public SearchFilter getSearchFilter() {
1790
      return this.searchFilter;
3028 mandeep.dh 1791
    }
1792
 
3430 rajveer 1793
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 1794
      this.searchFilter = searchFilter;
3028 mandeep.dh 1795
    }
1796
 
3390 mandeep.dh 1797
    public void unsetSearchFilter() {
1798
      this.searchFilter = null;
3028 mandeep.dh 1799
    }
1800
 
3430 rajveer 1801
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 1802
    public boolean isSetSearchFilter() {
1803
      return this.searchFilter != null;
3028 mandeep.dh 1804
    }
1805
 
3390 mandeep.dh 1806
    public void setSearchFilterIsSet(boolean value) {
1807
      if (!value) {
1808
        this.searchFilter = null;
1809
      }
3028 mandeep.dh 1810
    }
1811
 
1812
    public void setFieldValue(_Fields field, Object value) {
1813
      switch (field) {
3390 mandeep.dh 1814
      case SEARCH_FILTER:
3028 mandeep.dh 1815
        if (value == null) {
3390 mandeep.dh 1816
          unsetSearchFilter();
3028 mandeep.dh 1817
        } else {
3390 mandeep.dh 1818
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 1819
        }
1820
        break;
1821
 
1822
      }
1823
    }
1824
 
1825
    public Object getFieldValue(_Fields field) {
1826
      switch (field) {
3390 mandeep.dh 1827
      case SEARCH_FILTER:
1828
        return getSearchFilter();
3028 mandeep.dh 1829
 
1830
      }
1831
      throw new IllegalStateException();
1832
    }
1833
 
3430 rajveer 1834
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1835
    public boolean isSet(_Fields field) {
1836
      if (field == null) {
1837
        throw new IllegalArgumentException();
1838
      }
3028 mandeep.dh 1839
 
1840
      switch (field) {
3390 mandeep.dh 1841
      case SEARCH_FILTER:
1842
        return isSetSearchFilter();
3028 mandeep.dh 1843
      }
1844
      throw new IllegalStateException();
1845
    }
1846
 
1847
    @Override
1848
    public boolean equals(Object that) {
1849
      if (that == null)
1850
        return false;
1851
      if (that instanceof getTickets_args)
1852
        return this.equals((getTickets_args)that);
1853
      return false;
1854
    }
1855
 
1856
    public boolean equals(getTickets_args that) {
1857
      if (that == null)
1858
        return false;
1859
 
3390 mandeep.dh 1860
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
1861
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
1862
      if (this_present_searchFilter || that_present_searchFilter) {
1863
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 1864
          return false;
3390 mandeep.dh 1865
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 1866
          return false;
1867
      }
1868
 
1869
      return true;
1870
    }
1871
 
1872
    @Override
1873
    public int hashCode() {
1874
      return 0;
1875
    }
1876
 
1877
    public int compareTo(getTickets_args other) {
1878
      if (!getClass().equals(other.getClass())) {
1879
        return getClass().getName().compareTo(other.getClass().getName());
1880
      }
1881
 
1882
      int lastComparison = 0;
1883
      getTickets_args typedOther = (getTickets_args)other;
1884
 
3430 rajveer 1885
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 1886
      if (lastComparison != 0) {
1887
        return lastComparison;
1888
      }
3430 rajveer 1889
      if (isSetSearchFilter()) {
1890
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
1891
        if (lastComparison != 0) {
1892
          return lastComparison;
1893
        }
3028 mandeep.dh 1894
      }
1895
      return 0;
1896
    }
1897
 
3430 rajveer 1898
    public _Fields fieldForId(int fieldId) {
1899
      return _Fields.findByThriftId(fieldId);
1900
    }
1901
 
1902
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1903
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 1904
      iprot.readStructBegin();
1905
      while (true)
1906
      {
1907
        field = iprot.readFieldBegin();
3430 rajveer 1908
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 1909
          break;
1910
        }
3430 rajveer 1911
        switch (field.id) {
1912
          case 1: // SEARCH_FILTER
1913
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1914
              this.searchFilter = new SearchFilter();
1915
              this.searchFilter.read(iprot);
1916
            } else { 
1917
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1918
            }
1919
            break;
1920
          default:
1921
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 1922
        }
3430 rajveer 1923
        iprot.readFieldEnd();
3028 mandeep.dh 1924
      }
1925
      iprot.readStructEnd();
1926
      validate();
1927
    }
1928
 
3430 rajveer 1929
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 1930
      validate();
1931
 
1932
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 1933
      if (this.searchFilter != null) {
1934
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
1935
        this.searchFilter.write(oprot);
1936
        oprot.writeFieldEnd();
1937
      }
3028 mandeep.dh 1938
      oprot.writeFieldStop();
1939
      oprot.writeStructEnd();
1940
    }
1941
 
1942
    @Override
1943
    public String toString() {
1944
      StringBuilder sb = new StringBuilder("getTickets_args(");
1945
      boolean first = true;
1946
 
3390 mandeep.dh 1947
      sb.append("searchFilter:");
1948
      if (this.searchFilter == null) {
1949
        sb.append("null");
1950
      } else {
1951
        sb.append(this.searchFilter);
1952
      }
3028 mandeep.dh 1953
      first = false;
1954
      sb.append(")");
1955
      return sb.toString();
1956
    }
1957
 
3430 rajveer 1958
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 1959
      // check for required fields
1960
    }
1961
 
3430 rajveer 1962
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1963
      try {
1964
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1965
      } catch (org.apache.thrift.TException te) {
1966
        throw new java.io.IOException(te);
1967
      }
1968
    }
1969
 
1970
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1971
      try {
1972
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1973
      } catch (org.apache.thrift.TException te) {
1974
        throw new java.io.IOException(te);
1975
      }
1976
    }
1977
 
3028 mandeep.dh 1978
  }
1979
 
3430 rajveer 1980
  public static class getTickets_result implements org.apache.thrift.TBase<getTickets_result, getTickets_result._Fields>, java.io.Serializable, Cloneable   {
1981
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_result");
3028 mandeep.dh 1982
 
3430 rajveer 1983
    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 1984
 
3430 rajveer 1985
    private List<Ticket> success; // required
3028 mandeep.dh 1986
 
1987
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1988
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 1989
      SUCCESS((short)0, "success");
1990
 
1991
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1992
 
1993
      static {
1994
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1995
          byName.put(field.getFieldName(), field);
1996
        }
1997
      }
1998
 
1999
      /**
2000
       * Find the _Fields constant that matches fieldId, or null if its not found.
2001
       */
2002
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2003
        switch(fieldId) {
2004
          case 0: // SUCCESS
2005
            return SUCCESS;
2006
          default:
2007
            return null;
2008
        }
3028 mandeep.dh 2009
      }
2010
 
2011
      /**
2012
       * Find the _Fields constant that matches fieldId, throwing an exception
2013
       * if it is not found.
2014
       */
2015
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2016
        _Fields fields = findByThriftId(fieldId);
2017
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2018
        return fields;
2019
      }
2020
 
2021
      /**
2022
       * Find the _Fields constant that matches name, or null if its not found.
2023
       */
2024
      public static _Fields findByName(String name) {
2025
        return byName.get(name);
2026
      }
2027
 
2028
      private final short _thriftId;
2029
      private final String _fieldName;
2030
 
2031
      _Fields(short thriftId, String fieldName) {
2032
        _thriftId = thriftId;
2033
        _fieldName = fieldName;
2034
      }
2035
 
2036
      public short getThriftFieldId() {
2037
        return _thriftId;
2038
      }
2039
 
2040
      public String getFieldName() {
2041
        return _fieldName;
2042
      }
2043
    }
2044
 
2045
    // isset id assignments
2046
 
3430 rajveer 2047
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 2048
    static {
3430 rajveer 2049
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2050
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2051
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2052
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class))));
2053
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2054
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getTickets_result.class, metaDataMap);
3028 mandeep.dh 2055
    }
2056
 
2057
    public getTickets_result() {
2058
    }
2059
 
2060
    public getTickets_result(
2061
      List<Ticket> success)
2062
    {
2063
      this();
2064
      this.success = success;
2065
    }
2066
 
2067
    /**
2068
     * Performs a deep copy on <i>other</i>.
2069
     */
2070
    public getTickets_result(getTickets_result other) {
2071
      if (other.isSetSuccess()) {
2072
        List<Ticket> __this__success = new ArrayList<Ticket>();
2073
        for (Ticket other_element : other.success) {
2074
          __this__success.add(new Ticket(other_element));
2075
        }
2076
        this.success = __this__success;
2077
      }
2078
    }
2079
 
2080
    public getTickets_result deepCopy() {
2081
      return new getTickets_result(this);
2082
    }
2083
 
3430 rajveer 2084
    @Override
2085
    public void clear() {
2086
      this.success = null;
3028 mandeep.dh 2087
    }
2088
 
2089
    public int getSuccessSize() {
2090
      return (this.success == null) ? 0 : this.success.size();
2091
    }
2092
 
2093
    public java.util.Iterator<Ticket> getSuccessIterator() {
2094
      return (this.success == null) ? null : this.success.iterator();
2095
    }
2096
 
2097
    public void addToSuccess(Ticket elem) {
2098
      if (this.success == null) {
2099
        this.success = new ArrayList<Ticket>();
2100
      }
2101
      this.success.add(elem);
2102
    }
2103
 
2104
    public List<Ticket> getSuccess() {
2105
      return this.success;
2106
    }
2107
 
3430 rajveer 2108
    public void setSuccess(List<Ticket> success) {
3028 mandeep.dh 2109
      this.success = success;
2110
    }
2111
 
2112
    public void unsetSuccess() {
2113
      this.success = null;
2114
    }
2115
 
3430 rajveer 2116
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 2117
    public boolean isSetSuccess() {
2118
      return this.success != null;
2119
    }
2120
 
2121
    public void setSuccessIsSet(boolean value) {
2122
      if (!value) {
2123
        this.success = null;
2124
      }
2125
    }
2126
 
2127
    public void setFieldValue(_Fields field, Object value) {
2128
      switch (field) {
2129
      case SUCCESS:
2130
        if (value == null) {
2131
          unsetSuccess();
2132
        } else {
2133
          setSuccess((List<Ticket>)value);
2134
        }
2135
        break;
2136
 
2137
      }
2138
    }
2139
 
2140
    public Object getFieldValue(_Fields field) {
2141
      switch (field) {
2142
      case SUCCESS:
2143
        return getSuccess();
2144
 
2145
      }
2146
      throw new IllegalStateException();
2147
    }
2148
 
3430 rajveer 2149
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2150
    public boolean isSet(_Fields field) {
2151
      if (field == null) {
2152
        throw new IllegalArgumentException();
2153
      }
3028 mandeep.dh 2154
 
2155
      switch (field) {
2156
      case SUCCESS:
2157
        return isSetSuccess();
2158
      }
2159
      throw new IllegalStateException();
2160
    }
2161
 
2162
    @Override
2163
    public boolean equals(Object that) {
2164
      if (that == null)
2165
        return false;
2166
      if (that instanceof getTickets_result)
2167
        return this.equals((getTickets_result)that);
2168
      return false;
2169
    }
2170
 
2171
    public boolean equals(getTickets_result that) {
2172
      if (that == null)
2173
        return false;
2174
 
2175
      boolean this_present_success = true && this.isSetSuccess();
2176
      boolean that_present_success = true && that.isSetSuccess();
2177
      if (this_present_success || that_present_success) {
2178
        if (!(this_present_success && that_present_success))
2179
          return false;
2180
        if (!this.success.equals(that.success))
2181
          return false;
2182
      }
2183
 
2184
      return true;
2185
    }
2186
 
2187
    @Override
2188
    public int hashCode() {
2189
      return 0;
2190
    }
2191
 
2192
    public int compareTo(getTickets_result other) {
2193
      if (!getClass().equals(other.getClass())) {
2194
        return getClass().getName().compareTo(other.getClass().getName());
2195
      }
2196
 
2197
      int lastComparison = 0;
2198
      getTickets_result typedOther = (getTickets_result)other;
2199
 
3430 rajveer 2200
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 2201
      if (lastComparison != 0) {
2202
        return lastComparison;
2203
      }
3430 rajveer 2204
      if (isSetSuccess()) {
2205
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2206
        if (lastComparison != 0) {
2207
          return lastComparison;
2208
        }
3028 mandeep.dh 2209
      }
2210
      return 0;
2211
    }
2212
 
3430 rajveer 2213
    public _Fields fieldForId(int fieldId) {
2214
      return _Fields.findByThriftId(fieldId);
2215
    }
2216
 
2217
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2218
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 2219
      iprot.readStructBegin();
2220
      while (true)
2221
      {
2222
        field = iprot.readFieldBegin();
3430 rajveer 2223
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 2224
          break;
2225
        }
3430 rajveer 2226
        switch (field.id) {
2227
          case 0: // SUCCESS
2228
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2229
              {
3546 mandeep.dh 2230
                org.apache.thrift.protocol.TList _list12 = iprot.readListBegin();
2231
                this.success = new ArrayList<Ticket>(_list12.size);
2232
                for (int _i13 = 0; _i13 < _list12.size; ++_i13)
3028 mandeep.dh 2233
                {
3546 mandeep.dh 2234
                  Ticket _elem14; // required
2235
                  _elem14 = new Ticket();
2236
                  _elem14.read(iprot);
2237
                  this.success.add(_elem14);
3028 mandeep.dh 2238
                }
3430 rajveer 2239
                iprot.readListEnd();
3028 mandeep.dh 2240
              }
3430 rajveer 2241
            } else { 
2242
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2243
            }
2244
            break;
2245
          default:
2246
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 2247
        }
3430 rajveer 2248
        iprot.readFieldEnd();
3028 mandeep.dh 2249
      }
2250
      iprot.readStructEnd();
2251
      validate();
2252
    }
2253
 
3430 rajveer 2254
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 2255
      oprot.writeStructBegin(STRUCT_DESC);
2256
 
2257
      if (this.isSetSuccess()) {
2258
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2259
        {
3430 rajveer 2260
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 2261
          for (Ticket _iter15 : this.success)
3028 mandeep.dh 2262
          {
3546 mandeep.dh 2263
            _iter15.write(oprot);
3028 mandeep.dh 2264
          }
2265
          oprot.writeListEnd();
2266
        }
2267
        oprot.writeFieldEnd();
2268
      }
2269
      oprot.writeFieldStop();
2270
      oprot.writeStructEnd();
2271
    }
2272
 
2273
    @Override
2274
    public String toString() {
2275
      StringBuilder sb = new StringBuilder("getTickets_result(");
2276
      boolean first = true;
2277
 
2278
      sb.append("success:");
2279
      if (this.success == null) {
2280
        sb.append("null");
2281
      } else {
2282
        sb.append(this.success);
2283
      }
2284
      first = false;
2285
      sb.append(")");
2286
      return sb.toString();
2287
    }
2288
 
3430 rajveer 2289
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 2290
      // check for required fields
2291
    }
2292
 
3430 rajveer 2293
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2294
      try {
2295
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2296
      } catch (org.apache.thrift.TException te) {
2297
        throw new java.io.IOException(te);
2298
      }
2299
    }
2300
 
2301
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2302
      try {
2303
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2304
      } catch (org.apache.thrift.TException te) {
2305
        throw new java.io.IOException(te);
2306
      }
2307
    }
2308
 
3028 mandeep.dh 2309
  }
2310
 
3430 rajveer 2311
  public static class getUnassignedTickets_args implements org.apache.thrift.TBase<getUnassignedTickets_args, getUnassignedTickets_args._Fields>, java.io.Serializable, Cloneable   {
2312
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnassignedTickets_args");
3087 mandeep.dh 2313
 
2314
 
2315
 
2316
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2317
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 2318
;
2319
 
2320
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2321
 
2322
      static {
2323
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2324
          byName.put(field.getFieldName(), field);
2325
        }
2326
      }
2327
 
2328
      /**
2329
       * Find the _Fields constant that matches fieldId, or null if its not found.
2330
       */
2331
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2332
        switch(fieldId) {
2333
          default:
2334
            return null;
2335
        }
3087 mandeep.dh 2336
      }
2337
 
2338
      /**
2339
       * Find the _Fields constant that matches fieldId, throwing an exception
2340
       * if it is not found.
2341
       */
2342
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2343
        _Fields fields = findByThriftId(fieldId);
2344
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2345
        return fields;
2346
      }
2347
 
2348
      /**
2349
       * Find the _Fields constant that matches name, or null if its not found.
2350
       */
2351
      public static _Fields findByName(String name) {
2352
        return byName.get(name);
2353
      }
2354
 
2355
      private final short _thriftId;
2356
      private final String _fieldName;
2357
 
2358
      _Fields(short thriftId, String fieldName) {
2359
        _thriftId = thriftId;
2360
        _fieldName = fieldName;
2361
      }
2362
 
2363
      public short getThriftFieldId() {
2364
        return _thriftId;
2365
      }
2366
 
2367
      public String getFieldName() {
2368
        return _fieldName;
2369
      }
2370
    }
3430 rajveer 2371
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 2372
    static {
3430 rajveer 2373
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2374
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2375
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnassignedTickets_args.class, metaDataMap);
3087 mandeep.dh 2376
    }
2377
 
3137 mandeep.dh 2378
    public getUnassignedTickets_args() {
3087 mandeep.dh 2379
    }
2380
 
2381
    /**
2382
     * Performs a deep copy on <i>other</i>.
2383
     */
3137 mandeep.dh 2384
    public getUnassignedTickets_args(getUnassignedTickets_args other) {
3087 mandeep.dh 2385
    }
2386
 
3137 mandeep.dh 2387
    public getUnassignedTickets_args deepCopy() {
2388
      return new getUnassignedTickets_args(this);
3087 mandeep.dh 2389
    }
2390
 
3430 rajveer 2391
    @Override
2392
    public void clear() {
3087 mandeep.dh 2393
    }
2394
 
2395
    public void setFieldValue(_Fields field, Object value) {
2396
      switch (field) {
2397
      }
2398
    }
2399
 
2400
    public Object getFieldValue(_Fields field) {
2401
      switch (field) {
2402
      }
2403
      throw new IllegalStateException();
2404
    }
2405
 
3430 rajveer 2406
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2407
    public boolean isSet(_Fields field) {
2408
      if (field == null) {
2409
        throw new IllegalArgumentException();
2410
      }
3087 mandeep.dh 2411
 
2412
      switch (field) {
2413
      }
2414
      throw new IllegalStateException();
2415
    }
2416
 
2417
    @Override
2418
    public boolean equals(Object that) {
2419
      if (that == null)
2420
        return false;
3137 mandeep.dh 2421
      if (that instanceof getUnassignedTickets_args)
2422
        return this.equals((getUnassignedTickets_args)that);
3087 mandeep.dh 2423
      return false;
2424
    }
2425
 
3137 mandeep.dh 2426
    public boolean equals(getUnassignedTickets_args that) {
3087 mandeep.dh 2427
      if (that == null)
2428
        return false;
2429
 
2430
      return true;
2431
    }
2432
 
2433
    @Override
2434
    public int hashCode() {
2435
      return 0;
2436
    }
2437
 
3137 mandeep.dh 2438
    public int compareTo(getUnassignedTickets_args other) {
3087 mandeep.dh 2439
      if (!getClass().equals(other.getClass())) {
2440
        return getClass().getName().compareTo(other.getClass().getName());
2441
      }
2442
 
2443
      int lastComparison = 0;
3137 mandeep.dh 2444
      getUnassignedTickets_args typedOther = (getUnassignedTickets_args)other;
3087 mandeep.dh 2445
 
2446
      return 0;
2447
    }
2448
 
3430 rajveer 2449
    public _Fields fieldForId(int fieldId) {
2450
      return _Fields.findByThriftId(fieldId);
2451
    }
2452
 
2453
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2454
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 2455
      iprot.readStructBegin();
2456
      while (true)
2457
      {
2458
        field = iprot.readFieldBegin();
3430 rajveer 2459
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 2460
          break;
2461
        }
3430 rajveer 2462
        switch (field.id) {
2463
          default:
2464
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 2465
        }
3430 rajveer 2466
        iprot.readFieldEnd();
3087 mandeep.dh 2467
      }
2468
      iprot.readStructEnd();
2469
      validate();
2470
    }
2471
 
3430 rajveer 2472
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 2473
      validate();
2474
 
2475
      oprot.writeStructBegin(STRUCT_DESC);
2476
      oprot.writeFieldStop();
2477
      oprot.writeStructEnd();
2478
    }
2479
 
2480
    @Override
2481
    public String toString() {
3137 mandeep.dh 2482
      StringBuilder sb = new StringBuilder("getUnassignedTickets_args(");
3087 mandeep.dh 2483
      boolean first = true;
2484
 
2485
      sb.append(")");
2486
      return sb.toString();
2487
    }
2488
 
3430 rajveer 2489
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 2490
      // check for required fields
2491
    }
2492
 
3430 rajveer 2493
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2494
      try {
2495
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2496
      } catch (org.apache.thrift.TException te) {
2497
        throw new java.io.IOException(te);
2498
      }
2499
    }
2500
 
2501
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2502
      try {
2503
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2504
      } catch (org.apache.thrift.TException te) {
2505
        throw new java.io.IOException(te);
2506
      }
2507
    }
2508
 
3087 mandeep.dh 2509
  }
2510
 
3430 rajveer 2511
  public static class getUnassignedTickets_result implements org.apache.thrift.TBase<getUnassignedTickets_result, getUnassignedTickets_result._Fields>, java.io.Serializable, Cloneable   {
2512
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUnassignedTickets_result");
3087 mandeep.dh 2513
 
3430 rajveer 2514
    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 2515
 
3430 rajveer 2516
    private List<Ticket> success; // required
3087 mandeep.dh 2517
 
2518
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2519
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 2520
      SUCCESS((short)0, "success");
2521
 
2522
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2523
 
2524
      static {
2525
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2526
          byName.put(field.getFieldName(), field);
2527
        }
2528
      }
2529
 
2530
      /**
2531
       * Find the _Fields constant that matches fieldId, or null if its not found.
2532
       */
2533
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2534
        switch(fieldId) {
2535
          case 0: // SUCCESS
2536
            return SUCCESS;
2537
          default:
2538
            return null;
2539
        }
3087 mandeep.dh 2540
      }
2541
 
2542
      /**
2543
       * Find the _Fields constant that matches fieldId, throwing an exception
2544
       * if it is not found.
2545
       */
2546
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2547
        _Fields fields = findByThriftId(fieldId);
2548
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2549
        return fields;
2550
      }
2551
 
2552
      /**
2553
       * Find the _Fields constant that matches name, or null if its not found.
2554
       */
2555
      public static _Fields findByName(String name) {
2556
        return byName.get(name);
2557
      }
2558
 
2559
      private final short _thriftId;
2560
      private final String _fieldName;
2561
 
2562
      _Fields(short thriftId, String fieldName) {
2563
        _thriftId = thriftId;
2564
        _fieldName = fieldName;
2565
      }
2566
 
2567
      public short getThriftFieldId() {
2568
        return _thriftId;
2569
      }
2570
 
2571
      public String getFieldName() {
2572
        return _fieldName;
2573
      }
2574
    }
2575
 
2576
    // isset id assignments
2577
 
3430 rajveer 2578
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 2579
    static {
3430 rajveer 2580
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2581
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2582
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
2583
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class))));
2584
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2585
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUnassignedTickets_result.class, metaDataMap);
3087 mandeep.dh 2586
    }
2587
 
3137 mandeep.dh 2588
    public getUnassignedTickets_result() {
3087 mandeep.dh 2589
    }
2590
 
3137 mandeep.dh 2591
    public getUnassignedTickets_result(
3087 mandeep.dh 2592
      List<Ticket> success)
2593
    {
2594
      this();
2595
      this.success = success;
2596
    }
2597
 
2598
    /**
2599
     * Performs a deep copy on <i>other</i>.
2600
     */
3137 mandeep.dh 2601
    public getUnassignedTickets_result(getUnassignedTickets_result other) {
3087 mandeep.dh 2602
      if (other.isSetSuccess()) {
2603
        List<Ticket> __this__success = new ArrayList<Ticket>();
2604
        for (Ticket other_element : other.success) {
2605
          __this__success.add(new Ticket(other_element));
2606
        }
2607
        this.success = __this__success;
2608
      }
2609
    }
2610
 
3137 mandeep.dh 2611
    public getUnassignedTickets_result deepCopy() {
2612
      return new getUnassignedTickets_result(this);
3087 mandeep.dh 2613
    }
2614
 
3430 rajveer 2615
    @Override
2616
    public void clear() {
2617
      this.success = null;
3087 mandeep.dh 2618
    }
2619
 
2620
    public int getSuccessSize() {
2621
      return (this.success == null) ? 0 : this.success.size();
2622
    }
2623
 
2624
    public java.util.Iterator<Ticket> getSuccessIterator() {
2625
      return (this.success == null) ? null : this.success.iterator();
2626
    }
2627
 
2628
    public void addToSuccess(Ticket elem) {
2629
      if (this.success == null) {
2630
        this.success = new ArrayList<Ticket>();
2631
      }
2632
      this.success.add(elem);
2633
    }
2634
 
2635
    public List<Ticket> getSuccess() {
2636
      return this.success;
2637
    }
2638
 
3430 rajveer 2639
    public void setSuccess(List<Ticket> success) {
3087 mandeep.dh 2640
      this.success = success;
2641
    }
2642
 
2643
    public void unsetSuccess() {
2644
      this.success = null;
2645
    }
2646
 
3430 rajveer 2647
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 2648
    public boolean isSetSuccess() {
2649
      return this.success != null;
2650
    }
2651
 
2652
    public void setSuccessIsSet(boolean value) {
2653
      if (!value) {
2654
        this.success = null;
2655
      }
2656
    }
2657
 
2658
    public void setFieldValue(_Fields field, Object value) {
2659
      switch (field) {
2660
      case SUCCESS:
2661
        if (value == null) {
2662
          unsetSuccess();
2663
        } else {
2664
          setSuccess((List<Ticket>)value);
2665
        }
2666
        break;
2667
 
2668
      }
2669
    }
2670
 
2671
    public Object getFieldValue(_Fields field) {
2672
      switch (field) {
2673
      case SUCCESS:
2674
        return getSuccess();
2675
 
2676
      }
2677
      throw new IllegalStateException();
2678
    }
2679
 
3430 rajveer 2680
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2681
    public boolean isSet(_Fields field) {
2682
      if (field == null) {
2683
        throw new IllegalArgumentException();
2684
      }
3087 mandeep.dh 2685
 
2686
      switch (field) {
2687
      case SUCCESS:
2688
        return isSetSuccess();
2689
      }
2690
      throw new IllegalStateException();
2691
    }
2692
 
2693
    @Override
2694
    public boolean equals(Object that) {
2695
      if (that == null)
2696
        return false;
3137 mandeep.dh 2697
      if (that instanceof getUnassignedTickets_result)
2698
        return this.equals((getUnassignedTickets_result)that);
3087 mandeep.dh 2699
      return false;
2700
    }
2701
 
3137 mandeep.dh 2702
    public boolean equals(getUnassignedTickets_result that) {
3087 mandeep.dh 2703
      if (that == null)
2704
        return false;
2705
 
2706
      boolean this_present_success = true && this.isSetSuccess();
2707
      boolean that_present_success = true && that.isSetSuccess();
2708
      if (this_present_success || that_present_success) {
2709
        if (!(this_present_success && that_present_success))
2710
          return false;
2711
        if (!this.success.equals(that.success))
2712
          return false;
2713
      }
2714
 
2715
      return true;
2716
    }
2717
 
2718
    @Override
2719
    public int hashCode() {
2720
      return 0;
2721
    }
2722
 
3137 mandeep.dh 2723
    public int compareTo(getUnassignedTickets_result other) {
3087 mandeep.dh 2724
      if (!getClass().equals(other.getClass())) {
2725
        return getClass().getName().compareTo(other.getClass().getName());
2726
      }
2727
 
2728
      int lastComparison = 0;
3137 mandeep.dh 2729
      getUnassignedTickets_result typedOther = (getUnassignedTickets_result)other;
3087 mandeep.dh 2730
 
3430 rajveer 2731
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 2732
      if (lastComparison != 0) {
2733
        return lastComparison;
2734
      }
3430 rajveer 2735
      if (isSetSuccess()) {
2736
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2737
        if (lastComparison != 0) {
2738
          return lastComparison;
2739
        }
3087 mandeep.dh 2740
      }
2741
      return 0;
2742
    }
2743
 
3430 rajveer 2744
    public _Fields fieldForId(int fieldId) {
2745
      return _Fields.findByThriftId(fieldId);
2746
    }
2747
 
2748
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2749
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 2750
      iprot.readStructBegin();
2751
      while (true)
2752
      {
2753
        field = iprot.readFieldBegin();
3430 rajveer 2754
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 2755
          break;
2756
        }
3430 rajveer 2757
        switch (field.id) {
2758
          case 0: // SUCCESS
2759
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
2760
              {
3546 mandeep.dh 2761
                org.apache.thrift.protocol.TList _list16 = iprot.readListBegin();
2762
                this.success = new ArrayList<Ticket>(_list16.size);
2763
                for (int _i17 = 0; _i17 < _list16.size; ++_i17)
3087 mandeep.dh 2764
                {
3546 mandeep.dh 2765
                  Ticket _elem18; // required
2766
                  _elem18 = new Ticket();
2767
                  _elem18.read(iprot);
2768
                  this.success.add(_elem18);
3137 mandeep.dh 2769
                }
3430 rajveer 2770
                iprot.readListEnd();
3137 mandeep.dh 2771
              }
3430 rajveer 2772
            } else { 
2773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2774
            }
2775
            break;
2776
          default:
2777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3137 mandeep.dh 2778
        }
3430 rajveer 2779
        iprot.readFieldEnd();
3137 mandeep.dh 2780
      }
2781
      iprot.readStructEnd();
2782
      validate();
2783
    }
2784
 
3430 rajveer 2785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3137 mandeep.dh 2786
      oprot.writeStructBegin(STRUCT_DESC);
2787
 
2788
      if (this.isSetSuccess()) {
2789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2790
        {
3430 rajveer 2791
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 2792
          for (Ticket _iter19 : this.success)
3137 mandeep.dh 2793
          {
3546 mandeep.dh 2794
            _iter19.write(oprot);
3137 mandeep.dh 2795
          }
2796
          oprot.writeListEnd();
2797
        }
2798
        oprot.writeFieldEnd();
2799
      }
2800
      oprot.writeFieldStop();
2801
      oprot.writeStructEnd();
2802
    }
2803
 
2804
    @Override
2805
    public String toString() {
3390 mandeep.dh 2806
      StringBuilder sb = new StringBuilder("getUnassignedTickets_result(");
3137 mandeep.dh 2807
      boolean first = true;
2808
 
2809
      sb.append("success:");
2810
      if (this.success == null) {
2811
        sb.append("null");
2812
      } else {
2813
        sb.append(this.success);
2814
      }
2815
      first = false;
2816
      sb.append(")");
2817
      return sb.toString();
2818
    }
2819
 
3430 rajveer 2820
    public void validate() throws org.apache.thrift.TException {
3137 mandeep.dh 2821
      // check for required fields
2822
    }
2823
 
3430 rajveer 2824
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
2825
      try {
2826
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
2827
      } catch (org.apache.thrift.TException te) {
2828
        throw new java.io.IOException(te);
2829
      }
2830
    }
2831
 
2832
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
2833
      try {
2834
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
2835
      } catch (org.apache.thrift.TException te) {
2836
        throw new java.io.IOException(te);
2837
      }
2838
    }
2839
 
3137 mandeep.dh 2840
  }
2841
 
3430 rajveer 2842
  public static class updateTicket_args implements org.apache.thrift.TBase<updateTicket_args, updateTicket_args._Fields>, java.io.Serializable, Cloneable   {
2843
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTicket_args");
3028 mandeep.dh 2844
 
3430 rajveer 2845
    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);
2846
    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 2847
 
3430 rajveer 2848
    private Ticket ticket; // required
2849
    private Activity activity; // required
3028 mandeep.dh 2850
 
2851
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 2852
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3206 mandeep.dh 2853
      TICKET((short)1, "ticket"),
2854
      ACTIVITY((short)2, "activity");
3028 mandeep.dh 2855
 
2856
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2857
 
2858
      static {
2859
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2860
          byName.put(field.getFieldName(), field);
2861
        }
2862
      }
2863
 
2864
      /**
2865
       * Find the _Fields constant that matches fieldId, or null if its not found.
2866
       */
2867
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 2868
        switch(fieldId) {
2869
          case 1: // TICKET
2870
            return TICKET;
2871
          case 2: // ACTIVITY
2872
            return ACTIVITY;
2873
          default:
2874
            return null;
2875
        }
3028 mandeep.dh 2876
      }
2877
 
2878
      /**
2879
       * Find the _Fields constant that matches fieldId, throwing an exception
2880
       * if it is not found.
2881
       */
2882
      public static _Fields findByThriftIdOrThrow(int fieldId) {
2883
        _Fields fields = findByThriftId(fieldId);
2884
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
2885
        return fields;
2886
      }
2887
 
2888
      /**
2889
       * Find the _Fields constant that matches name, or null if its not found.
2890
       */
2891
      public static _Fields findByName(String name) {
2892
        return byName.get(name);
2893
      }
2894
 
2895
      private final short _thriftId;
2896
      private final String _fieldName;
2897
 
2898
      _Fields(short thriftId, String fieldName) {
2899
        _thriftId = thriftId;
2900
        _fieldName = fieldName;
2901
      }
2902
 
2903
      public short getThriftFieldId() {
2904
        return _thriftId;
2905
      }
2906
 
2907
      public String getFieldName() {
2908
        return _fieldName;
2909
      }
2910
    }
2911
 
2912
    // isset id assignments
2913
 
3430 rajveer 2914
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 2915
    static {
3430 rajveer 2916
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
2917
      tmpMap.put(_Fields.TICKET, new org.apache.thrift.meta_data.FieldMetaData("ticket", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2918
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class)));
2919
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
2920
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
2921
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2922
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTicket_args.class, metaDataMap);
3028 mandeep.dh 2923
    }
2924
 
2925
    public updateTicket_args() {
2926
    }
2927
 
2928
    public updateTicket_args(
3206 mandeep.dh 2929
      Ticket ticket,
2930
      Activity activity)
3028 mandeep.dh 2931
    {
2932
      this();
2933
      this.ticket = ticket;
3206 mandeep.dh 2934
      this.activity = activity;
3028 mandeep.dh 2935
    }
2936
 
2937
    /**
2938
     * Performs a deep copy on <i>other</i>.
2939
     */
2940
    public updateTicket_args(updateTicket_args other) {
2941
      if (other.isSetTicket()) {
2942
        this.ticket = new Ticket(other.ticket);
2943
      }
3206 mandeep.dh 2944
      if (other.isSetActivity()) {
2945
        this.activity = new Activity(other.activity);
2946
      }
3028 mandeep.dh 2947
    }
2948
 
2949
    public updateTicket_args deepCopy() {
2950
      return new updateTicket_args(this);
2951
    }
2952
 
3430 rajveer 2953
    @Override
2954
    public void clear() {
2955
      this.ticket = null;
2956
      this.activity = null;
3028 mandeep.dh 2957
    }
2958
 
2959
    public Ticket getTicket() {
2960
      return this.ticket;
2961
    }
2962
 
3430 rajveer 2963
    public void setTicket(Ticket ticket) {
3028 mandeep.dh 2964
      this.ticket = ticket;
2965
    }
2966
 
2967
    public void unsetTicket() {
2968
      this.ticket = null;
2969
    }
2970
 
3430 rajveer 2971
    /** Returns true if field ticket is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 2972
    public boolean isSetTicket() {
2973
      return this.ticket != null;
2974
    }
2975
 
2976
    public void setTicketIsSet(boolean value) {
2977
      if (!value) {
2978
        this.ticket = null;
2979
      }
2980
    }
2981
 
3206 mandeep.dh 2982
    public Activity getActivity() {
2983
      return this.activity;
2984
    }
2985
 
3430 rajveer 2986
    public void setActivity(Activity activity) {
3206 mandeep.dh 2987
      this.activity = activity;
2988
    }
2989
 
2990
    public void unsetActivity() {
2991
      this.activity = null;
2992
    }
2993
 
3430 rajveer 2994
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 2995
    public boolean isSetActivity() {
2996
      return this.activity != null;
2997
    }
2998
 
2999
    public void setActivityIsSet(boolean value) {
3000
      if (!value) {
3001
        this.activity = null;
3002
      }
3003
    }
3004
 
3028 mandeep.dh 3005
    public void setFieldValue(_Fields field, Object value) {
3006
      switch (field) {
3007
      case TICKET:
3008
        if (value == null) {
3009
          unsetTicket();
3010
        } else {
3011
          setTicket((Ticket)value);
3012
        }
3013
        break;
3014
 
3206 mandeep.dh 3015
      case ACTIVITY:
3016
        if (value == null) {
3017
          unsetActivity();
3018
        } else {
3019
          setActivity((Activity)value);
3020
        }
3021
        break;
3022
 
3028 mandeep.dh 3023
      }
3024
    }
3025
 
3026
    public Object getFieldValue(_Fields field) {
3027
      switch (field) {
3028
      case TICKET:
3029
        return getTicket();
3030
 
3206 mandeep.dh 3031
      case ACTIVITY:
3032
        return getActivity();
3033
 
3028 mandeep.dh 3034
      }
3035
      throw new IllegalStateException();
3036
    }
3037
 
3430 rajveer 3038
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3039
    public boolean isSet(_Fields field) {
3040
      if (field == null) {
3041
        throw new IllegalArgumentException();
3042
      }
3028 mandeep.dh 3043
 
3044
      switch (field) {
3045
      case TICKET:
3046
        return isSetTicket();
3206 mandeep.dh 3047
      case ACTIVITY:
3048
        return isSetActivity();
3028 mandeep.dh 3049
      }
3050
      throw new IllegalStateException();
3051
    }
3052
 
3053
    @Override
3054
    public boolean equals(Object that) {
3055
      if (that == null)
3056
        return false;
3057
      if (that instanceof updateTicket_args)
3058
        return this.equals((updateTicket_args)that);
3059
      return false;
3060
    }
3061
 
3062
    public boolean equals(updateTicket_args that) {
3063
      if (that == null)
3064
        return false;
3065
 
3066
      boolean this_present_ticket = true && this.isSetTicket();
3067
      boolean that_present_ticket = true && that.isSetTicket();
3068
      if (this_present_ticket || that_present_ticket) {
3069
        if (!(this_present_ticket && that_present_ticket))
3070
          return false;
3071
        if (!this.ticket.equals(that.ticket))
3072
          return false;
3073
      }
3074
 
3206 mandeep.dh 3075
      boolean this_present_activity = true && this.isSetActivity();
3076
      boolean that_present_activity = true && that.isSetActivity();
3077
      if (this_present_activity || that_present_activity) {
3078
        if (!(this_present_activity && that_present_activity))
3079
          return false;
3080
        if (!this.activity.equals(that.activity))
3081
          return false;
3082
      }
3083
 
3028 mandeep.dh 3084
      return true;
3085
    }
3086
 
3087
    @Override
3088
    public int hashCode() {
3089
      return 0;
3090
    }
3091
 
3092
    public int compareTo(updateTicket_args other) {
3093
      if (!getClass().equals(other.getClass())) {
3094
        return getClass().getName().compareTo(other.getClass().getName());
3095
      }
3096
 
3097
      int lastComparison = 0;
3098
      updateTicket_args typedOther = (updateTicket_args)other;
3099
 
3430 rajveer 3100
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(typedOther.isSetTicket());
3028 mandeep.dh 3101
      if (lastComparison != 0) {
3102
        return lastComparison;
3103
      }
3430 rajveer 3104
      if (isSetTicket()) {
3105
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticket, typedOther.ticket);
3106
        if (lastComparison != 0) {
3107
          return lastComparison;
3108
        }
3028 mandeep.dh 3109
      }
3430 rajveer 3110
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3206 mandeep.dh 3111
      if (lastComparison != 0) {
3112
        return lastComparison;
3113
      }
3430 rajveer 3114
      if (isSetActivity()) {
3115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
3116
        if (lastComparison != 0) {
3117
          return lastComparison;
3118
        }
3206 mandeep.dh 3119
      }
3028 mandeep.dh 3120
      return 0;
3121
    }
3122
 
3430 rajveer 3123
    public _Fields fieldForId(int fieldId) {
3124
      return _Fields.findByThriftId(fieldId);
3125
    }
3126
 
3127
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3128
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3129
      iprot.readStructBegin();
3130
      while (true)
3131
      {
3132
        field = iprot.readFieldBegin();
3430 rajveer 3133
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3134
          break;
3135
        }
3430 rajveer 3136
        switch (field.id) {
3137
          case 1: // TICKET
3138
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3139
              this.ticket = new Ticket();
3140
              this.ticket.read(iprot);
3141
            } else { 
3142
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3143
            }
3144
            break;
3145
          case 2: // ACTIVITY
3146
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3147
              this.activity = new Activity();
3148
              this.activity.read(iprot);
3149
            } else { 
3150
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3151
            }
3152
            break;
3153
          default:
3154
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3155
        }
3430 rajveer 3156
        iprot.readFieldEnd();
3028 mandeep.dh 3157
      }
3158
      iprot.readStructEnd();
3159
      validate();
3160
    }
3161
 
3430 rajveer 3162
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3163
      validate();
3164
 
3165
      oprot.writeStructBegin(STRUCT_DESC);
3166
      if (this.ticket != null) {
3167
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
3168
        this.ticket.write(oprot);
3169
        oprot.writeFieldEnd();
3170
      }
3206 mandeep.dh 3171
      if (this.activity != null) {
3172
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
3173
        this.activity.write(oprot);
3174
        oprot.writeFieldEnd();
3175
      }
3028 mandeep.dh 3176
      oprot.writeFieldStop();
3177
      oprot.writeStructEnd();
3178
    }
3179
 
3180
    @Override
3181
    public String toString() {
3182
      StringBuilder sb = new StringBuilder("updateTicket_args(");
3183
      boolean first = true;
3184
 
3185
      sb.append("ticket:");
3186
      if (this.ticket == null) {
3187
        sb.append("null");
3188
      } else {
3189
        sb.append(this.ticket);
3190
      }
3191
      first = false;
3206 mandeep.dh 3192
      if (!first) sb.append(", ");
3193
      sb.append("activity:");
3194
      if (this.activity == null) {
3195
        sb.append("null");
3196
      } else {
3197
        sb.append(this.activity);
3198
      }
3199
      first = false;
3028 mandeep.dh 3200
      sb.append(")");
3201
      return sb.toString();
3202
    }
3203
 
3430 rajveer 3204
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3205
      // check for required fields
3206
    }
3207
 
3430 rajveer 3208
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3209
      try {
3210
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3211
      } catch (org.apache.thrift.TException te) {
3212
        throw new java.io.IOException(te);
3213
      }
3214
    }
3215
 
3216
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3217
      try {
3218
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3219
      } catch (org.apache.thrift.TException te) {
3220
        throw new java.io.IOException(te);
3221
      }
3222
    }
3223
 
3028 mandeep.dh 3224
  }
3225
 
3430 rajveer 3226
  public static class updateTicket_result implements org.apache.thrift.TBase<updateTicket_result, updateTicket_result._Fields>, java.io.Serializable, Cloneable   {
3227
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateTicket_result");
3028 mandeep.dh 3228
 
3229
 
3230
 
3231
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3232
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 3233
;
3234
 
3235
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3236
 
3237
      static {
3238
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3239
          byName.put(field.getFieldName(), field);
3240
        }
3241
      }
3242
 
3243
      /**
3244
       * Find the _Fields constant that matches fieldId, or null if its not found.
3245
       */
3246
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3247
        switch(fieldId) {
3248
          default:
3249
            return null;
3250
        }
3028 mandeep.dh 3251
      }
3252
 
3253
      /**
3254
       * Find the _Fields constant that matches fieldId, throwing an exception
3255
       * if it is not found.
3256
       */
3257
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3258
        _Fields fields = findByThriftId(fieldId);
3259
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3260
        return fields;
3261
      }
3262
 
3263
      /**
3264
       * Find the _Fields constant that matches name, or null if its not found.
3265
       */
3266
      public static _Fields findByName(String name) {
3267
        return byName.get(name);
3268
      }
3269
 
3270
      private final short _thriftId;
3271
      private final String _fieldName;
3272
 
3273
      _Fields(short thriftId, String fieldName) {
3274
        _thriftId = thriftId;
3275
        _fieldName = fieldName;
3276
      }
3277
 
3278
      public short getThriftFieldId() {
3279
        return _thriftId;
3280
      }
3281
 
3282
      public String getFieldName() {
3283
        return _fieldName;
3284
      }
3285
    }
3430 rajveer 3286
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 3287
    static {
3430 rajveer 3288
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3289
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3290
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateTicket_result.class, metaDataMap);
3028 mandeep.dh 3291
    }
3292
 
3293
    public updateTicket_result() {
3294
    }
3295
 
3296
    /**
3297
     * Performs a deep copy on <i>other</i>.
3298
     */
3299
    public updateTicket_result(updateTicket_result other) {
3300
    }
3301
 
3302
    public updateTicket_result deepCopy() {
3303
      return new updateTicket_result(this);
3304
    }
3305
 
3430 rajveer 3306
    @Override
3307
    public void clear() {
3028 mandeep.dh 3308
    }
3309
 
3310
    public void setFieldValue(_Fields field, Object value) {
3311
      switch (field) {
3312
      }
3313
    }
3314
 
3315
    public Object getFieldValue(_Fields field) {
3316
      switch (field) {
3317
      }
3318
      throw new IllegalStateException();
3319
    }
3320
 
3430 rajveer 3321
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3322
    public boolean isSet(_Fields field) {
3323
      if (field == null) {
3324
        throw new IllegalArgumentException();
3325
      }
3028 mandeep.dh 3326
 
3327
      switch (field) {
3328
      }
3329
      throw new IllegalStateException();
3330
    }
3331
 
3332
    @Override
3333
    public boolean equals(Object that) {
3334
      if (that == null)
3335
        return false;
3336
      if (that instanceof updateTicket_result)
3337
        return this.equals((updateTicket_result)that);
3338
      return false;
3339
    }
3340
 
3341
    public boolean equals(updateTicket_result that) {
3342
      if (that == null)
3343
        return false;
3344
 
3345
      return true;
3346
    }
3347
 
3348
    @Override
3349
    public int hashCode() {
3350
      return 0;
3351
    }
3352
 
3353
    public int compareTo(updateTicket_result other) {
3354
      if (!getClass().equals(other.getClass())) {
3355
        return getClass().getName().compareTo(other.getClass().getName());
3356
      }
3357
 
3358
      int lastComparison = 0;
3359
      updateTicket_result typedOther = (updateTicket_result)other;
3360
 
3361
      return 0;
3362
    }
3363
 
3430 rajveer 3364
    public _Fields fieldForId(int fieldId) {
3365
      return _Fields.findByThriftId(fieldId);
3366
    }
3367
 
3368
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3369
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3370
      iprot.readStructBegin();
3371
      while (true)
3372
      {
3373
        field = iprot.readFieldBegin();
3430 rajveer 3374
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3375
          break;
3376
        }
3430 rajveer 3377
        switch (field.id) {
3378
          default:
3379
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3380
        }
3430 rajveer 3381
        iprot.readFieldEnd();
3028 mandeep.dh 3382
      }
3383
      iprot.readStructEnd();
3384
      validate();
3385
    }
3386
 
3430 rajveer 3387
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3388
      oprot.writeStructBegin(STRUCT_DESC);
3389
 
3390
      oprot.writeFieldStop();
3391
      oprot.writeStructEnd();
3392
    }
3393
 
3394
    @Override
3395
    public String toString() {
3396
      StringBuilder sb = new StringBuilder("updateTicket_result(");
3397
      boolean first = true;
3398
 
3399
      sb.append(")");
3400
      return sb.toString();
3401
    }
3402
 
3430 rajveer 3403
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3404
      // check for required fields
3405
    }
3406
 
3430 rajveer 3407
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3408
      try {
3409
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3410
      } catch (org.apache.thrift.TException te) {
3411
        throw new java.io.IOException(te);
3412
      }
3413
    }
3414
 
3415
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3416
      try {
3417
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3418
      } catch (org.apache.thrift.TException te) {
3419
        throw new java.io.IOException(te);
3420
      }
3421
    }
3422
 
3028 mandeep.dh 3423
  }
3424
 
3430 rajveer 3425
  public static class insertTicket_args implements org.apache.thrift.TBase<insertTicket_args, insertTicket_args._Fields>, java.io.Serializable, Cloneable   {
3426
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertTicket_args");
3028 mandeep.dh 3427
 
3430 rajveer 3428
    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);
3429
    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 3430
 
3430 rajveer 3431
    private Ticket ticket; // required
3432
    private Activity activity; // 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 {
3206 mandeep.dh 3436
      TICKET((short)1, "ticket"),
3437
      ACTIVITY((short)2, "activity");
3028 mandeep.dh 3438
 
3439
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3440
 
3441
      static {
3442
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3443
          byName.put(field.getFieldName(), field);
3444
        }
3445
      }
3446
 
3447
      /**
3448
       * Find the _Fields constant that matches fieldId, or null if its not found.
3449
       */
3450
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3451
        switch(fieldId) {
3452
          case 1: // TICKET
3453
            return TICKET;
3454
          case 2: // ACTIVITY
3455
            return ACTIVITY;
3456
          default:
3457
            return null;
3458
        }
3028 mandeep.dh 3459
      }
3460
 
3461
      /**
3462
       * Find the _Fields constant that matches fieldId, throwing an exception
3463
       * if it is not found.
3464
       */
3465
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3466
        _Fields fields = findByThriftId(fieldId);
3467
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3468
        return fields;
3469
      }
3470
 
3471
      /**
3472
       * Find the _Fields constant that matches name, or null if its not found.
3473
       */
3474
      public static _Fields findByName(String name) {
3475
        return byName.get(name);
3476
      }
3477
 
3478
      private final short _thriftId;
3479
      private final String _fieldName;
3480
 
3481
      _Fields(short thriftId, String fieldName) {
3482
        _thriftId = thriftId;
3483
        _fieldName = fieldName;
3484
      }
3485
 
3486
      public short getThriftFieldId() {
3487
        return _thriftId;
3488
      }
3489
 
3490
      public String getFieldName() {
3491
        return _fieldName;
3492
      }
3493
    }
3494
 
3495
    // isset id assignments
3496
 
3430 rajveer 3497
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 3498
    static {
3430 rajveer 3499
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3500
      tmpMap.put(_Fields.TICKET, new org.apache.thrift.meta_data.FieldMetaData("ticket", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3501
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Ticket.class)));
3502
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3503
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
3504
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3505
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertTicket_args.class, metaDataMap);
3028 mandeep.dh 3506
    }
3507
 
3508
    public insertTicket_args() {
3509
    }
3510
 
3511
    public insertTicket_args(
3206 mandeep.dh 3512
      Ticket ticket,
3513
      Activity activity)
3028 mandeep.dh 3514
    {
3515
      this();
3516
      this.ticket = ticket;
3206 mandeep.dh 3517
      this.activity = activity;
3028 mandeep.dh 3518
    }
3519
 
3520
    /**
3521
     * Performs a deep copy on <i>other</i>.
3522
     */
3523
    public insertTicket_args(insertTicket_args other) {
3524
      if (other.isSetTicket()) {
3525
        this.ticket = new Ticket(other.ticket);
3526
      }
3206 mandeep.dh 3527
      if (other.isSetActivity()) {
3528
        this.activity = new Activity(other.activity);
3529
      }
3028 mandeep.dh 3530
    }
3531
 
3532
    public insertTicket_args deepCopy() {
3533
      return new insertTicket_args(this);
3534
    }
3535
 
3430 rajveer 3536
    @Override
3537
    public void clear() {
3538
      this.ticket = null;
3539
      this.activity = null;
3028 mandeep.dh 3540
    }
3541
 
3542
    public Ticket getTicket() {
3543
      return this.ticket;
3544
    }
3545
 
3430 rajveer 3546
    public void setTicket(Ticket ticket) {
3028 mandeep.dh 3547
      this.ticket = ticket;
3548
    }
3549
 
3550
    public void unsetTicket() {
3551
      this.ticket = null;
3552
    }
3553
 
3430 rajveer 3554
    /** Returns true if field ticket is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 3555
    public boolean isSetTicket() {
3556
      return this.ticket != null;
3557
    }
3558
 
3559
    public void setTicketIsSet(boolean value) {
3560
      if (!value) {
3561
        this.ticket = null;
3562
      }
3563
    }
3564
 
3206 mandeep.dh 3565
    public Activity getActivity() {
3566
      return this.activity;
3567
    }
3568
 
3430 rajveer 3569
    public void setActivity(Activity activity) {
3206 mandeep.dh 3570
      this.activity = activity;
3571
    }
3572
 
3573
    public void unsetActivity() {
3574
      this.activity = null;
3575
    }
3576
 
3430 rajveer 3577
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3206 mandeep.dh 3578
    public boolean isSetActivity() {
3579
      return this.activity != null;
3580
    }
3581
 
3582
    public void setActivityIsSet(boolean value) {
3583
      if (!value) {
3584
        this.activity = null;
3585
      }
3586
    }
3587
 
3028 mandeep.dh 3588
    public void setFieldValue(_Fields field, Object value) {
3589
      switch (field) {
3590
      case TICKET:
3591
        if (value == null) {
3592
          unsetTicket();
3593
        } else {
3594
          setTicket((Ticket)value);
3595
        }
3596
        break;
3597
 
3206 mandeep.dh 3598
      case ACTIVITY:
3599
        if (value == null) {
3600
          unsetActivity();
3601
        } else {
3602
          setActivity((Activity)value);
3603
        }
3604
        break;
3605
 
3028 mandeep.dh 3606
      }
3607
    }
3608
 
3609
    public Object getFieldValue(_Fields field) {
3610
      switch (field) {
3611
      case TICKET:
3612
        return getTicket();
3613
 
3206 mandeep.dh 3614
      case ACTIVITY:
3615
        return getActivity();
3616
 
3028 mandeep.dh 3617
      }
3618
      throw new IllegalStateException();
3619
    }
3620
 
3430 rajveer 3621
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3622
    public boolean isSet(_Fields field) {
3623
      if (field == null) {
3624
        throw new IllegalArgumentException();
3625
      }
3028 mandeep.dh 3626
 
3627
      switch (field) {
3628
      case TICKET:
3629
        return isSetTicket();
3206 mandeep.dh 3630
      case ACTIVITY:
3631
        return isSetActivity();
3028 mandeep.dh 3632
      }
3633
      throw new IllegalStateException();
3634
    }
3635
 
3636
    @Override
3637
    public boolean equals(Object that) {
3638
      if (that == null)
3639
        return false;
3640
      if (that instanceof insertTicket_args)
3641
        return this.equals((insertTicket_args)that);
3642
      return false;
3643
    }
3644
 
3645
    public boolean equals(insertTicket_args that) {
3646
      if (that == null)
3647
        return false;
3648
 
3649
      boolean this_present_ticket = true && this.isSetTicket();
3650
      boolean that_present_ticket = true && that.isSetTicket();
3651
      if (this_present_ticket || that_present_ticket) {
3652
        if (!(this_present_ticket && that_present_ticket))
3653
          return false;
3654
        if (!this.ticket.equals(that.ticket))
3655
          return false;
3656
      }
3657
 
3206 mandeep.dh 3658
      boolean this_present_activity = true && this.isSetActivity();
3659
      boolean that_present_activity = true && that.isSetActivity();
3660
      if (this_present_activity || that_present_activity) {
3661
        if (!(this_present_activity && that_present_activity))
3662
          return false;
3663
        if (!this.activity.equals(that.activity))
3664
          return false;
3665
      }
3666
 
3028 mandeep.dh 3667
      return true;
3668
    }
3669
 
3670
    @Override
3671
    public int hashCode() {
3672
      return 0;
3673
    }
3674
 
3675
    public int compareTo(insertTicket_args other) {
3676
      if (!getClass().equals(other.getClass())) {
3677
        return getClass().getName().compareTo(other.getClass().getName());
3678
      }
3679
 
3680
      int lastComparison = 0;
3681
      insertTicket_args typedOther = (insertTicket_args)other;
3682
 
3430 rajveer 3683
      lastComparison = Boolean.valueOf(isSetTicket()).compareTo(typedOther.isSetTicket());
3028 mandeep.dh 3684
      if (lastComparison != 0) {
3685
        return lastComparison;
3686
      }
3430 rajveer 3687
      if (isSetTicket()) {
3688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ticket, typedOther.ticket);
3689
        if (lastComparison != 0) {
3690
          return lastComparison;
3691
        }
3028 mandeep.dh 3692
      }
3430 rajveer 3693
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3206 mandeep.dh 3694
      if (lastComparison != 0) {
3695
        return lastComparison;
3696
      }
3430 rajveer 3697
      if (isSetActivity()) {
3698
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
3699
        if (lastComparison != 0) {
3700
          return lastComparison;
3701
        }
3206 mandeep.dh 3702
      }
3028 mandeep.dh 3703
      return 0;
3704
    }
3705
 
3430 rajveer 3706
    public _Fields fieldForId(int fieldId) {
3707
      return _Fields.findByThriftId(fieldId);
3708
    }
3709
 
3710
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3711
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 3712
      iprot.readStructBegin();
3713
      while (true)
3714
      {
3715
        field = iprot.readFieldBegin();
3430 rajveer 3716
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 3717
          break;
3718
        }
3430 rajveer 3719
        switch (field.id) {
3720
          case 1: // TICKET
3721
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3722
              this.ticket = new Ticket();
3723
              this.ticket.read(iprot);
3724
            } else { 
3725
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3726
            }
3727
            break;
3728
          case 2: // ACTIVITY
3729
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3730
              this.activity = new Activity();
3731
              this.activity.read(iprot);
3732
            } else { 
3733
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3734
            }
3735
            break;
3736
          default:
3737
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 3738
        }
3430 rajveer 3739
        iprot.readFieldEnd();
3028 mandeep.dh 3740
      }
3741
      iprot.readStructEnd();
3742
      validate();
3743
    }
3744
 
3430 rajveer 3745
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 3746
      validate();
3747
 
3748
      oprot.writeStructBegin(STRUCT_DESC);
3749
      if (this.ticket != null) {
3750
        oprot.writeFieldBegin(TICKET_FIELD_DESC);
3751
        this.ticket.write(oprot);
3752
        oprot.writeFieldEnd();
3753
      }
3206 mandeep.dh 3754
      if (this.activity != null) {
3755
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
3756
        this.activity.write(oprot);
3757
        oprot.writeFieldEnd();
3758
      }
3028 mandeep.dh 3759
      oprot.writeFieldStop();
3760
      oprot.writeStructEnd();
3761
    }
3762
 
3763
    @Override
3764
    public String toString() {
3765
      StringBuilder sb = new StringBuilder("insertTicket_args(");
3766
      boolean first = true;
3767
 
3768
      sb.append("ticket:");
3769
      if (this.ticket == null) {
3770
        sb.append("null");
3771
      } else {
3772
        sb.append(this.ticket);
3773
      }
3774
      first = false;
3206 mandeep.dh 3775
      if (!first) sb.append(", ");
3776
      sb.append("activity:");
3777
      if (this.activity == null) {
3778
        sb.append("null");
3779
      } else {
3780
        sb.append(this.activity);
3781
      }
3782
      first = false;
3028 mandeep.dh 3783
      sb.append(")");
3784
      return sb.toString();
3785
    }
3786
 
3430 rajveer 3787
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 3788
      // check for required fields
3789
    }
3790
 
3430 rajveer 3791
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
3792
      try {
3793
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
3794
      } catch (org.apache.thrift.TException te) {
3795
        throw new java.io.IOException(te);
3796
      }
3797
    }
3798
 
3799
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
3800
      try {
3801
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
3802
      } catch (org.apache.thrift.TException te) {
3803
        throw new java.io.IOException(te);
3804
      }
3805
    }
3806
 
3028 mandeep.dh 3807
  }
3808
 
3430 rajveer 3809
  public static class insertTicket_result implements org.apache.thrift.TBase<insertTicket_result, insertTicket_result._Fields>, java.io.Serializable, Cloneable   {
3810
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertTicket_result");
3028 mandeep.dh 3811
 
3430 rajveer 3812
    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 3813
 
3430 rajveer 3814
    private long success; // required
3028 mandeep.dh 3815
 
3816
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 3817
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 3818
      SUCCESS((short)0, "success");
3819
 
3820
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3821
 
3822
      static {
3823
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3824
          byName.put(field.getFieldName(), field);
3825
        }
3826
      }
3827
 
3828
      /**
3829
       * Find the _Fields constant that matches fieldId, or null if its not found.
3830
       */
3831
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 3832
        switch(fieldId) {
3833
          case 0: // SUCCESS
3834
            return SUCCESS;
3835
          default:
3836
            return null;
3837
        }
3028 mandeep.dh 3838
      }
3839
 
3840
      /**
3841
       * Find the _Fields constant that matches fieldId, throwing an exception
3842
       * if it is not found.
3843
       */
3844
      public static _Fields findByThriftIdOrThrow(int fieldId) {
3845
        _Fields fields = findByThriftId(fieldId);
3846
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
3847
        return fields;
3848
      }
3849
 
3850
      /**
3851
       * Find the _Fields constant that matches name, or null if its not found.
3852
       */
3853
      public static _Fields findByName(String name) {
3854
        return byName.get(name);
3855
      }
3856
 
3857
      private final short _thriftId;
3858
      private final String _fieldName;
3859
 
3860
      _Fields(short thriftId, String fieldName) {
3861
        _thriftId = thriftId;
3862
        _fieldName = fieldName;
3863
      }
3864
 
3865
      public short getThriftFieldId() {
3866
        return _thriftId;
3867
      }
3868
 
3869
      public String getFieldName() {
3870
        return _fieldName;
3871
      }
3872
    }
3873
 
3874
    // isset id assignments
3875
    private static final int __SUCCESS_ISSET_ID = 0;
3876
    private BitSet __isset_bit_vector = new BitSet(1);
3877
 
3430 rajveer 3878
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 3879
    static {
3430 rajveer 3880
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
3881
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
3882
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
3883
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3884
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertTicket_result.class, metaDataMap);
3028 mandeep.dh 3885
    }
3886
 
3887
    public insertTicket_result() {
3888
    }
3889
 
3890
    public insertTicket_result(
3891
      long success)
3892
    {
3893
      this();
3894
      this.success = success;
3895
      setSuccessIsSet(true);
3896
    }
3897
 
3898
    /**
3899
     * Performs a deep copy on <i>other</i>.
3900
     */
3901
    public insertTicket_result(insertTicket_result other) {
3902
      __isset_bit_vector.clear();
3903
      __isset_bit_vector.or(other.__isset_bit_vector);
3904
      this.success = other.success;
3905
    }
3906
 
3907
    public insertTicket_result deepCopy() {
3908
      return new insertTicket_result(this);
3909
    }
3910
 
3430 rajveer 3911
    @Override
3912
    public void clear() {
3913
      setSuccessIsSet(false);
3914
      this.success = 0;
3028 mandeep.dh 3915
    }
3916
 
3917
    public long getSuccess() {
3918
      return this.success;
3919
    }
3920
 
3430 rajveer 3921
    public void setSuccess(long success) {
3028 mandeep.dh 3922
      this.success = success;
3923
      setSuccessIsSet(true);
3924
    }
3925
 
3926
    public void unsetSuccess() {
3927
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
3928
    }
3929
 
3430 rajveer 3930
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 3931
    public boolean isSetSuccess() {
3932
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
3933
    }
3934
 
3935
    public void setSuccessIsSet(boolean value) {
3936
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
3937
    }
3938
 
3939
    public void setFieldValue(_Fields field, Object value) {
3940
      switch (field) {
3941
      case SUCCESS:
3942
        if (value == null) {
3943
          unsetSuccess();
3944
        } else {
3945
          setSuccess((Long)value);
3946
        }
3947
        break;
3948
 
3949
      }
3950
    }
3951
 
3952
    public Object getFieldValue(_Fields field) {
3953
      switch (field) {
3954
      case SUCCESS:
3430 rajveer 3955
        return Long.valueOf(getSuccess());
3028 mandeep.dh 3956
 
3957
      }
3958
      throw new IllegalStateException();
3959
    }
3960
 
3430 rajveer 3961
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3962
    public boolean isSet(_Fields field) {
3963
      if (field == null) {
3964
        throw new IllegalArgumentException();
3965
      }
3028 mandeep.dh 3966
 
3967
      switch (field) {
3968
      case SUCCESS:
3969
        return isSetSuccess();
3970
      }
3971
      throw new IllegalStateException();
3972
    }
3973
 
3974
    @Override
3975
    public boolean equals(Object that) {
3976
      if (that == null)
3977
        return false;
3978
      if (that instanceof insertTicket_result)
3979
        return this.equals((insertTicket_result)that);
3980
      return false;
3981
    }
3982
 
3983
    public boolean equals(insertTicket_result that) {
3984
      if (that == null)
3985
        return false;
3986
 
3987
      boolean this_present_success = true;
3988
      boolean that_present_success = true;
3989
      if (this_present_success || that_present_success) {
3990
        if (!(this_present_success && that_present_success))
3991
          return false;
3992
        if (this.success != that.success)
3993
          return false;
3994
      }
3995
 
3996
      return true;
3997
    }
3998
 
3999
    @Override
4000
    public int hashCode() {
4001
      return 0;
4002
    }
4003
 
4004
    public int compareTo(insertTicket_result other) {
4005
      if (!getClass().equals(other.getClass())) {
4006
        return getClass().getName().compareTo(other.getClass().getName());
4007
      }
4008
 
4009
      int lastComparison = 0;
4010
      insertTicket_result typedOther = (insertTicket_result)other;
4011
 
3430 rajveer 4012
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 4013
      if (lastComparison != 0) {
4014
        return lastComparison;
4015
      }
3430 rajveer 4016
      if (isSetSuccess()) {
4017
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4018
        if (lastComparison != 0) {
4019
          return lastComparison;
4020
        }
3028 mandeep.dh 4021
      }
4022
      return 0;
4023
    }
4024
 
3430 rajveer 4025
    public _Fields fieldForId(int fieldId) {
4026
      return _Fields.findByThriftId(fieldId);
4027
    }
4028
 
4029
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4030
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 4031
      iprot.readStructBegin();
4032
      while (true)
4033
      {
4034
        field = iprot.readFieldBegin();
3430 rajveer 4035
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 4036
          break;
4037
        }
3430 rajveer 4038
        switch (field.id) {
4039
          case 0: // SUCCESS
4040
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4041
              this.success = iprot.readI64();
4042
              setSuccessIsSet(true);
4043
            } else { 
4044
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4045
            }
4046
            break;
4047
          default:
4048
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 4049
        }
3430 rajveer 4050
        iprot.readFieldEnd();
3028 mandeep.dh 4051
      }
4052
      iprot.readStructEnd();
4053
      validate();
4054
    }
4055
 
3430 rajveer 4056
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 4057
      oprot.writeStructBegin(STRUCT_DESC);
4058
 
4059
      if (this.isSetSuccess()) {
4060
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4061
        oprot.writeI64(this.success);
4062
        oprot.writeFieldEnd();
4063
      }
4064
      oprot.writeFieldStop();
4065
      oprot.writeStructEnd();
4066
    }
4067
 
4068
    @Override
4069
    public String toString() {
4070
      StringBuilder sb = new StringBuilder("insertTicket_result(");
4071
      boolean first = true;
4072
 
4073
      sb.append("success:");
4074
      sb.append(this.success);
4075
      first = false;
4076
      sb.append(")");
4077
      return sb.toString();
4078
    }
4079
 
3430 rajveer 4080
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 4081
      // check for required fields
4082
    }
4083
 
3430 rajveer 4084
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4085
      try {
4086
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4087
      } catch (org.apache.thrift.TException te) {
4088
        throw new java.io.IOException(te);
4089
      }
4090
    }
4091
 
4092
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4093
      try {
4094
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4095
      } catch (org.apache.thrift.TException te) {
4096
        throw new java.io.IOException(te);
4097
      }
4098
    }
4099
 
3028 mandeep.dh 4100
  }
4101
 
4793 amar.kumar 4102
  public static class unassignAgentTickets_args implements org.apache.thrift.TBase<unassignAgentTickets_args, unassignAgentTickets_args._Fields>, java.io.Serializable, Cloneable   {
4103
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unassignAgentTickets_args");
4104
 
4105
    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);
4106
 
4107
    private int assigneeId; // required
4108
 
4109
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4110
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4111
      ASSIGNEE_ID((short)1, "assigneeId");
4112
 
4113
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4114
 
4115
      static {
4116
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4117
          byName.put(field.getFieldName(), field);
4118
        }
4119
      }
4120
 
4121
      /**
4122
       * Find the _Fields constant that matches fieldId, or null if its not found.
4123
       */
4124
      public static _Fields findByThriftId(int fieldId) {
4125
        switch(fieldId) {
4126
          case 1: // ASSIGNEE_ID
4127
            return ASSIGNEE_ID;
4128
          default:
4129
            return null;
4130
        }
4131
      }
4132
 
4133
      /**
4134
       * Find the _Fields constant that matches fieldId, throwing an exception
4135
       * if it is not found.
4136
       */
4137
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4138
        _Fields fields = findByThriftId(fieldId);
4139
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4140
        return fields;
4141
      }
4142
 
4143
      /**
4144
       * Find the _Fields constant that matches name, or null if its not found.
4145
       */
4146
      public static _Fields findByName(String name) {
4147
        return byName.get(name);
4148
      }
4149
 
4150
      private final short _thriftId;
4151
      private final String _fieldName;
4152
 
4153
      _Fields(short thriftId, String fieldName) {
4154
        _thriftId = thriftId;
4155
        _fieldName = fieldName;
4156
      }
4157
 
4158
      public short getThriftFieldId() {
4159
        return _thriftId;
4160
      }
4161
 
4162
      public String getFieldName() {
4163
        return _fieldName;
4164
      }
4165
    }
4166
 
4167
    // isset id assignments
4168
    private static final int __ASSIGNEEID_ISSET_ID = 0;
4169
    private BitSet __isset_bit_vector = new BitSet(1);
4170
 
4171
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4172
    static {
4173
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4174
      tmpMap.put(_Fields.ASSIGNEE_ID, new org.apache.thrift.meta_data.FieldMetaData("assigneeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4175
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
4176
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4177
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unassignAgentTickets_args.class, metaDataMap);
4178
    }
4179
 
4180
    public unassignAgentTickets_args() {
4181
    }
4182
 
4183
    public unassignAgentTickets_args(
4184
      int assigneeId)
4185
    {
4186
      this();
4187
      this.assigneeId = assigneeId;
4188
      setAssigneeIdIsSet(true);
4189
    }
4190
 
4191
    /**
4192
     * Performs a deep copy on <i>other</i>.
4193
     */
4194
    public unassignAgentTickets_args(unassignAgentTickets_args other) {
4195
      __isset_bit_vector.clear();
4196
      __isset_bit_vector.or(other.__isset_bit_vector);
4197
      this.assigneeId = other.assigneeId;
4198
    }
4199
 
4200
    public unassignAgentTickets_args deepCopy() {
4201
      return new unassignAgentTickets_args(this);
4202
    }
4203
 
4204
    @Override
4205
    public void clear() {
4206
      setAssigneeIdIsSet(false);
4207
      this.assigneeId = 0;
4208
    }
4209
 
4210
    public int getAssigneeId() {
4211
      return this.assigneeId;
4212
    }
4213
 
4214
    public void setAssigneeId(int assigneeId) {
4215
      this.assigneeId = assigneeId;
4216
      setAssigneeIdIsSet(true);
4217
    }
4218
 
4219
    public void unsetAssigneeId() {
4220
      __isset_bit_vector.clear(__ASSIGNEEID_ISSET_ID);
4221
    }
4222
 
4223
    /** Returns true if field assigneeId is set (has been assigned a value) and false otherwise */
4224
    public boolean isSetAssigneeId() {
4225
      return __isset_bit_vector.get(__ASSIGNEEID_ISSET_ID);
4226
    }
4227
 
4228
    public void setAssigneeIdIsSet(boolean value) {
4229
      __isset_bit_vector.set(__ASSIGNEEID_ISSET_ID, value);
4230
    }
4231
 
4232
    public void setFieldValue(_Fields field, Object value) {
4233
      switch (field) {
4234
      case ASSIGNEE_ID:
4235
        if (value == null) {
4236
          unsetAssigneeId();
4237
        } else {
4238
          setAssigneeId((Integer)value);
4239
        }
4240
        break;
4241
 
4242
      }
4243
    }
4244
 
4245
    public Object getFieldValue(_Fields field) {
4246
      switch (field) {
4247
      case ASSIGNEE_ID:
4248
        return Integer.valueOf(getAssigneeId());
4249
 
4250
      }
4251
      throw new IllegalStateException();
4252
    }
4253
 
4254
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4255
    public boolean isSet(_Fields field) {
4256
      if (field == null) {
4257
        throw new IllegalArgumentException();
4258
      }
4259
 
4260
      switch (field) {
4261
      case ASSIGNEE_ID:
4262
        return isSetAssigneeId();
4263
      }
4264
      throw new IllegalStateException();
4265
    }
4266
 
4267
    @Override
4268
    public boolean equals(Object that) {
4269
      if (that == null)
4270
        return false;
4271
      if (that instanceof unassignAgentTickets_args)
4272
        return this.equals((unassignAgentTickets_args)that);
4273
      return false;
4274
    }
4275
 
4276
    public boolean equals(unassignAgentTickets_args that) {
4277
      if (that == null)
4278
        return false;
4279
 
4280
      boolean this_present_assigneeId = true;
4281
      boolean that_present_assigneeId = true;
4282
      if (this_present_assigneeId || that_present_assigneeId) {
4283
        if (!(this_present_assigneeId && that_present_assigneeId))
4284
          return false;
4285
        if (this.assigneeId != that.assigneeId)
4286
          return false;
4287
      }
4288
 
4289
      return true;
4290
    }
4291
 
4292
    @Override
4293
    public int hashCode() {
4294
      return 0;
4295
    }
4296
 
4297
    public int compareTo(unassignAgentTickets_args other) {
4298
      if (!getClass().equals(other.getClass())) {
4299
        return getClass().getName().compareTo(other.getClass().getName());
4300
      }
4301
 
4302
      int lastComparison = 0;
4303
      unassignAgentTickets_args typedOther = (unassignAgentTickets_args)other;
4304
 
4305
      lastComparison = Boolean.valueOf(isSetAssigneeId()).compareTo(typedOther.isSetAssigneeId());
4306
      if (lastComparison != 0) {
4307
        return lastComparison;
4308
      }
4309
      if (isSetAssigneeId()) {
4310
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.assigneeId, typedOther.assigneeId);
4311
        if (lastComparison != 0) {
4312
          return lastComparison;
4313
        }
4314
      }
4315
      return 0;
4316
    }
4317
 
4318
    public _Fields fieldForId(int fieldId) {
4319
      return _Fields.findByThriftId(fieldId);
4320
    }
4321
 
4322
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4323
      org.apache.thrift.protocol.TField field;
4324
      iprot.readStructBegin();
4325
      while (true)
4326
      {
4327
        field = iprot.readFieldBegin();
4328
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4329
          break;
4330
        }
4331
        switch (field.id) {
4332
          case 1: // ASSIGNEE_ID
4333
            if (field.type == org.apache.thrift.protocol.TType.I32) {
4334
              this.assigneeId = iprot.readI32();
4335
              setAssigneeIdIsSet(true);
4336
            } else { 
4337
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4338
            }
4339
            break;
4340
          default:
4341
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4342
        }
4343
        iprot.readFieldEnd();
4344
      }
4345
      iprot.readStructEnd();
4346
      validate();
4347
    }
4348
 
4349
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4350
      validate();
4351
 
4352
      oprot.writeStructBegin(STRUCT_DESC);
4353
      oprot.writeFieldBegin(ASSIGNEE_ID_FIELD_DESC);
4354
      oprot.writeI32(this.assigneeId);
4355
      oprot.writeFieldEnd();
4356
      oprot.writeFieldStop();
4357
      oprot.writeStructEnd();
4358
    }
4359
 
4360
    @Override
4361
    public String toString() {
4362
      StringBuilder sb = new StringBuilder("unassignAgentTickets_args(");
4363
      boolean first = true;
4364
 
4365
      sb.append("assigneeId:");
4366
      sb.append(this.assigneeId);
4367
      first = false;
4368
      sb.append(")");
4369
      return sb.toString();
4370
    }
4371
 
4372
    public void validate() throws org.apache.thrift.TException {
4373
      // check for required fields
4374
    }
4375
 
4376
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4377
      try {
4378
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4379
      } catch (org.apache.thrift.TException te) {
4380
        throw new java.io.IOException(te);
4381
      }
4382
    }
4383
 
4384
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4385
      try {
4386
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
4387
        __isset_bit_vector = new BitSet(1);
4388
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4389
      } catch (org.apache.thrift.TException te) {
4390
        throw new java.io.IOException(te);
4391
      }
4392
    }
4393
 
4394
  }
4395
 
4396
  public static class unassignAgentTickets_result implements org.apache.thrift.TBase<unassignAgentTickets_result, unassignAgentTickets_result._Fields>, java.io.Serializable, Cloneable   {
4397
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unassignAgentTickets_result");
4398
 
4399
 
4400
 
4401
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4402
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4403
;
4404
 
4405
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4406
 
4407
      static {
4408
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4409
          byName.put(field.getFieldName(), field);
4410
        }
4411
      }
4412
 
4413
      /**
4414
       * Find the _Fields constant that matches fieldId, or null if its not found.
4415
       */
4416
      public static _Fields findByThriftId(int fieldId) {
4417
        switch(fieldId) {
4418
          default:
4419
            return null;
4420
        }
4421
      }
4422
 
4423
      /**
4424
       * Find the _Fields constant that matches fieldId, throwing an exception
4425
       * if it is not found.
4426
       */
4427
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4428
        _Fields fields = findByThriftId(fieldId);
4429
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4430
        return fields;
4431
      }
4432
 
4433
      /**
4434
       * Find the _Fields constant that matches name, or null if its not found.
4435
       */
4436
      public static _Fields findByName(String name) {
4437
        return byName.get(name);
4438
      }
4439
 
4440
      private final short _thriftId;
4441
      private final String _fieldName;
4442
 
4443
      _Fields(short thriftId, String fieldName) {
4444
        _thriftId = thriftId;
4445
        _fieldName = fieldName;
4446
      }
4447
 
4448
      public short getThriftFieldId() {
4449
        return _thriftId;
4450
      }
4451
 
4452
      public String getFieldName() {
4453
        return _fieldName;
4454
      }
4455
    }
4456
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4457
    static {
4458
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4459
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4460
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unassignAgentTickets_result.class, metaDataMap);
4461
    }
4462
 
4463
    public unassignAgentTickets_result() {
4464
    }
4465
 
4466
    /**
4467
     * Performs a deep copy on <i>other</i>.
4468
     */
4469
    public unassignAgentTickets_result(unassignAgentTickets_result other) {
4470
    }
4471
 
4472
    public unassignAgentTickets_result deepCopy() {
4473
      return new unassignAgentTickets_result(this);
4474
    }
4475
 
4476
    @Override
4477
    public void clear() {
4478
    }
4479
 
4480
    public void setFieldValue(_Fields field, Object value) {
4481
      switch (field) {
4482
      }
4483
    }
4484
 
4485
    public Object getFieldValue(_Fields field) {
4486
      switch (field) {
4487
      }
4488
      throw new IllegalStateException();
4489
    }
4490
 
4491
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4492
    public boolean isSet(_Fields field) {
4493
      if (field == null) {
4494
        throw new IllegalArgumentException();
4495
      }
4496
 
4497
      switch (field) {
4498
      }
4499
      throw new IllegalStateException();
4500
    }
4501
 
4502
    @Override
4503
    public boolean equals(Object that) {
4504
      if (that == null)
4505
        return false;
4506
      if (that instanceof unassignAgentTickets_result)
4507
        return this.equals((unassignAgentTickets_result)that);
4508
      return false;
4509
    }
4510
 
4511
    public boolean equals(unassignAgentTickets_result that) {
4512
      if (that == null)
4513
        return false;
4514
 
4515
      return true;
4516
    }
4517
 
4518
    @Override
4519
    public int hashCode() {
4520
      return 0;
4521
    }
4522
 
4523
    public int compareTo(unassignAgentTickets_result other) {
4524
      if (!getClass().equals(other.getClass())) {
4525
        return getClass().getName().compareTo(other.getClass().getName());
4526
      }
4527
 
4528
      int lastComparison = 0;
4529
      unassignAgentTickets_result typedOther = (unassignAgentTickets_result)other;
4530
 
4531
      return 0;
4532
    }
4533
 
4534
    public _Fields fieldForId(int fieldId) {
4535
      return _Fields.findByThriftId(fieldId);
4536
    }
4537
 
4538
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4539
      org.apache.thrift.protocol.TField field;
4540
      iprot.readStructBegin();
4541
      while (true)
4542
      {
4543
        field = iprot.readFieldBegin();
4544
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4545
          break;
4546
        }
4547
        switch (field.id) {
4548
          default:
4549
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4550
        }
4551
        iprot.readFieldEnd();
4552
      }
4553
      iprot.readStructEnd();
4554
      validate();
4555
    }
4556
 
4557
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4558
      oprot.writeStructBegin(STRUCT_DESC);
4559
 
4560
      oprot.writeFieldStop();
4561
      oprot.writeStructEnd();
4562
    }
4563
 
4564
    @Override
4565
    public String toString() {
4566
      StringBuilder sb = new StringBuilder("unassignAgentTickets_result(");
4567
      boolean first = true;
4568
 
4569
      sb.append(")");
4570
      return sb.toString();
4571
    }
4572
 
4573
    public void validate() throws org.apache.thrift.TException {
4574
      // check for required fields
4575
    }
4576
 
4577
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4578
      try {
4579
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4580
      } catch (org.apache.thrift.TException te) {
4581
        throw new java.io.IOException(te);
4582
      }
4583
    }
4584
 
4585
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4586
      try {
4587
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4588
      } catch (org.apache.thrift.TException te) {
4589
        throw new java.io.IOException(te);
4590
      }
4591
    }
4592
 
4593
  }
4594
 
3430 rajveer 4595
  public static class getActivities_args implements org.apache.thrift.TBase<getActivities_args, getActivities_args._Fields>, java.io.Serializable, Cloneable   {
4596
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivities_args");
3028 mandeep.dh 4597
 
3430 rajveer 4598
    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 4599
 
3430 rajveer 4600
    private SearchFilter searchFilter; // required
3028 mandeep.dh 4601
 
4602
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4603
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 4604
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 4605
 
4606
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4607
 
4608
      static {
4609
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4610
          byName.put(field.getFieldName(), field);
4611
        }
4612
      }
4613
 
4614
      /**
4615
       * Find the _Fields constant that matches fieldId, or null if its not found.
4616
       */
4617
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4618
        switch(fieldId) {
4619
          case 1: // SEARCH_FILTER
4620
            return SEARCH_FILTER;
4621
          default:
4622
            return null;
4623
        }
3028 mandeep.dh 4624
      }
4625
 
4626
      /**
4627
       * Find the _Fields constant that matches fieldId, throwing an exception
4628
       * if it is not found.
4629
       */
4630
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4631
        _Fields fields = findByThriftId(fieldId);
4632
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4633
        return fields;
4634
      }
4635
 
4636
      /**
4637
       * Find the _Fields constant that matches name, or null if its not found.
4638
       */
4639
      public static _Fields findByName(String name) {
4640
        return byName.get(name);
4641
      }
4642
 
4643
      private final short _thriftId;
4644
      private final String _fieldName;
4645
 
4646
      _Fields(short thriftId, String fieldName) {
4647
        _thriftId = thriftId;
4648
        _fieldName = fieldName;
4649
      }
4650
 
4651
      public short getThriftFieldId() {
4652
        return _thriftId;
4653
      }
4654
 
4655
      public String getFieldName() {
4656
        return _fieldName;
4657
      }
4658
    }
4659
 
4660
    // isset id assignments
4661
 
3430 rajveer 4662
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 4663
    static {
3430 rajveer 4664
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4665
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4666
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
4667
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4668
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivities_args.class, metaDataMap);
3028 mandeep.dh 4669
    }
4670
 
4671
    public getActivities_args() {
4672
    }
4673
 
4674
    public getActivities_args(
3390 mandeep.dh 4675
      SearchFilter searchFilter)
3028 mandeep.dh 4676
    {
4677
      this();
3390 mandeep.dh 4678
      this.searchFilter = searchFilter;
3028 mandeep.dh 4679
    }
4680
 
4681
    /**
4682
     * Performs a deep copy on <i>other</i>.
4683
     */
4684
    public getActivities_args(getActivities_args other) {
3390 mandeep.dh 4685
      if (other.isSetSearchFilter()) {
4686
        this.searchFilter = new SearchFilter(other.searchFilter);
4687
      }
3028 mandeep.dh 4688
    }
4689
 
4690
    public getActivities_args deepCopy() {
4691
      return new getActivities_args(this);
4692
    }
4693
 
3430 rajveer 4694
    @Override
4695
    public void clear() {
4696
      this.searchFilter = null;
3028 mandeep.dh 4697
    }
4698
 
3390 mandeep.dh 4699
    public SearchFilter getSearchFilter() {
4700
      return this.searchFilter;
3028 mandeep.dh 4701
    }
4702
 
3430 rajveer 4703
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 4704
      this.searchFilter = searchFilter;
3028 mandeep.dh 4705
    }
4706
 
3390 mandeep.dh 4707
    public void unsetSearchFilter() {
4708
      this.searchFilter = null;
3028 mandeep.dh 4709
    }
4710
 
3430 rajveer 4711
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 4712
    public boolean isSetSearchFilter() {
4713
      return this.searchFilter != null;
3028 mandeep.dh 4714
    }
4715
 
3390 mandeep.dh 4716
    public void setSearchFilterIsSet(boolean value) {
4717
      if (!value) {
4718
        this.searchFilter = null;
4719
      }
3028 mandeep.dh 4720
    }
4721
 
4722
    public void setFieldValue(_Fields field, Object value) {
4723
      switch (field) {
3390 mandeep.dh 4724
      case SEARCH_FILTER:
3028 mandeep.dh 4725
        if (value == null) {
3390 mandeep.dh 4726
          unsetSearchFilter();
3028 mandeep.dh 4727
        } else {
3390 mandeep.dh 4728
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 4729
        }
4730
        break;
4731
 
4732
      }
4733
    }
4734
 
4735
    public Object getFieldValue(_Fields field) {
4736
      switch (field) {
3390 mandeep.dh 4737
      case SEARCH_FILTER:
4738
        return getSearchFilter();
3028 mandeep.dh 4739
 
4740
      }
4741
      throw new IllegalStateException();
4742
    }
4743
 
3430 rajveer 4744
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4745
    public boolean isSet(_Fields field) {
4746
      if (field == null) {
4747
        throw new IllegalArgumentException();
4748
      }
3028 mandeep.dh 4749
 
4750
      switch (field) {
3390 mandeep.dh 4751
      case SEARCH_FILTER:
4752
        return isSetSearchFilter();
3028 mandeep.dh 4753
      }
4754
      throw new IllegalStateException();
4755
    }
4756
 
4757
    @Override
4758
    public boolean equals(Object that) {
4759
      if (that == null)
4760
        return false;
4761
      if (that instanceof getActivities_args)
4762
        return this.equals((getActivities_args)that);
4763
      return false;
4764
    }
4765
 
4766
    public boolean equals(getActivities_args that) {
4767
      if (that == null)
4768
        return false;
4769
 
3390 mandeep.dh 4770
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
4771
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
4772
      if (this_present_searchFilter || that_present_searchFilter) {
4773
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 4774
          return false;
3390 mandeep.dh 4775
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 4776
          return false;
4777
      }
4778
 
4779
      return true;
4780
    }
4781
 
4782
    @Override
4783
    public int hashCode() {
4784
      return 0;
4785
    }
4786
 
4787
    public int compareTo(getActivities_args other) {
4788
      if (!getClass().equals(other.getClass())) {
4789
        return getClass().getName().compareTo(other.getClass().getName());
4790
      }
4791
 
4792
      int lastComparison = 0;
4793
      getActivities_args typedOther = (getActivities_args)other;
4794
 
3430 rajveer 4795
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 4796
      if (lastComparison != 0) {
4797
        return lastComparison;
4798
      }
3430 rajveer 4799
      if (isSetSearchFilter()) {
4800
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
4801
        if (lastComparison != 0) {
4802
          return lastComparison;
4803
        }
3028 mandeep.dh 4804
      }
4805
      return 0;
4806
    }
4807
 
3430 rajveer 4808
    public _Fields fieldForId(int fieldId) {
4809
      return _Fields.findByThriftId(fieldId);
4810
    }
4811
 
4812
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4813
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 4814
      iprot.readStructBegin();
4815
      while (true)
4816
      {
4817
        field = iprot.readFieldBegin();
3430 rajveer 4818
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 4819
          break;
4820
        }
3430 rajveer 4821
        switch (field.id) {
4822
          case 1: // SEARCH_FILTER
4823
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4824
              this.searchFilter = new SearchFilter();
4825
              this.searchFilter.read(iprot);
4826
            } else { 
4827
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4828
            }
4829
            break;
4830
          default:
4831
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 4832
        }
3430 rajveer 4833
        iprot.readFieldEnd();
3028 mandeep.dh 4834
      }
4835
      iprot.readStructEnd();
4836
      validate();
4837
    }
4838
 
3430 rajveer 4839
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 4840
      validate();
4841
 
4842
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 4843
      if (this.searchFilter != null) {
4844
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
4845
        this.searchFilter.write(oprot);
4846
        oprot.writeFieldEnd();
4847
      }
3028 mandeep.dh 4848
      oprot.writeFieldStop();
4849
      oprot.writeStructEnd();
4850
    }
4851
 
4852
    @Override
4853
    public String toString() {
4854
      StringBuilder sb = new StringBuilder("getActivities_args(");
4855
      boolean first = true;
4856
 
3390 mandeep.dh 4857
      sb.append("searchFilter:");
4858
      if (this.searchFilter == null) {
4859
        sb.append("null");
4860
      } else {
4861
        sb.append(this.searchFilter);
4862
      }
3028 mandeep.dh 4863
      first = false;
4864
      sb.append(")");
4865
      return sb.toString();
4866
    }
4867
 
3430 rajveer 4868
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 4869
      // check for required fields
4870
    }
4871
 
3430 rajveer 4872
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
4873
      try {
4874
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
4875
      } catch (org.apache.thrift.TException te) {
4876
        throw new java.io.IOException(te);
4877
      }
4878
    }
4879
 
4880
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
4881
      try {
4882
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
4883
      } catch (org.apache.thrift.TException te) {
4884
        throw new java.io.IOException(te);
4885
      }
4886
    }
4887
 
3028 mandeep.dh 4888
  }
4889
 
3430 rajveer 4890
  public static class getActivities_result implements org.apache.thrift.TBase<getActivities_result, getActivities_result._Fields>, java.io.Serializable, Cloneable   {
4891
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivities_result");
3028 mandeep.dh 4892
 
3430 rajveer 4893
    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 4894
 
3430 rajveer 4895
    private List<Activity> success; // required
3028 mandeep.dh 4896
 
4897
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 4898
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 4899
      SUCCESS((short)0, "success");
4900
 
4901
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4902
 
4903
      static {
4904
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4905
          byName.put(field.getFieldName(), field);
4906
        }
4907
      }
4908
 
4909
      /**
4910
       * Find the _Fields constant that matches fieldId, or null if its not found.
4911
       */
4912
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 4913
        switch(fieldId) {
4914
          case 0: // SUCCESS
4915
            return SUCCESS;
4916
          default:
4917
            return null;
4918
        }
3028 mandeep.dh 4919
      }
4920
 
4921
      /**
4922
       * Find the _Fields constant that matches fieldId, throwing an exception
4923
       * if it is not found.
4924
       */
4925
      public static _Fields findByThriftIdOrThrow(int fieldId) {
4926
        _Fields fields = findByThriftId(fieldId);
4927
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
4928
        return fields;
4929
      }
4930
 
4931
      /**
4932
       * Find the _Fields constant that matches name, or null if its not found.
4933
       */
4934
      public static _Fields findByName(String name) {
4935
        return byName.get(name);
4936
      }
4937
 
4938
      private final short _thriftId;
4939
      private final String _fieldName;
4940
 
4941
      _Fields(short thriftId, String fieldName) {
4942
        _thriftId = thriftId;
4943
        _fieldName = fieldName;
4944
      }
4945
 
4946
      public short getThriftFieldId() {
4947
        return _thriftId;
4948
      }
4949
 
4950
      public String getFieldName() {
4951
        return _fieldName;
4952
      }
4953
    }
4954
 
4955
    // isset id assignments
4956
 
3430 rajveer 4957
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 4958
    static {
3430 rajveer 4959
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4960
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4961
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
4962
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class))));
4963
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4964
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getActivities_result.class, metaDataMap);
3028 mandeep.dh 4965
    }
4966
 
4967
    public getActivities_result() {
4968
    }
4969
 
4970
    public getActivities_result(
4971
      List<Activity> success)
4972
    {
4973
      this();
4974
      this.success = success;
4975
    }
4976
 
4977
    /**
4978
     * Performs a deep copy on <i>other</i>.
4979
     */
4980
    public getActivities_result(getActivities_result other) {
4981
      if (other.isSetSuccess()) {
4982
        List<Activity> __this__success = new ArrayList<Activity>();
4983
        for (Activity other_element : other.success) {
4984
          __this__success.add(new Activity(other_element));
4985
        }
4986
        this.success = __this__success;
4987
      }
4988
    }
4989
 
4990
    public getActivities_result deepCopy() {
4991
      return new getActivities_result(this);
4992
    }
4993
 
3430 rajveer 4994
    @Override
4995
    public void clear() {
4996
      this.success = null;
3028 mandeep.dh 4997
    }
4998
 
4999
    public int getSuccessSize() {
5000
      return (this.success == null) ? 0 : this.success.size();
5001
    }
5002
 
5003
    public java.util.Iterator<Activity> getSuccessIterator() {
5004
      return (this.success == null) ? null : this.success.iterator();
5005
    }
5006
 
5007
    public void addToSuccess(Activity elem) {
5008
      if (this.success == null) {
5009
        this.success = new ArrayList<Activity>();
5010
      }
5011
      this.success.add(elem);
5012
    }
5013
 
5014
    public List<Activity> getSuccess() {
5015
      return this.success;
5016
    }
5017
 
3430 rajveer 5018
    public void setSuccess(List<Activity> success) {
3028 mandeep.dh 5019
      this.success = success;
5020
    }
5021
 
5022
    public void unsetSuccess() {
5023
      this.success = null;
5024
    }
5025
 
3430 rajveer 5026
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 5027
    public boolean isSetSuccess() {
5028
      return this.success != null;
5029
    }
5030
 
5031
    public void setSuccessIsSet(boolean value) {
5032
      if (!value) {
5033
        this.success = null;
5034
      }
5035
    }
5036
 
5037
    public void setFieldValue(_Fields field, Object value) {
5038
      switch (field) {
5039
      case SUCCESS:
5040
        if (value == null) {
5041
          unsetSuccess();
5042
        } else {
5043
          setSuccess((List<Activity>)value);
5044
        }
5045
        break;
5046
 
5047
      }
5048
    }
5049
 
5050
    public Object getFieldValue(_Fields field) {
5051
      switch (field) {
5052
      case SUCCESS:
5053
        return getSuccess();
5054
 
5055
      }
5056
      throw new IllegalStateException();
5057
    }
5058
 
3430 rajveer 5059
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5060
    public boolean isSet(_Fields field) {
5061
      if (field == null) {
5062
        throw new IllegalArgumentException();
5063
      }
3028 mandeep.dh 5064
 
5065
      switch (field) {
5066
      case SUCCESS:
5067
        return isSetSuccess();
5068
      }
5069
      throw new IllegalStateException();
5070
    }
5071
 
5072
    @Override
5073
    public boolean equals(Object that) {
5074
      if (that == null)
5075
        return false;
5076
      if (that instanceof getActivities_result)
5077
        return this.equals((getActivities_result)that);
5078
      return false;
5079
    }
5080
 
5081
    public boolean equals(getActivities_result that) {
5082
      if (that == null)
5083
        return false;
5084
 
5085
      boolean this_present_success = true && this.isSetSuccess();
5086
      boolean that_present_success = true && that.isSetSuccess();
5087
      if (this_present_success || that_present_success) {
5088
        if (!(this_present_success && that_present_success))
5089
          return false;
5090
        if (!this.success.equals(that.success))
5091
          return false;
5092
      }
5093
 
5094
      return true;
5095
    }
5096
 
5097
    @Override
5098
    public int hashCode() {
5099
      return 0;
5100
    }
5101
 
5102
    public int compareTo(getActivities_result other) {
5103
      if (!getClass().equals(other.getClass())) {
5104
        return getClass().getName().compareTo(other.getClass().getName());
5105
      }
5106
 
5107
      int lastComparison = 0;
5108
      getActivities_result typedOther = (getActivities_result)other;
5109
 
3430 rajveer 5110
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 5111
      if (lastComparison != 0) {
5112
        return lastComparison;
5113
      }
3430 rajveer 5114
      if (isSetSuccess()) {
5115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5116
        if (lastComparison != 0) {
5117
          return lastComparison;
5118
        }
3028 mandeep.dh 5119
      }
5120
      return 0;
5121
    }
5122
 
3430 rajveer 5123
    public _Fields fieldForId(int fieldId) {
5124
      return _Fields.findByThriftId(fieldId);
5125
    }
5126
 
5127
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5128
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 5129
      iprot.readStructBegin();
5130
      while (true)
5131
      {
5132
        field = iprot.readFieldBegin();
3430 rajveer 5133
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 5134
          break;
5135
        }
3430 rajveer 5136
        switch (field.id) {
5137
          case 0: // SUCCESS
5138
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
5139
              {
3546 mandeep.dh 5140
                org.apache.thrift.protocol.TList _list20 = iprot.readListBegin();
5141
                this.success = new ArrayList<Activity>(_list20.size);
5142
                for (int _i21 = 0; _i21 < _list20.size; ++_i21)
3028 mandeep.dh 5143
                {
3546 mandeep.dh 5144
                  Activity _elem22; // required
5145
                  _elem22 = new Activity();
5146
                  _elem22.read(iprot);
5147
                  this.success.add(_elem22);
3028 mandeep.dh 5148
                }
3430 rajveer 5149
                iprot.readListEnd();
3028 mandeep.dh 5150
              }
3430 rajveer 5151
            } else { 
5152
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5153
            }
5154
            break;
5155
          default:
5156
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5157
        }
3430 rajveer 5158
        iprot.readFieldEnd();
3028 mandeep.dh 5159
      }
5160
      iprot.readStructEnd();
5161
      validate();
5162
    }
5163
 
3430 rajveer 5164
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5165
      oprot.writeStructBegin(STRUCT_DESC);
5166
 
5167
      if (this.isSetSuccess()) {
5168
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5169
        {
3430 rajveer 5170
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 5171
          for (Activity _iter23 : this.success)
3028 mandeep.dh 5172
          {
3546 mandeep.dh 5173
            _iter23.write(oprot);
3028 mandeep.dh 5174
          }
5175
          oprot.writeListEnd();
5176
        }
5177
        oprot.writeFieldEnd();
5178
      }
5179
      oprot.writeFieldStop();
5180
      oprot.writeStructEnd();
5181
    }
5182
 
5183
    @Override
5184
    public String toString() {
5185
      StringBuilder sb = new StringBuilder("getActivities_result(");
5186
      boolean first = true;
5187
 
5188
      sb.append("success:");
5189
      if (this.success == null) {
5190
        sb.append("null");
5191
      } else {
5192
        sb.append(this.success);
5193
      }
5194
      first = false;
5195
      sb.append(")");
5196
      return sb.toString();
5197
    }
5198
 
3430 rajveer 5199
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 5200
      // check for required fields
5201
    }
5202
 
3430 rajveer 5203
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5204
      try {
5205
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5206
      } catch (org.apache.thrift.TException te) {
5207
        throw new java.io.IOException(te);
5208
      }
5209
    }
5210
 
5211
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5212
      try {
5213
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5214
      } catch (org.apache.thrift.TException te) {
5215
        throw new java.io.IOException(te);
5216
      }
5217
    }
5218
 
3028 mandeep.dh 5219
  }
5220
 
3430 rajveer 5221
  public static class insertActivity_args implements org.apache.thrift.TBase<insertActivity_args, insertActivity_args._Fields>, java.io.Serializable, Cloneable   {
5222
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertActivity_args");
3028 mandeep.dh 5223
 
3430 rajveer 5224
    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 5225
 
3430 rajveer 5226
    private Activity activity; // required
3028 mandeep.dh 5227
 
5228
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5229
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 5230
      ACTIVITY((short)1, "activity");
5231
 
5232
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5233
 
5234
      static {
5235
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5236
          byName.put(field.getFieldName(), field);
5237
        }
5238
      }
5239
 
5240
      /**
5241
       * Find the _Fields constant that matches fieldId, or null if its not found.
5242
       */
5243
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5244
        switch(fieldId) {
5245
          case 1: // ACTIVITY
5246
            return ACTIVITY;
5247
          default:
5248
            return null;
5249
        }
3028 mandeep.dh 5250
      }
5251
 
5252
      /**
5253
       * Find the _Fields constant that matches fieldId, throwing an exception
5254
       * if it is not found.
5255
       */
5256
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5257
        _Fields fields = findByThriftId(fieldId);
5258
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5259
        return fields;
5260
      }
5261
 
5262
      /**
5263
       * Find the _Fields constant that matches name, or null if its not found.
5264
       */
5265
      public static _Fields findByName(String name) {
5266
        return byName.get(name);
5267
      }
5268
 
5269
      private final short _thriftId;
5270
      private final String _fieldName;
5271
 
5272
      _Fields(short thriftId, String fieldName) {
5273
        _thriftId = thriftId;
5274
        _fieldName = fieldName;
5275
      }
5276
 
5277
      public short getThriftFieldId() {
5278
        return _thriftId;
5279
      }
5280
 
5281
      public String getFieldName() {
5282
        return _fieldName;
5283
      }
5284
    }
5285
 
5286
    // isset id assignments
5287
 
3430 rajveer 5288
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 5289
    static {
3430 rajveer 5290
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5291
      tmpMap.put(_Fields.ACTIVITY, new org.apache.thrift.meta_data.FieldMetaData("activity", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5292
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Activity.class)));
5293
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5294
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertActivity_args.class, metaDataMap);
3028 mandeep.dh 5295
    }
5296
 
5297
    public insertActivity_args() {
5298
    }
5299
 
5300
    public insertActivity_args(
5301
      Activity activity)
5302
    {
5303
      this();
5304
      this.activity = activity;
5305
    }
5306
 
5307
    /**
5308
     * Performs a deep copy on <i>other</i>.
5309
     */
5310
    public insertActivity_args(insertActivity_args other) {
5311
      if (other.isSetActivity()) {
5312
        this.activity = new Activity(other.activity);
5313
      }
5314
    }
5315
 
5316
    public insertActivity_args deepCopy() {
5317
      return new insertActivity_args(this);
5318
    }
5319
 
3430 rajveer 5320
    @Override
5321
    public void clear() {
5322
      this.activity = null;
3028 mandeep.dh 5323
    }
5324
 
5325
    public Activity getActivity() {
5326
      return this.activity;
5327
    }
5328
 
3430 rajveer 5329
    public void setActivity(Activity activity) {
3028 mandeep.dh 5330
      this.activity = activity;
5331
    }
5332
 
5333
    public void unsetActivity() {
5334
      this.activity = null;
5335
    }
5336
 
3430 rajveer 5337
    /** Returns true if field activity is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 5338
    public boolean isSetActivity() {
5339
      return this.activity != null;
5340
    }
5341
 
5342
    public void setActivityIsSet(boolean value) {
5343
      if (!value) {
5344
        this.activity = null;
5345
      }
5346
    }
5347
 
5348
    public void setFieldValue(_Fields field, Object value) {
5349
      switch (field) {
5350
      case ACTIVITY:
5351
        if (value == null) {
5352
          unsetActivity();
5353
        } else {
5354
          setActivity((Activity)value);
5355
        }
5356
        break;
5357
 
5358
      }
5359
    }
5360
 
5361
    public Object getFieldValue(_Fields field) {
5362
      switch (field) {
5363
      case ACTIVITY:
5364
        return getActivity();
5365
 
5366
      }
5367
      throw new IllegalStateException();
5368
    }
5369
 
3430 rajveer 5370
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5371
    public boolean isSet(_Fields field) {
5372
      if (field == null) {
5373
        throw new IllegalArgumentException();
5374
      }
3028 mandeep.dh 5375
 
5376
      switch (field) {
5377
      case ACTIVITY:
5378
        return isSetActivity();
5379
      }
5380
      throw new IllegalStateException();
5381
    }
5382
 
5383
    @Override
5384
    public boolean equals(Object that) {
5385
      if (that == null)
5386
        return false;
5387
      if (that instanceof insertActivity_args)
5388
        return this.equals((insertActivity_args)that);
5389
      return false;
5390
    }
5391
 
5392
    public boolean equals(insertActivity_args that) {
5393
      if (that == null)
5394
        return false;
5395
 
5396
      boolean this_present_activity = true && this.isSetActivity();
5397
      boolean that_present_activity = true && that.isSetActivity();
5398
      if (this_present_activity || that_present_activity) {
5399
        if (!(this_present_activity && that_present_activity))
5400
          return false;
5401
        if (!this.activity.equals(that.activity))
5402
          return false;
5403
      }
5404
 
5405
      return true;
5406
    }
5407
 
5408
    @Override
5409
    public int hashCode() {
5410
      return 0;
5411
    }
5412
 
5413
    public int compareTo(insertActivity_args other) {
5414
      if (!getClass().equals(other.getClass())) {
5415
        return getClass().getName().compareTo(other.getClass().getName());
5416
      }
5417
 
5418
      int lastComparison = 0;
5419
      insertActivity_args typedOther = (insertActivity_args)other;
5420
 
3430 rajveer 5421
      lastComparison = Boolean.valueOf(isSetActivity()).compareTo(typedOther.isSetActivity());
3028 mandeep.dh 5422
      if (lastComparison != 0) {
5423
        return lastComparison;
5424
      }
3430 rajveer 5425
      if (isSetActivity()) {
5426
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activity, typedOther.activity);
5427
        if (lastComparison != 0) {
5428
          return lastComparison;
5429
        }
3028 mandeep.dh 5430
      }
5431
      return 0;
5432
    }
5433
 
3430 rajveer 5434
    public _Fields fieldForId(int fieldId) {
5435
      return _Fields.findByThriftId(fieldId);
5436
    }
5437
 
5438
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5439
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 5440
      iprot.readStructBegin();
5441
      while (true)
5442
      {
5443
        field = iprot.readFieldBegin();
3430 rajveer 5444
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 5445
          break;
5446
        }
3430 rajveer 5447
        switch (field.id) {
5448
          case 1: // ACTIVITY
5449
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5450
              this.activity = new Activity();
5451
              this.activity.read(iprot);
5452
            } else { 
5453
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5454
            }
5455
            break;
5456
          default:
5457
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5458
        }
3430 rajveer 5459
        iprot.readFieldEnd();
3028 mandeep.dh 5460
      }
5461
      iprot.readStructEnd();
5462
      validate();
5463
    }
5464
 
3430 rajveer 5465
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5466
      validate();
5467
 
5468
      oprot.writeStructBegin(STRUCT_DESC);
5469
      if (this.activity != null) {
5470
        oprot.writeFieldBegin(ACTIVITY_FIELD_DESC);
5471
        this.activity.write(oprot);
5472
        oprot.writeFieldEnd();
5473
      }
5474
      oprot.writeFieldStop();
5475
      oprot.writeStructEnd();
5476
    }
5477
 
5478
    @Override
5479
    public String toString() {
5480
      StringBuilder sb = new StringBuilder("insertActivity_args(");
5481
      boolean first = true;
5482
 
5483
      sb.append("activity:");
5484
      if (this.activity == null) {
5485
        sb.append("null");
5486
      } else {
5487
        sb.append(this.activity);
5488
      }
5489
      first = false;
5490
      sb.append(")");
5491
      return sb.toString();
5492
    }
5493
 
3430 rajveer 5494
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 5495
      // check for required fields
5496
    }
5497
 
3430 rajveer 5498
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5499
      try {
5500
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5501
      } catch (org.apache.thrift.TException te) {
5502
        throw new java.io.IOException(te);
5503
      }
5504
    }
5505
 
5506
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5507
      try {
5508
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5509
      } catch (org.apache.thrift.TException te) {
5510
        throw new java.io.IOException(te);
5511
      }
5512
    }
5513
 
3028 mandeep.dh 5514
  }
5515
 
3430 rajveer 5516
  public static class insertActivity_result implements org.apache.thrift.TBase<insertActivity_result, insertActivity_result._Fields>, java.io.Serializable, Cloneable   {
5517
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertActivity_result");
3028 mandeep.dh 5518
 
3430 rajveer 5519
    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 5520
 
3430 rajveer 5521
    private long success; // required
3028 mandeep.dh 5522
 
5523
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5524
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3405 mandeep.dh 5525
      SUCCESS((short)0, "success");
3028 mandeep.dh 5526
 
5527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5528
 
5529
      static {
5530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5531
          byName.put(field.getFieldName(), field);
5532
        }
5533
      }
5534
 
5535
      /**
5536
       * Find the _Fields constant that matches fieldId, or null if its not found.
5537
       */
5538
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5539
        switch(fieldId) {
5540
          case 0: // SUCCESS
5541
            return SUCCESS;
5542
          default:
5543
            return null;
5544
        }
3028 mandeep.dh 5545
      }
5546
 
5547
      /**
5548
       * Find the _Fields constant that matches fieldId, throwing an exception
5549
       * if it is not found.
5550
       */
5551
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5552
        _Fields fields = findByThriftId(fieldId);
5553
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5554
        return fields;
5555
      }
5556
 
5557
      /**
5558
       * Find the _Fields constant that matches name, or null if its not found.
5559
       */
5560
      public static _Fields findByName(String name) {
5561
        return byName.get(name);
5562
      }
5563
 
5564
      private final short _thriftId;
5565
      private final String _fieldName;
5566
 
5567
      _Fields(short thriftId, String fieldName) {
5568
        _thriftId = thriftId;
5569
        _fieldName = fieldName;
5570
      }
5571
 
5572
      public short getThriftFieldId() {
5573
        return _thriftId;
5574
      }
5575
 
5576
      public String getFieldName() {
5577
        return _fieldName;
5578
      }
5579
    }
3405 mandeep.dh 5580
 
5581
    // isset id assignments
5582
    private static final int __SUCCESS_ISSET_ID = 0;
5583
    private BitSet __isset_bit_vector = new BitSet(1);
5584
 
3430 rajveer 5585
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 5586
    static {
3430 rajveer 5587
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5588
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5589
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5590
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5591
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertActivity_result.class, metaDataMap);
3028 mandeep.dh 5592
    }
5593
 
5594
    public insertActivity_result() {
5595
    }
5596
 
3405 mandeep.dh 5597
    public insertActivity_result(
5598
      long success)
5599
    {
5600
      this();
5601
      this.success = success;
5602
      setSuccessIsSet(true);
5603
    }
5604
 
3028 mandeep.dh 5605
    /**
5606
     * Performs a deep copy on <i>other</i>.
5607
     */
5608
    public insertActivity_result(insertActivity_result other) {
3405 mandeep.dh 5609
      __isset_bit_vector.clear();
5610
      __isset_bit_vector.or(other.__isset_bit_vector);
5611
      this.success = other.success;
3028 mandeep.dh 5612
    }
5613
 
5614
    public insertActivity_result deepCopy() {
5615
      return new insertActivity_result(this);
5616
    }
5617
 
3430 rajveer 5618
    @Override
5619
    public void clear() {
5620
      setSuccessIsSet(false);
5621
      this.success = 0;
3028 mandeep.dh 5622
    }
5623
 
3405 mandeep.dh 5624
    public long getSuccess() {
5625
      return this.success;
5626
    }
5627
 
3430 rajveer 5628
    public void setSuccess(long success) {
3405 mandeep.dh 5629
      this.success = success;
5630
      setSuccessIsSet(true);
5631
    }
5632
 
5633
    public void unsetSuccess() {
5634
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
5635
    }
5636
 
3430 rajveer 5637
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3405 mandeep.dh 5638
    public boolean isSetSuccess() {
5639
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
5640
    }
5641
 
5642
    public void setSuccessIsSet(boolean value) {
5643
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
5644
    }
5645
 
3028 mandeep.dh 5646
    public void setFieldValue(_Fields field, Object value) {
5647
      switch (field) {
3405 mandeep.dh 5648
      case SUCCESS:
5649
        if (value == null) {
5650
          unsetSuccess();
5651
        } else {
5652
          setSuccess((Long)value);
5653
        }
5654
        break;
5655
 
3028 mandeep.dh 5656
      }
5657
    }
5658
 
5659
    public Object getFieldValue(_Fields field) {
5660
      switch (field) {
3405 mandeep.dh 5661
      case SUCCESS:
3430 rajveer 5662
        return Long.valueOf(getSuccess());
3405 mandeep.dh 5663
 
3028 mandeep.dh 5664
      }
5665
      throw new IllegalStateException();
5666
    }
5667
 
3430 rajveer 5668
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5669
    public boolean isSet(_Fields field) {
5670
      if (field == null) {
5671
        throw new IllegalArgumentException();
5672
      }
3028 mandeep.dh 5673
 
5674
      switch (field) {
3405 mandeep.dh 5675
      case SUCCESS:
5676
        return isSetSuccess();
3028 mandeep.dh 5677
      }
5678
      throw new IllegalStateException();
5679
    }
5680
 
5681
    @Override
5682
    public boolean equals(Object that) {
5683
      if (that == null)
5684
        return false;
5685
      if (that instanceof insertActivity_result)
5686
        return this.equals((insertActivity_result)that);
5687
      return false;
5688
    }
5689
 
5690
    public boolean equals(insertActivity_result that) {
5691
      if (that == null)
5692
        return false;
5693
 
3405 mandeep.dh 5694
      boolean this_present_success = true;
5695
      boolean that_present_success = true;
5696
      if (this_present_success || that_present_success) {
5697
        if (!(this_present_success && that_present_success))
5698
          return false;
5699
        if (this.success != that.success)
5700
          return false;
5701
      }
5702
 
3028 mandeep.dh 5703
      return true;
5704
    }
5705
 
5706
    @Override
5707
    public int hashCode() {
5708
      return 0;
5709
    }
5710
 
5711
    public int compareTo(insertActivity_result other) {
5712
      if (!getClass().equals(other.getClass())) {
5713
        return getClass().getName().compareTo(other.getClass().getName());
5714
      }
5715
 
5716
      int lastComparison = 0;
5717
      insertActivity_result typedOther = (insertActivity_result)other;
5718
 
3430 rajveer 5719
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3405 mandeep.dh 5720
      if (lastComparison != 0) {
5721
        return lastComparison;
5722
      }
3430 rajveer 5723
      if (isSetSuccess()) {
5724
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5725
        if (lastComparison != 0) {
5726
          return lastComparison;
5727
        }
3405 mandeep.dh 5728
      }
3028 mandeep.dh 5729
      return 0;
5730
    }
5731
 
3430 rajveer 5732
    public _Fields fieldForId(int fieldId) {
5733
      return _Fields.findByThriftId(fieldId);
5734
    }
5735
 
5736
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5737
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 5738
      iprot.readStructBegin();
5739
      while (true)
5740
      {
5741
        field = iprot.readFieldBegin();
3430 rajveer 5742
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 5743
          break;
5744
        }
3430 rajveer 5745
        switch (field.id) {
5746
          case 0: // SUCCESS
5747
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5748
              this.success = iprot.readI64();
5749
              setSuccessIsSet(true);
5750
            } else { 
5751
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5752
            }
5753
            break;
5754
          default:
5755
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 5756
        }
3430 rajveer 5757
        iprot.readFieldEnd();
3028 mandeep.dh 5758
      }
5759
      iprot.readStructEnd();
5760
      validate();
5761
    }
5762
 
3430 rajveer 5763
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 5764
      oprot.writeStructBegin(STRUCT_DESC);
5765
 
3405 mandeep.dh 5766
      if (this.isSetSuccess()) {
5767
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5768
        oprot.writeI64(this.success);
5769
        oprot.writeFieldEnd();
5770
      }
3028 mandeep.dh 5771
      oprot.writeFieldStop();
5772
      oprot.writeStructEnd();
5773
    }
5774
 
5775
    @Override
5776
    public String toString() {
5777
      StringBuilder sb = new StringBuilder("insertActivity_result(");
5778
      boolean first = true;
5779
 
3405 mandeep.dh 5780
      sb.append("success:");
5781
      sb.append(this.success);
5782
      first = false;
3028 mandeep.dh 5783
      sb.append(")");
5784
      return sb.toString();
5785
    }
5786
 
3430 rajveer 5787
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 5788
      // check for required fields
5789
    }
5790
 
3430 rajveer 5791
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
5792
      try {
5793
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
5794
      } catch (org.apache.thrift.TException te) {
5795
        throw new java.io.IOException(te);
5796
      }
5797
    }
5798
 
5799
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
5800
      try {
5801
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
5802
      } catch (org.apache.thrift.TException te) {
5803
        throw new java.io.IOException(te);
5804
      }
5805
    }
5806
 
3028 mandeep.dh 5807
  }
5808
 
3430 rajveer 5809
  public static class markAsRead_args implements org.apache.thrift.TBase<markAsRead_args, markAsRead_args._Fields>, java.io.Serializable, Cloneable   {
5810
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_args");
3087 mandeep.dh 5811
 
3430 rajveer 5812
    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);
5813
    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 5814
 
3430 rajveer 5815
    private long activityId; // required
5816
    private long agentId; // required
3087 mandeep.dh 5817
 
5818
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 5819
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 5820
      ACTIVITY_ID((short)1, "activityId"),
5821
      AGENT_ID((short)2, "agentId");
3087 mandeep.dh 5822
 
5823
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5824
 
5825
      static {
5826
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5827
          byName.put(field.getFieldName(), field);
5828
        }
5829
      }
5830
 
5831
      /**
5832
       * Find the _Fields constant that matches fieldId, or null if its not found.
5833
       */
5834
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 5835
        switch(fieldId) {
5836
          case 1: // ACTIVITY_ID
5837
            return ACTIVITY_ID;
5838
          case 2: // AGENT_ID
5839
            return AGENT_ID;
5840
          default:
5841
            return null;
5842
        }
3087 mandeep.dh 5843
      }
5844
 
5845
      /**
5846
       * Find the _Fields constant that matches fieldId, throwing an exception
5847
       * if it is not found.
5848
       */
5849
      public static _Fields findByThriftIdOrThrow(int fieldId) {
5850
        _Fields fields = findByThriftId(fieldId);
5851
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
5852
        return fields;
5853
      }
5854
 
5855
      /**
5856
       * Find the _Fields constant that matches name, or null if its not found.
5857
       */
5858
      public static _Fields findByName(String name) {
5859
        return byName.get(name);
5860
      }
5861
 
5862
      private final short _thriftId;
5863
      private final String _fieldName;
5864
 
5865
      _Fields(short thriftId, String fieldName) {
5866
        _thriftId = thriftId;
5867
        _fieldName = fieldName;
5868
      }
5869
 
5870
      public short getThriftFieldId() {
5871
        return _thriftId;
5872
      }
5873
 
5874
      public String getFieldName() {
5875
        return _fieldName;
5876
      }
5877
    }
5878
 
5879
    // isset id assignments
3390 mandeep.dh 5880
    private static final int __ACTIVITYID_ISSET_ID = 0;
5881
    private static final int __AGENTID_ISSET_ID = 1;
5882
    private BitSet __isset_bit_vector = new BitSet(2);
3087 mandeep.dh 5883
 
3430 rajveer 5884
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 5885
    static {
3430 rajveer 5886
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
5887
      tmpMap.put(_Fields.ACTIVITY_ID, new org.apache.thrift.meta_data.FieldMetaData("activityId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5888
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5889
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
5890
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
5891
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5892
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_args.class, metaDataMap);
3087 mandeep.dh 5893
    }
5894
 
3390 mandeep.dh 5895
    public markAsRead_args() {
3087 mandeep.dh 5896
    }
5897
 
3390 mandeep.dh 5898
    public markAsRead_args(
5899
      long activityId,
5900
      long agentId)
3087 mandeep.dh 5901
    {
5902
      this();
3390 mandeep.dh 5903
      this.activityId = activityId;
5904
      setActivityIdIsSet(true);
5905
      this.agentId = agentId;
5906
      setAgentIdIsSet(true);
3087 mandeep.dh 5907
    }
5908
 
5909
    /**
5910
     * Performs a deep copy on <i>other</i>.
5911
     */
3390 mandeep.dh 5912
    public markAsRead_args(markAsRead_args other) {
5913
      __isset_bit_vector.clear();
5914
      __isset_bit_vector.or(other.__isset_bit_vector);
5915
      this.activityId = other.activityId;
5916
      this.agentId = other.agentId;
3087 mandeep.dh 5917
    }
5918
 
3390 mandeep.dh 5919
    public markAsRead_args deepCopy() {
5920
      return new markAsRead_args(this);
3087 mandeep.dh 5921
    }
5922
 
3430 rajveer 5923
    @Override
5924
    public void clear() {
5925
      setActivityIdIsSet(false);
5926
      this.activityId = 0;
5927
      setAgentIdIsSet(false);
5928
      this.agentId = 0;
3087 mandeep.dh 5929
    }
5930
 
3390 mandeep.dh 5931
    public long getActivityId() {
5932
      return this.activityId;
3087 mandeep.dh 5933
    }
5934
 
3430 rajveer 5935
    public void setActivityId(long activityId) {
3390 mandeep.dh 5936
      this.activityId = activityId;
5937
      setActivityIdIsSet(true);
3087 mandeep.dh 5938
    }
5939
 
3390 mandeep.dh 5940
    public void unsetActivityId() {
5941
      __isset_bit_vector.clear(__ACTIVITYID_ISSET_ID);
3087 mandeep.dh 5942
    }
5943
 
3430 rajveer 5944
    /** Returns true if field activityId is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 5945
    public boolean isSetActivityId() {
5946
      return __isset_bit_vector.get(__ACTIVITYID_ISSET_ID);
3087 mandeep.dh 5947
    }
5948
 
3390 mandeep.dh 5949
    public void setActivityIdIsSet(boolean value) {
5950
      __isset_bit_vector.set(__ACTIVITYID_ISSET_ID, value);
3087 mandeep.dh 5951
    }
5952
 
3028 mandeep.dh 5953
    public long getAgentId() {
5954
      return this.agentId;
5955
    }
5956
 
3430 rajveer 5957
    public void setAgentId(long agentId) {
3028 mandeep.dh 5958
      this.agentId = agentId;
5959
      setAgentIdIsSet(true);
5960
    }
5961
 
5962
    public void unsetAgentId() {
5963
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
5964
    }
5965
 
3430 rajveer 5966
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 5967
    public boolean isSetAgentId() {
5968
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
5969
    }
5970
 
5971
    public void setAgentIdIsSet(boolean value) {
5972
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
5973
    }
5974
 
5975
    public void setFieldValue(_Fields field, Object value) {
5976
      switch (field) {
3390 mandeep.dh 5977
      case ACTIVITY_ID:
5978
        if (value == null) {
5979
          unsetActivityId();
5980
        } else {
5981
          setActivityId((Long)value);
5982
        }
5983
        break;
5984
 
3028 mandeep.dh 5985
      case AGENT_ID:
5986
        if (value == null) {
5987
          unsetAgentId();
5988
        } else {
5989
          setAgentId((Long)value);
5990
        }
5991
        break;
5992
 
5993
      }
5994
    }
5995
 
5996
    public Object getFieldValue(_Fields field) {
5997
      switch (field) {
3390 mandeep.dh 5998
      case ACTIVITY_ID:
3430 rajveer 5999
        return Long.valueOf(getActivityId());
3390 mandeep.dh 6000
 
3028 mandeep.dh 6001
      case AGENT_ID:
3430 rajveer 6002
        return Long.valueOf(getAgentId());
3028 mandeep.dh 6003
 
6004
      }
6005
      throw new IllegalStateException();
6006
    }
6007
 
3430 rajveer 6008
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6009
    public boolean isSet(_Fields field) {
6010
      if (field == null) {
6011
        throw new IllegalArgumentException();
6012
      }
3028 mandeep.dh 6013
 
6014
      switch (field) {
3390 mandeep.dh 6015
      case ACTIVITY_ID:
6016
        return isSetActivityId();
3028 mandeep.dh 6017
      case AGENT_ID:
6018
        return isSetAgentId();
6019
      }
6020
      throw new IllegalStateException();
6021
    }
6022
 
6023
    @Override
6024
    public boolean equals(Object that) {
6025
      if (that == null)
6026
        return false;
3390 mandeep.dh 6027
      if (that instanceof markAsRead_args)
6028
        return this.equals((markAsRead_args)that);
3028 mandeep.dh 6029
      return false;
6030
    }
6031
 
3390 mandeep.dh 6032
    public boolean equals(markAsRead_args that) {
3028 mandeep.dh 6033
      if (that == null)
6034
        return false;
6035
 
3390 mandeep.dh 6036
      boolean this_present_activityId = true;
6037
      boolean that_present_activityId = true;
6038
      if (this_present_activityId || that_present_activityId) {
6039
        if (!(this_present_activityId && that_present_activityId))
6040
          return false;
6041
        if (this.activityId != that.activityId)
6042
          return false;
6043
      }
6044
 
3028 mandeep.dh 6045
      boolean this_present_agentId = true;
6046
      boolean that_present_agentId = true;
6047
      if (this_present_agentId || that_present_agentId) {
6048
        if (!(this_present_agentId && that_present_agentId))
6049
          return false;
6050
        if (this.agentId != that.agentId)
6051
          return false;
6052
      }
6053
 
6054
      return true;
6055
    }
6056
 
6057
    @Override
6058
    public int hashCode() {
6059
      return 0;
6060
    }
6061
 
3390 mandeep.dh 6062
    public int compareTo(markAsRead_args other) {
3028 mandeep.dh 6063
      if (!getClass().equals(other.getClass())) {
6064
        return getClass().getName().compareTo(other.getClass().getName());
6065
      }
6066
 
6067
      int lastComparison = 0;
3390 mandeep.dh 6068
      markAsRead_args typedOther = (markAsRead_args)other;
3028 mandeep.dh 6069
 
3430 rajveer 6070
      lastComparison = Boolean.valueOf(isSetActivityId()).compareTo(typedOther.isSetActivityId());
3390 mandeep.dh 6071
      if (lastComparison != 0) {
6072
        return lastComparison;
6073
      }
3430 rajveer 6074
      if (isSetActivityId()) {
6075
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.activityId, typedOther.activityId);
6076
        if (lastComparison != 0) {
6077
          return lastComparison;
6078
        }
3390 mandeep.dh 6079
      }
3430 rajveer 6080
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
3028 mandeep.dh 6081
      if (lastComparison != 0) {
6082
        return lastComparison;
6083
      }
3430 rajveer 6084
      if (isSetAgentId()) {
6085
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
6086
        if (lastComparison != 0) {
6087
          return lastComparison;
6088
        }
3028 mandeep.dh 6089
      }
6090
      return 0;
6091
    }
6092
 
3430 rajveer 6093
    public _Fields fieldForId(int fieldId) {
6094
      return _Fields.findByThriftId(fieldId);
6095
    }
6096
 
6097
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6098
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6099
      iprot.readStructBegin();
6100
      while (true)
6101
      {
6102
        field = iprot.readFieldBegin();
3430 rajveer 6103
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6104
          break;
6105
        }
3430 rajveer 6106
        switch (field.id) {
6107
          case 1: // ACTIVITY_ID
6108
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6109
              this.activityId = iprot.readI64();
6110
              setActivityIdIsSet(true);
6111
            } else { 
6112
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6113
            }
6114
            break;
6115
          case 2: // AGENT_ID
6116
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6117
              this.agentId = iprot.readI64();
6118
              setAgentIdIsSet(true);
6119
            } else { 
6120
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6121
            }
6122
            break;
6123
          default:
6124
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6125
        }
3430 rajveer 6126
        iprot.readFieldEnd();
3028 mandeep.dh 6127
      }
6128
      iprot.readStructEnd();
6129
      validate();
6130
    }
6131
 
3430 rajveer 6132
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6133
      validate();
6134
 
6135
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 6136
      oprot.writeFieldBegin(ACTIVITY_ID_FIELD_DESC);
6137
      oprot.writeI64(this.activityId);
6138
      oprot.writeFieldEnd();
3028 mandeep.dh 6139
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
6140
      oprot.writeI64(this.agentId);
6141
      oprot.writeFieldEnd();
6142
      oprot.writeFieldStop();
6143
      oprot.writeStructEnd();
6144
    }
6145
 
6146
    @Override
6147
    public String toString() {
3390 mandeep.dh 6148
      StringBuilder sb = new StringBuilder("markAsRead_args(");
3028 mandeep.dh 6149
      boolean first = true;
6150
 
3390 mandeep.dh 6151
      sb.append("activityId:");
6152
      sb.append(this.activityId);
6153
      first = false;
6154
      if (!first) sb.append(", ");
3028 mandeep.dh 6155
      sb.append("agentId:");
6156
      sb.append(this.agentId);
6157
      first = false;
6158
      sb.append(")");
6159
      return sb.toString();
6160
    }
6161
 
3430 rajveer 6162
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6163
      // check for required fields
6164
    }
6165
 
3430 rajveer 6166
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6167
      try {
6168
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6169
      } catch (org.apache.thrift.TException te) {
6170
        throw new java.io.IOException(te);
6171
      }
6172
    }
6173
 
6174
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6175
      try {
6176
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
6177
        __isset_bit_vector = new BitSet(1);
6178
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6179
      } catch (org.apache.thrift.TException te) {
6180
        throw new java.io.IOException(te);
6181
      }
6182
    }
6183
 
3028 mandeep.dh 6184
  }
6185
 
3430 rajveer 6186
  public static class markAsRead_result implements org.apache.thrift.TBase<markAsRead_result, markAsRead_result._Fields>, java.io.Serializable, Cloneable   {
6187
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("markAsRead_result");
3028 mandeep.dh 6188
 
6189
 
6190
 
6191
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6192
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 6193
;
3028 mandeep.dh 6194
 
6195
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6196
 
6197
      static {
6198
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6199
          byName.put(field.getFieldName(), field);
6200
        }
6201
      }
6202
 
6203
      /**
6204
       * Find the _Fields constant that matches fieldId, or null if its not found.
6205
       */
6206
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6207
        switch(fieldId) {
6208
          default:
6209
            return null;
6210
        }
3028 mandeep.dh 6211
      }
6212
 
6213
      /**
6214
       * Find the _Fields constant that matches fieldId, throwing an exception
6215
       * if it is not found.
6216
       */
6217
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6218
        _Fields fields = findByThriftId(fieldId);
6219
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6220
        return fields;
6221
      }
6222
 
6223
      /**
6224
       * Find the _Fields constant that matches name, or null if its not found.
6225
       */
6226
      public static _Fields findByName(String name) {
6227
        return byName.get(name);
6228
      }
6229
 
6230
      private final short _thriftId;
6231
      private final String _fieldName;
6232
 
6233
      _Fields(short thriftId, String fieldName) {
6234
        _thriftId = thriftId;
6235
        _fieldName = fieldName;
6236
      }
6237
 
6238
      public short getThriftFieldId() {
6239
        return _thriftId;
6240
      }
6241
 
6242
      public String getFieldName() {
6243
        return _fieldName;
6244
      }
6245
    }
3430 rajveer 6246
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6247
    static {
3430 rajveer 6248
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6249
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6250
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(markAsRead_result.class, metaDataMap);
3028 mandeep.dh 6251
    }
6252
 
3390 mandeep.dh 6253
    public markAsRead_result() {
3028 mandeep.dh 6254
    }
6255
 
6256
    /**
6257
     * Performs a deep copy on <i>other</i>.
6258
     */
3390 mandeep.dh 6259
    public markAsRead_result(markAsRead_result other) {
3028 mandeep.dh 6260
    }
6261
 
3390 mandeep.dh 6262
    public markAsRead_result deepCopy() {
6263
      return new markAsRead_result(this);
3028 mandeep.dh 6264
    }
6265
 
3430 rajveer 6266
    @Override
6267
    public void clear() {
3028 mandeep.dh 6268
    }
6269
 
6270
    public void setFieldValue(_Fields field, Object value) {
6271
      switch (field) {
6272
      }
6273
    }
6274
 
6275
    public Object getFieldValue(_Fields field) {
6276
      switch (field) {
6277
      }
6278
      throw new IllegalStateException();
6279
    }
6280
 
3430 rajveer 6281
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6282
    public boolean isSet(_Fields field) {
6283
      if (field == null) {
6284
        throw new IllegalArgumentException();
6285
      }
3028 mandeep.dh 6286
 
6287
      switch (field) {
6288
      }
6289
      throw new IllegalStateException();
6290
    }
6291
 
6292
    @Override
6293
    public boolean equals(Object that) {
6294
      if (that == null)
6295
        return false;
3390 mandeep.dh 6296
      if (that instanceof markAsRead_result)
6297
        return this.equals((markAsRead_result)that);
3028 mandeep.dh 6298
      return false;
6299
    }
6300
 
3390 mandeep.dh 6301
    public boolean equals(markAsRead_result that) {
3028 mandeep.dh 6302
      if (that == null)
6303
        return false;
6304
 
6305
      return true;
6306
    }
6307
 
6308
    @Override
6309
    public int hashCode() {
6310
      return 0;
6311
    }
6312
 
3390 mandeep.dh 6313
    public int compareTo(markAsRead_result other) {
3028 mandeep.dh 6314
      if (!getClass().equals(other.getClass())) {
6315
        return getClass().getName().compareTo(other.getClass().getName());
6316
      }
6317
 
6318
      int lastComparison = 0;
3390 mandeep.dh 6319
      markAsRead_result typedOther = (markAsRead_result)other;
3028 mandeep.dh 6320
 
6321
      return 0;
6322
    }
6323
 
3430 rajveer 6324
    public _Fields fieldForId(int fieldId) {
6325
      return _Fields.findByThriftId(fieldId);
6326
    }
6327
 
6328
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6329
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6330
      iprot.readStructBegin();
6331
      while (true)
6332
      {
6333
        field = iprot.readFieldBegin();
3430 rajveer 6334
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6335
          break;
6336
        }
3430 rajveer 6337
        switch (field.id) {
6338
          default:
6339
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6340
        }
3430 rajveer 6341
        iprot.readFieldEnd();
3028 mandeep.dh 6342
      }
6343
      iprot.readStructEnd();
6344
      validate();
6345
    }
6346
 
3430 rajveer 6347
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6348
      oprot.writeStructBegin(STRUCT_DESC);
6349
 
6350
      oprot.writeFieldStop();
6351
      oprot.writeStructEnd();
6352
    }
6353
 
6354
    @Override
6355
    public String toString() {
3390 mandeep.dh 6356
      StringBuilder sb = new StringBuilder("markAsRead_result(");
3028 mandeep.dh 6357
      boolean first = true;
6358
 
6359
      sb.append(")");
6360
      return sb.toString();
6361
    }
6362
 
3430 rajveer 6363
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6364
      // check for required fields
6365
    }
6366
 
3430 rajveer 6367
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6368
      try {
6369
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6370
      } catch (org.apache.thrift.TException te) {
6371
        throw new java.io.IOException(te);
6372
      }
6373
    }
6374
 
6375
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6376
      try {
6377
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6378
      } catch (org.apache.thrift.TException te) {
6379
        throw new java.io.IOException(te);
6380
      }
6381
    }
6382
 
3028 mandeep.dh 6383
  }
6384
 
3430 rajveer 6385
  public static class getAgents_args implements org.apache.thrift.TBase<getAgents_args, getAgents_args._Fields>, java.io.Serializable, Cloneable   {
6386
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_args");
3028 mandeep.dh 6387
 
3430 rajveer 6388
    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 6389
 
3430 rajveer 6390
    private SearchFilter searchFilter; // required
3028 mandeep.dh 6391
 
6392
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6393
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3390 mandeep.dh 6394
      SEARCH_FILTER((short)1, "searchFilter");
3028 mandeep.dh 6395
 
6396
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6397
 
6398
      static {
6399
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6400
          byName.put(field.getFieldName(), field);
6401
        }
6402
      }
6403
 
6404
      /**
6405
       * Find the _Fields constant that matches fieldId, or null if its not found.
6406
       */
6407
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6408
        switch(fieldId) {
6409
          case 1: // SEARCH_FILTER
6410
            return SEARCH_FILTER;
6411
          default:
6412
            return null;
6413
        }
3028 mandeep.dh 6414
      }
6415
 
6416
      /**
6417
       * Find the _Fields constant that matches fieldId, throwing an exception
6418
       * if it is not found.
6419
       */
6420
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6421
        _Fields fields = findByThriftId(fieldId);
6422
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6423
        return fields;
6424
      }
6425
 
6426
      /**
6427
       * Find the _Fields constant that matches name, or null if its not found.
6428
       */
6429
      public static _Fields findByName(String name) {
6430
        return byName.get(name);
6431
      }
6432
 
6433
      private final short _thriftId;
6434
      private final String _fieldName;
6435
 
6436
      _Fields(short thriftId, String fieldName) {
6437
        _thriftId = thriftId;
6438
        _fieldName = fieldName;
6439
      }
6440
 
6441
      public short getThriftFieldId() {
6442
        return _thriftId;
6443
      }
6444
 
6445
      public String getFieldName() {
6446
        return _fieldName;
6447
      }
6448
    }
6449
 
6450
    // isset id assignments
6451
 
3430 rajveer 6452
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6453
    static {
3430 rajveer 6454
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6455
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6456
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
6457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_args.class, metaDataMap);
3028 mandeep.dh 6459
    }
6460
 
3390 mandeep.dh 6461
    public getAgents_args() {
3028 mandeep.dh 6462
    }
6463
 
3390 mandeep.dh 6464
    public getAgents_args(
6465
      SearchFilter searchFilter)
3028 mandeep.dh 6466
    {
6467
      this();
3390 mandeep.dh 6468
      this.searchFilter = searchFilter;
3028 mandeep.dh 6469
    }
6470
 
6471
    /**
6472
     * Performs a deep copy on <i>other</i>.
6473
     */
3390 mandeep.dh 6474
    public getAgents_args(getAgents_args other) {
6475
      if (other.isSetSearchFilter()) {
6476
        this.searchFilter = new SearchFilter(other.searchFilter);
3028 mandeep.dh 6477
      }
6478
    }
6479
 
3390 mandeep.dh 6480
    public getAgents_args deepCopy() {
6481
      return new getAgents_args(this);
3028 mandeep.dh 6482
    }
6483
 
3430 rajveer 6484
    @Override
6485
    public void clear() {
6486
      this.searchFilter = null;
3028 mandeep.dh 6487
    }
6488
 
3390 mandeep.dh 6489
    public SearchFilter getSearchFilter() {
6490
      return this.searchFilter;
3028 mandeep.dh 6491
    }
6492
 
3430 rajveer 6493
    public void setSearchFilter(SearchFilter searchFilter) {
3390 mandeep.dh 6494
      this.searchFilter = searchFilter;
3028 mandeep.dh 6495
    }
6496
 
3390 mandeep.dh 6497
    public void unsetSearchFilter() {
6498
      this.searchFilter = null;
3028 mandeep.dh 6499
    }
6500
 
3430 rajveer 6501
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
3390 mandeep.dh 6502
    public boolean isSetSearchFilter() {
6503
      return this.searchFilter != null;
3028 mandeep.dh 6504
    }
6505
 
3390 mandeep.dh 6506
    public void setSearchFilterIsSet(boolean value) {
3028 mandeep.dh 6507
      if (!value) {
3390 mandeep.dh 6508
        this.searchFilter = null;
3028 mandeep.dh 6509
      }
6510
    }
6511
 
6512
    public void setFieldValue(_Fields field, Object value) {
6513
      switch (field) {
3390 mandeep.dh 6514
      case SEARCH_FILTER:
3028 mandeep.dh 6515
        if (value == null) {
3390 mandeep.dh 6516
          unsetSearchFilter();
3028 mandeep.dh 6517
        } else {
3390 mandeep.dh 6518
          setSearchFilter((SearchFilter)value);
3028 mandeep.dh 6519
        }
6520
        break;
6521
 
6522
      }
6523
    }
6524
 
6525
    public Object getFieldValue(_Fields field) {
6526
      switch (field) {
3390 mandeep.dh 6527
      case SEARCH_FILTER:
6528
        return getSearchFilter();
3028 mandeep.dh 6529
 
6530
      }
6531
      throw new IllegalStateException();
6532
    }
6533
 
3430 rajveer 6534
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6535
    public boolean isSet(_Fields field) {
6536
      if (field == null) {
6537
        throw new IllegalArgumentException();
6538
      }
3028 mandeep.dh 6539
 
6540
      switch (field) {
3390 mandeep.dh 6541
      case SEARCH_FILTER:
6542
        return isSetSearchFilter();
3028 mandeep.dh 6543
      }
6544
      throw new IllegalStateException();
6545
    }
6546
 
6547
    @Override
6548
    public boolean equals(Object that) {
6549
      if (that == null)
6550
        return false;
3390 mandeep.dh 6551
      if (that instanceof getAgents_args)
6552
        return this.equals((getAgents_args)that);
3028 mandeep.dh 6553
      return false;
6554
    }
6555
 
3390 mandeep.dh 6556
    public boolean equals(getAgents_args that) {
3028 mandeep.dh 6557
      if (that == null)
6558
        return false;
6559
 
3390 mandeep.dh 6560
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
6561
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
6562
      if (this_present_searchFilter || that_present_searchFilter) {
6563
        if (!(this_present_searchFilter && that_present_searchFilter))
3028 mandeep.dh 6564
          return false;
3390 mandeep.dh 6565
        if (!this.searchFilter.equals(that.searchFilter))
3028 mandeep.dh 6566
          return false;
6567
      }
6568
 
6569
      return true;
6570
    }
6571
 
6572
    @Override
6573
    public int hashCode() {
6574
      return 0;
6575
    }
6576
 
3390 mandeep.dh 6577
    public int compareTo(getAgents_args other) {
3028 mandeep.dh 6578
      if (!getClass().equals(other.getClass())) {
6579
        return getClass().getName().compareTo(other.getClass().getName());
6580
      }
6581
 
6582
      int lastComparison = 0;
3390 mandeep.dh 6583
      getAgents_args typedOther = (getAgents_args)other;
3028 mandeep.dh 6584
 
3430 rajveer 6585
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
3028 mandeep.dh 6586
      if (lastComparison != 0) {
6587
        return lastComparison;
6588
      }
3430 rajveer 6589
      if (isSetSearchFilter()) {
6590
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
6591
        if (lastComparison != 0) {
6592
          return lastComparison;
6593
        }
3028 mandeep.dh 6594
      }
6595
      return 0;
6596
    }
6597
 
3430 rajveer 6598
    public _Fields fieldForId(int fieldId) {
6599
      return _Fields.findByThriftId(fieldId);
6600
    }
6601
 
6602
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6603
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6604
      iprot.readStructBegin();
6605
      while (true)
6606
      {
6607
        field = iprot.readFieldBegin();
3430 rajveer 6608
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6609
          break;
6610
        }
3430 rajveer 6611
        switch (field.id) {
6612
          case 1: // SEARCH_FILTER
6613
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
6614
              this.searchFilter = new SearchFilter();
6615
              this.searchFilter.read(iprot);
6616
            } else { 
6617
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6618
            }
6619
            break;
6620
          default:
6621
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6622
        }
3430 rajveer 6623
        iprot.readFieldEnd();
3028 mandeep.dh 6624
      }
6625
      iprot.readStructEnd();
6626
      validate();
6627
    }
6628
 
3430 rajveer 6629
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6630
      validate();
6631
 
6632
      oprot.writeStructBegin(STRUCT_DESC);
3390 mandeep.dh 6633
      if (this.searchFilter != null) {
6634
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
6635
        this.searchFilter.write(oprot);
3028 mandeep.dh 6636
        oprot.writeFieldEnd();
6637
      }
6638
      oprot.writeFieldStop();
6639
      oprot.writeStructEnd();
6640
    }
6641
 
6642
    @Override
6643
    public String toString() {
3390 mandeep.dh 6644
      StringBuilder sb = new StringBuilder("getAgents_args(");
3028 mandeep.dh 6645
      boolean first = true;
6646
 
3390 mandeep.dh 6647
      sb.append("searchFilter:");
6648
      if (this.searchFilter == null) {
3028 mandeep.dh 6649
        sb.append("null");
6650
      } else {
3390 mandeep.dh 6651
        sb.append(this.searchFilter);
3028 mandeep.dh 6652
      }
6653
      first = false;
6654
      sb.append(")");
6655
      return sb.toString();
6656
    }
6657
 
3430 rajveer 6658
    public void validate() throws org.apache.thrift.TException {
3028 mandeep.dh 6659
      // check for required fields
6660
    }
6661
 
3430 rajveer 6662
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
6663
      try {
6664
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
6665
      } catch (org.apache.thrift.TException te) {
6666
        throw new java.io.IOException(te);
6667
      }
6668
    }
6669
 
6670
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
6671
      try {
6672
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
6673
      } catch (org.apache.thrift.TException te) {
6674
        throw new java.io.IOException(te);
6675
      }
6676
    }
6677
 
3028 mandeep.dh 6678
  }
6679
 
3430 rajveer 6680
  public static class getAgents_result implements org.apache.thrift.TBase<getAgents_result, getAgents_result._Fields>, java.io.Serializable, Cloneable   {
6681
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAgents_result");
3028 mandeep.dh 6682
 
3430 rajveer 6683
    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 6684
 
3430 rajveer 6685
    private List<Agent> success; // required
3028 mandeep.dh 6686
 
6687
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 6688
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3028 mandeep.dh 6689
      SUCCESS((short)0, "success");
6690
 
6691
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6692
 
6693
      static {
6694
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6695
          byName.put(field.getFieldName(), field);
6696
        }
6697
      }
6698
 
6699
      /**
6700
       * Find the _Fields constant that matches fieldId, or null if its not found.
6701
       */
6702
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 6703
        switch(fieldId) {
6704
          case 0: // SUCCESS
6705
            return SUCCESS;
6706
          default:
6707
            return null;
6708
        }
3028 mandeep.dh 6709
      }
6710
 
6711
      /**
6712
       * Find the _Fields constant that matches fieldId, throwing an exception
6713
       * if it is not found.
6714
       */
6715
      public static _Fields findByThriftIdOrThrow(int fieldId) {
6716
        _Fields fields = findByThriftId(fieldId);
6717
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
6718
        return fields;
6719
      }
6720
 
6721
      /**
6722
       * Find the _Fields constant that matches name, or null if its not found.
6723
       */
6724
      public static _Fields findByName(String name) {
6725
        return byName.get(name);
6726
      }
6727
 
6728
      private final short _thriftId;
6729
      private final String _fieldName;
6730
 
6731
      _Fields(short thriftId, String fieldName) {
6732
        _thriftId = thriftId;
6733
        _fieldName = fieldName;
6734
      }
6735
 
6736
      public short getThriftFieldId() {
6737
        return _thriftId;
6738
      }
6739
 
6740
      public String getFieldName() {
6741
        return _fieldName;
6742
      }
6743
    }
6744
 
6745
    // isset id assignments
6746
 
3430 rajveer 6747
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3028 mandeep.dh 6748
    static {
3430 rajveer 6749
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
6750
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
6751
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
6752
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
6753
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6754
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAgents_result.class, metaDataMap);
3028 mandeep.dh 6755
    }
6756
 
3390 mandeep.dh 6757
    public getAgents_result() {
3028 mandeep.dh 6758
    }
6759
 
3390 mandeep.dh 6760
    public getAgents_result(
6761
      List<Agent> success)
3028 mandeep.dh 6762
    {
6763
      this();
6764
      this.success = success;
6765
    }
6766
 
6767
    /**
6768
     * Performs a deep copy on <i>other</i>.
6769
     */
3390 mandeep.dh 6770
    public getAgents_result(getAgents_result other) {
3028 mandeep.dh 6771
      if (other.isSetSuccess()) {
3390 mandeep.dh 6772
        List<Agent> __this__success = new ArrayList<Agent>();
6773
        for (Agent other_element : other.success) {
6774
          __this__success.add(new Agent(other_element));
6775
        }
6776
        this.success = __this__success;
3028 mandeep.dh 6777
      }
6778
    }
6779
 
3390 mandeep.dh 6780
    public getAgents_result deepCopy() {
6781
      return new getAgents_result(this);
3028 mandeep.dh 6782
    }
6783
 
3430 rajveer 6784
    @Override
6785
    public void clear() {
6786
      this.success = null;
3028 mandeep.dh 6787
    }
6788
 
3390 mandeep.dh 6789
    public int getSuccessSize() {
6790
      return (this.success == null) ? 0 : this.success.size();
6791
    }
6792
 
6793
    public java.util.Iterator<Agent> getSuccessIterator() {
6794
      return (this.success == null) ? null : this.success.iterator();
6795
    }
6796
 
6797
    public void addToSuccess(Agent elem) {
6798
      if (this.success == null) {
6799
        this.success = new ArrayList<Agent>();
6800
      }
6801
      this.success.add(elem);
6802
    }
6803
 
6804
    public List<Agent> getSuccess() {
3028 mandeep.dh 6805
      return this.success;
6806
    }
6807
 
3430 rajveer 6808
    public void setSuccess(List<Agent> success) {
3028 mandeep.dh 6809
      this.success = success;
6810
    }
6811
 
6812
    public void unsetSuccess() {
6813
      this.success = null;
6814
    }
6815
 
3430 rajveer 6816
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3028 mandeep.dh 6817
    public boolean isSetSuccess() {
6818
      return this.success != null;
6819
    }
6820
 
6821
    public void setSuccessIsSet(boolean value) {
6822
      if (!value) {
6823
        this.success = null;
6824
      }
6825
    }
6826
 
6827
    public void setFieldValue(_Fields field, Object value) {
6828
      switch (field) {
6829
      case SUCCESS:
6830
        if (value == null) {
6831
          unsetSuccess();
6832
        } else {
3390 mandeep.dh 6833
          setSuccess((List<Agent>)value);
3028 mandeep.dh 6834
        }
6835
        break;
6836
 
6837
      }
6838
    }
6839
 
6840
    public Object getFieldValue(_Fields field) {
6841
      switch (field) {
6842
      case SUCCESS:
6843
        return getSuccess();
6844
 
6845
      }
6846
      throw new IllegalStateException();
6847
    }
6848
 
3430 rajveer 6849
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6850
    public boolean isSet(_Fields field) {
6851
      if (field == null) {
6852
        throw new IllegalArgumentException();
6853
      }
3028 mandeep.dh 6854
 
6855
      switch (field) {
6856
      case SUCCESS:
6857
        return isSetSuccess();
6858
      }
6859
      throw new IllegalStateException();
6860
    }
6861
 
6862
    @Override
6863
    public boolean equals(Object that) {
6864
      if (that == null)
6865
        return false;
3390 mandeep.dh 6866
      if (that instanceof getAgents_result)
6867
        return this.equals((getAgents_result)that);
3028 mandeep.dh 6868
      return false;
6869
    }
6870
 
3390 mandeep.dh 6871
    public boolean equals(getAgents_result that) {
3028 mandeep.dh 6872
      if (that == null)
6873
        return false;
6874
 
6875
      boolean this_present_success = true && this.isSetSuccess();
6876
      boolean that_present_success = true && that.isSetSuccess();
6877
      if (this_present_success || that_present_success) {
6878
        if (!(this_present_success && that_present_success))
6879
          return false;
6880
        if (!this.success.equals(that.success))
6881
          return false;
6882
      }
6883
 
6884
      return true;
6885
    }
6886
 
6887
    @Override
6888
    public int hashCode() {
6889
      return 0;
6890
    }
6891
 
3390 mandeep.dh 6892
    public int compareTo(getAgents_result other) {
3028 mandeep.dh 6893
      if (!getClass().equals(other.getClass())) {
6894
        return getClass().getName().compareTo(other.getClass().getName());
6895
      }
6896
 
6897
      int lastComparison = 0;
3390 mandeep.dh 6898
      getAgents_result typedOther = (getAgents_result)other;
3028 mandeep.dh 6899
 
3430 rajveer 6900
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3028 mandeep.dh 6901
      if (lastComparison != 0) {
6902
        return lastComparison;
6903
      }
3430 rajveer 6904
      if (isSetSuccess()) {
6905
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6906
        if (lastComparison != 0) {
6907
          return lastComparison;
6908
        }
3028 mandeep.dh 6909
      }
6910
      return 0;
6911
    }
6912
 
3430 rajveer 6913
    public _Fields fieldForId(int fieldId) {
6914
      return _Fields.findByThriftId(fieldId);
6915
    }
6916
 
6917
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6918
      org.apache.thrift.protocol.TField field;
3028 mandeep.dh 6919
      iprot.readStructBegin();
6920
      while (true)
6921
      {
6922
        field = iprot.readFieldBegin();
3430 rajveer 6923
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3028 mandeep.dh 6924
          break;
6925
        }
3430 rajveer 6926
        switch (field.id) {
6927
          case 0: // SUCCESS
6928
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6929
              {
3546 mandeep.dh 6930
                org.apache.thrift.protocol.TList _list24 = iprot.readListBegin();
6931
                this.success = new ArrayList<Agent>(_list24.size);
6932
                for (int _i25 = 0; _i25 < _list24.size; ++_i25)
3390 mandeep.dh 6933
                {
3546 mandeep.dh 6934
                  Agent _elem26; // required
6935
                  _elem26 = new Agent();
6936
                  _elem26.read(iprot);
6937
                  this.success.add(_elem26);
3390 mandeep.dh 6938
                }
3430 rajveer 6939
                iprot.readListEnd();
3028 mandeep.dh 6940
              }
3430 rajveer 6941
            } else { 
6942
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6943
            }
6944
            break;
6945
          default:
6946
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3028 mandeep.dh 6947
        }
3430 rajveer 6948
        iprot.readFieldEnd();
3028 mandeep.dh 6949
      }
6950
      iprot.readStructEnd();
6951
      validate();
6952
    }
6953
 
3430 rajveer 6954
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3028 mandeep.dh 6955
      oprot.writeStructBegin(STRUCT_DESC);
6956
 
6957
      if (this.isSetSuccess()) {
6958
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3390 mandeep.dh 6959
        {
3430 rajveer 6960
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
3546 mandeep.dh 6961
          for (Agent _iter27 : this.success)
3390 mandeep.dh 6962
          {
3546 mandeep.dh 6963
            _iter27.write(oprot);
3390 mandeep.dh 6964
          }
6965
          oprot.writeListEnd();
6966
        }
3028 mandeep.dh 6967
        oprot.writeFieldEnd();
6968
      }
6969
      oprot.writeFieldStop();
6970
      oprot.writeStructEnd();
6971
    }
6972
 
6973
    @Override
6974
    public String toString() {
3390 mandeep.dh 6975
      StringBuilder sb = new StringBuilder("getAgents_result(");
3028 mandeep.dh 6976
      boolean first = true;
6977
 
6978
      sb.append("success:");
6979
      if (this.success == null) {
6980
        sb.append("null");
6981
      } else {
6982
        sb.append(this.success);
6983
      }
6984
      first = false;
6985
      sb.append(")");
6986
      return sb.toString();
6987
    }
6988
 
3430 rajveer 6989
    public void validate() throws org.apache.thrift.TException {
3028 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
 
3028 mandeep.dh 7009
  }
7010
 
5287 amar.kumar 7011
  public static class getInactiveAgents_args implements org.apache.thrift.TBase<getInactiveAgents_args, getInactiveAgents_args._Fields>, java.io.Serializable, Cloneable   {
7012
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_args");
7013
 
7014
    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);
7015
 
7016
    private SearchFilter searchFilter; // required
7017
 
7018
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7019
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7020
      SEARCH_FILTER((short)1, "searchFilter");
7021
 
7022
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7023
 
7024
      static {
7025
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7026
          byName.put(field.getFieldName(), field);
7027
        }
7028
      }
7029
 
7030
      /**
7031
       * Find the _Fields constant that matches fieldId, or null if its not found.
7032
       */
7033
      public static _Fields findByThriftId(int fieldId) {
7034
        switch(fieldId) {
7035
          case 1: // SEARCH_FILTER
7036
            return SEARCH_FILTER;
7037
          default:
7038
            return null;
7039
        }
7040
      }
7041
 
7042
      /**
7043
       * Find the _Fields constant that matches fieldId, throwing an exception
7044
       * if it is not found.
7045
       */
7046
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7047
        _Fields fields = findByThriftId(fieldId);
7048
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7049
        return fields;
7050
      }
7051
 
7052
      /**
7053
       * Find the _Fields constant that matches name, or null if its not found.
7054
       */
7055
      public static _Fields findByName(String name) {
7056
        return byName.get(name);
7057
      }
7058
 
7059
      private final short _thriftId;
7060
      private final String _fieldName;
7061
 
7062
      _Fields(short thriftId, String fieldName) {
7063
        _thriftId = thriftId;
7064
        _fieldName = fieldName;
7065
      }
7066
 
7067
      public short getThriftFieldId() {
7068
        return _thriftId;
7069
      }
7070
 
7071
      public String getFieldName() {
7072
        return _fieldName;
7073
      }
7074
    }
7075
 
7076
    // isset id assignments
7077
 
7078
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7079
    static {
7080
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7081
      tmpMap.put(_Fields.SEARCH_FILTER, new org.apache.thrift.meta_data.FieldMetaData("searchFilter", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7082
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SearchFilter.class)));
7083
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7084
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_args.class, metaDataMap);
7085
    }
7086
 
7087
    public getInactiveAgents_args() {
7088
    }
7089
 
7090
    public getInactiveAgents_args(
7091
      SearchFilter searchFilter)
7092
    {
7093
      this();
7094
      this.searchFilter = searchFilter;
7095
    }
7096
 
7097
    /**
7098
     * Performs a deep copy on <i>other</i>.
7099
     */
7100
    public getInactiveAgents_args(getInactiveAgents_args other) {
7101
      if (other.isSetSearchFilter()) {
7102
        this.searchFilter = new SearchFilter(other.searchFilter);
7103
      }
7104
    }
7105
 
7106
    public getInactiveAgents_args deepCopy() {
7107
      return new getInactiveAgents_args(this);
7108
    }
7109
 
7110
    @Override
7111
    public void clear() {
7112
      this.searchFilter = null;
7113
    }
7114
 
7115
    public SearchFilter getSearchFilter() {
7116
      return this.searchFilter;
7117
    }
7118
 
7119
    public void setSearchFilter(SearchFilter searchFilter) {
7120
      this.searchFilter = searchFilter;
7121
    }
7122
 
7123
    public void unsetSearchFilter() {
7124
      this.searchFilter = null;
7125
    }
7126
 
7127
    /** Returns true if field searchFilter is set (has been assigned a value) and false otherwise */
7128
    public boolean isSetSearchFilter() {
7129
      return this.searchFilter != null;
7130
    }
7131
 
7132
    public void setSearchFilterIsSet(boolean value) {
7133
      if (!value) {
7134
        this.searchFilter = null;
7135
      }
7136
    }
7137
 
7138
    public void setFieldValue(_Fields field, Object value) {
7139
      switch (field) {
7140
      case SEARCH_FILTER:
7141
        if (value == null) {
7142
          unsetSearchFilter();
7143
        } else {
7144
          setSearchFilter((SearchFilter)value);
7145
        }
7146
        break;
7147
 
7148
      }
7149
    }
7150
 
7151
    public Object getFieldValue(_Fields field) {
7152
      switch (field) {
7153
      case SEARCH_FILTER:
7154
        return getSearchFilter();
7155
 
7156
      }
7157
      throw new IllegalStateException();
7158
    }
7159
 
7160
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7161
    public boolean isSet(_Fields field) {
7162
      if (field == null) {
7163
        throw new IllegalArgumentException();
7164
      }
7165
 
7166
      switch (field) {
7167
      case SEARCH_FILTER:
7168
        return isSetSearchFilter();
7169
      }
7170
      throw new IllegalStateException();
7171
    }
7172
 
7173
    @Override
7174
    public boolean equals(Object that) {
7175
      if (that == null)
7176
        return false;
7177
      if (that instanceof getInactiveAgents_args)
7178
        return this.equals((getInactiveAgents_args)that);
7179
      return false;
7180
    }
7181
 
7182
    public boolean equals(getInactiveAgents_args that) {
7183
      if (that == null)
7184
        return false;
7185
 
7186
      boolean this_present_searchFilter = true && this.isSetSearchFilter();
7187
      boolean that_present_searchFilter = true && that.isSetSearchFilter();
7188
      if (this_present_searchFilter || that_present_searchFilter) {
7189
        if (!(this_present_searchFilter && that_present_searchFilter))
7190
          return false;
7191
        if (!this.searchFilter.equals(that.searchFilter))
7192
          return false;
7193
      }
7194
 
7195
      return true;
7196
    }
7197
 
7198
    @Override
7199
    public int hashCode() {
7200
      return 0;
7201
    }
7202
 
7203
    public int compareTo(getInactiveAgents_args other) {
7204
      if (!getClass().equals(other.getClass())) {
7205
        return getClass().getName().compareTo(other.getClass().getName());
7206
      }
7207
 
7208
      int lastComparison = 0;
7209
      getInactiveAgents_args typedOther = (getInactiveAgents_args)other;
7210
 
7211
      lastComparison = Boolean.valueOf(isSetSearchFilter()).compareTo(typedOther.isSetSearchFilter());
7212
      if (lastComparison != 0) {
7213
        return lastComparison;
7214
      }
7215
      if (isSetSearchFilter()) {
7216
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.searchFilter, typedOther.searchFilter);
7217
        if (lastComparison != 0) {
7218
          return lastComparison;
7219
        }
7220
      }
7221
      return 0;
7222
    }
7223
 
7224
    public _Fields fieldForId(int fieldId) {
7225
      return _Fields.findByThriftId(fieldId);
7226
    }
7227
 
7228
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7229
      org.apache.thrift.protocol.TField field;
7230
      iprot.readStructBegin();
7231
      while (true)
7232
      {
7233
        field = iprot.readFieldBegin();
7234
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7235
          break;
7236
        }
7237
        switch (field.id) {
7238
          case 1: // SEARCH_FILTER
7239
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
7240
              this.searchFilter = new SearchFilter();
7241
              this.searchFilter.read(iprot);
7242
            } else { 
7243
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7244
            }
7245
            break;
7246
          default:
7247
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7248
        }
7249
        iprot.readFieldEnd();
7250
      }
7251
      iprot.readStructEnd();
7252
      validate();
7253
    }
7254
 
7255
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7256
      validate();
7257
 
7258
      oprot.writeStructBegin(STRUCT_DESC);
7259
      if (this.searchFilter != null) {
7260
        oprot.writeFieldBegin(SEARCH_FILTER_FIELD_DESC);
7261
        this.searchFilter.write(oprot);
7262
        oprot.writeFieldEnd();
7263
      }
7264
      oprot.writeFieldStop();
7265
      oprot.writeStructEnd();
7266
    }
7267
 
7268
    @Override
7269
    public String toString() {
7270
      StringBuilder sb = new StringBuilder("getInactiveAgents_args(");
7271
      boolean first = true;
7272
 
7273
      sb.append("searchFilter:");
7274
      if (this.searchFilter == null) {
7275
        sb.append("null");
7276
      } else {
7277
        sb.append(this.searchFilter);
7278
      }
7279
      first = false;
7280
      sb.append(")");
7281
      return sb.toString();
7282
    }
7283
 
7284
    public void validate() throws org.apache.thrift.TException {
7285
      // check for required fields
7286
    }
7287
 
7288
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7289
      try {
7290
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7291
      } catch (org.apache.thrift.TException te) {
7292
        throw new java.io.IOException(te);
7293
      }
7294
    }
7295
 
7296
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7297
      try {
7298
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7299
      } catch (org.apache.thrift.TException te) {
7300
        throw new java.io.IOException(te);
7301
      }
7302
    }
7303
 
7304
  }
7305
 
7306
  public static class getInactiveAgents_result implements org.apache.thrift.TBase<getInactiveAgents_result, getInactiveAgents_result._Fields>, java.io.Serializable, Cloneable   {
7307
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getInactiveAgents_result");
7308
 
7309
    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);
7310
 
7311
    private List<Agent> success; // required
7312
 
7313
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7314
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7315
      SUCCESS((short)0, "success");
7316
 
7317
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7318
 
7319
      static {
7320
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7321
          byName.put(field.getFieldName(), field);
7322
        }
7323
      }
7324
 
7325
      /**
7326
       * Find the _Fields constant that matches fieldId, or null if its not found.
7327
       */
7328
      public static _Fields findByThriftId(int fieldId) {
7329
        switch(fieldId) {
7330
          case 0: // SUCCESS
7331
            return SUCCESS;
7332
          default:
7333
            return null;
7334
        }
7335
      }
7336
 
7337
      /**
7338
       * Find the _Fields constant that matches fieldId, throwing an exception
7339
       * if it is not found.
7340
       */
7341
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7342
        _Fields fields = findByThriftId(fieldId);
7343
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7344
        return fields;
7345
      }
7346
 
7347
      /**
7348
       * Find the _Fields constant that matches name, or null if its not found.
7349
       */
7350
      public static _Fields findByName(String name) {
7351
        return byName.get(name);
7352
      }
7353
 
7354
      private final short _thriftId;
7355
      private final String _fieldName;
7356
 
7357
      _Fields(short thriftId, String fieldName) {
7358
        _thriftId = thriftId;
7359
        _fieldName = fieldName;
7360
      }
7361
 
7362
      public short getThriftFieldId() {
7363
        return _thriftId;
7364
      }
7365
 
7366
      public String getFieldName() {
7367
        return _fieldName;
7368
      }
7369
    }
7370
 
7371
    // isset id assignments
7372
 
7373
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7374
    static {
7375
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7376
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7377
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
7378
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class))));
7379
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7380
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getInactiveAgents_result.class, metaDataMap);
7381
    }
7382
 
7383
    public getInactiveAgents_result() {
7384
    }
7385
 
7386
    public getInactiveAgents_result(
7387
      List<Agent> success)
7388
    {
7389
      this();
7390
      this.success = success;
7391
    }
7392
 
7393
    /**
7394
     * Performs a deep copy on <i>other</i>.
7395
     */
7396
    public getInactiveAgents_result(getInactiveAgents_result other) {
7397
      if (other.isSetSuccess()) {
7398
        List<Agent> __this__success = new ArrayList<Agent>();
7399
        for (Agent other_element : other.success) {
7400
          __this__success.add(new Agent(other_element));
7401
        }
7402
        this.success = __this__success;
7403
      }
7404
    }
7405
 
7406
    public getInactiveAgents_result deepCopy() {
7407
      return new getInactiveAgents_result(this);
7408
    }
7409
 
7410
    @Override
7411
    public void clear() {
7412
      this.success = null;
7413
    }
7414
 
7415
    public int getSuccessSize() {
7416
      return (this.success == null) ? 0 : this.success.size();
7417
    }
7418
 
7419
    public java.util.Iterator<Agent> getSuccessIterator() {
7420
      return (this.success == null) ? null : this.success.iterator();
7421
    }
7422
 
7423
    public void addToSuccess(Agent elem) {
7424
      if (this.success == null) {
7425
        this.success = new ArrayList<Agent>();
7426
      }
7427
      this.success.add(elem);
7428
    }
7429
 
7430
    public List<Agent> getSuccess() {
7431
      return this.success;
7432
    }
7433
 
7434
    public void setSuccess(List<Agent> success) {
7435
      this.success = success;
7436
    }
7437
 
7438
    public void unsetSuccess() {
7439
      this.success = null;
7440
    }
7441
 
7442
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7443
    public boolean isSetSuccess() {
7444
      return this.success != null;
7445
    }
7446
 
7447
    public void setSuccessIsSet(boolean value) {
7448
      if (!value) {
7449
        this.success = null;
7450
      }
7451
    }
7452
 
7453
    public void setFieldValue(_Fields field, Object value) {
7454
      switch (field) {
7455
      case SUCCESS:
7456
        if (value == null) {
7457
          unsetSuccess();
7458
        } else {
7459
          setSuccess((List<Agent>)value);
7460
        }
7461
        break;
7462
 
7463
      }
7464
    }
7465
 
7466
    public Object getFieldValue(_Fields field) {
7467
      switch (field) {
7468
      case SUCCESS:
7469
        return getSuccess();
7470
 
7471
      }
7472
      throw new IllegalStateException();
7473
    }
7474
 
7475
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7476
    public boolean isSet(_Fields field) {
7477
      if (field == null) {
7478
        throw new IllegalArgumentException();
7479
      }
7480
 
7481
      switch (field) {
7482
      case SUCCESS:
7483
        return isSetSuccess();
7484
      }
7485
      throw new IllegalStateException();
7486
    }
7487
 
7488
    @Override
7489
    public boolean equals(Object that) {
7490
      if (that == null)
7491
        return false;
7492
      if (that instanceof getInactiveAgents_result)
7493
        return this.equals((getInactiveAgents_result)that);
7494
      return false;
7495
    }
7496
 
7497
    public boolean equals(getInactiveAgents_result that) {
7498
      if (that == null)
7499
        return false;
7500
 
7501
      boolean this_present_success = true && this.isSetSuccess();
7502
      boolean that_present_success = true && that.isSetSuccess();
7503
      if (this_present_success || that_present_success) {
7504
        if (!(this_present_success && that_present_success))
7505
          return false;
7506
        if (!this.success.equals(that.success))
7507
          return false;
7508
      }
7509
 
7510
      return true;
7511
    }
7512
 
7513
    @Override
7514
    public int hashCode() {
7515
      return 0;
7516
    }
7517
 
7518
    public int compareTo(getInactiveAgents_result other) {
7519
      if (!getClass().equals(other.getClass())) {
7520
        return getClass().getName().compareTo(other.getClass().getName());
7521
      }
7522
 
7523
      int lastComparison = 0;
7524
      getInactiveAgents_result typedOther = (getInactiveAgents_result)other;
7525
 
7526
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7527
      if (lastComparison != 0) {
7528
        return lastComparison;
7529
      }
7530
      if (isSetSuccess()) {
7531
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7532
        if (lastComparison != 0) {
7533
          return lastComparison;
7534
        }
7535
      }
7536
      return 0;
7537
    }
7538
 
7539
    public _Fields fieldForId(int fieldId) {
7540
      return _Fields.findByThriftId(fieldId);
7541
    }
7542
 
7543
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7544
      org.apache.thrift.protocol.TField field;
7545
      iprot.readStructBegin();
7546
      while (true)
7547
      {
7548
        field = iprot.readFieldBegin();
7549
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7550
          break;
7551
        }
7552
        switch (field.id) {
7553
          case 0: // SUCCESS
7554
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
7555
              {
7556
                org.apache.thrift.protocol.TList _list28 = iprot.readListBegin();
7557
                this.success = new ArrayList<Agent>(_list28.size);
7558
                for (int _i29 = 0; _i29 < _list28.size; ++_i29)
7559
                {
7560
                  Agent _elem30; // required
7561
                  _elem30 = new Agent();
7562
                  _elem30.read(iprot);
7563
                  this.success.add(_elem30);
7564
                }
7565
                iprot.readListEnd();
7566
              }
7567
            } else { 
7568
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7569
            }
7570
            break;
7571
          default:
7572
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7573
        }
7574
        iprot.readFieldEnd();
7575
      }
7576
      iprot.readStructEnd();
7577
      validate();
7578
    }
7579
 
7580
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7581
      oprot.writeStructBegin(STRUCT_DESC);
7582
 
7583
      if (this.isSetSuccess()) {
7584
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7585
        {
7586
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
7587
          for (Agent _iter31 : this.success)
7588
          {
7589
            _iter31.write(oprot);
7590
          }
7591
          oprot.writeListEnd();
7592
        }
7593
        oprot.writeFieldEnd();
7594
      }
7595
      oprot.writeFieldStop();
7596
      oprot.writeStructEnd();
7597
    }
7598
 
7599
    @Override
7600
    public String toString() {
7601
      StringBuilder sb = new StringBuilder("getInactiveAgents_result(");
7602
      boolean first = true;
7603
 
7604
      sb.append("success:");
7605
      if (this.success == null) {
7606
        sb.append("null");
7607
      } else {
7608
        sb.append(this.success);
7609
      }
7610
      first = false;
7611
      sb.append(")");
7612
      return sb.toString();
7613
    }
7614
 
7615
    public void validate() throws org.apache.thrift.TException {
7616
      // check for required fields
7617
    }
7618
 
7619
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
7620
      try {
7621
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
7622
      } catch (org.apache.thrift.TException te) {
7623
        throw new java.io.IOException(te);
7624
      }
7625
    }
7626
 
7627
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
7628
      try {
7629
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
7630
      } catch (org.apache.thrift.TException te) {
7631
        throw new java.io.IOException(te);
7632
      }
7633
    }
7634
 
7635
  }
7636
 
3430 rajveer 7637
  public static class updatePasswordForAgent_args implements org.apache.thrift.TBase<updatePasswordForAgent_args, updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable   {
7638
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_args");
3087 mandeep.dh 7639
 
3430 rajveer 7640
    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);
7641
    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 7642
 
3430 rajveer 7643
    private String agentEmailId; // required
7644
    private String password; // required
3087 mandeep.dh 7645
 
7646
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 7647
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 7648
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
7649
      PASSWORD((short)2, "password");
7650
 
7651
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7652
 
7653
      static {
7654
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7655
          byName.put(field.getFieldName(), field);
7656
        }
7657
      }
7658
 
7659
      /**
7660
       * Find the _Fields constant that matches fieldId, or null if its not found.
7661
       */
7662
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 7663
        switch(fieldId) {
7664
          case 1: // AGENT_EMAIL_ID
7665
            return AGENT_EMAIL_ID;
7666
          case 2: // PASSWORD
7667
            return PASSWORD;
7668
          default:
7669
            return null;
7670
        }
3087 mandeep.dh 7671
      }
7672
 
7673
      /**
7674
       * Find the _Fields constant that matches fieldId, throwing an exception
7675
       * if it is not found.
7676
       */
7677
      public static _Fields findByThriftIdOrThrow(int fieldId) {
7678
        _Fields fields = findByThriftId(fieldId);
7679
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
7680
        return fields;
7681
      }
7682
 
7683
      /**
7684
       * Find the _Fields constant that matches name, or null if its not found.
7685
       */
7686
      public static _Fields findByName(String name) {
7687
        return byName.get(name);
7688
      }
7689
 
7690
      private final short _thriftId;
7691
      private final String _fieldName;
7692
 
7693
      _Fields(short thriftId, String fieldName) {
7694
        _thriftId = thriftId;
7695
        _fieldName = fieldName;
7696
      }
7697
 
7698
      public short getThriftFieldId() {
7699
        return _thriftId;
7700
      }
7701
 
7702
      public String getFieldName() {
7703
        return _fieldName;
7704
      }
7705
    }
7706
 
7707
    // isset id assignments
7708
 
3430 rajveer 7709
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 7710
    static {
3430 rajveer 7711
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
7712
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7713
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7714
      tmpMap.put(_Fields.PASSWORD, new org.apache.thrift.meta_data.FieldMetaData("password", org.apache.thrift.TFieldRequirementType.DEFAULT, 
7715
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
7716
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7717
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
3087 mandeep.dh 7718
    }
7719
 
7720
    public updatePasswordForAgent_args() {
7721
    }
7722
 
7723
    public updatePasswordForAgent_args(
7724
      String agentEmailId,
7725
      String password)
7726
    {
7727
      this();
7728
      this.agentEmailId = agentEmailId;
7729
      this.password = password;
7730
    }
7731
 
7732
    /**
7733
     * Performs a deep copy on <i>other</i>.
7734
     */
7735
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
7736
      if (other.isSetAgentEmailId()) {
7737
        this.agentEmailId = other.agentEmailId;
7738
      }
7739
      if (other.isSetPassword()) {
7740
        this.password = other.password;
7741
      }
7742
    }
7743
 
7744
    public updatePasswordForAgent_args deepCopy() {
7745
      return new updatePasswordForAgent_args(this);
7746
    }
7747
 
3430 rajveer 7748
    @Override
7749
    public void clear() {
7750
      this.agentEmailId = null;
7751
      this.password = null;
3087 mandeep.dh 7752
    }
7753
 
7754
    public String getAgentEmailId() {
7755
      return this.agentEmailId;
7756
    }
7757
 
3430 rajveer 7758
    public void setAgentEmailId(String agentEmailId) {
3087 mandeep.dh 7759
      this.agentEmailId = agentEmailId;
7760
    }
7761
 
7762
    public void unsetAgentEmailId() {
7763
      this.agentEmailId = null;
7764
    }
7765
 
3430 rajveer 7766
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 7767
    public boolean isSetAgentEmailId() {
7768
      return this.agentEmailId != null;
7769
    }
7770
 
7771
    public void setAgentEmailIdIsSet(boolean value) {
7772
      if (!value) {
7773
        this.agentEmailId = null;
7774
      }
7775
    }
7776
 
7777
    public String getPassword() {
7778
      return this.password;
7779
    }
7780
 
3430 rajveer 7781
    public void setPassword(String password) {
3087 mandeep.dh 7782
      this.password = password;
7783
    }
7784
 
7785
    public void unsetPassword() {
7786
      this.password = null;
7787
    }
7788
 
3430 rajveer 7789
    /** Returns true if field password is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 7790
    public boolean isSetPassword() {
7791
      return this.password != null;
7792
    }
7793
 
7794
    public void setPasswordIsSet(boolean value) {
7795
      if (!value) {
7796
        this.password = null;
7797
      }
7798
    }
7799
 
7800
    public void setFieldValue(_Fields field, Object value) {
7801
      switch (field) {
7802
      case AGENT_EMAIL_ID:
7803
        if (value == null) {
7804
          unsetAgentEmailId();
7805
        } else {
7806
          setAgentEmailId((String)value);
7807
        }
7808
        break;
7809
 
7810
      case PASSWORD:
7811
        if (value == null) {
7812
          unsetPassword();
7813
        } else {
7814
          setPassword((String)value);
7815
        }
7816
        break;
7817
 
7818
      }
7819
    }
7820
 
7821
    public Object getFieldValue(_Fields field) {
7822
      switch (field) {
7823
      case AGENT_EMAIL_ID:
7824
        return getAgentEmailId();
7825
 
7826
      case PASSWORD:
7827
        return getPassword();
7828
 
7829
      }
7830
      throw new IllegalStateException();
7831
    }
7832
 
3430 rajveer 7833
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7834
    public boolean isSet(_Fields field) {
7835
      if (field == null) {
7836
        throw new IllegalArgumentException();
7837
      }
3087 mandeep.dh 7838
 
7839
      switch (field) {
7840
      case AGENT_EMAIL_ID:
7841
        return isSetAgentEmailId();
7842
      case PASSWORD:
7843
        return isSetPassword();
7844
      }
7845
      throw new IllegalStateException();
7846
    }
7847
 
7848
    @Override
7849
    public boolean equals(Object that) {
7850
      if (that == null)
7851
        return false;
7852
      if (that instanceof updatePasswordForAgent_args)
7853
        return this.equals((updatePasswordForAgent_args)that);
7854
      return false;
7855
    }
7856
 
7857
    public boolean equals(updatePasswordForAgent_args that) {
7858
      if (that == null)
7859
        return false;
7860
 
7861
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
7862
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
7863
      if (this_present_agentEmailId || that_present_agentEmailId) {
7864
        if (!(this_present_agentEmailId && that_present_agentEmailId))
7865
          return false;
7866
        if (!this.agentEmailId.equals(that.agentEmailId))
7867
          return false;
7868
      }
7869
 
7870
      boolean this_present_password = true && this.isSetPassword();
7871
      boolean that_present_password = true && that.isSetPassword();
7872
      if (this_present_password || that_present_password) {
7873
        if (!(this_present_password && that_present_password))
7874
          return false;
7875
        if (!this.password.equals(that.password))
7876
          return false;
7877
      }
7878
 
7879
      return true;
7880
    }
7881
 
7882
    @Override
7883
    public int hashCode() {
7884
      return 0;
7885
    }
7886
 
7887
    public int compareTo(updatePasswordForAgent_args other) {
7888
      if (!getClass().equals(other.getClass())) {
7889
        return getClass().getName().compareTo(other.getClass().getName());
7890
      }
7891
 
7892
      int lastComparison = 0;
7893
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
7894
 
3430 rajveer 7895
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
3087 mandeep.dh 7896
      if (lastComparison != 0) {
7897
        return lastComparison;
7898
      }
3430 rajveer 7899
      if (isSetAgentEmailId()) {
7900
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
7901
        if (lastComparison != 0) {
7902
          return lastComparison;
7903
        }
3087 mandeep.dh 7904
      }
3430 rajveer 7905
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(typedOther.isSetPassword());
3087 mandeep.dh 7906
      if (lastComparison != 0) {
7907
        return lastComparison;
7908
      }
3430 rajveer 7909
      if (isSetPassword()) {
7910
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.password, typedOther.password);
7911
        if (lastComparison != 0) {
7912
          return lastComparison;
7913
        }
3087 mandeep.dh 7914
      }
7915
      return 0;
7916
    }
7917
 
3430 rajveer 7918
    public _Fields fieldForId(int fieldId) {
7919
      return _Fields.findByThriftId(fieldId);
7920
    }
7921
 
7922
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7923
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 7924
      iprot.readStructBegin();
7925
      while (true)
7926
      {
7927
        field = iprot.readFieldBegin();
3430 rajveer 7928
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 7929
          break;
7930
        }
3430 rajveer 7931
        switch (field.id) {
7932
          case 1: // AGENT_EMAIL_ID
7933
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7934
              this.agentEmailId = iprot.readString();
7935
            } else { 
7936
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7937
            }
7938
            break;
7939
          case 2: // PASSWORD
7940
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7941
              this.password = iprot.readString();
7942
            } else { 
7943
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7944
            }
7945
            break;
7946
          default:
7947
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 7948
        }
3430 rajveer 7949
        iprot.readFieldEnd();
3087 mandeep.dh 7950
      }
7951
      iprot.readStructEnd();
7952
      validate();
7953
    }
7954
 
3430 rajveer 7955
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 7956
      validate();
7957
 
7958
      oprot.writeStructBegin(STRUCT_DESC);
7959
      if (this.agentEmailId != null) {
7960
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
7961
        oprot.writeString(this.agentEmailId);
7962
        oprot.writeFieldEnd();
7963
      }
7964
      if (this.password != null) {
7965
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
7966
        oprot.writeString(this.password);
7967
        oprot.writeFieldEnd();
7968
      }
7969
      oprot.writeFieldStop();
7970
      oprot.writeStructEnd();
7971
    }
7972
 
7973
    @Override
7974
    public String toString() {
7975
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
7976
      boolean first = true;
7977
 
7978
      sb.append("agentEmailId:");
7979
      if (this.agentEmailId == null) {
7980
        sb.append("null");
7981
      } else {
7982
        sb.append(this.agentEmailId);
7983
      }
7984
      first = false;
7985
      if (!first) sb.append(", ");
7986
      sb.append("password:");
7987
      if (this.password == null) {
7988
        sb.append("null");
7989
      } else {
7990
        sb.append(this.password);
7991
      }
7992
      first = false;
7993
      sb.append(")");
7994
      return sb.toString();
7995
    }
7996
 
3430 rajveer 7997
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 7998
      // check for required fields
7999
    }
8000
 
3430 rajveer 8001
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8002
      try {
8003
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8004
      } catch (org.apache.thrift.TException te) {
8005
        throw new java.io.IOException(te);
8006
      }
8007
    }
8008
 
8009
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8010
      try {
8011
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8012
      } catch (org.apache.thrift.TException te) {
8013
        throw new java.io.IOException(te);
8014
      }
8015
    }
8016
 
3087 mandeep.dh 8017
  }
8018
 
3430 rajveer 8019
  public static class updatePasswordForAgent_result implements org.apache.thrift.TBase<updatePasswordForAgent_result, updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable   {
8020
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updatePasswordForAgent_result");
3087 mandeep.dh 8021
 
8022
 
8023
 
8024
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8025
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8026
;
8027
 
8028
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8029
 
8030
      static {
8031
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8032
          byName.put(field.getFieldName(), field);
8033
        }
8034
      }
8035
 
8036
      /**
8037
       * Find the _Fields constant that matches fieldId, or null if its not found.
8038
       */
8039
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8040
        switch(fieldId) {
8041
          default:
8042
            return null;
8043
        }
3087 mandeep.dh 8044
      }
8045
 
8046
      /**
8047
       * Find the _Fields constant that matches fieldId, throwing an exception
8048
       * if it is not found.
8049
       */
8050
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8051
        _Fields fields = findByThriftId(fieldId);
8052
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8053
        return fields;
8054
      }
8055
 
8056
      /**
8057
       * Find the _Fields constant that matches name, or null if its not found.
8058
       */
8059
      public static _Fields findByName(String name) {
8060
        return byName.get(name);
8061
      }
8062
 
8063
      private final short _thriftId;
8064
      private final String _fieldName;
8065
 
8066
      _Fields(short thriftId, String fieldName) {
8067
        _thriftId = thriftId;
8068
        _fieldName = fieldName;
8069
      }
8070
 
8071
      public short getThriftFieldId() {
8072
        return _thriftId;
8073
      }
8074
 
8075
      public String getFieldName() {
8076
        return _fieldName;
8077
      }
8078
    }
3430 rajveer 8079
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8080
    static {
3430 rajveer 8081
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8082
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8083
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
3087 mandeep.dh 8084
    }
8085
 
8086
    public updatePasswordForAgent_result() {
8087
    }
8088
 
8089
    /**
8090
     * Performs a deep copy on <i>other</i>.
8091
     */
8092
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
8093
    }
8094
 
8095
    public updatePasswordForAgent_result deepCopy() {
8096
      return new updatePasswordForAgent_result(this);
8097
    }
8098
 
3430 rajveer 8099
    @Override
8100
    public void clear() {
3087 mandeep.dh 8101
    }
8102
 
8103
    public void setFieldValue(_Fields field, Object value) {
8104
      switch (field) {
8105
      }
8106
    }
8107
 
8108
    public Object getFieldValue(_Fields field) {
8109
      switch (field) {
8110
      }
8111
      throw new IllegalStateException();
8112
    }
8113
 
3430 rajveer 8114
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8115
    public boolean isSet(_Fields field) {
8116
      if (field == null) {
8117
        throw new IllegalArgumentException();
8118
      }
3087 mandeep.dh 8119
 
8120
      switch (field) {
8121
      }
8122
      throw new IllegalStateException();
8123
    }
8124
 
8125
    @Override
8126
    public boolean equals(Object that) {
8127
      if (that == null)
8128
        return false;
8129
      if (that instanceof updatePasswordForAgent_result)
8130
        return this.equals((updatePasswordForAgent_result)that);
8131
      return false;
8132
    }
8133
 
8134
    public boolean equals(updatePasswordForAgent_result that) {
8135
      if (that == null)
8136
        return false;
8137
 
8138
      return true;
8139
    }
8140
 
8141
    @Override
8142
    public int hashCode() {
8143
      return 0;
8144
    }
8145
 
8146
    public int compareTo(updatePasswordForAgent_result other) {
8147
      if (!getClass().equals(other.getClass())) {
8148
        return getClass().getName().compareTo(other.getClass().getName());
8149
      }
8150
 
8151
      int lastComparison = 0;
8152
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
8153
 
8154
      return 0;
8155
    }
8156
 
3430 rajveer 8157
    public _Fields fieldForId(int fieldId) {
8158
      return _Fields.findByThriftId(fieldId);
8159
    }
8160
 
8161
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8162
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8163
      iprot.readStructBegin();
8164
      while (true)
8165
      {
8166
        field = iprot.readFieldBegin();
3430 rajveer 8167
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8168
          break;
8169
        }
3430 rajveer 8170
        switch (field.id) {
8171
          default:
8172
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8173
        }
3430 rajveer 8174
        iprot.readFieldEnd();
3087 mandeep.dh 8175
      }
8176
      iprot.readStructEnd();
8177
      validate();
8178
    }
8179
 
3430 rajveer 8180
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8181
      oprot.writeStructBegin(STRUCT_DESC);
8182
 
8183
      oprot.writeFieldStop();
8184
      oprot.writeStructEnd();
8185
    }
8186
 
8187
    @Override
8188
    public String toString() {
8189
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
8190
      boolean first = true;
8191
 
8192
      sb.append(")");
8193
      return sb.toString();
8194
    }
8195
 
3430 rajveer 8196
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8197
      // check for required fields
8198
    }
8199
 
3430 rajveer 8200
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8201
      try {
8202
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8203
      } catch (org.apache.thrift.TException te) {
8204
        throw new java.io.IOException(te);
8205
      }
8206
    }
8207
 
8208
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8209
      try {
8210
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8211
      } catch (org.apache.thrift.TException te) {
8212
        throw new java.io.IOException(te);
8213
      }
8214
    }
8215
 
3087 mandeep.dh 8216
  }
8217
 
3430 rajveer 8218
  public static class getRoleNamesForAgent_args implements org.apache.thrift.TBase<getRoleNamesForAgent_args, getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable   {
8219
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_args");
3087 mandeep.dh 8220
 
3430 rajveer 8221
    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 8222
 
3430 rajveer 8223
    private String agentEmailId; // required
3087 mandeep.dh 8224
 
8225
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8226
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8227
      AGENT_EMAIL_ID((short)1, "agentEmailId");
8228
 
8229
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8230
 
8231
      static {
8232
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8233
          byName.put(field.getFieldName(), field);
8234
        }
8235
      }
8236
 
8237
      /**
8238
       * Find the _Fields constant that matches fieldId, or null if its not found.
8239
       */
8240
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8241
        switch(fieldId) {
8242
          case 1: // AGENT_EMAIL_ID
8243
            return AGENT_EMAIL_ID;
8244
          default:
8245
            return null;
8246
        }
3087 mandeep.dh 8247
      }
8248
 
8249
      /**
8250
       * Find the _Fields constant that matches fieldId, throwing an exception
8251
       * if it is not found.
8252
       */
8253
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8254
        _Fields fields = findByThriftId(fieldId);
8255
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8256
        return fields;
8257
      }
8258
 
8259
      /**
8260
       * Find the _Fields constant that matches name, or null if its not found.
8261
       */
8262
      public static _Fields findByName(String name) {
8263
        return byName.get(name);
8264
      }
8265
 
8266
      private final short _thriftId;
8267
      private final String _fieldName;
8268
 
8269
      _Fields(short thriftId, String fieldName) {
8270
        _thriftId = thriftId;
8271
        _fieldName = fieldName;
8272
      }
8273
 
8274
      public short getThriftFieldId() {
8275
        return _thriftId;
8276
      }
8277
 
8278
      public String getFieldName() {
8279
        return _fieldName;
8280
      }
8281
    }
8282
 
8283
    // isset id assignments
8284
 
3430 rajveer 8285
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8286
    static {
3430 rajveer 8287
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8288
      tmpMap.put(_Fields.AGENT_EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("agentEmailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8289
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8290
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8291
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
3087 mandeep.dh 8292
    }
8293
 
8294
    public getRoleNamesForAgent_args() {
8295
    }
8296
 
8297
    public getRoleNamesForAgent_args(
8298
      String agentEmailId)
8299
    {
8300
      this();
8301
      this.agentEmailId = agentEmailId;
8302
    }
8303
 
8304
    /**
8305
     * Performs a deep copy on <i>other</i>.
8306
     */
8307
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
8308
      if (other.isSetAgentEmailId()) {
8309
        this.agentEmailId = other.agentEmailId;
8310
      }
8311
    }
8312
 
8313
    public getRoleNamesForAgent_args deepCopy() {
8314
      return new getRoleNamesForAgent_args(this);
8315
    }
8316
 
3430 rajveer 8317
    @Override
8318
    public void clear() {
8319
      this.agentEmailId = null;
3087 mandeep.dh 8320
    }
8321
 
8322
    public String getAgentEmailId() {
8323
      return this.agentEmailId;
8324
    }
8325
 
3430 rajveer 8326
    public void setAgentEmailId(String agentEmailId) {
3087 mandeep.dh 8327
      this.agentEmailId = agentEmailId;
8328
    }
8329
 
8330
    public void unsetAgentEmailId() {
8331
      this.agentEmailId = null;
8332
    }
8333
 
3430 rajveer 8334
    /** Returns true if field agentEmailId is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8335
    public boolean isSetAgentEmailId() {
8336
      return this.agentEmailId != null;
8337
    }
8338
 
8339
    public void setAgentEmailIdIsSet(boolean value) {
8340
      if (!value) {
8341
        this.agentEmailId = null;
8342
      }
8343
    }
8344
 
8345
    public void setFieldValue(_Fields field, Object value) {
8346
      switch (field) {
8347
      case AGENT_EMAIL_ID:
8348
        if (value == null) {
8349
          unsetAgentEmailId();
8350
        } else {
8351
          setAgentEmailId((String)value);
8352
        }
8353
        break;
8354
 
8355
      }
8356
    }
8357
 
8358
    public Object getFieldValue(_Fields field) {
8359
      switch (field) {
8360
      case AGENT_EMAIL_ID:
8361
        return getAgentEmailId();
8362
 
8363
      }
8364
      throw new IllegalStateException();
8365
    }
8366
 
3430 rajveer 8367
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8368
    public boolean isSet(_Fields field) {
8369
      if (field == null) {
8370
        throw new IllegalArgumentException();
8371
      }
3087 mandeep.dh 8372
 
8373
      switch (field) {
8374
      case AGENT_EMAIL_ID:
8375
        return isSetAgentEmailId();
8376
      }
8377
      throw new IllegalStateException();
8378
    }
8379
 
8380
    @Override
8381
    public boolean equals(Object that) {
8382
      if (that == null)
8383
        return false;
8384
      if (that instanceof getRoleNamesForAgent_args)
8385
        return this.equals((getRoleNamesForAgent_args)that);
8386
      return false;
8387
    }
8388
 
8389
    public boolean equals(getRoleNamesForAgent_args that) {
8390
      if (that == null)
8391
        return false;
8392
 
8393
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
8394
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
8395
      if (this_present_agentEmailId || that_present_agentEmailId) {
8396
        if (!(this_present_agentEmailId && that_present_agentEmailId))
8397
          return false;
8398
        if (!this.agentEmailId.equals(that.agentEmailId))
8399
          return false;
8400
      }
8401
 
8402
      return true;
8403
    }
8404
 
8405
    @Override
8406
    public int hashCode() {
8407
      return 0;
8408
    }
8409
 
8410
    public int compareTo(getRoleNamesForAgent_args other) {
8411
      if (!getClass().equals(other.getClass())) {
8412
        return getClass().getName().compareTo(other.getClass().getName());
8413
      }
8414
 
8415
      int lastComparison = 0;
8416
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
8417
 
3430 rajveer 8418
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(typedOther.isSetAgentEmailId());
3087 mandeep.dh 8419
      if (lastComparison != 0) {
8420
        return lastComparison;
8421
      }
3430 rajveer 8422
      if (isSetAgentEmailId()) {
8423
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentEmailId, typedOther.agentEmailId);
8424
        if (lastComparison != 0) {
8425
          return lastComparison;
8426
        }
3087 mandeep.dh 8427
      }
8428
      return 0;
8429
    }
8430
 
3430 rajveer 8431
    public _Fields fieldForId(int fieldId) {
8432
      return _Fields.findByThriftId(fieldId);
8433
    }
8434
 
8435
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8436
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8437
      iprot.readStructBegin();
8438
      while (true)
8439
      {
8440
        field = iprot.readFieldBegin();
3430 rajveer 8441
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8442
          break;
8443
        }
3430 rajveer 8444
        switch (field.id) {
8445
          case 1: // AGENT_EMAIL_ID
8446
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
8447
              this.agentEmailId = iprot.readString();
8448
            } else { 
8449
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8450
            }
8451
            break;
8452
          default:
8453
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8454
        }
3430 rajveer 8455
        iprot.readFieldEnd();
3087 mandeep.dh 8456
      }
8457
      iprot.readStructEnd();
8458
      validate();
8459
    }
8460
 
3430 rajveer 8461
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8462
      validate();
8463
 
8464
      oprot.writeStructBegin(STRUCT_DESC);
8465
      if (this.agentEmailId != null) {
8466
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
8467
        oprot.writeString(this.agentEmailId);
8468
        oprot.writeFieldEnd();
8469
      }
8470
      oprot.writeFieldStop();
8471
      oprot.writeStructEnd();
8472
    }
8473
 
8474
    @Override
8475
    public String toString() {
8476
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
8477
      boolean first = true;
8478
 
8479
      sb.append("agentEmailId:");
8480
      if (this.agentEmailId == null) {
8481
        sb.append("null");
8482
      } else {
8483
        sb.append(this.agentEmailId);
8484
      }
8485
      first = false;
8486
      sb.append(")");
8487
      return sb.toString();
8488
    }
8489
 
3430 rajveer 8490
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8491
      // check for required fields
8492
    }
8493
 
3430 rajveer 8494
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8495
      try {
8496
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8497
      } catch (org.apache.thrift.TException te) {
8498
        throw new java.io.IOException(te);
8499
      }
8500
    }
8501
 
8502
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8503
      try {
8504
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8505
      } catch (org.apache.thrift.TException te) {
8506
        throw new java.io.IOException(te);
8507
      }
8508
    }
8509
 
3087 mandeep.dh 8510
  }
8511
 
3430 rajveer 8512
  public static class getRoleNamesForAgent_result implements org.apache.thrift.TBase<getRoleNamesForAgent_result, getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable   {
8513
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getRoleNamesForAgent_result");
3087 mandeep.dh 8514
 
3430 rajveer 8515
    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 8516
 
3430 rajveer 8517
    private List<String> success; // required
3087 mandeep.dh 8518
 
8519
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8520
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8521
      SUCCESS((short)0, "success");
8522
 
8523
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8524
 
8525
      static {
8526
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8527
          byName.put(field.getFieldName(), field);
8528
        }
8529
      }
8530
 
8531
      /**
8532
       * Find the _Fields constant that matches fieldId, or null if its not found.
8533
       */
8534
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8535
        switch(fieldId) {
8536
          case 0: // SUCCESS
8537
            return SUCCESS;
8538
          default:
8539
            return null;
8540
        }
3087 mandeep.dh 8541
      }
8542
 
8543
      /**
8544
       * Find the _Fields constant that matches fieldId, throwing an exception
8545
       * if it is not found.
8546
       */
8547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8548
        _Fields fields = findByThriftId(fieldId);
8549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8550
        return fields;
8551
      }
8552
 
8553
      /**
8554
       * Find the _Fields constant that matches name, or null if its not found.
8555
       */
8556
      public static _Fields findByName(String name) {
8557
        return byName.get(name);
8558
      }
8559
 
8560
      private final short _thriftId;
8561
      private final String _fieldName;
8562
 
8563
      _Fields(short thriftId, String fieldName) {
8564
        _thriftId = thriftId;
8565
        _fieldName = fieldName;
8566
      }
8567
 
8568
      public short getThriftFieldId() {
8569
        return _thriftId;
8570
      }
8571
 
8572
      public String getFieldName() {
8573
        return _fieldName;
8574
      }
8575
    }
8576
 
8577
    // isset id assignments
8578
 
3430 rajveer 8579
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8580
    static {
3430 rajveer 8581
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8582
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8583
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
8584
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
8585
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8586
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
3087 mandeep.dh 8587
    }
8588
 
8589
    public getRoleNamesForAgent_result() {
8590
    }
8591
 
8592
    public getRoleNamesForAgent_result(
8593
      List<String> success)
8594
    {
8595
      this();
8596
      this.success = success;
8597
    }
8598
 
8599
    /**
8600
     * Performs a deep copy on <i>other</i>.
8601
     */
8602
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
8603
      if (other.isSetSuccess()) {
8604
        List<String> __this__success = new ArrayList<String>();
8605
        for (String other_element : other.success) {
8606
          __this__success.add(other_element);
8607
        }
8608
        this.success = __this__success;
8609
      }
8610
    }
8611
 
8612
    public getRoleNamesForAgent_result deepCopy() {
8613
      return new getRoleNamesForAgent_result(this);
8614
    }
8615
 
3430 rajveer 8616
    @Override
8617
    public void clear() {
8618
      this.success = null;
3087 mandeep.dh 8619
    }
8620
 
8621
    public int getSuccessSize() {
8622
      return (this.success == null) ? 0 : this.success.size();
8623
    }
8624
 
8625
    public java.util.Iterator<String> getSuccessIterator() {
8626
      return (this.success == null) ? null : this.success.iterator();
8627
    }
8628
 
8629
    public void addToSuccess(String elem) {
8630
      if (this.success == null) {
8631
        this.success = new ArrayList<String>();
8632
      }
8633
      this.success.add(elem);
8634
    }
8635
 
8636
    public List<String> getSuccess() {
8637
      return this.success;
8638
    }
8639
 
3430 rajveer 8640
    public void setSuccess(List<String> success) {
3087 mandeep.dh 8641
      this.success = success;
8642
    }
8643
 
8644
    public void unsetSuccess() {
8645
      this.success = null;
8646
    }
8647
 
3430 rajveer 8648
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8649
    public boolean isSetSuccess() {
8650
      return this.success != null;
8651
    }
8652
 
8653
    public void setSuccessIsSet(boolean value) {
8654
      if (!value) {
8655
        this.success = null;
8656
      }
8657
    }
8658
 
8659
    public void setFieldValue(_Fields field, Object value) {
8660
      switch (field) {
8661
      case SUCCESS:
8662
        if (value == null) {
8663
          unsetSuccess();
8664
        } else {
8665
          setSuccess((List<String>)value);
8666
        }
8667
        break;
8668
 
8669
      }
8670
    }
8671
 
8672
    public Object getFieldValue(_Fields field) {
8673
      switch (field) {
8674
      case SUCCESS:
8675
        return getSuccess();
8676
 
8677
      }
8678
      throw new IllegalStateException();
8679
    }
8680
 
3430 rajveer 8681
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8682
    public boolean isSet(_Fields field) {
8683
      if (field == null) {
8684
        throw new IllegalArgumentException();
8685
      }
3087 mandeep.dh 8686
 
8687
      switch (field) {
8688
      case SUCCESS:
8689
        return isSetSuccess();
8690
      }
8691
      throw new IllegalStateException();
8692
    }
8693
 
8694
    @Override
8695
    public boolean equals(Object that) {
8696
      if (that == null)
8697
        return false;
8698
      if (that instanceof getRoleNamesForAgent_result)
8699
        return this.equals((getRoleNamesForAgent_result)that);
8700
      return false;
8701
    }
8702
 
8703
    public boolean equals(getRoleNamesForAgent_result that) {
8704
      if (that == null)
8705
        return false;
8706
 
8707
      boolean this_present_success = true && this.isSetSuccess();
8708
      boolean that_present_success = true && that.isSetSuccess();
8709
      if (this_present_success || that_present_success) {
8710
        if (!(this_present_success && that_present_success))
8711
          return false;
8712
        if (!this.success.equals(that.success))
8713
          return false;
8714
      }
8715
 
8716
      return true;
8717
    }
8718
 
8719
    @Override
8720
    public int hashCode() {
8721
      return 0;
8722
    }
8723
 
8724
    public int compareTo(getRoleNamesForAgent_result other) {
8725
      if (!getClass().equals(other.getClass())) {
8726
        return getClass().getName().compareTo(other.getClass().getName());
8727
      }
8728
 
8729
      int lastComparison = 0;
8730
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
8731
 
3430 rajveer 8732
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 8733
      if (lastComparison != 0) {
8734
        return lastComparison;
8735
      }
3430 rajveer 8736
      if (isSetSuccess()) {
8737
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
8738
        if (lastComparison != 0) {
8739
          return lastComparison;
8740
        }
3087 mandeep.dh 8741
      }
8742
      return 0;
8743
    }
8744
 
3430 rajveer 8745
    public _Fields fieldForId(int fieldId) {
8746
      return _Fields.findByThriftId(fieldId);
8747
    }
8748
 
8749
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
8750
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 8751
      iprot.readStructBegin();
8752
      while (true)
8753
      {
8754
        field = iprot.readFieldBegin();
3430 rajveer 8755
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 8756
          break;
8757
        }
3430 rajveer 8758
        switch (field.id) {
8759
          case 0: // SUCCESS
8760
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
8761
              {
5287 amar.kumar 8762
                org.apache.thrift.protocol.TList _list32 = iprot.readListBegin();
8763
                this.success = new ArrayList<String>(_list32.size);
8764
                for (int _i33 = 0; _i33 < _list32.size; ++_i33)
3087 mandeep.dh 8765
                {
5287 amar.kumar 8766
                  String _elem34; // required
8767
                  _elem34 = iprot.readString();
8768
                  this.success.add(_elem34);
3087 mandeep.dh 8769
                }
3430 rajveer 8770
                iprot.readListEnd();
3087 mandeep.dh 8771
              }
3430 rajveer 8772
            } else { 
8773
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
8774
            }
8775
            break;
8776
          default:
8777
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 8778
        }
3430 rajveer 8779
        iprot.readFieldEnd();
3087 mandeep.dh 8780
      }
8781
      iprot.readStructEnd();
8782
      validate();
8783
    }
8784
 
3430 rajveer 8785
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 8786
      oprot.writeStructBegin(STRUCT_DESC);
8787
 
8788
      if (this.isSetSuccess()) {
8789
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8790
        {
3430 rajveer 8791
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5287 amar.kumar 8792
          for (String _iter35 : this.success)
3087 mandeep.dh 8793
          {
5287 amar.kumar 8794
            oprot.writeString(_iter35);
3087 mandeep.dh 8795
          }
8796
          oprot.writeListEnd();
8797
        }
8798
        oprot.writeFieldEnd();
8799
      }
8800
      oprot.writeFieldStop();
8801
      oprot.writeStructEnd();
8802
    }
8803
 
8804
    @Override
8805
    public String toString() {
8806
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
8807
      boolean first = true;
8808
 
8809
      sb.append("success:");
8810
      if (this.success == null) {
8811
        sb.append("null");
8812
      } else {
8813
        sb.append(this.success);
8814
      }
8815
      first = false;
8816
      sb.append(")");
8817
      return sb.toString();
8818
    }
8819
 
3430 rajveer 8820
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 8821
      // check for required fields
8822
    }
8823
 
3430 rajveer 8824
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
8825
      try {
8826
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
8827
      } catch (org.apache.thrift.TException te) {
8828
        throw new java.io.IOException(te);
8829
      }
8830
    }
8831
 
8832
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
8833
      try {
8834
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
8835
      } catch (org.apache.thrift.TException te) {
8836
        throw new java.io.IOException(te);
8837
      }
8838
    }
8839
 
3087 mandeep.dh 8840
  }
8841
 
3430 rajveer 8842
  public static class getPermissionsForRoleName_args implements org.apache.thrift.TBase<getPermissionsForRoleName_args, getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable   {
8843
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_args");
3087 mandeep.dh 8844
 
3430 rajveer 8845
    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 8846
 
3430 rajveer 8847
    private String roleName; // required
3087 mandeep.dh 8848
 
8849
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 8850
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 8851
      ROLE_NAME((short)1, "roleName");
8852
 
8853
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
8854
 
8855
      static {
8856
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
8857
          byName.put(field.getFieldName(), field);
8858
        }
8859
      }
8860
 
8861
      /**
8862
       * Find the _Fields constant that matches fieldId, or null if its not found.
8863
       */
8864
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 8865
        switch(fieldId) {
8866
          case 1: // ROLE_NAME
8867
            return ROLE_NAME;
8868
          default:
8869
            return null;
8870
        }
3087 mandeep.dh 8871
      }
8872
 
8873
      /**
8874
       * Find the _Fields constant that matches fieldId, throwing an exception
8875
       * if it is not found.
8876
       */
8877
      public static _Fields findByThriftIdOrThrow(int fieldId) {
8878
        _Fields fields = findByThriftId(fieldId);
8879
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
8880
        return fields;
8881
      }
8882
 
8883
      /**
8884
       * Find the _Fields constant that matches name, or null if its not found.
8885
       */
8886
      public static _Fields findByName(String name) {
8887
        return byName.get(name);
8888
      }
8889
 
8890
      private final short _thriftId;
8891
      private final String _fieldName;
8892
 
8893
      _Fields(short thriftId, String fieldName) {
8894
        _thriftId = thriftId;
8895
        _fieldName = fieldName;
8896
      }
8897
 
8898
      public short getThriftFieldId() {
8899
        return _thriftId;
8900
      }
8901
 
8902
      public String getFieldName() {
8903
        return _fieldName;
8904
      }
8905
    }
8906
 
8907
    // isset id assignments
8908
 
3430 rajveer 8909
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 8910
    static {
3430 rajveer 8911
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
8912
      tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
8913
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
8914
      metaDataMap = Collections.unmodifiableMap(tmpMap);
8915
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
3087 mandeep.dh 8916
    }
8917
 
8918
    public getPermissionsForRoleName_args() {
8919
    }
8920
 
8921
    public getPermissionsForRoleName_args(
8922
      String roleName)
8923
    {
8924
      this();
8925
      this.roleName = roleName;
8926
    }
8927
 
8928
    /**
8929
     * Performs a deep copy on <i>other</i>.
8930
     */
8931
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
8932
      if (other.isSetRoleName()) {
8933
        this.roleName = other.roleName;
8934
      }
8935
    }
8936
 
8937
    public getPermissionsForRoleName_args deepCopy() {
8938
      return new getPermissionsForRoleName_args(this);
8939
    }
8940
 
3430 rajveer 8941
    @Override
8942
    public void clear() {
8943
      this.roleName = null;
3087 mandeep.dh 8944
    }
8945
 
8946
    public String getRoleName() {
8947
      return this.roleName;
8948
    }
8949
 
3430 rajveer 8950
    public void setRoleName(String roleName) {
3087 mandeep.dh 8951
      this.roleName = roleName;
8952
    }
8953
 
8954
    public void unsetRoleName() {
8955
      this.roleName = null;
8956
    }
8957
 
3430 rajveer 8958
    /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 8959
    public boolean isSetRoleName() {
8960
      return this.roleName != null;
8961
    }
8962
 
8963
    public void setRoleNameIsSet(boolean value) {
8964
      if (!value) {
8965
        this.roleName = null;
8966
      }
8967
    }
8968
 
8969
    public void setFieldValue(_Fields field, Object value) {
8970
      switch (field) {
8971
      case ROLE_NAME:
8972
        if (value == null) {
8973
          unsetRoleName();
8974
        } else {
8975
          setRoleName((String)value);
8976
        }
8977
        break;
8978
 
8979
      }
8980
    }
8981
 
8982
    public Object getFieldValue(_Fields field) {
8983
      switch (field) {
8984
      case ROLE_NAME:
8985
        return getRoleName();
8986
 
8987
      }
8988
      throw new IllegalStateException();
8989
    }
8990
 
3430 rajveer 8991
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
8992
    public boolean isSet(_Fields field) {
8993
      if (field == null) {
8994
        throw new IllegalArgumentException();
8995
      }
3087 mandeep.dh 8996
 
8997
      switch (field) {
8998
      case ROLE_NAME:
8999
        return isSetRoleName();
9000
      }
9001
      throw new IllegalStateException();
9002
    }
9003
 
9004
    @Override
9005
    public boolean equals(Object that) {
9006
      if (that == null)
9007
        return false;
9008
      if (that instanceof getPermissionsForRoleName_args)
9009
        return this.equals((getPermissionsForRoleName_args)that);
9010
      return false;
9011
    }
9012
 
9013
    public boolean equals(getPermissionsForRoleName_args that) {
9014
      if (that == null)
9015
        return false;
9016
 
9017
      boolean this_present_roleName = true && this.isSetRoleName();
9018
      boolean that_present_roleName = true && that.isSetRoleName();
9019
      if (this_present_roleName || that_present_roleName) {
9020
        if (!(this_present_roleName && that_present_roleName))
9021
          return false;
9022
        if (!this.roleName.equals(that.roleName))
9023
          return false;
9024
      }
9025
 
9026
      return true;
9027
    }
9028
 
9029
    @Override
9030
    public int hashCode() {
9031
      return 0;
9032
    }
9033
 
9034
    public int compareTo(getPermissionsForRoleName_args other) {
9035
      if (!getClass().equals(other.getClass())) {
9036
        return getClass().getName().compareTo(other.getClass().getName());
9037
      }
9038
 
9039
      int lastComparison = 0;
9040
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
9041
 
3430 rajveer 9042
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName());
3087 mandeep.dh 9043
      if (lastComparison != 0) {
9044
        return lastComparison;
9045
      }
3430 rajveer 9046
      if (isSetRoleName()) {
9047
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName);
9048
        if (lastComparison != 0) {
9049
          return lastComparison;
9050
        }
3087 mandeep.dh 9051
      }
9052
      return 0;
9053
    }
9054
 
3430 rajveer 9055
    public _Fields fieldForId(int fieldId) {
9056
      return _Fields.findByThriftId(fieldId);
9057
    }
9058
 
9059
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9060
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 9061
      iprot.readStructBegin();
9062
      while (true)
9063
      {
9064
        field = iprot.readFieldBegin();
3430 rajveer 9065
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 9066
          break;
9067
        }
3430 rajveer 9068
        switch (field.id) {
9069
          case 1: // ROLE_NAME
9070
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
9071
              this.roleName = iprot.readString();
9072
            } else { 
9073
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9074
            }
9075
            break;
9076
          default:
9077
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 9078
        }
3430 rajveer 9079
        iprot.readFieldEnd();
3087 mandeep.dh 9080
      }
9081
      iprot.readStructEnd();
9082
      validate();
9083
    }
9084
 
3430 rajveer 9085
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 9086
      validate();
9087
 
9088
      oprot.writeStructBegin(STRUCT_DESC);
9089
      if (this.roleName != null) {
9090
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
9091
        oprot.writeString(this.roleName);
9092
        oprot.writeFieldEnd();
9093
      }
9094
      oprot.writeFieldStop();
9095
      oprot.writeStructEnd();
9096
    }
9097
 
9098
    @Override
9099
    public String toString() {
9100
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
9101
      boolean first = true;
9102
 
9103
      sb.append("roleName:");
9104
      if (this.roleName == null) {
9105
        sb.append("null");
9106
      } else {
9107
        sb.append(this.roleName);
9108
      }
9109
      first = false;
9110
      sb.append(")");
9111
      return sb.toString();
9112
    }
9113
 
3430 rajveer 9114
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 9115
      // check for required fields
9116
    }
9117
 
3430 rajveer 9118
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9119
      try {
9120
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9121
      } catch (org.apache.thrift.TException te) {
9122
        throw new java.io.IOException(te);
9123
      }
9124
    }
9125
 
9126
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9127
      try {
9128
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9129
      } catch (org.apache.thrift.TException te) {
9130
        throw new java.io.IOException(te);
9131
      }
9132
    }
9133
 
3087 mandeep.dh 9134
  }
9135
 
3430 rajveer 9136
  public static class getPermissionsForRoleName_result implements org.apache.thrift.TBase<getPermissionsForRoleName_result, getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable   {
9137
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPermissionsForRoleName_result");
3087 mandeep.dh 9138
 
3430 rajveer 9139
    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 9140
 
3430 rajveer 9141
    private List<String> success; // required
3087 mandeep.dh 9142
 
9143
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9144
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3087 mandeep.dh 9145
      SUCCESS((short)0, "success");
9146
 
9147
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9148
 
9149
      static {
9150
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9151
          byName.put(field.getFieldName(), field);
9152
        }
9153
      }
9154
 
9155
      /**
9156
       * Find the _Fields constant that matches fieldId, or null if its not found.
9157
       */
9158
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9159
        switch(fieldId) {
9160
          case 0: // SUCCESS
9161
            return SUCCESS;
9162
          default:
9163
            return null;
9164
        }
3087 mandeep.dh 9165
      }
9166
 
9167
      /**
9168
       * Find the _Fields constant that matches fieldId, throwing an exception
9169
       * if it is not found.
9170
       */
9171
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9172
        _Fields fields = findByThriftId(fieldId);
9173
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9174
        return fields;
9175
      }
9176
 
9177
      /**
9178
       * Find the _Fields constant that matches name, or null if its not found.
9179
       */
9180
      public static _Fields findByName(String name) {
9181
        return byName.get(name);
9182
      }
9183
 
9184
      private final short _thriftId;
9185
      private final String _fieldName;
9186
 
9187
      _Fields(short thriftId, String fieldName) {
9188
        _thriftId = thriftId;
9189
        _fieldName = fieldName;
9190
      }
9191
 
9192
      public short getThriftFieldId() {
9193
        return _thriftId;
9194
      }
9195
 
9196
      public String getFieldName() {
9197
        return _fieldName;
9198
      }
9199
    }
9200
 
9201
    // isset id assignments
9202
 
3430 rajveer 9203
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3087 mandeep.dh 9204
    static {
3430 rajveer 9205
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9206
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9207
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
9208
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
9209
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9210
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
3087 mandeep.dh 9211
    }
9212
 
9213
    public getPermissionsForRoleName_result() {
9214
    }
9215
 
9216
    public getPermissionsForRoleName_result(
9217
      List<String> success)
9218
    {
9219
      this();
9220
      this.success = success;
9221
    }
9222
 
9223
    /**
9224
     * Performs a deep copy on <i>other</i>.
9225
     */
9226
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
9227
      if (other.isSetSuccess()) {
9228
        List<String> __this__success = new ArrayList<String>();
9229
        for (String other_element : other.success) {
9230
          __this__success.add(other_element);
9231
        }
9232
        this.success = __this__success;
9233
      }
9234
    }
9235
 
9236
    public getPermissionsForRoleName_result deepCopy() {
9237
      return new getPermissionsForRoleName_result(this);
9238
    }
9239
 
3430 rajveer 9240
    @Override
9241
    public void clear() {
9242
      this.success = null;
3087 mandeep.dh 9243
    }
9244
 
9245
    public int getSuccessSize() {
9246
      return (this.success == null) ? 0 : this.success.size();
9247
    }
9248
 
9249
    public java.util.Iterator<String> getSuccessIterator() {
9250
      return (this.success == null) ? null : this.success.iterator();
9251
    }
9252
 
9253
    public void addToSuccess(String elem) {
9254
      if (this.success == null) {
9255
        this.success = new ArrayList<String>();
9256
      }
9257
      this.success.add(elem);
9258
    }
9259
 
9260
    public List<String> getSuccess() {
9261
      return this.success;
9262
    }
9263
 
3430 rajveer 9264
    public void setSuccess(List<String> success) {
3087 mandeep.dh 9265
      this.success = success;
9266
    }
9267
 
9268
    public void unsetSuccess() {
9269
      this.success = null;
9270
    }
9271
 
3430 rajveer 9272
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3087 mandeep.dh 9273
    public boolean isSetSuccess() {
9274
      return this.success != null;
9275
    }
9276
 
9277
    public void setSuccessIsSet(boolean value) {
9278
      if (!value) {
9279
        this.success = null;
9280
      }
9281
    }
9282
 
9283
    public void setFieldValue(_Fields field, Object value) {
9284
      switch (field) {
9285
      case SUCCESS:
9286
        if (value == null) {
9287
          unsetSuccess();
9288
        } else {
9289
          setSuccess((List<String>)value);
9290
        }
9291
        break;
9292
 
9293
      }
9294
    }
9295
 
9296
    public Object getFieldValue(_Fields field) {
9297
      switch (field) {
9298
      case SUCCESS:
9299
        return getSuccess();
9300
 
9301
      }
9302
      throw new IllegalStateException();
9303
    }
9304
 
3430 rajveer 9305
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9306
    public boolean isSet(_Fields field) {
9307
      if (field == null) {
9308
        throw new IllegalArgumentException();
9309
      }
3087 mandeep.dh 9310
 
9311
      switch (field) {
9312
      case SUCCESS:
9313
        return isSetSuccess();
9314
      }
9315
      throw new IllegalStateException();
9316
    }
9317
 
9318
    @Override
9319
    public boolean equals(Object that) {
9320
      if (that == null)
9321
        return false;
9322
      if (that instanceof getPermissionsForRoleName_result)
9323
        return this.equals((getPermissionsForRoleName_result)that);
9324
      return false;
9325
    }
9326
 
9327
    public boolean equals(getPermissionsForRoleName_result that) {
9328
      if (that == null)
9329
        return false;
9330
 
9331
      boolean this_present_success = true && this.isSetSuccess();
9332
      boolean that_present_success = true && that.isSetSuccess();
9333
      if (this_present_success || that_present_success) {
9334
        if (!(this_present_success && that_present_success))
9335
          return false;
9336
        if (!this.success.equals(that.success))
9337
          return false;
9338
      }
9339
 
9340
      return true;
9341
    }
9342
 
9343
    @Override
9344
    public int hashCode() {
9345
      return 0;
9346
    }
9347
 
9348
    public int compareTo(getPermissionsForRoleName_result other) {
9349
      if (!getClass().equals(other.getClass())) {
9350
        return getClass().getName().compareTo(other.getClass().getName());
9351
      }
9352
 
9353
      int lastComparison = 0;
9354
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
9355
 
3430 rajveer 9356
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3087 mandeep.dh 9357
      if (lastComparison != 0) {
9358
        return lastComparison;
9359
      }
3430 rajveer 9360
      if (isSetSuccess()) {
9361
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9362
        if (lastComparison != 0) {
9363
          return lastComparison;
9364
        }
3087 mandeep.dh 9365
      }
9366
      return 0;
9367
    }
9368
 
3430 rajveer 9369
    public _Fields fieldForId(int fieldId) {
9370
      return _Fields.findByThriftId(fieldId);
9371
    }
9372
 
9373
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9374
      org.apache.thrift.protocol.TField field;
3087 mandeep.dh 9375
      iprot.readStructBegin();
9376
      while (true)
9377
      {
9378
        field = iprot.readFieldBegin();
3430 rajveer 9379
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3087 mandeep.dh 9380
          break;
9381
        }
3430 rajveer 9382
        switch (field.id) {
9383
          case 0: // SUCCESS
9384
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
9385
              {
5287 amar.kumar 9386
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
9387
                this.success = new ArrayList<String>(_list36.size);
9388
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
3087 mandeep.dh 9389
                {
5287 amar.kumar 9390
                  String _elem38; // required
9391
                  _elem38 = iprot.readString();
9392
                  this.success.add(_elem38);
3087 mandeep.dh 9393
                }
3430 rajveer 9394
                iprot.readListEnd();
3087 mandeep.dh 9395
              }
3430 rajveer 9396
            } else { 
9397
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9398
            }
9399
            break;
9400
          default:
9401
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3087 mandeep.dh 9402
        }
3430 rajveer 9403
        iprot.readFieldEnd();
3087 mandeep.dh 9404
      }
9405
      iprot.readStructEnd();
9406
      validate();
9407
    }
9408
 
3430 rajveer 9409
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3087 mandeep.dh 9410
      oprot.writeStructBegin(STRUCT_DESC);
9411
 
9412
      if (this.isSetSuccess()) {
9413
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9414
        {
3430 rajveer 9415
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
5287 amar.kumar 9416
          for (String _iter39 : this.success)
3087 mandeep.dh 9417
          {
5287 amar.kumar 9418
            oprot.writeString(_iter39);
3087 mandeep.dh 9419
          }
9420
          oprot.writeListEnd();
9421
        }
9422
        oprot.writeFieldEnd();
9423
      }
9424
      oprot.writeFieldStop();
9425
      oprot.writeStructEnd();
9426
    }
9427
 
9428
    @Override
9429
    public String toString() {
9430
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
9431
      boolean first = true;
9432
 
9433
      sb.append("success:");
9434
      if (this.success == null) {
9435
        sb.append("null");
9436
      } else {
9437
        sb.append(this.success);
9438
      }
9439
      first = false;
9440
      sb.append(")");
9441
      return sb.toString();
9442
    }
9443
 
3430 rajveer 9444
    public void validate() throws org.apache.thrift.TException {
3087 mandeep.dh 9445
      // check for required fields
9446
    }
9447
 
3430 rajveer 9448
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9449
      try {
9450
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9451
      } catch (org.apache.thrift.TException te) {
9452
        throw new java.io.IOException(te);
9453
      }
9454
    }
9455
 
9456
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9457
      try {
9458
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9459
      } catch (org.apache.thrift.TException te) {
9460
        throw new java.io.IOException(te);
9461
      }
9462
    }
9463
 
3087 mandeep.dh 9464
  }
9465
 
3430 rajveer 9466
  public static class getLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_args, getLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
9467
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_args");
3339 mandeep.dh 9468
 
9469
 
9470
 
9471
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9472
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9473
;
9474
 
9475
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9476
 
9477
      static {
9478
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9479
          byName.put(field.getFieldName(), field);
9480
        }
9481
      }
9482
 
9483
      /**
9484
       * Find the _Fields constant that matches fieldId, or null if its not found.
9485
       */
9486
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9487
        switch(fieldId) {
9488
          default:
9489
            return null;
9490
        }
3339 mandeep.dh 9491
      }
9492
 
9493
      /**
9494
       * Find the _Fields constant that matches fieldId, throwing an exception
9495
       * if it is not found.
9496
       */
9497
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9498
        _Fields fields = findByThriftId(fieldId);
9499
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9500
        return fields;
9501
      }
9502
 
9503
      /**
9504
       * Find the _Fields constant that matches name, or null if its not found.
9505
       */
9506
      public static _Fields findByName(String name) {
9507
        return byName.get(name);
9508
      }
9509
 
9510
      private final short _thriftId;
9511
      private final String _fieldName;
9512
 
9513
      _Fields(short thriftId, String fieldName) {
9514
        _thriftId = thriftId;
9515
        _fieldName = fieldName;
9516
      }
9517
 
9518
      public short getThriftFieldId() {
9519
        return _thriftId;
9520
      }
9521
 
9522
      public String getFieldName() {
9523
        return _fieldName;
9524
      }
9525
    }
3430 rajveer 9526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9527
    static {
3430 rajveer 9528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9529
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9530
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_args.class, metaDataMap);
3339 mandeep.dh 9531
    }
9532
 
9533
    public getLastEmailProcessedTimestamp_args() {
9534
    }
9535
 
9536
    /**
9537
     * Performs a deep copy on <i>other</i>.
9538
     */
9539
    public getLastEmailProcessedTimestamp_args(getLastEmailProcessedTimestamp_args other) {
9540
    }
9541
 
9542
    public getLastEmailProcessedTimestamp_args deepCopy() {
9543
      return new getLastEmailProcessedTimestamp_args(this);
9544
    }
9545
 
3430 rajveer 9546
    @Override
9547
    public void clear() {
3339 mandeep.dh 9548
    }
9549
 
9550
    public void setFieldValue(_Fields field, Object value) {
9551
      switch (field) {
9552
      }
9553
    }
9554
 
9555
    public Object getFieldValue(_Fields field) {
9556
      switch (field) {
9557
      }
9558
      throw new IllegalStateException();
9559
    }
9560
 
3430 rajveer 9561
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9562
    public boolean isSet(_Fields field) {
9563
      if (field == null) {
9564
        throw new IllegalArgumentException();
9565
      }
3339 mandeep.dh 9566
 
9567
      switch (field) {
9568
      }
9569
      throw new IllegalStateException();
9570
    }
9571
 
9572
    @Override
9573
    public boolean equals(Object that) {
9574
      if (that == null)
9575
        return false;
9576
      if (that instanceof getLastEmailProcessedTimestamp_args)
9577
        return this.equals((getLastEmailProcessedTimestamp_args)that);
9578
      return false;
9579
    }
9580
 
9581
    public boolean equals(getLastEmailProcessedTimestamp_args that) {
9582
      if (that == null)
9583
        return false;
9584
 
9585
      return true;
9586
    }
9587
 
9588
    @Override
9589
    public int hashCode() {
9590
      return 0;
9591
    }
9592
 
9593
    public int compareTo(getLastEmailProcessedTimestamp_args other) {
9594
      if (!getClass().equals(other.getClass())) {
9595
        return getClass().getName().compareTo(other.getClass().getName());
9596
      }
9597
 
9598
      int lastComparison = 0;
9599
      getLastEmailProcessedTimestamp_args typedOther = (getLastEmailProcessedTimestamp_args)other;
9600
 
9601
      return 0;
9602
    }
9603
 
3430 rajveer 9604
    public _Fields fieldForId(int fieldId) {
9605
      return _Fields.findByThriftId(fieldId);
9606
    }
9607
 
9608
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9609
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 9610
      iprot.readStructBegin();
9611
      while (true)
9612
      {
9613
        field = iprot.readFieldBegin();
3430 rajveer 9614
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 9615
          break;
9616
        }
3430 rajveer 9617
        switch (field.id) {
9618
          default:
9619
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 9620
        }
3430 rajveer 9621
        iprot.readFieldEnd();
3339 mandeep.dh 9622
      }
9623
      iprot.readStructEnd();
9624
      validate();
9625
    }
9626
 
3430 rajveer 9627
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 9628
      validate();
9629
 
9630
      oprot.writeStructBegin(STRUCT_DESC);
9631
      oprot.writeFieldStop();
9632
      oprot.writeStructEnd();
9633
    }
9634
 
9635
    @Override
9636
    public String toString() {
9637
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_args(");
9638
      boolean first = true;
9639
 
9640
      sb.append(")");
9641
      return sb.toString();
9642
    }
9643
 
3430 rajveer 9644
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 9645
      // check for required fields
9646
    }
9647
 
3430 rajveer 9648
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9649
      try {
9650
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9651
      } catch (org.apache.thrift.TException te) {
9652
        throw new java.io.IOException(te);
9653
      }
9654
    }
9655
 
9656
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9657
      try {
9658
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9659
      } catch (org.apache.thrift.TException te) {
9660
        throw new java.io.IOException(te);
9661
      }
9662
    }
9663
 
3339 mandeep.dh 9664
  }
9665
 
3430 rajveer 9666
  public static class getLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<getLastEmailProcessedTimestamp_result, getLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
9667
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLastEmailProcessedTimestamp_result");
3339 mandeep.dh 9668
 
3430 rajveer 9669
    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 9670
 
3430 rajveer 9671
    private long success; // required
3339 mandeep.dh 9672
 
9673
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9674
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9675
      SUCCESS((short)0, "success");
9676
 
9677
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9678
 
9679
      static {
9680
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9681
          byName.put(field.getFieldName(), field);
9682
        }
9683
      }
9684
 
9685
      /**
9686
       * Find the _Fields constant that matches fieldId, or null if its not found.
9687
       */
9688
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9689
        switch(fieldId) {
9690
          case 0: // SUCCESS
9691
            return SUCCESS;
9692
          default:
9693
            return null;
9694
        }
3339 mandeep.dh 9695
      }
9696
 
9697
      /**
9698
       * Find the _Fields constant that matches fieldId, throwing an exception
9699
       * if it is not found.
9700
       */
9701
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9702
        _Fields fields = findByThriftId(fieldId);
9703
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9704
        return fields;
9705
      }
9706
 
9707
      /**
9708
       * Find the _Fields constant that matches name, or null if its not found.
9709
       */
9710
      public static _Fields findByName(String name) {
9711
        return byName.get(name);
9712
      }
9713
 
9714
      private final short _thriftId;
9715
      private final String _fieldName;
9716
 
9717
      _Fields(short thriftId, String fieldName) {
9718
        _thriftId = thriftId;
9719
        _fieldName = fieldName;
9720
      }
9721
 
9722
      public short getThriftFieldId() {
9723
        return _thriftId;
9724
      }
9725
 
9726
      public String getFieldName() {
9727
        return _fieldName;
9728
      }
9729
    }
9730
 
9731
    // isset id assignments
9732
    private static final int __SUCCESS_ISSET_ID = 0;
9733
    private BitSet __isset_bit_vector = new BitSet(1);
9734
 
3430 rajveer 9735
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 9736
    static {
3430 rajveer 9737
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
9738
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
9739
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
9740
      metaDataMap = Collections.unmodifiableMap(tmpMap);
9741
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLastEmailProcessedTimestamp_result.class, metaDataMap);
3339 mandeep.dh 9742
    }
9743
 
9744
    public getLastEmailProcessedTimestamp_result() {
9745
    }
9746
 
9747
    public getLastEmailProcessedTimestamp_result(
9748
      long success)
9749
    {
9750
      this();
9751
      this.success = success;
9752
      setSuccessIsSet(true);
9753
    }
9754
 
9755
    /**
9756
     * Performs a deep copy on <i>other</i>.
9757
     */
9758
    public getLastEmailProcessedTimestamp_result(getLastEmailProcessedTimestamp_result other) {
9759
      __isset_bit_vector.clear();
9760
      __isset_bit_vector.or(other.__isset_bit_vector);
9761
      this.success = other.success;
9762
    }
9763
 
9764
    public getLastEmailProcessedTimestamp_result deepCopy() {
9765
      return new getLastEmailProcessedTimestamp_result(this);
9766
    }
9767
 
3430 rajveer 9768
    @Override
9769
    public void clear() {
9770
      setSuccessIsSet(false);
9771
      this.success = 0;
3339 mandeep.dh 9772
    }
9773
 
9774
    public long getSuccess() {
9775
      return this.success;
9776
    }
9777
 
3430 rajveer 9778
    public void setSuccess(long success) {
3339 mandeep.dh 9779
      this.success = success;
9780
      setSuccessIsSet(true);
9781
    }
9782
 
9783
    public void unsetSuccess() {
9784
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
9785
    }
9786
 
3430 rajveer 9787
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3339 mandeep.dh 9788
    public boolean isSetSuccess() {
9789
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
9790
    }
9791
 
9792
    public void setSuccessIsSet(boolean value) {
9793
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
9794
    }
9795
 
9796
    public void setFieldValue(_Fields field, Object value) {
9797
      switch (field) {
9798
      case SUCCESS:
9799
        if (value == null) {
9800
          unsetSuccess();
9801
        } else {
9802
          setSuccess((Long)value);
9803
        }
9804
        break;
9805
 
9806
      }
9807
    }
9808
 
9809
    public Object getFieldValue(_Fields field) {
9810
      switch (field) {
9811
      case SUCCESS:
3430 rajveer 9812
        return Long.valueOf(getSuccess());
3339 mandeep.dh 9813
 
9814
      }
9815
      throw new IllegalStateException();
9816
    }
9817
 
3430 rajveer 9818
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
9819
    public boolean isSet(_Fields field) {
9820
      if (field == null) {
9821
        throw new IllegalArgumentException();
9822
      }
3339 mandeep.dh 9823
 
9824
      switch (field) {
9825
      case SUCCESS:
9826
        return isSetSuccess();
9827
      }
9828
      throw new IllegalStateException();
9829
    }
9830
 
9831
    @Override
9832
    public boolean equals(Object that) {
9833
      if (that == null)
9834
        return false;
9835
      if (that instanceof getLastEmailProcessedTimestamp_result)
9836
        return this.equals((getLastEmailProcessedTimestamp_result)that);
9837
      return false;
9838
    }
9839
 
9840
    public boolean equals(getLastEmailProcessedTimestamp_result that) {
9841
      if (that == null)
9842
        return false;
9843
 
9844
      boolean this_present_success = true;
9845
      boolean that_present_success = true;
9846
      if (this_present_success || that_present_success) {
9847
        if (!(this_present_success && that_present_success))
9848
          return false;
9849
        if (this.success != that.success)
9850
          return false;
9851
      }
9852
 
9853
      return true;
9854
    }
9855
 
9856
    @Override
9857
    public int hashCode() {
9858
      return 0;
9859
    }
9860
 
9861
    public int compareTo(getLastEmailProcessedTimestamp_result other) {
9862
      if (!getClass().equals(other.getClass())) {
9863
        return getClass().getName().compareTo(other.getClass().getName());
9864
      }
9865
 
9866
      int lastComparison = 0;
9867
      getLastEmailProcessedTimestamp_result typedOther = (getLastEmailProcessedTimestamp_result)other;
9868
 
3430 rajveer 9869
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3339 mandeep.dh 9870
      if (lastComparison != 0) {
9871
        return lastComparison;
9872
      }
3430 rajveer 9873
      if (isSetSuccess()) {
9874
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
9875
        if (lastComparison != 0) {
9876
          return lastComparison;
9877
        }
3339 mandeep.dh 9878
      }
9879
      return 0;
9880
    }
9881
 
3430 rajveer 9882
    public _Fields fieldForId(int fieldId) {
9883
      return _Fields.findByThriftId(fieldId);
9884
    }
9885
 
9886
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
9887
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 9888
      iprot.readStructBegin();
9889
      while (true)
9890
      {
9891
        field = iprot.readFieldBegin();
3430 rajveer 9892
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 9893
          break;
9894
        }
3430 rajveer 9895
        switch (field.id) {
9896
          case 0: // SUCCESS
9897
            if (field.type == org.apache.thrift.protocol.TType.I64) {
9898
              this.success = iprot.readI64();
9899
              setSuccessIsSet(true);
9900
            } else { 
9901
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
9902
            }
9903
            break;
9904
          default:
9905
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 9906
        }
3430 rajveer 9907
        iprot.readFieldEnd();
3339 mandeep.dh 9908
      }
9909
      iprot.readStructEnd();
9910
      validate();
9911
    }
9912
 
3430 rajveer 9913
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 9914
      oprot.writeStructBegin(STRUCT_DESC);
9915
 
9916
      if (this.isSetSuccess()) {
9917
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
9918
        oprot.writeI64(this.success);
9919
        oprot.writeFieldEnd();
9920
      }
9921
      oprot.writeFieldStop();
9922
      oprot.writeStructEnd();
9923
    }
9924
 
9925
    @Override
9926
    public String toString() {
9927
      StringBuilder sb = new StringBuilder("getLastEmailProcessedTimestamp_result(");
9928
      boolean first = true;
9929
 
9930
      sb.append("success:");
9931
      sb.append(this.success);
9932
      first = false;
9933
      sb.append(")");
9934
      return sb.toString();
9935
    }
9936
 
3430 rajveer 9937
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 9938
      // check for required fields
9939
    }
9940
 
3430 rajveer 9941
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
9942
      try {
9943
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
9944
      } catch (org.apache.thrift.TException te) {
9945
        throw new java.io.IOException(te);
9946
      }
9947
    }
9948
 
9949
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
9950
      try {
9951
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
9952
      } catch (org.apache.thrift.TException te) {
9953
        throw new java.io.IOException(te);
9954
      }
9955
    }
9956
 
3339 mandeep.dh 9957
  }
9958
 
3430 rajveer 9959
  public static class updateLastEmailProcessedTimestamp_args implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_args, updateLastEmailProcessedTimestamp_args._Fields>, java.io.Serializable, Cloneable   {
9960
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_args");
3339 mandeep.dh 9961
 
3430 rajveer 9962
    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 9963
 
3430 rajveer 9964
    private long timestamp; // required
3339 mandeep.dh 9965
 
9966
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 9967
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 9968
      TIMESTAMP((short)1, "timestamp");
9969
 
9970
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
9971
 
9972
      static {
9973
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
9974
          byName.put(field.getFieldName(), field);
9975
        }
9976
      }
9977
 
9978
      /**
9979
       * Find the _Fields constant that matches fieldId, or null if its not found.
9980
       */
9981
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 9982
        switch(fieldId) {
9983
          case 1: // TIMESTAMP
9984
            return TIMESTAMP;
9985
          default:
9986
            return null;
9987
        }
3339 mandeep.dh 9988
      }
9989
 
9990
      /**
9991
       * Find the _Fields constant that matches fieldId, throwing an exception
9992
       * if it is not found.
9993
       */
9994
      public static _Fields findByThriftIdOrThrow(int fieldId) {
9995
        _Fields fields = findByThriftId(fieldId);
9996
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
9997
        return fields;
9998
      }
9999
 
10000
      /**
10001
       * Find the _Fields constant that matches name, or null if its not found.
10002
       */
10003
      public static _Fields findByName(String name) {
10004
        return byName.get(name);
10005
      }
10006
 
10007
      private final short _thriftId;
10008
      private final String _fieldName;
10009
 
10010
      _Fields(short thriftId, String fieldName) {
10011
        _thriftId = thriftId;
10012
        _fieldName = fieldName;
10013
      }
10014
 
10015
      public short getThriftFieldId() {
10016
        return _thriftId;
10017
      }
10018
 
10019
      public String getFieldName() {
10020
        return _fieldName;
10021
      }
10022
    }
10023
 
10024
    // isset id assignments
10025
    private static final int __TIMESTAMP_ISSET_ID = 0;
10026
    private BitSet __isset_bit_vector = new BitSet(1);
10027
 
3430 rajveer 10028
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 10029
    static {
3430 rajveer 10030
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10031
      tmpMap.put(_Fields.TIMESTAMP, new org.apache.thrift.meta_data.FieldMetaData("timestamp", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10032
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
10033
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10034
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_args.class, metaDataMap);
3339 mandeep.dh 10035
    }
10036
 
10037
    public updateLastEmailProcessedTimestamp_args() {
10038
    }
10039
 
10040
    public updateLastEmailProcessedTimestamp_args(
10041
      long timestamp)
10042
    {
10043
      this();
10044
      this.timestamp = timestamp;
10045
      setTimestampIsSet(true);
10046
    }
10047
 
10048
    /**
10049
     * Performs a deep copy on <i>other</i>.
10050
     */
10051
    public updateLastEmailProcessedTimestamp_args(updateLastEmailProcessedTimestamp_args other) {
10052
      __isset_bit_vector.clear();
10053
      __isset_bit_vector.or(other.__isset_bit_vector);
10054
      this.timestamp = other.timestamp;
10055
    }
10056
 
10057
    public updateLastEmailProcessedTimestamp_args deepCopy() {
10058
      return new updateLastEmailProcessedTimestamp_args(this);
10059
    }
10060
 
3430 rajveer 10061
    @Override
10062
    public void clear() {
10063
      setTimestampIsSet(false);
10064
      this.timestamp = 0;
3339 mandeep.dh 10065
    }
10066
 
10067
    public long getTimestamp() {
10068
      return this.timestamp;
10069
    }
10070
 
3430 rajveer 10071
    public void setTimestamp(long timestamp) {
3339 mandeep.dh 10072
      this.timestamp = timestamp;
10073
      setTimestampIsSet(true);
10074
    }
10075
 
10076
    public void unsetTimestamp() {
10077
      __isset_bit_vector.clear(__TIMESTAMP_ISSET_ID);
10078
    }
10079
 
3430 rajveer 10080
    /** Returns true if field timestamp is set (has been assigned a value) and false otherwise */
3339 mandeep.dh 10081
    public boolean isSetTimestamp() {
10082
      return __isset_bit_vector.get(__TIMESTAMP_ISSET_ID);
10083
    }
10084
 
10085
    public void setTimestampIsSet(boolean value) {
10086
      __isset_bit_vector.set(__TIMESTAMP_ISSET_ID, value);
10087
    }
10088
 
10089
    public void setFieldValue(_Fields field, Object value) {
10090
      switch (field) {
10091
      case TIMESTAMP:
10092
        if (value == null) {
10093
          unsetTimestamp();
10094
        } else {
10095
          setTimestamp((Long)value);
10096
        }
10097
        break;
10098
 
10099
      }
10100
    }
10101
 
10102
    public Object getFieldValue(_Fields field) {
10103
      switch (field) {
10104
      case TIMESTAMP:
3430 rajveer 10105
        return Long.valueOf(getTimestamp());
3339 mandeep.dh 10106
 
10107
      }
10108
      throw new IllegalStateException();
10109
    }
10110
 
3430 rajveer 10111
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10112
    public boolean isSet(_Fields field) {
10113
      if (field == null) {
10114
        throw new IllegalArgumentException();
10115
      }
3339 mandeep.dh 10116
 
10117
      switch (field) {
10118
      case TIMESTAMP:
10119
        return isSetTimestamp();
10120
      }
10121
      throw new IllegalStateException();
10122
    }
10123
 
10124
    @Override
10125
    public boolean equals(Object that) {
10126
      if (that == null)
10127
        return false;
10128
      if (that instanceof updateLastEmailProcessedTimestamp_args)
10129
        return this.equals((updateLastEmailProcessedTimestamp_args)that);
10130
      return false;
10131
    }
10132
 
10133
    public boolean equals(updateLastEmailProcessedTimestamp_args that) {
10134
      if (that == null)
10135
        return false;
10136
 
10137
      boolean this_present_timestamp = true;
10138
      boolean that_present_timestamp = true;
10139
      if (this_present_timestamp || that_present_timestamp) {
10140
        if (!(this_present_timestamp && that_present_timestamp))
10141
          return false;
10142
        if (this.timestamp != that.timestamp)
10143
          return false;
10144
      }
10145
 
10146
      return true;
10147
    }
10148
 
10149
    @Override
10150
    public int hashCode() {
10151
      return 0;
10152
    }
10153
 
10154
    public int compareTo(updateLastEmailProcessedTimestamp_args other) {
10155
      if (!getClass().equals(other.getClass())) {
10156
        return getClass().getName().compareTo(other.getClass().getName());
10157
      }
10158
 
10159
      int lastComparison = 0;
10160
      updateLastEmailProcessedTimestamp_args typedOther = (updateLastEmailProcessedTimestamp_args)other;
10161
 
3430 rajveer 10162
      lastComparison = Boolean.valueOf(isSetTimestamp()).compareTo(typedOther.isSetTimestamp());
3339 mandeep.dh 10163
      if (lastComparison != 0) {
10164
        return lastComparison;
10165
      }
3430 rajveer 10166
      if (isSetTimestamp()) {
10167
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.timestamp, typedOther.timestamp);
10168
        if (lastComparison != 0) {
10169
          return lastComparison;
10170
        }
3339 mandeep.dh 10171
      }
10172
      return 0;
10173
    }
10174
 
3430 rajveer 10175
    public _Fields fieldForId(int fieldId) {
10176
      return _Fields.findByThriftId(fieldId);
10177
    }
10178
 
10179
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10180
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 10181
      iprot.readStructBegin();
10182
      while (true)
10183
      {
10184
        field = iprot.readFieldBegin();
3430 rajveer 10185
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 10186
          break;
10187
        }
3430 rajveer 10188
        switch (field.id) {
10189
          case 1: // TIMESTAMP
10190
            if (field.type == org.apache.thrift.protocol.TType.I64) {
10191
              this.timestamp = iprot.readI64();
10192
              setTimestampIsSet(true);
10193
            } else { 
10194
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10195
            }
10196
            break;
10197
          default:
10198
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 10199
        }
3430 rajveer 10200
        iprot.readFieldEnd();
3339 mandeep.dh 10201
      }
10202
      iprot.readStructEnd();
10203
      validate();
10204
    }
10205
 
3430 rajveer 10206
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 10207
      validate();
10208
 
10209
      oprot.writeStructBegin(STRUCT_DESC);
10210
      oprot.writeFieldBegin(TIMESTAMP_FIELD_DESC);
10211
      oprot.writeI64(this.timestamp);
10212
      oprot.writeFieldEnd();
10213
      oprot.writeFieldStop();
10214
      oprot.writeStructEnd();
10215
    }
10216
 
10217
    @Override
10218
    public String toString() {
10219
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_args(");
10220
      boolean first = true;
10221
 
10222
      sb.append("timestamp:");
10223
      sb.append(this.timestamp);
10224
      first = false;
10225
      sb.append(")");
10226
      return sb.toString();
10227
    }
10228
 
3430 rajveer 10229
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 10230
      // check for required fields
10231
    }
10232
 
3430 rajveer 10233
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10234
      try {
10235
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10236
      } catch (org.apache.thrift.TException te) {
10237
        throw new java.io.IOException(te);
10238
      }
10239
    }
10240
 
10241
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10242
      try {
10243
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10244
        __isset_bit_vector = new BitSet(1);
10245
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10246
      } catch (org.apache.thrift.TException te) {
10247
        throw new java.io.IOException(te);
10248
      }
10249
    }
10250
 
3339 mandeep.dh 10251
  }
10252
 
3430 rajveer 10253
  public static class updateLastEmailProcessedTimestamp_result implements org.apache.thrift.TBase<updateLastEmailProcessedTimestamp_result, updateLastEmailProcessedTimestamp_result._Fields>, java.io.Serializable, Cloneable   {
10254
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLastEmailProcessedTimestamp_result");
3339 mandeep.dh 10255
 
10256
 
10257
 
10258
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 10259
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3339 mandeep.dh 10260
;
10261
 
10262
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10263
 
10264
      static {
10265
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10266
          byName.put(field.getFieldName(), field);
10267
        }
10268
      }
10269
 
10270
      /**
10271
       * Find the _Fields constant that matches fieldId, or null if its not found.
10272
       */
10273
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 10274
        switch(fieldId) {
10275
          default:
10276
            return null;
10277
        }
3339 mandeep.dh 10278
      }
10279
 
10280
      /**
10281
       * Find the _Fields constant that matches fieldId, throwing an exception
10282
       * if it is not found.
10283
       */
10284
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10285
        _Fields fields = findByThriftId(fieldId);
10286
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10287
        return fields;
10288
      }
10289
 
10290
      /**
10291
       * Find the _Fields constant that matches name, or null if its not found.
10292
       */
10293
      public static _Fields findByName(String name) {
10294
        return byName.get(name);
10295
      }
10296
 
10297
      private final short _thriftId;
10298
      private final String _fieldName;
10299
 
10300
      _Fields(short thriftId, String fieldName) {
10301
        _thriftId = thriftId;
10302
        _fieldName = fieldName;
10303
      }
10304
 
10305
      public short getThriftFieldId() {
10306
        return _thriftId;
10307
      }
10308
 
10309
      public String getFieldName() {
10310
        return _fieldName;
10311
      }
10312
    }
3430 rajveer 10313
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3339 mandeep.dh 10314
    static {
3430 rajveer 10315
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10316
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10317
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLastEmailProcessedTimestamp_result.class, metaDataMap);
3339 mandeep.dh 10318
    }
10319
 
10320
    public updateLastEmailProcessedTimestamp_result() {
10321
    }
10322
 
10323
    /**
10324
     * Performs a deep copy on <i>other</i>.
10325
     */
10326
    public updateLastEmailProcessedTimestamp_result(updateLastEmailProcessedTimestamp_result other) {
10327
    }
10328
 
10329
    public updateLastEmailProcessedTimestamp_result deepCopy() {
10330
      return new updateLastEmailProcessedTimestamp_result(this);
10331
    }
10332
 
3430 rajveer 10333
    @Override
10334
    public void clear() {
3339 mandeep.dh 10335
    }
10336
 
10337
    public void setFieldValue(_Fields field, Object value) {
10338
      switch (field) {
10339
      }
10340
    }
10341
 
10342
    public Object getFieldValue(_Fields field) {
10343
      switch (field) {
10344
      }
10345
      throw new IllegalStateException();
10346
    }
10347
 
3430 rajveer 10348
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10349
    public boolean isSet(_Fields field) {
10350
      if (field == null) {
10351
        throw new IllegalArgumentException();
10352
      }
3339 mandeep.dh 10353
 
10354
      switch (field) {
10355
      }
10356
      throw new IllegalStateException();
10357
    }
10358
 
10359
    @Override
10360
    public boolean equals(Object that) {
10361
      if (that == null)
10362
        return false;
10363
      if (that instanceof updateLastEmailProcessedTimestamp_result)
10364
        return this.equals((updateLastEmailProcessedTimestamp_result)that);
10365
      return false;
10366
    }
10367
 
10368
    public boolean equals(updateLastEmailProcessedTimestamp_result that) {
10369
      if (that == null)
10370
        return false;
10371
 
10372
      return true;
10373
    }
10374
 
10375
    @Override
10376
    public int hashCode() {
10377
      return 0;
10378
    }
10379
 
10380
    public int compareTo(updateLastEmailProcessedTimestamp_result other) {
10381
      if (!getClass().equals(other.getClass())) {
10382
        return getClass().getName().compareTo(other.getClass().getName());
10383
      }
10384
 
10385
      int lastComparison = 0;
10386
      updateLastEmailProcessedTimestamp_result typedOther = (updateLastEmailProcessedTimestamp_result)other;
10387
 
10388
      return 0;
10389
    }
10390
 
3430 rajveer 10391
    public _Fields fieldForId(int fieldId) {
10392
      return _Fields.findByThriftId(fieldId);
10393
    }
10394
 
10395
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10396
      org.apache.thrift.protocol.TField field;
3339 mandeep.dh 10397
      iprot.readStructBegin();
10398
      while (true)
10399
      {
10400
        field = iprot.readFieldBegin();
3430 rajveer 10401
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3339 mandeep.dh 10402
          break;
10403
        }
3430 rajveer 10404
        switch (field.id) {
10405
          default:
10406
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3339 mandeep.dh 10407
        }
3430 rajveer 10408
        iprot.readFieldEnd();
3339 mandeep.dh 10409
      }
10410
      iprot.readStructEnd();
10411
      validate();
10412
    }
10413
 
3430 rajveer 10414
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3339 mandeep.dh 10415
      oprot.writeStructBegin(STRUCT_DESC);
10416
 
10417
      oprot.writeFieldStop();
10418
      oprot.writeStructEnd();
10419
    }
10420
 
10421
    @Override
10422
    public String toString() {
10423
      StringBuilder sb = new StringBuilder("updateLastEmailProcessedTimestamp_result(");
10424
      boolean first = true;
10425
 
10426
      sb.append(")");
10427
      return sb.toString();
10428
    }
10429
 
3430 rajveer 10430
    public void validate() throws org.apache.thrift.TException {
3339 mandeep.dh 10431
      // check for required fields
10432
    }
10433
 
3430 rajveer 10434
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10435
      try {
10436
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10437
      } catch (org.apache.thrift.TException te) {
10438
        throw new java.io.IOException(te);
10439
      }
10440
    }
10441
 
10442
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10443
      try {
10444
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10445
      } catch (org.apache.thrift.TException te) {
10446
        throw new java.io.IOException(te);
10447
      }
10448
    }
10449
 
3339 mandeep.dh 10450
  }
10451
 
4793 amar.kumar 10452
  public static class changeAgentStatus_args implements org.apache.thrift.TBase<changeAgentStatus_args, changeAgentStatus_args._Fields>, java.io.Serializable, Cloneable   {
10453
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_args");
10454
 
10455
    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);
10456
    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);
10457
 
10458
    private boolean status; // required
10459
    private String emailId; // required
10460
 
10461
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10462
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10463
      STATUS((short)1, "status"),
10464
      EMAIL_ID((short)2, "emailId");
10465
 
10466
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10467
 
10468
      static {
10469
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10470
          byName.put(field.getFieldName(), field);
10471
        }
10472
      }
10473
 
10474
      /**
10475
       * Find the _Fields constant that matches fieldId, or null if its not found.
10476
       */
10477
      public static _Fields findByThriftId(int fieldId) {
10478
        switch(fieldId) {
10479
          case 1: // STATUS
10480
            return STATUS;
10481
          case 2: // EMAIL_ID
10482
            return EMAIL_ID;
10483
          default:
10484
            return null;
10485
        }
10486
      }
10487
 
10488
      /**
10489
       * Find the _Fields constant that matches fieldId, throwing an exception
10490
       * if it is not found.
10491
       */
10492
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10493
        _Fields fields = findByThriftId(fieldId);
10494
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10495
        return fields;
10496
      }
10497
 
10498
      /**
10499
       * Find the _Fields constant that matches name, or null if its not found.
10500
       */
10501
      public static _Fields findByName(String name) {
10502
        return byName.get(name);
10503
      }
10504
 
10505
      private final short _thriftId;
10506
      private final String _fieldName;
10507
 
10508
      _Fields(short thriftId, String fieldName) {
10509
        _thriftId = thriftId;
10510
        _fieldName = fieldName;
10511
      }
10512
 
10513
      public short getThriftFieldId() {
10514
        return _thriftId;
10515
      }
10516
 
10517
      public String getFieldName() {
10518
        return _fieldName;
10519
      }
10520
    }
10521
 
10522
    // isset id assignments
10523
    private static final int __STATUS_ISSET_ID = 0;
10524
    private BitSet __isset_bit_vector = new BitSet(1);
10525
 
10526
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10527
    static {
10528
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10529
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10530
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
10531
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
10532
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
10533
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10534
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_args.class, metaDataMap);
10535
    }
10536
 
10537
    public changeAgentStatus_args() {
10538
    }
10539
 
10540
    public changeAgentStatus_args(
10541
      boolean status,
10542
      String emailId)
10543
    {
10544
      this();
10545
      this.status = status;
10546
      setStatusIsSet(true);
10547
      this.emailId = emailId;
10548
    }
10549
 
10550
    /**
10551
     * Performs a deep copy on <i>other</i>.
10552
     */
10553
    public changeAgentStatus_args(changeAgentStatus_args other) {
10554
      __isset_bit_vector.clear();
10555
      __isset_bit_vector.or(other.__isset_bit_vector);
10556
      this.status = other.status;
10557
      if (other.isSetEmailId()) {
10558
        this.emailId = other.emailId;
10559
      }
10560
    }
10561
 
10562
    public changeAgentStatus_args deepCopy() {
10563
      return new changeAgentStatus_args(this);
10564
    }
10565
 
10566
    @Override
10567
    public void clear() {
10568
      setStatusIsSet(false);
10569
      this.status = false;
10570
      this.emailId = null;
10571
    }
10572
 
10573
    public boolean isStatus() {
10574
      return this.status;
10575
    }
10576
 
10577
    public void setStatus(boolean status) {
10578
      this.status = status;
10579
      setStatusIsSet(true);
10580
    }
10581
 
10582
    public void unsetStatus() {
10583
      __isset_bit_vector.clear(__STATUS_ISSET_ID);
10584
    }
10585
 
10586
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
10587
    public boolean isSetStatus() {
10588
      return __isset_bit_vector.get(__STATUS_ISSET_ID);
10589
    }
10590
 
10591
    public void setStatusIsSet(boolean value) {
10592
      __isset_bit_vector.set(__STATUS_ISSET_ID, value);
10593
    }
10594
 
10595
    public String getEmailId() {
10596
      return this.emailId;
10597
    }
10598
 
10599
    public void setEmailId(String emailId) {
10600
      this.emailId = emailId;
10601
    }
10602
 
10603
    public void unsetEmailId() {
10604
      this.emailId = null;
10605
    }
10606
 
10607
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
10608
    public boolean isSetEmailId() {
10609
      return this.emailId != null;
10610
    }
10611
 
10612
    public void setEmailIdIsSet(boolean value) {
10613
      if (!value) {
10614
        this.emailId = null;
10615
      }
10616
    }
10617
 
10618
    public void setFieldValue(_Fields field, Object value) {
10619
      switch (field) {
10620
      case STATUS:
10621
        if (value == null) {
10622
          unsetStatus();
10623
        } else {
10624
          setStatus((Boolean)value);
10625
        }
10626
        break;
10627
 
10628
      case EMAIL_ID:
10629
        if (value == null) {
10630
          unsetEmailId();
10631
        } else {
10632
          setEmailId((String)value);
10633
        }
10634
        break;
10635
 
10636
      }
10637
    }
10638
 
10639
    public Object getFieldValue(_Fields field) {
10640
      switch (field) {
10641
      case STATUS:
10642
        return Boolean.valueOf(isStatus());
10643
 
10644
      case EMAIL_ID:
10645
        return getEmailId();
10646
 
10647
      }
10648
      throw new IllegalStateException();
10649
    }
10650
 
10651
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10652
    public boolean isSet(_Fields field) {
10653
      if (field == null) {
10654
        throw new IllegalArgumentException();
10655
      }
10656
 
10657
      switch (field) {
10658
      case STATUS:
10659
        return isSetStatus();
10660
      case EMAIL_ID:
10661
        return isSetEmailId();
10662
      }
10663
      throw new IllegalStateException();
10664
    }
10665
 
10666
    @Override
10667
    public boolean equals(Object that) {
10668
      if (that == null)
10669
        return false;
10670
      if (that instanceof changeAgentStatus_args)
10671
        return this.equals((changeAgentStatus_args)that);
10672
      return false;
10673
    }
10674
 
10675
    public boolean equals(changeAgentStatus_args that) {
10676
      if (that == null)
10677
        return false;
10678
 
10679
      boolean this_present_status = true;
10680
      boolean that_present_status = true;
10681
      if (this_present_status || that_present_status) {
10682
        if (!(this_present_status && that_present_status))
10683
          return false;
10684
        if (this.status != that.status)
10685
          return false;
10686
      }
10687
 
10688
      boolean this_present_emailId = true && this.isSetEmailId();
10689
      boolean that_present_emailId = true && that.isSetEmailId();
10690
      if (this_present_emailId || that_present_emailId) {
10691
        if (!(this_present_emailId && that_present_emailId))
10692
          return false;
10693
        if (!this.emailId.equals(that.emailId))
10694
          return false;
10695
      }
10696
 
10697
      return true;
10698
    }
10699
 
10700
    @Override
10701
    public int hashCode() {
10702
      return 0;
10703
    }
10704
 
10705
    public int compareTo(changeAgentStatus_args other) {
10706
      if (!getClass().equals(other.getClass())) {
10707
        return getClass().getName().compareTo(other.getClass().getName());
10708
      }
10709
 
10710
      int lastComparison = 0;
10711
      changeAgentStatus_args typedOther = (changeAgentStatus_args)other;
10712
 
10713
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
10714
      if (lastComparison != 0) {
10715
        return lastComparison;
10716
      }
10717
      if (isSetStatus()) {
10718
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
10719
        if (lastComparison != 0) {
10720
          return lastComparison;
10721
        }
10722
      }
10723
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
10724
      if (lastComparison != 0) {
10725
        return lastComparison;
10726
      }
10727
      if (isSetEmailId()) {
10728
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
10729
        if (lastComparison != 0) {
10730
          return lastComparison;
10731
        }
10732
      }
10733
      return 0;
10734
    }
10735
 
10736
    public _Fields fieldForId(int fieldId) {
10737
      return _Fields.findByThriftId(fieldId);
10738
    }
10739
 
10740
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10741
      org.apache.thrift.protocol.TField field;
10742
      iprot.readStructBegin();
10743
      while (true)
10744
      {
10745
        field = iprot.readFieldBegin();
10746
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10747
          break;
10748
        }
10749
        switch (field.id) {
10750
          case 1: // STATUS
10751
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
10752
              this.status = iprot.readBool();
10753
              setStatusIsSet(true);
10754
            } else { 
10755
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10756
            }
10757
            break;
10758
          case 2: // EMAIL_ID
10759
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
10760
              this.emailId = iprot.readString();
10761
            } else { 
10762
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10763
            }
10764
            break;
10765
          default:
10766
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10767
        }
10768
        iprot.readFieldEnd();
10769
      }
10770
      iprot.readStructEnd();
10771
      validate();
10772
    }
10773
 
10774
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10775
      validate();
10776
 
10777
      oprot.writeStructBegin(STRUCT_DESC);
10778
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
10779
      oprot.writeBool(this.status);
10780
      oprot.writeFieldEnd();
10781
      if (this.emailId != null) {
10782
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
10783
        oprot.writeString(this.emailId);
10784
        oprot.writeFieldEnd();
10785
      }
10786
      oprot.writeFieldStop();
10787
      oprot.writeStructEnd();
10788
    }
10789
 
10790
    @Override
10791
    public String toString() {
10792
      StringBuilder sb = new StringBuilder("changeAgentStatus_args(");
10793
      boolean first = true;
10794
 
10795
      sb.append("status:");
10796
      sb.append(this.status);
10797
      first = false;
10798
      if (!first) sb.append(", ");
10799
      sb.append("emailId:");
10800
      if (this.emailId == null) {
10801
        sb.append("null");
10802
      } else {
10803
        sb.append(this.emailId);
10804
      }
10805
      first = false;
10806
      sb.append(")");
10807
      return sb.toString();
10808
    }
10809
 
10810
    public void validate() throws org.apache.thrift.TException {
10811
      // check for required fields
10812
    }
10813
 
10814
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
10815
      try {
10816
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
10817
      } catch (org.apache.thrift.TException te) {
10818
        throw new java.io.IOException(te);
10819
      }
10820
    }
10821
 
10822
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
10823
      try {
10824
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
10825
        __isset_bit_vector = new BitSet(1);
10826
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
10827
      } catch (org.apache.thrift.TException te) {
10828
        throw new java.io.IOException(te);
10829
      }
10830
    }
10831
 
10832
  }
10833
 
10834
  public static class changeAgentStatus_result implements org.apache.thrift.TBase<changeAgentStatus_result, changeAgentStatus_result._Fields>, java.io.Serializable, Cloneable   {
10835
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_result");
10836
 
10837
 
10838
 
10839
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
10840
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
10841
;
10842
 
10843
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
10844
 
10845
      static {
10846
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
10847
          byName.put(field.getFieldName(), field);
10848
        }
10849
      }
10850
 
10851
      /**
10852
       * Find the _Fields constant that matches fieldId, or null if its not found.
10853
       */
10854
      public static _Fields findByThriftId(int fieldId) {
10855
        switch(fieldId) {
10856
          default:
10857
            return null;
10858
        }
10859
      }
10860
 
10861
      /**
10862
       * Find the _Fields constant that matches fieldId, throwing an exception
10863
       * if it is not found.
10864
       */
10865
      public static _Fields findByThriftIdOrThrow(int fieldId) {
10866
        _Fields fields = findByThriftId(fieldId);
10867
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
10868
        return fields;
10869
      }
10870
 
10871
      /**
10872
       * Find the _Fields constant that matches name, or null if its not found.
10873
       */
10874
      public static _Fields findByName(String name) {
10875
        return byName.get(name);
10876
      }
10877
 
10878
      private final short _thriftId;
10879
      private final String _fieldName;
10880
 
10881
      _Fields(short thriftId, String fieldName) {
10882
        _thriftId = thriftId;
10883
        _fieldName = fieldName;
10884
      }
10885
 
10886
      public short getThriftFieldId() {
10887
        return _thriftId;
10888
      }
10889
 
10890
      public String getFieldName() {
10891
        return _fieldName;
10892
      }
10893
    }
10894
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
10895
    static {
10896
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
10897
      metaDataMap = Collections.unmodifiableMap(tmpMap);
10898
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_result.class, metaDataMap);
10899
    }
10900
 
10901
    public changeAgentStatus_result() {
10902
    }
10903
 
10904
    /**
10905
     * Performs a deep copy on <i>other</i>.
10906
     */
10907
    public changeAgentStatus_result(changeAgentStatus_result other) {
10908
    }
10909
 
10910
    public changeAgentStatus_result deepCopy() {
10911
      return new changeAgentStatus_result(this);
10912
    }
10913
 
10914
    @Override
10915
    public void clear() {
10916
    }
10917
 
10918
    public void setFieldValue(_Fields field, Object value) {
10919
      switch (field) {
10920
      }
10921
    }
10922
 
10923
    public Object getFieldValue(_Fields field) {
10924
      switch (field) {
10925
      }
10926
      throw new IllegalStateException();
10927
    }
10928
 
10929
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
10930
    public boolean isSet(_Fields field) {
10931
      if (field == null) {
10932
        throw new IllegalArgumentException();
10933
      }
10934
 
10935
      switch (field) {
10936
      }
10937
      throw new IllegalStateException();
10938
    }
10939
 
10940
    @Override
10941
    public boolean equals(Object that) {
10942
      if (that == null)
10943
        return false;
10944
      if (that instanceof changeAgentStatus_result)
10945
        return this.equals((changeAgentStatus_result)that);
10946
      return false;
10947
    }
10948
 
10949
    public boolean equals(changeAgentStatus_result that) {
10950
      if (that == null)
10951
        return false;
10952
 
10953
      return true;
10954
    }
10955
 
10956
    @Override
10957
    public int hashCode() {
10958
      return 0;
10959
    }
10960
 
10961
    public int compareTo(changeAgentStatus_result other) {
10962
      if (!getClass().equals(other.getClass())) {
10963
        return getClass().getName().compareTo(other.getClass().getName());
10964
      }
10965
 
10966
      int lastComparison = 0;
10967
      changeAgentStatus_result typedOther = (changeAgentStatus_result)other;
10968
 
10969
      return 0;
10970
    }
10971
 
10972
    public _Fields fieldForId(int fieldId) {
10973
      return _Fields.findByThriftId(fieldId);
10974
    }
10975
 
10976
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
10977
      org.apache.thrift.protocol.TField field;
10978
      iprot.readStructBegin();
10979
      while (true)
10980
      {
10981
        field = iprot.readFieldBegin();
10982
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
10983
          break;
10984
        }
10985
        switch (field.id) {
10986
          default:
10987
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
10988
        }
10989
        iprot.readFieldEnd();
10990
      }
10991
      iprot.readStructEnd();
10992
      validate();
10993
    }
10994
 
10995
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
10996
      oprot.writeStructBegin(STRUCT_DESC);
10997
 
10998
      oprot.writeFieldStop();
10999
      oprot.writeStructEnd();
11000
    }
11001
 
11002
    @Override
11003
    public String toString() {
11004
      StringBuilder sb = new StringBuilder("changeAgentStatus_result(");
11005
      boolean first = true;
11006
 
11007
      sb.append(")");
11008
      return sb.toString();
11009
    }
11010
 
11011
    public void validate() throws org.apache.thrift.TException {
11012
      // check for required fields
11013
    }
11014
 
11015
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11016
      try {
11017
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11018
      } catch (org.apache.thrift.TException te) {
11019
        throw new java.io.IOException(te);
11020
      }
11021
    }
11022
 
11023
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11024
      try {
11025
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11026
      } catch (org.apache.thrift.TException te) {
11027
        throw new java.io.IOException(te);
11028
      }
11029
    }
11030
 
11031
  }
11032
 
11033
  public static class insertAgent_args implements org.apache.thrift.TBase<insertAgent_args, insertAgent_args._Fields>, java.io.Serializable, Cloneable   {
11034
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_args");
11035
 
11036
    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);
11037
    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);
11038
 
11039
    private Agent agent; // required
11040
    private List<String> role; // required
11041
 
11042
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11043
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11044
      AGENT((short)1, "agent"),
11045
      ROLE((short)2, "role");
11046
 
11047
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11048
 
11049
      static {
11050
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11051
          byName.put(field.getFieldName(), field);
11052
        }
11053
      }
11054
 
11055
      /**
11056
       * Find the _Fields constant that matches fieldId, or null if its not found.
11057
       */
11058
      public static _Fields findByThriftId(int fieldId) {
11059
        switch(fieldId) {
11060
          case 1: // AGENT
11061
            return AGENT;
11062
          case 2: // ROLE
11063
            return ROLE;
11064
          default:
11065
            return null;
11066
        }
11067
      }
11068
 
11069
      /**
11070
       * Find the _Fields constant that matches fieldId, throwing an exception
11071
       * if it is not found.
11072
       */
11073
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11074
        _Fields fields = findByThriftId(fieldId);
11075
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11076
        return fields;
11077
      }
11078
 
11079
      /**
11080
       * Find the _Fields constant that matches name, or null if its not found.
11081
       */
11082
      public static _Fields findByName(String name) {
11083
        return byName.get(name);
11084
      }
11085
 
11086
      private final short _thriftId;
11087
      private final String _fieldName;
11088
 
11089
      _Fields(short thriftId, String fieldName) {
11090
        _thriftId = thriftId;
11091
        _fieldName = fieldName;
11092
      }
11093
 
11094
      public short getThriftFieldId() {
11095
        return _thriftId;
11096
      }
11097
 
11098
      public String getFieldName() {
11099
        return _fieldName;
11100
      }
11101
    }
11102
 
11103
    // isset id assignments
11104
 
11105
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11106
    static {
11107
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11108
      tmpMap.put(_Fields.AGENT, new org.apache.thrift.meta_data.FieldMetaData("agent", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11109
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class)));
11110
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11111
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11112
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
11113
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11114
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_args.class, metaDataMap);
11115
    }
11116
 
11117
    public insertAgent_args() {
11118
    }
11119
 
11120
    public insertAgent_args(
11121
      Agent agent,
11122
      List<String> role)
11123
    {
11124
      this();
11125
      this.agent = agent;
11126
      this.role = role;
11127
    }
11128
 
11129
    /**
11130
     * Performs a deep copy on <i>other</i>.
11131
     */
11132
    public insertAgent_args(insertAgent_args other) {
11133
      if (other.isSetAgent()) {
11134
        this.agent = new Agent(other.agent);
11135
      }
11136
      if (other.isSetRole()) {
11137
        List<String> __this__role = new ArrayList<String>();
11138
        for (String other_element : other.role) {
11139
          __this__role.add(other_element);
11140
        }
11141
        this.role = __this__role;
11142
      }
11143
    }
11144
 
11145
    public insertAgent_args deepCopy() {
11146
      return new insertAgent_args(this);
11147
    }
11148
 
11149
    @Override
11150
    public void clear() {
11151
      this.agent = null;
11152
      this.role = null;
11153
    }
11154
 
11155
    public Agent getAgent() {
11156
      return this.agent;
11157
    }
11158
 
11159
    public void setAgent(Agent agent) {
11160
      this.agent = agent;
11161
    }
11162
 
11163
    public void unsetAgent() {
11164
      this.agent = null;
11165
    }
11166
 
11167
    /** Returns true if field agent is set (has been assigned a value) and false otherwise */
11168
    public boolean isSetAgent() {
11169
      return this.agent != null;
11170
    }
11171
 
11172
    public void setAgentIsSet(boolean value) {
11173
      if (!value) {
11174
        this.agent = null;
11175
      }
11176
    }
11177
 
11178
    public int getRoleSize() {
11179
      return (this.role == null) ? 0 : this.role.size();
11180
    }
11181
 
11182
    public java.util.Iterator<String> getRoleIterator() {
11183
      return (this.role == null) ? null : this.role.iterator();
11184
    }
11185
 
11186
    public void addToRole(String elem) {
11187
      if (this.role == null) {
11188
        this.role = new ArrayList<String>();
11189
      }
11190
      this.role.add(elem);
11191
    }
11192
 
11193
    public List<String> getRole() {
11194
      return this.role;
11195
    }
11196
 
11197
    public void setRole(List<String> role) {
11198
      this.role = role;
11199
    }
11200
 
11201
    public void unsetRole() {
11202
      this.role = null;
11203
    }
11204
 
11205
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
11206
    public boolean isSetRole() {
11207
      return this.role != null;
11208
    }
11209
 
11210
    public void setRoleIsSet(boolean value) {
11211
      if (!value) {
11212
        this.role = null;
11213
      }
11214
    }
11215
 
11216
    public void setFieldValue(_Fields field, Object value) {
11217
      switch (field) {
11218
      case AGENT:
11219
        if (value == null) {
11220
          unsetAgent();
11221
        } else {
11222
          setAgent((Agent)value);
11223
        }
11224
        break;
11225
 
11226
      case ROLE:
11227
        if (value == null) {
11228
          unsetRole();
11229
        } else {
11230
          setRole((List<String>)value);
11231
        }
11232
        break;
11233
 
11234
      }
11235
    }
11236
 
11237
    public Object getFieldValue(_Fields field) {
11238
      switch (field) {
11239
      case AGENT:
11240
        return getAgent();
11241
 
11242
      case ROLE:
11243
        return getRole();
11244
 
11245
      }
11246
      throw new IllegalStateException();
11247
    }
11248
 
11249
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11250
    public boolean isSet(_Fields field) {
11251
      if (field == null) {
11252
        throw new IllegalArgumentException();
11253
      }
11254
 
11255
      switch (field) {
11256
      case AGENT:
11257
        return isSetAgent();
11258
      case ROLE:
11259
        return isSetRole();
11260
      }
11261
      throw new IllegalStateException();
11262
    }
11263
 
11264
    @Override
11265
    public boolean equals(Object that) {
11266
      if (that == null)
11267
        return false;
11268
      if (that instanceof insertAgent_args)
11269
        return this.equals((insertAgent_args)that);
11270
      return false;
11271
    }
11272
 
11273
    public boolean equals(insertAgent_args that) {
11274
      if (that == null)
11275
        return false;
11276
 
11277
      boolean this_present_agent = true && this.isSetAgent();
11278
      boolean that_present_agent = true && that.isSetAgent();
11279
      if (this_present_agent || that_present_agent) {
11280
        if (!(this_present_agent && that_present_agent))
11281
          return false;
11282
        if (!this.agent.equals(that.agent))
11283
          return false;
11284
      }
11285
 
11286
      boolean this_present_role = true && this.isSetRole();
11287
      boolean that_present_role = true && that.isSetRole();
11288
      if (this_present_role || that_present_role) {
11289
        if (!(this_present_role && that_present_role))
11290
          return false;
11291
        if (!this.role.equals(that.role))
11292
          return false;
11293
      }
11294
 
11295
      return true;
11296
    }
11297
 
11298
    @Override
11299
    public int hashCode() {
11300
      return 0;
11301
    }
11302
 
11303
    public int compareTo(insertAgent_args other) {
11304
      if (!getClass().equals(other.getClass())) {
11305
        return getClass().getName().compareTo(other.getClass().getName());
11306
      }
11307
 
11308
      int lastComparison = 0;
11309
      insertAgent_args typedOther = (insertAgent_args)other;
11310
 
11311
      lastComparison = Boolean.valueOf(isSetAgent()).compareTo(typedOther.isSetAgent());
11312
      if (lastComparison != 0) {
11313
        return lastComparison;
11314
      }
11315
      if (isSetAgent()) {
11316
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agent, typedOther.agent);
11317
        if (lastComparison != 0) {
11318
          return lastComparison;
11319
        }
11320
      }
11321
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
11322
      if (lastComparison != 0) {
11323
        return lastComparison;
11324
      }
11325
      if (isSetRole()) {
11326
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
11327
        if (lastComparison != 0) {
11328
          return lastComparison;
11329
        }
11330
      }
11331
      return 0;
11332
    }
11333
 
11334
    public _Fields fieldForId(int fieldId) {
11335
      return _Fields.findByThriftId(fieldId);
11336
    }
11337
 
11338
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11339
      org.apache.thrift.protocol.TField field;
11340
      iprot.readStructBegin();
11341
      while (true)
11342
      {
11343
        field = iprot.readFieldBegin();
11344
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11345
          break;
11346
        }
11347
        switch (field.id) {
11348
          case 1: // AGENT
11349
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
11350
              this.agent = new Agent();
11351
              this.agent.read(iprot);
11352
            } else { 
11353
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11354
            }
11355
            break;
11356
          case 2: // ROLE
11357
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11358
              {
5287 amar.kumar 11359
                org.apache.thrift.protocol.TList _list40 = iprot.readListBegin();
11360
                this.role = new ArrayList<String>(_list40.size);
11361
                for (int _i41 = 0; _i41 < _list40.size; ++_i41)
4793 amar.kumar 11362
                {
5287 amar.kumar 11363
                  String _elem42; // required
11364
                  _elem42 = iprot.readString();
11365
                  this.role.add(_elem42);
4793 amar.kumar 11366
                }
11367
                iprot.readListEnd();
11368
              }
11369
            } else { 
11370
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11371
            }
11372
            break;
11373
          default:
11374
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11375
        }
11376
        iprot.readFieldEnd();
11377
      }
11378
      iprot.readStructEnd();
11379
      validate();
11380
    }
11381
 
11382
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11383
      validate();
11384
 
11385
      oprot.writeStructBegin(STRUCT_DESC);
11386
      if (this.agent != null) {
11387
        oprot.writeFieldBegin(AGENT_FIELD_DESC);
11388
        this.agent.write(oprot);
11389
        oprot.writeFieldEnd();
11390
      }
11391
      if (this.role != null) {
11392
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
11393
        {
11394
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
5287 amar.kumar 11395
          for (String _iter43 : this.role)
4793 amar.kumar 11396
          {
5287 amar.kumar 11397
            oprot.writeString(_iter43);
4793 amar.kumar 11398
          }
11399
          oprot.writeListEnd();
11400
        }
11401
        oprot.writeFieldEnd();
11402
      }
11403
      oprot.writeFieldStop();
11404
      oprot.writeStructEnd();
11405
    }
11406
 
11407
    @Override
11408
    public String toString() {
11409
      StringBuilder sb = new StringBuilder("insertAgent_args(");
11410
      boolean first = true;
11411
 
11412
      sb.append("agent:");
11413
      if (this.agent == null) {
11414
        sb.append("null");
11415
      } else {
11416
        sb.append(this.agent);
11417
      }
11418
      first = false;
11419
      if (!first) sb.append(", ");
11420
      sb.append("role:");
11421
      if (this.role == null) {
11422
        sb.append("null");
11423
      } else {
11424
        sb.append(this.role);
11425
      }
11426
      first = false;
11427
      sb.append(")");
11428
      return sb.toString();
11429
    }
11430
 
11431
    public void validate() throws org.apache.thrift.TException {
11432
      // check for required fields
11433
    }
11434
 
11435
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11436
      try {
11437
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11438
      } catch (org.apache.thrift.TException te) {
11439
        throw new java.io.IOException(te);
11440
      }
11441
    }
11442
 
11443
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11444
      try {
11445
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11446
      } catch (org.apache.thrift.TException te) {
11447
        throw new java.io.IOException(te);
11448
      }
11449
    }
11450
 
11451
  }
11452
 
11453
  public static class insertAgent_result implements org.apache.thrift.TBase<insertAgent_result, insertAgent_result._Fields>, java.io.Serializable, Cloneable   {
11454
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_result");
11455
 
11456
 
11457
 
11458
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11459
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11460
;
11461
 
11462
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11463
 
11464
      static {
11465
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11466
          byName.put(field.getFieldName(), field);
11467
        }
11468
      }
11469
 
11470
      /**
11471
       * Find the _Fields constant that matches fieldId, or null if its not found.
11472
       */
11473
      public static _Fields findByThriftId(int fieldId) {
11474
        switch(fieldId) {
11475
          default:
11476
            return null;
11477
        }
11478
      }
11479
 
11480
      /**
11481
       * Find the _Fields constant that matches fieldId, throwing an exception
11482
       * if it is not found.
11483
       */
11484
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11485
        _Fields fields = findByThriftId(fieldId);
11486
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11487
        return fields;
11488
      }
11489
 
11490
      /**
11491
       * Find the _Fields constant that matches name, or null if its not found.
11492
       */
11493
      public static _Fields findByName(String name) {
11494
        return byName.get(name);
11495
      }
11496
 
11497
      private final short _thriftId;
11498
      private final String _fieldName;
11499
 
11500
      _Fields(short thriftId, String fieldName) {
11501
        _thriftId = thriftId;
11502
        _fieldName = fieldName;
11503
      }
11504
 
11505
      public short getThriftFieldId() {
11506
        return _thriftId;
11507
      }
11508
 
11509
      public String getFieldName() {
11510
        return _fieldName;
11511
      }
11512
    }
11513
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11514
    static {
11515
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11516
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11517
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_result.class, metaDataMap);
11518
    }
11519
 
11520
    public insertAgent_result() {
11521
    }
11522
 
11523
    /**
11524
     * Performs a deep copy on <i>other</i>.
11525
     */
11526
    public insertAgent_result(insertAgent_result other) {
11527
    }
11528
 
11529
    public insertAgent_result deepCopy() {
11530
      return new insertAgent_result(this);
11531
    }
11532
 
11533
    @Override
11534
    public void clear() {
11535
    }
11536
 
11537
    public void setFieldValue(_Fields field, Object value) {
11538
      switch (field) {
11539
      }
11540
    }
11541
 
11542
    public Object getFieldValue(_Fields field) {
11543
      switch (field) {
11544
      }
11545
      throw new IllegalStateException();
11546
    }
11547
 
11548
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11549
    public boolean isSet(_Fields field) {
11550
      if (field == null) {
11551
        throw new IllegalArgumentException();
11552
      }
11553
 
11554
      switch (field) {
11555
      }
11556
      throw new IllegalStateException();
11557
    }
11558
 
11559
    @Override
11560
    public boolean equals(Object that) {
11561
      if (that == null)
11562
        return false;
11563
      if (that instanceof insertAgent_result)
11564
        return this.equals((insertAgent_result)that);
11565
      return false;
11566
    }
11567
 
11568
    public boolean equals(insertAgent_result that) {
11569
      if (that == null)
11570
        return false;
11571
 
11572
      return true;
11573
    }
11574
 
11575
    @Override
11576
    public int hashCode() {
11577
      return 0;
11578
    }
11579
 
11580
    public int compareTo(insertAgent_result other) {
11581
      if (!getClass().equals(other.getClass())) {
11582
        return getClass().getName().compareTo(other.getClass().getName());
11583
      }
11584
 
11585
      int lastComparison = 0;
11586
      insertAgent_result typedOther = (insertAgent_result)other;
11587
 
11588
      return 0;
11589
    }
11590
 
11591
    public _Fields fieldForId(int fieldId) {
11592
      return _Fields.findByThriftId(fieldId);
11593
    }
11594
 
11595
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11596
      org.apache.thrift.protocol.TField field;
11597
      iprot.readStructBegin();
11598
      while (true)
11599
      {
11600
        field = iprot.readFieldBegin();
11601
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11602
          break;
11603
        }
11604
        switch (field.id) {
11605
          default:
11606
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11607
        }
11608
        iprot.readFieldEnd();
11609
      }
11610
      iprot.readStructEnd();
11611
      validate();
11612
    }
11613
 
11614
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
11615
      oprot.writeStructBegin(STRUCT_DESC);
11616
 
11617
      oprot.writeFieldStop();
11618
      oprot.writeStructEnd();
11619
    }
11620
 
11621
    @Override
11622
    public String toString() {
11623
      StringBuilder sb = new StringBuilder("insertAgent_result(");
11624
      boolean first = true;
11625
 
11626
      sb.append(")");
11627
      return sb.toString();
11628
    }
11629
 
11630
    public void validate() throws org.apache.thrift.TException {
11631
      // check for required fields
11632
    }
11633
 
11634
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
11635
      try {
11636
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
11637
      } catch (org.apache.thrift.TException te) {
11638
        throw new java.io.IOException(te);
11639
      }
11640
    }
11641
 
11642
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
11643
      try {
11644
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
11645
      } catch (org.apache.thrift.TException te) {
11646
        throw new java.io.IOException(te);
11647
      }
11648
    }
11649
 
11650
  }
11651
 
5169 amar.kumar 11652
  public static class changeAgentRole_args implements org.apache.thrift.TBase<changeAgentRole_args, changeAgentRole_args._Fields>, java.io.Serializable, Cloneable   {
11653
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_args");
11654
 
11655
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
11656
    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);
11657
 
11658
    private long id; // required
11659
    private List<String> role; // required
11660
 
11661
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11662
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
11663
      ID((short)1, "id"),
11664
      ROLE((short)2, "role");
11665
 
11666
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11667
 
11668
      static {
11669
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
11670
          byName.put(field.getFieldName(), field);
11671
        }
11672
      }
11673
 
11674
      /**
11675
       * Find the _Fields constant that matches fieldId, or null if its not found.
11676
       */
11677
      public static _Fields findByThriftId(int fieldId) {
11678
        switch(fieldId) {
11679
          case 1: // ID
11680
            return ID;
11681
          case 2: // ROLE
11682
            return ROLE;
11683
          default:
11684
            return null;
11685
        }
11686
      }
11687
 
11688
      /**
11689
       * Find the _Fields constant that matches fieldId, throwing an exception
11690
       * if it is not found.
11691
       */
11692
      public static _Fields findByThriftIdOrThrow(int fieldId) {
11693
        _Fields fields = findByThriftId(fieldId);
11694
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
11695
        return fields;
11696
      }
11697
 
11698
      /**
11699
       * Find the _Fields constant that matches name, or null if its not found.
11700
       */
11701
      public static _Fields findByName(String name) {
11702
        return byName.get(name);
11703
      }
11704
 
11705
      private final short _thriftId;
11706
      private final String _fieldName;
11707
 
11708
      _Fields(short thriftId, String fieldName) {
11709
        _thriftId = thriftId;
11710
        _fieldName = fieldName;
11711
      }
11712
 
11713
      public short getThriftFieldId() {
11714
        return _thriftId;
11715
      }
11716
 
11717
      public String getFieldName() {
11718
        return _fieldName;
11719
      }
11720
    }
11721
 
11722
    // isset id assignments
11723
    private static final int __ID_ISSET_ID = 0;
11724
    private BitSet __isset_bit_vector = new BitSet(1);
11725
 
11726
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
11727
    static {
11728
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
11729
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11730
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
11731
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
11732
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
11733
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
11734
      metaDataMap = Collections.unmodifiableMap(tmpMap);
11735
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_args.class, metaDataMap);
11736
    }
11737
 
11738
    public changeAgentRole_args() {
11739
    }
11740
 
11741
    public changeAgentRole_args(
11742
      long id,
11743
      List<String> role)
11744
    {
11745
      this();
11746
      this.id = id;
11747
      setIdIsSet(true);
11748
      this.role = role;
11749
    }
11750
 
11751
    /**
11752
     * Performs a deep copy on <i>other</i>.
11753
     */
11754
    public changeAgentRole_args(changeAgentRole_args other) {
11755
      __isset_bit_vector.clear();
11756
      __isset_bit_vector.or(other.__isset_bit_vector);
11757
      this.id = other.id;
11758
      if (other.isSetRole()) {
11759
        List<String> __this__role = new ArrayList<String>();
11760
        for (String other_element : other.role) {
11761
          __this__role.add(other_element);
11762
        }
11763
        this.role = __this__role;
11764
      }
11765
    }
11766
 
11767
    public changeAgentRole_args deepCopy() {
11768
      return new changeAgentRole_args(this);
11769
    }
11770
 
11771
    @Override
11772
    public void clear() {
11773
      setIdIsSet(false);
11774
      this.id = 0;
11775
      this.role = null;
11776
    }
11777
 
11778
    public long getId() {
11779
      return this.id;
11780
    }
11781
 
11782
    public void setId(long id) {
11783
      this.id = id;
11784
      setIdIsSet(true);
11785
    }
11786
 
11787
    public void unsetId() {
11788
      __isset_bit_vector.clear(__ID_ISSET_ID);
11789
    }
11790
 
11791
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
11792
    public boolean isSetId() {
11793
      return __isset_bit_vector.get(__ID_ISSET_ID);
11794
    }
11795
 
11796
    public void setIdIsSet(boolean value) {
11797
      __isset_bit_vector.set(__ID_ISSET_ID, value);
11798
    }
11799
 
11800
    public int getRoleSize() {
11801
      return (this.role == null) ? 0 : this.role.size();
11802
    }
11803
 
11804
    public java.util.Iterator<String> getRoleIterator() {
11805
      return (this.role == null) ? null : this.role.iterator();
11806
    }
11807
 
11808
    public void addToRole(String elem) {
11809
      if (this.role == null) {
11810
        this.role = new ArrayList<String>();
11811
      }
11812
      this.role.add(elem);
11813
    }
11814
 
11815
    public List<String> getRole() {
11816
      return this.role;
11817
    }
11818
 
11819
    public void setRole(List<String> role) {
11820
      this.role = role;
11821
    }
11822
 
11823
    public void unsetRole() {
11824
      this.role = null;
11825
    }
11826
 
11827
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
11828
    public boolean isSetRole() {
11829
      return this.role != null;
11830
    }
11831
 
11832
    public void setRoleIsSet(boolean value) {
11833
      if (!value) {
11834
        this.role = null;
11835
      }
11836
    }
11837
 
11838
    public void setFieldValue(_Fields field, Object value) {
11839
      switch (field) {
11840
      case ID:
11841
        if (value == null) {
11842
          unsetId();
11843
        } else {
11844
          setId((Long)value);
11845
        }
11846
        break;
11847
 
11848
      case ROLE:
11849
        if (value == null) {
11850
          unsetRole();
11851
        } else {
11852
          setRole((List<String>)value);
11853
        }
11854
        break;
11855
 
11856
      }
11857
    }
11858
 
11859
    public Object getFieldValue(_Fields field) {
11860
      switch (field) {
11861
      case ID:
11862
        return Long.valueOf(getId());
11863
 
11864
      case ROLE:
11865
        return getRole();
11866
 
11867
      }
11868
      throw new IllegalStateException();
11869
    }
11870
 
11871
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
11872
    public boolean isSet(_Fields field) {
11873
      if (field == null) {
11874
        throw new IllegalArgumentException();
11875
      }
11876
 
11877
      switch (field) {
11878
      case ID:
11879
        return isSetId();
11880
      case ROLE:
11881
        return isSetRole();
11882
      }
11883
      throw new IllegalStateException();
11884
    }
11885
 
11886
    @Override
11887
    public boolean equals(Object that) {
11888
      if (that == null)
11889
        return false;
11890
      if (that instanceof changeAgentRole_args)
11891
        return this.equals((changeAgentRole_args)that);
11892
      return false;
11893
    }
11894
 
11895
    public boolean equals(changeAgentRole_args that) {
11896
      if (that == null)
11897
        return false;
11898
 
11899
      boolean this_present_id = true;
11900
      boolean that_present_id = true;
11901
      if (this_present_id || that_present_id) {
11902
        if (!(this_present_id && that_present_id))
11903
          return false;
11904
        if (this.id != that.id)
11905
          return false;
11906
      }
11907
 
11908
      boolean this_present_role = true && this.isSetRole();
11909
      boolean that_present_role = true && that.isSetRole();
11910
      if (this_present_role || that_present_role) {
11911
        if (!(this_present_role && that_present_role))
11912
          return false;
11913
        if (!this.role.equals(that.role))
11914
          return false;
11915
      }
11916
 
11917
      return true;
11918
    }
11919
 
11920
    @Override
11921
    public int hashCode() {
11922
      return 0;
11923
    }
11924
 
11925
    public int compareTo(changeAgentRole_args other) {
11926
      if (!getClass().equals(other.getClass())) {
11927
        return getClass().getName().compareTo(other.getClass().getName());
11928
      }
11929
 
11930
      int lastComparison = 0;
11931
      changeAgentRole_args typedOther = (changeAgentRole_args)other;
11932
 
11933
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
11934
      if (lastComparison != 0) {
11935
        return lastComparison;
11936
      }
11937
      if (isSetId()) {
11938
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
11939
        if (lastComparison != 0) {
11940
          return lastComparison;
11941
        }
11942
      }
11943
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
11944
      if (lastComparison != 0) {
11945
        return lastComparison;
11946
      }
11947
      if (isSetRole()) {
11948
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
11949
        if (lastComparison != 0) {
11950
          return lastComparison;
11951
        }
11952
      }
11953
      return 0;
11954
    }
11955
 
11956
    public _Fields fieldForId(int fieldId) {
11957
      return _Fields.findByThriftId(fieldId);
11958
    }
11959
 
11960
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
11961
      org.apache.thrift.protocol.TField field;
11962
      iprot.readStructBegin();
11963
      while (true)
11964
      {
11965
        field = iprot.readFieldBegin();
11966
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
11967
          break;
11968
        }
11969
        switch (field.id) {
11970
          case 1: // ID
11971
            if (field.type == org.apache.thrift.protocol.TType.I64) {
11972
              this.id = iprot.readI64();
11973
              setIdIsSet(true);
11974
            } else { 
11975
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11976
            }
11977
            break;
11978
          case 2: // ROLE
11979
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
11980
              {
5287 amar.kumar 11981
                org.apache.thrift.protocol.TList _list44 = iprot.readListBegin();
11982
                this.role = new ArrayList<String>(_list44.size);
11983
                for (int _i45 = 0; _i45 < _list44.size; ++_i45)
5169 amar.kumar 11984
                {
5287 amar.kumar 11985
                  String _elem46; // required
11986
                  _elem46 = iprot.readString();
11987
                  this.role.add(_elem46);
5169 amar.kumar 11988
                }
11989
                iprot.readListEnd();
11990
              }
11991
            } else { 
11992
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11993
            }
11994
            break;
11995
          default:
11996
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
11997
        }
11998
        iprot.readFieldEnd();
11999
      }
12000
      iprot.readStructEnd();
12001
      validate();
12002
    }
12003
 
12004
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12005
      validate();
12006
 
12007
      oprot.writeStructBegin(STRUCT_DESC);
12008
      oprot.writeFieldBegin(ID_FIELD_DESC);
12009
      oprot.writeI64(this.id);
12010
      oprot.writeFieldEnd();
12011
      if (this.role != null) {
12012
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
12013
        {
12014
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
5287 amar.kumar 12015
          for (String _iter47 : this.role)
5169 amar.kumar 12016
          {
5287 amar.kumar 12017
            oprot.writeString(_iter47);
5169 amar.kumar 12018
          }
12019
          oprot.writeListEnd();
12020
        }
12021
        oprot.writeFieldEnd();
12022
      }
12023
      oprot.writeFieldStop();
12024
      oprot.writeStructEnd();
12025
    }
12026
 
12027
    @Override
12028
    public String toString() {
12029
      StringBuilder sb = new StringBuilder("changeAgentRole_args(");
12030
      boolean first = true;
12031
 
12032
      sb.append("id:");
12033
      sb.append(this.id);
12034
      first = false;
12035
      if (!first) sb.append(", ");
12036
      sb.append("role:");
12037
      if (this.role == null) {
12038
        sb.append("null");
12039
      } else {
12040
        sb.append(this.role);
12041
      }
12042
      first = false;
12043
      sb.append(")");
12044
      return sb.toString();
12045
    }
12046
 
12047
    public void validate() throws org.apache.thrift.TException {
12048
      // check for required fields
12049
    }
12050
 
12051
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12052
      try {
12053
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12054
      } catch (org.apache.thrift.TException te) {
12055
        throw new java.io.IOException(te);
12056
      }
12057
    }
12058
 
12059
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12060
      try {
12061
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12062
        __isset_bit_vector = new BitSet(1);
12063
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12064
      } catch (org.apache.thrift.TException te) {
12065
        throw new java.io.IOException(te);
12066
      }
12067
    }
12068
 
12069
  }
12070
 
12071
  public static class changeAgentRole_result implements org.apache.thrift.TBase<changeAgentRole_result, changeAgentRole_result._Fields>, java.io.Serializable, Cloneable   {
12072
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentRole_result");
12073
 
12074
 
12075
 
12076
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12077
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12078
;
12079
 
12080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12081
 
12082
      static {
12083
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12084
          byName.put(field.getFieldName(), field);
12085
        }
12086
      }
12087
 
12088
      /**
12089
       * Find the _Fields constant that matches fieldId, or null if its not found.
12090
       */
12091
      public static _Fields findByThriftId(int fieldId) {
12092
        switch(fieldId) {
12093
          default:
12094
            return null;
12095
        }
12096
      }
12097
 
12098
      /**
12099
       * Find the _Fields constant that matches fieldId, throwing an exception
12100
       * if it is not found.
12101
       */
12102
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12103
        _Fields fields = findByThriftId(fieldId);
12104
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12105
        return fields;
12106
      }
12107
 
12108
      /**
12109
       * Find the _Fields constant that matches name, or null if its not found.
12110
       */
12111
      public static _Fields findByName(String name) {
12112
        return byName.get(name);
12113
      }
12114
 
12115
      private final short _thriftId;
12116
      private final String _fieldName;
12117
 
12118
      _Fields(short thriftId, String fieldName) {
12119
        _thriftId = thriftId;
12120
        _fieldName = fieldName;
12121
      }
12122
 
12123
      public short getThriftFieldId() {
12124
        return _thriftId;
12125
      }
12126
 
12127
      public String getFieldName() {
12128
        return _fieldName;
12129
      }
12130
    }
12131
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12132
    static {
12133
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12134
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12135
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentRole_result.class, metaDataMap);
12136
    }
12137
 
12138
    public changeAgentRole_result() {
12139
    }
12140
 
12141
    /**
12142
     * Performs a deep copy on <i>other</i>.
12143
     */
12144
    public changeAgentRole_result(changeAgentRole_result other) {
12145
    }
12146
 
12147
    public changeAgentRole_result deepCopy() {
12148
      return new changeAgentRole_result(this);
12149
    }
12150
 
12151
    @Override
12152
    public void clear() {
12153
    }
12154
 
12155
    public void setFieldValue(_Fields field, Object value) {
12156
      switch (field) {
12157
      }
12158
    }
12159
 
12160
    public Object getFieldValue(_Fields field) {
12161
      switch (field) {
12162
      }
12163
      throw new IllegalStateException();
12164
    }
12165
 
12166
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12167
    public boolean isSet(_Fields field) {
12168
      if (field == null) {
12169
        throw new IllegalArgumentException();
12170
      }
12171
 
12172
      switch (field) {
12173
      }
12174
      throw new IllegalStateException();
12175
    }
12176
 
12177
    @Override
12178
    public boolean equals(Object that) {
12179
      if (that == null)
12180
        return false;
12181
      if (that instanceof changeAgentRole_result)
12182
        return this.equals((changeAgentRole_result)that);
12183
      return false;
12184
    }
12185
 
12186
    public boolean equals(changeAgentRole_result that) {
12187
      if (that == null)
12188
        return false;
12189
 
12190
      return true;
12191
    }
12192
 
12193
    @Override
12194
    public int hashCode() {
12195
      return 0;
12196
    }
12197
 
12198
    public int compareTo(changeAgentRole_result other) {
12199
      if (!getClass().equals(other.getClass())) {
12200
        return getClass().getName().compareTo(other.getClass().getName());
12201
      }
12202
 
12203
      int lastComparison = 0;
12204
      changeAgentRole_result typedOther = (changeAgentRole_result)other;
12205
 
12206
      return 0;
12207
    }
12208
 
12209
    public _Fields fieldForId(int fieldId) {
12210
      return _Fields.findByThriftId(fieldId);
12211
    }
12212
 
12213
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12214
      org.apache.thrift.protocol.TField field;
12215
      iprot.readStructBegin();
12216
      while (true)
12217
      {
12218
        field = iprot.readFieldBegin();
12219
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12220
          break;
12221
        }
12222
        switch (field.id) {
12223
          default:
12224
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12225
        }
12226
        iprot.readFieldEnd();
12227
      }
12228
      iprot.readStructEnd();
12229
      validate();
12230
    }
12231
 
12232
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12233
      oprot.writeStructBegin(STRUCT_DESC);
12234
 
12235
      oprot.writeFieldStop();
12236
      oprot.writeStructEnd();
12237
    }
12238
 
12239
    @Override
12240
    public String toString() {
12241
      StringBuilder sb = new StringBuilder("changeAgentRole_result(");
12242
      boolean first = true;
12243
 
12244
      sb.append(")");
12245
      return sb.toString();
12246
    }
12247
 
12248
    public void validate() throws org.apache.thrift.TException {
12249
      // check for required fields
12250
    }
12251
 
12252
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12253
      try {
12254
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12255
      } catch (org.apache.thrift.TException te) {
12256
        throw new java.io.IOException(te);
12257
      }
12258
    }
12259
 
12260
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12261
      try {
12262
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12263
      } catch (org.apache.thrift.TException te) {
12264
        throw new java.io.IOException(te);
12265
      }
12266
    }
12267
 
12268
  }
12269
 
12270
  public static class getOpenTicketCountForAgent_args implements org.apache.thrift.TBase<getOpenTicketCountForAgent_args, getOpenTicketCountForAgent_args._Fields>, java.io.Serializable, Cloneable   {
12271
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_args");
12272
 
12273
    private static final org.apache.thrift.protocol.TField AGENT_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("agentId", org.apache.thrift.protocol.TType.I64, (short)1);
12274
 
12275
    private long agentId; // required
12276
 
12277
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12278
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12279
      AGENT_ID((short)1, "agentId");
12280
 
12281
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12282
 
12283
      static {
12284
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12285
          byName.put(field.getFieldName(), field);
12286
        }
12287
      }
12288
 
12289
      /**
12290
       * Find the _Fields constant that matches fieldId, or null if its not found.
12291
       */
12292
      public static _Fields findByThriftId(int fieldId) {
12293
        switch(fieldId) {
12294
          case 1: // AGENT_ID
12295
            return AGENT_ID;
12296
          default:
12297
            return null;
12298
        }
12299
      }
12300
 
12301
      /**
12302
       * Find the _Fields constant that matches fieldId, throwing an exception
12303
       * if it is not found.
12304
       */
12305
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12306
        _Fields fields = findByThriftId(fieldId);
12307
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12308
        return fields;
12309
      }
12310
 
12311
      /**
12312
       * Find the _Fields constant that matches name, or null if its not found.
12313
       */
12314
      public static _Fields findByName(String name) {
12315
        return byName.get(name);
12316
      }
12317
 
12318
      private final short _thriftId;
12319
      private final String _fieldName;
12320
 
12321
      _Fields(short thriftId, String fieldName) {
12322
        _thriftId = thriftId;
12323
        _fieldName = fieldName;
12324
      }
12325
 
12326
      public short getThriftFieldId() {
12327
        return _thriftId;
12328
      }
12329
 
12330
      public String getFieldName() {
12331
        return _fieldName;
12332
      }
12333
    }
12334
 
12335
    // isset id assignments
12336
    private static final int __AGENTID_ISSET_ID = 0;
12337
    private BitSet __isset_bit_vector = new BitSet(1);
12338
 
12339
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12340
    static {
12341
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12342
      tmpMap.put(_Fields.AGENT_ID, new org.apache.thrift.meta_data.FieldMetaData("agentId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12343
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
12344
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12345
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_args.class, metaDataMap);
12346
    }
12347
 
12348
    public getOpenTicketCountForAgent_args() {
12349
    }
12350
 
12351
    public getOpenTicketCountForAgent_args(
12352
      long agentId)
12353
    {
12354
      this();
12355
      this.agentId = agentId;
12356
      setAgentIdIsSet(true);
12357
    }
12358
 
12359
    /**
12360
     * Performs a deep copy on <i>other</i>.
12361
     */
12362
    public getOpenTicketCountForAgent_args(getOpenTicketCountForAgent_args other) {
12363
      __isset_bit_vector.clear();
12364
      __isset_bit_vector.or(other.__isset_bit_vector);
12365
      this.agentId = other.agentId;
12366
    }
12367
 
12368
    public getOpenTicketCountForAgent_args deepCopy() {
12369
      return new getOpenTicketCountForAgent_args(this);
12370
    }
12371
 
12372
    @Override
12373
    public void clear() {
12374
      setAgentIdIsSet(false);
12375
      this.agentId = 0;
12376
    }
12377
 
12378
    public long getAgentId() {
12379
      return this.agentId;
12380
    }
12381
 
12382
    public void setAgentId(long agentId) {
12383
      this.agentId = agentId;
12384
      setAgentIdIsSet(true);
12385
    }
12386
 
12387
    public void unsetAgentId() {
12388
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
12389
    }
12390
 
12391
    /** Returns true if field agentId is set (has been assigned a value) and false otherwise */
12392
    public boolean isSetAgentId() {
12393
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
12394
    }
12395
 
12396
    public void setAgentIdIsSet(boolean value) {
12397
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
12398
    }
12399
 
12400
    public void setFieldValue(_Fields field, Object value) {
12401
      switch (field) {
12402
      case AGENT_ID:
12403
        if (value == null) {
12404
          unsetAgentId();
12405
        } else {
12406
          setAgentId((Long)value);
12407
        }
12408
        break;
12409
 
12410
      }
12411
    }
12412
 
12413
    public Object getFieldValue(_Fields field) {
12414
      switch (field) {
12415
      case AGENT_ID:
12416
        return Long.valueOf(getAgentId());
12417
 
12418
      }
12419
      throw new IllegalStateException();
12420
    }
12421
 
12422
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12423
    public boolean isSet(_Fields field) {
12424
      if (field == null) {
12425
        throw new IllegalArgumentException();
12426
      }
12427
 
12428
      switch (field) {
12429
      case AGENT_ID:
12430
        return isSetAgentId();
12431
      }
12432
      throw new IllegalStateException();
12433
    }
12434
 
12435
    @Override
12436
    public boolean equals(Object that) {
12437
      if (that == null)
12438
        return false;
12439
      if (that instanceof getOpenTicketCountForAgent_args)
12440
        return this.equals((getOpenTicketCountForAgent_args)that);
12441
      return false;
12442
    }
12443
 
12444
    public boolean equals(getOpenTicketCountForAgent_args that) {
12445
      if (that == null)
12446
        return false;
12447
 
12448
      boolean this_present_agentId = true;
12449
      boolean that_present_agentId = true;
12450
      if (this_present_agentId || that_present_agentId) {
12451
        if (!(this_present_agentId && that_present_agentId))
12452
          return false;
12453
        if (this.agentId != that.agentId)
12454
          return false;
12455
      }
12456
 
12457
      return true;
12458
    }
12459
 
12460
    @Override
12461
    public int hashCode() {
12462
      return 0;
12463
    }
12464
 
12465
    public int compareTo(getOpenTicketCountForAgent_args other) {
12466
      if (!getClass().equals(other.getClass())) {
12467
        return getClass().getName().compareTo(other.getClass().getName());
12468
      }
12469
 
12470
      int lastComparison = 0;
12471
      getOpenTicketCountForAgent_args typedOther = (getOpenTicketCountForAgent_args)other;
12472
 
12473
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(typedOther.isSetAgentId());
12474
      if (lastComparison != 0) {
12475
        return lastComparison;
12476
      }
12477
      if (isSetAgentId()) {
12478
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agentId, typedOther.agentId);
12479
        if (lastComparison != 0) {
12480
          return lastComparison;
12481
        }
12482
      }
12483
      return 0;
12484
    }
12485
 
12486
    public _Fields fieldForId(int fieldId) {
12487
      return _Fields.findByThriftId(fieldId);
12488
    }
12489
 
12490
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12491
      org.apache.thrift.protocol.TField field;
12492
      iprot.readStructBegin();
12493
      while (true)
12494
      {
12495
        field = iprot.readFieldBegin();
12496
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12497
          break;
12498
        }
12499
        switch (field.id) {
12500
          case 1: // AGENT_ID
12501
            if (field.type == org.apache.thrift.protocol.TType.I64) {
12502
              this.agentId = iprot.readI64();
12503
              setAgentIdIsSet(true);
12504
            } else { 
12505
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12506
            }
12507
            break;
12508
          default:
12509
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12510
        }
12511
        iprot.readFieldEnd();
12512
      }
12513
      iprot.readStructEnd();
12514
      validate();
12515
    }
12516
 
12517
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12518
      validate();
12519
 
12520
      oprot.writeStructBegin(STRUCT_DESC);
12521
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
12522
      oprot.writeI64(this.agentId);
12523
      oprot.writeFieldEnd();
12524
      oprot.writeFieldStop();
12525
      oprot.writeStructEnd();
12526
    }
12527
 
12528
    @Override
12529
    public String toString() {
12530
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_args(");
12531
      boolean first = true;
12532
 
12533
      sb.append("agentId:");
12534
      sb.append(this.agentId);
12535
      first = false;
12536
      sb.append(")");
12537
      return sb.toString();
12538
    }
12539
 
12540
    public void validate() throws org.apache.thrift.TException {
12541
      // check for required fields
12542
    }
12543
 
12544
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12545
      try {
12546
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12547
      } catch (org.apache.thrift.TException te) {
12548
        throw new java.io.IOException(te);
12549
      }
12550
    }
12551
 
12552
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12553
      try {
12554
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
12555
        __isset_bit_vector = new BitSet(1);
12556
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12557
      } catch (org.apache.thrift.TException te) {
12558
        throw new java.io.IOException(te);
12559
      }
12560
    }
12561
 
12562
  }
12563
 
12564
  public static class getOpenTicketCountForAgent_result implements org.apache.thrift.TBase<getOpenTicketCountForAgent_result, getOpenTicketCountForAgent_result._Fields>, java.io.Serializable, Cloneable   {
12565
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketCountForAgent_result");
12566
 
12567
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I32, (short)0);
12568
 
12569
    private int success; // required
12570
 
12571
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12572
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12573
      SUCCESS((short)0, "success");
12574
 
12575
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12576
 
12577
      static {
12578
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12579
          byName.put(field.getFieldName(), field);
12580
        }
12581
      }
12582
 
12583
      /**
12584
       * Find the _Fields constant that matches fieldId, or null if its not found.
12585
       */
12586
      public static _Fields findByThriftId(int fieldId) {
12587
        switch(fieldId) {
12588
          case 0: // SUCCESS
12589
            return SUCCESS;
12590
          default:
12591
            return null;
12592
        }
12593
      }
12594
 
12595
      /**
12596
       * Find the _Fields constant that matches fieldId, throwing an exception
12597
       * if it is not found.
12598
       */
12599
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12600
        _Fields fields = findByThriftId(fieldId);
12601
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12602
        return fields;
12603
      }
12604
 
12605
      /**
12606
       * Find the _Fields constant that matches name, or null if its not found.
12607
       */
12608
      public static _Fields findByName(String name) {
12609
        return byName.get(name);
12610
      }
12611
 
12612
      private final short _thriftId;
12613
      private final String _fieldName;
12614
 
12615
      _Fields(short thriftId, String fieldName) {
12616
        _thriftId = thriftId;
12617
        _fieldName = fieldName;
12618
      }
12619
 
12620
      public short getThriftFieldId() {
12621
        return _thriftId;
12622
      }
12623
 
12624
      public String getFieldName() {
12625
        return _fieldName;
12626
      }
12627
    }
12628
 
12629
    // isset id assignments
12630
    private static final int __SUCCESS_ISSET_ID = 0;
12631
    private BitSet __isset_bit_vector = new BitSet(1);
12632
 
12633
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12634
    static {
12635
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12636
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
12637
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
12638
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12639
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketCountForAgent_result.class, metaDataMap);
12640
    }
12641
 
12642
    public getOpenTicketCountForAgent_result() {
12643
    }
12644
 
12645
    public getOpenTicketCountForAgent_result(
12646
      int success)
12647
    {
12648
      this();
12649
      this.success = success;
12650
      setSuccessIsSet(true);
12651
    }
12652
 
12653
    /**
12654
     * Performs a deep copy on <i>other</i>.
12655
     */
12656
    public getOpenTicketCountForAgent_result(getOpenTicketCountForAgent_result other) {
12657
      __isset_bit_vector.clear();
12658
      __isset_bit_vector.or(other.__isset_bit_vector);
12659
      this.success = other.success;
12660
    }
12661
 
12662
    public getOpenTicketCountForAgent_result deepCopy() {
12663
      return new getOpenTicketCountForAgent_result(this);
12664
    }
12665
 
12666
    @Override
12667
    public void clear() {
12668
      setSuccessIsSet(false);
12669
      this.success = 0;
12670
    }
12671
 
12672
    public int getSuccess() {
12673
      return this.success;
12674
    }
12675
 
12676
    public void setSuccess(int success) {
12677
      this.success = success;
12678
      setSuccessIsSet(true);
12679
    }
12680
 
12681
    public void unsetSuccess() {
12682
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
12683
    }
12684
 
12685
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
12686
    public boolean isSetSuccess() {
12687
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
12688
    }
12689
 
12690
    public void setSuccessIsSet(boolean value) {
12691
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
12692
    }
12693
 
12694
    public void setFieldValue(_Fields field, Object value) {
12695
      switch (field) {
12696
      case SUCCESS:
12697
        if (value == null) {
12698
          unsetSuccess();
12699
        } else {
12700
          setSuccess((Integer)value);
12701
        }
12702
        break;
12703
 
12704
      }
12705
    }
12706
 
12707
    public Object getFieldValue(_Fields field) {
12708
      switch (field) {
12709
      case SUCCESS:
12710
        return Integer.valueOf(getSuccess());
12711
 
12712
      }
12713
      throw new IllegalStateException();
12714
    }
12715
 
12716
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12717
    public boolean isSet(_Fields field) {
12718
      if (field == null) {
12719
        throw new IllegalArgumentException();
12720
      }
12721
 
12722
      switch (field) {
12723
      case SUCCESS:
12724
        return isSetSuccess();
12725
      }
12726
      throw new IllegalStateException();
12727
    }
12728
 
12729
    @Override
12730
    public boolean equals(Object that) {
12731
      if (that == null)
12732
        return false;
12733
      if (that instanceof getOpenTicketCountForAgent_result)
12734
        return this.equals((getOpenTicketCountForAgent_result)that);
12735
      return false;
12736
    }
12737
 
12738
    public boolean equals(getOpenTicketCountForAgent_result that) {
12739
      if (that == null)
12740
        return false;
12741
 
12742
      boolean this_present_success = true;
12743
      boolean that_present_success = true;
12744
      if (this_present_success || that_present_success) {
12745
        if (!(this_present_success && that_present_success))
12746
          return false;
12747
        if (this.success != that.success)
12748
          return false;
12749
      }
12750
 
12751
      return true;
12752
    }
12753
 
12754
    @Override
12755
    public int hashCode() {
12756
      return 0;
12757
    }
12758
 
12759
    public int compareTo(getOpenTicketCountForAgent_result other) {
12760
      if (!getClass().equals(other.getClass())) {
12761
        return getClass().getName().compareTo(other.getClass().getName());
12762
      }
12763
 
12764
      int lastComparison = 0;
12765
      getOpenTicketCountForAgent_result typedOther = (getOpenTicketCountForAgent_result)other;
12766
 
12767
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
12768
      if (lastComparison != 0) {
12769
        return lastComparison;
12770
      }
12771
      if (isSetSuccess()) {
12772
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
12773
        if (lastComparison != 0) {
12774
          return lastComparison;
12775
        }
12776
      }
12777
      return 0;
12778
    }
12779
 
12780
    public _Fields fieldForId(int fieldId) {
12781
      return _Fields.findByThriftId(fieldId);
12782
    }
12783
 
12784
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
12785
      org.apache.thrift.protocol.TField field;
12786
      iprot.readStructBegin();
12787
      while (true)
12788
      {
12789
        field = iprot.readFieldBegin();
12790
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
12791
          break;
12792
        }
12793
        switch (field.id) {
12794
          case 0: // SUCCESS
12795
            if (field.type == org.apache.thrift.protocol.TType.I32) {
12796
              this.success = iprot.readI32();
12797
              setSuccessIsSet(true);
12798
            } else { 
12799
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12800
            }
12801
            break;
12802
          default:
12803
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
12804
        }
12805
        iprot.readFieldEnd();
12806
      }
12807
      iprot.readStructEnd();
12808
      validate();
12809
    }
12810
 
12811
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
12812
      oprot.writeStructBegin(STRUCT_DESC);
12813
 
12814
      if (this.isSetSuccess()) {
12815
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
12816
        oprot.writeI32(this.success);
12817
        oprot.writeFieldEnd();
12818
      }
12819
      oprot.writeFieldStop();
12820
      oprot.writeStructEnd();
12821
    }
12822
 
12823
    @Override
12824
    public String toString() {
12825
      StringBuilder sb = new StringBuilder("getOpenTicketCountForAgent_result(");
12826
      boolean first = true;
12827
 
12828
      sb.append("success:");
12829
      sb.append(this.success);
12830
      first = false;
12831
      sb.append(")");
12832
      return sb.toString();
12833
    }
12834
 
12835
    public void validate() throws org.apache.thrift.TException {
12836
      // check for required fields
12837
    }
12838
 
12839
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
12840
      try {
12841
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
12842
      } catch (org.apache.thrift.TException te) {
12843
        throw new java.io.IOException(te);
12844
      }
12845
    }
12846
 
12847
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
12848
      try {
12849
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
12850
      } catch (org.apache.thrift.TException te) {
12851
        throw new java.io.IOException(te);
12852
      }
12853
    }
12854
 
12855
  }
12856
 
5909 amar.kumar 12857
  public static class getOpenTicketsMap_args implements org.apache.thrift.TBase<getOpenTicketsMap_args, getOpenTicketsMap_args._Fields>, java.io.Serializable, Cloneable   {
12858
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketsMap_args");
12859
 
12860
 
12861
 
12862
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12863
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
12864
;
12865
 
12866
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12867
 
12868
      static {
12869
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
12870
          byName.put(field.getFieldName(), field);
12871
        }
12872
      }
12873
 
12874
      /**
12875
       * Find the _Fields constant that matches fieldId, or null if its not found.
12876
       */
12877
      public static _Fields findByThriftId(int fieldId) {
12878
        switch(fieldId) {
12879
          default:
12880
            return null;
12881
        }
12882
      }
12883
 
12884
      /**
12885
       * Find the _Fields constant that matches fieldId, throwing an exception
12886
       * if it is not found.
12887
       */
12888
      public static _Fields findByThriftIdOrThrow(int fieldId) {
12889
        _Fields fields = findByThriftId(fieldId);
12890
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
12891
        return fields;
12892
      }
12893
 
12894
      /**
12895
       * Find the _Fields constant that matches name, or null if its not found.
12896
       */
12897
      public static _Fields findByName(String name) {
12898
        return byName.get(name);
12899
      }
12900
 
12901
      private final short _thriftId;
12902
      private final String _fieldName;
12903
 
12904
      _Fields(short thriftId, String fieldName) {
12905
        _thriftId = thriftId;
12906
        _fieldName = fieldName;
12907
      }
12908
 
12909
      public short getThriftFieldId() {
12910
        return _thriftId;
12911
      }
12912
 
12913
      public String getFieldName() {
12914
        return _fieldName;
12915
      }
12916
    }
12917
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
12918
    static {
12919
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
12920
      metaDataMap = Collections.unmodifiableMap(tmpMap);
12921
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketsMap_args.class, metaDataMap);
12922
    }
12923
 
12924
    public getOpenTicketsMap_args() {
12925
    }
12926
 
12927
    /**
12928
     * Performs a deep copy on <i>other</i>.
12929
     */
12930
    public getOpenTicketsMap_args(getOpenTicketsMap_args other) {
12931
    }
12932
 
12933
    public getOpenTicketsMap_args deepCopy() {
12934
      return new getOpenTicketsMap_args(this);
12935
    }
12936
 
12937
    @Override
12938
    public void clear() {
12939
    }
12940
 
12941
    public void setFieldValue(_Fields field, Object value) {
12942
      switch (field) {
12943
      }
12944
    }
12945
 
12946
    public Object getFieldValue(_Fields field) {
12947
      switch (field) {
12948
      }
12949
      throw new IllegalStateException();
12950
    }
12951
 
12952
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
12953
    public boolean isSet(_Fields field) {
12954
      if (field == null) {
12955
        throw new IllegalArgumentException();
12956
      }
12957
 
12958
      switch (field) {
12959
      }
12960
      throw new IllegalStateException();
12961
    }
12962
 
12963
    @Override
12964
    public boolean equals(Object that) {
12965
      if (that == null)
12966
        return false;
12967
      if (that instanceof getOpenTicketsMap_args)
12968
        return this.equals((getOpenTicketsMap_args)that);
12969
      return false;
12970
    }
12971
 
12972
    public boolean equals(getOpenTicketsMap_args that) {
12973
      if (that == null)
12974
        return false;
12975
 
12976
      return true;
12977
    }
12978
 
12979
    @Override
12980
    public int hashCode() {
12981
      return 0;
12982
    }
12983
 
12984
    public int compareTo(getOpenTicketsMap_args other) {
12985
      if (!getClass().equals(other.getClass())) {
12986
        return getClass().getName().compareTo(other.getClass().getName());
12987
      }
12988
 
12989
      int lastComparison = 0;
12990
      getOpenTicketsMap_args typedOther = (getOpenTicketsMap_args)other;
12991
 
12992
      return 0;
12993
    }
12994
 
12995
    public _Fields fieldForId(int fieldId) {
12996
      return _Fields.findByThriftId(fieldId);
12997
    }
12998
 
12999
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13000
      org.apache.thrift.protocol.TField field;
13001
      iprot.readStructBegin();
13002
      while (true)
13003
      {
13004
        field = iprot.readFieldBegin();
13005
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13006
          break;
13007
        }
13008
        switch (field.id) {
13009
          default:
13010
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13011
        }
13012
        iprot.readFieldEnd();
13013
      }
13014
      iprot.readStructEnd();
13015
      validate();
13016
    }
13017
 
13018
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13019
      validate();
13020
 
13021
      oprot.writeStructBegin(STRUCT_DESC);
13022
      oprot.writeFieldStop();
13023
      oprot.writeStructEnd();
13024
    }
13025
 
13026
    @Override
13027
    public String toString() {
13028
      StringBuilder sb = new StringBuilder("getOpenTicketsMap_args(");
13029
      boolean first = true;
13030
 
13031
      sb.append(")");
13032
      return sb.toString();
13033
    }
13034
 
13035
    public void validate() throws org.apache.thrift.TException {
13036
      // check for required fields
13037
    }
13038
 
13039
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13040
      try {
13041
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13042
      } catch (org.apache.thrift.TException te) {
13043
        throw new java.io.IOException(te);
13044
      }
13045
    }
13046
 
13047
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13048
      try {
13049
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13050
      } catch (org.apache.thrift.TException te) {
13051
        throw new java.io.IOException(te);
13052
      }
13053
    }
13054
 
13055
  }
13056
 
13057
  public static class getOpenTicketsMap_result implements org.apache.thrift.TBase<getOpenTicketsMap_result, getOpenTicketsMap_result._Fields>, java.io.Serializable, Cloneable   {
13058
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getOpenTicketsMap_result");
13059
 
13060
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
13061
 
13062
    private Map<String,Long> success; // required
13063
 
13064
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13065
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13066
      SUCCESS((short)0, "success");
13067
 
13068
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13069
 
13070
      static {
13071
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13072
          byName.put(field.getFieldName(), field);
13073
        }
13074
      }
13075
 
13076
      /**
13077
       * Find the _Fields constant that matches fieldId, or null if its not found.
13078
       */
13079
      public static _Fields findByThriftId(int fieldId) {
13080
        switch(fieldId) {
13081
          case 0: // SUCCESS
13082
            return SUCCESS;
13083
          default:
13084
            return null;
13085
        }
13086
      }
13087
 
13088
      /**
13089
       * Find the _Fields constant that matches fieldId, throwing an exception
13090
       * if it is not found.
13091
       */
13092
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13093
        _Fields fields = findByThriftId(fieldId);
13094
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13095
        return fields;
13096
      }
13097
 
13098
      /**
13099
       * Find the _Fields constant that matches name, or null if its not found.
13100
       */
13101
      public static _Fields findByName(String name) {
13102
        return byName.get(name);
13103
      }
13104
 
13105
      private final short _thriftId;
13106
      private final String _fieldName;
13107
 
13108
      _Fields(short thriftId, String fieldName) {
13109
        _thriftId = thriftId;
13110
        _fieldName = fieldName;
13111
      }
13112
 
13113
      public short getThriftFieldId() {
13114
        return _thriftId;
13115
      }
13116
 
13117
      public String getFieldName() {
13118
        return _fieldName;
13119
      }
13120
    }
13121
 
13122
    // isset id assignments
13123
 
13124
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13125
    static {
13126
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13127
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13128
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
13129
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
13130
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
13131
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13132
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getOpenTicketsMap_result.class, metaDataMap);
13133
    }
13134
 
13135
    public getOpenTicketsMap_result() {
13136
    }
13137
 
13138
    public getOpenTicketsMap_result(
13139
      Map<String,Long> success)
13140
    {
13141
      this();
13142
      this.success = success;
13143
    }
13144
 
13145
    /**
13146
     * Performs a deep copy on <i>other</i>.
13147
     */
13148
    public getOpenTicketsMap_result(getOpenTicketsMap_result other) {
13149
      if (other.isSetSuccess()) {
13150
        Map<String,Long> __this__success = new HashMap<String,Long>();
13151
        for (Map.Entry<String, Long> other_element : other.success.entrySet()) {
13152
 
13153
          String other_element_key = other_element.getKey();
13154
          Long other_element_value = other_element.getValue();
13155
 
13156
          String __this__success_copy_key = other_element_key;
13157
 
13158
          Long __this__success_copy_value = other_element_value;
13159
 
13160
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
13161
        }
13162
        this.success = __this__success;
13163
      }
13164
    }
13165
 
13166
    public getOpenTicketsMap_result deepCopy() {
13167
      return new getOpenTicketsMap_result(this);
13168
    }
13169
 
13170
    @Override
13171
    public void clear() {
13172
      this.success = null;
13173
    }
13174
 
13175
    public int getSuccessSize() {
13176
      return (this.success == null) ? 0 : this.success.size();
13177
    }
13178
 
13179
    public void putToSuccess(String key, long val) {
13180
      if (this.success == null) {
13181
        this.success = new HashMap<String,Long>();
13182
      }
13183
      this.success.put(key, val);
13184
    }
13185
 
13186
    public Map<String,Long> getSuccess() {
13187
      return this.success;
13188
    }
13189
 
13190
    public void setSuccess(Map<String,Long> success) {
13191
      this.success = success;
13192
    }
13193
 
13194
    public void unsetSuccess() {
13195
      this.success = null;
13196
    }
13197
 
13198
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13199
    public boolean isSetSuccess() {
13200
      return this.success != null;
13201
    }
13202
 
13203
    public void setSuccessIsSet(boolean value) {
13204
      if (!value) {
13205
        this.success = null;
13206
      }
13207
    }
13208
 
13209
    public void setFieldValue(_Fields field, Object value) {
13210
      switch (field) {
13211
      case SUCCESS:
13212
        if (value == null) {
13213
          unsetSuccess();
13214
        } else {
13215
          setSuccess((Map<String,Long>)value);
13216
        }
13217
        break;
13218
 
13219
      }
13220
    }
13221
 
13222
    public Object getFieldValue(_Fields field) {
13223
      switch (field) {
13224
      case SUCCESS:
13225
        return getSuccess();
13226
 
13227
      }
13228
      throw new IllegalStateException();
13229
    }
13230
 
13231
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13232
    public boolean isSet(_Fields field) {
13233
      if (field == null) {
13234
        throw new IllegalArgumentException();
13235
      }
13236
 
13237
      switch (field) {
13238
      case SUCCESS:
13239
        return isSetSuccess();
13240
      }
13241
      throw new IllegalStateException();
13242
    }
13243
 
13244
    @Override
13245
    public boolean equals(Object that) {
13246
      if (that == null)
13247
        return false;
13248
      if (that instanceof getOpenTicketsMap_result)
13249
        return this.equals((getOpenTicketsMap_result)that);
13250
      return false;
13251
    }
13252
 
13253
    public boolean equals(getOpenTicketsMap_result that) {
13254
      if (that == null)
13255
        return false;
13256
 
13257
      boolean this_present_success = true && this.isSetSuccess();
13258
      boolean that_present_success = true && that.isSetSuccess();
13259
      if (this_present_success || that_present_success) {
13260
        if (!(this_present_success && that_present_success))
13261
          return false;
13262
        if (!this.success.equals(that.success))
13263
          return false;
13264
      }
13265
 
13266
      return true;
13267
    }
13268
 
13269
    @Override
13270
    public int hashCode() {
13271
      return 0;
13272
    }
13273
 
13274
    public int compareTo(getOpenTicketsMap_result other) {
13275
      if (!getClass().equals(other.getClass())) {
13276
        return getClass().getName().compareTo(other.getClass().getName());
13277
      }
13278
 
13279
      int lastComparison = 0;
13280
      getOpenTicketsMap_result typedOther = (getOpenTicketsMap_result)other;
13281
 
13282
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
13283
      if (lastComparison != 0) {
13284
        return lastComparison;
13285
      }
13286
      if (isSetSuccess()) {
13287
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
13288
        if (lastComparison != 0) {
13289
          return lastComparison;
13290
        }
13291
      }
13292
      return 0;
13293
    }
13294
 
13295
    public _Fields fieldForId(int fieldId) {
13296
      return _Fields.findByThriftId(fieldId);
13297
    }
13298
 
13299
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13300
      org.apache.thrift.protocol.TField field;
13301
      iprot.readStructBegin();
13302
      while (true)
13303
      {
13304
        field = iprot.readFieldBegin();
13305
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13306
          break;
13307
        }
13308
        switch (field.id) {
13309
          case 0: // SUCCESS
13310
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
13311
              {
13312
                org.apache.thrift.protocol.TMap _map48 = iprot.readMapBegin();
13313
                this.success = new HashMap<String,Long>(2*_map48.size);
13314
                for (int _i49 = 0; _i49 < _map48.size; ++_i49)
13315
                {
13316
                  String _key50; // required
13317
                  long _val51; // required
13318
                  _key50 = iprot.readString();
13319
                  _val51 = iprot.readI64();
13320
                  this.success.put(_key50, _val51);
13321
                }
13322
                iprot.readMapEnd();
13323
              }
13324
            } else { 
13325
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13326
            }
13327
            break;
13328
          default:
13329
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13330
        }
13331
        iprot.readFieldEnd();
13332
      }
13333
      iprot.readStructEnd();
13334
      validate();
13335
    }
13336
 
13337
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13338
      oprot.writeStructBegin(STRUCT_DESC);
13339
 
13340
      if (this.isSetSuccess()) {
13341
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
13342
        {
13343
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.I64, this.success.size()));
13344
          for (Map.Entry<String, Long> _iter52 : this.success.entrySet())
13345
          {
13346
            oprot.writeString(_iter52.getKey());
13347
            oprot.writeI64(_iter52.getValue());
13348
          }
13349
          oprot.writeMapEnd();
13350
        }
13351
        oprot.writeFieldEnd();
13352
      }
13353
      oprot.writeFieldStop();
13354
      oprot.writeStructEnd();
13355
    }
13356
 
13357
    @Override
13358
    public String toString() {
13359
      StringBuilder sb = new StringBuilder("getOpenTicketsMap_result(");
13360
      boolean first = true;
13361
 
13362
      sb.append("success:");
13363
      if (this.success == null) {
13364
        sb.append("null");
13365
      } else {
13366
        sb.append(this.success);
13367
      }
13368
      first = false;
13369
      sb.append(")");
13370
      return sb.toString();
13371
    }
13372
 
13373
    public void validate() throws org.apache.thrift.TException {
13374
      // check for required fields
13375
    }
13376
 
13377
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13378
      try {
13379
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13380
      } catch (org.apache.thrift.TException te) {
13381
        throw new java.io.IOException(te);
13382
      }
13383
    }
13384
 
13385
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13386
      try {
13387
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13388
      } catch (org.apache.thrift.TException te) {
13389
        throw new java.io.IOException(te);
13390
      }
13391
    }
13392
 
13393
  }
13394
 
8370 manish.sha 13395
  public static class getFedexReconciliationDataMap_args implements org.apache.thrift.TBase<getFedexReconciliationDataMap_args, getFedexReconciliationDataMap_args._Fields>, java.io.Serializable, Cloneable   {
13396
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFedexReconciliationDataMap_args");
13397
 
13398
    private static final org.apache.thrift.protocol.TField ORDER_IDS_FIELD_DESC = new org.apache.thrift.protocol.TField("order_ids", org.apache.thrift.protocol.TType.LIST, (short)1);
13399
    private static final org.apache.thrift.protocol.TField METHOD_KEY_FIELD_DESC = new org.apache.thrift.protocol.TField("method_key", org.apache.thrift.protocol.TType.STRING, (short)-1);
13400
 
13401
    private List<Long> order_ids; // required
13402
    private String method_key; // required
13403
 
13404
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13405
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13406
      ORDER_IDS((short)1, "order_ids"),
13407
      METHOD_KEY((short)-1, "method_key");
13408
 
13409
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13410
 
13411
      static {
13412
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13413
          byName.put(field.getFieldName(), field);
13414
        }
13415
      }
13416
 
13417
      /**
13418
       * Find the _Fields constant that matches fieldId, or null if its not found.
13419
       */
13420
      public static _Fields findByThriftId(int fieldId) {
13421
        switch(fieldId) {
13422
          case 1: // ORDER_IDS
13423
            return ORDER_IDS;
13424
          case -1: // METHOD_KEY
13425
            return METHOD_KEY;
13426
          default:
13427
            return null;
13428
        }
13429
      }
13430
 
13431
      /**
13432
       * Find the _Fields constant that matches fieldId, throwing an exception
13433
       * if it is not found.
13434
       */
13435
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13436
        _Fields fields = findByThriftId(fieldId);
13437
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13438
        return fields;
13439
      }
13440
 
13441
      /**
13442
       * Find the _Fields constant that matches name, or null if its not found.
13443
       */
13444
      public static _Fields findByName(String name) {
13445
        return byName.get(name);
13446
      }
13447
 
13448
      private final short _thriftId;
13449
      private final String _fieldName;
13450
 
13451
      _Fields(short thriftId, String fieldName) {
13452
        _thriftId = thriftId;
13453
        _fieldName = fieldName;
13454
      }
13455
 
13456
      public short getThriftFieldId() {
13457
        return _thriftId;
13458
      }
13459
 
13460
      public String getFieldName() {
13461
        return _fieldName;
13462
      }
13463
    }
13464
 
13465
    // isset id assignments
13466
 
13467
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13468
    static {
13469
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13470
      tmpMap.put(_Fields.ORDER_IDS, new org.apache.thrift.meta_data.FieldMetaData("order_ids", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13471
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
13472
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
13473
      tmpMap.put(_Fields.METHOD_KEY, new org.apache.thrift.meta_data.FieldMetaData("method_key", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13474
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
13475
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13476
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFedexReconciliationDataMap_args.class, metaDataMap);
13477
    }
13478
 
13479
    public getFedexReconciliationDataMap_args() {
13480
    }
13481
 
13482
    public getFedexReconciliationDataMap_args(
13483
      List<Long> order_ids,
13484
      String method_key)
13485
    {
13486
      this();
13487
      this.order_ids = order_ids;
13488
      this.method_key = method_key;
13489
    }
13490
 
13491
    /**
13492
     * Performs a deep copy on <i>other</i>.
13493
     */
13494
    public getFedexReconciliationDataMap_args(getFedexReconciliationDataMap_args other) {
13495
      if (other.isSetOrder_ids()) {
13496
        List<Long> __this__order_ids = new ArrayList<Long>();
13497
        for (Long other_element : other.order_ids) {
13498
          __this__order_ids.add(other_element);
13499
        }
13500
        this.order_ids = __this__order_ids;
13501
      }
13502
      if (other.isSetMethod_key()) {
13503
        this.method_key = other.method_key;
13504
      }
13505
    }
13506
 
13507
    public getFedexReconciliationDataMap_args deepCopy() {
13508
      return new getFedexReconciliationDataMap_args(this);
13509
    }
13510
 
13511
    @Override
13512
    public void clear() {
13513
      this.order_ids = null;
13514
      this.method_key = null;
13515
    }
13516
 
13517
    public int getOrder_idsSize() {
13518
      return (this.order_ids == null) ? 0 : this.order_ids.size();
13519
    }
13520
 
13521
    public java.util.Iterator<Long> getOrder_idsIterator() {
13522
      return (this.order_ids == null) ? null : this.order_ids.iterator();
13523
    }
13524
 
13525
    public void addToOrder_ids(long elem) {
13526
      if (this.order_ids == null) {
13527
        this.order_ids = new ArrayList<Long>();
13528
      }
13529
      this.order_ids.add(elem);
13530
    }
13531
 
13532
    public List<Long> getOrder_ids() {
13533
      return this.order_ids;
13534
    }
13535
 
13536
    public void setOrder_ids(List<Long> order_ids) {
13537
      this.order_ids = order_ids;
13538
    }
13539
 
13540
    public void unsetOrder_ids() {
13541
      this.order_ids = null;
13542
    }
13543
 
13544
    /** Returns true if field order_ids is set (has been assigned a value) and false otherwise */
13545
    public boolean isSetOrder_ids() {
13546
      return this.order_ids != null;
13547
    }
13548
 
13549
    public void setOrder_idsIsSet(boolean value) {
13550
      if (!value) {
13551
        this.order_ids = null;
13552
      }
13553
    }
13554
 
13555
    public String getMethod_key() {
13556
      return this.method_key;
13557
    }
13558
 
13559
    public void setMethod_key(String method_key) {
13560
      this.method_key = method_key;
13561
    }
13562
 
13563
    public void unsetMethod_key() {
13564
      this.method_key = null;
13565
    }
13566
 
13567
    /** Returns true if field method_key is set (has been assigned a value) and false otherwise */
13568
    public boolean isSetMethod_key() {
13569
      return this.method_key != null;
13570
    }
13571
 
13572
    public void setMethod_keyIsSet(boolean value) {
13573
      if (!value) {
13574
        this.method_key = null;
13575
      }
13576
    }
13577
 
13578
    public void setFieldValue(_Fields field, Object value) {
13579
      switch (field) {
13580
      case ORDER_IDS:
13581
        if (value == null) {
13582
          unsetOrder_ids();
13583
        } else {
13584
          setOrder_ids((List<Long>)value);
13585
        }
13586
        break;
13587
 
13588
      case METHOD_KEY:
13589
        if (value == null) {
13590
          unsetMethod_key();
13591
        } else {
13592
          setMethod_key((String)value);
13593
        }
13594
        break;
13595
 
13596
      }
13597
    }
13598
 
13599
    public Object getFieldValue(_Fields field) {
13600
      switch (field) {
13601
      case ORDER_IDS:
13602
        return getOrder_ids();
13603
 
13604
      case METHOD_KEY:
13605
        return getMethod_key();
13606
 
13607
      }
13608
      throw new IllegalStateException();
13609
    }
13610
 
13611
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13612
    public boolean isSet(_Fields field) {
13613
      if (field == null) {
13614
        throw new IllegalArgumentException();
13615
      }
13616
 
13617
      switch (field) {
13618
      case ORDER_IDS:
13619
        return isSetOrder_ids();
13620
      case METHOD_KEY:
13621
        return isSetMethod_key();
13622
      }
13623
      throw new IllegalStateException();
13624
    }
13625
 
13626
    @Override
13627
    public boolean equals(Object that) {
13628
      if (that == null)
13629
        return false;
13630
      if (that instanceof getFedexReconciliationDataMap_args)
13631
        return this.equals((getFedexReconciliationDataMap_args)that);
13632
      return false;
13633
    }
13634
 
13635
    public boolean equals(getFedexReconciliationDataMap_args that) {
13636
      if (that == null)
13637
        return false;
13638
 
13639
      boolean this_present_order_ids = true && this.isSetOrder_ids();
13640
      boolean that_present_order_ids = true && that.isSetOrder_ids();
13641
      if (this_present_order_ids || that_present_order_ids) {
13642
        if (!(this_present_order_ids && that_present_order_ids))
13643
          return false;
13644
        if (!this.order_ids.equals(that.order_ids))
13645
          return false;
13646
      }
13647
 
13648
      boolean this_present_method_key = true && this.isSetMethod_key();
13649
      boolean that_present_method_key = true && that.isSetMethod_key();
13650
      if (this_present_method_key || that_present_method_key) {
13651
        if (!(this_present_method_key && that_present_method_key))
13652
          return false;
13653
        if (!this.method_key.equals(that.method_key))
13654
          return false;
13655
      }
13656
 
13657
      return true;
13658
    }
13659
 
13660
    @Override
13661
    public int hashCode() {
13662
      return 0;
13663
    }
13664
 
13665
    public int compareTo(getFedexReconciliationDataMap_args other) {
13666
      if (!getClass().equals(other.getClass())) {
13667
        return getClass().getName().compareTo(other.getClass().getName());
13668
      }
13669
 
13670
      int lastComparison = 0;
13671
      getFedexReconciliationDataMap_args typedOther = (getFedexReconciliationDataMap_args)other;
13672
 
13673
      lastComparison = Boolean.valueOf(isSetOrder_ids()).compareTo(typedOther.isSetOrder_ids());
13674
      if (lastComparison != 0) {
13675
        return lastComparison;
13676
      }
13677
      if (isSetOrder_ids()) {
13678
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.order_ids, typedOther.order_ids);
13679
        if (lastComparison != 0) {
13680
          return lastComparison;
13681
        }
13682
      }
13683
      lastComparison = Boolean.valueOf(isSetMethod_key()).compareTo(typedOther.isSetMethod_key());
13684
      if (lastComparison != 0) {
13685
        return lastComparison;
13686
      }
13687
      if (isSetMethod_key()) {
13688
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.method_key, typedOther.method_key);
13689
        if (lastComparison != 0) {
13690
          return lastComparison;
13691
        }
13692
      }
13693
      return 0;
13694
    }
13695
 
13696
    public _Fields fieldForId(int fieldId) {
13697
      return _Fields.findByThriftId(fieldId);
13698
    }
13699
 
13700
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
13701
      org.apache.thrift.protocol.TField field;
13702
      iprot.readStructBegin();
13703
      while (true)
13704
      {
13705
        field = iprot.readFieldBegin();
13706
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
13707
          break;
13708
        }
13709
        switch (field.id) {
13710
          case 1: // ORDER_IDS
13711
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
13712
              {
13713
                org.apache.thrift.protocol.TList _list53 = iprot.readListBegin();
13714
                this.order_ids = new ArrayList<Long>(_list53.size);
13715
                for (int _i54 = 0; _i54 < _list53.size; ++_i54)
13716
                {
13717
                  long _elem55; // required
13718
                  _elem55 = iprot.readI64();
13719
                  this.order_ids.add(_elem55);
13720
                }
13721
                iprot.readListEnd();
13722
              }
13723
            } else { 
13724
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13725
            }
13726
            break;
13727
          case -1: // METHOD_KEY
13728
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
13729
              this.method_key = iprot.readString();
13730
            } else { 
13731
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13732
            }
13733
            break;
13734
          default:
13735
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
13736
        }
13737
        iprot.readFieldEnd();
13738
      }
13739
      iprot.readStructEnd();
13740
      validate();
13741
    }
13742
 
13743
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
13744
      validate();
13745
 
13746
      oprot.writeStructBegin(STRUCT_DESC);
13747
      if (this.method_key != null) {
13748
        oprot.writeFieldBegin(METHOD_KEY_FIELD_DESC);
13749
        oprot.writeString(this.method_key);
13750
        oprot.writeFieldEnd();
13751
      }
13752
      if (this.order_ids != null) {
13753
        oprot.writeFieldBegin(ORDER_IDS_FIELD_DESC);
13754
        {
13755
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.order_ids.size()));
13756
          for (long _iter56 : this.order_ids)
13757
          {
13758
            oprot.writeI64(_iter56);
13759
          }
13760
          oprot.writeListEnd();
13761
        }
13762
        oprot.writeFieldEnd();
13763
      }
13764
      oprot.writeFieldStop();
13765
      oprot.writeStructEnd();
13766
    }
13767
 
13768
    @Override
13769
    public String toString() {
13770
      StringBuilder sb = new StringBuilder("getFedexReconciliationDataMap_args(");
13771
      boolean first = true;
13772
 
13773
      sb.append("order_ids:");
13774
      if (this.order_ids == null) {
13775
        sb.append("null");
13776
      } else {
13777
        sb.append(this.order_ids);
13778
      }
13779
      first = false;
13780
      if (!first) sb.append(", ");
13781
      sb.append("method_key:");
13782
      if (this.method_key == null) {
13783
        sb.append("null");
13784
      } else {
13785
        sb.append(this.method_key);
13786
      }
13787
      first = false;
13788
      sb.append(")");
13789
      return sb.toString();
13790
    }
13791
 
13792
    public void validate() throws org.apache.thrift.TException {
13793
      // check for required fields
13794
    }
13795
 
13796
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
13797
      try {
13798
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
13799
      } catch (org.apache.thrift.TException te) {
13800
        throw new java.io.IOException(te);
13801
      }
13802
    }
13803
 
13804
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
13805
      try {
13806
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
13807
      } catch (org.apache.thrift.TException te) {
13808
        throw new java.io.IOException(te);
13809
      }
13810
    }
13811
 
13812
  }
13813
 
13814
  public static class getFedexReconciliationDataMap_result implements org.apache.thrift.TBase<getFedexReconciliationDataMap_result, getFedexReconciliationDataMap_result._Fields>, java.io.Serializable, Cloneable   {
13815
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFedexReconciliationDataMap_result");
13816
 
13817
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.MAP, (short)0);
13818
 
13819
    private Map<String,String> success; // required
13820
 
13821
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
13822
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
13823
      SUCCESS((short)0, "success");
13824
 
13825
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
13826
 
13827
      static {
13828
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
13829
          byName.put(field.getFieldName(), field);
13830
        }
13831
      }
13832
 
13833
      /**
13834
       * Find the _Fields constant that matches fieldId, or null if its not found.
13835
       */
13836
      public static _Fields findByThriftId(int fieldId) {
13837
        switch(fieldId) {
13838
          case 0: // SUCCESS
13839
            return SUCCESS;
13840
          default:
13841
            return null;
13842
        }
13843
      }
13844
 
13845
      /**
13846
       * Find the _Fields constant that matches fieldId, throwing an exception
13847
       * if it is not found.
13848
       */
13849
      public static _Fields findByThriftIdOrThrow(int fieldId) {
13850
        _Fields fields = findByThriftId(fieldId);
13851
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
13852
        return fields;
13853
      }
13854
 
13855
      /**
13856
       * Find the _Fields constant that matches name, or null if its not found.
13857
       */
13858
      public static _Fields findByName(String name) {
13859
        return byName.get(name);
13860
      }
13861
 
13862
      private final short _thriftId;
13863
      private final String _fieldName;
13864
 
13865
      _Fields(short thriftId, String fieldName) {
13866
        _thriftId = thriftId;
13867
        _fieldName = fieldName;
13868
      }
13869
 
13870
      public short getThriftFieldId() {
13871
        return _thriftId;
13872
      }
13873
 
13874
      public String getFieldName() {
13875
        return _fieldName;
13876
      }
13877
    }
13878
 
13879
    // isset id assignments
13880
 
13881
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
13882
    static {
13883
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
13884
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
13885
          new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP, 
13886
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING), 
13887
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
13888
      metaDataMap = Collections.unmodifiableMap(tmpMap);
13889
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFedexReconciliationDataMap_result.class, metaDataMap);
13890
    }
13891
 
13892
    public getFedexReconciliationDataMap_result() {
13893
    }
13894
 
13895
    public getFedexReconciliationDataMap_result(
13896
      Map<String,String> success)
13897
    {
13898
      this();
13899
      this.success = success;
13900
    }
13901
 
13902
    /**
13903
     * Performs a deep copy on <i>other</i>.
13904
     */
13905
    public getFedexReconciliationDataMap_result(getFedexReconciliationDataMap_result other) {
13906
      if (other.isSetSuccess()) {
13907
        Map<String,String> __this__success = new HashMap<String,String>();
13908
        for (Map.Entry<String, String> other_element : other.success.entrySet()) {
13909
 
13910
          String other_element_key = other_element.getKey();
13911
          String other_element_value = other_element.getValue();
13912
 
13913
          String __this__success_copy_key = other_element_key;
13914
 
13915
          String __this__success_copy_value = other_element_value;
13916
 
13917
          __this__success.put(__this__success_copy_key, __this__success_copy_value);
13918
        }
13919
        this.success = __this__success;
13920
      }
13921
    }
13922
 
13923
    public getFedexReconciliationDataMap_result deepCopy() {
13924
      return new getFedexReconciliationDataMap_result(this);
13925
    }
13926
 
13927
    @Override
13928
    public void clear() {
13929
      this.success = null;
13930
    }
13931
 
13932
    public int getSuccessSize() {
13933
      return (this.success == null) ? 0 : this.success.size();
13934
    }
13935
 
13936
    public void putToSuccess(String key, String val) {
13937
      if (this.success == null) {
13938
        this.success = new HashMap<String,String>();
13939
      }
13940
      this.success.put(key, val);
13941
    }
13942
 
13943
    public Map<String,String> getSuccess() {
13944
      return this.success;
13945
    }
13946
 
13947
    public void setSuccess(Map<String,String> success) {
13948
      this.success = success;
13949
    }
13950
 
13951
    public void unsetSuccess() {
13952
      this.success = null;
13953
    }
13954
 
13955
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
13956
    public boolean isSetSuccess() {
13957
      return this.success != null;
13958
    }
13959
 
13960
    public void setSuccessIsSet(boolean value) {
13961
      if (!value) {
13962
        this.success = null;
13963
      }
13964
    }
13965
 
13966
    public void setFieldValue(_Fields field, Object value) {
13967
      switch (field) {
13968
      case SUCCESS:
13969
        if (value == null) {
13970
          unsetSuccess();
13971
        } else {
13972
          setSuccess((Map<String,String>)value);
13973
        }
13974
        break;
13975
 
13976
      }
13977
    }
13978
 
13979
    public Object getFieldValue(_Fields field) {
13980
      switch (field) {
13981
      case SUCCESS:
13982
        return getSuccess();
13983
 
13984
      }
13985
      throw new IllegalStateException();
13986
    }
13987
 
13988
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
13989
    public boolean isSet(_Fields field) {
13990
      if (field == null) {
13991
        throw new IllegalArgumentException();
13992
      }
13993
 
13994
      switch (field) {
13995
      case SUCCESS:
13996
        return isSetSuccess();
13997
      }
13998
      throw new IllegalStateException();
13999
    }
14000
 
14001
    @Override
14002
    public boolean equals(Object that) {
14003
      if (that == null)
14004
        return false;
14005
      if (that instanceof getFedexReconciliationDataMap_result)
14006
        return this.equals((getFedexReconciliationDataMap_result)that);
14007
      return false;
14008
    }
14009
 
14010
    public boolean equals(getFedexReconciliationDataMap_result that) {
14011
      if (that == null)
14012
        return false;
14013
 
14014
      boolean this_present_success = true && this.isSetSuccess();
14015
      boolean that_present_success = true && that.isSetSuccess();
14016
      if (this_present_success || that_present_success) {
14017
        if (!(this_present_success && that_present_success))
14018
          return false;
14019
        if (!this.success.equals(that.success))
14020
          return false;
14021
      }
14022
 
14023
      return true;
14024
    }
14025
 
14026
    @Override
14027
    public int hashCode() {
14028
      return 0;
14029
    }
14030
 
14031
    public int compareTo(getFedexReconciliationDataMap_result other) {
14032
      if (!getClass().equals(other.getClass())) {
14033
        return getClass().getName().compareTo(other.getClass().getName());
14034
      }
14035
 
14036
      int lastComparison = 0;
14037
      getFedexReconciliationDataMap_result typedOther = (getFedexReconciliationDataMap_result)other;
14038
 
14039
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
14040
      if (lastComparison != 0) {
14041
        return lastComparison;
14042
      }
14043
      if (isSetSuccess()) {
14044
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
14045
        if (lastComparison != 0) {
14046
          return lastComparison;
14047
        }
14048
      }
14049
      return 0;
14050
    }
14051
 
14052
    public _Fields fieldForId(int fieldId) {
14053
      return _Fields.findByThriftId(fieldId);
14054
    }
14055
 
14056
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
14057
      org.apache.thrift.protocol.TField field;
14058
      iprot.readStructBegin();
14059
      while (true)
14060
      {
14061
        field = iprot.readFieldBegin();
14062
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
14063
          break;
14064
        }
14065
        switch (field.id) {
14066
          case 0: // SUCCESS
14067
            if (field.type == org.apache.thrift.protocol.TType.MAP) {
14068
              {
14069
                org.apache.thrift.protocol.TMap _map57 = iprot.readMapBegin();
14070
                this.success = new HashMap<String,String>(2*_map57.size);
14071
                for (int _i58 = 0; _i58 < _map57.size; ++_i58)
14072
                {
14073
                  String _key59; // required
14074
                  String _val60; // required
14075
                  _key59 = iprot.readString();
14076
                  _val60 = iprot.readString();
14077
                  this.success.put(_key59, _val60);
14078
                }
14079
                iprot.readMapEnd();
14080
              }
14081
            } else { 
14082
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14083
            }
14084
            break;
14085
          default:
14086
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
14087
        }
14088
        iprot.readFieldEnd();
14089
      }
14090
      iprot.readStructEnd();
14091
      validate();
14092
    }
14093
 
14094
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
14095
      oprot.writeStructBegin(STRUCT_DESC);
14096
 
14097
      if (this.isSetSuccess()) {
14098
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
14099
        {
14100
          oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, this.success.size()));
14101
          for (Map.Entry<String, String> _iter61 : this.success.entrySet())
14102
          {
14103
            oprot.writeString(_iter61.getKey());
14104
            oprot.writeString(_iter61.getValue());
14105
          }
14106
          oprot.writeMapEnd();
14107
        }
14108
        oprot.writeFieldEnd();
14109
      }
14110
      oprot.writeFieldStop();
14111
      oprot.writeStructEnd();
14112
    }
14113
 
14114
    @Override
14115
    public String toString() {
14116
      StringBuilder sb = new StringBuilder("getFedexReconciliationDataMap_result(");
14117
      boolean first = true;
14118
 
14119
      sb.append("success:");
14120
      if (this.success == null) {
14121
        sb.append("null");
14122
      } else {
14123
        sb.append(this.success);
14124
      }
14125
      first = false;
14126
      sb.append(")");
14127
      return sb.toString();
14128
    }
14129
 
14130
    public void validate() throws org.apache.thrift.TException {
14131
      // check for required fields
14132
    }
14133
 
14134
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
14135
      try {
14136
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
14137
      } catch (org.apache.thrift.TException te) {
14138
        throw new java.io.IOException(te);
14139
      }
14140
    }
14141
 
14142
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
14143
      try {
14144
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
14145
      } catch (org.apache.thrift.TException te) {
14146
        throw new java.io.IOException(te);
14147
      }
14148
    }
14149
 
14150
  }
14151
 
3028 mandeep.dh 14152
}