Subversion Repositories SmartDukaan

Rev

Rev 4008 | Rev 5169 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4008 Rev 4793
Line 30... Line 30...
30
 
30
 
31
    public void updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
31
    public void updateTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
32
 
32
 
33
    public long insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
33
    public long insertTicket(Ticket ticket, Activity activity) throws org.apache.thrift.TException;
34
 
34
 
-
 
35
    public void unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException;
-
 
36
 
35
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException;
37
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException;
36
 
38
 
37
    public long insertActivity(Activity activity) throws org.apache.thrift.TException;
39
    public long insertActivity(Activity activity) throws org.apache.thrift.TException;
38
 
40
 
39
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException;
41
    public void markAsRead(long activityId, long agentId) throws org.apache.thrift.TException;
Line 48... Line 50...
48
 
50
 
49
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException;
51
    public long getLastEmailProcessedTimestamp() throws org.apache.thrift.TException;
50
 
52
 
51
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException;
53
    public void updateLastEmailProcessedTimestamp(long timestamp) throws org.apache.thrift.TException;
52
 
54
 
-
 
55
    public void changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException;
-
 
56
 
-
 
57
    public void insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException;
-
 
58
 
53
  }
59
  }
54
 
60
 
55
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
61
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
56
 
62
 
57
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
63
    public void getTickets(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getTickets_call> resultHandler) throws org.apache.thrift.TException;
Line 60... Line 66...
60
 
66
 
61
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTicket_call> resultHandler) throws org.apache.thrift.TException;
67
    public void updateTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateTicket_call> resultHandler) throws org.apache.thrift.TException;
62
 
68
 
63
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertTicket_call> resultHandler) throws org.apache.thrift.TException;
69
    public void insertTicket(Ticket ticket, Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertTicket_call> resultHandler) throws org.apache.thrift.TException;
64
 
70
 
-
 
71
    public void unassignAgentTickets(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.unassignAgentTickets_call> resultHandler) throws org.apache.thrift.TException;
-
 
72
 
65
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivities_call> resultHandler) throws org.apache.thrift.TException;
73
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getActivities_call> resultHandler) throws org.apache.thrift.TException;
66
 
74
 
67
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertActivity_call> resultHandler) throws org.apache.thrift.TException;
75
    public void insertActivity(Activity activity, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertActivity_call> resultHandler) throws org.apache.thrift.TException;
68
 
76
 
69
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAsRead_call> resultHandler) throws org.apache.thrift.TException;
77
    public void markAsRead(long activityId, long agentId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.markAsRead_call> resultHandler) throws org.apache.thrift.TException;
Line 78... Line 86...
78
 
86
 
79
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
87
    public void getLastEmailProcessedTimestamp(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
80
 
88
 
81
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
89
    public void updateLastEmailProcessedTimestamp(long timestamp, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLastEmailProcessedTimestamp_call> resultHandler) throws org.apache.thrift.TException;
82
 
90
 
-
 
91
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException;
-
 
92
 
-
 
93
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.insertAgent_call> resultHandler) throws org.apache.thrift.TException;
-
 
94
 
83
  }
95
  }
84
 
96
 
85
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
97
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
86
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
98
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
87
      public Factory() {}
99
      public Factory() {}
Line 190... Line 202...
190
        return result.success;
202
        return result.success;
191
      }
203
      }
192
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
204
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "insertTicket failed: unknown result");
193
    }
205
    }
194
 
206
 
-
 
207
    public void unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException
-
 
208
    {
-
 
209
      send_unassignAgentTickets(assigneeId);
-
 
210
      recv_unassignAgentTickets();
-
 
211
    }
-
 
212
 
-
 
213
    public void send_unassignAgentTickets(int assigneeId) throws org.apache.thrift.TException
-
 
214
    {
-
 
215
      unassignAgentTickets_args args = new unassignAgentTickets_args();
-
 
216
      args.setAssigneeId(assigneeId);
-
 
217
      sendBase("unassignAgentTickets", args);
-
 
218
    }
-
 
219
 
-
 
220
    public void recv_unassignAgentTickets() throws org.apache.thrift.TException
-
 
221
    {
-
 
222
      unassignAgentTickets_result result = new unassignAgentTickets_result();
-
 
223
      receiveBase(result, "unassignAgentTickets");
-
 
224
      return;
-
 
225
    }
-
 
226
 
195
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
227
    public List<Activity> getActivities(SearchFilter searchFilter) throws org.apache.thrift.TException
196
    {
228
    {
197
      send_getActivities(searchFilter);
229
      send_getActivities(searchFilter);
198
      return recv_getActivities();
230
      return recv_getActivities();
199
    }
231
    }
Line 389... Line 421...
389
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
421
      updateLastEmailProcessedTimestamp_result result = new updateLastEmailProcessedTimestamp_result();
390
      receiveBase(result, "updateLastEmailProcessedTimestamp");
422
      receiveBase(result, "updateLastEmailProcessedTimestamp");
391
      return;
423
      return;
392
    }
424
    }
393
 
425
 
-
 
426
    public void changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException
-
 
427
    {
-
 
428
      send_changeAgentStatus(status, emailId);
-
 
429
      recv_changeAgentStatus();
-
 
430
    }
-
 
431
 
-
 
432
    public void send_changeAgentStatus(boolean status, String emailId) throws org.apache.thrift.TException
-
 
433
    {
-
 
434
      changeAgentStatus_args args = new changeAgentStatus_args();
-
 
435
      args.setStatus(status);
-
 
436
      args.setEmailId(emailId);
-
 
437
      sendBase("changeAgentStatus", args);
-
 
438
    }
-
 
439
 
-
 
440
    public void recv_changeAgentStatus() throws org.apache.thrift.TException
-
 
441
    {
-
 
442
      changeAgentStatus_result result = new changeAgentStatus_result();
-
 
443
      receiveBase(result, "changeAgentStatus");
-
 
444
      return;
-
 
445
    }
-
 
446
 
-
 
447
    public void insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException
-
 
448
    {
-
 
449
      send_insertAgent(agent, role);
-
 
450
      recv_insertAgent();
-
 
451
    }
-
 
452
 
-
 
453
    public void send_insertAgent(Agent agent, List<String> role) throws org.apache.thrift.TException
-
 
454
    {
-
 
455
      insertAgent_args args = new insertAgent_args();
-
 
456
      args.setAgent(agent);
-
 
457
      args.setRole(role);
-
 
458
      sendBase("insertAgent", args);
-
 
459
    }
-
 
460
 
-
 
461
    public void recv_insertAgent() throws org.apache.thrift.TException
-
 
462
    {
-
 
463
      insertAgent_result result = new insertAgent_result();
-
 
464
      receiveBase(result, "insertAgent");
-
 
465
      return;
-
 
466
    }
-
 
467
 
394
  }
468
  }
395
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
469
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
396
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
470
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
397
      private org.apache.thrift.async.TAsyncClientManager clientManager;
471
      private org.apache.thrift.async.TAsyncClientManager clientManager;
398
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
472
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 538... Line 612...
538
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
612
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
539
        return (new Client(prot)).recv_insertTicket();
613
        return (new Client(prot)).recv_insertTicket();
540
      }
614
      }
541
    }
615
    }
542
 
616
 
-
 
617
    public void unassignAgentTickets(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<unassignAgentTickets_call> resultHandler) throws org.apache.thrift.TException {
-
 
618
      checkReady();
-
 
619
      unassignAgentTickets_call method_call = new unassignAgentTickets_call(assigneeId, resultHandler, this, ___protocolFactory, ___transport);
-
 
620
      this.___currentMethod = method_call;
-
 
621
      ___manager.call(method_call);
-
 
622
    }
-
 
623
 
-
 
624
    public static class unassignAgentTickets_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
625
      private int assigneeId;
-
 
626
      public unassignAgentTickets_call(int assigneeId, org.apache.thrift.async.AsyncMethodCallback<unassignAgentTickets_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
627
        super(client, protocolFactory, transport, resultHandler, false);
-
 
628
        this.assigneeId = assigneeId;
-
 
629
      }
-
 
630
 
-
 
631
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
632
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("unassignAgentTickets", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
633
        unassignAgentTickets_args args = new unassignAgentTickets_args();
-
 
634
        args.setAssigneeId(assigneeId);
-
 
635
        args.write(prot);
-
 
636
        prot.writeMessageEnd();
-
 
637
      }
-
 
638
 
-
 
639
      public void getResult() throws org.apache.thrift.TException {
-
 
640
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
641
          throw new IllegalStateException("Method call not finished!");
-
 
642
        }
-
 
643
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
644
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
645
        (new Client(prot)).recv_unassignAgentTickets();
-
 
646
      }
-
 
647
    }
-
 
648
 
543
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getActivities_call> resultHandler) throws org.apache.thrift.TException {
649
    public void getActivities(SearchFilter searchFilter, org.apache.thrift.async.AsyncMethodCallback<getActivities_call> resultHandler) throws org.apache.thrift.TException {
544
      checkReady();
650
      checkReady();
545
      getActivities_call method_call = new getActivities_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
651
      getActivities_call method_call = new getActivities_call(searchFilter, resultHandler, this, ___protocolFactory, ___transport);
546
      this.___currentMethod = method_call;
652
      this.___currentMethod = method_call;
547
      ___manager.call(method_call);
653
      ___manager.call(method_call);
Line 829... Line 935...
829
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
935
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
830
        (new Client(prot)).recv_updateLastEmailProcessedTimestamp();
936
        (new Client(prot)).recv_updateLastEmailProcessedTimestamp();
831
      }
937
      }
832
    }
938
    }
833
 
939
 
-
 
940
    public void changeAgentStatus(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<changeAgentStatus_call> resultHandler) throws org.apache.thrift.TException {
-
 
941
      checkReady();
-
 
942
      changeAgentStatus_call method_call = new changeAgentStatus_call(status, emailId, resultHandler, this, ___protocolFactory, ___transport);
-
 
943
      this.___currentMethod = method_call;
-
 
944
      ___manager.call(method_call);
-
 
945
    }
-
 
946
 
-
 
947
    public static class changeAgentStatus_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
948
      private boolean status;
-
 
949
      private String emailId;
-
 
950
      public changeAgentStatus_call(boolean status, String emailId, org.apache.thrift.async.AsyncMethodCallback<changeAgentStatus_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
951
        super(client, protocolFactory, transport, resultHandler, false);
-
 
952
        this.status = status;
-
 
953
        this.emailId = emailId;
-
 
954
      }
-
 
955
 
-
 
956
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
957
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("changeAgentStatus", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
958
        changeAgentStatus_args args = new changeAgentStatus_args();
-
 
959
        args.setStatus(status);
-
 
960
        args.setEmailId(emailId);
-
 
961
        args.write(prot);
-
 
962
        prot.writeMessageEnd();
-
 
963
      }
-
 
964
 
-
 
965
      public void getResult() throws org.apache.thrift.TException {
-
 
966
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
967
          throw new IllegalStateException("Method call not finished!");
-
 
968
        }
-
 
969
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
970
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
971
        (new Client(prot)).recv_changeAgentStatus();
-
 
972
      }
-
 
973
    }
-
 
974
 
-
 
975
    public void insertAgent(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<insertAgent_call> resultHandler) throws org.apache.thrift.TException {
-
 
976
      checkReady();
-
 
977
      insertAgent_call method_call = new insertAgent_call(agent, role, resultHandler, this, ___protocolFactory, ___transport);
-
 
978
      this.___currentMethod = method_call;
-
 
979
      ___manager.call(method_call);
-
 
980
    }
-
 
981
 
-
 
982
    public static class insertAgent_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
983
      private Agent agent;
-
 
984
      private List<String> role;
-
 
985
      public insertAgent_call(Agent agent, List<String> role, org.apache.thrift.async.AsyncMethodCallback<insertAgent_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
-
 
986
        super(client, protocolFactory, transport, resultHandler, false);
-
 
987
        this.agent = agent;
-
 
988
        this.role = role;
-
 
989
      }
-
 
990
 
-
 
991
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
992
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("insertAgent", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
993
        insertAgent_args args = new insertAgent_args();
-
 
994
        args.setAgent(agent);
-
 
995
        args.setRole(role);
-
 
996
        args.write(prot);
-
 
997
        prot.writeMessageEnd();
-
 
998
      }
-
 
999
 
-
 
1000
      public void getResult() throws org.apache.thrift.TException {
-
 
1001
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1002
          throw new IllegalStateException("Method call not finished!");
-
 
1003
        }
-
 
1004
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1005
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1006
        (new Client(prot)).recv_insertAgent();
-
 
1007
      }
-
 
1008
    }
-
 
1009
 
834
  }
1010
  }
835
 
1011
 
836
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1012
  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());
1013
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
838
    public Processor(I iface) {
1014
    public Processor(I iface) {
Line 846... Line 1022...
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) {
1022
    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());
1023
      processMap.put("getTickets", new getTickets());
848
      processMap.put("getUnassignedTickets", new getUnassignedTickets());
1024
      processMap.put("getUnassignedTickets", new getUnassignedTickets());
849
      processMap.put("updateTicket", new updateTicket());
1025
      processMap.put("updateTicket", new updateTicket());
850
      processMap.put("insertTicket", new insertTicket());
1026
      processMap.put("insertTicket", new insertTicket());
-
 
1027
      processMap.put("unassignAgentTickets", new unassignAgentTickets());
851
      processMap.put("getActivities", new getActivities());
1028
      processMap.put("getActivities", new getActivities());
852
      processMap.put("insertActivity", new insertActivity());
1029
      processMap.put("insertActivity", new insertActivity());
853
      processMap.put("markAsRead", new markAsRead());
1030
      processMap.put("markAsRead", new markAsRead());
854
      processMap.put("getAgents", new getAgents());
1031
      processMap.put("getAgents", new getAgents());
855
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
1032
      processMap.put("updatePasswordForAgent", new updatePasswordForAgent());
856
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
1033
      processMap.put("getRoleNamesForAgent", new getRoleNamesForAgent());
857
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
1034
      processMap.put("getPermissionsForRoleName", new getPermissionsForRoleName());
858
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
1035
      processMap.put("getLastEmailProcessedTimestamp", new getLastEmailProcessedTimestamp());
859
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
1036
      processMap.put("updateLastEmailProcessedTimestamp", new updateLastEmailProcessedTimestamp());
-
 
1037
      processMap.put("changeAgentStatus", new changeAgentStatus());
-
 
1038
      processMap.put("insertAgent", new insertAgent());
860
      return processMap;
1039
      return processMap;
861
    }
1040
    }
862
 
1041
 
863
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
1042
    private static class getTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getTickets_args> {
864
      public getTickets() {
1043
      public getTickets() {
Line 923... Line 1102...
923
        result.setSuccessIsSet(true);
1102
        result.setSuccessIsSet(true);
924
        return result;
1103
        return result;
925
      }
1104
      }
926
    }
1105
    }
927
 
1106
 
-
 
1107
    private static class unassignAgentTickets<I extends Iface> extends org.apache.thrift.ProcessFunction<I, unassignAgentTickets_args> {
-
 
1108
      public unassignAgentTickets() {
-
 
1109
        super("unassignAgentTickets");
-
 
1110
      }
-
 
1111
 
-
 
1112
      protected unassignAgentTickets_args getEmptyArgsInstance() {
-
 
1113
        return new unassignAgentTickets_args();
-
 
1114
      }
-
 
1115
 
-
 
1116
      protected unassignAgentTickets_result getResult(I iface, unassignAgentTickets_args args) throws org.apache.thrift.TException {
-
 
1117
        unassignAgentTickets_result result = new unassignAgentTickets_result();
-
 
1118
        iface.unassignAgentTickets(args.assigneeId);
-
 
1119
        return result;
-
 
1120
      }
-
 
1121
    }
-
 
1122
 
928
    private static class getActivities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivities_args> {
1123
    private static class getActivities<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getActivities_args> {
929
      public getActivities() {
1124
      public getActivities() {
930
        super("getActivities");
1125
        super("getActivities");
931
      }
1126
      }
932
 
1127
 
Line 1069... Line 1264...
1069
        iface.updateLastEmailProcessedTimestamp(args.timestamp);
1264
        iface.updateLastEmailProcessedTimestamp(args.timestamp);
1070
        return result;
1265
        return result;
1071
      }
1266
      }
1072
    }
1267
    }
1073
 
1268
 
-
 
1269
    private static class changeAgentStatus<I extends Iface> extends org.apache.thrift.ProcessFunction<I, changeAgentStatus_args> {
-
 
1270
      public changeAgentStatus() {
-
 
1271
        super("changeAgentStatus");
-
 
1272
      }
-
 
1273
 
-
 
1274
      protected changeAgentStatus_args getEmptyArgsInstance() {
-
 
1275
        return new changeAgentStatus_args();
-
 
1276
      }
-
 
1277
 
-
 
1278
      protected changeAgentStatus_result getResult(I iface, changeAgentStatus_args args) throws org.apache.thrift.TException {
-
 
1279
        changeAgentStatus_result result = new changeAgentStatus_result();
-
 
1280
        iface.changeAgentStatus(args.status, args.emailId);
-
 
1281
        return result;
-
 
1282
      }
-
 
1283
    }
-
 
1284
 
-
 
1285
    private static class insertAgent<I extends Iface> extends org.apache.thrift.ProcessFunction<I, insertAgent_args> {
-
 
1286
      public insertAgent() {
-
 
1287
        super("insertAgent");
-
 
1288
      }
-
 
1289
 
-
 
1290
      protected insertAgent_args getEmptyArgsInstance() {
-
 
1291
        return new insertAgent_args();
-
 
1292
      }
-
 
1293
 
-
 
1294
      protected insertAgent_result getResult(I iface, insertAgent_args args) throws org.apache.thrift.TException {
-
 
1295
        insertAgent_result result = new insertAgent_result();
-
 
1296
        iface.insertAgent(args.agent, args.role);
-
 
1297
        return result;
-
 
1298
      }
-
 
1299
    }
-
 
1300
 
1074
  }
1301
  }
1075
 
1302
 
1076
  public static class getTickets_args implements org.apache.thrift.TBase<getTickets_args, getTickets_args._Fields>, java.io.Serializable, Cloneable   {
1303
  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");
1304
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getTickets_args");
1078
 
1305
 
Line 3488... Line 3715...
3488
      }
3715
      }
3489
    }
3716
    }
3490
 
3717
 
3491
  }
3718
  }
3492
 
3719
 
-
 
3720
  public static class unassignAgentTickets_args implements org.apache.thrift.TBase<unassignAgentTickets_args, unassignAgentTickets_args._Fields>, java.io.Serializable, Cloneable   {
-
 
3721
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unassignAgentTickets_args");
-
 
3722
 
-
 
3723
    private static final org.apache.thrift.protocol.TField ASSIGNEE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("assigneeId", org.apache.thrift.protocol.TType.I32, (short)1);
-
 
3724
 
-
 
3725
    private int assigneeId; // required
-
 
3726
 
-
 
3727
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
3728
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
3729
      ASSIGNEE_ID((short)1, "assigneeId");
-
 
3730
 
-
 
3731
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
3732
 
-
 
3733
      static {
-
 
3734
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
3735
          byName.put(field.getFieldName(), field);
-
 
3736
        }
-
 
3737
      }
-
 
3738
 
-
 
3739
      /**
-
 
3740
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
3741
       */
-
 
3742
      public static _Fields findByThriftId(int fieldId) {
-
 
3743
        switch(fieldId) {
-
 
3744
          case 1: // ASSIGNEE_ID
-
 
3745
            return ASSIGNEE_ID;
-
 
3746
          default:
-
 
3747
            return null;
-
 
3748
        }
-
 
3749
      }
-
 
3750
 
-
 
3751
      /**
-
 
3752
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
3753
       * if it is not found.
-
 
3754
       */
-
 
3755
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
3756
        _Fields fields = findByThriftId(fieldId);
-
 
3757
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
3758
        return fields;
-
 
3759
      }
-
 
3760
 
-
 
3761
      /**
-
 
3762
       * Find the _Fields constant that matches name, or null if its not found.
-
 
3763
       */
-
 
3764
      public static _Fields findByName(String name) {
-
 
3765
        return byName.get(name);
-
 
3766
      }
-
 
3767
 
-
 
3768
      private final short _thriftId;
-
 
3769
      private final String _fieldName;
-
 
3770
 
-
 
3771
      _Fields(short thriftId, String fieldName) {
-
 
3772
        _thriftId = thriftId;
-
 
3773
        _fieldName = fieldName;
-
 
3774
      }
-
 
3775
 
-
 
3776
      public short getThriftFieldId() {
-
 
3777
        return _thriftId;
-
 
3778
      }
-
 
3779
 
-
 
3780
      public String getFieldName() {
-
 
3781
        return _fieldName;
-
 
3782
      }
-
 
3783
    }
-
 
3784
 
-
 
3785
    // isset id assignments
-
 
3786
    private static final int __ASSIGNEEID_ISSET_ID = 0;
-
 
3787
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
3788
 
-
 
3789
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
3790
    static {
-
 
3791
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3792
      tmpMap.put(_Fields.ASSIGNEE_ID, new org.apache.thrift.meta_data.FieldMetaData("assigneeId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3793
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
-
 
3794
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
3795
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unassignAgentTickets_args.class, metaDataMap);
-
 
3796
    }
-
 
3797
 
-
 
3798
    public unassignAgentTickets_args() {
-
 
3799
    }
-
 
3800
 
-
 
3801
    public unassignAgentTickets_args(
-
 
3802
      int assigneeId)
-
 
3803
    {
-
 
3804
      this();
-
 
3805
      this.assigneeId = assigneeId;
-
 
3806
      setAssigneeIdIsSet(true);
-
 
3807
    }
-
 
3808
 
-
 
3809
    /**
-
 
3810
     * Performs a deep copy on <i>other</i>.
-
 
3811
     */
-
 
3812
    public unassignAgentTickets_args(unassignAgentTickets_args other) {
-
 
3813
      __isset_bit_vector.clear();
-
 
3814
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
3815
      this.assigneeId = other.assigneeId;
-
 
3816
    }
-
 
3817
 
-
 
3818
    public unassignAgentTickets_args deepCopy() {
-
 
3819
      return new unassignAgentTickets_args(this);
-
 
3820
    }
-
 
3821
 
-
 
3822
    @Override
-
 
3823
    public void clear() {
-
 
3824
      setAssigneeIdIsSet(false);
-
 
3825
      this.assigneeId = 0;
-
 
3826
    }
-
 
3827
 
-
 
3828
    public int getAssigneeId() {
-
 
3829
      return this.assigneeId;
-
 
3830
    }
-
 
3831
 
-
 
3832
    public void setAssigneeId(int assigneeId) {
-
 
3833
      this.assigneeId = assigneeId;
-
 
3834
      setAssigneeIdIsSet(true);
-
 
3835
    }
-
 
3836
 
-
 
3837
    public void unsetAssigneeId() {
-
 
3838
      __isset_bit_vector.clear(__ASSIGNEEID_ISSET_ID);
-
 
3839
    }
-
 
3840
 
-
 
3841
    /** Returns true if field assigneeId is set (has been assigned a value) and false otherwise */
-
 
3842
    public boolean isSetAssigneeId() {
-
 
3843
      return __isset_bit_vector.get(__ASSIGNEEID_ISSET_ID);
-
 
3844
    }
-
 
3845
 
-
 
3846
    public void setAssigneeIdIsSet(boolean value) {
-
 
3847
      __isset_bit_vector.set(__ASSIGNEEID_ISSET_ID, value);
-
 
3848
    }
-
 
3849
 
-
 
3850
    public void setFieldValue(_Fields field, Object value) {
-
 
3851
      switch (field) {
-
 
3852
      case ASSIGNEE_ID:
-
 
3853
        if (value == null) {
-
 
3854
          unsetAssigneeId();
-
 
3855
        } else {
-
 
3856
          setAssigneeId((Integer)value);
-
 
3857
        }
-
 
3858
        break;
-
 
3859
 
-
 
3860
      }
-
 
3861
    }
-
 
3862
 
-
 
3863
    public Object getFieldValue(_Fields field) {
-
 
3864
      switch (field) {
-
 
3865
      case ASSIGNEE_ID:
-
 
3866
        return Integer.valueOf(getAssigneeId());
-
 
3867
 
-
 
3868
      }
-
 
3869
      throw new IllegalStateException();
-
 
3870
    }
-
 
3871
 
-
 
3872
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
3873
    public boolean isSet(_Fields field) {
-
 
3874
      if (field == null) {
-
 
3875
        throw new IllegalArgumentException();
-
 
3876
      }
-
 
3877
 
-
 
3878
      switch (field) {
-
 
3879
      case ASSIGNEE_ID:
-
 
3880
        return isSetAssigneeId();
-
 
3881
      }
-
 
3882
      throw new IllegalStateException();
-
 
3883
    }
-
 
3884
 
-
 
3885
    @Override
-
 
3886
    public boolean equals(Object that) {
-
 
3887
      if (that == null)
-
 
3888
        return false;
-
 
3889
      if (that instanceof unassignAgentTickets_args)
-
 
3890
        return this.equals((unassignAgentTickets_args)that);
-
 
3891
      return false;
-
 
3892
    }
-
 
3893
 
-
 
3894
    public boolean equals(unassignAgentTickets_args that) {
-
 
3895
      if (that == null)
-
 
3896
        return false;
-
 
3897
 
-
 
3898
      boolean this_present_assigneeId = true;
-
 
3899
      boolean that_present_assigneeId = true;
-
 
3900
      if (this_present_assigneeId || that_present_assigneeId) {
-
 
3901
        if (!(this_present_assigneeId && that_present_assigneeId))
-
 
3902
          return false;
-
 
3903
        if (this.assigneeId != that.assigneeId)
-
 
3904
          return false;
-
 
3905
      }
-
 
3906
 
-
 
3907
      return true;
-
 
3908
    }
-
 
3909
 
-
 
3910
    @Override
-
 
3911
    public int hashCode() {
-
 
3912
      return 0;
-
 
3913
    }
-
 
3914
 
-
 
3915
    public int compareTo(unassignAgentTickets_args other) {
-
 
3916
      if (!getClass().equals(other.getClass())) {
-
 
3917
        return getClass().getName().compareTo(other.getClass().getName());
-
 
3918
      }
-
 
3919
 
-
 
3920
      int lastComparison = 0;
-
 
3921
      unassignAgentTickets_args typedOther = (unassignAgentTickets_args)other;
-
 
3922
 
-
 
3923
      lastComparison = Boolean.valueOf(isSetAssigneeId()).compareTo(typedOther.isSetAssigneeId());
-
 
3924
      if (lastComparison != 0) {
-
 
3925
        return lastComparison;
-
 
3926
      }
-
 
3927
      if (isSetAssigneeId()) {
-
 
3928
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.assigneeId, typedOther.assigneeId);
-
 
3929
        if (lastComparison != 0) {
-
 
3930
          return lastComparison;
-
 
3931
        }
-
 
3932
      }
-
 
3933
      return 0;
-
 
3934
    }
-
 
3935
 
-
 
3936
    public _Fields fieldForId(int fieldId) {
-
 
3937
      return _Fields.findByThriftId(fieldId);
-
 
3938
    }
-
 
3939
 
-
 
3940
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
3941
      org.apache.thrift.protocol.TField field;
-
 
3942
      iprot.readStructBegin();
-
 
3943
      while (true)
-
 
3944
      {
-
 
3945
        field = iprot.readFieldBegin();
-
 
3946
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
3947
          break;
-
 
3948
        }
-
 
3949
        switch (field.id) {
-
 
3950
          case 1: // ASSIGNEE_ID
-
 
3951
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
3952
              this.assigneeId = iprot.readI32();
-
 
3953
              setAssigneeIdIsSet(true);
-
 
3954
            } else { 
-
 
3955
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3956
            }
-
 
3957
            break;
-
 
3958
          default:
-
 
3959
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
3960
        }
-
 
3961
        iprot.readFieldEnd();
-
 
3962
      }
-
 
3963
      iprot.readStructEnd();
-
 
3964
      validate();
-
 
3965
    }
-
 
3966
 
-
 
3967
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
3968
      validate();
-
 
3969
 
-
 
3970
      oprot.writeStructBegin(STRUCT_DESC);
-
 
3971
      oprot.writeFieldBegin(ASSIGNEE_ID_FIELD_DESC);
-
 
3972
      oprot.writeI32(this.assigneeId);
-
 
3973
      oprot.writeFieldEnd();
-
 
3974
      oprot.writeFieldStop();
-
 
3975
      oprot.writeStructEnd();
-
 
3976
    }
-
 
3977
 
-
 
3978
    @Override
-
 
3979
    public String toString() {
-
 
3980
      StringBuilder sb = new StringBuilder("unassignAgentTickets_args(");
-
 
3981
      boolean first = true;
-
 
3982
 
-
 
3983
      sb.append("assigneeId:");
-
 
3984
      sb.append(this.assigneeId);
-
 
3985
      first = false;
-
 
3986
      sb.append(")");
-
 
3987
      return sb.toString();
-
 
3988
    }
-
 
3989
 
-
 
3990
    public void validate() throws org.apache.thrift.TException {
-
 
3991
      // check for required fields
-
 
3992
    }
-
 
3993
 
-
 
3994
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3995
      try {
-
 
3996
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3997
      } catch (org.apache.thrift.TException te) {
-
 
3998
        throw new java.io.IOException(te);
-
 
3999
      }
-
 
4000
    }
-
 
4001
 
-
 
4002
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4003
      try {
-
 
4004
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
4005
        __isset_bit_vector = new BitSet(1);
-
 
4006
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4007
      } catch (org.apache.thrift.TException te) {
-
 
4008
        throw new java.io.IOException(te);
-
 
4009
      }
-
 
4010
    }
-
 
4011
 
-
 
4012
  }
-
 
4013
 
-
 
4014
  public static class unassignAgentTickets_result implements org.apache.thrift.TBase<unassignAgentTickets_result, unassignAgentTickets_result._Fields>, java.io.Serializable, Cloneable   {
-
 
4015
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("unassignAgentTickets_result");
-
 
4016
 
-
 
4017
 
-
 
4018
 
-
 
4019
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
4020
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
4021
;
-
 
4022
 
-
 
4023
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
4024
 
-
 
4025
      static {
-
 
4026
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
4027
          byName.put(field.getFieldName(), field);
-
 
4028
        }
-
 
4029
      }
-
 
4030
 
-
 
4031
      /**
-
 
4032
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
4033
       */
-
 
4034
      public static _Fields findByThriftId(int fieldId) {
-
 
4035
        switch(fieldId) {
-
 
4036
          default:
-
 
4037
            return null;
-
 
4038
        }
-
 
4039
      }
-
 
4040
 
-
 
4041
      /**
-
 
4042
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
4043
       * if it is not found.
-
 
4044
       */
-
 
4045
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
4046
        _Fields fields = findByThriftId(fieldId);
-
 
4047
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
4048
        return fields;
-
 
4049
      }
-
 
4050
 
-
 
4051
      /**
-
 
4052
       * Find the _Fields constant that matches name, or null if its not found.
-
 
4053
       */
-
 
4054
      public static _Fields findByName(String name) {
-
 
4055
        return byName.get(name);
-
 
4056
      }
-
 
4057
 
-
 
4058
      private final short _thriftId;
-
 
4059
      private final String _fieldName;
-
 
4060
 
-
 
4061
      _Fields(short thriftId, String fieldName) {
-
 
4062
        _thriftId = thriftId;
-
 
4063
        _fieldName = fieldName;
-
 
4064
      }
-
 
4065
 
-
 
4066
      public short getThriftFieldId() {
-
 
4067
        return _thriftId;
-
 
4068
      }
-
 
4069
 
-
 
4070
      public String getFieldName() {
-
 
4071
        return _fieldName;
-
 
4072
      }
-
 
4073
    }
-
 
4074
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
4075
    static {
-
 
4076
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4077
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
4078
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(unassignAgentTickets_result.class, metaDataMap);
-
 
4079
    }
-
 
4080
 
-
 
4081
    public unassignAgentTickets_result() {
-
 
4082
    }
-
 
4083
 
-
 
4084
    /**
-
 
4085
     * Performs a deep copy on <i>other</i>.
-
 
4086
     */
-
 
4087
    public unassignAgentTickets_result(unassignAgentTickets_result other) {
-
 
4088
    }
-
 
4089
 
-
 
4090
    public unassignAgentTickets_result deepCopy() {
-
 
4091
      return new unassignAgentTickets_result(this);
-
 
4092
    }
-
 
4093
 
-
 
4094
    @Override
-
 
4095
    public void clear() {
-
 
4096
    }
-
 
4097
 
-
 
4098
    public void setFieldValue(_Fields field, Object value) {
-
 
4099
      switch (field) {
-
 
4100
      }
-
 
4101
    }
-
 
4102
 
-
 
4103
    public Object getFieldValue(_Fields field) {
-
 
4104
      switch (field) {
-
 
4105
      }
-
 
4106
      throw new IllegalStateException();
-
 
4107
    }
-
 
4108
 
-
 
4109
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
4110
    public boolean isSet(_Fields field) {
-
 
4111
      if (field == null) {
-
 
4112
        throw new IllegalArgumentException();
-
 
4113
      }
-
 
4114
 
-
 
4115
      switch (field) {
-
 
4116
      }
-
 
4117
      throw new IllegalStateException();
-
 
4118
    }
-
 
4119
 
-
 
4120
    @Override
-
 
4121
    public boolean equals(Object that) {
-
 
4122
      if (that == null)
-
 
4123
        return false;
-
 
4124
      if (that instanceof unassignAgentTickets_result)
-
 
4125
        return this.equals((unassignAgentTickets_result)that);
-
 
4126
      return false;
-
 
4127
    }
-
 
4128
 
-
 
4129
    public boolean equals(unassignAgentTickets_result that) {
-
 
4130
      if (that == null)
-
 
4131
        return false;
-
 
4132
 
-
 
4133
      return true;
-
 
4134
    }
-
 
4135
 
-
 
4136
    @Override
-
 
4137
    public int hashCode() {
-
 
4138
      return 0;
-
 
4139
    }
-
 
4140
 
-
 
4141
    public int compareTo(unassignAgentTickets_result other) {
-
 
4142
      if (!getClass().equals(other.getClass())) {
-
 
4143
        return getClass().getName().compareTo(other.getClass().getName());
-
 
4144
      }
-
 
4145
 
-
 
4146
      int lastComparison = 0;
-
 
4147
      unassignAgentTickets_result typedOther = (unassignAgentTickets_result)other;
-
 
4148
 
-
 
4149
      return 0;
-
 
4150
    }
-
 
4151
 
-
 
4152
    public _Fields fieldForId(int fieldId) {
-
 
4153
      return _Fields.findByThriftId(fieldId);
-
 
4154
    }
-
 
4155
 
-
 
4156
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
4157
      org.apache.thrift.protocol.TField field;
-
 
4158
      iprot.readStructBegin();
-
 
4159
      while (true)
-
 
4160
      {
-
 
4161
        field = iprot.readFieldBegin();
-
 
4162
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
4163
          break;
-
 
4164
        }
-
 
4165
        switch (field.id) {
-
 
4166
          default:
-
 
4167
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4168
        }
-
 
4169
        iprot.readFieldEnd();
-
 
4170
      }
-
 
4171
      iprot.readStructEnd();
-
 
4172
      validate();
-
 
4173
    }
-
 
4174
 
-
 
4175
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
4176
      oprot.writeStructBegin(STRUCT_DESC);
-
 
4177
 
-
 
4178
      oprot.writeFieldStop();
-
 
4179
      oprot.writeStructEnd();
-
 
4180
    }
-
 
4181
 
-
 
4182
    @Override
-
 
4183
    public String toString() {
-
 
4184
      StringBuilder sb = new StringBuilder("unassignAgentTickets_result(");
-
 
4185
      boolean first = true;
-
 
4186
 
-
 
4187
      sb.append(")");
-
 
4188
      return sb.toString();
-
 
4189
    }
-
 
4190
 
-
 
4191
    public void validate() throws org.apache.thrift.TException {
-
 
4192
      // check for required fields
-
 
4193
    }
-
 
4194
 
-
 
4195
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4196
      try {
-
 
4197
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4198
      } catch (org.apache.thrift.TException te) {
-
 
4199
        throw new java.io.IOException(te);
-
 
4200
      }
-
 
4201
    }
-
 
4202
 
-
 
4203
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4204
      try {
-
 
4205
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4206
      } catch (org.apache.thrift.TException te) {
-
 
4207
        throw new java.io.IOException(te);
-
 
4208
      }
-
 
4209
    }
-
 
4210
 
-
 
4211
  }
-
 
4212
 
3493
  public static class getActivities_args implements org.apache.thrift.TBase<getActivities_args, getActivities_args._Fields>, java.io.Serializable, Cloneable   {
4213
  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");
4214
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getActivities_args");
3495
 
4215
 
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);
4216
    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);
3497
 
4217
 
Line 8696... Line 9416...
8696
      boolean first = true;
9416
      boolean first = true;
8697
 
9417
 
8698
      sb.append(")");
9418
      sb.append(")");
8699
      return sb.toString();
9419
      return sb.toString();
8700
    }
9420
    }
-
 
9421
 
-
 
9422
    public void validate() throws org.apache.thrift.TException {
-
 
9423
      // check for required fields
-
 
9424
    }
-
 
9425
 
-
 
9426
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9427
      try {
-
 
9428
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9429
      } catch (org.apache.thrift.TException te) {
-
 
9430
        throw new java.io.IOException(te);
-
 
9431
      }
-
 
9432
    }
-
 
9433
 
-
 
9434
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9435
      try {
-
 
9436
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9437
      } catch (org.apache.thrift.TException te) {
-
 
9438
        throw new java.io.IOException(te);
-
 
9439
      }
-
 
9440
    }
-
 
9441
 
-
 
9442
  }
-
 
9443
 
-
 
9444
  public static class changeAgentStatus_args implements org.apache.thrift.TBase<changeAgentStatus_args, changeAgentStatus_args._Fields>, java.io.Serializable, Cloneable   {
-
 
9445
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_args");
-
 
9446
 
-
 
9447
    private static final org.apache.thrift.protocol.TField STATUS_FIELD_DESC = new org.apache.thrift.protocol.TField("status", org.apache.thrift.protocol.TType.BOOL, (short)1);
-
 
9448
    private static final org.apache.thrift.protocol.TField EMAIL_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("emailId", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
9449
 
-
 
9450
    private boolean status; // required
-
 
9451
    private String emailId; // required
-
 
9452
 
-
 
9453
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9454
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9455
      STATUS((short)1, "status"),
-
 
9456
      EMAIL_ID((short)2, "emailId");
-
 
9457
 
-
 
9458
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9459
 
-
 
9460
      static {
-
 
9461
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9462
          byName.put(field.getFieldName(), field);
-
 
9463
        }
-
 
9464
      }
-
 
9465
 
-
 
9466
      /**
-
 
9467
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9468
       */
-
 
9469
      public static _Fields findByThriftId(int fieldId) {
-
 
9470
        switch(fieldId) {
-
 
9471
          case 1: // STATUS
-
 
9472
            return STATUS;
-
 
9473
          case 2: // EMAIL_ID
-
 
9474
            return EMAIL_ID;
-
 
9475
          default:
-
 
9476
            return null;
-
 
9477
        }
-
 
9478
      }
-
 
9479
 
-
 
9480
      /**
-
 
9481
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9482
       * if it is not found.
-
 
9483
       */
-
 
9484
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9485
        _Fields fields = findByThriftId(fieldId);
-
 
9486
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9487
        return fields;
-
 
9488
      }
-
 
9489
 
-
 
9490
      /**
-
 
9491
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9492
       */
-
 
9493
      public static _Fields findByName(String name) {
-
 
9494
        return byName.get(name);
-
 
9495
      }
-
 
9496
 
-
 
9497
      private final short _thriftId;
-
 
9498
      private final String _fieldName;
-
 
9499
 
-
 
9500
      _Fields(short thriftId, String fieldName) {
-
 
9501
        _thriftId = thriftId;
-
 
9502
        _fieldName = fieldName;
-
 
9503
      }
-
 
9504
 
-
 
9505
      public short getThriftFieldId() {
-
 
9506
        return _thriftId;
-
 
9507
      }
-
 
9508
 
-
 
9509
      public String getFieldName() {
-
 
9510
        return _fieldName;
-
 
9511
      }
-
 
9512
    }
-
 
9513
 
-
 
9514
    // isset id assignments
-
 
9515
    private static final int __STATUS_ISSET_ID = 0;
-
 
9516
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
9517
 
-
 
9518
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9519
    static {
-
 
9520
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9521
      tmpMap.put(_Fields.STATUS, new org.apache.thrift.meta_data.FieldMetaData("status", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9522
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
9523
      tmpMap.put(_Fields.EMAIL_ID, new org.apache.thrift.meta_data.FieldMetaData("emailId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
9524
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
9525
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9526
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_args.class, metaDataMap);
-
 
9527
    }
-
 
9528
 
-
 
9529
    public changeAgentStatus_args() {
-
 
9530
    }
-
 
9531
 
-
 
9532
    public changeAgentStatus_args(
-
 
9533
      boolean status,
-
 
9534
      String emailId)
-
 
9535
    {
-
 
9536
      this();
-
 
9537
      this.status = status;
-
 
9538
      setStatusIsSet(true);
-
 
9539
      this.emailId = emailId;
-
 
9540
    }
-
 
9541
 
-
 
9542
    /**
-
 
9543
     * Performs a deep copy on <i>other</i>.
-
 
9544
     */
-
 
9545
    public changeAgentStatus_args(changeAgentStatus_args other) {
-
 
9546
      __isset_bit_vector.clear();
-
 
9547
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
9548
      this.status = other.status;
-
 
9549
      if (other.isSetEmailId()) {
-
 
9550
        this.emailId = other.emailId;
-
 
9551
      }
-
 
9552
    }
-
 
9553
 
-
 
9554
    public changeAgentStatus_args deepCopy() {
-
 
9555
      return new changeAgentStatus_args(this);
-
 
9556
    }
-
 
9557
 
-
 
9558
    @Override
-
 
9559
    public void clear() {
-
 
9560
      setStatusIsSet(false);
-
 
9561
      this.status = false;
-
 
9562
      this.emailId = null;
-
 
9563
    }
-
 
9564
 
-
 
9565
    public boolean isStatus() {
-
 
9566
      return this.status;
-
 
9567
    }
-
 
9568
 
-
 
9569
    public void setStatus(boolean status) {
-
 
9570
      this.status = status;
-
 
9571
      setStatusIsSet(true);
-
 
9572
    }
-
 
9573
 
-
 
9574
    public void unsetStatus() {
-
 
9575
      __isset_bit_vector.clear(__STATUS_ISSET_ID);
-
 
9576
    }
-
 
9577
 
-
 
9578
    /** Returns true if field status is set (has been assigned a value) and false otherwise */
-
 
9579
    public boolean isSetStatus() {
-
 
9580
      return __isset_bit_vector.get(__STATUS_ISSET_ID);
-
 
9581
    }
-
 
9582
 
-
 
9583
    public void setStatusIsSet(boolean value) {
-
 
9584
      __isset_bit_vector.set(__STATUS_ISSET_ID, value);
-
 
9585
    }
-
 
9586
 
-
 
9587
    public String getEmailId() {
-
 
9588
      return this.emailId;
-
 
9589
    }
-
 
9590
 
-
 
9591
    public void setEmailId(String emailId) {
-
 
9592
      this.emailId = emailId;
-
 
9593
    }
-
 
9594
 
-
 
9595
    public void unsetEmailId() {
-
 
9596
      this.emailId = null;
-
 
9597
    }
-
 
9598
 
-
 
9599
    /** Returns true if field emailId is set (has been assigned a value) and false otherwise */
-
 
9600
    public boolean isSetEmailId() {
-
 
9601
      return this.emailId != null;
-
 
9602
    }
-
 
9603
 
-
 
9604
    public void setEmailIdIsSet(boolean value) {
-
 
9605
      if (!value) {
-
 
9606
        this.emailId = null;
-
 
9607
      }
-
 
9608
    }
-
 
9609
 
-
 
9610
    public void setFieldValue(_Fields field, Object value) {
-
 
9611
      switch (field) {
-
 
9612
      case STATUS:
-
 
9613
        if (value == null) {
-
 
9614
          unsetStatus();
-
 
9615
        } else {
-
 
9616
          setStatus((Boolean)value);
-
 
9617
        }
-
 
9618
        break;
-
 
9619
 
-
 
9620
      case EMAIL_ID:
-
 
9621
        if (value == null) {
-
 
9622
          unsetEmailId();
-
 
9623
        } else {
-
 
9624
          setEmailId((String)value);
-
 
9625
        }
-
 
9626
        break;
-
 
9627
 
-
 
9628
      }
-
 
9629
    }
-
 
9630
 
-
 
9631
    public Object getFieldValue(_Fields field) {
-
 
9632
      switch (field) {
-
 
9633
      case STATUS:
-
 
9634
        return Boolean.valueOf(isStatus());
-
 
9635
 
-
 
9636
      case EMAIL_ID:
-
 
9637
        return getEmailId();
-
 
9638
 
-
 
9639
      }
-
 
9640
      throw new IllegalStateException();
-
 
9641
    }
-
 
9642
 
-
 
9643
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9644
    public boolean isSet(_Fields field) {
-
 
9645
      if (field == null) {
-
 
9646
        throw new IllegalArgumentException();
-
 
9647
      }
-
 
9648
 
-
 
9649
      switch (field) {
-
 
9650
      case STATUS:
-
 
9651
        return isSetStatus();
-
 
9652
      case EMAIL_ID:
-
 
9653
        return isSetEmailId();
-
 
9654
      }
-
 
9655
      throw new IllegalStateException();
-
 
9656
    }
-
 
9657
 
-
 
9658
    @Override
-
 
9659
    public boolean equals(Object that) {
-
 
9660
      if (that == null)
-
 
9661
        return false;
-
 
9662
      if (that instanceof changeAgentStatus_args)
-
 
9663
        return this.equals((changeAgentStatus_args)that);
-
 
9664
      return false;
-
 
9665
    }
-
 
9666
 
-
 
9667
    public boolean equals(changeAgentStatus_args that) {
-
 
9668
      if (that == null)
-
 
9669
        return false;
-
 
9670
 
-
 
9671
      boolean this_present_status = true;
-
 
9672
      boolean that_present_status = true;
-
 
9673
      if (this_present_status || that_present_status) {
-
 
9674
        if (!(this_present_status && that_present_status))
-
 
9675
          return false;
-
 
9676
        if (this.status != that.status)
-
 
9677
          return false;
-
 
9678
      }
-
 
9679
 
-
 
9680
      boolean this_present_emailId = true && this.isSetEmailId();
-
 
9681
      boolean that_present_emailId = true && that.isSetEmailId();
-
 
9682
      if (this_present_emailId || that_present_emailId) {
-
 
9683
        if (!(this_present_emailId && that_present_emailId))
-
 
9684
          return false;
-
 
9685
        if (!this.emailId.equals(that.emailId))
-
 
9686
          return false;
-
 
9687
      }
-
 
9688
 
-
 
9689
      return true;
-
 
9690
    }
-
 
9691
 
-
 
9692
    @Override
-
 
9693
    public int hashCode() {
-
 
9694
      return 0;
-
 
9695
    }
-
 
9696
 
-
 
9697
    public int compareTo(changeAgentStatus_args other) {
-
 
9698
      if (!getClass().equals(other.getClass())) {
-
 
9699
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9700
      }
-
 
9701
 
-
 
9702
      int lastComparison = 0;
-
 
9703
      changeAgentStatus_args typedOther = (changeAgentStatus_args)other;
-
 
9704
 
-
 
9705
      lastComparison = Boolean.valueOf(isSetStatus()).compareTo(typedOther.isSetStatus());
-
 
9706
      if (lastComparison != 0) {
-
 
9707
        return lastComparison;
-
 
9708
      }
-
 
9709
      if (isSetStatus()) {
-
 
9710
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.status, typedOther.status);
-
 
9711
        if (lastComparison != 0) {
-
 
9712
          return lastComparison;
-
 
9713
        }
-
 
9714
      }
-
 
9715
      lastComparison = Boolean.valueOf(isSetEmailId()).compareTo(typedOther.isSetEmailId());
-
 
9716
      if (lastComparison != 0) {
-
 
9717
        return lastComparison;
-
 
9718
      }
-
 
9719
      if (isSetEmailId()) {
-
 
9720
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.emailId, typedOther.emailId);
-
 
9721
        if (lastComparison != 0) {
-
 
9722
          return lastComparison;
-
 
9723
        }
-
 
9724
      }
-
 
9725
      return 0;
-
 
9726
    }
-
 
9727
 
-
 
9728
    public _Fields fieldForId(int fieldId) {
-
 
9729
      return _Fields.findByThriftId(fieldId);
-
 
9730
    }
-
 
9731
 
-
 
9732
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9733
      org.apache.thrift.protocol.TField field;
-
 
9734
      iprot.readStructBegin();
-
 
9735
      while (true)
-
 
9736
      {
-
 
9737
        field = iprot.readFieldBegin();
-
 
9738
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9739
          break;
-
 
9740
        }
-
 
9741
        switch (field.id) {
-
 
9742
          case 1: // STATUS
-
 
9743
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
-
 
9744
              this.status = iprot.readBool();
-
 
9745
              setStatusIsSet(true);
-
 
9746
            } else { 
-
 
9747
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9748
            }
-
 
9749
            break;
-
 
9750
          case 2: // EMAIL_ID
-
 
9751
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
9752
              this.emailId = iprot.readString();
-
 
9753
            } else { 
-
 
9754
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9755
            }
-
 
9756
            break;
-
 
9757
          default:
-
 
9758
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9759
        }
-
 
9760
        iprot.readFieldEnd();
-
 
9761
      }
-
 
9762
      iprot.readStructEnd();
-
 
9763
      validate();
-
 
9764
    }
-
 
9765
 
-
 
9766
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9767
      validate();
-
 
9768
 
-
 
9769
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9770
      oprot.writeFieldBegin(STATUS_FIELD_DESC);
-
 
9771
      oprot.writeBool(this.status);
-
 
9772
      oprot.writeFieldEnd();
-
 
9773
      if (this.emailId != null) {
-
 
9774
        oprot.writeFieldBegin(EMAIL_ID_FIELD_DESC);
-
 
9775
        oprot.writeString(this.emailId);
-
 
9776
        oprot.writeFieldEnd();
-
 
9777
      }
-
 
9778
      oprot.writeFieldStop();
-
 
9779
      oprot.writeStructEnd();
-
 
9780
    }
-
 
9781
 
-
 
9782
    @Override
-
 
9783
    public String toString() {
-
 
9784
      StringBuilder sb = new StringBuilder("changeAgentStatus_args(");
-
 
9785
      boolean first = true;
-
 
9786
 
-
 
9787
      sb.append("status:");
-
 
9788
      sb.append(this.status);
-
 
9789
      first = false;
-
 
9790
      if (!first) sb.append(", ");
-
 
9791
      sb.append("emailId:");
-
 
9792
      if (this.emailId == null) {
-
 
9793
        sb.append("null");
-
 
9794
      } else {
-
 
9795
        sb.append(this.emailId);
-
 
9796
      }
-
 
9797
      first = false;
-
 
9798
      sb.append(")");
-
 
9799
      return sb.toString();
-
 
9800
    }
-
 
9801
 
-
 
9802
    public void validate() throws org.apache.thrift.TException {
-
 
9803
      // check for required fields
-
 
9804
    }
-
 
9805
 
-
 
9806
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
9807
      try {
-
 
9808
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
9809
      } catch (org.apache.thrift.TException te) {
-
 
9810
        throw new java.io.IOException(te);
-
 
9811
      }
-
 
9812
    }
-
 
9813
 
-
 
9814
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
9815
      try {
-
 
9816
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
9817
        __isset_bit_vector = new BitSet(1);
-
 
9818
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
9819
      } catch (org.apache.thrift.TException te) {
-
 
9820
        throw new java.io.IOException(te);
-
 
9821
      }
-
 
9822
    }
-
 
9823
 
-
 
9824
  }
-
 
9825
 
-
 
9826
  public static class changeAgentStatus_result implements org.apache.thrift.TBase<changeAgentStatus_result, changeAgentStatus_result._Fields>, java.io.Serializable, Cloneable   {
-
 
9827
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("changeAgentStatus_result");
-
 
9828
 
-
 
9829
 
-
 
9830
 
-
 
9831
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9832
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
9833
;
-
 
9834
 
-
 
9835
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9836
 
-
 
9837
      static {
-
 
9838
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9839
          byName.put(field.getFieldName(), field);
-
 
9840
        }
-
 
9841
      }
-
 
9842
 
-
 
9843
      /**
-
 
9844
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9845
       */
-
 
9846
      public static _Fields findByThriftId(int fieldId) {
-
 
9847
        switch(fieldId) {
-
 
9848
          default:
-
 
9849
            return null;
-
 
9850
        }
-
 
9851
      }
-
 
9852
 
-
 
9853
      /**
-
 
9854
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9855
       * if it is not found.
-
 
9856
       */
-
 
9857
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9858
        _Fields fields = findByThriftId(fieldId);
-
 
9859
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9860
        return fields;
-
 
9861
      }
-
 
9862
 
-
 
9863
      /**
-
 
9864
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9865
       */
-
 
9866
      public static _Fields findByName(String name) {
-
 
9867
        return byName.get(name);
-
 
9868
      }
-
 
9869
 
-
 
9870
      private final short _thriftId;
-
 
9871
      private final String _fieldName;
-
 
9872
 
-
 
9873
      _Fields(short thriftId, String fieldName) {
-
 
9874
        _thriftId = thriftId;
-
 
9875
        _fieldName = fieldName;
-
 
9876
      }
-
 
9877
 
-
 
9878
      public short getThriftFieldId() {
-
 
9879
        return _thriftId;
-
 
9880
      }
-
 
9881
 
-
 
9882
      public String getFieldName() {
-
 
9883
        return _fieldName;
-
 
9884
      }
-
 
9885
    }
-
 
9886
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
9887
    static {
-
 
9888
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
9889
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
9890
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(changeAgentStatus_result.class, metaDataMap);
-
 
9891
    }
-
 
9892
 
-
 
9893
    public changeAgentStatus_result() {
-
 
9894
    }
-
 
9895
 
-
 
9896
    /**
-
 
9897
     * Performs a deep copy on <i>other</i>.
-
 
9898
     */
-
 
9899
    public changeAgentStatus_result(changeAgentStatus_result other) {
-
 
9900
    }
-
 
9901
 
-
 
9902
    public changeAgentStatus_result deepCopy() {
-
 
9903
      return new changeAgentStatus_result(this);
-
 
9904
    }
-
 
9905
 
-
 
9906
    @Override
-
 
9907
    public void clear() {
-
 
9908
    }
-
 
9909
 
-
 
9910
    public void setFieldValue(_Fields field, Object value) {
-
 
9911
      switch (field) {
-
 
9912
      }
-
 
9913
    }
-
 
9914
 
-
 
9915
    public Object getFieldValue(_Fields field) {
-
 
9916
      switch (field) {
-
 
9917
      }
-
 
9918
      throw new IllegalStateException();
-
 
9919
    }
-
 
9920
 
-
 
9921
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
9922
    public boolean isSet(_Fields field) {
-
 
9923
      if (field == null) {
-
 
9924
        throw new IllegalArgumentException();
-
 
9925
      }
-
 
9926
 
-
 
9927
      switch (field) {
-
 
9928
      }
-
 
9929
      throw new IllegalStateException();
-
 
9930
    }
-
 
9931
 
-
 
9932
    @Override
-
 
9933
    public boolean equals(Object that) {
-
 
9934
      if (that == null)
-
 
9935
        return false;
-
 
9936
      if (that instanceof changeAgentStatus_result)
-
 
9937
        return this.equals((changeAgentStatus_result)that);
-
 
9938
      return false;
-
 
9939
    }
-
 
9940
 
-
 
9941
    public boolean equals(changeAgentStatus_result that) {
-
 
9942
      if (that == null)
-
 
9943
        return false;
-
 
9944
 
-
 
9945
      return true;
-
 
9946
    }
-
 
9947
 
-
 
9948
    @Override
-
 
9949
    public int hashCode() {
-
 
9950
      return 0;
-
 
9951
    }
-
 
9952
 
-
 
9953
    public int compareTo(changeAgentStatus_result other) {
-
 
9954
      if (!getClass().equals(other.getClass())) {
-
 
9955
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9956
      }
-
 
9957
 
-
 
9958
      int lastComparison = 0;
-
 
9959
      changeAgentStatus_result typedOther = (changeAgentStatus_result)other;
-
 
9960
 
-
 
9961
      return 0;
-
 
9962
    }
-
 
9963
 
-
 
9964
    public _Fields fieldForId(int fieldId) {
-
 
9965
      return _Fields.findByThriftId(fieldId);
-
 
9966
    }
-
 
9967
 
-
 
9968
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
9969
      org.apache.thrift.protocol.TField field;
-
 
9970
      iprot.readStructBegin();
-
 
9971
      while (true)
-
 
9972
      {
-
 
9973
        field = iprot.readFieldBegin();
-
 
9974
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
9975
          break;
-
 
9976
        }
-
 
9977
        switch (field.id) {
-
 
9978
          default:
-
 
9979
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
9980
        }
-
 
9981
        iprot.readFieldEnd();
-
 
9982
      }
-
 
9983
      iprot.readStructEnd();
-
 
9984
      validate();
-
 
9985
    }
-
 
9986
 
-
 
9987
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
9988
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9989
 
-
 
9990
      oprot.writeFieldStop();
-
 
9991
      oprot.writeStructEnd();
-
 
9992
    }
-
 
9993
 
-
 
9994
    @Override
-
 
9995
    public String toString() {
-
 
9996
      StringBuilder sb = new StringBuilder("changeAgentStatus_result(");
-
 
9997
      boolean first = true;
-
 
9998
 
-
 
9999
      sb.append(")");
-
 
10000
      return sb.toString();
-
 
10001
    }
-
 
10002
 
-
 
10003
    public void validate() throws org.apache.thrift.TException {
-
 
10004
      // check for required fields
-
 
10005
    }
-
 
10006
 
-
 
10007
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10008
      try {
-
 
10009
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10010
      } catch (org.apache.thrift.TException te) {
-
 
10011
        throw new java.io.IOException(te);
-
 
10012
      }
-
 
10013
    }
-
 
10014
 
-
 
10015
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10016
      try {
-
 
10017
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10018
      } catch (org.apache.thrift.TException te) {
-
 
10019
        throw new java.io.IOException(te);
-
 
10020
      }
-
 
10021
    }
-
 
10022
 
-
 
10023
  }
-
 
10024
 
-
 
10025
  public static class insertAgent_args implements org.apache.thrift.TBase<insertAgent_args, insertAgent_args._Fields>, java.io.Serializable, Cloneable   {
-
 
10026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_args");
-
 
10027
 
-
 
10028
    private static final org.apache.thrift.protocol.TField AGENT_FIELD_DESC = new org.apache.thrift.protocol.TField("agent", org.apache.thrift.protocol.TType.STRUCT, (short)1);
-
 
10029
    private static final org.apache.thrift.protocol.TField ROLE_FIELD_DESC = new org.apache.thrift.protocol.TField("role", org.apache.thrift.protocol.TType.LIST, (short)2);
-
 
10030
 
-
 
10031
    private Agent agent; // required
-
 
10032
    private List<String> role; // required
-
 
10033
 
-
 
10034
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10035
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10036
      AGENT((short)1, "agent"),
-
 
10037
      ROLE((short)2, "role");
-
 
10038
 
-
 
10039
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10040
 
-
 
10041
      static {
-
 
10042
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10043
          byName.put(field.getFieldName(), field);
-
 
10044
        }
-
 
10045
      }
-
 
10046
 
-
 
10047
      /**
-
 
10048
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10049
       */
-
 
10050
      public static _Fields findByThriftId(int fieldId) {
-
 
10051
        switch(fieldId) {
-
 
10052
          case 1: // AGENT
-
 
10053
            return AGENT;
-
 
10054
          case 2: // ROLE
-
 
10055
            return ROLE;
-
 
10056
          default:
-
 
10057
            return null;
-
 
10058
        }
-
 
10059
      }
-
 
10060
 
-
 
10061
      /**
-
 
10062
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10063
       * if it is not found.
-
 
10064
       */
-
 
10065
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10066
        _Fields fields = findByThriftId(fieldId);
-
 
10067
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10068
        return fields;
-
 
10069
      }
-
 
10070
 
-
 
10071
      /**
-
 
10072
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10073
       */
-
 
10074
      public static _Fields findByName(String name) {
-
 
10075
        return byName.get(name);
-
 
10076
      }
-
 
10077
 
-
 
10078
      private final short _thriftId;
-
 
10079
      private final String _fieldName;
-
 
10080
 
-
 
10081
      _Fields(short thriftId, String fieldName) {
-
 
10082
        _thriftId = thriftId;
-
 
10083
        _fieldName = fieldName;
-
 
10084
      }
-
 
10085
 
-
 
10086
      public short getThriftFieldId() {
-
 
10087
        return _thriftId;
-
 
10088
      }
-
 
10089
 
-
 
10090
      public String getFieldName() {
-
 
10091
        return _fieldName;
-
 
10092
      }
-
 
10093
    }
-
 
10094
 
-
 
10095
    // isset id assignments
-
 
10096
 
-
 
10097
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10098
    static {
-
 
10099
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10100
      tmpMap.put(_Fields.AGENT, new org.apache.thrift.meta_data.FieldMetaData("agent", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10101
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Agent.class)));
-
 
10102
      tmpMap.put(_Fields.ROLE, new org.apache.thrift.meta_data.FieldMetaData("role", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
10103
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
10104
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
-
 
10105
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10106
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_args.class, metaDataMap);
-
 
10107
    }
-
 
10108
 
-
 
10109
    public insertAgent_args() {
-
 
10110
    }
-
 
10111
 
-
 
10112
    public insertAgent_args(
-
 
10113
      Agent agent,
-
 
10114
      List<String> role)
-
 
10115
    {
-
 
10116
      this();
-
 
10117
      this.agent = agent;
-
 
10118
      this.role = role;
-
 
10119
    }
-
 
10120
 
-
 
10121
    /**
-
 
10122
     * Performs a deep copy on <i>other</i>.
-
 
10123
     */
-
 
10124
    public insertAgent_args(insertAgent_args other) {
-
 
10125
      if (other.isSetAgent()) {
-
 
10126
        this.agent = new Agent(other.agent);
-
 
10127
      }
-
 
10128
      if (other.isSetRole()) {
-
 
10129
        List<String> __this__role = new ArrayList<String>();
-
 
10130
        for (String other_element : other.role) {
-
 
10131
          __this__role.add(other_element);
-
 
10132
        }
-
 
10133
        this.role = __this__role;
-
 
10134
      }
-
 
10135
    }
-
 
10136
 
-
 
10137
    public insertAgent_args deepCopy() {
-
 
10138
      return new insertAgent_args(this);
-
 
10139
    }
-
 
10140
 
-
 
10141
    @Override
-
 
10142
    public void clear() {
-
 
10143
      this.agent = null;
-
 
10144
      this.role = null;
-
 
10145
    }
-
 
10146
 
-
 
10147
    public Agent getAgent() {
-
 
10148
      return this.agent;
-
 
10149
    }
-
 
10150
 
-
 
10151
    public void setAgent(Agent agent) {
-
 
10152
      this.agent = agent;
-
 
10153
    }
-
 
10154
 
-
 
10155
    public void unsetAgent() {
-
 
10156
      this.agent = null;
-
 
10157
    }
-
 
10158
 
-
 
10159
    /** Returns true if field agent is set (has been assigned a value) and false otherwise */
-
 
10160
    public boolean isSetAgent() {
-
 
10161
      return this.agent != null;
-
 
10162
    }
-
 
10163
 
-
 
10164
    public void setAgentIsSet(boolean value) {
-
 
10165
      if (!value) {
-
 
10166
        this.agent = null;
-
 
10167
      }
-
 
10168
    }
-
 
10169
 
-
 
10170
    public int getRoleSize() {
-
 
10171
      return (this.role == null) ? 0 : this.role.size();
-
 
10172
    }
-
 
10173
 
-
 
10174
    public java.util.Iterator<String> getRoleIterator() {
-
 
10175
      return (this.role == null) ? null : this.role.iterator();
-
 
10176
    }
-
 
10177
 
-
 
10178
    public void addToRole(String elem) {
-
 
10179
      if (this.role == null) {
-
 
10180
        this.role = new ArrayList<String>();
-
 
10181
      }
-
 
10182
      this.role.add(elem);
-
 
10183
    }
-
 
10184
 
-
 
10185
    public List<String> getRole() {
-
 
10186
      return this.role;
-
 
10187
    }
-
 
10188
 
-
 
10189
    public void setRole(List<String> role) {
-
 
10190
      this.role = role;
-
 
10191
    }
-
 
10192
 
-
 
10193
    public void unsetRole() {
-
 
10194
      this.role = null;
-
 
10195
    }
-
 
10196
 
-
 
10197
    /** Returns true if field role is set (has been assigned a value) and false otherwise */
-
 
10198
    public boolean isSetRole() {
-
 
10199
      return this.role != null;
-
 
10200
    }
-
 
10201
 
-
 
10202
    public void setRoleIsSet(boolean value) {
-
 
10203
      if (!value) {
-
 
10204
        this.role = null;
-
 
10205
      }
-
 
10206
    }
-
 
10207
 
-
 
10208
    public void setFieldValue(_Fields field, Object value) {
-
 
10209
      switch (field) {
-
 
10210
      case AGENT:
-
 
10211
        if (value == null) {
-
 
10212
          unsetAgent();
-
 
10213
        } else {
-
 
10214
          setAgent((Agent)value);
-
 
10215
        }
-
 
10216
        break;
-
 
10217
 
-
 
10218
      case ROLE:
-
 
10219
        if (value == null) {
-
 
10220
          unsetRole();
-
 
10221
        } else {
-
 
10222
          setRole((List<String>)value);
-
 
10223
        }
-
 
10224
        break;
-
 
10225
 
-
 
10226
      }
-
 
10227
    }
-
 
10228
 
-
 
10229
    public Object getFieldValue(_Fields field) {
-
 
10230
      switch (field) {
-
 
10231
      case AGENT:
-
 
10232
        return getAgent();
-
 
10233
 
-
 
10234
      case ROLE:
-
 
10235
        return getRole();
-
 
10236
 
-
 
10237
      }
-
 
10238
      throw new IllegalStateException();
-
 
10239
    }
-
 
10240
 
-
 
10241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10242
    public boolean isSet(_Fields field) {
-
 
10243
      if (field == null) {
-
 
10244
        throw new IllegalArgumentException();
-
 
10245
      }
-
 
10246
 
-
 
10247
      switch (field) {
-
 
10248
      case AGENT:
-
 
10249
        return isSetAgent();
-
 
10250
      case ROLE:
-
 
10251
        return isSetRole();
-
 
10252
      }
-
 
10253
      throw new IllegalStateException();
-
 
10254
    }
-
 
10255
 
-
 
10256
    @Override
-
 
10257
    public boolean equals(Object that) {
-
 
10258
      if (that == null)
-
 
10259
        return false;
-
 
10260
      if (that instanceof insertAgent_args)
-
 
10261
        return this.equals((insertAgent_args)that);
-
 
10262
      return false;
-
 
10263
    }
-
 
10264
 
-
 
10265
    public boolean equals(insertAgent_args that) {
-
 
10266
      if (that == null)
-
 
10267
        return false;
-
 
10268
 
-
 
10269
      boolean this_present_agent = true && this.isSetAgent();
-
 
10270
      boolean that_present_agent = true && that.isSetAgent();
-
 
10271
      if (this_present_agent || that_present_agent) {
-
 
10272
        if (!(this_present_agent && that_present_agent))
-
 
10273
          return false;
-
 
10274
        if (!this.agent.equals(that.agent))
-
 
10275
          return false;
-
 
10276
      }
-
 
10277
 
-
 
10278
      boolean this_present_role = true && this.isSetRole();
-
 
10279
      boolean that_present_role = true && that.isSetRole();
-
 
10280
      if (this_present_role || that_present_role) {
-
 
10281
        if (!(this_present_role && that_present_role))
-
 
10282
          return false;
-
 
10283
        if (!this.role.equals(that.role))
-
 
10284
          return false;
-
 
10285
      }
-
 
10286
 
-
 
10287
      return true;
-
 
10288
    }
-
 
10289
 
-
 
10290
    @Override
-
 
10291
    public int hashCode() {
-
 
10292
      return 0;
-
 
10293
    }
-
 
10294
 
-
 
10295
    public int compareTo(insertAgent_args other) {
-
 
10296
      if (!getClass().equals(other.getClass())) {
-
 
10297
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10298
      }
-
 
10299
 
-
 
10300
      int lastComparison = 0;
-
 
10301
      insertAgent_args typedOther = (insertAgent_args)other;
-
 
10302
 
-
 
10303
      lastComparison = Boolean.valueOf(isSetAgent()).compareTo(typedOther.isSetAgent());
-
 
10304
      if (lastComparison != 0) {
-
 
10305
        return lastComparison;
-
 
10306
      }
-
 
10307
      if (isSetAgent()) {
-
 
10308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.agent, typedOther.agent);
-
 
10309
        if (lastComparison != 0) {
-
 
10310
          return lastComparison;
-
 
10311
        }
-
 
10312
      }
-
 
10313
      lastComparison = Boolean.valueOf(isSetRole()).compareTo(typedOther.isSetRole());
-
 
10314
      if (lastComparison != 0) {
-
 
10315
        return lastComparison;
-
 
10316
      }
-
 
10317
      if (isSetRole()) {
-
 
10318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role, typedOther.role);
-
 
10319
        if (lastComparison != 0) {
-
 
10320
          return lastComparison;
-
 
10321
        }
-
 
10322
      }
-
 
10323
      return 0;
-
 
10324
    }
-
 
10325
 
-
 
10326
    public _Fields fieldForId(int fieldId) {
-
 
10327
      return _Fields.findByThriftId(fieldId);
-
 
10328
    }
-
 
10329
 
-
 
10330
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10331
      org.apache.thrift.protocol.TField field;
-
 
10332
      iprot.readStructBegin();
-
 
10333
      while (true)
-
 
10334
      {
-
 
10335
        field = iprot.readFieldBegin();
-
 
10336
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10337
          break;
-
 
10338
        }
-
 
10339
        switch (field.id) {
-
 
10340
          case 1: // AGENT
-
 
10341
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
10342
              this.agent = new Agent();
-
 
10343
              this.agent.read(iprot);
-
 
10344
            } else { 
-
 
10345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10346
            }
-
 
10347
            break;
-
 
10348
          case 2: // ROLE
-
 
10349
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
-
 
10350
              {
-
 
10351
                org.apache.thrift.protocol.TList _list36 = iprot.readListBegin();
-
 
10352
                this.role = new ArrayList<String>(_list36.size);
-
 
10353
                for (int _i37 = 0; _i37 < _list36.size; ++_i37)
-
 
10354
                {
-
 
10355
                  String _elem38; // required
-
 
10356
                  _elem38 = iprot.readString();
-
 
10357
                  this.role.add(_elem38);
-
 
10358
                }
-
 
10359
                iprot.readListEnd();
-
 
10360
              }
-
 
10361
            } else { 
-
 
10362
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10363
            }
-
 
10364
            break;
-
 
10365
          default:
-
 
10366
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10367
        }
-
 
10368
        iprot.readFieldEnd();
-
 
10369
      }
-
 
10370
      iprot.readStructEnd();
-
 
10371
      validate();
-
 
10372
    }
-
 
10373
 
-
 
10374
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10375
      validate();
-
 
10376
 
-
 
10377
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10378
      if (this.agent != null) {
-
 
10379
        oprot.writeFieldBegin(AGENT_FIELD_DESC);
-
 
10380
        this.agent.write(oprot);
-
 
10381
        oprot.writeFieldEnd();
-
 
10382
      }
-
 
10383
      if (this.role != null) {
-
 
10384
        oprot.writeFieldBegin(ROLE_FIELD_DESC);
-
 
10385
        {
-
 
10386
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.role.size()));
-
 
10387
          for (String _iter39 : this.role)
-
 
10388
          {
-
 
10389
            oprot.writeString(_iter39);
-
 
10390
          }
-
 
10391
          oprot.writeListEnd();
-
 
10392
        }
-
 
10393
        oprot.writeFieldEnd();
-
 
10394
      }
-
 
10395
      oprot.writeFieldStop();
-
 
10396
      oprot.writeStructEnd();
-
 
10397
    }
-
 
10398
 
-
 
10399
    @Override
-
 
10400
    public String toString() {
-
 
10401
      StringBuilder sb = new StringBuilder("insertAgent_args(");
-
 
10402
      boolean first = true;
-
 
10403
 
-
 
10404
      sb.append("agent:");
-
 
10405
      if (this.agent == null) {
-
 
10406
        sb.append("null");
-
 
10407
      } else {
-
 
10408
        sb.append(this.agent);
-
 
10409
      }
-
 
10410
      first = false;
-
 
10411
      if (!first) sb.append(", ");
-
 
10412
      sb.append("role:");
-
 
10413
      if (this.role == null) {
-
 
10414
        sb.append("null");
-
 
10415
      } else {
-
 
10416
        sb.append(this.role);
-
 
10417
      }
-
 
10418
      first = false;
-
 
10419
      sb.append(")");
-
 
10420
      return sb.toString();
-
 
10421
    }
-
 
10422
 
-
 
10423
    public void validate() throws org.apache.thrift.TException {
-
 
10424
      // check for required fields
-
 
10425
    }
-
 
10426
 
-
 
10427
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
10428
      try {
-
 
10429
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
10430
      } catch (org.apache.thrift.TException te) {
-
 
10431
        throw new java.io.IOException(te);
-
 
10432
      }
-
 
10433
    }
-
 
10434
 
-
 
10435
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
10436
      try {
-
 
10437
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
10438
      } catch (org.apache.thrift.TException te) {
-
 
10439
        throw new java.io.IOException(te);
-
 
10440
      }
-
 
10441
    }
-
 
10442
 
-
 
10443
  }
-
 
10444
 
-
 
10445
  public static class insertAgent_result implements org.apache.thrift.TBase<insertAgent_result, insertAgent_result._Fields>, java.io.Serializable, Cloneable   {
-
 
10446
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("insertAgent_result");
-
 
10447
 
-
 
10448
 
-
 
10449
 
-
 
10450
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10451
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
10452
;
-
 
10453
 
-
 
10454
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10455
 
-
 
10456
      static {
-
 
10457
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10458
          byName.put(field.getFieldName(), field);
-
 
10459
        }
-
 
10460
      }
-
 
10461
 
-
 
10462
      /**
-
 
10463
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10464
       */
-
 
10465
      public static _Fields findByThriftId(int fieldId) {
-
 
10466
        switch(fieldId) {
-
 
10467
          default:
-
 
10468
            return null;
-
 
10469
        }
-
 
10470
      }
-
 
10471
 
-
 
10472
      /**
-
 
10473
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10474
       * if it is not found.
-
 
10475
       */
-
 
10476
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10477
        _Fields fields = findByThriftId(fieldId);
-
 
10478
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10479
        return fields;
-
 
10480
      }
-
 
10481
 
-
 
10482
      /**
-
 
10483
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10484
       */
-
 
10485
      public static _Fields findByName(String name) {
-
 
10486
        return byName.get(name);
-
 
10487
      }
-
 
10488
 
-
 
10489
      private final short _thriftId;
-
 
10490
      private final String _fieldName;
-
 
10491
 
-
 
10492
      _Fields(short thriftId, String fieldName) {
-
 
10493
        _thriftId = thriftId;
-
 
10494
        _fieldName = fieldName;
-
 
10495
      }
-
 
10496
 
-
 
10497
      public short getThriftFieldId() {
-
 
10498
        return _thriftId;
-
 
10499
      }
-
 
10500
 
-
 
10501
      public String getFieldName() {
-
 
10502
        return _fieldName;
-
 
10503
      }
-
 
10504
    }
-
 
10505
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
10506
    static {
-
 
10507
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
10508
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
10509
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(insertAgent_result.class, metaDataMap);
-
 
10510
    }
-
 
10511
 
-
 
10512
    public insertAgent_result() {
-
 
10513
    }
-
 
10514
 
-
 
10515
    /**
-
 
10516
     * Performs a deep copy on <i>other</i>.
-
 
10517
     */
-
 
10518
    public insertAgent_result(insertAgent_result other) {
-
 
10519
    }
-
 
10520
 
-
 
10521
    public insertAgent_result deepCopy() {
-
 
10522
      return new insertAgent_result(this);
-
 
10523
    }
-
 
10524
 
-
 
10525
    @Override
-
 
10526
    public void clear() {
-
 
10527
    }
-
 
10528
 
-
 
10529
    public void setFieldValue(_Fields field, Object value) {
-
 
10530
      switch (field) {
-
 
10531
      }
-
 
10532
    }
-
 
10533
 
-
 
10534
    public Object getFieldValue(_Fields field) {
-
 
10535
      switch (field) {
-
 
10536
      }
-
 
10537
      throw new IllegalStateException();
-
 
10538
    }
-
 
10539
 
-
 
10540
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
10541
    public boolean isSet(_Fields field) {
-
 
10542
      if (field == null) {
-
 
10543
        throw new IllegalArgumentException();
-
 
10544
      }
-
 
10545
 
-
 
10546
      switch (field) {
-
 
10547
      }
-
 
10548
      throw new IllegalStateException();
-
 
10549
    }
-
 
10550
 
-
 
10551
    @Override
-
 
10552
    public boolean equals(Object that) {
-
 
10553
      if (that == null)
-
 
10554
        return false;
-
 
10555
      if (that instanceof insertAgent_result)
-
 
10556
        return this.equals((insertAgent_result)that);
-
 
10557
      return false;
-
 
10558
    }
-
 
10559
 
-
 
10560
    public boolean equals(insertAgent_result that) {
-
 
10561
      if (that == null)
-
 
10562
        return false;
-
 
10563
 
-
 
10564
      return true;
-
 
10565
    }
-
 
10566
 
-
 
10567
    @Override
-
 
10568
    public int hashCode() {
-
 
10569
      return 0;
-
 
10570
    }
-
 
10571
 
-
 
10572
    public int compareTo(insertAgent_result other) {
-
 
10573
      if (!getClass().equals(other.getClass())) {
-
 
10574
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10575
      }
-
 
10576
 
-
 
10577
      int lastComparison = 0;
-
 
10578
      insertAgent_result typedOther = (insertAgent_result)other;
-
 
10579
 
-
 
10580
      return 0;
-
 
10581
    }
-
 
10582
 
-
 
10583
    public _Fields fieldForId(int fieldId) {
-
 
10584
      return _Fields.findByThriftId(fieldId);
-
 
10585
    }
-
 
10586
 
-
 
10587
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
10588
      org.apache.thrift.protocol.TField field;
-
 
10589
      iprot.readStructBegin();
-
 
10590
      while (true)
-
 
10591
      {
-
 
10592
        field = iprot.readFieldBegin();
-
 
10593
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
10594
          break;
-
 
10595
        }
-
 
10596
        switch (field.id) {
-
 
10597
          default:
-
 
10598
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
10599
        }
-
 
10600
        iprot.readFieldEnd();
-
 
10601
      }
-
 
10602
      iprot.readStructEnd();
-
 
10603
      validate();
-
 
10604
    }
-
 
10605
 
-
 
10606
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
10607
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10608
 
-
 
10609
      oprot.writeFieldStop();
-
 
10610
      oprot.writeStructEnd();
-
 
10611
    }
-
 
10612
 
-
 
10613
    @Override
-
 
10614
    public String toString() {
-
 
10615
      StringBuilder sb = new StringBuilder("insertAgent_result(");
-
 
10616
      boolean first = true;
-
 
10617
 
-
 
10618
      sb.append(")");
-
 
10619
      return sb.toString();
-
 
10620
    }
8701
 
10621
 
8702
    public void validate() throws org.apache.thrift.TException {
10622
    public void validate() throws org.apache.thrift.TException {
8703
      // check for required fields
10623
      // check for required fields
8704
    }
10624
    }
8705
 
10625