Subversion Repositories SmartDukaan

Rev

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