Subversion Repositories SmartDukaan

Rev

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