Subversion Repositories SmartDukaan

Rev

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

Rev 3028 Rev 3087
Line 27... Line 27...
27
 
27
 
28
  public interface Iface {
28
  public interface Iface {
29
 
29
 
30
    public List<Ticket> getTickets(long customerId) throws TException;
30
    public List<Ticket> getTickets(long customerId) throws TException;
31
 
31
 
-
 
32
    public List<Ticket> getAssignedTickets(long agentId) throws TException;
-
 
33
 
-
 
34
    public List<Ticket> getOpenTickets() throws TException;
-
 
35
 
32
    public Ticket getTicket(long ticketId) throws TException;
36
    public Ticket getTicket(long ticketId) throws TException;
33
 
37
 
34
    public void updateTicket(Ticket ticket) throws TException;
38
    public void updateTicket(Ticket ticket) throws TException;
35
 
39
 
36
    public long insertTicket(Ticket ticket) throws TException;
40
    public long insertTicket(Ticket ticket) throws TException;
Line 43... Line 47...
43
 
47
 
44
    public Activity getLastActivity(long ticketId) throws TException;
48
    public Activity getLastActivity(long ticketId) throws TException;
45
 
49
 
46
    public void insertActivity(Activity activity) throws TException;
50
    public void insertActivity(Activity activity) throws TException;
47
 
51
 
-
 
52
    public List<Agent> getAllAgents() throws TException;
-
 
53
 
48
    public Agent getAgent(long agentId) throws TException;
54
    public Agent getAgent(long agentId) throws TException;
49
 
55
 
50
    public Agent getAgentByEmailId(String agentEmailId) throws TException;
56
    public Agent getAgentByEmailId(String agentEmailId) throws TException;
51
 
57
 
-
 
58
    public void updatePasswordForAgent(String agentEmailId, String password) throws TException;
-
 
59
 
-
 
60
    public List<String> getRoleNamesForAgent(String agentEmailId) throws TException;
-
 
61
 
-
 
62
    public List<String> getPermissionsForRoleName(String roleName) throws TException;
-
 
63
 
52
  }
64
  }
53
 
65
 
54
  public static class Client implements Iface {
66
  public static class Client implements Iface {
55
    public Client(TProtocol prot)
67
    public Client(TProtocol prot)
56
    {
68
    {
Line 109... Line 121...
109
        return result.success;
121
        return result.success;
110
      }
122
      }
111
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
123
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getTickets failed: unknown result");
112
    }
124
    }
113
 
125
 
-
 
126
    public List<Ticket> getAssignedTickets(long agentId) throws TException
-
 
127
    {
-
 
128
      send_getAssignedTickets(agentId);
-
 
129
      return recv_getAssignedTickets();
-
 
130
    }
-
 
131
 
-
 
132
    public void send_getAssignedTickets(long agentId) throws TException
-
 
133
    {
-
 
134
      oprot_.writeMessageBegin(new TMessage("getAssignedTickets", TMessageType.CALL, seqid_));
-
 
135
      getAssignedTickets_args args = new getAssignedTickets_args();
-
 
136
      args.agentId = agentId;
-
 
137
      args.write(oprot_);
-
 
138
      oprot_.writeMessageEnd();
-
 
139
      oprot_.getTransport().flush();
-
 
140
    }
-
 
141
 
-
 
142
    public List<Ticket> recv_getAssignedTickets() throws TException
-
 
143
    {
-
 
144
      TMessage msg = iprot_.readMessageBegin();
-
 
145
      if (msg.type == TMessageType.EXCEPTION) {
-
 
146
        TApplicationException x = TApplicationException.read(iprot_);
-
 
147
        iprot_.readMessageEnd();
-
 
148
        throw x;
-
 
149
      }
-
 
150
      getAssignedTickets_result result = new getAssignedTickets_result();
-
 
151
      result.read(iprot_);
-
 
152
      iprot_.readMessageEnd();
-
 
153
      if (result.isSetSuccess()) {
-
 
154
        return result.success;
-
 
155
      }
-
 
156
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAssignedTickets failed: unknown result");
-
 
157
    }
-
 
158
 
-
 
159
    public List<Ticket> getOpenTickets() throws TException
-
 
160
    {
-
 
161
      send_getOpenTickets();
-
 
162
      return recv_getOpenTickets();
-
 
163
    }
-
 
164
 
-
 
165
    public void send_getOpenTickets() throws TException
-
 
166
    {
-
 
167
      oprot_.writeMessageBegin(new TMessage("getOpenTickets", TMessageType.CALL, seqid_));
-
 
168
      getOpenTickets_args args = new getOpenTickets_args();
-
 
169
      args.write(oprot_);
-
 
170
      oprot_.writeMessageEnd();
-
 
171
      oprot_.getTransport().flush();
-
 
172
    }
-
 
173
 
-
 
174
    public List<Ticket> recv_getOpenTickets() throws TException
-
 
175
    {
-
 
176
      TMessage msg = iprot_.readMessageBegin();
-
 
177
      if (msg.type == TMessageType.EXCEPTION) {
-
 
178
        TApplicationException x = TApplicationException.read(iprot_);
-
 
179
        iprot_.readMessageEnd();
-
 
180
        throw x;
-
 
181
      }
-
 
182
      getOpenTickets_result result = new getOpenTickets_result();
-
 
183
      result.read(iprot_);
-
 
184
      iprot_.readMessageEnd();
-
 
185
      if (result.isSetSuccess()) {
-
 
186
        return result.success;
-
 
187
      }
-
 
188
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getOpenTickets failed: unknown result");
-
 
189
    }
-
 
190
 
114
    public Ticket getTicket(long ticketId) throws TException
191
    public Ticket getTicket(long ticketId) throws TException
115
    {
192
    {
116
      send_getTicket(ticketId);
193
      send_getTicket(ticketId);
117
      return recv_getTicket();
194
      return recv_getTicket();
118
    }
195
    }
Line 367... Line 444...
367
      result.read(iprot_);
444
      result.read(iprot_);
368
      iprot_.readMessageEnd();
445
      iprot_.readMessageEnd();
369
      return;
446
      return;
370
    }
447
    }
371
 
448
 
-
 
449
    public List<Agent> getAllAgents() throws TException
-
 
450
    {
-
 
451
      send_getAllAgents();
-
 
452
      return recv_getAllAgents();
-
 
453
    }
-
 
454
 
-
 
455
    public void send_getAllAgents() throws TException
-
 
456
    {
-
 
457
      oprot_.writeMessageBegin(new TMessage("getAllAgents", TMessageType.CALL, seqid_));
-
 
458
      getAllAgents_args args = new getAllAgents_args();
-
 
459
      args.write(oprot_);
-
 
460
      oprot_.writeMessageEnd();
-
 
461
      oprot_.getTransport().flush();
-
 
462
    }
-
 
463
 
-
 
464
    public List<Agent> recv_getAllAgents() throws TException
-
 
465
    {
-
 
466
      TMessage msg = iprot_.readMessageBegin();
-
 
467
      if (msg.type == TMessageType.EXCEPTION) {
-
 
468
        TApplicationException x = TApplicationException.read(iprot_);
-
 
469
        iprot_.readMessageEnd();
-
 
470
        throw x;
-
 
471
      }
-
 
472
      getAllAgents_result result = new getAllAgents_result();
-
 
473
      result.read(iprot_);
-
 
474
      iprot_.readMessageEnd();
-
 
475
      if (result.isSetSuccess()) {
-
 
476
        return result.success;
-
 
477
      }
-
 
478
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllAgents failed: unknown result");
-
 
479
    }
-
 
480
 
372
    public Agent getAgent(long agentId) throws TException
481
    public Agent getAgent(long agentId) throws TException
373
    {
482
    {
374
      send_getAgent(agentId);
483
      send_getAgent(agentId);
375
      return recv_getAgent();
484
      return recv_getAgent();
376
    }
485
    }
Line 433... Line 542...
433
        return result.success;
542
        return result.success;
434
      }
543
      }
435
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgentByEmailId failed: unknown result");
544
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAgentByEmailId failed: unknown result");
436
    }
545
    }
437
 
546
 
-
 
547
    public void updatePasswordForAgent(String agentEmailId, String password) throws TException
-
 
548
    {
-
 
549
      send_updatePasswordForAgent(agentEmailId, password);
-
 
550
      recv_updatePasswordForAgent();
-
 
551
    }
-
 
552
 
-
 
553
    public void send_updatePasswordForAgent(String agentEmailId, String password) throws TException
-
 
554
    {
-
 
555
      oprot_.writeMessageBegin(new TMessage("updatePasswordForAgent", TMessageType.CALL, seqid_));
-
 
556
      updatePasswordForAgent_args args = new updatePasswordForAgent_args();
-
 
557
      args.agentEmailId = agentEmailId;
-
 
558
      args.password = password;
-
 
559
      args.write(oprot_);
-
 
560
      oprot_.writeMessageEnd();
-
 
561
      oprot_.getTransport().flush();
-
 
562
    }
-
 
563
 
-
 
564
    public void recv_updatePasswordForAgent() throws TException
-
 
565
    {
-
 
566
      TMessage msg = iprot_.readMessageBegin();
-
 
567
      if (msg.type == TMessageType.EXCEPTION) {
-
 
568
        TApplicationException x = TApplicationException.read(iprot_);
-
 
569
        iprot_.readMessageEnd();
-
 
570
        throw x;
-
 
571
      }
-
 
572
      updatePasswordForAgent_result result = new updatePasswordForAgent_result();
-
 
573
      result.read(iprot_);
-
 
574
      iprot_.readMessageEnd();
-
 
575
      return;
-
 
576
    }
-
 
577
 
-
 
578
    public List<String> getRoleNamesForAgent(String agentEmailId) throws TException
-
 
579
    {
-
 
580
      send_getRoleNamesForAgent(agentEmailId);
-
 
581
      return recv_getRoleNamesForAgent();
-
 
582
    }
-
 
583
 
-
 
584
    public void send_getRoleNamesForAgent(String agentEmailId) throws TException
-
 
585
    {
-
 
586
      oprot_.writeMessageBegin(new TMessage("getRoleNamesForAgent", TMessageType.CALL, seqid_));
-
 
587
      getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
-
 
588
      args.agentEmailId = agentEmailId;
-
 
589
      args.write(oprot_);
-
 
590
      oprot_.writeMessageEnd();
-
 
591
      oprot_.getTransport().flush();
-
 
592
    }
-
 
593
 
-
 
594
    public List<String> recv_getRoleNamesForAgent() throws TException
-
 
595
    {
-
 
596
      TMessage msg = iprot_.readMessageBegin();
-
 
597
      if (msg.type == TMessageType.EXCEPTION) {
-
 
598
        TApplicationException x = TApplicationException.read(iprot_);
-
 
599
        iprot_.readMessageEnd();
-
 
600
        throw x;
-
 
601
      }
-
 
602
      getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
-
 
603
      result.read(iprot_);
-
 
604
      iprot_.readMessageEnd();
-
 
605
      if (result.isSetSuccess()) {
-
 
606
        return result.success;
-
 
607
      }
-
 
608
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getRoleNamesForAgent failed: unknown result");
-
 
609
    }
-
 
610
 
-
 
611
    public List<String> getPermissionsForRoleName(String roleName) throws TException
-
 
612
    {
-
 
613
      send_getPermissionsForRoleName(roleName);
-
 
614
      return recv_getPermissionsForRoleName();
-
 
615
    }
-
 
616
 
-
 
617
    public void send_getPermissionsForRoleName(String roleName) throws TException
-
 
618
    {
-
 
619
      oprot_.writeMessageBegin(new TMessage("getPermissionsForRoleName", TMessageType.CALL, seqid_));
-
 
620
      getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
-
 
621
      args.roleName = roleName;
-
 
622
      args.write(oprot_);
-
 
623
      oprot_.writeMessageEnd();
-
 
624
      oprot_.getTransport().flush();
-
 
625
    }
-
 
626
 
-
 
627
    public List<String> recv_getPermissionsForRoleName() throws TException
-
 
628
    {
-
 
629
      TMessage msg = iprot_.readMessageBegin();
-
 
630
      if (msg.type == TMessageType.EXCEPTION) {
-
 
631
        TApplicationException x = TApplicationException.read(iprot_);
-
 
632
        iprot_.readMessageEnd();
-
 
633
        throw x;
-
 
634
      }
-
 
635
      getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
-
 
636
      result.read(iprot_);
-
 
637
      iprot_.readMessageEnd();
-
 
638
      if (result.isSetSuccess()) {
-
 
639
        return result.success;
-
 
640
      }
-
 
641
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getPermissionsForRoleName failed: unknown result");
-
 
642
    }
-
 
643
 
438
  }
644
  }
439
  public static class Processor implements TProcessor {
645
  public static class Processor implements TProcessor {
440
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
646
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
441
    public Processor(Iface iface)
647
    public Processor(Iface iface)
442
    {
648
    {
443
      iface_ = iface;
649
      iface_ = iface;
444
      processMap_.put("getTickets", new getTickets());
650
      processMap_.put("getTickets", new getTickets());
-
 
651
      processMap_.put("getAssignedTickets", new getAssignedTickets());
-
 
652
      processMap_.put("getOpenTickets", new getOpenTickets());
445
      processMap_.put("getTicket", new getTicket());
653
      processMap_.put("getTicket", new getTicket());
446
      processMap_.put("updateTicket", new updateTicket());
654
      processMap_.put("updateTicket", new updateTicket());
447
      processMap_.put("insertTicket", new insertTicket());
655
      processMap_.put("insertTicket", new insertTicket());
448
      processMap_.put("getActivities", new getActivities());
656
      processMap_.put("getActivities", new getActivities());
449
      processMap_.put("getActivitiesForTicket", new getActivitiesForTicket());
657
      processMap_.put("getActivitiesForTicket", new getActivitiesForTicket());
450
      processMap_.put("getActivity", new getActivity());
658
      processMap_.put("getActivity", new getActivity());
451
      processMap_.put("getLastActivity", new getLastActivity());
659
      processMap_.put("getLastActivity", new getLastActivity());
452
      processMap_.put("insertActivity", new insertActivity());
660
      processMap_.put("insertActivity", new insertActivity());
-
 
661
      processMap_.put("getAllAgents", new getAllAgents());
453
      processMap_.put("getAgent", new getAgent());
662
      processMap_.put("getAgent", new getAgent());
454
      processMap_.put("getAgentByEmailId", new getAgentByEmailId());
663
      processMap_.put("getAgentByEmailId", new getAgentByEmailId());
-
 
664
      processMap_.put("updatePasswordForAgent", new updatePasswordForAgent());
-
 
665
      processMap_.put("getRoleNamesForAgent", new getRoleNamesForAgent());
-
 
666
      processMap_.put("getPermissionsForRoleName", new getPermissionsForRoleName());
455
    }
667
    }
456
 
668
 
457
    protected static interface ProcessFunction {
669
    protected static interface ProcessFunction {
458
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
670
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
459
    }
671
    }
Line 493... Line 705...
493
        oprot.getTransport().flush();
705
        oprot.getTransport().flush();
494
      }
706
      }
495
 
707
 
496
    }
708
    }
497
 
709
 
-
 
710
    private class getAssignedTickets implements ProcessFunction {
-
 
711
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
712
      {
-
 
713
        getAssignedTickets_args args = new getAssignedTickets_args();
-
 
714
        args.read(iprot);
-
 
715
        iprot.readMessageEnd();
-
 
716
        getAssignedTickets_result result = new getAssignedTickets_result();
-
 
717
        result.success = iface_.getAssignedTickets(args.agentId);
-
 
718
        oprot.writeMessageBegin(new TMessage("getAssignedTickets", TMessageType.REPLY, seqid));
-
 
719
        result.write(oprot);
-
 
720
        oprot.writeMessageEnd();
-
 
721
        oprot.getTransport().flush();
-
 
722
      }
-
 
723
 
-
 
724
    }
-
 
725
 
-
 
726
    private class getOpenTickets implements ProcessFunction {
-
 
727
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
728
      {
-
 
729
        getOpenTickets_args args = new getOpenTickets_args();
-
 
730
        args.read(iprot);
-
 
731
        iprot.readMessageEnd();
-
 
732
        getOpenTickets_result result = new getOpenTickets_result();
-
 
733
        result.success = iface_.getOpenTickets();
-
 
734
        oprot.writeMessageBegin(new TMessage("getOpenTickets", TMessageType.REPLY, seqid));
-
 
735
        result.write(oprot);
-
 
736
        oprot.writeMessageEnd();
-
 
737
        oprot.getTransport().flush();
-
 
738
      }
-
 
739
 
-
 
740
    }
-
 
741
 
498
    private class getTicket implements ProcessFunction {
742
    private class getTicket implements ProcessFunction {
499
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
743
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
500
      {
744
      {
501
        getTicket_args args = new getTicket_args();
745
        getTicket_args args = new getTicket_args();
502
        args.read(iprot);
746
        args.read(iprot);
Line 622... Line 866...
622
        oprot.getTransport().flush();
866
        oprot.getTransport().flush();
623
      }
867
      }
624
 
868
 
625
    }
869
    }
626
 
870
 
-
 
871
    private class getAllAgents implements ProcessFunction {
-
 
872
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
873
      {
-
 
874
        getAllAgents_args args = new getAllAgents_args();
-
 
875
        args.read(iprot);
-
 
876
        iprot.readMessageEnd();
-
 
877
        getAllAgents_result result = new getAllAgents_result();
-
 
878
        result.success = iface_.getAllAgents();
-
 
879
        oprot.writeMessageBegin(new TMessage("getAllAgents", TMessageType.REPLY, seqid));
-
 
880
        result.write(oprot);
-
 
881
        oprot.writeMessageEnd();
-
 
882
        oprot.getTransport().flush();
-
 
883
      }
-
 
884
 
-
 
885
    }
-
 
886
 
627
    private class getAgent implements ProcessFunction {
887
    private class getAgent implements ProcessFunction {
628
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
888
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
629
      {
889
      {
630
        getAgent_args args = new getAgent_args();
890
        getAgent_args args = new getAgent_args();
631
        args.read(iprot);
891
        args.read(iprot);
Line 654... Line 914...
654
        oprot.getTransport().flush();
914
        oprot.getTransport().flush();
655
      }
915
      }
656
 
916
 
657
    }
917
    }
658
 
918
 
-
 
919
    private class updatePasswordForAgent implements ProcessFunction {
-
 
920
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
921
      {
-
 
922
        updatePasswordForAgent_args args = new updatePasswordForAgent_args();
-
 
923
        args.read(iprot);
-
 
924
        iprot.readMessageEnd();
-
 
925
        updatePasswordForAgent_result result = new updatePasswordForAgent_result();
-
 
926
        iface_.updatePasswordForAgent(args.agentEmailId, args.password);
-
 
927
        oprot.writeMessageBegin(new TMessage("updatePasswordForAgent", TMessageType.REPLY, seqid));
-
 
928
        result.write(oprot);
-
 
929
        oprot.writeMessageEnd();
-
 
930
        oprot.getTransport().flush();
-
 
931
      }
-
 
932
 
-
 
933
    }
-
 
934
 
-
 
935
    private class getRoleNamesForAgent implements ProcessFunction {
-
 
936
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
937
      {
-
 
938
        getRoleNamesForAgent_args args = new getRoleNamesForAgent_args();
-
 
939
        args.read(iprot);
-
 
940
        iprot.readMessageEnd();
-
 
941
        getRoleNamesForAgent_result result = new getRoleNamesForAgent_result();
-
 
942
        result.success = iface_.getRoleNamesForAgent(args.agentEmailId);
-
 
943
        oprot.writeMessageBegin(new TMessage("getRoleNamesForAgent", TMessageType.REPLY, seqid));
-
 
944
        result.write(oprot);
-
 
945
        oprot.writeMessageEnd();
-
 
946
        oprot.getTransport().flush();
-
 
947
      }
-
 
948
 
-
 
949
    }
-
 
950
 
-
 
951
    private class getPermissionsForRoleName implements ProcessFunction {
-
 
952
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
953
      {
-
 
954
        getPermissionsForRoleName_args args = new getPermissionsForRoleName_args();
-
 
955
        args.read(iprot);
-
 
956
        iprot.readMessageEnd();
-
 
957
        getPermissionsForRoleName_result result = new getPermissionsForRoleName_result();
-
 
958
        result.success = iface_.getPermissionsForRoleName(args.roleName);
-
 
959
        oprot.writeMessageBegin(new TMessage("getPermissionsForRoleName", TMessageType.REPLY, seqid));
-
 
960
        result.write(oprot);
-
 
961
        oprot.writeMessageEnd();
-
 
962
        oprot.getTransport().flush();
-
 
963
      }
-
 
964
 
-
 
965
    }
-
 
966
 
659
  }
967
  }
660
 
968
 
661
  public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args>   {
969
  public static class getTickets_args implements TBase<getTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTickets_args>   {
662
    private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");
970
    private static final TStruct STRUCT_DESC = new TStruct("getTickets_args");
663
 
971
 
Line 1252... Line 1560...
1252
      // check for required fields
1560
      // check for required fields
1253
    }
1561
    }
1254
 
1562
 
1255
  }
1563
  }
1256
 
1564
 
-
 
1565
  public static class getAssignedTickets_args implements TBase<getAssignedTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAssignedTickets_args>   {
-
 
1566
    private static final TStruct STRUCT_DESC = new TStruct("getAssignedTickets_args");
-
 
1567
 
-
 
1568
    private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);
-
 
1569
 
-
 
1570
    private long agentId;
-
 
1571
 
-
 
1572
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
1573
    public enum _Fields implements TFieldIdEnum {
-
 
1574
      AGENT_ID((short)1, "agentId");
-
 
1575
 
-
 
1576
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1577
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
1578
 
-
 
1579
      static {
-
 
1580
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
1581
          byId.put((int)field._thriftId, field);
-
 
1582
          byName.put(field.getFieldName(), field);
-
 
1583
        }
-
 
1584
      }
-
 
1585
 
-
 
1586
      /**
-
 
1587
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
1588
       */
-
 
1589
      public static _Fields findByThriftId(int fieldId) {
-
 
1590
        return byId.get(fieldId);
-
 
1591
      }
-
 
1592
 
-
 
1593
      /**
-
 
1594
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
1595
       * if it is not found.
-
 
1596
       */
-
 
1597
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
1598
        _Fields fields = findByThriftId(fieldId);
-
 
1599
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
1600
        return fields;
-
 
1601
      }
-
 
1602
 
-
 
1603
      /**
-
 
1604
       * Find the _Fields constant that matches name, or null if its not found.
-
 
1605
       */
-
 
1606
      public static _Fields findByName(String name) {
-
 
1607
        return byName.get(name);
-
 
1608
      }
-
 
1609
 
-
 
1610
      private final short _thriftId;
-
 
1611
      private final String _fieldName;
-
 
1612
 
-
 
1613
      _Fields(short thriftId, String fieldName) {
-
 
1614
        _thriftId = thriftId;
-
 
1615
        _fieldName = fieldName;
-
 
1616
      }
-
 
1617
 
-
 
1618
      public short getThriftFieldId() {
-
 
1619
        return _thriftId;
-
 
1620
      }
-
 
1621
 
-
 
1622
      public String getFieldName() {
-
 
1623
        return _fieldName;
-
 
1624
      }
-
 
1625
    }
-
 
1626
 
-
 
1627
    // isset id assignments
-
 
1628
    private static final int __AGENTID_ISSET_ID = 0;
-
 
1629
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
1630
 
-
 
1631
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
1632
      put(_Fields.AGENT_ID, new FieldMetaData("agentId", TFieldRequirementType.DEFAULT, 
-
 
1633
          new FieldValueMetaData(TType.I64)));
-
 
1634
    }});
-
 
1635
 
-
 
1636
    static {
-
 
1637
      FieldMetaData.addStructMetaDataMap(getAssignedTickets_args.class, metaDataMap);
-
 
1638
    }
-
 
1639
 
-
 
1640
    public getAssignedTickets_args() {
-
 
1641
    }
-
 
1642
 
-
 
1643
    public getAssignedTickets_args(
-
 
1644
      long agentId)
-
 
1645
    {
-
 
1646
      this();
-
 
1647
      this.agentId = agentId;
-
 
1648
      setAgentIdIsSet(true);
-
 
1649
    }
-
 
1650
 
-
 
1651
    /**
-
 
1652
     * Performs a deep copy on <i>other</i>.
-
 
1653
     */
-
 
1654
    public getAssignedTickets_args(getAssignedTickets_args other) {
-
 
1655
      __isset_bit_vector.clear();
-
 
1656
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
1657
      this.agentId = other.agentId;
-
 
1658
    }
-
 
1659
 
-
 
1660
    public getAssignedTickets_args deepCopy() {
-
 
1661
      return new getAssignedTickets_args(this);
-
 
1662
    }
-
 
1663
 
-
 
1664
    @Deprecated
-
 
1665
    public getAssignedTickets_args clone() {
-
 
1666
      return new getAssignedTickets_args(this);
-
 
1667
    }
-
 
1668
 
-
 
1669
    public long getAgentId() {
-
 
1670
      return this.agentId;
-
 
1671
    }
-
 
1672
 
-
 
1673
    public getAssignedTickets_args setAgentId(long agentId) {
-
 
1674
      this.agentId = agentId;
-
 
1675
      setAgentIdIsSet(true);
-
 
1676
      return this;
-
 
1677
    }
-
 
1678
 
-
 
1679
    public void unsetAgentId() {
-
 
1680
      __isset_bit_vector.clear(__AGENTID_ISSET_ID);
-
 
1681
    }
-
 
1682
 
-
 
1683
    /** Returns true if field agentId is set (has been asigned a value) and false otherwise */
-
 
1684
    public boolean isSetAgentId() {
-
 
1685
      return __isset_bit_vector.get(__AGENTID_ISSET_ID);
-
 
1686
    }
-
 
1687
 
-
 
1688
    public void setAgentIdIsSet(boolean value) {
-
 
1689
      __isset_bit_vector.set(__AGENTID_ISSET_ID, value);
-
 
1690
    }
-
 
1691
 
-
 
1692
    public void setFieldValue(_Fields field, Object value) {
-
 
1693
      switch (field) {
-
 
1694
      case AGENT_ID:
-
 
1695
        if (value == null) {
-
 
1696
          unsetAgentId();
-
 
1697
        } else {
-
 
1698
          setAgentId((Long)value);
-
 
1699
        }
-
 
1700
        break;
-
 
1701
 
-
 
1702
      }
-
 
1703
    }
-
 
1704
 
-
 
1705
    public void setFieldValue(int fieldID, Object value) {
-
 
1706
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1707
    }
-
 
1708
 
-
 
1709
    public Object getFieldValue(_Fields field) {
-
 
1710
      switch (field) {
-
 
1711
      case AGENT_ID:
-
 
1712
        return new Long(getAgentId());
-
 
1713
 
-
 
1714
      }
-
 
1715
      throw new IllegalStateException();
-
 
1716
    }
-
 
1717
 
-
 
1718
    public Object getFieldValue(int fieldId) {
-
 
1719
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1720
    }
-
 
1721
 
-
 
1722
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
1723
    public boolean isSet(_Fields field) {
-
 
1724
      switch (field) {
-
 
1725
      case AGENT_ID:
-
 
1726
        return isSetAgentId();
-
 
1727
      }
-
 
1728
      throw new IllegalStateException();
-
 
1729
    }
-
 
1730
 
-
 
1731
    public boolean isSet(int fieldID) {
-
 
1732
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1733
    }
-
 
1734
 
-
 
1735
    @Override
-
 
1736
    public boolean equals(Object that) {
-
 
1737
      if (that == null)
-
 
1738
        return false;
-
 
1739
      if (that instanceof getAssignedTickets_args)
-
 
1740
        return this.equals((getAssignedTickets_args)that);
-
 
1741
      return false;
-
 
1742
    }
-
 
1743
 
-
 
1744
    public boolean equals(getAssignedTickets_args that) {
-
 
1745
      if (that == null)
-
 
1746
        return false;
-
 
1747
 
-
 
1748
      boolean this_present_agentId = true;
-
 
1749
      boolean that_present_agentId = true;
-
 
1750
      if (this_present_agentId || that_present_agentId) {
-
 
1751
        if (!(this_present_agentId && that_present_agentId))
-
 
1752
          return false;
-
 
1753
        if (this.agentId != that.agentId)
-
 
1754
          return false;
-
 
1755
      }
-
 
1756
 
-
 
1757
      return true;
-
 
1758
    }
-
 
1759
 
-
 
1760
    @Override
-
 
1761
    public int hashCode() {
-
 
1762
      return 0;
-
 
1763
    }
-
 
1764
 
-
 
1765
    public int compareTo(getAssignedTickets_args other) {
-
 
1766
      if (!getClass().equals(other.getClass())) {
-
 
1767
        return getClass().getName().compareTo(other.getClass().getName());
-
 
1768
      }
-
 
1769
 
-
 
1770
      int lastComparison = 0;
-
 
1771
      getAssignedTickets_args typedOther = (getAssignedTickets_args)other;
-
 
1772
 
-
 
1773
      lastComparison = Boolean.valueOf(isSetAgentId()).compareTo(isSetAgentId());
-
 
1774
      if (lastComparison != 0) {
-
 
1775
        return lastComparison;
-
 
1776
      }
-
 
1777
      lastComparison = TBaseHelper.compareTo(agentId, typedOther.agentId);
-
 
1778
      if (lastComparison != 0) {
-
 
1779
        return lastComparison;
-
 
1780
      }
-
 
1781
      return 0;
-
 
1782
    }
-
 
1783
 
-
 
1784
    public void read(TProtocol iprot) throws TException {
-
 
1785
      TField field;
-
 
1786
      iprot.readStructBegin();
-
 
1787
      while (true)
-
 
1788
      {
-
 
1789
        field = iprot.readFieldBegin();
-
 
1790
        if (field.type == TType.STOP) { 
-
 
1791
          break;
-
 
1792
        }
-
 
1793
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1794
        if (fieldId == null) {
-
 
1795
          TProtocolUtil.skip(iprot, field.type);
-
 
1796
        } else {
-
 
1797
          switch (fieldId) {
-
 
1798
            case AGENT_ID:
-
 
1799
              if (field.type == TType.I64) {
-
 
1800
                this.agentId = iprot.readI64();
-
 
1801
                setAgentIdIsSet(true);
-
 
1802
              } else { 
-
 
1803
                TProtocolUtil.skip(iprot, field.type);
-
 
1804
              }
-
 
1805
              break;
-
 
1806
          }
-
 
1807
          iprot.readFieldEnd();
-
 
1808
        }
-
 
1809
      }
-
 
1810
      iprot.readStructEnd();
-
 
1811
      validate();
-
 
1812
    }
-
 
1813
 
-
 
1814
    public void write(TProtocol oprot) throws TException {
-
 
1815
      validate();
-
 
1816
 
-
 
1817
      oprot.writeStructBegin(STRUCT_DESC);
-
 
1818
      oprot.writeFieldBegin(AGENT_ID_FIELD_DESC);
-
 
1819
      oprot.writeI64(this.agentId);
-
 
1820
      oprot.writeFieldEnd();
-
 
1821
      oprot.writeFieldStop();
-
 
1822
      oprot.writeStructEnd();
-
 
1823
    }
-
 
1824
 
-
 
1825
    @Override
-
 
1826
    public String toString() {
-
 
1827
      StringBuilder sb = new StringBuilder("getAssignedTickets_args(");
-
 
1828
      boolean first = true;
-
 
1829
 
-
 
1830
      sb.append("agentId:");
-
 
1831
      sb.append(this.agentId);
-
 
1832
      first = false;
-
 
1833
      sb.append(")");
-
 
1834
      return sb.toString();
-
 
1835
    }
-
 
1836
 
-
 
1837
    public void validate() throws TException {
-
 
1838
      // check for required fields
-
 
1839
    }
-
 
1840
 
-
 
1841
  }
-
 
1842
 
-
 
1843
  public static class getAssignedTickets_result implements TBase<getAssignedTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAssignedTickets_result>   {
-
 
1844
    private static final TStruct STRUCT_DESC = new TStruct("getAssignedTickets_result");
-
 
1845
 
-
 
1846
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
1847
 
-
 
1848
    private List<Ticket> success;
-
 
1849
 
-
 
1850
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
1851
    public enum _Fields implements TFieldIdEnum {
-
 
1852
      SUCCESS((short)0, "success");
-
 
1853
 
-
 
1854
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1855
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
1856
 
-
 
1857
      static {
-
 
1858
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
1859
          byId.put((int)field._thriftId, field);
-
 
1860
          byName.put(field.getFieldName(), field);
-
 
1861
        }
-
 
1862
      }
-
 
1863
 
-
 
1864
      /**
-
 
1865
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
1866
       */
-
 
1867
      public static _Fields findByThriftId(int fieldId) {
-
 
1868
        return byId.get(fieldId);
-
 
1869
      }
-
 
1870
 
-
 
1871
      /**
-
 
1872
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
1873
       * if it is not found.
-
 
1874
       */
-
 
1875
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
1876
        _Fields fields = findByThriftId(fieldId);
-
 
1877
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
1878
        return fields;
-
 
1879
      }
-
 
1880
 
-
 
1881
      /**
-
 
1882
       * Find the _Fields constant that matches name, or null if its not found.
-
 
1883
       */
-
 
1884
      public static _Fields findByName(String name) {
-
 
1885
        return byName.get(name);
-
 
1886
      }
-
 
1887
 
-
 
1888
      private final short _thriftId;
-
 
1889
      private final String _fieldName;
-
 
1890
 
-
 
1891
      _Fields(short thriftId, String fieldName) {
-
 
1892
        _thriftId = thriftId;
-
 
1893
        _fieldName = fieldName;
-
 
1894
      }
-
 
1895
 
-
 
1896
      public short getThriftFieldId() {
-
 
1897
        return _thriftId;
-
 
1898
      }
-
 
1899
 
-
 
1900
      public String getFieldName() {
-
 
1901
        return _fieldName;
-
 
1902
      }
-
 
1903
    }
-
 
1904
 
-
 
1905
    // isset id assignments
-
 
1906
 
-
 
1907
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
1908
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
1909
          new ListMetaData(TType.LIST, 
-
 
1910
              new StructMetaData(TType.STRUCT, Ticket.class))));
-
 
1911
    }});
-
 
1912
 
-
 
1913
    static {
-
 
1914
      FieldMetaData.addStructMetaDataMap(getAssignedTickets_result.class, metaDataMap);
-
 
1915
    }
-
 
1916
 
-
 
1917
    public getAssignedTickets_result() {
-
 
1918
    }
-
 
1919
 
-
 
1920
    public getAssignedTickets_result(
-
 
1921
      List<Ticket> success)
-
 
1922
    {
-
 
1923
      this();
-
 
1924
      this.success = success;
-
 
1925
    }
-
 
1926
 
-
 
1927
    /**
-
 
1928
     * Performs a deep copy on <i>other</i>.
-
 
1929
     */
-
 
1930
    public getAssignedTickets_result(getAssignedTickets_result other) {
-
 
1931
      if (other.isSetSuccess()) {
-
 
1932
        List<Ticket> __this__success = new ArrayList<Ticket>();
-
 
1933
        for (Ticket other_element : other.success) {
-
 
1934
          __this__success.add(new Ticket(other_element));
-
 
1935
        }
-
 
1936
        this.success = __this__success;
-
 
1937
      }
-
 
1938
    }
-
 
1939
 
-
 
1940
    public getAssignedTickets_result deepCopy() {
-
 
1941
      return new getAssignedTickets_result(this);
-
 
1942
    }
-
 
1943
 
-
 
1944
    @Deprecated
-
 
1945
    public getAssignedTickets_result clone() {
-
 
1946
      return new getAssignedTickets_result(this);
-
 
1947
    }
-
 
1948
 
-
 
1949
    public int getSuccessSize() {
-
 
1950
      return (this.success == null) ? 0 : this.success.size();
-
 
1951
    }
-
 
1952
 
-
 
1953
    public java.util.Iterator<Ticket> getSuccessIterator() {
-
 
1954
      return (this.success == null) ? null : this.success.iterator();
-
 
1955
    }
-
 
1956
 
-
 
1957
    public void addToSuccess(Ticket elem) {
-
 
1958
      if (this.success == null) {
-
 
1959
        this.success = new ArrayList<Ticket>();
-
 
1960
      }
-
 
1961
      this.success.add(elem);
-
 
1962
    }
-
 
1963
 
-
 
1964
    public List<Ticket> getSuccess() {
-
 
1965
      return this.success;
-
 
1966
    }
-
 
1967
 
-
 
1968
    public getAssignedTickets_result setSuccess(List<Ticket> success) {
-
 
1969
      this.success = success;
-
 
1970
      return this;
-
 
1971
    }
-
 
1972
 
-
 
1973
    public void unsetSuccess() {
-
 
1974
      this.success = null;
-
 
1975
    }
-
 
1976
 
-
 
1977
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
1978
    public boolean isSetSuccess() {
-
 
1979
      return this.success != null;
-
 
1980
    }
-
 
1981
 
-
 
1982
    public void setSuccessIsSet(boolean value) {
-
 
1983
      if (!value) {
-
 
1984
        this.success = null;
-
 
1985
      }
-
 
1986
    }
-
 
1987
 
-
 
1988
    public void setFieldValue(_Fields field, Object value) {
-
 
1989
      switch (field) {
-
 
1990
      case SUCCESS:
-
 
1991
        if (value == null) {
-
 
1992
          unsetSuccess();
-
 
1993
        } else {
-
 
1994
          setSuccess((List<Ticket>)value);
-
 
1995
        }
-
 
1996
        break;
-
 
1997
 
-
 
1998
      }
-
 
1999
    }
-
 
2000
 
-
 
2001
    public void setFieldValue(int fieldID, Object value) {
-
 
2002
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2003
    }
-
 
2004
 
-
 
2005
    public Object getFieldValue(_Fields field) {
-
 
2006
      switch (field) {
-
 
2007
      case SUCCESS:
-
 
2008
        return getSuccess();
-
 
2009
 
-
 
2010
      }
-
 
2011
      throw new IllegalStateException();
-
 
2012
    }
-
 
2013
 
-
 
2014
    public Object getFieldValue(int fieldId) {
-
 
2015
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2016
    }
-
 
2017
 
-
 
2018
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
2019
    public boolean isSet(_Fields field) {
-
 
2020
      switch (field) {
-
 
2021
      case SUCCESS:
-
 
2022
        return isSetSuccess();
-
 
2023
      }
-
 
2024
      throw new IllegalStateException();
-
 
2025
    }
-
 
2026
 
-
 
2027
    public boolean isSet(int fieldID) {
-
 
2028
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2029
    }
-
 
2030
 
-
 
2031
    @Override
-
 
2032
    public boolean equals(Object that) {
-
 
2033
      if (that == null)
-
 
2034
        return false;
-
 
2035
      if (that instanceof getAssignedTickets_result)
-
 
2036
        return this.equals((getAssignedTickets_result)that);
-
 
2037
      return false;
-
 
2038
    }
-
 
2039
 
-
 
2040
    public boolean equals(getAssignedTickets_result that) {
-
 
2041
      if (that == null)
-
 
2042
        return false;
-
 
2043
 
-
 
2044
      boolean this_present_success = true && this.isSetSuccess();
-
 
2045
      boolean that_present_success = true && that.isSetSuccess();
-
 
2046
      if (this_present_success || that_present_success) {
-
 
2047
        if (!(this_present_success && that_present_success))
-
 
2048
          return false;
-
 
2049
        if (!this.success.equals(that.success))
-
 
2050
          return false;
-
 
2051
      }
-
 
2052
 
-
 
2053
      return true;
-
 
2054
    }
-
 
2055
 
-
 
2056
    @Override
-
 
2057
    public int hashCode() {
-
 
2058
      return 0;
-
 
2059
    }
-
 
2060
 
-
 
2061
    public int compareTo(getAssignedTickets_result other) {
-
 
2062
      if (!getClass().equals(other.getClass())) {
-
 
2063
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2064
      }
-
 
2065
 
-
 
2066
      int lastComparison = 0;
-
 
2067
      getAssignedTickets_result typedOther = (getAssignedTickets_result)other;
-
 
2068
 
-
 
2069
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
2070
      if (lastComparison != 0) {
-
 
2071
        return lastComparison;
-
 
2072
      }
-
 
2073
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
2074
      if (lastComparison != 0) {
-
 
2075
        return lastComparison;
-
 
2076
      }
-
 
2077
      return 0;
-
 
2078
    }
-
 
2079
 
-
 
2080
    public void read(TProtocol iprot) throws TException {
-
 
2081
      TField field;
-
 
2082
      iprot.readStructBegin();
-
 
2083
      while (true)
-
 
2084
      {
-
 
2085
        field = iprot.readFieldBegin();
-
 
2086
        if (field.type == TType.STOP) { 
-
 
2087
          break;
-
 
2088
        }
-
 
2089
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2090
        if (fieldId == null) {
-
 
2091
          TProtocolUtil.skip(iprot, field.type);
-
 
2092
        } else {
-
 
2093
          switch (fieldId) {
-
 
2094
            case SUCCESS:
-
 
2095
              if (field.type == TType.LIST) {
-
 
2096
                {
-
 
2097
                  TList _list4 = iprot.readListBegin();
-
 
2098
                  this.success = new ArrayList<Ticket>(_list4.size);
-
 
2099
                  for (int _i5 = 0; _i5 < _list4.size; ++_i5)
-
 
2100
                  {
-
 
2101
                    Ticket _elem6;
-
 
2102
                    _elem6 = new Ticket();
-
 
2103
                    _elem6.read(iprot);
-
 
2104
                    this.success.add(_elem6);
-
 
2105
                  }
-
 
2106
                  iprot.readListEnd();
-
 
2107
                }
-
 
2108
              } else { 
-
 
2109
                TProtocolUtil.skip(iprot, field.type);
-
 
2110
              }
-
 
2111
              break;
-
 
2112
          }
-
 
2113
          iprot.readFieldEnd();
-
 
2114
        }
-
 
2115
      }
-
 
2116
      iprot.readStructEnd();
-
 
2117
      validate();
-
 
2118
    }
-
 
2119
 
-
 
2120
    public void write(TProtocol oprot) throws TException {
-
 
2121
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2122
 
-
 
2123
      if (this.isSetSuccess()) {
-
 
2124
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
2125
        {
-
 
2126
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
2127
          for (Ticket _iter7 : this.success)
-
 
2128
          {
-
 
2129
            _iter7.write(oprot);
-
 
2130
          }
-
 
2131
          oprot.writeListEnd();
-
 
2132
        }
-
 
2133
        oprot.writeFieldEnd();
-
 
2134
      }
-
 
2135
      oprot.writeFieldStop();
-
 
2136
      oprot.writeStructEnd();
-
 
2137
    }
-
 
2138
 
-
 
2139
    @Override
-
 
2140
    public String toString() {
-
 
2141
      StringBuilder sb = new StringBuilder("getAssignedTickets_result(");
-
 
2142
      boolean first = true;
-
 
2143
 
-
 
2144
      sb.append("success:");
-
 
2145
      if (this.success == null) {
-
 
2146
        sb.append("null");
-
 
2147
      } else {
-
 
2148
        sb.append(this.success);
-
 
2149
      }
-
 
2150
      first = false;
-
 
2151
      sb.append(")");
-
 
2152
      return sb.toString();
-
 
2153
    }
-
 
2154
 
-
 
2155
    public void validate() throws TException {
-
 
2156
      // check for required fields
-
 
2157
    }
-
 
2158
 
-
 
2159
  }
-
 
2160
 
-
 
2161
  public static class getOpenTickets_args implements TBase<getOpenTickets_args._Fields>, java.io.Serializable, Cloneable, Comparable<getOpenTickets_args>   {
-
 
2162
    private static final TStruct STRUCT_DESC = new TStruct("getOpenTickets_args");
-
 
2163
 
-
 
2164
 
-
 
2165
 
-
 
2166
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2167
    public enum _Fields implements TFieldIdEnum {
-
 
2168
;
-
 
2169
 
-
 
2170
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2171
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2172
 
-
 
2173
      static {
-
 
2174
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2175
          byId.put((int)field._thriftId, field);
-
 
2176
          byName.put(field.getFieldName(), field);
-
 
2177
        }
-
 
2178
      }
-
 
2179
 
-
 
2180
      /**
-
 
2181
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2182
       */
-
 
2183
      public static _Fields findByThriftId(int fieldId) {
-
 
2184
        return byId.get(fieldId);
-
 
2185
      }
-
 
2186
 
-
 
2187
      /**
-
 
2188
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2189
       * if it is not found.
-
 
2190
       */
-
 
2191
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2192
        _Fields fields = findByThriftId(fieldId);
-
 
2193
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2194
        return fields;
-
 
2195
      }
-
 
2196
 
-
 
2197
      /**
-
 
2198
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2199
       */
-
 
2200
      public static _Fields findByName(String name) {
-
 
2201
        return byName.get(name);
-
 
2202
      }
-
 
2203
 
-
 
2204
      private final short _thriftId;
-
 
2205
      private final String _fieldName;
-
 
2206
 
-
 
2207
      _Fields(short thriftId, String fieldName) {
-
 
2208
        _thriftId = thriftId;
-
 
2209
        _fieldName = fieldName;
-
 
2210
      }
-
 
2211
 
-
 
2212
      public short getThriftFieldId() {
-
 
2213
        return _thriftId;
-
 
2214
      }
-
 
2215
 
-
 
2216
      public String getFieldName() {
-
 
2217
        return _fieldName;
-
 
2218
      }
-
 
2219
    }
-
 
2220
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2221
    }});
-
 
2222
 
-
 
2223
    static {
-
 
2224
      FieldMetaData.addStructMetaDataMap(getOpenTickets_args.class, metaDataMap);
-
 
2225
    }
-
 
2226
 
-
 
2227
    public getOpenTickets_args() {
-
 
2228
    }
-
 
2229
 
-
 
2230
    /**
-
 
2231
     * Performs a deep copy on <i>other</i>.
-
 
2232
     */
-
 
2233
    public getOpenTickets_args(getOpenTickets_args other) {
-
 
2234
    }
-
 
2235
 
-
 
2236
    public getOpenTickets_args deepCopy() {
-
 
2237
      return new getOpenTickets_args(this);
-
 
2238
    }
-
 
2239
 
-
 
2240
    @Deprecated
-
 
2241
    public getOpenTickets_args clone() {
-
 
2242
      return new getOpenTickets_args(this);
-
 
2243
    }
-
 
2244
 
-
 
2245
    public void setFieldValue(_Fields field, Object value) {
-
 
2246
      switch (field) {
-
 
2247
      }
-
 
2248
    }
-
 
2249
 
-
 
2250
    public void setFieldValue(int fieldID, Object value) {
-
 
2251
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2252
    }
-
 
2253
 
-
 
2254
    public Object getFieldValue(_Fields field) {
-
 
2255
      switch (field) {
-
 
2256
      }
-
 
2257
      throw new IllegalStateException();
-
 
2258
    }
-
 
2259
 
-
 
2260
    public Object getFieldValue(int fieldId) {
-
 
2261
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2262
    }
-
 
2263
 
-
 
2264
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
2265
    public boolean isSet(_Fields field) {
-
 
2266
      switch (field) {
-
 
2267
      }
-
 
2268
      throw new IllegalStateException();
-
 
2269
    }
-
 
2270
 
-
 
2271
    public boolean isSet(int fieldID) {
-
 
2272
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2273
    }
-
 
2274
 
-
 
2275
    @Override
-
 
2276
    public boolean equals(Object that) {
-
 
2277
      if (that == null)
-
 
2278
        return false;
-
 
2279
      if (that instanceof getOpenTickets_args)
-
 
2280
        return this.equals((getOpenTickets_args)that);
-
 
2281
      return false;
-
 
2282
    }
-
 
2283
 
-
 
2284
    public boolean equals(getOpenTickets_args that) {
-
 
2285
      if (that == null)
-
 
2286
        return false;
-
 
2287
 
-
 
2288
      return true;
-
 
2289
    }
-
 
2290
 
-
 
2291
    @Override
-
 
2292
    public int hashCode() {
-
 
2293
      return 0;
-
 
2294
    }
-
 
2295
 
-
 
2296
    public int compareTo(getOpenTickets_args other) {
-
 
2297
      if (!getClass().equals(other.getClass())) {
-
 
2298
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2299
      }
-
 
2300
 
-
 
2301
      int lastComparison = 0;
-
 
2302
      getOpenTickets_args typedOther = (getOpenTickets_args)other;
-
 
2303
 
-
 
2304
      return 0;
-
 
2305
    }
-
 
2306
 
-
 
2307
    public void read(TProtocol iprot) throws TException {
-
 
2308
      TField field;
-
 
2309
      iprot.readStructBegin();
-
 
2310
      while (true)
-
 
2311
      {
-
 
2312
        field = iprot.readFieldBegin();
-
 
2313
        if (field.type == TType.STOP) { 
-
 
2314
          break;
-
 
2315
        }
-
 
2316
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2317
        if (fieldId == null) {
-
 
2318
          TProtocolUtil.skip(iprot, field.type);
-
 
2319
        } else {
-
 
2320
          switch (fieldId) {
-
 
2321
          }
-
 
2322
          iprot.readFieldEnd();
-
 
2323
        }
-
 
2324
      }
-
 
2325
      iprot.readStructEnd();
-
 
2326
      validate();
-
 
2327
    }
-
 
2328
 
-
 
2329
    public void write(TProtocol oprot) throws TException {
-
 
2330
      validate();
-
 
2331
 
-
 
2332
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2333
      oprot.writeFieldStop();
-
 
2334
      oprot.writeStructEnd();
-
 
2335
    }
-
 
2336
 
-
 
2337
    @Override
-
 
2338
    public String toString() {
-
 
2339
      StringBuilder sb = new StringBuilder("getOpenTickets_args(");
-
 
2340
      boolean first = true;
-
 
2341
 
-
 
2342
      sb.append(")");
-
 
2343
      return sb.toString();
-
 
2344
    }
-
 
2345
 
-
 
2346
    public void validate() throws TException {
-
 
2347
      // check for required fields
-
 
2348
    }
-
 
2349
 
-
 
2350
  }
-
 
2351
 
-
 
2352
  public static class getOpenTickets_result implements TBase<getOpenTickets_result._Fields>, java.io.Serializable, Cloneable, Comparable<getOpenTickets_result>   {
-
 
2353
    private static final TStruct STRUCT_DESC = new TStruct("getOpenTickets_result");
-
 
2354
 
-
 
2355
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
2356
 
-
 
2357
    private List<Ticket> success;
-
 
2358
 
-
 
2359
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
2360
    public enum _Fields implements TFieldIdEnum {
-
 
2361
      SUCCESS((short)0, "success");
-
 
2362
 
-
 
2363
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2364
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
2365
 
-
 
2366
      static {
-
 
2367
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
2368
          byId.put((int)field._thriftId, field);
-
 
2369
          byName.put(field.getFieldName(), field);
-
 
2370
        }
-
 
2371
      }
-
 
2372
 
-
 
2373
      /**
-
 
2374
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
2375
       */
-
 
2376
      public static _Fields findByThriftId(int fieldId) {
-
 
2377
        return byId.get(fieldId);
-
 
2378
      }
-
 
2379
 
-
 
2380
      /**
-
 
2381
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
2382
       * if it is not found.
-
 
2383
       */
-
 
2384
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
2385
        _Fields fields = findByThriftId(fieldId);
-
 
2386
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
2387
        return fields;
-
 
2388
      }
-
 
2389
 
-
 
2390
      /**
-
 
2391
       * Find the _Fields constant that matches name, or null if its not found.
-
 
2392
       */
-
 
2393
      public static _Fields findByName(String name) {
-
 
2394
        return byName.get(name);
-
 
2395
      }
-
 
2396
 
-
 
2397
      private final short _thriftId;
-
 
2398
      private final String _fieldName;
-
 
2399
 
-
 
2400
      _Fields(short thriftId, String fieldName) {
-
 
2401
        _thriftId = thriftId;
-
 
2402
        _fieldName = fieldName;
-
 
2403
      }
-
 
2404
 
-
 
2405
      public short getThriftFieldId() {
-
 
2406
        return _thriftId;
-
 
2407
      }
-
 
2408
 
-
 
2409
      public String getFieldName() {
-
 
2410
        return _fieldName;
-
 
2411
      }
-
 
2412
    }
-
 
2413
 
-
 
2414
    // isset id assignments
-
 
2415
 
-
 
2416
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
2417
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
2418
          new ListMetaData(TType.LIST, 
-
 
2419
              new StructMetaData(TType.STRUCT, Ticket.class))));
-
 
2420
    }});
-
 
2421
 
-
 
2422
    static {
-
 
2423
      FieldMetaData.addStructMetaDataMap(getOpenTickets_result.class, metaDataMap);
-
 
2424
    }
-
 
2425
 
-
 
2426
    public getOpenTickets_result() {
-
 
2427
    }
-
 
2428
 
-
 
2429
    public getOpenTickets_result(
-
 
2430
      List<Ticket> success)
-
 
2431
    {
-
 
2432
      this();
-
 
2433
      this.success = success;
-
 
2434
    }
-
 
2435
 
-
 
2436
    /**
-
 
2437
     * Performs a deep copy on <i>other</i>.
-
 
2438
     */
-
 
2439
    public getOpenTickets_result(getOpenTickets_result other) {
-
 
2440
      if (other.isSetSuccess()) {
-
 
2441
        List<Ticket> __this__success = new ArrayList<Ticket>();
-
 
2442
        for (Ticket other_element : other.success) {
-
 
2443
          __this__success.add(new Ticket(other_element));
-
 
2444
        }
-
 
2445
        this.success = __this__success;
-
 
2446
      }
-
 
2447
    }
-
 
2448
 
-
 
2449
    public getOpenTickets_result deepCopy() {
-
 
2450
      return new getOpenTickets_result(this);
-
 
2451
    }
-
 
2452
 
-
 
2453
    @Deprecated
-
 
2454
    public getOpenTickets_result clone() {
-
 
2455
      return new getOpenTickets_result(this);
-
 
2456
    }
-
 
2457
 
-
 
2458
    public int getSuccessSize() {
-
 
2459
      return (this.success == null) ? 0 : this.success.size();
-
 
2460
    }
-
 
2461
 
-
 
2462
    public java.util.Iterator<Ticket> getSuccessIterator() {
-
 
2463
      return (this.success == null) ? null : this.success.iterator();
-
 
2464
    }
-
 
2465
 
-
 
2466
    public void addToSuccess(Ticket elem) {
-
 
2467
      if (this.success == null) {
-
 
2468
        this.success = new ArrayList<Ticket>();
-
 
2469
      }
-
 
2470
      this.success.add(elem);
-
 
2471
    }
-
 
2472
 
-
 
2473
    public List<Ticket> getSuccess() {
-
 
2474
      return this.success;
-
 
2475
    }
-
 
2476
 
-
 
2477
    public getOpenTickets_result setSuccess(List<Ticket> success) {
-
 
2478
      this.success = success;
-
 
2479
      return this;
-
 
2480
    }
-
 
2481
 
-
 
2482
    public void unsetSuccess() {
-
 
2483
      this.success = null;
-
 
2484
    }
-
 
2485
 
-
 
2486
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
2487
    public boolean isSetSuccess() {
-
 
2488
      return this.success != null;
-
 
2489
    }
-
 
2490
 
-
 
2491
    public void setSuccessIsSet(boolean value) {
-
 
2492
      if (!value) {
-
 
2493
        this.success = null;
-
 
2494
      }
-
 
2495
    }
-
 
2496
 
-
 
2497
    public void setFieldValue(_Fields field, Object value) {
-
 
2498
      switch (field) {
-
 
2499
      case SUCCESS:
-
 
2500
        if (value == null) {
-
 
2501
          unsetSuccess();
-
 
2502
        } else {
-
 
2503
          setSuccess((List<Ticket>)value);
-
 
2504
        }
-
 
2505
        break;
-
 
2506
 
-
 
2507
      }
-
 
2508
    }
-
 
2509
 
-
 
2510
    public void setFieldValue(int fieldID, Object value) {
-
 
2511
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2512
    }
-
 
2513
 
-
 
2514
    public Object getFieldValue(_Fields field) {
-
 
2515
      switch (field) {
-
 
2516
      case SUCCESS:
-
 
2517
        return getSuccess();
-
 
2518
 
-
 
2519
      }
-
 
2520
      throw new IllegalStateException();
-
 
2521
    }
-
 
2522
 
-
 
2523
    public Object getFieldValue(int fieldId) {
-
 
2524
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2525
    }
-
 
2526
 
-
 
2527
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
2528
    public boolean isSet(_Fields field) {
-
 
2529
      switch (field) {
-
 
2530
      case SUCCESS:
-
 
2531
        return isSetSuccess();
-
 
2532
      }
-
 
2533
      throw new IllegalStateException();
-
 
2534
    }
-
 
2535
 
-
 
2536
    public boolean isSet(int fieldID) {
-
 
2537
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2538
    }
-
 
2539
 
-
 
2540
    @Override
-
 
2541
    public boolean equals(Object that) {
-
 
2542
      if (that == null)
-
 
2543
        return false;
-
 
2544
      if (that instanceof getOpenTickets_result)
-
 
2545
        return this.equals((getOpenTickets_result)that);
-
 
2546
      return false;
-
 
2547
    }
-
 
2548
 
-
 
2549
    public boolean equals(getOpenTickets_result that) {
-
 
2550
      if (that == null)
-
 
2551
        return false;
-
 
2552
 
-
 
2553
      boolean this_present_success = true && this.isSetSuccess();
-
 
2554
      boolean that_present_success = true && that.isSetSuccess();
-
 
2555
      if (this_present_success || that_present_success) {
-
 
2556
        if (!(this_present_success && that_present_success))
-
 
2557
          return false;
-
 
2558
        if (!this.success.equals(that.success))
-
 
2559
          return false;
-
 
2560
      }
-
 
2561
 
-
 
2562
      return true;
-
 
2563
    }
-
 
2564
 
-
 
2565
    @Override
-
 
2566
    public int hashCode() {
-
 
2567
      return 0;
-
 
2568
    }
-
 
2569
 
-
 
2570
    public int compareTo(getOpenTickets_result other) {
-
 
2571
      if (!getClass().equals(other.getClass())) {
-
 
2572
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2573
      }
-
 
2574
 
-
 
2575
      int lastComparison = 0;
-
 
2576
      getOpenTickets_result typedOther = (getOpenTickets_result)other;
-
 
2577
 
-
 
2578
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
2579
      if (lastComparison != 0) {
-
 
2580
        return lastComparison;
-
 
2581
      }
-
 
2582
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
2583
      if (lastComparison != 0) {
-
 
2584
        return lastComparison;
-
 
2585
      }
-
 
2586
      return 0;
-
 
2587
    }
-
 
2588
 
-
 
2589
    public void read(TProtocol iprot) throws TException {
-
 
2590
      TField field;
-
 
2591
      iprot.readStructBegin();
-
 
2592
      while (true)
-
 
2593
      {
-
 
2594
        field = iprot.readFieldBegin();
-
 
2595
        if (field.type == TType.STOP) { 
-
 
2596
          break;
-
 
2597
        }
-
 
2598
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2599
        if (fieldId == null) {
-
 
2600
          TProtocolUtil.skip(iprot, field.type);
-
 
2601
        } else {
-
 
2602
          switch (fieldId) {
-
 
2603
            case SUCCESS:
-
 
2604
              if (field.type == TType.LIST) {
-
 
2605
                {
-
 
2606
                  TList _list8 = iprot.readListBegin();
-
 
2607
                  this.success = new ArrayList<Ticket>(_list8.size);
-
 
2608
                  for (int _i9 = 0; _i9 < _list8.size; ++_i9)
-
 
2609
                  {
-
 
2610
                    Ticket _elem10;
-
 
2611
                    _elem10 = new Ticket();
-
 
2612
                    _elem10.read(iprot);
-
 
2613
                    this.success.add(_elem10);
-
 
2614
                  }
-
 
2615
                  iprot.readListEnd();
-
 
2616
                }
-
 
2617
              } else { 
-
 
2618
                TProtocolUtil.skip(iprot, field.type);
-
 
2619
              }
-
 
2620
              break;
-
 
2621
          }
-
 
2622
          iprot.readFieldEnd();
-
 
2623
        }
-
 
2624
      }
-
 
2625
      iprot.readStructEnd();
-
 
2626
      validate();
-
 
2627
    }
-
 
2628
 
-
 
2629
    public void write(TProtocol oprot) throws TException {
-
 
2630
      oprot.writeStructBegin(STRUCT_DESC);
-
 
2631
 
-
 
2632
      if (this.isSetSuccess()) {
-
 
2633
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
2634
        {
-
 
2635
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
2636
          for (Ticket _iter11 : this.success)
-
 
2637
          {
-
 
2638
            _iter11.write(oprot);
-
 
2639
          }
-
 
2640
          oprot.writeListEnd();
-
 
2641
        }
-
 
2642
        oprot.writeFieldEnd();
-
 
2643
      }
-
 
2644
      oprot.writeFieldStop();
-
 
2645
      oprot.writeStructEnd();
-
 
2646
    }
-
 
2647
 
-
 
2648
    @Override
-
 
2649
    public String toString() {
-
 
2650
      StringBuilder sb = new StringBuilder("getOpenTickets_result(");
-
 
2651
      boolean first = true;
-
 
2652
 
-
 
2653
      sb.append("success:");
-
 
2654
      if (this.success == null) {
-
 
2655
        sb.append("null");
-
 
2656
      } else {
-
 
2657
        sb.append(this.success);
-
 
2658
      }
-
 
2659
      first = false;
-
 
2660
      sb.append(")");
-
 
2661
      return sb.toString();
-
 
2662
    }
-
 
2663
 
-
 
2664
    public void validate() throws TException {
-
 
2665
      // check for required fields
-
 
2666
    }
-
 
2667
 
-
 
2668
  }
-
 
2669
 
1257
  public static class getTicket_args implements TBase<getTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTicket_args>   {
2670
  public static class getTicket_args implements TBase<getTicket_args._Fields>, java.io.Serializable, Cloneable, Comparable<getTicket_args>   {
1258
    private static final TStruct STRUCT_DESC = new TStruct("getTicket_args");
2671
    private static final TStruct STRUCT_DESC = new TStruct("getTicket_args");
1259
 
2672
 
1260
    private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);
2673
    private static final TField TICKET_ID_FIELD_DESC = new TField("ticketId", TType.I64, (short)1);
1261
 
2674
 
Line 3376... Line 4789...
3376
        } else {
4789
        } else {
3377
          switch (fieldId) {
4790
          switch (fieldId) {
3378
            case SUCCESS:
4791
            case SUCCESS:
3379
              if (field.type == TType.LIST) {
4792
              if (field.type == TType.LIST) {
3380
                {
4793
                {
3381
                  TList _list4 = iprot.readListBegin();
4794
                  TList _list12 = iprot.readListBegin();
3382
                  this.success = new ArrayList<Activity>(_list4.size);
4795
                  this.success = new ArrayList<Activity>(_list12.size);
3383
                  for (int _i5 = 0; _i5 < _list4.size; ++_i5)
4796
                  for (int _i13 = 0; _i13 < _list12.size; ++_i13)
3384
                  {
4797
                  {
3385
                    Activity _elem6;
4798
                    Activity _elem14;
3386
                    _elem6 = new Activity();
4799
                    _elem14 = new Activity();
3387
                    _elem6.read(iprot);
4800
                    _elem14.read(iprot);
3388
                    this.success.add(_elem6);
4801
                    this.success.add(_elem14);
3389
                  }
4802
                  }
3390
                  iprot.readListEnd();
4803
                  iprot.readListEnd();
3391
                }
4804
                }
3392
              } else { 
4805
              } else { 
3393
                TProtocolUtil.skip(iprot, field.type);
4806
                TProtocolUtil.skip(iprot, field.type);
Line 3406... Line 4819...
3406
 
4819
 
3407
      if (this.isSetSuccess()) {
4820
      if (this.isSetSuccess()) {
3408
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4821
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3409
        {
4822
        {
3410
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
4823
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
3411
          for (Activity _iter7 : this.success)
4824
          for (Activity _iter15 : this.success)
3412
          {
4825
          {
3413
            _iter7.write(oprot);
4826
            _iter15.write(oprot);
3414
          }
4827
          }
3415
          oprot.writeListEnd();
4828
          oprot.writeListEnd();
3416
        }
4829
        }
3417
        oprot.writeFieldEnd();
4830
        oprot.writeFieldEnd();
3418
      }
4831
      }
Line 3972... Line 5385...
3972
        } else {
5385
        } else {
3973
          switch (fieldId) {
5386
          switch (fieldId) {
3974
            case SUCCESS:
5387
            case SUCCESS:
3975
              if (field.type == TType.LIST) {
5388
              if (field.type == TType.LIST) {
3976
                {
5389
                {
3977
                  TList _list8 = iprot.readListBegin();
5390
                  TList _list16 = iprot.readListBegin();
3978
                  this.success = new ArrayList<Activity>(_list8.size);
5391
                  this.success = new ArrayList<Activity>(_list16.size);
3979
                  for (int _i9 = 0; _i9 < _list8.size; ++_i9)
5392
                  for (int _i17 = 0; _i17 < _list16.size; ++_i17)
3980
                  {
5393
                  {
3981
                    Activity _elem10;
5394
                    Activity _elem18;
3982
                    _elem10 = new Activity();
5395
                    _elem18 = new Activity();
3983
                    _elem10.read(iprot);
5396
                    _elem18.read(iprot);
3984
                    this.success.add(_elem10);
5397
                    this.success.add(_elem18);
3985
                  }
5398
                  }
3986
                  iprot.readListEnd();
5399
                  iprot.readListEnd();
3987
                }
5400
                }
3988
              } else { 
5401
              } else { 
3989
                TProtocolUtil.skip(iprot, field.type);
5402
                TProtocolUtil.skip(iprot, field.type);
Line 4002... Line 5415...
4002
 
5415
 
4003
      if (this.isSetSuccess()) {
5416
      if (this.isSetSuccess()) {
4004
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5417
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4005
        {
5418
        {
4006
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
5419
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
4007
          for (Activity _iter11 : this.success)
5420
          for (Activity _iter19 : this.success)
4008
          {
5421
          {
4009
            _iter11.write(oprot);
5422
            _iter19.write(oprot);
4010
          }
5423
          }
4011
          oprot.writeListEnd();
5424
          oprot.writeListEnd();
4012
        }
5425
        }
4013
        oprot.writeFieldEnd();
5426
        oprot.writeFieldEnd();
4014
      }
5427
      }
Line 5626... Line 7039...
5626
      // check for required fields
7039
      // check for required fields
5627
    }
7040
    }
5628
 
7041
 
5629
  }
7042
  }
5630
 
7043
 
-
 
7044
  public static class getAllAgents_args implements TBase<getAllAgents_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllAgents_args>   {
-
 
7045
    private static final TStruct STRUCT_DESC = new TStruct("getAllAgents_args");
-
 
7046
 
-
 
7047
 
-
 
7048
 
-
 
7049
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7050
    public enum _Fields implements TFieldIdEnum {
-
 
7051
;
-
 
7052
 
-
 
7053
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7054
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7055
 
-
 
7056
      static {
-
 
7057
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7058
          byId.put((int)field._thriftId, field);
-
 
7059
          byName.put(field.getFieldName(), field);
-
 
7060
        }
-
 
7061
      }
-
 
7062
 
-
 
7063
      /**
-
 
7064
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7065
       */
-
 
7066
      public static _Fields findByThriftId(int fieldId) {
-
 
7067
        return byId.get(fieldId);
-
 
7068
      }
-
 
7069
 
-
 
7070
      /**
-
 
7071
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7072
       * if it is not found.
-
 
7073
       */
-
 
7074
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7075
        _Fields fields = findByThriftId(fieldId);
-
 
7076
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7077
        return fields;
-
 
7078
      }
-
 
7079
 
-
 
7080
      /**
-
 
7081
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7082
       */
-
 
7083
      public static _Fields findByName(String name) {
-
 
7084
        return byName.get(name);
-
 
7085
      }
-
 
7086
 
-
 
7087
      private final short _thriftId;
-
 
7088
      private final String _fieldName;
-
 
7089
 
-
 
7090
      _Fields(short thriftId, String fieldName) {
-
 
7091
        _thriftId = thriftId;
-
 
7092
        _fieldName = fieldName;
-
 
7093
      }
-
 
7094
 
-
 
7095
      public short getThriftFieldId() {
-
 
7096
        return _thriftId;
-
 
7097
      }
-
 
7098
 
-
 
7099
      public String getFieldName() {
-
 
7100
        return _fieldName;
-
 
7101
      }
-
 
7102
    }
-
 
7103
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7104
    }});
-
 
7105
 
-
 
7106
    static {
-
 
7107
      FieldMetaData.addStructMetaDataMap(getAllAgents_args.class, metaDataMap);
-
 
7108
    }
-
 
7109
 
-
 
7110
    public getAllAgents_args() {
-
 
7111
    }
-
 
7112
 
-
 
7113
    /**
-
 
7114
     * Performs a deep copy on <i>other</i>.
-
 
7115
     */
-
 
7116
    public getAllAgents_args(getAllAgents_args other) {
-
 
7117
    }
-
 
7118
 
-
 
7119
    public getAllAgents_args deepCopy() {
-
 
7120
      return new getAllAgents_args(this);
-
 
7121
    }
-
 
7122
 
-
 
7123
    @Deprecated
-
 
7124
    public getAllAgents_args clone() {
-
 
7125
      return new getAllAgents_args(this);
-
 
7126
    }
-
 
7127
 
-
 
7128
    public void setFieldValue(_Fields field, Object value) {
-
 
7129
      switch (field) {
-
 
7130
      }
-
 
7131
    }
-
 
7132
 
-
 
7133
    public void setFieldValue(int fieldID, Object value) {
-
 
7134
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7135
    }
-
 
7136
 
-
 
7137
    public Object getFieldValue(_Fields field) {
-
 
7138
      switch (field) {
-
 
7139
      }
-
 
7140
      throw new IllegalStateException();
-
 
7141
    }
-
 
7142
 
-
 
7143
    public Object getFieldValue(int fieldId) {
-
 
7144
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7145
    }
-
 
7146
 
-
 
7147
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7148
    public boolean isSet(_Fields field) {
-
 
7149
      switch (field) {
-
 
7150
      }
-
 
7151
      throw new IllegalStateException();
-
 
7152
    }
-
 
7153
 
-
 
7154
    public boolean isSet(int fieldID) {
-
 
7155
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7156
    }
-
 
7157
 
-
 
7158
    @Override
-
 
7159
    public boolean equals(Object that) {
-
 
7160
      if (that == null)
-
 
7161
        return false;
-
 
7162
      if (that instanceof getAllAgents_args)
-
 
7163
        return this.equals((getAllAgents_args)that);
-
 
7164
      return false;
-
 
7165
    }
-
 
7166
 
-
 
7167
    public boolean equals(getAllAgents_args that) {
-
 
7168
      if (that == null)
-
 
7169
        return false;
-
 
7170
 
-
 
7171
      return true;
-
 
7172
    }
-
 
7173
 
-
 
7174
    @Override
-
 
7175
    public int hashCode() {
-
 
7176
      return 0;
-
 
7177
    }
-
 
7178
 
-
 
7179
    public int compareTo(getAllAgents_args other) {
-
 
7180
      if (!getClass().equals(other.getClass())) {
-
 
7181
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7182
      }
-
 
7183
 
-
 
7184
      int lastComparison = 0;
-
 
7185
      getAllAgents_args typedOther = (getAllAgents_args)other;
-
 
7186
 
-
 
7187
      return 0;
-
 
7188
    }
-
 
7189
 
-
 
7190
    public void read(TProtocol iprot) throws TException {
-
 
7191
      TField field;
-
 
7192
      iprot.readStructBegin();
-
 
7193
      while (true)
-
 
7194
      {
-
 
7195
        field = iprot.readFieldBegin();
-
 
7196
        if (field.type == TType.STOP) { 
-
 
7197
          break;
-
 
7198
        }
-
 
7199
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7200
        if (fieldId == null) {
-
 
7201
          TProtocolUtil.skip(iprot, field.type);
-
 
7202
        } else {
-
 
7203
          switch (fieldId) {
-
 
7204
          }
-
 
7205
          iprot.readFieldEnd();
-
 
7206
        }
-
 
7207
      }
-
 
7208
      iprot.readStructEnd();
-
 
7209
      validate();
-
 
7210
    }
-
 
7211
 
-
 
7212
    public void write(TProtocol oprot) throws TException {
-
 
7213
      validate();
-
 
7214
 
-
 
7215
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7216
      oprot.writeFieldStop();
-
 
7217
      oprot.writeStructEnd();
-
 
7218
    }
-
 
7219
 
-
 
7220
    @Override
-
 
7221
    public String toString() {
-
 
7222
      StringBuilder sb = new StringBuilder("getAllAgents_args(");
-
 
7223
      boolean first = true;
-
 
7224
 
-
 
7225
      sb.append(")");
-
 
7226
      return sb.toString();
-
 
7227
    }
-
 
7228
 
-
 
7229
    public void validate() throws TException {
-
 
7230
      // check for required fields
-
 
7231
    }
-
 
7232
 
-
 
7233
  }
-
 
7234
 
-
 
7235
  public static class getAllAgents_result implements TBase<getAllAgents_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllAgents_result>   {
-
 
7236
    private static final TStruct STRUCT_DESC = new TStruct("getAllAgents_result");
-
 
7237
 
-
 
7238
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
7239
 
-
 
7240
    private List<Agent> success;
-
 
7241
 
-
 
7242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
7243
    public enum _Fields implements TFieldIdEnum {
-
 
7244
      SUCCESS((short)0, "success");
-
 
7245
 
-
 
7246
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7247
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
7248
 
-
 
7249
      static {
-
 
7250
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
7251
          byId.put((int)field._thriftId, field);
-
 
7252
          byName.put(field.getFieldName(), field);
-
 
7253
        }
-
 
7254
      }
-
 
7255
 
-
 
7256
      /**
-
 
7257
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
7258
       */
-
 
7259
      public static _Fields findByThriftId(int fieldId) {
-
 
7260
        return byId.get(fieldId);
-
 
7261
      }
-
 
7262
 
-
 
7263
      /**
-
 
7264
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
7265
       * if it is not found.
-
 
7266
       */
-
 
7267
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
7268
        _Fields fields = findByThriftId(fieldId);
-
 
7269
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
7270
        return fields;
-
 
7271
      }
-
 
7272
 
-
 
7273
      /**
-
 
7274
       * Find the _Fields constant that matches name, or null if its not found.
-
 
7275
       */
-
 
7276
      public static _Fields findByName(String name) {
-
 
7277
        return byName.get(name);
-
 
7278
      }
-
 
7279
 
-
 
7280
      private final short _thriftId;
-
 
7281
      private final String _fieldName;
-
 
7282
 
-
 
7283
      _Fields(short thriftId, String fieldName) {
-
 
7284
        _thriftId = thriftId;
-
 
7285
        _fieldName = fieldName;
-
 
7286
      }
-
 
7287
 
-
 
7288
      public short getThriftFieldId() {
-
 
7289
        return _thriftId;
-
 
7290
      }
-
 
7291
 
-
 
7292
      public String getFieldName() {
-
 
7293
        return _fieldName;
-
 
7294
      }
-
 
7295
    }
-
 
7296
 
-
 
7297
    // isset id assignments
-
 
7298
 
-
 
7299
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
7300
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7301
          new ListMetaData(TType.LIST, 
-
 
7302
              new StructMetaData(TType.STRUCT, Agent.class))));
-
 
7303
    }});
-
 
7304
 
-
 
7305
    static {
-
 
7306
      FieldMetaData.addStructMetaDataMap(getAllAgents_result.class, metaDataMap);
-
 
7307
    }
-
 
7308
 
-
 
7309
    public getAllAgents_result() {
-
 
7310
    }
-
 
7311
 
-
 
7312
    public getAllAgents_result(
-
 
7313
      List<Agent> success)
-
 
7314
    {
-
 
7315
      this();
-
 
7316
      this.success = success;
-
 
7317
    }
-
 
7318
 
-
 
7319
    /**
-
 
7320
     * Performs a deep copy on <i>other</i>.
-
 
7321
     */
-
 
7322
    public getAllAgents_result(getAllAgents_result other) {
-
 
7323
      if (other.isSetSuccess()) {
-
 
7324
        List<Agent> __this__success = new ArrayList<Agent>();
-
 
7325
        for (Agent other_element : other.success) {
-
 
7326
          __this__success.add(new Agent(other_element));
-
 
7327
        }
-
 
7328
        this.success = __this__success;
-
 
7329
      }
-
 
7330
    }
-
 
7331
 
-
 
7332
    public getAllAgents_result deepCopy() {
-
 
7333
      return new getAllAgents_result(this);
-
 
7334
    }
-
 
7335
 
-
 
7336
    @Deprecated
-
 
7337
    public getAllAgents_result clone() {
-
 
7338
      return new getAllAgents_result(this);
-
 
7339
    }
-
 
7340
 
-
 
7341
    public int getSuccessSize() {
-
 
7342
      return (this.success == null) ? 0 : this.success.size();
-
 
7343
    }
-
 
7344
 
-
 
7345
    public java.util.Iterator<Agent> getSuccessIterator() {
-
 
7346
      return (this.success == null) ? null : this.success.iterator();
-
 
7347
    }
-
 
7348
 
-
 
7349
    public void addToSuccess(Agent elem) {
-
 
7350
      if (this.success == null) {
-
 
7351
        this.success = new ArrayList<Agent>();
-
 
7352
      }
-
 
7353
      this.success.add(elem);
-
 
7354
    }
-
 
7355
 
-
 
7356
    public List<Agent> getSuccess() {
-
 
7357
      return this.success;
-
 
7358
    }
-
 
7359
 
-
 
7360
    public getAllAgents_result setSuccess(List<Agent> success) {
-
 
7361
      this.success = success;
-
 
7362
      return this;
-
 
7363
    }
-
 
7364
 
-
 
7365
    public void unsetSuccess() {
-
 
7366
      this.success = null;
-
 
7367
    }
-
 
7368
 
-
 
7369
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
7370
    public boolean isSetSuccess() {
-
 
7371
      return this.success != null;
-
 
7372
    }
-
 
7373
 
-
 
7374
    public void setSuccessIsSet(boolean value) {
-
 
7375
      if (!value) {
-
 
7376
        this.success = null;
-
 
7377
      }
-
 
7378
    }
-
 
7379
 
-
 
7380
    public void setFieldValue(_Fields field, Object value) {
-
 
7381
      switch (field) {
-
 
7382
      case SUCCESS:
-
 
7383
        if (value == null) {
-
 
7384
          unsetSuccess();
-
 
7385
        } else {
-
 
7386
          setSuccess((List<Agent>)value);
-
 
7387
        }
-
 
7388
        break;
-
 
7389
 
-
 
7390
      }
-
 
7391
    }
-
 
7392
 
-
 
7393
    public void setFieldValue(int fieldID, Object value) {
-
 
7394
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7395
    }
-
 
7396
 
-
 
7397
    public Object getFieldValue(_Fields field) {
-
 
7398
      switch (field) {
-
 
7399
      case SUCCESS:
-
 
7400
        return getSuccess();
-
 
7401
 
-
 
7402
      }
-
 
7403
      throw new IllegalStateException();
-
 
7404
    }
-
 
7405
 
-
 
7406
    public Object getFieldValue(int fieldId) {
-
 
7407
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7408
    }
-
 
7409
 
-
 
7410
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
7411
    public boolean isSet(_Fields field) {
-
 
7412
      switch (field) {
-
 
7413
      case SUCCESS:
-
 
7414
        return isSetSuccess();
-
 
7415
      }
-
 
7416
      throw new IllegalStateException();
-
 
7417
    }
-
 
7418
 
-
 
7419
    public boolean isSet(int fieldID) {
-
 
7420
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7421
    }
-
 
7422
 
-
 
7423
    @Override
-
 
7424
    public boolean equals(Object that) {
-
 
7425
      if (that == null)
-
 
7426
        return false;
-
 
7427
      if (that instanceof getAllAgents_result)
-
 
7428
        return this.equals((getAllAgents_result)that);
-
 
7429
      return false;
-
 
7430
    }
-
 
7431
 
-
 
7432
    public boolean equals(getAllAgents_result that) {
-
 
7433
      if (that == null)
-
 
7434
        return false;
-
 
7435
 
-
 
7436
      boolean this_present_success = true && this.isSetSuccess();
-
 
7437
      boolean that_present_success = true && that.isSetSuccess();
-
 
7438
      if (this_present_success || that_present_success) {
-
 
7439
        if (!(this_present_success && that_present_success))
-
 
7440
          return false;
-
 
7441
        if (!this.success.equals(that.success))
-
 
7442
          return false;
-
 
7443
      }
-
 
7444
 
-
 
7445
      return true;
-
 
7446
    }
-
 
7447
 
-
 
7448
    @Override
-
 
7449
    public int hashCode() {
-
 
7450
      return 0;
-
 
7451
    }
-
 
7452
 
-
 
7453
    public int compareTo(getAllAgents_result other) {
-
 
7454
      if (!getClass().equals(other.getClass())) {
-
 
7455
        return getClass().getName().compareTo(other.getClass().getName());
-
 
7456
      }
-
 
7457
 
-
 
7458
      int lastComparison = 0;
-
 
7459
      getAllAgents_result typedOther = (getAllAgents_result)other;
-
 
7460
 
-
 
7461
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
7462
      if (lastComparison != 0) {
-
 
7463
        return lastComparison;
-
 
7464
      }
-
 
7465
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
7466
      if (lastComparison != 0) {
-
 
7467
        return lastComparison;
-
 
7468
      }
-
 
7469
      return 0;
-
 
7470
    }
-
 
7471
 
-
 
7472
    public void read(TProtocol iprot) throws TException {
-
 
7473
      TField field;
-
 
7474
      iprot.readStructBegin();
-
 
7475
      while (true)
-
 
7476
      {
-
 
7477
        field = iprot.readFieldBegin();
-
 
7478
        if (field.type == TType.STOP) { 
-
 
7479
          break;
-
 
7480
        }
-
 
7481
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7482
        if (fieldId == null) {
-
 
7483
          TProtocolUtil.skip(iprot, field.type);
-
 
7484
        } else {
-
 
7485
          switch (fieldId) {
-
 
7486
            case SUCCESS:
-
 
7487
              if (field.type == TType.LIST) {
-
 
7488
                {
-
 
7489
                  TList _list20 = iprot.readListBegin();
-
 
7490
                  this.success = new ArrayList<Agent>(_list20.size);
-
 
7491
                  for (int _i21 = 0; _i21 < _list20.size; ++_i21)
-
 
7492
                  {
-
 
7493
                    Agent _elem22;
-
 
7494
                    _elem22 = new Agent();
-
 
7495
                    _elem22.read(iprot);
-
 
7496
                    this.success.add(_elem22);
-
 
7497
                  }
-
 
7498
                  iprot.readListEnd();
-
 
7499
                }
-
 
7500
              } else { 
-
 
7501
                TProtocolUtil.skip(iprot, field.type);
-
 
7502
              }
-
 
7503
              break;
-
 
7504
          }
-
 
7505
          iprot.readFieldEnd();
-
 
7506
        }
-
 
7507
      }
-
 
7508
      iprot.readStructEnd();
-
 
7509
      validate();
-
 
7510
    }
-
 
7511
 
-
 
7512
    public void write(TProtocol oprot) throws TException {
-
 
7513
      oprot.writeStructBegin(STRUCT_DESC);
-
 
7514
 
-
 
7515
      if (this.isSetSuccess()) {
-
 
7516
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
7517
        {
-
 
7518
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
7519
          for (Agent _iter23 : this.success)
-
 
7520
          {
-
 
7521
            _iter23.write(oprot);
-
 
7522
          }
-
 
7523
          oprot.writeListEnd();
-
 
7524
        }
-
 
7525
        oprot.writeFieldEnd();
-
 
7526
      }
-
 
7527
      oprot.writeFieldStop();
-
 
7528
      oprot.writeStructEnd();
-
 
7529
    }
-
 
7530
 
-
 
7531
    @Override
-
 
7532
    public String toString() {
-
 
7533
      StringBuilder sb = new StringBuilder("getAllAgents_result(");
-
 
7534
      boolean first = true;
-
 
7535
 
-
 
7536
      sb.append("success:");
-
 
7537
      if (this.success == null) {
-
 
7538
        sb.append("null");
-
 
7539
      } else {
-
 
7540
        sb.append(this.success);
-
 
7541
      }
-
 
7542
      first = false;
-
 
7543
      sb.append(")");
-
 
7544
      return sb.toString();
-
 
7545
    }
-
 
7546
 
-
 
7547
    public void validate() throws TException {
-
 
7548
      // check for required fields
-
 
7549
    }
-
 
7550
 
-
 
7551
  }
-
 
7552
 
5631
  public static class getAgent_args implements TBase<getAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgent_args>   {
7553
  public static class getAgent_args implements TBase<getAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAgent_args>   {
5632
    private static final TStruct STRUCT_DESC = new TStruct("getAgent_args");
7554
    private static final TStruct STRUCT_DESC = new TStruct("getAgent_args");
5633
 
7555
 
5634
    private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);
7556
    private static final TField AGENT_ID_FIELD_DESC = new TField("agentId", TType.I64, (short)1);
5635
 
7557
 
Line 6733... Line 8655...
6733
      boolean first = true;
8655
      boolean first = true;
6734
 
8656
 
6735
      sb.append("success:");
8657
      sb.append("success:");
6736
      if (this.success == null) {
8658
      if (this.success == null) {
6737
        sb.append("null");
8659
        sb.append("null");
-
 
8660
      } else {
-
 
8661
        sb.append(this.success);
-
 
8662
      }
-
 
8663
      first = false;
-
 
8664
      sb.append(")");
-
 
8665
      return sb.toString();
-
 
8666
    }
-
 
8667
 
-
 
8668
    public void validate() throws TException {
-
 
8669
      // check for required fields
-
 
8670
    }
-
 
8671
 
-
 
8672
  }
-
 
8673
 
-
 
8674
  public static class updatePasswordForAgent_args implements TBase<updatePasswordForAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePasswordForAgent_args>   {
-
 
8675
    private static final TStruct STRUCT_DESC = new TStruct("updatePasswordForAgent_args");
-
 
8676
 
-
 
8677
    private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);
-
 
8678
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
-
 
8679
 
-
 
8680
    private String agentEmailId;
-
 
8681
    private String password;
-
 
8682
 
-
 
8683
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
8684
    public enum _Fields implements TFieldIdEnum {
-
 
8685
      AGENT_EMAIL_ID((short)1, "agentEmailId"),
-
 
8686
      PASSWORD((short)2, "password");
-
 
8687
 
-
 
8688
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
8689
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
8690
 
-
 
8691
      static {
-
 
8692
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
8693
          byId.put((int)field._thriftId, field);
-
 
8694
          byName.put(field.getFieldName(), field);
-
 
8695
        }
-
 
8696
      }
-
 
8697
 
-
 
8698
      /**
-
 
8699
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
8700
       */
-
 
8701
      public static _Fields findByThriftId(int fieldId) {
-
 
8702
        return byId.get(fieldId);
-
 
8703
      }
-
 
8704
 
-
 
8705
      /**
-
 
8706
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
8707
       * if it is not found.
-
 
8708
       */
-
 
8709
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
8710
        _Fields fields = findByThriftId(fieldId);
-
 
8711
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
8712
        return fields;
-
 
8713
      }
-
 
8714
 
-
 
8715
      /**
-
 
8716
       * Find the _Fields constant that matches name, or null if its not found.
-
 
8717
       */
-
 
8718
      public static _Fields findByName(String name) {
-
 
8719
        return byName.get(name);
-
 
8720
      }
-
 
8721
 
-
 
8722
      private final short _thriftId;
-
 
8723
      private final String _fieldName;
-
 
8724
 
-
 
8725
      _Fields(short thriftId, String fieldName) {
-
 
8726
        _thriftId = thriftId;
-
 
8727
        _fieldName = fieldName;
-
 
8728
      }
-
 
8729
 
-
 
8730
      public short getThriftFieldId() {
-
 
8731
        return _thriftId;
-
 
8732
      }
-
 
8733
 
-
 
8734
      public String getFieldName() {
-
 
8735
        return _fieldName;
-
 
8736
      }
-
 
8737
    }
-
 
8738
 
-
 
8739
    // isset id assignments
-
 
8740
 
-
 
8741
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
8742
      put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT, 
-
 
8743
          new FieldValueMetaData(TType.STRING)));
-
 
8744
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
-
 
8745
          new FieldValueMetaData(TType.STRING)));
-
 
8746
    }});
-
 
8747
 
-
 
8748
    static {
-
 
8749
      FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_args.class, metaDataMap);
-
 
8750
    }
-
 
8751
 
-
 
8752
    public updatePasswordForAgent_args() {
-
 
8753
    }
-
 
8754
 
-
 
8755
    public updatePasswordForAgent_args(
-
 
8756
      String agentEmailId,
-
 
8757
      String password)
-
 
8758
    {
-
 
8759
      this();
-
 
8760
      this.agentEmailId = agentEmailId;
-
 
8761
      this.password = password;
-
 
8762
    }
-
 
8763
 
-
 
8764
    /**
-
 
8765
     * Performs a deep copy on <i>other</i>.
-
 
8766
     */
-
 
8767
    public updatePasswordForAgent_args(updatePasswordForAgent_args other) {
-
 
8768
      if (other.isSetAgentEmailId()) {
-
 
8769
        this.agentEmailId = other.agentEmailId;
-
 
8770
      }
-
 
8771
      if (other.isSetPassword()) {
-
 
8772
        this.password = other.password;
-
 
8773
      }
-
 
8774
    }
-
 
8775
 
-
 
8776
    public updatePasswordForAgent_args deepCopy() {
-
 
8777
      return new updatePasswordForAgent_args(this);
-
 
8778
    }
-
 
8779
 
-
 
8780
    @Deprecated
-
 
8781
    public updatePasswordForAgent_args clone() {
-
 
8782
      return new updatePasswordForAgent_args(this);
-
 
8783
    }
-
 
8784
 
-
 
8785
    public String getAgentEmailId() {
-
 
8786
      return this.agentEmailId;
-
 
8787
    }
-
 
8788
 
-
 
8789
    public updatePasswordForAgent_args setAgentEmailId(String agentEmailId) {
-
 
8790
      this.agentEmailId = agentEmailId;
-
 
8791
      return this;
-
 
8792
    }
-
 
8793
 
-
 
8794
    public void unsetAgentEmailId() {
-
 
8795
      this.agentEmailId = null;
-
 
8796
    }
-
 
8797
 
-
 
8798
    /** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */
-
 
8799
    public boolean isSetAgentEmailId() {
-
 
8800
      return this.agentEmailId != null;
-
 
8801
    }
-
 
8802
 
-
 
8803
    public void setAgentEmailIdIsSet(boolean value) {
-
 
8804
      if (!value) {
-
 
8805
        this.agentEmailId = null;
-
 
8806
      }
-
 
8807
    }
-
 
8808
 
-
 
8809
    public String getPassword() {
-
 
8810
      return this.password;
-
 
8811
    }
-
 
8812
 
-
 
8813
    public updatePasswordForAgent_args setPassword(String password) {
-
 
8814
      this.password = password;
-
 
8815
      return this;
-
 
8816
    }
-
 
8817
 
-
 
8818
    public void unsetPassword() {
-
 
8819
      this.password = null;
-
 
8820
    }
-
 
8821
 
-
 
8822
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
-
 
8823
    public boolean isSetPassword() {
-
 
8824
      return this.password != null;
-
 
8825
    }
-
 
8826
 
-
 
8827
    public void setPasswordIsSet(boolean value) {
-
 
8828
      if (!value) {
-
 
8829
        this.password = null;
-
 
8830
      }
-
 
8831
    }
-
 
8832
 
-
 
8833
    public void setFieldValue(_Fields field, Object value) {
-
 
8834
      switch (field) {
-
 
8835
      case AGENT_EMAIL_ID:
-
 
8836
        if (value == null) {
-
 
8837
          unsetAgentEmailId();
-
 
8838
        } else {
-
 
8839
          setAgentEmailId((String)value);
-
 
8840
        }
-
 
8841
        break;
-
 
8842
 
-
 
8843
      case PASSWORD:
-
 
8844
        if (value == null) {
-
 
8845
          unsetPassword();
-
 
8846
        } else {
-
 
8847
          setPassword((String)value);
-
 
8848
        }
-
 
8849
        break;
-
 
8850
 
-
 
8851
      }
-
 
8852
    }
-
 
8853
 
-
 
8854
    public void setFieldValue(int fieldID, Object value) {
-
 
8855
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
8856
    }
-
 
8857
 
-
 
8858
    public Object getFieldValue(_Fields field) {
-
 
8859
      switch (field) {
-
 
8860
      case AGENT_EMAIL_ID:
-
 
8861
        return getAgentEmailId();
-
 
8862
 
-
 
8863
      case PASSWORD:
-
 
8864
        return getPassword();
-
 
8865
 
-
 
8866
      }
-
 
8867
      throw new IllegalStateException();
-
 
8868
    }
-
 
8869
 
-
 
8870
    public Object getFieldValue(int fieldId) {
-
 
8871
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
8872
    }
-
 
8873
 
-
 
8874
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
8875
    public boolean isSet(_Fields field) {
-
 
8876
      switch (field) {
-
 
8877
      case AGENT_EMAIL_ID:
-
 
8878
        return isSetAgentEmailId();
-
 
8879
      case PASSWORD:
-
 
8880
        return isSetPassword();
-
 
8881
      }
-
 
8882
      throw new IllegalStateException();
-
 
8883
    }
-
 
8884
 
-
 
8885
    public boolean isSet(int fieldID) {
-
 
8886
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
8887
    }
-
 
8888
 
-
 
8889
    @Override
-
 
8890
    public boolean equals(Object that) {
-
 
8891
      if (that == null)
-
 
8892
        return false;
-
 
8893
      if (that instanceof updatePasswordForAgent_args)
-
 
8894
        return this.equals((updatePasswordForAgent_args)that);
-
 
8895
      return false;
-
 
8896
    }
-
 
8897
 
-
 
8898
    public boolean equals(updatePasswordForAgent_args that) {
-
 
8899
      if (that == null)
-
 
8900
        return false;
-
 
8901
 
-
 
8902
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
-
 
8903
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
-
 
8904
      if (this_present_agentEmailId || that_present_agentEmailId) {
-
 
8905
        if (!(this_present_agentEmailId && that_present_agentEmailId))
-
 
8906
          return false;
-
 
8907
        if (!this.agentEmailId.equals(that.agentEmailId))
-
 
8908
          return false;
-
 
8909
      }
-
 
8910
 
-
 
8911
      boolean this_present_password = true && this.isSetPassword();
-
 
8912
      boolean that_present_password = true && that.isSetPassword();
-
 
8913
      if (this_present_password || that_present_password) {
-
 
8914
        if (!(this_present_password && that_present_password))
-
 
8915
          return false;
-
 
8916
        if (!this.password.equals(that.password))
-
 
8917
          return false;
-
 
8918
      }
-
 
8919
 
-
 
8920
      return true;
-
 
8921
    }
-
 
8922
 
-
 
8923
    @Override
-
 
8924
    public int hashCode() {
-
 
8925
      return 0;
-
 
8926
    }
-
 
8927
 
-
 
8928
    public int compareTo(updatePasswordForAgent_args other) {
-
 
8929
      if (!getClass().equals(other.getClass())) {
-
 
8930
        return getClass().getName().compareTo(other.getClass().getName());
-
 
8931
      }
-
 
8932
 
-
 
8933
      int lastComparison = 0;
-
 
8934
      updatePasswordForAgent_args typedOther = (updatePasswordForAgent_args)other;
-
 
8935
 
-
 
8936
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());
-
 
8937
      if (lastComparison != 0) {
-
 
8938
        return lastComparison;
-
 
8939
      }
-
 
8940
      lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);
-
 
8941
      if (lastComparison != 0) {
-
 
8942
        return lastComparison;
-
 
8943
      }
-
 
8944
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
-
 
8945
      if (lastComparison != 0) {
-
 
8946
        return lastComparison;
-
 
8947
      }
-
 
8948
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
-
 
8949
      if (lastComparison != 0) {
-
 
8950
        return lastComparison;
-
 
8951
      }
-
 
8952
      return 0;
-
 
8953
    }
-
 
8954
 
-
 
8955
    public void read(TProtocol iprot) throws TException {
-
 
8956
      TField field;
-
 
8957
      iprot.readStructBegin();
-
 
8958
      while (true)
-
 
8959
      {
-
 
8960
        field = iprot.readFieldBegin();
-
 
8961
        if (field.type == TType.STOP) { 
-
 
8962
          break;
-
 
8963
        }
-
 
8964
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
8965
        if (fieldId == null) {
-
 
8966
          TProtocolUtil.skip(iprot, field.type);
-
 
8967
        } else {
-
 
8968
          switch (fieldId) {
-
 
8969
            case AGENT_EMAIL_ID:
-
 
8970
              if (field.type == TType.STRING) {
-
 
8971
                this.agentEmailId = iprot.readString();
-
 
8972
              } else { 
-
 
8973
                TProtocolUtil.skip(iprot, field.type);
-
 
8974
              }
-
 
8975
              break;
-
 
8976
            case PASSWORD:
-
 
8977
              if (field.type == TType.STRING) {
-
 
8978
                this.password = iprot.readString();
-
 
8979
              } else { 
-
 
8980
                TProtocolUtil.skip(iprot, field.type);
-
 
8981
              }
-
 
8982
              break;
-
 
8983
          }
-
 
8984
          iprot.readFieldEnd();
-
 
8985
        }
-
 
8986
      }
-
 
8987
      iprot.readStructEnd();
-
 
8988
      validate();
-
 
8989
    }
-
 
8990
 
-
 
8991
    public void write(TProtocol oprot) throws TException {
-
 
8992
      validate();
-
 
8993
 
-
 
8994
      oprot.writeStructBegin(STRUCT_DESC);
-
 
8995
      if (this.agentEmailId != null) {
-
 
8996
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
-
 
8997
        oprot.writeString(this.agentEmailId);
-
 
8998
        oprot.writeFieldEnd();
-
 
8999
      }
-
 
9000
      if (this.password != null) {
-
 
9001
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
-
 
9002
        oprot.writeString(this.password);
-
 
9003
        oprot.writeFieldEnd();
-
 
9004
      }
-
 
9005
      oprot.writeFieldStop();
-
 
9006
      oprot.writeStructEnd();
-
 
9007
    }
-
 
9008
 
-
 
9009
    @Override
-
 
9010
    public String toString() {
-
 
9011
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_args(");
-
 
9012
      boolean first = true;
-
 
9013
 
-
 
9014
      sb.append("agentEmailId:");
-
 
9015
      if (this.agentEmailId == null) {
-
 
9016
        sb.append("null");
-
 
9017
      } else {
-
 
9018
        sb.append(this.agentEmailId);
-
 
9019
      }
-
 
9020
      first = false;
-
 
9021
      if (!first) sb.append(", ");
-
 
9022
      sb.append("password:");
-
 
9023
      if (this.password == null) {
-
 
9024
        sb.append("null");
-
 
9025
      } else {
-
 
9026
        sb.append(this.password);
-
 
9027
      }
-
 
9028
      first = false;
-
 
9029
      sb.append(")");
-
 
9030
      return sb.toString();
-
 
9031
    }
-
 
9032
 
-
 
9033
    public void validate() throws TException {
-
 
9034
      // check for required fields
-
 
9035
    }
-
 
9036
 
-
 
9037
  }
-
 
9038
 
-
 
9039
  public static class updatePasswordForAgent_result implements TBase<updatePasswordForAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<updatePasswordForAgent_result>   {
-
 
9040
    private static final TStruct STRUCT_DESC = new TStruct("updatePasswordForAgent_result");
-
 
9041
 
-
 
9042
 
-
 
9043
 
-
 
9044
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9045
    public enum _Fields implements TFieldIdEnum {
-
 
9046
;
-
 
9047
 
-
 
9048
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9049
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9050
 
-
 
9051
      static {
-
 
9052
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9053
          byId.put((int)field._thriftId, field);
-
 
9054
          byName.put(field.getFieldName(), field);
-
 
9055
        }
-
 
9056
      }
-
 
9057
 
-
 
9058
      /**
-
 
9059
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9060
       */
-
 
9061
      public static _Fields findByThriftId(int fieldId) {
-
 
9062
        return byId.get(fieldId);
-
 
9063
      }
-
 
9064
 
-
 
9065
      /**
-
 
9066
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9067
       * if it is not found.
-
 
9068
       */
-
 
9069
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9070
        _Fields fields = findByThriftId(fieldId);
-
 
9071
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9072
        return fields;
-
 
9073
      }
-
 
9074
 
-
 
9075
      /**
-
 
9076
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9077
       */
-
 
9078
      public static _Fields findByName(String name) {
-
 
9079
        return byName.get(name);
-
 
9080
      }
-
 
9081
 
-
 
9082
      private final short _thriftId;
-
 
9083
      private final String _fieldName;
-
 
9084
 
-
 
9085
      _Fields(short thriftId, String fieldName) {
-
 
9086
        _thriftId = thriftId;
-
 
9087
        _fieldName = fieldName;
-
 
9088
      }
-
 
9089
 
-
 
9090
      public short getThriftFieldId() {
-
 
9091
        return _thriftId;
-
 
9092
      }
-
 
9093
 
-
 
9094
      public String getFieldName() {
-
 
9095
        return _fieldName;
-
 
9096
      }
-
 
9097
    }
-
 
9098
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9099
    }});
-
 
9100
 
-
 
9101
    static {
-
 
9102
      FieldMetaData.addStructMetaDataMap(updatePasswordForAgent_result.class, metaDataMap);
-
 
9103
    }
-
 
9104
 
-
 
9105
    public updatePasswordForAgent_result() {
-
 
9106
    }
-
 
9107
 
-
 
9108
    /**
-
 
9109
     * Performs a deep copy on <i>other</i>.
-
 
9110
     */
-
 
9111
    public updatePasswordForAgent_result(updatePasswordForAgent_result other) {
-
 
9112
    }
-
 
9113
 
-
 
9114
    public updatePasswordForAgent_result deepCopy() {
-
 
9115
      return new updatePasswordForAgent_result(this);
-
 
9116
    }
-
 
9117
 
-
 
9118
    @Deprecated
-
 
9119
    public updatePasswordForAgent_result clone() {
-
 
9120
      return new updatePasswordForAgent_result(this);
-
 
9121
    }
-
 
9122
 
-
 
9123
    public void setFieldValue(_Fields field, Object value) {
-
 
9124
      switch (field) {
-
 
9125
      }
-
 
9126
    }
-
 
9127
 
-
 
9128
    public void setFieldValue(int fieldID, Object value) {
-
 
9129
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9130
    }
-
 
9131
 
-
 
9132
    public Object getFieldValue(_Fields field) {
-
 
9133
      switch (field) {
-
 
9134
      }
-
 
9135
      throw new IllegalStateException();
-
 
9136
    }
-
 
9137
 
-
 
9138
    public Object getFieldValue(int fieldId) {
-
 
9139
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9140
    }
-
 
9141
 
-
 
9142
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9143
    public boolean isSet(_Fields field) {
-
 
9144
      switch (field) {
-
 
9145
      }
-
 
9146
      throw new IllegalStateException();
-
 
9147
    }
-
 
9148
 
-
 
9149
    public boolean isSet(int fieldID) {
-
 
9150
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9151
    }
-
 
9152
 
-
 
9153
    @Override
-
 
9154
    public boolean equals(Object that) {
-
 
9155
      if (that == null)
-
 
9156
        return false;
-
 
9157
      if (that instanceof updatePasswordForAgent_result)
-
 
9158
        return this.equals((updatePasswordForAgent_result)that);
-
 
9159
      return false;
-
 
9160
    }
-
 
9161
 
-
 
9162
    public boolean equals(updatePasswordForAgent_result that) {
-
 
9163
      if (that == null)
-
 
9164
        return false;
-
 
9165
 
-
 
9166
      return true;
-
 
9167
    }
-
 
9168
 
-
 
9169
    @Override
-
 
9170
    public int hashCode() {
-
 
9171
      return 0;
-
 
9172
    }
-
 
9173
 
-
 
9174
    public int compareTo(updatePasswordForAgent_result other) {
-
 
9175
      if (!getClass().equals(other.getClass())) {
-
 
9176
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9177
      }
-
 
9178
 
-
 
9179
      int lastComparison = 0;
-
 
9180
      updatePasswordForAgent_result typedOther = (updatePasswordForAgent_result)other;
-
 
9181
 
-
 
9182
      return 0;
-
 
9183
    }
-
 
9184
 
-
 
9185
    public void read(TProtocol iprot) throws TException {
-
 
9186
      TField field;
-
 
9187
      iprot.readStructBegin();
-
 
9188
      while (true)
-
 
9189
      {
-
 
9190
        field = iprot.readFieldBegin();
-
 
9191
        if (field.type == TType.STOP) { 
-
 
9192
          break;
-
 
9193
        }
-
 
9194
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9195
        if (fieldId == null) {
-
 
9196
          TProtocolUtil.skip(iprot, field.type);
-
 
9197
        } else {
-
 
9198
          switch (fieldId) {
-
 
9199
          }
-
 
9200
          iprot.readFieldEnd();
-
 
9201
        }
-
 
9202
      }
-
 
9203
      iprot.readStructEnd();
-
 
9204
      validate();
-
 
9205
    }
-
 
9206
 
-
 
9207
    public void write(TProtocol oprot) throws TException {
-
 
9208
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9209
 
-
 
9210
      oprot.writeFieldStop();
-
 
9211
      oprot.writeStructEnd();
-
 
9212
    }
-
 
9213
 
-
 
9214
    @Override
-
 
9215
    public String toString() {
-
 
9216
      StringBuilder sb = new StringBuilder("updatePasswordForAgent_result(");
-
 
9217
      boolean first = true;
-
 
9218
 
-
 
9219
      sb.append(")");
-
 
9220
      return sb.toString();
-
 
9221
    }
-
 
9222
 
-
 
9223
    public void validate() throws TException {
-
 
9224
      // check for required fields
-
 
9225
    }
-
 
9226
 
-
 
9227
  }
-
 
9228
 
-
 
9229
  public static class getRoleNamesForAgent_args implements TBase<getRoleNamesForAgent_args._Fields>, java.io.Serializable, Cloneable, Comparable<getRoleNamesForAgent_args>   {
-
 
9230
    private static final TStruct STRUCT_DESC = new TStruct("getRoleNamesForAgent_args");
-
 
9231
 
-
 
9232
    private static final TField AGENT_EMAIL_ID_FIELD_DESC = new TField("agentEmailId", TType.STRING, (short)1);
-
 
9233
 
-
 
9234
    private String agentEmailId;
-
 
9235
 
-
 
9236
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9237
    public enum _Fields implements TFieldIdEnum {
-
 
9238
      AGENT_EMAIL_ID((short)1, "agentEmailId");
-
 
9239
 
-
 
9240
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9241
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9242
 
-
 
9243
      static {
-
 
9244
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9245
          byId.put((int)field._thriftId, field);
-
 
9246
          byName.put(field.getFieldName(), field);
-
 
9247
        }
-
 
9248
      }
-
 
9249
 
-
 
9250
      /**
-
 
9251
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9252
       */
-
 
9253
      public static _Fields findByThriftId(int fieldId) {
-
 
9254
        return byId.get(fieldId);
-
 
9255
      }
-
 
9256
 
-
 
9257
      /**
-
 
9258
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9259
       * if it is not found.
-
 
9260
       */
-
 
9261
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9262
        _Fields fields = findByThriftId(fieldId);
-
 
9263
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9264
        return fields;
-
 
9265
      }
-
 
9266
 
-
 
9267
      /**
-
 
9268
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9269
       */
-
 
9270
      public static _Fields findByName(String name) {
-
 
9271
        return byName.get(name);
-
 
9272
      }
-
 
9273
 
-
 
9274
      private final short _thriftId;
-
 
9275
      private final String _fieldName;
-
 
9276
 
-
 
9277
      _Fields(short thriftId, String fieldName) {
-
 
9278
        _thriftId = thriftId;
-
 
9279
        _fieldName = fieldName;
-
 
9280
      }
-
 
9281
 
-
 
9282
      public short getThriftFieldId() {
-
 
9283
        return _thriftId;
-
 
9284
      }
-
 
9285
 
-
 
9286
      public String getFieldName() {
-
 
9287
        return _fieldName;
-
 
9288
      }
-
 
9289
    }
-
 
9290
 
-
 
9291
    // isset id assignments
-
 
9292
 
-
 
9293
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9294
      put(_Fields.AGENT_EMAIL_ID, new FieldMetaData("agentEmailId", TFieldRequirementType.DEFAULT, 
-
 
9295
          new FieldValueMetaData(TType.STRING)));
-
 
9296
    }});
-
 
9297
 
-
 
9298
    static {
-
 
9299
      FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_args.class, metaDataMap);
-
 
9300
    }
-
 
9301
 
-
 
9302
    public getRoleNamesForAgent_args() {
-
 
9303
    }
-
 
9304
 
-
 
9305
    public getRoleNamesForAgent_args(
-
 
9306
      String agentEmailId)
-
 
9307
    {
-
 
9308
      this();
-
 
9309
      this.agentEmailId = agentEmailId;
-
 
9310
    }
-
 
9311
 
-
 
9312
    /**
-
 
9313
     * Performs a deep copy on <i>other</i>.
-
 
9314
     */
-
 
9315
    public getRoleNamesForAgent_args(getRoleNamesForAgent_args other) {
-
 
9316
      if (other.isSetAgentEmailId()) {
-
 
9317
        this.agentEmailId = other.agentEmailId;
-
 
9318
      }
-
 
9319
    }
-
 
9320
 
-
 
9321
    public getRoleNamesForAgent_args deepCopy() {
-
 
9322
      return new getRoleNamesForAgent_args(this);
-
 
9323
    }
-
 
9324
 
-
 
9325
    @Deprecated
-
 
9326
    public getRoleNamesForAgent_args clone() {
-
 
9327
      return new getRoleNamesForAgent_args(this);
-
 
9328
    }
-
 
9329
 
-
 
9330
    public String getAgentEmailId() {
-
 
9331
      return this.agentEmailId;
-
 
9332
    }
-
 
9333
 
-
 
9334
    public getRoleNamesForAgent_args setAgentEmailId(String agentEmailId) {
-
 
9335
      this.agentEmailId = agentEmailId;
-
 
9336
      return this;
-
 
9337
    }
-
 
9338
 
-
 
9339
    public void unsetAgentEmailId() {
-
 
9340
      this.agentEmailId = null;
-
 
9341
    }
-
 
9342
 
-
 
9343
    /** Returns true if field agentEmailId is set (has been asigned a value) and false otherwise */
-
 
9344
    public boolean isSetAgentEmailId() {
-
 
9345
      return this.agentEmailId != null;
-
 
9346
    }
-
 
9347
 
-
 
9348
    public void setAgentEmailIdIsSet(boolean value) {
-
 
9349
      if (!value) {
-
 
9350
        this.agentEmailId = null;
-
 
9351
      }
-
 
9352
    }
-
 
9353
 
-
 
9354
    public void setFieldValue(_Fields field, Object value) {
-
 
9355
      switch (field) {
-
 
9356
      case AGENT_EMAIL_ID:
-
 
9357
        if (value == null) {
-
 
9358
          unsetAgentEmailId();
-
 
9359
        } else {
-
 
9360
          setAgentEmailId((String)value);
-
 
9361
        }
-
 
9362
        break;
-
 
9363
 
-
 
9364
      }
-
 
9365
    }
-
 
9366
 
-
 
9367
    public void setFieldValue(int fieldID, Object value) {
-
 
9368
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9369
    }
-
 
9370
 
-
 
9371
    public Object getFieldValue(_Fields field) {
-
 
9372
      switch (field) {
-
 
9373
      case AGENT_EMAIL_ID:
-
 
9374
        return getAgentEmailId();
-
 
9375
 
-
 
9376
      }
-
 
9377
      throw new IllegalStateException();
-
 
9378
    }
-
 
9379
 
-
 
9380
    public Object getFieldValue(int fieldId) {
-
 
9381
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9382
    }
-
 
9383
 
-
 
9384
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9385
    public boolean isSet(_Fields field) {
-
 
9386
      switch (field) {
-
 
9387
      case AGENT_EMAIL_ID:
-
 
9388
        return isSetAgentEmailId();
-
 
9389
      }
-
 
9390
      throw new IllegalStateException();
-
 
9391
    }
-
 
9392
 
-
 
9393
    public boolean isSet(int fieldID) {
-
 
9394
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9395
    }
-
 
9396
 
-
 
9397
    @Override
-
 
9398
    public boolean equals(Object that) {
-
 
9399
      if (that == null)
-
 
9400
        return false;
-
 
9401
      if (that instanceof getRoleNamesForAgent_args)
-
 
9402
        return this.equals((getRoleNamesForAgent_args)that);
-
 
9403
      return false;
-
 
9404
    }
-
 
9405
 
-
 
9406
    public boolean equals(getRoleNamesForAgent_args that) {
-
 
9407
      if (that == null)
-
 
9408
        return false;
-
 
9409
 
-
 
9410
      boolean this_present_agentEmailId = true && this.isSetAgentEmailId();
-
 
9411
      boolean that_present_agentEmailId = true && that.isSetAgentEmailId();
-
 
9412
      if (this_present_agentEmailId || that_present_agentEmailId) {
-
 
9413
        if (!(this_present_agentEmailId && that_present_agentEmailId))
-
 
9414
          return false;
-
 
9415
        if (!this.agentEmailId.equals(that.agentEmailId))
-
 
9416
          return false;
-
 
9417
      }
-
 
9418
 
-
 
9419
      return true;
-
 
9420
    }
-
 
9421
 
-
 
9422
    @Override
-
 
9423
    public int hashCode() {
-
 
9424
      return 0;
-
 
9425
    }
-
 
9426
 
-
 
9427
    public int compareTo(getRoleNamesForAgent_args other) {
-
 
9428
      if (!getClass().equals(other.getClass())) {
-
 
9429
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9430
      }
-
 
9431
 
-
 
9432
      int lastComparison = 0;
-
 
9433
      getRoleNamesForAgent_args typedOther = (getRoleNamesForAgent_args)other;
-
 
9434
 
-
 
9435
      lastComparison = Boolean.valueOf(isSetAgentEmailId()).compareTo(isSetAgentEmailId());
-
 
9436
      if (lastComparison != 0) {
-
 
9437
        return lastComparison;
-
 
9438
      }
-
 
9439
      lastComparison = TBaseHelper.compareTo(agentEmailId, typedOther.agentEmailId);
-
 
9440
      if (lastComparison != 0) {
-
 
9441
        return lastComparison;
-
 
9442
      }
-
 
9443
      return 0;
-
 
9444
    }
-
 
9445
 
-
 
9446
    public void read(TProtocol iprot) throws TException {
-
 
9447
      TField field;
-
 
9448
      iprot.readStructBegin();
-
 
9449
      while (true)
-
 
9450
      {
-
 
9451
        field = iprot.readFieldBegin();
-
 
9452
        if (field.type == TType.STOP) { 
-
 
9453
          break;
-
 
9454
        }
-
 
9455
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9456
        if (fieldId == null) {
-
 
9457
          TProtocolUtil.skip(iprot, field.type);
-
 
9458
        } else {
-
 
9459
          switch (fieldId) {
-
 
9460
            case AGENT_EMAIL_ID:
-
 
9461
              if (field.type == TType.STRING) {
-
 
9462
                this.agentEmailId = iprot.readString();
-
 
9463
              } else { 
-
 
9464
                TProtocolUtil.skip(iprot, field.type);
-
 
9465
              }
-
 
9466
              break;
-
 
9467
          }
-
 
9468
          iprot.readFieldEnd();
-
 
9469
        }
-
 
9470
      }
-
 
9471
      iprot.readStructEnd();
-
 
9472
      validate();
-
 
9473
    }
-
 
9474
 
-
 
9475
    public void write(TProtocol oprot) throws TException {
-
 
9476
      validate();
-
 
9477
 
-
 
9478
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9479
      if (this.agentEmailId != null) {
-
 
9480
        oprot.writeFieldBegin(AGENT_EMAIL_ID_FIELD_DESC);
-
 
9481
        oprot.writeString(this.agentEmailId);
-
 
9482
        oprot.writeFieldEnd();
-
 
9483
      }
-
 
9484
      oprot.writeFieldStop();
-
 
9485
      oprot.writeStructEnd();
-
 
9486
    }
-
 
9487
 
-
 
9488
    @Override
-
 
9489
    public String toString() {
-
 
9490
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_args(");
-
 
9491
      boolean first = true;
-
 
9492
 
-
 
9493
      sb.append("agentEmailId:");
-
 
9494
      if (this.agentEmailId == null) {
-
 
9495
        sb.append("null");
-
 
9496
      } else {
-
 
9497
        sb.append(this.agentEmailId);
-
 
9498
      }
-
 
9499
      first = false;
-
 
9500
      sb.append(")");
-
 
9501
      return sb.toString();
-
 
9502
    }
-
 
9503
 
-
 
9504
    public void validate() throws TException {
-
 
9505
      // check for required fields
-
 
9506
    }
-
 
9507
 
-
 
9508
  }
-
 
9509
 
-
 
9510
  public static class getRoleNamesForAgent_result implements TBase<getRoleNamesForAgent_result._Fields>, java.io.Serializable, Cloneable, Comparable<getRoleNamesForAgent_result>   {
-
 
9511
    private static final TStruct STRUCT_DESC = new TStruct("getRoleNamesForAgent_result");
-
 
9512
 
-
 
9513
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
9514
 
-
 
9515
    private List<String> success;
-
 
9516
 
-
 
9517
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9518
    public enum _Fields implements TFieldIdEnum {
-
 
9519
      SUCCESS((short)0, "success");
-
 
9520
 
-
 
9521
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9522
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9523
 
-
 
9524
      static {
-
 
9525
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9526
          byId.put((int)field._thriftId, field);
-
 
9527
          byName.put(field.getFieldName(), field);
-
 
9528
        }
-
 
9529
      }
-
 
9530
 
-
 
9531
      /**
-
 
9532
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9533
       */
-
 
9534
      public static _Fields findByThriftId(int fieldId) {
-
 
9535
        return byId.get(fieldId);
-
 
9536
      }
-
 
9537
 
-
 
9538
      /**
-
 
9539
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9540
       * if it is not found.
-
 
9541
       */
-
 
9542
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9543
        _Fields fields = findByThriftId(fieldId);
-
 
9544
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9545
        return fields;
-
 
9546
      }
-
 
9547
 
-
 
9548
      /**
-
 
9549
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9550
       */
-
 
9551
      public static _Fields findByName(String name) {
-
 
9552
        return byName.get(name);
-
 
9553
      }
-
 
9554
 
-
 
9555
      private final short _thriftId;
-
 
9556
      private final String _fieldName;
-
 
9557
 
-
 
9558
      _Fields(short thriftId, String fieldName) {
-
 
9559
        _thriftId = thriftId;
-
 
9560
        _fieldName = fieldName;
-
 
9561
      }
-
 
9562
 
-
 
9563
      public short getThriftFieldId() {
-
 
9564
        return _thriftId;
-
 
9565
      }
-
 
9566
 
-
 
9567
      public String getFieldName() {
-
 
9568
        return _fieldName;
-
 
9569
      }
-
 
9570
    }
-
 
9571
 
-
 
9572
    // isset id assignments
-
 
9573
 
-
 
9574
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9575
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
9576
          new ListMetaData(TType.LIST, 
-
 
9577
              new FieldValueMetaData(TType.STRING))));
-
 
9578
    }});
-
 
9579
 
-
 
9580
    static {
-
 
9581
      FieldMetaData.addStructMetaDataMap(getRoleNamesForAgent_result.class, metaDataMap);
-
 
9582
    }
-
 
9583
 
-
 
9584
    public getRoleNamesForAgent_result() {
-
 
9585
    }
-
 
9586
 
-
 
9587
    public getRoleNamesForAgent_result(
-
 
9588
      List<String> success)
-
 
9589
    {
-
 
9590
      this();
-
 
9591
      this.success = success;
-
 
9592
    }
-
 
9593
 
-
 
9594
    /**
-
 
9595
     * Performs a deep copy on <i>other</i>.
-
 
9596
     */
-
 
9597
    public getRoleNamesForAgent_result(getRoleNamesForAgent_result other) {
-
 
9598
      if (other.isSetSuccess()) {
-
 
9599
        List<String> __this__success = new ArrayList<String>();
-
 
9600
        for (String other_element : other.success) {
-
 
9601
          __this__success.add(other_element);
-
 
9602
        }
-
 
9603
        this.success = __this__success;
-
 
9604
      }
-
 
9605
    }
-
 
9606
 
-
 
9607
    public getRoleNamesForAgent_result deepCopy() {
-
 
9608
      return new getRoleNamesForAgent_result(this);
-
 
9609
    }
-
 
9610
 
-
 
9611
    @Deprecated
-
 
9612
    public getRoleNamesForAgent_result clone() {
-
 
9613
      return new getRoleNamesForAgent_result(this);
-
 
9614
    }
-
 
9615
 
-
 
9616
    public int getSuccessSize() {
-
 
9617
      return (this.success == null) ? 0 : this.success.size();
-
 
9618
    }
-
 
9619
 
-
 
9620
    public java.util.Iterator<String> getSuccessIterator() {
-
 
9621
      return (this.success == null) ? null : this.success.iterator();
-
 
9622
    }
-
 
9623
 
-
 
9624
    public void addToSuccess(String elem) {
-
 
9625
      if (this.success == null) {
-
 
9626
        this.success = new ArrayList<String>();
-
 
9627
      }
-
 
9628
      this.success.add(elem);
-
 
9629
    }
-
 
9630
 
-
 
9631
    public List<String> getSuccess() {
-
 
9632
      return this.success;
-
 
9633
    }
-
 
9634
 
-
 
9635
    public getRoleNamesForAgent_result setSuccess(List<String> success) {
-
 
9636
      this.success = success;
-
 
9637
      return this;
-
 
9638
    }
-
 
9639
 
-
 
9640
    public void unsetSuccess() {
-
 
9641
      this.success = null;
-
 
9642
    }
-
 
9643
 
-
 
9644
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
9645
    public boolean isSetSuccess() {
-
 
9646
      return this.success != null;
-
 
9647
    }
-
 
9648
 
-
 
9649
    public void setSuccessIsSet(boolean value) {
-
 
9650
      if (!value) {
-
 
9651
        this.success = null;
-
 
9652
      }
-
 
9653
    }
-
 
9654
 
-
 
9655
    public void setFieldValue(_Fields field, Object value) {
-
 
9656
      switch (field) {
-
 
9657
      case SUCCESS:
-
 
9658
        if (value == null) {
-
 
9659
          unsetSuccess();
-
 
9660
        } else {
-
 
9661
          setSuccess((List<String>)value);
-
 
9662
        }
-
 
9663
        break;
-
 
9664
 
-
 
9665
      }
-
 
9666
    }
-
 
9667
 
-
 
9668
    public void setFieldValue(int fieldID, Object value) {
-
 
9669
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9670
    }
-
 
9671
 
-
 
9672
    public Object getFieldValue(_Fields field) {
-
 
9673
      switch (field) {
-
 
9674
      case SUCCESS:
-
 
9675
        return getSuccess();
-
 
9676
 
-
 
9677
      }
-
 
9678
      throw new IllegalStateException();
-
 
9679
    }
-
 
9680
 
-
 
9681
    public Object getFieldValue(int fieldId) {
-
 
9682
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9683
    }
-
 
9684
 
-
 
9685
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9686
    public boolean isSet(_Fields field) {
-
 
9687
      switch (field) {
-
 
9688
      case SUCCESS:
-
 
9689
        return isSetSuccess();
-
 
9690
      }
-
 
9691
      throw new IllegalStateException();
-
 
9692
    }
-
 
9693
 
-
 
9694
    public boolean isSet(int fieldID) {
-
 
9695
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9696
    }
-
 
9697
 
-
 
9698
    @Override
-
 
9699
    public boolean equals(Object that) {
-
 
9700
      if (that == null)
-
 
9701
        return false;
-
 
9702
      if (that instanceof getRoleNamesForAgent_result)
-
 
9703
        return this.equals((getRoleNamesForAgent_result)that);
-
 
9704
      return false;
-
 
9705
    }
-
 
9706
 
-
 
9707
    public boolean equals(getRoleNamesForAgent_result that) {
-
 
9708
      if (that == null)
-
 
9709
        return false;
-
 
9710
 
-
 
9711
      boolean this_present_success = true && this.isSetSuccess();
-
 
9712
      boolean that_present_success = true && that.isSetSuccess();
-
 
9713
      if (this_present_success || that_present_success) {
-
 
9714
        if (!(this_present_success && that_present_success))
-
 
9715
          return false;
-
 
9716
        if (!this.success.equals(that.success))
-
 
9717
          return false;
-
 
9718
      }
-
 
9719
 
-
 
9720
      return true;
-
 
9721
    }
-
 
9722
 
-
 
9723
    @Override
-
 
9724
    public int hashCode() {
-
 
9725
      return 0;
-
 
9726
    }
-
 
9727
 
-
 
9728
    public int compareTo(getRoleNamesForAgent_result other) {
-
 
9729
      if (!getClass().equals(other.getClass())) {
-
 
9730
        return getClass().getName().compareTo(other.getClass().getName());
-
 
9731
      }
-
 
9732
 
-
 
9733
      int lastComparison = 0;
-
 
9734
      getRoleNamesForAgent_result typedOther = (getRoleNamesForAgent_result)other;
-
 
9735
 
-
 
9736
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
9737
      if (lastComparison != 0) {
-
 
9738
        return lastComparison;
-
 
9739
      }
-
 
9740
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
9741
      if (lastComparison != 0) {
-
 
9742
        return lastComparison;
-
 
9743
      }
-
 
9744
      return 0;
-
 
9745
    }
-
 
9746
 
-
 
9747
    public void read(TProtocol iprot) throws TException {
-
 
9748
      TField field;
-
 
9749
      iprot.readStructBegin();
-
 
9750
      while (true)
-
 
9751
      {
-
 
9752
        field = iprot.readFieldBegin();
-
 
9753
        if (field.type == TType.STOP) { 
-
 
9754
          break;
-
 
9755
        }
-
 
9756
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
9757
        if (fieldId == null) {
-
 
9758
          TProtocolUtil.skip(iprot, field.type);
-
 
9759
        } else {
-
 
9760
          switch (fieldId) {
-
 
9761
            case SUCCESS:
-
 
9762
              if (field.type == TType.LIST) {
-
 
9763
                {
-
 
9764
                  TList _list24 = iprot.readListBegin();
-
 
9765
                  this.success = new ArrayList<String>(_list24.size);
-
 
9766
                  for (int _i25 = 0; _i25 < _list24.size; ++_i25)
-
 
9767
                  {
-
 
9768
                    String _elem26;
-
 
9769
                    _elem26 = iprot.readString();
-
 
9770
                    this.success.add(_elem26);
-
 
9771
                  }
-
 
9772
                  iprot.readListEnd();
-
 
9773
                }
-
 
9774
              } else { 
-
 
9775
                TProtocolUtil.skip(iprot, field.type);
-
 
9776
              }
-
 
9777
              break;
-
 
9778
          }
-
 
9779
          iprot.readFieldEnd();
-
 
9780
        }
-
 
9781
      }
-
 
9782
      iprot.readStructEnd();
-
 
9783
      validate();
-
 
9784
    }
-
 
9785
 
-
 
9786
    public void write(TProtocol oprot) throws TException {
-
 
9787
      oprot.writeStructBegin(STRUCT_DESC);
-
 
9788
 
-
 
9789
      if (this.isSetSuccess()) {
-
 
9790
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
9791
        {
-
 
9792
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
-
 
9793
          for (String _iter27 : this.success)
-
 
9794
          {
-
 
9795
            oprot.writeString(_iter27);
-
 
9796
          }
-
 
9797
          oprot.writeListEnd();
-
 
9798
        }
-
 
9799
        oprot.writeFieldEnd();
-
 
9800
      }
-
 
9801
      oprot.writeFieldStop();
-
 
9802
      oprot.writeStructEnd();
-
 
9803
    }
-
 
9804
 
-
 
9805
    @Override
-
 
9806
    public String toString() {
-
 
9807
      StringBuilder sb = new StringBuilder("getRoleNamesForAgent_result(");
-
 
9808
      boolean first = true;
-
 
9809
 
-
 
9810
      sb.append("success:");
-
 
9811
      if (this.success == null) {
-
 
9812
        sb.append("null");
-
 
9813
      } else {
-
 
9814
        sb.append(this.success);
-
 
9815
      }
-
 
9816
      first = false;
-
 
9817
      sb.append(")");
-
 
9818
      return sb.toString();
-
 
9819
    }
-
 
9820
 
-
 
9821
    public void validate() throws TException {
-
 
9822
      // check for required fields
-
 
9823
    }
-
 
9824
 
-
 
9825
  }
-
 
9826
 
-
 
9827
  public static class getPermissionsForRoleName_args implements TBase<getPermissionsForRoleName_args._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionsForRoleName_args>   {
-
 
9828
    private static final TStruct STRUCT_DESC = new TStruct("getPermissionsForRoleName_args");
-
 
9829
 
-
 
9830
    private static final TField ROLE_NAME_FIELD_DESC = new TField("roleName", TType.STRING, (short)1);
-
 
9831
 
-
 
9832
    private String roleName;
-
 
9833
 
-
 
9834
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
9835
    public enum _Fields implements TFieldIdEnum {
-
 
9836
      ROLE_NAME((short)1, "roleName");
-
 
9837
 
-
 
9838
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
9839
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
9840
 
-
 
9841
      static {
-
 
9842
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
9843
          byId.put((int)field._thriftId, field);
-
 
9844
          byName.put(field.getFieldName(), field);
-
 
9845
        }
-
 
9846
      }
-
 
9847
 
-
 
9848
      /**
-
 
9849
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
9850
       */
-
 
9851
      public static _Fields findByThriftId(int fieldId) {
-
 
9852
        return byId.get(fieldId);
-
 
9853
      }
-
 
9854
 
-
 
9855
      /**
-
 
9856
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
9857
       * if it is not found.
-
 
9858
       */
-
 
9859
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
9860
        _Fields fields = findByThriftId(fieldId);
-
 
9861
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
9862
        return fields;
-
 
9863
      }
-
 
9864
 
-
 
9865
      /**
-
 
9866
       * Find the _Fields constant that matches name, or null if its not found.
-
 
9867
       */
-
 
9868
      public static _Fields findByName(String name) {
-
 
9869
        return byName.get(name);
-
 
9870
      }
-
 
9871
 
-
 
9872
      private final short _thriftId;
-
 
9873
      private final String _fieldName;
-
 
9874
 
-
 
9875
      _Fields(short thriftId, String fieldName) {
-
 
9876
        _thriftId = thriftId;
-
 
9877
        _fieldName = fieldName;
-
 
9878
      }
-
 
9879
 
-
 
9880
      public short getThriftFieldId() {
-
 
9881
        return _thriftId;
-
 
9882
      }
-
 
9883
 
-
 
9884
      public String getFieldName() {
-
 
9885
        return _fieldName;
-
 
9886
      }
-
 
9887
    }
-
 
9888
 
-
 
9889
    // isset id assignments
-
 
9890
 
-
 
9891
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
9892
      put(_Fields.ROLE_NAME, new FieldMetaData("roleName", TFieldRequirementType.DEFAULT, 
-
 
9893
          new FieldValueMetaData(TType.STRING)));
-
 
9894
    }});
-
 
9895
 
-
 
9896
    static {
-
 
9897
      FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_args.class, metaDataMap);
-
 
9898
    }
-
 
9899
 
-
 
9900
    public getPermissionsForRoleName_args() {
-
 
9901
    }
-
 
9902
 
-
 
9903
    public getPermissionsForRoleName_args(
-
 
9904
      String roleName)
-
 
9905
    {
-
 
9906
      this();
-
 
9907
      this.roleName = roleName;
-
 
9908
    }
-
 
9909
 
-
 
9910
    /**
-
 
9911
     * Performs a deep copy on <i>other</i>.
-
 
9912
     */
-
 
9913
    public getPermissionsForRoleName_args(getPermissionsForRoleName_args other) {
-
 
9914
      if (other.isSetRoleName()) {
-
 
9915
        this.roleName = other.roleName;
-
 
9916
      }
-
 
9917
    }
-
 
9918
 
-
 
9919
    public getPermissionsForRoleName_args deepCopy() {
-
 
9920
      return new getPermissionsForRoleName_args(this);
-
 
9921
    }
-
 
9922
 
-
 
9923
    @Deprecated
-
 
9924
    public getPermissionsForRoleName_args clone() {
-
 
9925
      return new getPermissionsForRoleName_args(this);
-
 
9926
    }
-
 
9927
 
-
 
9928
    public String getRoleName() {
-
 
9929
      return this.roleName;
-
 
9930
    }
-
 
9931
 
-
 
9932
    public getPermissionsForRoleName_args setRoleName(String roleName) {
-
 
9933
      this.roleName = roleName;
-
 
9934
      return this;
-
 
9935
    }
-
 
9936
 
-
 
9937
    public void unsetRoleName() {
-
 
9938
      this.roleName = null;
-
 
9939
    }
-
 
9940
 
-
 
9941
    /** Returns true if field roleName is set (has been asigned a value) and false otherwise */
-
 
9942
    public boolean isSetRoleName() {
-
 
9943
      return this.roleName != null;
-
 
9944
    }
-
 
9945
 
-
 
9946
    public void setRoleNameIsSet(boolean value) {
-
 
9947
      if (!value) {
-
 
9948
        this.roleName = null;
-
 
9949
      }
-
 
9950
    }
-
 
9951
 
-
 
9952
    public void setFieldValue(_Fields field, Object value) {
-
 
9953
      switch (field) {
-
 
9954
      case ROLE_NAME:
-
 
9955
        if (value == null) {
-
 
9956
          unsetRoleName();
-
 
9957
        } else {
-
 
9958
          setRoleName((String)value);
-
 
9959
        }
-
 
9960
        break;
-
 
9961
 
-
 
9962
      }
-
 
9963
    }
-
 
9964
 
-
 
9965
    public void setFieldValue(int fieldID, Object value) {
-
 
9966
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
9967
    }
-
 
9968
 
-
 
9969
    public Object getFieldValue(_Fields field) {
-
 
9970
      switch (field) {
-
 
9971
      case ROLE_NAME:
-
 
9972
        return getRoleName();
-
 
9973
 
-
 
9974
      }
-
 
9975
      throw new IllegalStateException();
-
 
9976
    }
-
 
9977
 
-
 
9978
    public Object getFieldValue(int fieldId) {
-
 
9979
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
9980
    }
-
 
9981
 
-
 
9982
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
9983
    public boolean isSet(_Fields field) {
-
 
9984
      switch (field) {
-
 
9985
      case ROLE_NAME:
-
 
9986
        return isSetRoleName();
-
 
9987
      }
-
 
9988
      throw new IllegalStateException();
-
 
9989
    }
-
 
9990
 
-
 
9991
    public boolean isSet(int fieldID) {
-
 
9992
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
9993
    }
-
 
9994
 
-
 
9995
    @Override
-
 
9996
    public boolean equals(Object that) {
-
 
9997
      if (that == null)
-
 
9998
        return false;
-
 
9999
      if (that instanceof getPermissionsForRoleName_args)
-
 
10000
        return this.equals((getPermissionsForRoleName_args)that);
-
 
10001
      return false;
-
 
10002
    }
-
 
10003
 
-
 
10004
    public boolean equals(getPermissionsForRoleName_args that) {
-
 
10005
      if (that == null)
-
 
10006
        return false;
-
 
10007
 
-
 
10008
      boolean this_present_roleName = true && this.isSetRoleName();
-
 
10009
      boolean that_present_roleName = true && that.isSetRoleName();
-
 
10010
      if (this_present_roleName || that_present_roleName) {
-
 
10011
        if (!(this_present_roleName && that_present_roleName))
-
 
10012
          return false;
-
 
10013
        if (!this.roleName.equals(that.roleName))
-
 
10014
          return false;
-
 
10015
      }
-
 
10016
 
-
 
10017
      return true;
-
 
10018
    }
-
 
10019
 
-
 
10020
    @Override
-
 
10021
    public int hashCode() {
-
 
10022
      return 0;
-
 
10023
    }
-
 
10024
 
-
 
10025
    public int compareTo(getPermissionsForRoleName_args other) {
-
 
10026
      if (!getClass().equals(other.getClass())) {
-
 
10027
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10028
      }
-
 
10029
 
-
 
10030
      int lastComparison = 0;
-
 
10031
      getPermissionsForRoleName_args typedOther = (getPermissionsForRoleName_args)other;
-
 
10032
 
-
 
10033
      lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(isSetRoleName());
-
 
10034
      if (lastComparison != 0) {
-
 
10035
        return lastComparison;
-
 
10036
      }
-
 
10037
      lastComparison = TBaseHelper.compareTo(roleName, typedOther.roleName);
-
 
10038
      if (lastComparison != 0) {
-
 
10039
        return lastComparison;
-
 
10040
      }
-
 
10041
      return 0;
-
 
10042
    }
-
 
10043
 
-
 
10044
    public void read(TProtocol iprot) throws TException {
-
 
10045
      TField field;
-
 
10046
      iprot.readStructBegin();
-
 
10047
      while (true)
-
 
10048
      {
-
 
10049
        field = iprot.readFieldBegin();
-
 
10050
        if (field.type == TType.STOP) { 
-
 
10051
          break;
-
 
10052
        }
-
 
10053
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10054
        if (fieldId == null) {
-
 
10055
          TProtocolUtil.skip(iprot, field.type);
-
 
10056
        } else {
-
 
10057
          switch (fieldId) {
-
 
10058
            case ROLE_NAME:
-
 
10059
              if (field.type == TType.STRING) {
-
 
10060
                this.roleName = iprot.readString();
-
 
10061
              } else { 
-
 
10062
                TProtocolUtil.skip(iprot, field.type);
-
 
10063
              }
-
 
10064
              break;
-
 
10065
          }
-
 
10066
          iprot.readFieldEnd();
-
 
10067
        }
-
 
10068
      }
-
 
10069
      iprot.readStructEnd();
-
 
10070
      validate();
-
 
10071
    }
-
 
10072
 
-
 
10073
    public void write(TProtocol oprot) throws TException {
-
 
10074
      validate();
-
 
10075
 
-
 
10076
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10077
      if (this.roleName != null) {
-
 
10078
        oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
-
 
10079
        oprot.writeString(this.roleName);
-
 
10080
        oprot.writeFieldEnd();
-
 
10081
      }
-
 
10082
      oprot.writeFieldStop();
-
 
10083
      oprot.writeStructEnd();
-
 
10084
    }
-
 
10085
 
-
 
10086
    @Override
-
 
10087
    public String toString() {
-
 
10088
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_args(");
-
 
10089
      boolean first = true;
-
 
10090
 
-
 
10091
      sb.append("roleName:");
-
 
10092
      if (this.roleName == null) {
-
 
10093
        sb.append("null");
-
 
10094
      } else {
-
 
10095
        sb.append(this.roleName);
-
 
10096
      }
-
 
10097
      first = false;
-
 
10098
      sb.append(")");
-
 
10099
      return sb.toString();
-
 
10100
    }
-
 
10101
 
-
 
10102
    public void validate() throws TException {
-
 
10103
      // check for required fields
-
 
10104
    }
-
 
10105
 
-
 
10106
  }
-
 
10107
 
-
 
10108
  public static class getPermissionsForRoleName_result implements TBase<getPermissionsForRoleName_result._Fields>, java.io.Serializable, Cloneable, Comparable<getPermissionsForRoleName_result>   {
-
 
10109
    private static final TStruct STRUCT_DESC = new TStruct("getPermissionsForRoleName_result");
-
 
10110
 
-
 
10111
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
10112
 
-
 
10113
    private List<String> success;
-
 
10114
 
-
 
10115
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
10116
    public enum _Fields implements TFieldIdEnum {
-
 
10117
      SUCCESS((short)0, "success");
-
 
10118
 
-
 
10119
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
10120
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
10121
 
-
 
10122
      static {
-
 
10123
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
10124
          byId.put((int)field._thriftId, field);
-
 
10125
          byName.put(field.getFieldName(), field);
-
 
10126
        }
-
 
10127
      }
-
 
10128
 
-
 
10129
      /**
-
 
10130
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
10131
       */
-
 
10132
      public static _Fields findByThriftId(int fieldId) {
-
 
10133
        return byId.get(fieldId);
-
 
10134
      }
-
 
10135
 
-
 
10136
      /**
-
 
10137
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
10138
       * if it is not found.
-
 
10139
       */
-
 
10140
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
10141
        _Fields fields = findByThriftId(fieldId);
-
 
10142
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
10143
        return fields;
-
 
10144
      }
-
 
10145
 
-
 
10146
      /**
-
 
10147
       * Find the _Fields constant that matches name, or null if its not found.
-
 
10148
       */
-
 
10149
      public static _Fields findByName(String name) {
-
 
10150
        return byName.get(name);
-
 
10151
      }
-
 
10152
 
-
 
10153
      private final short _thriftId;
-
 
10154
      private final String _fieldName;
-
 
10155
 
-
 
10156
      _Fields(short thriftId, String fieldName) {
-
 
10157
        _thriftId = thriftId;
-
 
10158
        _fieldName = fieldName;
-
 
10159
      }
-
 
10160
 
-
 
10161
      public short getThriftFieldId() {
-
 
10162
        return _thriftId;
-
 
10163
      }
-
 
10164
 
-
 
10165
      public String getFieldName() {
-
 
10166
        return _fieldName;
-
 
10167
      }
-
 
10168
    }
-
 
10169
 
-
 
10170
    // isset id assignments
-
 
10171
 
-
 
10172
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
10173
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
10174
          new ListMetaData(TType.LIST, 
-
 
10175
              new FieldValueMetaData(TType.STRING))));
-
 
10176
    }});
-
 
10177
 
-
 
10178
    static {
-
 
10179
      FieldMetaData.addStructMetaDataMap(getPermissionsForRoleName_result.class, metaDataMap);
-
 
10180
    }
-
 
10181
 
-
 
10182
    public getPermissionsForRoleName_result() {
-
 
10183
    }
-
 
10184
 
-
 
10185
    public getPermissionsForRoleName_result(
-
 
10186
      List<String> success)
-
 
10187
    {
-
 
10188
      this();
-
 
10189
      this.success = success;
-
 
10190
    }
-
 
10191
 
-
 
10192
    /**
-
 
10193
     * Performs a deep copy on <i>other</i>.
-
 
10194
     */
-
 
10195
    public getPermissionsForRoleName_result(getPermissionsForRoleName_result other) {
-
 
10196
      if (other.isSetSuccess()) {
-
 
10197
        List<String> __this__success = new ArrayList<String>();
-
 
10198
        for (String other_element : other.success) {
-
 
10199
          __this__success.add(other_element);
-
 
10200
        }
-
 
10201
        this.success = __this__success;
-
 
10202
      }
-
 
10203
    }
-
 
10204
 
-
 
10205
    public getPermissionsForRoleName_result deepCopy() {
-
 
10206
      return new getPermissionsForRoleName_result(this);
-
 
10207
    }
-
 
10208
 
-
 
10209
    @Deprecated
-
 
10210
    public getPermissionsForRoleName_result clone() {
-
 
10211
      return new getPermissionsForRoleName_result(this);
-
 
10212
    }
-
 
10213
 
-
 
10214
    public int getSuccessSize() {
-
 
10215
      return (this.success == null) ? 0 : this.success.size();
-
 
10216
    }
-
 
10217
 
-
 
10218
    public java.util.Iterator<String> getSuccessIterator() {
-
 
10219
      return (this.success == null) ? null : this.success.iterator();
-
 
10220
    }
-
 
10221
 
-
 
10222
    public void addToSuccess(String elem) {
-
 
10223
      if (this.success == null) {
-
 
10224
        this.success = new ArrayList<String>();
-
 
10225
      }
-
 
10226
      this.success.add(elem);
-
 
10227
    }
-
 
10228
 
-
 
10229
    public List<String> getSuccess() {
-
 
10230
      return this.success;
-
 
10231
    }
-
 
10232
 
-
 
10233
    public getPermissionsForRoleName_result setSuccess(List<String> success) {
-
 
10234
      this.success = success;
-
 
10235
      return this;
-
 
10236
    }
-
 
10237
 
-
 
10238
    public void unsetSuccess() {
-
 
10239
      this.success = null;
-
 
10240
    }
-
 
10241
 
-
 
10242
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
10243
    public boolean isSetSuccess() {
-
 
10244
      return this.success != null;
-
 
10245
    }
-
 
10246
 
-
 
10247
    public void setSuccessIsSet(boolean value) {
-
 
10248
      if (!value) {
-
 
10249
        this.success = null;
-
 
10250
      }
-
 
10251
    }
-
 
10252
 
-
 
10253
    public void setFieldValue(_Fields field, Object value) {
-
 
10254
      switch (field) {
-
 
10255
      case SUCCESS:
-
 
10256
        if (value == null) {
-
 
10257
          unsetSuccess();
-
 
10258
        } else {
-
 
10259
          setSuccess((List<String>)value);
-
 
10260
        }
-
 
10261
        break;
-
 
10262
 
-
 
10263
      }
-
 
10264
    }
-
 
10265
 
-
 
10266
    public void setFieldValue(int fieldID, Object value) {
-
 
10267
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
10268
    }
-
 
10269
 
-
 
10270
    public Object getFieldValue(_Fields field) {
-
 
10271
      switch (field) {
-
 
10272
      case SUCCESS:
-
 
10273
        return getSuccess();
-
 
10274
 
-
 
10275
      }
-
 
10276
      throw new IllegalStateException();
-
 
10277
    }
-
 
10278
 
-
 
10279
    public Object getFieldValue(int fieldId) {
-
 
10280
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
10281
    }
-
 
10282
 
-
 
10283
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
10284
    public boolean isSet(_Fields field) {
-
 
10285
      switch (field) {
-
 
10286
      case SUCCESS:
-
 
10287
        return isSetSuccess();
-
 
10288
      }
-
 
10289
      throw new IllegalStateException();
-
 
10290
    }
-
 
10291
 
-
 
10292
    public boolean isSet(int fieldID) {
-
 
10293
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
10294
    }
-
 
10295
 
-
 
10296
    @Override
-
 
10297
    public boolean equals(Object that) {
-
 
10298
      if (that == null)
-
 
10299
        return false;
-
 
10300
      if (that instanceof getPermissionsForRoleName_result)
-
 
10301
        return this.equals((getPermissionsForRoleName_result)that);
-
 
10302
      return false;
-
 
10303
    }
-
 
10304
 
-
 
10305
    public boolean equals(getPermissionsForRoleName_result that) {
-
 
10306
      if (that == null)
-
 
10307
        return false;
-
 
10308
 
-
 
10309
      boolean this_present_success = true && this.isSetSuccess();
-
 
10310
      boolean that_present_success = true && that.isSetSuccess();
-
 
10311
      if (this_present_success || that_present_success) {
-
 
10312
        if (!(this_present_success && that_present_success))
-
 
10313
          return false;
-
 
10314
        if (!this.success.equals(that.success))
-
 
10315
          return false;
-
 
10316
      }
-
 
10317
 
-
 
10318
      return true;
-
 
10319
    }
-
 
10320
 
-
 
10321
    @Override
-
 
10322
    public int hashCode() {
-
 
10323
      return 0;
-
 
10324
    }
-
 
10325
 
-
 
10326
    public int compareTo(getPermissionsForRoleName_result other) {
-
 
10327
      if (!getClass().equals(other.getClass())) {
-
 
10328
        return getClass().getName().compareTo(other.getClass().getName());
-
 
10329
      }
-
 
10330
 
-
 
10331
      int lastComparison = 0;
-
 
10332
      getPermissionsForRoleName_result typedOther = (getPermissionsForRoleName_result)other;
-
 
10333
 
-
 
10334
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
10335
      if (lastComparison != 0) {
-
 
10336
        return lastComparison;
-
 
10337
      }
-
 
10338
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
10339
      if (lastComparison != 0) {
-
 
10340
        return lastComparison;
-
 
10341
      }
-
 
10342
      return 0;
-
 
10343
    }
-
 
10344
 
-
 
10345
    public void read(TProtocol iprot) throws TException {
-
 
10346
      TField field;
-
 
10347
      iprot.readStructBegin();
-
 
10348
      while (true)
-
 
10349
      {
-
 
10350
        field = iprot.readFieldBegin();
-
 
10351
        if (field.type == TType.STOP) { 
-
 
10352
          break;
-
 
10353
        }
-
 
10354
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
10355
        if (fieldId == null) {
-
 
10356
          TProtocolUtil.skip(iprot, field.type);
-
 
10357
        } else {
-
 
10358
          switch (fieldId) {
-
 
10359
            case SUCCESS:
-
 
10360
              if (field.type == TType.LIST) {
-
 
10361
                {
-
 
10362
                  TList _list28 = iprot.readListBegin();
-
 
10363
                  this.success = new ArrayList<String>(_list28.size);
-
 
10364
                  for (int _i29 = 0; _i29 < _list28.size; ++_i29)
-
 
10365
                  {
-
 
10366
                    String _elem30;
-
 
10367
                    _elem30 = iprot.readString();
-
 
10368
                    this.success.add(_elem30);
-
 
10369
                  }
-
 
10370
                  iprot.readListEnd();
-
 
10371
                }
-
 
10372
              } else { 
-
 
10373
                TProtocolUtil.skip(iprot, field.type);
-
 
10374
              }
-
 
10375
              break;
-
 
10376
          }
-
 
10377
          iprot.readFieldEnd();
-
 
10378
        }
-
 
10379
      }
-
 
10380
      iprot.readStructEnd();
-
 
10381
      validate();
-
 
10382
    }
-
 
10383
 
-
 
10384
    public void write(TProtocol oprot) throws TException {
-
 
10385
      oprot.writeStructBegin(STRUCT_DESC);
-
 
10386
 
-
 
10387
      if (this.isSetSuccess()) {
-
 
10388
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
10389
        {
-
 
10390
          oprot.writeListBegin(new TList(TType.STRING, this.success.size()));
-
 
10391
          for (String _iter31 : this.success)
-
 
10392
          {
-
 
10393
            oprot.writeString(_iter31);
-
 
10394
          }
-
 
10395
          oprot.writeListEnd();
-
 
10396
        }
-
 
10397
        oprot.writeFieldEnd();
-
 
10398
      }
-
 
10399
      oprot.writeFieldStop();
-
 
10400
      oprot.writeStructEnd();
-
 
10401
    }
-
 
10402
 
-
 
10403
    @Override
-
 
10404
    public String toString() {
-
 
10405
      StringBuilder sb = new StringBuilder("getPermissionsForRoleName_result(");
-
 
10406
      boolean first = true;
-
 
10407
 
-
 
10408
      sb.append("success:");
-
 
10409
      if (this.success == null) {
-
 
10410
        sb.append("null");
6738
      } else {
10411
      } else {
6739
        sb.append(this.success);
10412
        sb.append(this.success);
6740
      }
10413
      }
6741
      first = false;
10414
      first = false;
6742
      sb.append(")");
10415
      sb.append(")");