Subversion Repositories SmartDukaan

Rev

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