Subversion Repositories SmartDukaan

Rev

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

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