Subversion Repositories SmartDukaan

Rev

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